query_id
stringlengths
32
32
query
stringlengths
7
129k
positive_passages
listlengths
1
1
negative_passages
listlengths
88
101
e8cd200525126254a7d7c7220430209c
======= GETTERS AND SETTERS ================
[ { "docid": "ced971ae9f8af01a44ff19adb339f1c9", "score": "0.0", "text": "public String getName() {\r\n return name;\r\n }", "title": "" } ]
[ { "docid": "9f7abaac0647d287546a4407b5e08182", "score": "0.6674369", "text": "public void setValue();", "title": "" }, { "docid": "0bdd7156418e07a48c2891d54f2fcc38", "score": "0.63563186", "text": "@Override\n\tpublic void get() {\n\t\t\n\t}", "title": "" }, { "docid": "7cb5b737010cbabb3c221eaba3647594", "score": "0.634298", "text": "public void get() {\n\t\t\n\t}", "title": "" }, { "docid": "8784fb1ff0d7f7ed3a730587783d9051", "score": "0.6304783", "text": "@Test\n\tpublic void get_set(){\n\t\tPlayer test = new Player(name, Player.GameType.NORMAL);\n\t\tCuT.setPlayer(test);\n\t\tassertEquals(test.getName(), name);\n\t\tPiece.Color color = Piece.Color.RED;\n\t\tCuT.setPieceColor(color);\n\t\tMove move = new Move(CuT.getStart(), CuT.getEnd(), test, color);\n\t\tassertEquals(CuT.getPieceColor(), color);\n\t\tCuT.setPieceColor(color);\n\t\tCuT.setPlayer(test);\n\t\tassertEquals(move.toString(), CuT.toString());\n\t\tassertEquals(CuT.getPlayerName(), name);\n\t}", "title": "" }, { "docid": "c597ea37dc747cebf00ca60bb2e28490", "score": "0.62143147", "text": "public void set(String name, String value);", "title": "" }, { "docid": "59049c53fcc404937622093922342a5e", "score": "0.6197695", "text": "@Override\r\n public void get() {\n\r\n }", "title": "" }, { "docid": "4e39897ccc238bc4495f9f93db368494", "score": "0.61686176", "text": "Properties get();", "title": "" }, { "docid": "7c48edd6ae6d3bbcd9d476fcd5007127", "score": "0.61564636", "text": "Method getSetMethod();", "title": "" }, { "docid": "6843d252cb0a2bae55536271a7ddd045", "score": "0.61525005", "text": "protected void setFields() {}", "title": "" }, { "docid": "cae7dd0c3ea172c79f53946f56f87dc3", "score": "0.61331856", "text": "Object get();", "title": "" }, { "docid": "cae7dd0c3ea172c79f53946f56f87dc3", "score": "0.61331856", "text": "Object get();", "title": "" }, { "docid": "21069efc794246b00903cef9a31f0252", "score": "0.61253315", "text": "public Object get() {\n return value;\n }", "title": "" }, { "docid": "faad9099db168744db9bd7bf988c3762", "score": "0.6124641", "text": "public void setAge(int newAge){\r\n\tage = newAge;\r\n}", "title": "" }, { "docid": "11ea36fb0297cf2c13efbcd8392ec7b3", "score": "0.60339373", "text": "public void setWert()\n{\n}", "title": "" }, { "docid": "cdfd8d283acf51b12d6e89a6abbf9695", "score": "0.5991808", "text": "@Override\r\n\tpublic Object set(String name, Object value) {\n\t\treturn value;\r\n\t}", "title": "" }, { "docid": "0ea2889d4b504588cd56019b7f2e9f97", "score": "0.5967756", "text": "public void setAge(int age) {this.age = age; }", "title": "" }, { "docid": "b2f744d82101fe10c05e0075c0ea509b", "score": "0.5967106", "text": "@Override\n public boolean usePropertyAccess() {\n return true;\n }", "title": "" }, { "docid": "8d5e1e149b54434e5ef011301af95400", "score": "0.5958356", "text": "public Object get();", "title": "" }, { "docid": "e57f005733f2eb8590150b3f4542b844", "score": "0.5943977", "text": "@Override\n\tprotected void getData() {\n\t\t\n\t}", "title": "" }, { "docid": "b05f8da0304bfd2022aad7a772fb17d5", "score": "0.592606", "text": "@Test\n public void testGettersAndSetters() {\n classUnderTest.setName(\"name\");\n classUnderTest.setDescription(\"description\");\n\n assertEquals(\"name\", classUnderTest.getName());\n assertEquals(\"name\", classUnderTest.getAuthority());\n assertEquals(\"description\", classUnderTest.getDescription());\n }", "title": "" }, { "docid": "9bcd15a2298e73719d7c7326027b093b", "score": "0.58870006", "text": "@Override\n\tprotected void getData() {\n\n\t}", "title": "" }, { "docid": "7279c4b292c5fa801c6e634882fee4bd", "score": "0.5846149", "text": "public int getage(){ return this.age; }", "title": "" }, { "docid": "e48d64c942f3ae2d8e75adc77e541982", "score": "0.58442825", "text": "void set(Object value);", "title": "" }, { "docid": "a70f7e3a13a6c66095bd98274f8ed6c7", "score": "0.5825013", "text": "@Test\n\t public void testGuettrsSetters() throws Exception{\n\t\t this.tienda.setNombre(\"MANGO\");\n\t\t Assert.assertEquals(\"MANGO\",this.tienda.getNombre());\n\t }", "title": "" }, { "docid": "07cc82c07e2d79c2ca19cc5283be4abe", "score": "0.5808862", "text": "@Test\n\tpublic void setterAndGetter() {\n\t\tCollage c = new Collage();\n\t\tc.setImage(\"testImage\");\n\t\tc.setTopic(\"testTopic\");\n\t\tc.setFilter(\"testFilter\");\n\t\tc.setBorder(true);\n\t\tc.setRotation(true);\n\t\t\n\t\tassertEquals(\"testImage\", c.getImage());\n\t\tassertEquals(\"testTopic\", c.getTopic());\n\t\tassertEquals(\"testFilter\", c.getFilter());\n\t\tassertEquals(true, c.getBorder());\n\t\tassertEquals(true, c.getRotation());\n\t}", "title": "" }, { "docid": "d1b3d2aeb263eeeb00204704d7814b40", "score": "0.5773558", "text": "public JMethod getSetter();", "title": "" }, { "docid": "c49e4670ed52eb86fe6693f853f2481e", "score": "0.5763805", "text": "public int getAge(){return age;}", "title": "" }, { "docid": "6d976a2307f7cb631da0ffeff8b3b861", "score": "0.5763126", "text": "public Object get() {\n \treturn mode;\n }", "title": "" }, { "docid": "bacbb5a7475a69d1dc6d37dc51352fa1", "score": "0.5747163", "text": "private int getValue(){\n return this.value;\n }", "title": "" }, { "docid": "3d51442ae8d61ef968470bccb211ba9b", "score": "0.57316613", "text": "@Test\n public void testSetAndGetValue() {\n String expected = \"test\";\n BTNode< String > instance = new BTNode< String >();\n instance.setValue( expected );\n assertEquals( expected, instance.getValue() );\n expected = \"apple\";\n instance.setValue( expected );\n assertEquals( expected, instance.getValue() );\n expected = \"orange\";\n instance.setValue( expected );\n assertEquals( expected, instance.getValue() );\n }", "title": "" }, { "docid": "c8f125def1664512ffb0c3525c472cef", "score": "0.5730265", "text": "public double getAge(){\r\n\treturn age;\r\n}", "title": "" }, { "docid": "e3308b437665bc79c20de5f633c3b2a3", "score": "0.5725674", "text": "public DocumentPropertySetting getDocumentPropertySetting(){\n return localDocumentPropertySetting;\n }", "title": "" }, { "docid": "96f0e74db1b69d4183d74a0b39a1ffc8", "score": "0.5711483", "text": "protected abstract void setPropertyFields();", "title": "" }, { "docid": "685c67b2de919d744352a6be76904fba", "score": "0.5706137", "text": "@Override\n\tpublic void setValue(Object value) {\n\t\t\n\t}", "title": "" }, { "docid": "7e5d37d1c33f12fb50a3b61292652b0b", "score": "0.57029384", "text": "@Override\n public Object get() {\n throw new UnsupportedOperationException(\"get\");\n }", "title": "" }, { "docid": "098f3516e373d855ca79496d6dce2936", "score": "0.5699531", "text": "public int getValue(){ return value;}", "title": "" }, { "docid": "8da6fb8adfdee74f02958d59185b1fbb", "score": "0.56884754", "text": "public void SetName(String theName)\n{\n Name = theName;\n}", "title": "" }, { "docid": "25f001f3bdfd787e6c2bf0b7fd633250", "score": "0.5686221", "text": "int set() {\n/* 461 */ return this.set;\n/* */ }", "title": "" }, { "docid": "fca15d581802f36d81a06361ea530a80", "score": "0.56853527", "text": "public DocumentProperty getDocumentProperty(){\n return localDocumentProperty;\n }", "title": "" }, { "docid": "61a65ad0f6a719f744710e8e5dfcf39a", "score": "0.56763214", "text": "public Method getSetter(Method getter);", "title": "" }, { "docid": "57707b7830304baca6a995deda182a8e", "score": "0.5676029", "text": "@Test\n public void testGetterAndSetter() {\n FinalScore f1 = new FinalScore(\"user1\", 90);\n assertEquals(\"user1\", f1.getDescription());\n f1.setScore(100);\n assertEquals(100, f1.getScore());\n\n\n }", "title": "" }, { "docid": "0b1e229f0dbbd8e9daa0a655357ee120", "score": "0.56691223", "text": "@Override\n\tpublic void getData() {\n\t\t\n\t}", "title": "" }, { "docid": "58287dc32912622d0165493c72802d08", "score": "0.5666374", "text": "public void setValue(T value) {\n \n }", "title": "" }, { "docid": "94d3bc2b3880f4e89f31ab33315711e2", "score": "0.56579757", "text": "@Override\n public void setValues() throws Exception {\n\n }", "title": "" }, { "docid": "328025d2fa9e56806b9ed017e630cc1c", "score": "0.5650807", "text": "private void writeSetFieldMethod() {\n\n writeComment(\"Sets a field of some object to a given value\", true);\n writeMethodHeader(null,\n \"private\",\n null,\n \"void\",\n \"setFieldValue\",\n new String[]{\"Object instance\", \"String fieldName\", \"Object value\"},\n new String[]{\"NoSuchFieldException\", \"SecurityException\", \"IllegalArgumentException\", \"IllegalAccessException\"});\n\n writeIndentedLine(\"Field field = instance.getClass().getDeclaredField(fieldName);\");\n writeNewLine();\n\n writeIndentedLine(\"field.setAccessible(true);\");\n writeNewLine();\n\n writeIndentedLine(\"field.set(instance, value );\");\n writeNewLine();\n\n writeClosingBrace();\n }", "title": "" }, { "docid": "66b95c8faea2055153295a111e9330d4", "score": "0.5641438", "text": "public void setSomething(String something)\n {\n }", "title": "" }, { "docid": "67e5b51393b4c4b2bbc23f681fccbc57", "score": "0.5640227", "text": "public int getValue()\n{\n return value;\n}", "title": "" }, { "docid": "d665e7d91002d5e9b417e001ca6ab4a3", "score": "0.5634833", "text": "@Override\n public abstract String get();", "title": "" }, { "docid": "746a2fa037b478ff255b0e078b2b8f94", "score": "0.56295437", "text": "public Object getNewValue ()\n {\n return _newValue;\n }", "title": "" }, { "docid": "c0c2f88fdcc6f2cf2f29fc5fbcf6be6a", "score": "0.56274396", "text": "private U getValue() {\n\t\t\t\treturn _value;\n\t\t\t}", "title": "" }, { "docid": "935cf5f55a6202df82a3badb6ef3e845", "score": "0.56274366", "text": "public abstract int getSetLocation();", "title": "" }, { "docid": "0cffcfd49f902566b55b21249ea30a6d", "score": "0.5612594", "text": "public int get(){\n\treturn this.num;\n }", "title": "" }, { "docid": "01a7049a8a4b446122beee55e0d6a8fd", "score": "0.55819565", "text": "public Object get() {\n\t\treturn this.value;\n\t}", "title": "" }, { "docid": "9f19664e0554006ddd46a7e378430a07", "score": "0.55769306", "text": "protected synchronized Object getValue() { \n return value; \n }", "title": "" }, { "docid": "60099ce404487819878c6938c625b747", "score": "0.5571924", "text": "public void testSetCodeGet() {\n System.out.println(\"setCodeGet\");\n boolean codeGet = false;\n ComponenteBase objComponenteBase = null; \n int id= 0; \n int propiedad = 0;\n boolean codeSet = false;\n String extra = \"\";\n PropiedadComponenteBase instance = new PropiedadComponenteBase(objComponenteBase,id, propiedad,codeSet,codeGet, extra);\n instance.setCodeGet(codeGet);\n }", "title": "" }, { "docid": "4eab257bdb5b308985f0109c15e00a7d", "score": "0.55707157", "text": "public int getValue(){\r\n return value;\r\n }", "title": "" }, { "docid": "daa647a78092f3cf11ec4bf1c1c962b2", "score": "0.55645084", "text": "protected ValueInfo getValueInfo ()\r\n {\r\n return valueInfo;\r\n }", "title": "" }, { "docid": "f26307480bfc2b2c64ad8a584cc78aa9", "score": "0.55610126", "text": "Object getValue()\n {\n return value;\n }", "title": "" }, { "docid": "bc364d40ea85658bee2dc5ac808e79ec", "score": "0.55516225", "text": "public void setPrice( int p)\n{\n price = p;\n}", "title": "" }, { "docid": "59c718c1bef71aa1296791ee07c0b98b", "score": "0.5549845", "text": "S get();", "title": "" }, { "docid": "6bd3117f6983d78885a6b8173dff2505", "score": "0.55461705", "text": "public int getAge(){\n return this.age;\n }", "title": "" }, { "docid": "7a6c2b3343650cc10f9d769236600232", "score": "0.55427295", "text": "public int getAge(){\n return this.age;\n }", "title": "" }, { "docid": "13d6bd57521d8d46e0dff5f8d550d3ec", "score": "0.55425966", "text": "public int getPersonAge(){\r\n return personAge;\r\n }", "title": "" }, { "docid": "309f490eac45ecb05f1aec948d7ef28f", "score": "0.5536555", "text": "public void setnome(String nome){\n this.nome=nome;\n}", "title": "" }, { "docid": "c9e1b1c11c2d73b2ce65866a8c263641", "score": "0.553355", "text": "public void setValue(int value){ this.value = value;}", "title": "" }, { "docid": "b7a5ba14d29ea987dd6086cc2d0de069", "score": "0.5531403", "text": "public Metadata get() {\n return val;\n }", "title": "" }, { "docid": "a44119be1c2cc217b7a9b9a3d3c706ad", "score": "0.551961", "text": "public void SetValues() \n {\n // Call the overrided method first\n super.SetValues();\n\n posVectorPiranha = position();\n oriVectorPiranha = orientation(); \n Accelerate = accelerate();\n // Set position through accessor\n // Set rotation through accessor\n // Set speed through accessor\n\n // Set the rotation of the prianaha to face the right way\n oriVectorPiranha.x = oriVectorPiranha.x - (float)180;\n // Set scale through accessor\n piranhaScale = scale();\n \n // Set the random number\n _rnP = new Random();\n }", "title": "" }, { "docid": "2e1a92d1f1932d4ce3a1cb42e9b04bf7", "score": "0.55156034", "text": "public Object get() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "44ffe912f191026f41c5dd042384b59a", "score": "0.5502434", "text": "public void setData(String something){data = something;}", "title": "" }, { "docid": "e62ca6658371e6fac92e26adf5cbc08c", "score": "0.5500454", "text": "public void saved()\r\n {\r\n /////////////////////////////////\r\n // TODO: work with cloned value\r\n }", "title": "" }, { "docid": "3c4e568e555aa2a73546929d81489762", "score": "0.5497828", "text": "public void updateProperties() {\n \t}", "title": "" }, { "docid": "a0b35ab6be7e47f3b4ac50c6dc5d3c3d", "score": "0.5497153", "text": "private void setProperties() {\n AppState appState = AppState.getInstance();\n appState.difficultyPropertyProperty().setValue(appState.getGameMode().getName());\n appState.lvlPropertyProperty().setValue(appState.getCurrentLvl());\n appState.hPPropertyProperty().setValue(appState.getGameMode().getHp());\n appState.pointsPropertyProperty().setValue(appState.getCurrentScore().getValue());\n timePlayPropertyProperty().setValue(timePlay);\n }", "title": "" }, { "docid": "eb4c90c755086fe8d1785c1ee1d92af5", "score": "0.5494252", "text": "@Override\n\tpublic void setSimple() {\n\t\t\n\t}", "title": "" }, { "docid": "850f3f1eef6fb6800fee9fa341354593", "score": "0.54883385", "text": "@Override\n public void Set(Object obj, Object arg) {\n \n }", "title": "" }, { "docid": "9376c3792c24501c74e3299c180e83c9", "score": "0.5480513", "text": "public DocumentPropertySetting[] getDocumentPropertySetting(){\n return localDocumentPropertySetting;\n }", "title": "" }, { "docid": "c5c3d8bc1346efca3af5e9947ca3339f", "score": "0.5454833", "text": "@Override\r\n \tprotected void setValue(Object element, Object value) {\n \t}", "title": "" }, { "docid": "cf3c0a8a19d4dc9b9bfd2baddf274e05", "score": "0.5435439", "text": "int value() {\n return _value;\n }", "title": "" }, { "docid": "9365587ef0ebdaaf72755601d2d715c7", "score": "0.5433104", "text": "@Override\n public void setValue(Object o) {\n }", "title": "" }, { "docid": "d741942ff0ceae9cd05bcd52a9ff2864", "score": "0.5432551", "text": "public void setYear( int y)\n{\n year = y;\n}", "title": "" }, { "docid": "7f8b46c8c85354941162593f3681d22c", "score": "0.5430312", "text": "public void setInWeb()\n {\n }", "title": "" }, { "docid": "5fc0aa550c18e8b811bc9f56530d0b02", "score": "0.5425572", "text": "C set();", "title": "" }, { "docid": "6c95642925695c7a919c997dbf984014", "score": "0.5422761", "text": "public Set getSet() {\n return set;\n }", "title": "" }, { "docid": "7fd0018c3a5fc80dbbb8cc1fb5113f6c", "score": "0.54220456", "text": "public int getAge()\n {\n return age;\n }", "title": "" }, { "docid": "50fd617a69a83571ad028b52ff2d2b58", "score": "0.5415475", "text": "public void setDocumentProperty(DocumentProperty param){\n \n this.localDocumentProperty=param;\n \n\n }", "title": "" }, { "docid": "b4346e80b5f66adedf4124e9ce5ebf36", "score": "0.5412802", "text": "@Test\n\tpublic void getSetIndexTests(){\n\t\tcType1.setIndex(10);\n\t\tassertEquals(10,cType1.getIndex());\n\t}", "title": "" }, { "docid": "41fa11c7359f462de23a2b1898d6d5a8", "score": "0.54126865", "text": "protected PropertySet getRef() {\n return (PropertySet) getCheckedRef(PropertySet.class, \"propertyset\");\n }", "title": "" }, { "docid": "a1b4ac7cb24dff30a3f0f3103fd77e93", "score": "0.54120624", "text": "protected void afterPropertiesSetInternal() {\r\n\t\t// override this method\r\n\t}", "title": "" }, { "docid": "9e3ce6a8de1867715beaa0208cb37264", "score": "0.54116243", "text": "public void setPlayer(Player p){player = p;}", "title": "" }, { "docid": "b03a0c251031d06ec9167774156c48dc", "score": "0.54067683", "text": "@Override\n\tpublic void updateProperties() {\n\n\t}", "title": "" }, { "docid": "37e9d6fead48d568af1a3c6c303a7432", "score": "0.5405908", "text": "@Override\n public boolean get() {\n return getter.get();\n }", "title": "" }, { "docid": "9c1674aa28fc2a6a9cff06ca7bba2720", "score": "0.54024667", "text": "public abstract void setData(Object newvalue);", "title": "" }, { "docid": "ee177118257f0101919bf03be79501c1", "score": "0.5399002", "text": "public void setValue(java.lang.Object param){\n localValueTracker = true;\n \n this.localValue=param;\n \n\n }", "title": "" }, { "docid": "833fe20a10a0c57499c10e1e529affdb", "score": "0.5396155", "text": "@Override\r\n public Metadata getMetadata() {\n\r\n return super.getMetadata();\r\n }", "title": "" }, { "docid": "ee5f97ca6ecc314572af1ab2b29b2d00", "score": "0.5394934", "text": "@Override\r\n public IPropertiesSet getProperties() {\r\n\t\tloadProperties();\r\n\t\treturn super.getProperties();\r\n\t}", "title": "" }, { "docid": "e515c6083710dde32b01b8d162020c89", "score": "0.53947926", "text": "@Test\r\n public void testSetLoc() {\r\n System.out.println(\"setLoc\");\r\n Location loc = new Location(0,0,0);\r\n SXUser instance = new SXUser();\r\n instance.setRealName(\"Real Name\");\r\n instance.setUserName(\"username\");\r\n instance.setLoc(loc);\r\n Location result = instance.getLoc();\r\n assertEquals(loc, result);\r\n }", "title": "" }, { "docid": "fadfa20d8b38f0d80f3f66854e2665ea", "score": "0.5392167", "text": "public DocumentProperty[] getDocumentProperty(){\n return localDocumentProperty;\n }", "title": "" }, { "docid": "6781fc27bfed4b00e0b018901566a1fb", "score": "0.5390923", "text": "@Override\n public void setChanged() {\n }", "title": "" }, { "docid": "6b925f17317cba21a3e70fb805317c06", "score": "0.5390675", "text": "public void setA(int a) { A = a; }", "title": "" }, { "docid": "85346c1932de1c42375cde1948239ffc", "score": "0.5388624", "text": "void setAge (double age);", "title": "" }, { "docid": "a9cc43582ff53529af3bd3eb380f28ff", "score": "0.5380607", "text": "@Override\r\n\tpublic void setEntity(Object value) {\n\t\t\r\n\t}", "title": "" }, { "docid": "7a8424b1bad72f8890c3545e880b9f2c", "score": "0.53781706", "text": "@Test\n public void testSetQuantity() {\n example.setQuantity(7);\n assertEquals(7, example.getQuantity());\n }", "title": "" } ]
34f2aae6d61db1d2ab9ed5911953251f
Set states of showing stripes.
[ { "docid": "333513d3d46173713963be86c7adf874", "score": "0.64109427", "text": "public StripedProcessButton setShowStripes(boolean showStripes) {\n mStripedDrawable.setShowStripes(showStripes);\n invalidate();\n return this;\n }", "title": "" } ]
[ { "docid": "3ce9c9b6cbce67b153920855a6584378", "score": "0.5894634", "text": "@Override\n protected void setStates() {\n attack.setText(String.valueOf(card.getAttack()));\n durability.setText(String.valueOf(card.getDurability()));\n }", "title": "" }, { "docid": "30d37a86dc0d08c0c20569503deeb47b", "score": "0.57969517", "text": "@Override\n\tpublic void setStates(){\n\t\tprevPackButton.enabled = playerInstruments.lowerKey(currentPack) != null;\n\t\tnextPackButton.enabled = playerInstruments.higherKey(currentPack) != null;\n\t\t\n\t\t//Set instrument icon and button states depending on which instruments the player has.\n\t\tif(currentPack != null){\n\t\t\tfor(int i=0; i<instrumentSlots.size(); ++i){\n\t\t\t\tif(playerInstruments.get(currentPack).size() > i){\n\t\t\t\t\tinstrumentSlots.get(i).visible = true;\n\t\t\t\t\tinstrumentSlots.get(i).enabled = selectedInstrumentDefinition != null;\n\t\t\t\t\tinstrumentSlotIcons.get(i).stack = playerInstruments.get(currentPack).get(i).getNewStack();\n\t\t\t\t\t\n\t\t\t\t}else{\n\t\t\t\t\tinstrumentSlots.get(i).visible = false;\n\t\t\t\t\tinstrumentSlotIcons.get(i).stack = null;\n\t\t\t\t}\n\t\t\t}\n\t\t\tpackName.text = PackParserSystem.getPackConfiguration(currentPack).packName;\n\t\t}\n\t\t\n\t\t//Set buttons depending on which vehicle section is selected.\n\t\thudButton.enabled = !hudSelected;\n\t\tpanelButton.enabled = hudSelected;\n\t\t\n\t\t//Set info and clear state based on if we've clicked an instrument.\n\t\tinfoLabel.text = selectedInstrumentDefinition == null ? \"\\\\/ \" + InterfaceCore.translate(\"gui.instruments.idle\") + \" \\\\/\" : \"/\\\\ \" + InterfaceCore.translate(\"gui.instruments.decide\") + \" /\\\\\";\n\t\tclearButton.enabled = selectedInstrumentDefinition != null && selectedEntity.instruments.containsKey(selectedEntity.definition.instruments.indexOf(selectedInstrumentDefinition));\n\t}", "title": "" }, { "docid": "61b97bb5d892f89c212cef69c10fe18d", "score": "0.5698147", "text": "private void draft(){\n isDiscarded = false;\n discardButton.setStyle(NORM);\n if (isDrafted){\n setStyle();\n draftButton.setStyle(NORM);\n } else {\n background.setStroke(Color.GREEN);\n background.setStrokeWidth(this.getWidth()*STROKE_PERC*2);\n draftButton.setStyle(TOGGLED);\n }\n isDrafted ^= true;\n }", "title": "" }, { "docid": "ede8a877667d274879f08b800656e2ba", "score": "0.56860137", "text": "public void setOpened() {\n card_front.setVisible(true);\n card_back.setVisible(false);\n }", "title": "" }, { "docid": "6ac58067fd067a06d09700efefa86fba", "score": "0.56460077", "text": "public void setActiveTurtleToggle(){\t\t\t\n\t\tboolean showActive = turtleSettings.getActiveTurtleToggle();\t\t\n\t\tfor (double id : turtleViewMap.getIDs()){\n\t\t\tif (activeTurtles.contains(id) && showActive){\n\t\t\t\tshowAsActiveTurtle(id);\n\t\t\t}\n\t\t\telse{\n\t\t\t\tdontAsShowActiveTurtle(id);\n\t\t\t}\t\t\n\t\t}\n\t}", "title": "" }, { "docid": "12b60756d6e95276bc7c841a0bc2919e", "score": "0.5581368", "text": "public boolean isShowStripes() {\n return mStripedDrawable.isShowStripes();\n }", "title": "" }, { "docid": "2184da02d23960d586c62769c9002d17", "score": "0.5522413", "text": "public void setShowSky(boolean set) {\n\t\tthis.showSky = set;\n\t}", "title": "" }, { "docid": "7bc2b57ca37111721a6614637c0a15fd", "score": "0.5507936", "text": "@Override\n public void show() {\n \n Window.getWindow().clear(bgColor);\n \n for (Button b : buttons) {\n b.draw();\n }\n\n Window.getWindow().display();\n }", "title": "" }, { "docid": "62516c5d9ca0b4ed6ca01f9923605386", "score": "0.5490748", "text": "public void setShowSunset(boolean set) {\n\t\t this.showSunset = set;\n\t }", "title": "" }, { "docid": "e1d3fa9899ade3789cf8981eaf9ddb6f", "score": "0.5468978", "text": "public void setBlackAndWhite()\n {\n if (house != null) // only if it's painted already...\n {\n house.changeColor(\"black\");\n roof.changeColor(\"black\");\n person1.changeColor(\"black\");\n person2.changeColor(\"black\");\n }\n }", "title": "" }, { "docid": "fc9cbc8c1a9c833235c19edb44e2f10e", "score": "0.54481006", "text": "public static void setFieldsBackgroundColor(boolean TruthMatrix[][],boolean DraftMatrix[][]) {\n\t\tif(TruthMatrix[counter][0] == true && DraftMatrix[counter][0] == true)\r\n\t\t\tS1.setStyle(\"-fx-control-inner-background:#7FDCFF\");\r\n\t\tif(DraftMatrix[counter][0] == false)\r\n\t\t\tS1.setStyle(\"-fx-control-inner-background:white\");\r\n\t\tif(TruthMatrix[counter][0] == false && DraftMatrix[counter][0] == true)\r\n\t\t\tS1.setStyle(\"-fx-control-inner-background:#ff4d4d\");\r\n\t\t\r\n\t\t// Inner color for S2\r\n\t\tif(TruthMatrix[counter][1] == true && DraftMatrix[counter][1] == true)\r\n\t\t\tS2.setStyle(\"-fx-control-inner-background:#7FDCFF\");\r\n\t\tif(DraftMatrix[counter][1] == false)\r\n\t\t\tS2.setStyle(\"-fx-control-inner-background:white\");\r\n\t\tif(TruthMatrix[counter][1] == false && DraftMatrix[counter][1] == true)\r\n\t\t\tS2.setStyle(\"-fx-control-inner-background:#ff4d4d\");\r\n\t\t\r\n\t\t// Inner color for S3\r\n\t\tif(TruthMatrix[counter][2] == true && DraftMatrix[counter][2] == true)\r\n\t\t\tS3.setStyle(\"-fx-control-inner-background:#7FDCFF\");\r\n\t\tif(DraftMatrix[counter][2] == false)\r\n\t\t\tS3.setStyle(\"-fx-control-inner-background:white\");\r\n\t\tif(TruthMatrix[counter][2] == false && DraftMatrix[counter][2] == true)\r\n\t\t\tS3.setStyle(\"-fx-control-inner-background:#ff4d4d\");\r\n\t\t\r\n\t\t// Inner color for S4\r\n\t\tif(TruthMatrix[counter][3] == true && DraftMatrix[counter][3] == true)\r\n\t\t\tS4.setStyle(\"-fx-control-inner-background:#7FDCFF\");\r\n\t\tif(DraftMatrix[counter][3] == false)\r\n\t\t\tS4.setStyle(\"-fx-control-inner-background:white\");\r\n\t\tif(TruthMatrix[counter][3] == false && DraftMatrix[counter][3] == true)\r\n\t\t\tS4.setStyle(\"-fx-control-inner-background:#ff4d4d\");\r\n\t\t\r\n\t\t// Inner color for S5\r\n\t\tif(TruthMatrix[counter][4] == true && DraftMatrix[counter][4] == true)\r\n\t\t\tS5.setStyle(\"-fx-control-inner-background:#7FDCFF\");\r\n\t\tif(DraftMatrix[counter][4] == false)\r\n\t\t\tS5.setStyle(\"-fx-control-inner-background:white\");\r\n\t\tif(TruthMatrix[counter][4] == false && DraftMatrix[counter][4] == true)\r\n\t\t\tS5.setStyle(\"-fx-control-inner-background:#ff4d4d\");\r\n\t\t\r\n\t\t\r\n\t}", "title": "" }, { "docid": "37687de8616168155ee31d36659d6546", "score": "0.5425048", "text": "void setNightModeState(boolean b);", "title": "" }, { "docid": "f4463b26cd73767a0d938253d2843a5f", "score": "0.5423383", "text": "public void setBillState(int value) {\n this.billState = value;\n }", "title": "" }, { "docid": "207e7dbe82d41b9198465c40972df424", "score": "0.5421224", "text": "private void showItemState() {\n switch (item.getState()) {\n case DbConst.ITEM_STATE_FINAL:\n itemState.setImageResource(R.drawable.icon_arrived);\n break;\n\n case DbConst.ITEM_STATE_TRANSIT:\n itemState.setImageResource(R.drawable.icon_transit);\n break;\n\n default:\n itemState.setImageResource(R.drawable.icon_unknown);\n }\n }", "title": "" }, { "docid": "2f4e9006459f0af5b9b1e333a10f572e", "score": "0.5415175", "text": "public void switchSetting() {\n\t\tlight = (light + 1) % 4;\n\t}", "title": "" }, { "docid": "c2cf314de872e3056f71ea5510c7eeb6", "score": "0.54034245", "text": "public void setActive(boolean state);", "title": "" }, { "docid": "7f1fa83155b70a3a7f60c2750e632c5b", "score": "0.53844166", "text": "@FXML\n void selectTristate(ActionEvent event) {\n if (Tristate.isSelected()){\n TristateStates.setDisable(false);\n studyAbroad.setDisable(true);\n studyAbroad.setSelected(false);\n buttonCT.setDisable(false);\n buttonNY.setDisable(false);\n }\n else{\n TristateStates.setDisable(true);\n studyAbroad.setDisable(true);\n buttonNY.setSelected(false);\n buttonCT.setSelected(false);\n\n }\n }", "title": "" }, { "docid": "e95bd2ed2b5fce80c56690ba802580d1", "score": "0.53610414", "text": "public void showCards(boolean showCards) {\n this.showCards = showCards;\n }", "title": "" }, { "docid": "d6d57a46749bd8f7a93381492697e1bb", "score": "0.53592694", "text": "public void setState(int state) {\n// Indication initial = new Indication();\n adjustFasciaLights(state);\n if ((state == Block.TRK_IDLE) && (MyBlock.getDiscipline() != Block.CTC) &&\n (MyBlock.getDiscipline() != Block.DTC)){\n state = Block.TRK_RESERVED;\n }\n super.setState(state);\n// initial.setCondition(state);\n// MySignal.trackState(initial);\n OSIndication.setCondition(state);\n MySignal.trackState(OSIndication);\n if (Feeders[CurrentTrk] != null) {\n// Feeders[CurrentTrk].trackState(initial);\n Feeders[CurrentTrk].trackState(OSIndication);\n }\n }", "title": "" }, { "docid": "63276e8cabef7f4e065b89ccb43f73ad", "score": "0.53581744", "text": "public void setState(State s) {\r\n \tswitch (s)\r\n \t{\r\n \tcase DEFAULT:\r\n \tthis.setBackgroundDrawable(background);\r\n \tbreak;\r\n \t\r\n \tcase PRESSED:\r\n \tthis.setBackgroundResource(pressedStateBackground);\r\n \tbreak;\r\n \t\r\n \tcase PARENT:\r\n \tthis.setBackgroundResource(parentStateBackground);\r\n \tbreak;\r\n \t}\r\n }", "title": "" }, { "docid": "96cc4146372915cc710e925a8eb75e03", "score": "0.5357551", "text": "public void switchState(){\n indterminate=!indterminate;\n if(indterminate){\n decoratorBtn.setIndeterminate();\n decoratorSB.setIndeterminate();\n decoratorTB.setIndeterminate();\n decoratorTV.setIndeterminate();\n decoratorCB.setIndeterminate();\n }else {\n decoratorBtn.setDeterminate();\n decoratorSB.setDeterminate();\n decoratorTB.setDeterminate();\n decoratorTV.setDeterminate();\n decoratorCB.setDeterminate();\n }\n\n }", "title": "" }, { "docid": "969426b2021f74e4fd4599a71743c826", "score": "0.53503513", "text": "private void setState() {\n if (manager.getCurrentRecipeId() == AppManager.NONE) {\n return;\n }\n if (manager.getStartedRecipeId() == AppManager.NONE) {\n setDefault();\n } else if (manager.isCurrentRecipeStarted()) {\n setActive();\n } else {\n setInactive();\n }\n }", "title": "" }, { "docid": "2eb771c5b668e16dc0c9510424852cf4", "score": "0.53426653", "text": "private void setVisibilityState(CheckoutState state) {\n\t\tif (state == CheckoutState.OVERVIEW) {\n\t\t\tmFormContainer.setVisibility(View.VISIBLE);\n\t\t\tmSlideContainer.setVisibility(View.GONE);\n\t\t\tmCvvContainer.setVisibility(View.INVISIBLE);\n\t\t\tmBookingContainer.setVisibility(View.GONE);\n\t\t\tmBookingUnavailableContainer.setVisibility(View.GONE);\n\t\t\tmConfirmationContainer.setVisibility(View.GONE);\n\t\t}\n\t\telse if (state == CheckoutState.FORM_OPEN) {\n\t\t\tmFormContainer.setVisibility(View.VISIBLE);\n\t\t\tmSlideContainer.setVisibility(View.GONE);\n\t\t\tmCvvContainer.setVisibility(View.INVISIBLE);\n\t\t\tmBookingContainer.setVisibility(View.GONE);\n\t\t\tmBookingUnavailableContainer.setVisibility(View.GONE);\n\t\t\tmConfirmationContainer.setVisibility(View.GONE);\n\t\t}\n\t\telse if (state == CheckoutState.READY_FOR_CHECKOUT) {\n\t\t\tmFormContainer.setVisibility(View.VISIBLE);\n\t\t\tmSlideContainer.setVisibility(View.VISIBLE);\n\t\t\tmCvvContainer.setVisibility(View.INVISIBLE);\n\t\t\tmBookingContainer.setVisibility(View.GONE);\n\t\t\tmBookingUnavailableContainer.setVisibility(View.GONE);\n\t\t\tmConfirmationContainer.setVisibility(View.GONE);\n\t\t}\n\t\telse if (state == CheckoutState.CVV) {\n\t\t\tmFormContainer.setVisibility(View.INVISIBLE);\n\t\t\tmCvvContainer.setVisibility(View.VISIBLE);\n\t\t\tmSlideContainer.setVisibility(View.GONE);\n\t\t\tmBookingContainer.setVisibility(View.GONE);\n\t\t\tmBookingUnavailableContainer.setVisibility(View.GONE);\n\t\t\tmConfirmationContainer.setVisibility(View.GONE);\n\t\t}\n\t\telse if (state == CheckoutState.BOOKING) {\n\t\t\tmFormContainer.setVisibility(View.INVISIBLE);\n\t\t\tmCvvContainer.setVisibility(View.INVISIBLE);\n\t\t\tmSlideContainer.setVisibility(View.GONE);\n\t\t\tmBookingContainer.setVisibility(View.VISIBLE);\n\t\t\tmBookingUnavailableContainer.setVisibility(View.GONE);\n\t\t\tmConfirmationContainer.setVisibility(View.INVISIBLE);\n\t\t}\n\t\telse if (state == CheckoutState.BOOKING_UNAVAILABLE) {\n\t\t\tmFormContainer.setVisibility(View.INVISIBLE);\n\t\t\tmCvvContainer.setVisibility(View.INVISIBLE);\n\t\t\tmSlideContainer.setVisibility(View.GONE);\n\t\t\tmBookingContainer.setVisibility(View.GONE);\n\t\t\tmBookingUnavailableContainer.setVisibility(View.VISIBLE);\n\t\t\tmConfirmationContainer.setVisibility(View.INVISIBLE);\n\t\t}\n\t\telse if (state.shouldShowConfirmation()) {\n\t\t\tmFormContainer.setVisibility(View.INVISIBLE);\n\t\t\tmCvvContainer.setVisibility(View.INVISIBLE);\n\t\t\tmSlideContainer.setVisibility(View.GONE);\n\t\t\tmBookingContainer.setVisibility(View.INVISIBLE);\n\t\t\tmBookingUnavailableContainer.setVisibility(View.GONE);\n\t\t\tmConfirmationContainer.setVisibility(View.VISIBLE);\n\t\t}\n\t}", "title": "" }, { "docid": "3e0ea4183abcf2a5f92854b3c3e2d6b3", "score": "0.5327352", "text": "private void displayState()\n {\n System.out.println(\"ACTIVE CARD IS: \"+playerState.getActiveCard().toString());\n if(playerState.getActiveCard() instanceof Special)\n System.out.println(\"SELECTED COLOR IS: \"+(playerState.getActiveCard()).getColor());\n System.out.print(\"Your current hand: \");\n playerState.getHand().display();\n System.out.print(\"\\nSelect cards to play: \");\n for(int amountOfCards=0; amountOfCards<playerState.getHand().getSize(); amountOfCards++)\n {\n System.out.print(\"\\t[\"+amountOfCards+\"]\");\n }\n System.out.println();\n }", "title": "" }, { "docid": "c36557dcc4019278018f1b1730040e5b", "score": "0.5312023", "text": "public void setNightStyle() {\n mancalaFrame.setBackground(Color.BLACK);\n mancalaFrame.repaint();\n for (PitButtons button : pitButtons) {\n button.setBackground(Color.BLUE);\n button.setForeground(Color.WHITE);\n }\n }", "title": "" }, { "docid": "30781877c06ea0ac585b0480e6da376b", "score": "0.5304769", "text": "public void setIsShow(Integer isShow) {\n this.isShow = isShow;\n }", "title": "" }, { "docid": "30781877c06ea0ac585b0480e6da376b", "score": "0.5304769", "text": "public void setIsShow(Integer isShow) {\n this.isShow = isShow;\n }", "title": "" }, { "docid": "8200e4db4e8fc7bd3ac840b33061f8d0", "score": "0.52788574", "text": "public void setState(boolean state) { this.toggled = state; }", "title": "" }, { "docid": "89ef36fd0a78e274e78032436b73cbc6", "score": "0.5258788", "text": "public void setClosed() {\n card_front.setVisible(false);\n card_back.setVisible(true);\n }", "title": "" }, { "docid": "39871fd93ada6e92447cbe8282ecdc17", "score": "0.5234977", "text": "public void setRadarDisplayState(boolean showSensor) {\n this.showSensor = showSensor;\n }", "title": "" }, { "docid": "d571c5b7e2182e276870ed1a93aa3dc8", "score": "0.52238685", "text": "private void setButtonsState() {\n if (mGeofencesAdded) {\n mEnableGeofencesButton.setEnabled(false);\n mDisableGeofencesButton.setEnabled(true);\n } else {\n mEnableGeofencesButton.setEnabled(true);\n mDisableGeofencesButton.setEnabled(false);\n }\n }", "title": "" }, { "docid": "1bcc4d74ad90979bb09428ad8af3e4b1", "score": "0.5212273", "text": "@Override\n public void paintContent(PaintTarget target) throws PaintException {\n super.paintContent(target);\n \n if (isSwitchMode()) {\n target.addAttribute(\"type\", \"switch\");\n }\n target.addVariable(this, \"state\", booleanValue());\n }", "title": "" }, { "docid": "26515b5110b5a5fc3448da94b16aa6ec", "score": "0.5211472", "text": "public void setNightModeState(Boolean state) {\n SharedPreferences.Editor editor = mSwitchpref.edit();\n editor.putBoolean(\"NightMode\", state);\n editor.commit();\n }", "title": "" }, { "docid": "82fff951d9c457069a0f653f87037b2d", "score": "0.51836103", "text": "@Override\n\tpublic void setState(int s) {\n\t\tif (s == S_RED) {\n\t\t\ttored = true;\n\t\t} else if (s == S_GREEN) {\n\t\t\ttored = false;\n\t\t\tslow = false;\n\t\t} else if (s == S_YELLOW) {\n\t\t\ttored = false;\n\t\t\tslow = true;\n\t\t}\n\t\t//System.out.println(\"gfx (2) state \"+s+\": \"+tored+\"//\"+slow);\n\t}", "title": "" }, { "docid": "88a94a2c7ae4c343bf635b5230315961", "score": "0.517743", "text": "public void setBlackAndWhite()\n {\n if(wall != null) // only if it's painted already...\n {\n wall.changeColor(\"black\");\n window.changeColor(\"white\");\n roof.changeColor(\"black\");\n sun.changeColor(\"black\");\n }\n }", "title": "" }, { "docid": "b08a978ed803aa33715e0b14bec84bcc", "score": "0.5175097", "text": "void setModeSwitchVisible(boolean modeSwitchVisible);", "title": "" }, { "docid": "0008643955a27a976b5b07d92005e590", "score": "0.5173813", "text": "private void setState() {\n\t\tswitch (cm.getState()) {\n\t\tcase C.STATE_NORMAL:\n\t\t\tstatusTxt.setText(\"\");\n\t\t\tbreak;\n\t\tcase C.STATE_CHECK:\n\t\t\tstatusTxt.setTextColor(C.STATE_TEXT_COLOR_RED);\n\t\t\tstatusTxt.setText(\"Check\");\n\t\t\tbreak;\n\t\tcase C.STATE_DRAW:\n\t\t\tstatusTxt.setTextColor(C.STATE_TEXT_COLOR_GREY);\n\t\t\tstatusTxt.setText(\"Draw\");\n\t\t\tToast.makeText(this, \"Draw!\", Toast.LENGTH_SHORT).show();\n\t\t\tbreak;\n\t\tcase C.STATE_VICTORY_WHITE:\n\t\t\tif (g.thisPlayersTeam() == C.TEAM_WHITE) {\n\t\t\t\tstatusTxt.setTextColor(C.STATE_TEXT_COLOR_GREEN);\n\t\t\t\tstatusTxt.setText(\"Winner\");\n\t\t\t\tToast.makeText(this, \"Congratulations! You won the game!\",\n\t\t\t\t\t\tToast.LENGTH_SHORT).show();\n\t\t\t} else {\n\t\t\t\tstatusTxt.setTextColor(C.STATE_TEXT_COLOR_RED);\n\t\t\t\tstatusTxt.setText(\"Loser\");\n\t\t\t\tToast.makeText(this, \"Ouch! You lost the game!\",\n\t\t\t\t\t\tToast.LENGTH_SHORT).show();\n\t\t\t}\n\t\t\tbreak;\n\t\tcase C.STATE_VICTORY_BLACK:\n\t\t\tif (g.thisPlayersTeam() == C.TEAM_BLACK) {\n\t\t\t\tstatusTxt.setTextColor(C.STATE_TEXT_COLOR_GREEN);\n\t\t\t\tstatusTxt.setText(\"Winner\");\n\t\t\t\tToast.makeText(this, \"Congratulations! You won the game!\",\n\t\t\t\t\t\tToast.LENGTH_SHORT).show();\n\t\t\t} else {\n\t\t\t\tstatusTxt.setTextColor(C.STATE_TEXT_COLOR_RED);\n\t\t\t\tstatusTxt.setText(\"Loser\");\n\t\t\t\tToast.makeText(this, \"Ouch! You lost the game!\",\n\t\t\t\t\t\tToast.LENGTH_SHORT).show();\n\t\t\t}\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tstatusTxt.setText(\"\");\n\t\t\tbreak;\n\t\t}\n\t}", "title": "" }, { "docid": "c99f72e0825a9eaf489d68f8c8b33ff0", "score": "0.5164446", "text": "public void setupPortrayals()\n {\n gridPortrayal.setField(((GeneratedAutomataSimulationState)state).grid);\n gridPortrayal.setMap(\n new sim.util.gui.SimpleColorMap(\n new Color[] {new Color(0,0,0,0), Color.blue}));\n }", "title": "" }, { "docid": "3721dcfae9fe99836fc658417371d970", "score": "0.5159498", "text": "public void setShow(Boolean show)\n {\n this.show = show;\n }", "title": "" }, { "docid": "05eb32beb5b80524396c6dcf5f6db458", "score": "0.5155311", "text": "private void showPin(){\n imageViewBackspace.setImageDrawable(getResources().getDrawable(R.drawable.icon_03_arrowleft));\n if (imageViewPinOne.getVisibility() == View.INVISIBLE){\n imageViewPinOne.setVisibility(View.VISIBLE);\n }else if (imageViewPinOne.getVisibility() == View.VISIBLE && imageViewPinTwo.getVisibility() == View.INVISIBLE){\n imageViewPinTwo.setVisibility(View.VISIBLE);\n }else if (imageViewPinTwo.getVisibility() == View.VISIBLE && imageViewPinThree.getVisibility() == View.INVISIBLE){\n imageViewPinThree.setVisibility(View.VISIBLE);\n }else if (imageViewPinThree.getVisibility() == View.VISIBLE){\n imageViewPinFour.setVisibility(View.VISIBLE);\n }\n }", "title": "" }, { "docid": "ee94b47782f8540b74f62ed51eea5a9b", "score": "0.515154", "text": "private void _setUp(){\n\t\ti_panel.setState(true);\n\t\ti_panel.repaint();\n\t\t\n\t\tcurrentCount = 0;\n\t\tcurrentTrial = stimuli.nextTrial();\n\t\t\n\t\ts_panel.setColor(currentTrial.getColor());\n\t\ts_panel.setText(currentTrial.getText());\n\t\t\n\t\ts_panel.repaint();\t\t \n\t}", "title": "" }, { "docid": "9b67410242933f3076e1d16d4deedc26", "score": "0.51474196", "text": "public void setStates(BlockState[][][] states) {\n this.states = states;\n }", "title": "" }, { "docid": "b03530a8a83379ec8d9f0d1403b6ca11", "score": "0.51461166", "text": "public void setState(int a)\r\n\t{\r\n\t\tswitch(a)\r\n\t\t{\r\n\t\t\tcase 0:\tleftSet = true;\r\n\t\t\t\t\trightSet = false;\r\n\t\t\t\t\tsetLeftImage(R.drawable.toggle_left_button_selected);\r\n\t\t\t\t\tsetRightImage(R.drawable.toggle_right_button_unselected);\r\n //change text color\r\n left.setTextColor(selectedColor);\r\n right.setTextColor(unselectedColor);\r\n\r\n\r\n\t\t\t\t\tset = 0;\t\t\t\t\t\r\n\t\t\t\t\tbreak;\r\n\t\t\t\r\n\t\t\tcase 1:\tleftSet = false;\r\n\t\t\t\t\trightSet = true;\r\n\t\t\t\t\tsetLeftImage(R.drawable.toggle_left_button_unselected);\r\n\t\t\t\t\tsetRightImage(R.drawable.toggle_right_button_selected);\r\n //change the text color\r\n left.setTextColor(unselectedColor);\r\n right.setTextColor(selectedColor);\r\n\r\n\t\t\t\t\tset = 1;\r\n\t\t\t\t\tbreak;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "1ef01da3d94a82834019f450d5a61851", "score": "0.51400447", "text": "public void setSprinting(boolean value)\r\n {\r\n if (value)\r\n {\r\n setStalking(false);\r\n setWalking(false);\r\n setFlying(false);\r\n }\r\n }", "title": "" }, { "docid": "8df48d9b02baf134401687e0252c5b2d", "score": "0.51379895", "text": "public void turn(){\n this.isWhite = !isWhite;\n BoardGUI.changeDisc(x,y, isWhite); //turn also GUI disc\n }", "title": "" }, { "docid": "87c46e6499980f24dc36803eb072c30b", "score": "0.51360756", "text": "public void changeState() {\r\n\t\tphotoListView.setDisable(true);\r\n\t\tsave.setVisible(true);\r\n\t\tcancel.setVisible(true);\r\n }", "title": "" }, { "docid": "e7a81e73781e68c9d13e21dc2c807482", "score": "0.51231885", "text": "public StripedProcessButton setStripeGradient(boolean stripeGradient) {\n mStripedDrawable.setStripeGradient(stripeGradient);\n invalidate();\n return this;\n }", "title": "" }, { "docid": "56ea14b7176daec7c26aae419501bfde", "score": "0.5115769", "text": "public void settingSuit(){\n\t\tthis.hideTrumpButtons();\n\t\tthis.showSuitButtons();\n\t\tjLabelDealer.setVisible(false);\n\t\tTurnedCard.setVisible(false);\n\t\tsettingSuit = true;\n\t}", "title": "" }, { "docid": "4c63f53bc195c724ba95418fe63be28e", "score": "0.51137054", "text": "public void setState(Object val)\n {\n if(val instanceof GralColor){\n if(switchState == State.On){\n colorBackOn = (GralColor)val;\n } else {\n dyda.backColor = (GralColor)val;\n }\n } else {\n String sVal = (val instanceof String) ? (String)val : null;\n int nVal = val instanceof Integer ? ((Integer)val).intValue(): -1;\n if(sVal !=null && (sVal.equals(\"1\") || sVal.equals(\"true\") || sVal.equals(\"on\"))\n || sVal == null && nVal !=0){\n switchState = State.On;\n } else if(sVal !=null && (sVal.equals(\"0\") || sVal.equals(\"false\") || sVal.equals(\"off\"))\n || nVal == 0){\n switchState = State.Off;\n }\n }\n redraw(100,100);\n }", "title": "" }, { "docid": "c17d85150073c494a1c34f6dc231cfe0", "score": "0.510625", "text": "public void setRedBill(boolean value) {\n this.redBill = value;\n }", "title": "" }, { "docid": "89c233d4af5459b1dad8c218117c779b", "score": "0.51062447", "text": "public void setIsDTR(boolean value) {\r\n this.isDTR = value;\r\n }", "title": "" }, { "docid": "cabec8cb1538b365e86b19d5ab7a662e", "score": "0.5103029", "text": "public void setIs_show(Boolean is_show) {\n this.is_show = is_show;\n }", "title": "" }, { "docid": "9089b8c9cb2dedaccb7ea51e52ab5b85", "score": "0.5098723", "text": "public boolean onStateChange(int[] states) {\n boolean enabled = false;\n boolean pressed = false;\n for (int state : states) {\n if (state == 16842910) {\n enabled = true;\n } else if (state == 16842919) {\n pressed = true;\n }\n }\n mutate();\n if (enabled && pressed) {\n setColorFilter(this._pressedFilter);\n } else if (!enabled) {\n setColorFilter(null);\n setAlpha(this._disabledAlpha);\n } else {\n setColorFilter(null);\n setAlpha(this._fullAlpha);\n }\n invalidateSelf();\n return super.onStateChange(states);\n }", "title": "" }, { "docid": "8af0db7466a953ff0427915f07c01eac", "score": "0.50969464", "text": "public void setTrkState(int state) {\n TrkState = state;\n mergeTrkStates();\n }", "title": "" }, { "docid": "55a9bf0eee0bc509b898c3fe79018b43", "score": "0.50947595", "text": "protected void showIndicator(){\n try {\n this.background.setStyle(\n \"-fx-effect: dropshadow(three-pass-box, black, 10, 0, 0, 0);\" +\n \"-fx-background-image: url('/client/resources/img/buildings/\" + this.building.getBackground() + \" ');\" +\n \"-fx-background-repeat: stretch;\" +\n \"-fx-background-position: center center;\" +\n \"-fx-background-size: 120 200\"\n );\n\n } catch (RemoteException e) {\n e.printStackTrace();\n }\n\n }", "title": "" }, { "docid": "d83eb455b55e51d5a0563cee839dc830", "score": "0.50931567", "text": "void setState(ButtonDisplay.ButtonState state);", "title": "" }, { "docid": "7ca31b90483080db5bdc3c93e98136f5", "score": "0.5091752", "text": "private void setStates() {\n\n\t\tBundle extras = getIntent().getExtras();\n\n\t\tnoteID = extras.getInt(Values.NoteID, 0);\n\n\t}", "title": "" }, { "docid": "ece9da9858dc0a702acb5853f64fd099", "score": "0.5086063", "text": "private void backed() {\n\t\tstatus = \"backed\";\n\t\ttv_05.setTextColor(getResources().getColor(R.color.main_color));\n\t\ttv_01.setTextColor(getResources().getColor(R.color.little_gray));\n\t\ttv_02.setTextColor(getResources().getColor(R.color.little_gray));\n\t\ttv_03.setTextColor(getResources().getColor(R.color.little_gray));\n\t\ttv_04.setTextColor(getResources().getColor(R.color.little_gray));\n\t\ttv_06.setTextColor(getResources().getColor(R.color.little_gray));\n\t}", "title": "" }, { "docid": "fe0f0434a7b04297c078c3768963c72b", "score": "0.50848585", "text": "private void showSuitButtons(){\n\t\theartsButton.setVisible(true);\n\t\tclubsButton.setVisible(true);\n\t\tdiamondsButton.setVisible(true);\n\t\tspadesButton.setVisible(true);\n\t\tsuitPassButton.setVisible(true);\n\t}", "title": "" }, { "docid": "e740cc8a200fdce11da61eced293ea63", "score": "0.508239", "text": "private void setVisibilities() {\n\t\tclose.setVisibility(View.VISIBLE);\n\t\tavatar.setVisibility(View.GONE);\n\t\tmerchant_underline.setPaintFlags(Paint.UNDERLINE_TEXT_FLAG);\n\t\thelp_underline.setPaintFlags(Paint.UNDERLINE_TEXT_FLAG);\n\t}", "title": "" }, { "docid": "f32dc0e30ee434aff8490257a1ab3352", "score": "0.50728714", "text": "public void setShowMars(boolean set) {\n\t\t\t this.showMars = set;\n\t\t }", "title": "" }, { "docid": "e6061327527afbfc5132bfa9484530cc", "score": "0.5070823", "text": "public void setNextState() {\n\t\tstateIndex++;\n\t\tlast = canvas.get(stateIndex - 1);\n\t\tcanvas.add(new Canvas(last.getMinReal(), last.getMaxReal(), last.getMinImag(), last.getMaxImag(),\n\t\t\t\tlast.getNextColor(last.getColorStyle()), last.getMaxIteration()));\n\t}", "title": "" }, { "docid": "e2bca62ff4e0cdfa8339aeb60788e158", "score": "0.5062068", "text": "public void turnLightsOn()\n {\n lightsOn = true;\n\n //Update lights on image\n this.lightsOnImage = createBackground();\n\n // Set the parent class image\n setImage(lightsOnImage);\n }", "title": "" }, { "docid": "a7f479eea5406e1286dd0296bc0e03ee", "score": "0.5047495", "text": "void withdraw(CardStateTransitions st) {\n System.out.println(ENTER_PIN_TO_PROCEED);\n throw new UnsupportedOperationException(st.OPERATION_NOT_SUPPORTED);\n }", "title": "" }, { "docid": "9eee4143606dcc2dc7a68f86131a4b78", "score": "0.50409436", "text": "public void setShowPressure(boolean set) {\n\t\t this.showPressure = set;\n\t }", "title": "" }, { "docid": "dc96d61f2d7aa603ef2a22f0ef7da959", "score": "0.5037729", "text": "@Override\n public void onClick(View v) {\n if (flag3 == 0) {\n turbo.setBackgroundResource(R.drawable.turbo_on);\n flag3++;\n } else if (flag3 == 1) {\n turbo.setBackgroundResource(R.drawable.turbo_off);\n flag3--;\n }\n }", "title": "" }, { "docid": "303c4e77ff0890485773d8b3243db799", "score": "0.5037267", "text": "public StripedProcessButton setStripeWidth(float stripeWidth) {\n mStripedDrawable.setStripeWidth(stripeWidth * mDensity);\n invalidate();\n return this;\n }", "title": "" }, { "docid": "e5406428174703ec761cf416e5a800b9", "score": "0.50345916", "text": "public abstract void changeStates();", "title": "" }, { "docid": "ef8d33466aa341bbe74a92c854cef18a", "score": "0.5033448", "text": "private void setColorsSwt(){\n }", "title": "" }, { "docid": "f4131682c29c4f4b93ebb731513419bc", "score": "0.502914", "text": "private void setState() {\n \t\tswitch (cm.getState()) {\n \t\tcase C.STATE_NORMAL:\n \t\t\tstatusTxt.setText(\"\");\n \t\t\tbreak;\n \t\tcase C.STATE_CHECK:\n \t\t\tstatusTxt.setTextColor(C.STATE_TEXT_COLOR_RED);\n \t\t\tstatusTxt.setText(\"Check\");\n \t\t\tbreak;\n \t\tcase C.STATE_DRAW:\n \t\t\tstatusTxt.setTextColor(C.STATE_TEXT_COLOR_GREY);\n \t\t\tstatusTxt.setText(\"Draw\");\n \t\t\tToast.makeText(this, \"Draw!\", Toast.LENGTH_SHORT).show();\n \t\t\tbreak;\n \t\tcase C.STATE_VICTORY_WHITE:\n \t\t\tif (g.thisPlayersTeam() == C.TEAM_WHITE) {\n \t\t\t\tstatusTxt.setTextColor(C.STATE_TEXT_COLOR_GREEN);\n \t\t\t\tstatusTxt.setText(\"Winner\");\n \t\t\t\tToast.makeText(this, \"Congratulations! You won the game!\",\n \t\t\t\t\t\tToast.LENGTH_SHORT).show();\n \t\t\t} else {\n \t\t\t\tstatusTxt.setTextColor(C.STATE_TEXT_COLOR_RED);\n \t\t\t\tstatusTxt.setText(\"Loser\");\n \t\t\t\tToast.makeText(this, \"Ouch! You lost the game!\",\n \t\t\t\t\t\tToast.LENGTH_SHORT).show();\n \t\t\t}\n \t\t\tbreak;\n \t\tcase C.STATE_VICTORY_BLACK:\n \t\t\tif (g.thisPlayersTeam() == C.TEAM_BLACK) {\n \t\t\t\tstatusTxt.setTextColor(C.STATE_TEXT_COLOR_GREEN);\n \t\t\t\tstatusTxt.setText(\"Winner\");\n \t\t\t\tToast.makeText(this, \"Congratulations! You won the game!\",\n \t\t\t\t\t\tToast.LENGTH_SHORT).show();\n \t\t\t} else {\n \t\t\t\tstatusTxt.setTextColor(C.STATE_TEXT_COLOR_RED);\n \t\t\t\tstatusTxt.setText(\"Loser\");\n \t\t\t\tToast.makeText(this, \"Ouch! You lost the game!\",\n \t\t\t\t\t\tToast.LENGTH_SHORT).show();\n \t\t\t}\n \t\t\tbreak;\n \t\tdefault:\n \t\t\tstatusTxt.setText(\"\");\n \t\t\tbreak;\n \t\t}\n \t}", "title": "" }, { "docid": "6904e6b9ee5732c759fd040e6af3e29e", "score": "0.50190264", "text": "void setGreeceVisible();", "title": "" }, { "docid": "0799d2800708ca0478f39cbdbd749ea3", "score": "0.5016056", "text": "public void setWhite(boolean white){\n this.white = white;\n }", "title": "" }, { "docid": "c5c25e20a34b81286892531bec28bc11", "score": "0.5015822", "text": "public void active() {\n for(int x = 0; x < panels.size(); x++) {\n panels.get(x).setBackground(new Color(255,255,255,255));\n TableViewer.gameBackground.repaint();\n }\n }", "title": "" }, { "docid": "f0531ce265d1ab3c8914b600aca36c19", "score": "0.5014747", "text": "public void setCard(Card card) {\n if (card instanceof EmptyCard) {\n setClosed();\n return;\n }\n\n setOpened();\n this.card = card;\n this.card_name.setText(card.getName());\n this.card_description.setText(card.getDescription());\n\n if (card.getElement() == Element.AIR) {\n card_front.setStyle(\"-fx-background-color: #FCE5B0; -fx-border-color: #91ccef;\");\n card_name.setStyle(\"-fx-background-color: #B46826; -fx-text-fill: #fdfbc8;\");\n card_type.setStyle(\"-fx-text-fill: #967862\");\n card_description.setStyle(\"-fx-background-color: #EBF5EE\");\n }\n else if(card.getElement() == Element.WATER){\n card_front.setStyle(\"-fx-background-color: #80B6E3; -fx-border-color: #E6C38C;\");\n card_name.setStyle(\"-fx-background-color: #1A4C9C; -fx-text-fill: #fdfbc8;\");\n card_type.setStyle(\"-fx-text-fill: #173158\");\n card_description.setStyle(\"-fx-background-color: #C4E0F9;\");\n }\n else if(card.getElement() == Element.FIRE){\n card_front.setStyle(\"-fx-background-color: #BA5D22; -fx-border-color: #F18517;\");\n card_name.setStyle(\"-fx-background-color: #841E00; -fx-text-fill: #efeab9;\");\n card_type.setStyle(\"-fx-text-fill: #ffc12f\");\n card_description.setStyle(\"-fx-background-color: #DDA448;\");\n }\n else if(card.getElement() == Element.EARTH){\n card_front.setStyle(\"-fx-background-color: #4C4A29; -fx-border-color: EE9B44;\");\n card_name.setStyle(\"-fx-background-color: #2F2F1B; -fx-text-fill:#efeab9;\");\n card_type.setStyle(\"-fx-text-fill: #f0cd8c\");\n card_description.setStyle(\"-fx-background-color: #F1F7ED;\");\n }\n else if(card.getElement() == Element.ENERGY){\n card_front.setStyle(\"-fx-background-color: #d796ea; -fx-border-color: #3C215F;\");\n card_name.setStyle(\"-fx-background-color: #69499C; -fx-text-fill:#fdfbc8;\");\n card_type.setStyle(\"-fx-text-fill: #921299\");\n card_description.setStyle(\"-fx-background-color: #F0E6EF;\");\n }\n String type;\n this.card_attribute_pane.getChildren().clear();\n FXMLLoader attribute_loader;\n try {\n if (card instanceof Character) {\n type = \"CHARACTER\";\n attribute_loader = new FXMLLoader(getClass().getResource(\"../view/CharacterAttribute.fxml\"));\n card_attribute_box = attribute_loader.load();\n AtkDefAttributeController controller = attribute_loader.getController();\n controller.setAttribute(((Character)this.card).getAtk(), ((Character)this.card).getDef(), ((Character)this.card).getPower());\n } else if (card instanceof Land) {\n type = \"LAND\";\n } else {\n if (card instanceof Aura) {\n type = \"AURA\";\n attribute_loader = new FXMLLoader(getClass().getResource(\"../view/AuraAttribute.fxml\"));\n card_attribute_box = attribute_loader.load();\n AtkDefAttributeController controller = attribute_loader.getController();\n controller.setAttribute(((Aura)this.card).getDeltaAtk(), ((Aura)this.card).getDeltaDef(), ((Aura)this.card).getPower());\n } else if (card instanceof PowerUp) {\n type = \"POWER UP\";\n attribute_loader = new FXMLLoader(getClass().getResource(\"../view/OtherAttribute.fxml\"));\n card_attribute_box = attribute_loader.load();\n OtherAttributeController controller = attribute_loader.getController();\n controller.setAttribute(\"Powers up a character\", ((Skill)this.card).getPower());\n } else {\n type = \"DESTROY\";\n attribute_loader = new FXMLLoader(getClass().getResource(\"../view/OtherAttribute.fxml\"));\n card_attribute_box = attribute_loader.load();\n OtherAttributeController controller = attribute_loader.getController();\n controller.setAttribute(\"Destroys a character card\", ((Skill)this.card).getPower());\n }\n }\n if (!(card instanceof Land)) {\n card_description.prefHeightProperty().bind(card_bottom.prefHeightProperty().multiply(0.7));\n card_attribute_pane.prefHeightProperty().bind(card_bottom.prefHeightProperty().multiply(0.3));\n\n this.card_attribute_box.prefHeightProperty().bind(this.card_attribute_pane.prefHeightProperty());\n this.card_attribute_box.prefWidthProperty().bind(this.card_attribute_pane.prefWidthProperty());\n this.card_attribute_pane.getChildren().add(card_attribute_box);\n } else {\n card_description.prefHeightProperty().bind(card_bottom.prefHeightProperty());\n card_attribute_pane.prefHeightProperty().bind(card_bottom.prefHeightProperty().multiply(0));\n }\n this.card_type.setText(type);\n } catch (Exception e) {\n System.out.println(\"LOADING ATTRIBUTE: \" + e);\n }\n\n\n\n File file = null;\n try {\n file = new File(getClass().getResource(\"../\" + this.card.getIMGPath()).toURI());\n } catch (Exception e) {\n System.out.println(\"Error: \" + e);\n }\n Image image = new Image(file.toURI().toString());\n this.card_image.setImage(image);\n\n try {\n file = new File(getClass().getResource(\"../\" + this.card.getElement().toString()).toURI());\n } catch (Exception e) {\n System.out.println(\"Error: \" + e);\n }\n image = new Image(file.toURI().toString());\n this.card_element.setImage(image);\n }", "title": "" }, { "docid": "2f84c8d609173daf7ced7a3ff395772b", "score": "0.50134325", "text": "@FXML\r\n private void setDefaults() {\n DRTSGM.setDisasterEffectHasBeenSelected(Boolean.TRUE);\r\n\r\n //2. Environment Factors\r\n DRTSGM.setAllEesSelectionsToDefaults();\r\n\r\n //3. Weighting Criteria\r\n // set the calculate button to 'ret to go'\r\n // Still half baked...\r\n setCalculateButtonMode();\r\n }", "title": "" }, { "docid": "f11b1b13da338fb49ebb1648abaa20dc", "score": "0.50087386", "text": "public void setShow(Show show) {\n\t\tthis.show = show;\n\t}", "title": "" }, { "docid": "6f6257b5e43197cb983c5ac03716b0b5", "score": "0.5004524", "text": "public void setBlackAndWhite()\n {\n if(wall != null) // only if it's painted already...\n {\n wall.changeColor(\"black\");\n window.changeColor(\"white\");\n roof.changeColor(\"black\");\n chimney.changeColor(\"black\");\n garage.changeColor(\"white\");\n garageDoor.changeColor(\"black\");\n grass.changeColor(\"white\");\n smokeOne.changeColor(\"black\");\n smokeTwo.changeColor(\"black\");\n smokeTwo.changeColor(\"black\");\n }\n }", "title": "" }, { "docid": "fea7c0eb142af9d34b8dffa4295a5df6", "score": "0.5004355", "text": "public void setIsShow(Boolean isShow) {\n this.isShow = isShow;\n }", "title": "" }, { "docid": "864fafeb7e389cc51b4f54d288c94289", "score": "0.50022125", "text": "public void setState(){\n\t\t\n\t}", "title": "" }, { "docid": "08709e679b41b081f5f87eb4024a1c74", "score": "0.49959216", "text": "protected void adjustFasciaLights(int state) {\n IOSpec cmd;\n if (!OSIndication.isTrackandTime() && (state == Block.TRK_AND_TIME)) {\n // Turn off the Locked light and turn on the Unlocked light\n if ( (cmd = MyPoints.getLockCmds(SwitchPoints.LOCKOFFCMD)) != null) {\n cmd.sendCommand();\n }\n if ( (cmd = MyPoints.getLockCmds(SwitchPoints.LOCKONCMD)) != null) {\n cmd.sendUndoCommand();\n }\n if ( (cmd = MyPoints.getLockCmds(SwitchPoints.UNLOCKONCMD)) != null) {\n cmd.sendCommand();\n }\n }\n else if ( (OSIndication.isTrackandTime()) && (state != Block.TRK_AND_TIME)) {\n // Turn off the Unlocked light and turn on the Locked light\n if ( (cmd = MyPoints.getLockCmds(SwitchPoints.UNLOCKOFFCMD)) != null) {\n cmd.sendCommand();\n }\n if ( (cmd = MyPoints.getLockCmds(SwitchPoints.UNLOCKONCMD)) != null) {\n cmd.sendUndoCommand();\n }\n if ( (cmd = MyPoints.getLockCmds(SwitchPoints.LOCKONCMD)) != null) {\n cmd.sendCommand();\n }\n } \n OSIndication.setCondition(state);\n }", "title": "" }, { "docid": "17a74d23619a353ad87d59e8679c400b", "score": "0.4995853", "text": "private void setScreenStateInternal(int state) {\n IBiometricsFingerprint daemon = getFingerprintDaemon();\n if (daemon == null) {\n LogUtil.w(\"FingerprintService\", \"setScreenStateInternal: no fingerprintd!\");\n return;\n }\n try {\n LogUtil.d(\"FingerprintService\", \"setScreenState ( \" + state + \" )\");\n daemon.setScreenState(state);\n } catch (RemoteException e) {\n LogUtil.e(\"FingerprintService\", \"setScreenState failed\", e);\n }\n }", "title": "" }, { "docid": "0a20c8e7dd333c36346492f6c80c7990", "score": "0.49951112", "text": "private void updateStates() {\n\t\tint myDesign = myDesigns[myRefStrategy];\n\t\tint partnerDesign = partnerDesigns[partnerRefStrategy];\n visibleStates.clear();\n\t\tvisibleStates.add(states[myDesign][partnerDesign]);\n\t\tif((partnerDesign - 1) >= 0){\n\t\t\tvisibleStates.add(states[myDesign][partnerDesign - 1]);\n\t\t}\n\t\tif((partnerDesign + 1) <= (Designer.NUM_DESIGNS - 1)){\n\t\t\tvisibleStates.add(states[myDesign][partnerDesign + 1]);\n\t\t}\n\t\tif((myDesign - 1) >= 0){\n\t\t\tvisibleStates.add(states[myDesign - 1][partnerDesign]);\n\t\t}\n\t\tif((myDesign + 1) <= (Designer.NUM_DESIGNS - 1)){\n\t\t\tvisibleStates.add(states[myDesign + 1][partnerDesign]);\n\t\t}\n\t\trepaint();\n\t}", "title": "" }, { "docid": "1d5b50e03b5b4b42c1a7112735537473", "score": "0.49934533", "text": "void setSwissVisible();", "title": "" }, { "docid": "f712898fc77702e84258c1ec0a9c6a10", "score": "0.49913982", "text": "private void updateView(boolean on) {\n if(on) {\n btOpen.setEnabled(false);\n btClose.setEnabled(true);\n btWrite.setEnabled(true);\n btRead.setEnabled(true);\n } else {\n btOpen.setEnabled(true);\n btClose.setEnabled(false);\n btWrite.setEnabled(false);\n btRead.setEnabled(false);\n }\n }", "title": "" }, { "docid": "35a1eefb94d9d01e872e12bf1101a76e", "score": "0.49907202", "text": "public static void setInvis(Button[] buttons){\n for (Button button : buttons){\n if (button.isDisabled()){\n button.setVisible(false);\n }\n }\n }", "title": "" }, { "docid": "286fdb9b659499342887b30c113478d6", "score": "0.4990038", "text": "private void setShipColors() {\n\t\tif (size == 5) {\n\t\t\tthis.color = new Color(176, 196, 222);\n\n\t\t} else if (size == 4) {\n\t\t\tthis.color = new Color(143, 188, 143);\n\t\t} else if (size == 3) {\n\t\t\tthis.color = new Color(255, 215, 0);\n\t\t} else if (size == 2) {\n\t\t\tthis.color = new Color(188, 143, 143);\n\t\t} else if (size == 1) {\n\t\t\tthis.color = new Color(160, 32, 240);\n\t\t}\n\t}", "title": "" }, { "docid": "949528c70016294293018f499abe6b00", "score": "0.4989151", "text": "@FXML\n void selectInternational(ActionEvent event) {\n if (International.isSelected()){\n TristateStates.setDisable(true);\n studyAbroad.setDisable(false);\n buttonCT.setSelected(false);\n buttonNY.setSelected(false);\n }\n else{\n TristateStates.setDisable(false);\n studyAbroad.setDisable(true);\n studyAbroad.setSelected(false);\n buttonNY.setDisable(true);\n buttonCT.setDisable(true);\n }\n\n }", "title": "" }, { "docid": "a27cbd4ec2812633facb1c55a088645f", "score": "0.49758852", "text": "public void toggle()\n {\n state = !state;\n Log.defcon2(this, \"Light Toggled\");\n solenoid.set(state);\n }", "title": "" }, { "docid": "8f4e07fdfaa8c874dc50412086b50068", "score": "0.49752024", "text": "private void all() {\n\t\tstatus = \"\";\n\t\ttv_01.setTextColor(getResources().getColor(R.color.main_color));\n\t\ttv_02.setTextColor(getResources().getColor(R.color.little_gray));\n\t\ttv_03.setTextColor(getResources().getColor(R.color.little_gray));\n\t\ttv_04.setTextColor(getResources().getColor(R.color.little_gray));\n\t\ttv_05.setTextColor(getResources().getColor(R.color.little_gray));\n\t\ttv_06.setTextColor(getResources().getColor(R.color.little_gray));\n\t}", "title": "" }, { "docid": "7ea7688387604ad1b10ab9cf035892fa", "score": "0.4972642", "text": "public StripedProcessButton setStripeRevert(boolean stripeRevert) {\n mStripedDrawable.setStripeRevert(stripeRevert);\n invalidate();\n return this;\n }", "title": "" }, { "docid": "14c1977e8ab795597253bb5606391a1d", "score": "0.49698916", "text": "public void setState( LinesPlotState state ) {\n state_ = state;\n }", "title": "" }, { "docid": "35891d2800e2a8efb437177f4cfb73fc", "score": "0.4966099", "text": "public void setIsPreview(boolean value) {\n this.isPreview = value;\n }", "title": "" }, { "docid": "a1d543e2ffca3a1cbb81b5471a132e5b", "score": "0.49659783", "text": "@Override\r\n public void setEnabled(boolean newSetting) {\r\n boolean oldSetting = isEnabled();\r\n super.setEnabled(newSetting);\r\n /*\r\n * Show HUD only when this state is enabled.\r\n */\r\n if (!oldSetting && newSetting) {\r\n TestSkyControl.hud.setEnabled(showHud);\r\n } else if (oldSetting && !newSetting) {\r\n TestSkyControl.hud.setEnabled(false);\r\n }\r\n }", "title": "" }, { "docid": "8b2b808a704eada2b19a9861638c8477", "score": "0.496585", "text": "public void setAllRepairsPane() {\n allRepairs.setVisible(true);\n backButton.setVisible(false);\n repairsPane.setVisible(false);\n retReturnButton.setVisible(false);\n retRegisterButton.setVisible(false);\n editRepairs.setVisible(false);\n }", "title": "" }, { "docid": "018e2c923e4892f2c32ba8f35a2d4fc2", "score": "0.49626777", "text": "void setFranceVisible();", "title": "" }, { "docid": "6454ad3f6cd806457140343bff15c224", "score": "0.49611226", "text": "private void updateStates(){\n\t\tfor(int i=0; i<associatedBlocks.length; i++){\n\t\t\tlightsAndCrossings(Integer.parseInt(associatedBlocks[i]));\n\t\t\tif(Integer.parseInt(associatedBlocks[i]) == tcgui.getSelectedBlockId()){\n\t\t\t\tguiUpdate(tc);\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "8e847682644bc745e96d0b3ff7f66551", "score": "0.49534985", "text": "public void showEverything(){\n\t\tfor(int i = 0; i < (int)this.dimension.getHeight(); i++){\n\t\t\tfor(int j = 0; j < (int)this.dimension.getWidth(); j++){\n\t\t\t\tif((this.cells[i][j].isMined() && this.cells[i][j].isHidden()) || (!this.cells[i][j].isMined() && !this.cells[i][j].isHidden())) this.cells[i][j].setState(Cell.REVEALED);\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "c6e589c1975f7bdeebece86da336e9ae", "score": "0.4950027", "text": "private void showPreviews() {\n \n int r = 0;\n int c = 0;\n \n \n // Clears both preview grids\n for(int i = 0; i < 5; i++) {\n for(int j = 0; j < 5; j++) {\n currPieceGrid[i][j].setColor(DEFAULT_TILE_COLOR);\n currPieceGrid[i][j].setVisible(false);\n nextPieceGrid[i][j].setColor(DEFAULT_TILE_COLOR);\n nextPieceGrid[i][j].setVisible(false);\n }\n }\n \n \n // Selected piece preview\n for (Point p : selectedPiece.squares) {\n \n // Uses the relative x,y positions of the current piece point to its origin block to get a real tile on the grid\n r = 2 + p.x;\n c = 2 + p.y;\n \n // Sets piece as used and changes its color\n currPieceGrid[r][c].setColor(selectedPiece.getColor());\n currPieceGrid[r][c].setBorder(defaultPreviewBorder);\n currPieceGrid[r][c].setVisible(true);\n }\n \n \n // Next piece preview\n for (Point p : nextPiece.squares) {\n \n // Uses the relative x,y positions of the current piece point to its origin block to get a real tile on the grid\n r = 2 + p.x;\n c = 2 + p.y;\n \n // Sets piece as used and changes its color\n nextPieceGrid[r][c].setColor(nextPiece.getColor());\n nextPieceGrid[r][c].setBorder(defaultPreviewBorder);\n nextPieceGrid[r][c].setVisible(true);\n }\n }", "title": "" }, { "docid": "a4bce67396fdd91c24a47fb7e6a2073c", "score": "0.49457324", "text": "public void toggle() {\r\n \t\tif (!turnedOn) {\r\n \t\t\tcreateBoxes();\r\n \t\t\tif (hasBoxes()) {\r\n \t\t\t\tdecorate();\r\n \t\t\t}\r\n \t\t} else {\r\n \t\t\tundecorate();\r\n \t\t}\r\n \t}", "title": "" }, { "docid": "f44309407ef6a969aec546c1d1939f7f", "score": "0.49427292", "text": "protected void setupCardVisualStyle() {\n }", "title": "" } ]
efe758004a14536839418f744770aad4
Performs the actual "appending" operation to the underlying data structure that holds the validations. Implementations shouldn't try to do more than that in this step.
[ { "docid": "c694e5ecf19040e41f4ff2ae973efa2c", "score": "0.65669954", "text": "public abstract <T extends Annotation> void performAppend(ConstraintValidation<T> validation);", "title": "" } ]
[ { "docid": "a6cddb931837b273f66437c73260adbb", "score": "0.5835396", "text": "@Override\n public void append(BaseEntity entity) {\n addErrors(entity.getErrors());\n }", "title": "" }, { "docid": "ce658f6b740c4c31b5961b6a22502345", "score": "0.5277431", "text": "gov.nih.nlm.ncbi.www.Blast4ReplyDocument.Blast4Reply.Errors addNewErrors();", "title": "" }, { "docid": "98e29199611fd8cb37692e197cfc623c", "score": "0.52122545", "text": "protected void validate()\n\t{\n\t\tif( !valid )\n\t\t{\n\t\t\tupdateCopyNumbers();\n\t\t\tvalid = true;\n\t\t}\n\t}", "title": "" }, { "docid": "14cf1156ed3bf282d8dc9d2b773fe76c", "score": "0.51800644", "text": "private void rangeCheckForAdd(int index) {\n\t\tif ( index > size() || index < 0 )\n\t\t\tthrow new IndexOutOfBoundsException(\"Invalid Adding Index:\"+index);\n\t}", "title": "" }, { "docid": "b58e6a26342994ba4125a38a62df2cba", "score": "0.51465124", "text": "protected void sequence_Field_AppendEntryToTable(ISerializationContext context, Field_AppendEntryToTable semanticObject) {\n\t\tif (errorAcceptor != null) {\n\t\t\tif (transientValues.isValueTransient(semanticObject, LuaPackage.Literals.FIELD__VALUE) == ValueTransient.YES)\n\t\t\t\terrorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, LuaPackage.Literals.FIELD__VALUE));\n\t\t}\n\t\tSequenceFeeder feeder = createSequencerFeeder(context, semanticObject);\n\t\tfeeder.accept(grammarAccess.getField_AppendEntryToTableAccess().getValueExpressionParserRuleCall_0(), semanticObject.getValue());\n\t\tfeeder.finish();\n\t}", "title": "" }, { "docid": "8cfc8afcfad93b46a8b43cef0c21d1ba", "score": "0.5072168", "text": "private void validateAndAddtoList(List<State> nextValidStates, State newState) {\n\t\tif (newState.isValidState()) {\n\t\t\tnewState.setParentNode(this);\n\t\t\tnextValidStates.add(newState);\n\t\t}\n\t}", "title": "" }, { "docid": "e562b0e7aceba136f2450c3fda0423fe", "score": "0.50338924", "text": "@Override\r\n\tpublic void insert(CheckTransactModel data) {\n\t\tallData.add(data);\r\n\t\t\r\n\t}", "title": "" }, { "docid": "07a835d4ec367178225e58b5789eb014", "score": "0.50039446", "text": "public void processAdding() {\n\t\t//get the value from the text field and delete the space\n\t\toperation=false;\n\t\tclassId=idIn.getText().trim(); \n\t\tclassName=classIn.getText().trim();\n\t\ttutorName=tutorIn.getText().trim();\n\t\tfor(int i=0;i<fitobject.MAXCLASS;i++) { //compare the id with the existing id to make sure whether the id has existed\n\t\t\tif(fitobject.getFitnessClass(i)!=null&&fitobject.getFitnessClass(i).getId().equals(classId)) {\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"The class has existed!\",\"Warning\", JOptionPane.ERROR_MESSAGE);\n\t\t\t\t\toperation=true;\n\t\t\t}\t\n\t\t}\n\t\tif(operation==false) {\n\t\tint index=fitobject.returnFirstTime()-9;\n\t\tif(index<0) {\n\t\t\tJOptionPane.showMessageDialog(null, \"The list is full!\", \"Warning\", JOptionPane.ERROR_MESSAGE);\n\t\t}else if(classId!=null&&!classId.equals(\"\")&&className!=null&&!className.equals(\"\")&&tutorName!=null&&!tutorName.equals(\"\")) {\n\t\t\t//initialise the instance variables of fitobject\n\t\t\tfitobject.insertObject();\n\t\t\tfitobject.getFitnessClass(index).setId(classId);\n\t\t\tfitobject.getFitnessClass(index).setClassName(className);\n\t\t\tfitobject.getFitnessClass(index).setTutorName(tutorName);\n\t\t\tfitobject.getFitnessClass(index).setStartTime(index+9+\"\");\n\t\t\tint[] attendances={0,0,0,0,0};\n\t\t\tfitobject.getFitnessClass(index).setAttendance(attendances);\n\t\t\tdisplay.setText(\"\");\n\t\t\tupdateDisplay();}\n\t\telse\n\t\t\tJOptionPane.showMessageDialog(null, \"Please input the valid information!\", \"Warning\", JOptionPane.ERROR_MESSAGE);}\n\t\tupdateTextfield();\n\t}", "title": "" }, { "docid": "6e9a6d0b5fc748fd242074a42fb5f33f", "score": "0.50001276", "text": "@Override\n\tpublic boolean add(T newEntry) {\n\t\tcheckInitialization();\n\t\tif(isArrayFull()) {\n\t\t\tdoubleCapacity();\n\t\t}\n\t\t//Assertion:result is true here.\n\t\tbag[numberOfEntries]=newEntry;\n\t\tnumberOfEntries++;\n\t\treturn true;\n\t}", "title": "" }, { "docid": "265e5f4b19564ffc5e1800f87be28deb", "score": "0.4986889", "text": "private void AddToErrors(String entry) {\n\t\terrors.add(entry);\n\t}", "title": "" }, { "docid": "d725de0531363d60c5655a6c3f2ce696", "score": "0.49755388", "text": "@Override\r\n\tpublic void collectFields() throws ValidationException {\n\r\n\t}", "title": "" }, { "docid": "ba72a713c49dbabe48fc0eceda79a4b3", "score": "0.49603483", "text": "public synchronized void doAppend(E eventObject)\n/* */ {\n/* 63 */ if (this.guard) {\n/* 64 */ return;\n/* */ }\n/* */ try\n/* */ {\n/* 68 */ this.guard = true;\n/* */ \n/* 70 */ if (!this.started) {\n/* 71 */ if (this.statusRepeatCount++ < 5) {\n/* 72 */ addStatus(new WarnStatus(\"Attempted to append to non started appender [\" + this.name + \"].\", this));\n/* */ }\n/* */ }\n/* */ else\n/* */ {\n/* 77 */ if (getFilterChainDecision(eventObject) == FilterReply.DENY) {\n/* */ return;\n/* */ }\n/* */ \n/* */ \n/* 82 */ append(eventObject);\n/* */ }\n/* */ } catch (Exception e) {\n/* 85 */ if (this.exceptionCount++ < 5) {\n/* 86 */ addError(\"Appender [\" + this.name + \"] failed to append.\", e);\n/* */ }\n/* */ } finally {\n/* 89 */ this.guard = false;\n/* */ }\n/* */ }", "title": "" }, { "docid": "46369407d7f92a7634ce31dae04804c4", "score": "0.4955801", "text": "public boolean appendItem( GenericData newValue )\n {\n //check if array if full\n if( !isFull() )\n {\n //append item if array is not full\n localArray[ arraySize ] = newValue;\n //increase arraySize\n arraySize++;\n //return true if successful\n return true;\n }\n //return false if unsuccessful\n return false;\n }", "title": "" }, { "docid": "4c795dde91d5b2dce377998bd6deb75c", "score": "0.49502885", "text": "private void rangeCheckForAdd(int index) {\n if (index > size || index < 0)\n throw new IndexOutOfBoundsException(outOfBoundsMsg(index));\n }", "title": "" }, { "docid": "da85cf243781fd6cbd901001e04ac5cc", "score": "0.493673", "text": "@Override\n protected void collectSchemaObjects(ValidationContext vContext) {\n vContext.addVerifiable(this);\n }", "title": "" }, { "docid": "8ccc80ff499b51d1cf727945ccdec719", "score": "0.49100322", "text": "@Test\n public void add_overwritingOldData() throws Exception {\n RingbufferConfig c = config.getRingbufferConfig(ringbuffer.getName());\n long lastSequence = ringbuffer.tailSequence();\n long expectedTailSeq = 0;\n for (long k = 0; k < (2 * (c.getCapacity())); k++) {\n long sequence = ringbuffer.add((\"item-\" + k));\n lastSequence = ringbuffer.tailSequence();\n Assert.assertEquals(expectedTailSeq, sequence);\n Assert.assertEquals(expectedTailSeq, lastSequence);\n Assert.assertEquals(expectedTailSeq, ringbuffer.tailSequence());\n expectedTailSeq++;\n }\n Assert.assertEquals(((lastSequence - (c.getCapacity())) + 1), ringbuffer.headSequence());\n // verifying the content\n for (long sequence = ringbuffer.headSequence(); sequence <= (ringbuffer.tailSequence()); sequence++) {\n Assert.assertEquals((\"bad content at sequence:\" + sequence), (\"item-\" + sequence), ringbuffer.readOne(sequence));\n }\n }", "title": "" }, { "docid": "214ea8a3bdd445ffcdf51f3281be266b", "score": "0.4897961", "text": "public void addError(ValidationError error) {\n validationErrors.add(error);\n }", "title": "" }, { "docid": "ac6d30a8811b34b94dbba3a4e6218ec1", "score": "0.4882365", "text": "public int addAllAbsent(Collection<? extends E> paramCollection)\n/* */ {\n/* 763 */ Object[] arrayOfObject1 = paramCollection.toArray();\n/* 764 */ if (arrayOfObject1.length == 0)\n/* 765 */ return 0;\n/* 766 */ ReentrantLock localReentrantLock = this.lock;\n/* 767 */ localReentrantLock.lock();\n/* */ try {\n/* 769 */ Object[] arrayOfObject2 = getArray();\n/* 770 */ int i = arrayOfObject2.length;\n/* 771 */ Object[] arrayOfObject3 = 0;\n/* */ \n/* 773 */ for (int j = 0; j < arrayOfObject1.length; j++) {\n/* 774 */ Object localObject1 = arrayOfObject1[j];\n/* 775 */ if ((indexOf(localObject1, arrayOfObject2, 0, i) < 0) && \n/* 776 */ (indexOf(localObject1, arrayOfObject1, 0, arrayOfObject3) < 0))\n/* 777 */ arrayOfObject1[(arrayOfObject3++)] = localObject1; }\n/* */ Object[] arrayOfObject4;\n/* 779 */ if (arrayOfObject3 > 0) {\n/* 780 */ arrayOfObject4 = Arrays.copyOf(arrayOfObject2, i + arrayOfObject3);\n/* 781 */ System.arraycopy(arrayOfObject1, 0, arrayOfObject4, i, arrayOfObject3);\n/* 782 */ setArray(arrayOfObject4);\n/* */ }\n/* 784 */ return arrayOfObject3;\n/* */ } finally {\n/* 786 */ localReentrantLock.unlock();\n/* */ }\n/* */ }", "title": "" }, { "docid": "be3bd62c95c40bb7d9b4be46e96885b2", "score": "0.48559508", "text": "AppendEntriesReply appendEntries(AppendEntries appendEntries);", "title": "" }, { "docid": "0ba9cee76941b541966f25928860b2ee", "score": "0.4852835", "text": "public void VerifyAddressAdded()\t{\n\t\tif (getEditAddress() != null)\n\t\t{\n\t\t\tReporter.log(\"Passed : New Address is added successfully!\");\n\t\t}\n\t\telse\n\t\t{\n\t\t\tReporter.log(\"Failed : New Address is not added successfully!\");\n\t\t}\n\t}", "title": "" }, { "docid": "dcd17f11fbdb1ff65c295364e055c716", "score": "0.485095", "text": "private static void addElements() {\n\t\t\n\t}", "title": "" }, { "docid": "5b56c93c63eaf1c1fbf1a38b620df932", "score": "0.4848987", "text": "private boolean validateAdd() {\n\t\t\n\t\tStringBuilder buiderMsg = new StringBuilder();\n\t\t\n\t\t// Check title is empty\n\t\tif (StringUtils.isBlank(title)) {\n\t\t\tbuiderMsg.append(\"Please input title<br/>\");\n\t\t}\n\n\t\t// Check title is empty\n\t\tif (StringUtils.isBlank(titleDetail)) {\n\t\t\tbuiderMsg.append(\"Please input title detail<br/>\");\n\t\t}\n\n\t\t// Check itemStatus must be 0 or 1\n\t\tif (!StringUtils.equals(itemStatus, \"0\") && !StringUtils.equals(itemStatus, \"1\")) {\n\t\t\tbuiderMsg.append(\"Item status is invalid<br/>\");\n\t\t}\n\n\t\t// Check title is colorSuffix\n\t\tif (StringUtils.isBlank(colorSuffix)) {\n\t\t\tbuiderMsg.append(\"Please choose color suffix<br/>\");\n\t\t}\n\t\t\n\t\t// Validate other parameters\n\t\tif (fileImage == null) {\n\t\t\tbuiderMsg.append(\"Please choose new image to update<br/>\");\n\t\t} else {\n\t\t\t\n\t\t\tif (!FileUploadUtil.getListExtensionImageFile().contains(fileImageContentType)) {\n\t\t\t\tbuiderMsg.append(\"New image is invalid format<br/>\");\n\t\t\t} else if (fileImage.length() > ConstantUtil.MAX_FILE_SIZE_IMAGE) {\n\t\t\t\tbuiderMsg.append(\"New image is exceed 2Mb<br/>\");\n\t\t\t}\n\t\t}\n\n\t\t// Check title is empty\n\t\tif (StringUtils.isBlank(content)) {\n\t\t\tbuiderMsg.append(\"Please input content<br/>\");\n\t\t} else if (content.length() > 500) {\n\t\t\tbuiderMsg.append(\"Please input content is less than or equal 500 character<br/>\");\n\t\t}\n\t\t\n\t\t// If has error then set value for message and return false\n\t\tif (!StringUtils.isEmpty(buiderMsg)) {\n\t\t\tmessage = buiderMsg.toString();\n\t\t\treturn false;\n\t\t}\n\n\t\treturn true;\n\t}", "title": "" }, { "docid": "213a224d9961c637fe4e591dbe5abbb6", "score": "0.48281243", "text": "private void addValidationErrors(EmisValidation validation, EmisValidationRule rule, EmisEntity entity, EmisValidationErrorHierarchy validationResult)\r\n\t{\n\t\tEmisMetaEntity ruleEntity = rule.getField(0).getEntity(); \r\n\t\tif (NamedUtil.sameName(ruleEntity, entity.getEntityType()))\r\n\t\t{\r\n\t\t\t// Yes it does - run validation against data in this entity. \r\n\t\t\tif (null != getValidationError(rule, ruleEntity, entity.getId(), dataset))\r\n\t\t\t\taddError(entity, validation, rule, validationResult);\r\n\t\t}\r\n\t\telse \r\n\t\t{\r\n\t\t\tboolean newChildEntry = false; \r\n\t\t\tEmisValidationErrorHierarchy childValidationResult = validationResult.findChild(entity); \r\n\t\t\tif (childValidationResult == null)\r\n\t\t\t{\r\n\t\t\t\tchildValidationResult = new ValidationErrorHierarchy(); \r\n\t\t\t\tchildValidationResult.setEntity(entity);\r\n\t\t\t\tnewChildEntry = true;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// No it doesn't - iterate deeper into the hierarchy. \r\n\t\t\tEmisEntityIterator iter = getHierarchy().getChildren(getDateIndex(), entity);\r\n\t\t\tList<EmisEntity> childrenEntities = new ArrayList<EmisEntity>(); \r\n\t\t\twhile (iter.hasNext())\r\n\t\t\t{\r\n\t\t\t\tEmisEntity childEntity = iter.next(); \r\n\t\t\t\tchildrenEntities.add(childEntity); \r\n\t\t\t\taddValidationErrors(validation, rule, childEntity, childValidationResult); \r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tupdateEntityFields(childrenEntities); \r\n\t\t\t\r\n\t\t\tif (newChildEntry && childValidationResult.hasAnyEntries())\r\n\t\t\t\tvalidationResult.addChild(childValidationResult);\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "42e16c1dba2d5b0d2dae1fa16d2795d1", "score": "0.4825992", "text": "public abstract void addDataRecord( DataRecord nRecord, boolean bAddNew, boolean bReplaceAll );", "title": "" }, { "docid": "c0009c81848c7c35e7de65142f5ed449", "score": "0.48211312", "text": "abstract public PersistentList appendUnsafe(Object value);", "title": "" }, { "docid": "b8ce078b25fda8eec78834eb8994aaa1", "score": "0.48198617", "text": "public List<SingleBooking> appendBookings(\n \tCompoundBooking compoundBooking,\n Date valueDate,\n short bookingType,\n Boolean noBalanceValidation,\n Boolean[] isCreditBookings,\n BigDecimal[] quantities,\n BookingText[] bookingTexts,\n DepotPosition[] depotPositions,\n BookingOrigin[] origins,\n String[] bookingTextSuffixes,\n String[] bookingIds,\n List<String> errors\n ) throws ServiceException {\n \tPersistenceManager pm = JDOHelper.getPersistenceManager(compoundBooking);\n org.opencrx.kernel.depot1.jmi1.Segment depotSegment = this.getDepotSegment(pm, compoundBooking.refGetPath().getSegment(2).toString(), compoundBooking.refGetPath().getSegment(4).toString());\n if(compoundBooking.isLocked()) {\n throw new ServiceException(\n OpenCrxException.DOMAIN,\n OpenCrxException.DEPOT_POSITION_IS_LOCKED,\n \"Booking is locked. Append is not allowed.\"\n ); \n }\n if(compoundBooking.getBookingStatus() != BookingStatus.PENDING.getValue()) {\n throw new ServiceException(\n OpenCrxException.DOMAIN,\n OpenCrxException.BOOKING_STATUS_MUST_BE_PENDING,\n \"Booking status must be pending. Append is not allowed.\"\n ); \n }\n this.validateBookings(\n \tvalueDate, \n \tbookingType, \n \tnoBalanceValidation, \n \tisCreditBookings, \n \tquantities, \n \tbookingTexts, \n \tdepotPositions, \n \torigins, \n \terrors\n );\n if(!errors.isEmpty()) {\n throw new ServiceException(\n OpenCrxException.DOMAIN,\n OpenCrxException.DEPOT_INVALID_COMPOUND_BOOKING,\n \"Invalid compound booking.\"\n ); \t\n }\n // Set default valueDate to current date\n if(valueDate == null) {\n valueDate = new Date();\n }\n // Assert depot positions\n for(DepotPosition position: depotPositions) {\n \tthis.assertOpenPosition(\n valueDate,\n bookingType,\n position\n );\n }\n List<SingleBooking> bookings = new ArrayList<SingleBooking>();\n Date bookingDate = new Date();\n // Create bookings\n for(int i = 0; i < depotPositions.length; i++) {\n \tDepotPosition depotPosition = depotPositions[i];\n SingleBooking booking = null;\n String bookingTextSuffix = bookingTextSuffixes == null \n \t? null \n \t: i < bookingTextSuffixes.length \n \t\t? bookingTextSuffixes[i]\n \t\t: null;\n if(Boolean.TRUE.equals(isCreditBookings[i])) {\n \tCreditBooking creditBooking = pm.newInstance(CreditBooking.class);\n \tcreditBooking.setQuantityCredit(quantities[i]);\n \tcreditBooking.setName(\n \t\tthis.getCreditBookingName(\n \t\t\tdepotPosition, \n \t\t\tbookingTexts[i], \n \t\t\tbookingTextSuffix\n \t\t)\n \t);\n \tcreditBooking.setBookingText(bookingTexts[i]);\n \tbookings.add(creditBooking);\n booking = creditBooking;\n } else {\n \tDebitBooking debitBooking = pm.newInstance(DebitBooking.class);\n \tdebitBooking.setQuantityDebit(quantities[i]);\n \tdebitBooking.setName(\n \t\tthis.getDebitBookingName(\n \t\t\tdepotPosition, \n \t\t\tbookingTexts[i], \n \t\t\tbookingTextSuffix\n \t\t)\n \t);\n \tdebitBooking.setBookingText(bookingTexts[i]);\n \tbookings.add(debitBooking);\n \tbooking = debitBooking;\n }\n booking.setValueDate(valueDate);\n booking.setBookingType(new Short(bookingType));\n booking.setBookingStatus(BookingStatus.PENDING.getValue());\n booking.setBookingDate(bookingDate);\n booking.setPosition(depotPosition);\n booking.setCb(compoundBooking);\n if(origins[i] != null) {\n booking.setOrigin(origins[i]);\n }\n depotSegment.addBooking(\n \tbookingIds == null ? this.getUidAsString() : bookingIds[i],\n \tbooking\n );\n }\n return bookings;\n }", "title": "" }, { "docid": "cca7fd1f778ba6d58a277c73867078cf", "score": "0.48078418", "text": "private void addToListOfInvalidObjects(final Object o) {\r\n if (o != null && !listOfInvalidObjects.contains(o)) {\r\n listOfInvalidObjects.add(o);\r\n }\r\n }", "title": "" }, { "docid": "056bce0c9f5ebabcf7b0d970e0369f25", "score": "0.4807158", "text": "private void DoValidation(AddUserRequest request) {\n AddUserValidator validator=new AddUserValidator(userDao);\n ComplexResult result= validator.validate(request);\n if(!result.isSuccess()){\n throw new DomainException(result.getErrors(),ValidationErrorType.Body);\n }\n\n }", "title": "" }, { "docid": "93a2354328b2d8ee1b89d2800e7276f2", "score": "0.48054138", "text": "public boolean add(Object element) {\n\n// reporter.updateCounter++;\n if (elementCount >= elementData.length) {\n increaseCapacity();\n }\n\n elementData[elementCount] = element;\n\n elementCount++;\n\n return true;\n }", "title": "" }, { "docid": "fd0f53c8cd5f921e3e90d28eeda55dcb", "score": "0.480466", "text": "@Test\r\n\tpublic void add_Single_Element() \r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\tint[] elements = { 5 };\r\n\t\t\taddAllData(elements);\r\n\t\t\tconfirmMatch(elements);\r\n\t\t}\r\n\t\tcatch(Exception ex)\r\n\t\t{\r\n\t\t\tfail(\"Exception caught\");\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "ed62eb9f782b86545a6f269a0d09e1f6", "score": "0.48016322", "text": "public void addRow(Object newEntry) {\n\t\tint last = internal.length;\n\t\tObject[] newInternal = new Object[internal.length + 1];\n\t\tboolean[] newMissing = new boolean[internal.length + 1];\n\t\tboolean[] newEmpty = new boolean[internal.length + 1];\n\t\tSystem.arraycopy(internal, 0, newInternal, 0, internal.length);\n\t\tSystem.arraycopy(missing, 0, newMissing, 0, missing.length);\n\t\tSystem.arraycopy(empty, 0, newEmpty, 0, empty.length);\n\t\tnewInternal[last] = newEntry;\n\t\tinternal = newInternal;\n\t\tthis.setMissingValues(newMissing);\n\t\tempty = newEmpty;\n\t}", "title": "" }, { "docid": "fb99da72a769224b0840ac60ee5a2169", "score": "0.47992194", "text": "public void addPatientToWard() {\n clearScreen();\n //Scanner console = new Scanner(System.in);\n Iterator it = arrWardPatientList.iterator();\n\n int tempID = 0;\n String treatmentStartDate = \"\";\n String treatmentEndDate = \"\";\n\n while(it.hasNext()) {\n hmsWardPatient g = (hmsWardPatient) it.next();\n tempID = g.getAdmitID();\n }\n tempID++;\n int patientWardRecordID = tempID;\n\n System.out.print(\"Please select the Ward (\"+printWard()+\"):\");\n int wardID = inputWardID();\n\n System.out.print(\"Please select Patient (\"+printPatient()+\"):\");\n int patientID = inputPatientID();\n\n System.out.print(\"Please enter admit date (dd/mm/yyyy) : \");\n boolean isValid = false;\n do {\n try {\n String input = console.nextLine();\n hmsDateValidator dateValidator = new hmsDateValidator();\n treatmentStartDate = dateValidator.validate(input);\n isValid = true;\n } catch (ParseException e) {\n System.out.println(\"Input date is invalid. Please enter the 'dd/mm/yyyy' format!\");\n System.out.print(\"Please enter admit date : \");\n }\n } while (!isValid);\n\n System.out.print(\"Please enter discharge date (dd/mm/yyyy) : \");\n boolean isValidEndDate = false;\n boolean isendDateGreater = false;\n do {\n try {\n String input = console.nextLine();\n\n if (input.isEmpty()){\n isendDateGreater = true;\n isValidEndDate = true;\n treatmentEndDate = \"Ongoing\";\n\n }else {\n\n hmsDateValidator dateValidator = new hmsDateValidator();\n treatmentEndDate = dateValidator.validate(input);\n isValidEndDate = true;\n isendDateGreater = dateValidator.CompareDate(treatmentStartDate, treatmentEndDate);\n\n if (!isendDateGreater){\n System.out.println(\"Discharge date cannot be earlier than admit date. Please enter a valid discharge in 'dd/mm/yyyy' format!\");\n System.out.print(\"Please enter discharge date : \");\n }\n }\n\n\n } catch (ParseException e) {\n System.out.println(\"Input date is invalid. Please enter the 'dd/mm/yyyy' format!\");\n System.out.print(\"Please enter discharge date : \");\n }\n } while (!isValidEndDate || !isendDateGreater);\n\n try {\n output = new Formatter(new FileWriter(txtWardPatientList,true));\n output.format(\"%d,%d,%d,%s,%s\\r\\n\", patientWardRecordID,wardID,patientID,treatmentStartDate,treatmentEndDate);\n output.close();\n System.out.println(\"Patient added to ward successfully!\");\n\n } catch (Exception e) {\n System.out.println(e.toString() + \":\" + e.getMessage());\n }\n arrWardPatientList.clear();\n loadWardPatientFile();\n }", "title": "" }, { "docid": "525ef412ad337a847c5eb2ff8ad1a69f", "score": "0.47966343", "text": "public void addToEnd (String[] array, DiscreteInteger size, String value)//!\n{\n ActivationRecord arec = activate(ArrayOperations.class);//!\n arec.refParam(\"array\", array).refParam(\"size\", size).param(\"value\", value).breakHere(\"starting addToEnd\");//!\n//! array[size] = value;\n if (size.get() >= array.length) {//!\n\t arec.breakHere(\"array is already full - program may crash\");//!\n\t return;//!\n }//!\n array[size.get()] = value;//!\n arec.breakHere(\"element added\");//!\n//! ++size;\n size.set(size.get() + 1);//!\n arec.breakHere(\"size increased\");//!\n}", "title": "" }, { "docid": "bb8c1e06e3d11f74dda3d6f968fc62c9", "score": "0.47889087", "text": "@Test\n\tpublic void testAddEnd() {\n\t\t// TODO: implement this test\n\t\tassertEquals(\"Check prior \", \"A\", shortList.get(0));\n\t\tassertEquals(\"Check content \", \"B\", shortList.get(1));\n\t\ttry {\n\t\t\tshortList.get(2);\n\t\t\tfail(\"Check out of bounds\");\n\t\t} catch (IndexOutOfBoundsException e) {\n\n\t\t}\n\t\tassertEquals(\"Check size is correct \", 2, shortList.size());\n\t\t\n\t\t// refuse to add a null value\n\t\ttry {\n\t\t\tshortList.add(1, null);\n\t\t\tfail(\"Check for NullPointer\");\n\t\t} catch (NullPointerException e) {\n\n\t\t}\n\n\t}", "title": "" }, { "docid": "3ed13f5a6e23f93d0a9575e39e1a9da5", "score": "0.47819144", "text": "private void validate() {\n }", "title": "" }, { "docid": "2c04d54af02e60a0b391a50dbe1d3cd9", "score": "0.47492796", "text": "public void validate() {\n validators.forEach((validator, message) -> {\n boolean isValid = validator.apply(this);\n\n if (!isValid) {\n throw new PayloadValidationException(message);\n }\n });\n }", "title": "" }, { "docid": "072625a4a5ed3b028713e9b0b5023ca3", "score": "0.4747011", "text": "protected void addRules(com.webobjects.foundation.NSArray extraRules){\n return; //TODO codavaj!!\n }", "title": "" }, { "docid": "d9ab4816ed0681e4fc36fa0b3a7e0900", "score": "0.47030997", "text": "@Override\r\n public void populate(HttpServletRequest request) {\r\n super.populate(request);\r\n\r\n\r\n // document type name is null on start, otherwise should be here\r\n if (StringUtils.isNotBlank(getDocTypeName())) {\r\n Map<String, String> localOldMaintainableValues = new HashMap<String, String>();\r\n Map<String, String> localNewMaintainableValues = new HashMap<String, String>();\r\n Map<String, String> localNewCollectionValues = new HashMap<String, String>();\r\n for (Enumeration i = request.getParameterNames(); i.hasMoreElements();) {\r\n String parameter = (String) i.nextElement();\r\n if (parameter.toUpperCase().startsWith(\r\n KNSConstants.MAINTENANCE_OLD_MAINTAINABLE.toUpperCase())) {\r\n if (shouldPropertyBePopulatedInForm(parameter, request)) {\r\n String propertyName = parameter\r\n .substring(KNSConstants.MAINTENANCE_OLD_MAINTAINABLE.length());\r\n localOldMaintainableValues.put(propertyName, request\r\n .getParameter(parameter));\r\n }\r\n }\r\n if (parameter.toUpperCase().startsWith(\r\n KNSConstants.MAINTENANCE_NEW_MAINTAINABLE.toUpperCase())) {\r\n if (shouldPropertyBePopulatedInForm(parameter, request)) {\r\n String propertyName = parameter\r\n .substring(KNSConstants.MAINTENANCE_NEW_MAINTAINABLE.length());\r\n localNewMaintainableValues.put(propertyName, request\r\n .getParameter(parameter));\r\n }\r\n }\r\n }\r\n\r\n // now, get all add lines and store them to a separate map\r\n // for use in a separate call to the maintainable\r\n for (Map.Entry<String, String> entry : localNewMaintainableValues.entrySet()) {\r\n String key = entry.getKey();\r\n if (key.startsWith(KNSConstants.MAINTENANCE_ADD_PREFIX)) {\r\n localNewCollectionValues.put(key.substring(KNSConstants.MAINTENANCE_ADD_PREFIX\r\n .length()), entry.getValue());\r\n }\r\n }\r\n if (LOG.isDebugEnabled()) {\r\n LOG.debug(\"checked for add line parameters - got: \" + localNewCollectionValues);\r\n }\r\n\r\n this.newMaintainableValues = localNewMaintainableValues;\r\n this.oldMaintainableValues = localOldMaintainableValues;\r\n\r\n MaintenanceDocumentBase maintenanceDocument = (MaintenanceDocumentBase) getDocument();\r\n\r\n GlobalVariables.getMessageMap().addToErrorPath(\"document.oldMaintainableObject\");\r\n maintenanceDocument.getOldMaintainableObject().populateBusinessObject(\r\n localOldMaintainableValues, maintenanceDocument, getMethodToCall());\r\n GlobalVariables.getMessageMap().removeFromErrorPath(\"document.oldMaintainableObject\");\r\n\r\n GlobalVariables.getMessageMap().addToErrorPath(\"document.newMaintainableObject\");\r\n // update the main object\r\n Map cachedValues = maintenanceDocument.getNewMaintainableObject()\r\n .populateBusinessObject(localNewMaintainableValues, maintenanceDocument,\r\n getMethodToCall());\r\n\r\n if (maintenanceDocument.getFileAttachment() != null) {\r\n populateAttachmentPropertyForBO(maintenanceDocument);\r\n }\r\n\r\n // update add lines\r\n localNewCollectionValues = org.kuali.rice.kim.service.KIMServiceLocator\r\n .getPersonService().resolvePrincipalNamesToPrincipalIds(\r\n (BusinessObject) maintenanceDocument.getNewMaintainableObject()\r\n .getBusinessObject(), localNewCollectionValues);\r\n cachedValues.putAll(maintenanceDocument.getNewMaintainableObject()\r\n .populateNewCollectionLines(localNewCollectionValues, maintenanceDocument,\r\n getMethodToCall()));\r\n GlobalVariables.getMessageMap().removeFromErrorPath(\"document.newMaintainableObject\");\r\n\r\n if (cachedValues.size() > 0) {\r\n GlobalVariables.getMessageMap().putError(KNSConstants.DOCUMENT_ERRORS,\r\n RiceKeyConstants.ERROR_DOCUMENT_MAINTENANCE_FORMATTING_ERROR);\r\n for (Iterator iter = cachedValues.keySet().iterator(); iter.hasNext();) {\r\n String propertyName = (String) iter.next();\r\n String value = (String) cachedValues.get(propertyName);\r\n cacheUnconvertedValue(KNSConstants.MAINTENANCE_NEW_MAINTAINABLE + propertyName,\r\n value);\r\n }\r\n }\r\n }\r\n }", "title": "" }, { "docid": "22c43521b3ebb4090d3c294b451086a6", "score": "0.46997383", "text": "public void validate() {\r\n\t\t}", "title": "" }, { "docid": "0101f7e190386a3708715773d85351ef", "score": "0.46931437", "text": "public abstract UpdateList computeAddUpdate(Location loc, Element e, Rule agent) throws CoreASMCException;", "title": "" }, { "docid": "fbb883579dcfbfe4001e68d2e4d17453", "score": "0.4675713", "text": "private void validate() {\n\n\t\t// validate activity\n\t\tif (!documentActivity.hasItem(\"keyaccessmode\"))\n\t\t\tdocumentActivity.replaceItemValue(\"keyaccessmode\", \"\");\n\n\t\tif (!documentActivity.hasItem(\"namaddreadaccess\"))\n\t\t\tdocumentActivity.replaceItemValue(\"namaddreadaccess\", \"\");\n\n\t\tif (!documentActivity.hasItem(\"keyaddreadroles\"))\n\t\t\tdocumentActivity.replaceItemValue(\"keyaddreadroles\", \"\");\n\n\t\tif (!documentActivity.hasItem(\"keyaddreadfields\"))\n\t\t\tdocumentActivity.replaceItemValue(\"keyaddreadfields\", \"\");\n\n\t\tif (!documentActivity.hasItem(\"namaddwriteaccess\"))\n\t\t\tdocumentActivity.replaceItemValue(\"namaddwriteaccess\", \"\");\n\n\t\tif (!documentActivity.hasItem(\"keyaddwriteroles\"))\n\t\t\tdocumentActivity.replaceItemValue(\"keyaddwriteroles\", \"\");\n\n\t\tif (!documentActivity.hasItem(\"keyaddreadfields\"))\n\t\t\tdocumentActivity.replaceItemValue(\"keyaddreadfields\", \"\");\n\n\t\t// validate document\n\t\tif (!documentContext.hasItem(\"$readAccess\"))\n\t\t\tdocumentContext.replaceItemValue(\"$readAccess\", \"\");\n\n\t\tif (!documentContext.hasItem(\"$writeAccess\"))\n\t\t\tdocumentContext.replaceItemValue(\"$writeAccess\", \"\");\n\n\t}", "title": "" }, { "docid": "060ded7da6dd1e42a7611a13e73fbd6a", "score": "0.4664573", "text": "@Override\n public boolean addAll(Collection<Record> c) {\n boolean result = false;\n for(Record r : c) {\n result|=add(r);\n }\n return result;\n }", "title": "" }, { "docid": "c5591c2f631f7a0f8b700005ca4c2d5e", "score": "0.4661642", "text": "public void testAppend() {\n //test append to empty word\n assertEquals(96, emptySet.size());\n testAppendTwoSets(emptySet, emptySet);\n testAppendTwoSets(firstWord, emptySet);\n testAppendTwoSets(emptySet, firstWord);\n\n temp.fill();\n testAppendTwoSets(temp, temp);\n testAppendTwoSets(temp, firstWord);\n testAppendTwoSets(firstWord, temp);\n testAppendTwoSets(firstWord, firstWord);\n testAppendTwoSets(twoWordSet, twoWordSet);\n\n temp = new BitSet(2);\n temp.put(1);\n testAppendTwoSets(temp, temp);\n }", "title": "" }, { "docid": "7338ab411f9295a525dde1f780497e5d", "score": "0.4658509", "text": "public void validate() {\r\n\t}", "title": "" }, { "docid": "5e6e89dcc50b84c19cc18d4815510379", "score": "0.46450734", "text": "void addMissing();", "title": "" }, { "docid": "ebf30ffcfe43ebad007543fa02aa60f5", "score": "0.46409255", "text": "public void checkAddElementAllowed(Element element) {\n Element rootElement = getRootElement();\n if (rootElement != null) {\n StringBuffer stringBuffer = new StringBuffer(\"Cannot add another element to this Document as it already has a root element of: \");\n stringBuffer.append(rootElement.getQualifiedName());\n throw new IllegalAddException((Branch) this, (Node) element, stringBuffer.toString());\n }\n }", "title": "" }, { "docid": "39aff956f6d695844b8bf1a5affc23ea", "score": "0.46345243", "text": "boolean hasAppendResult();", "title": "" }, { "docid": "d6019d6b7e87e586a348cccafd4c8953", "score": "0.46284482", "text": "public boolean collect (Forneymon toAdd) {\n int existingIndex = getTypeIndex(toAdd.getFMType());\n\n if (existingIndex != -1) {\n Forneymon existingFM = get(existingIndex);\n if (existingFM != toAdd) {\n existingFM.addLevels(toAdd.getLevel());\n } \n return false;\n } else {\n return this.append(toAdd);\n }\n }", "title": "" }, { "docid": "b4fc31aede7cd935964cbf2ac648de96", "score": "0.4621844", "text": "public static synchronized void violationsAdd(Violation v) {\n violations.add(v);\n }", "title": "" }, { "docid": "0a4be1d5e1a8f25fa556464d8b8f0330", "score": "0.46205887", "text": "public void processUserInput() {\n boolean thereIsMoreData;\n validatedInput = new ValidatedInput(input, output);\n\n output.printlnString(PLEASE_ENTER_NEW_RECORDS);\n\n do {\n readUserFullName();\n readComment();\n new UserGroupController(input, validatedInput, output).readUserGroupsAndSaveInto(newRecord);\n new UserPhoneController(input, validatedInput, output).readUserPhonesAndSaveInto(newRecord);\n readUserEmail();\n readUserSkype();\n new UserAddressController(validatedInput).readAddressAndSaveInto(newRecord);\n\n recordBook.addRecord(newRecord);\n newRecord.setCreationDate(Instant.now());\n\n output.printString(CONTINUE_ENTERING_DATA_QUESTION);\n thereIsMoreData = input.readYesNoValue();\n\n } while (thereIsMoreData);\n }", "title": "" }, { "docid": "8779478bd3d6036862c36771e21d965b", "score": "0.46073407", "text": "protected void addRule(com.webobjects.directtoweb.Rule newRule){\n return; //TODO codavaj!!\n }", "title": "" }, { "docid": "dd577a464e4bc9aa62bc99bdd8631659", "score": "0.46043396", "text": "String processAndAddPerson(String personData);", "title": "" }, { "docid": "09d496f3486263304ce89442c4de492d", "score": "0.45994735", "text": "@Override\n\tpublic void add(Object obj) {\n\t\telementData[size++] = obj;\n //return true;\n\t}", "title": "" }, { "docid": "832d0c8a2c3b49de4126da91f7623ccf", "score": "0.4598562", "text": "private void ensureCapacity() {\n if (size >= data.length) {\n E[] newData = (E[]) (new Object[size * 2 - 1]);\n System.arraycopy(data, 0, newData, 0, size);\n data = newData;\n }\n }", "title": "" }, { "docid": "d3e512a3a0d9c9e359fbe33390466165", "score": "0.45978826", "text": "private void checkIndexForAddition(int index) {\n if (index < 0) {\n throw new IndexOutOfBoundsException(\n \"The index is negative: \" + index);\n }\n \n if (index > size()) {\n throw new IndexOutOfBoundsException(\n \"The index is tool large: \" + index + \". \" +\n \"The size of this list is \" + size() + \".\");\n }\n }", "title": "" }, { "docid": "930b21df1bb5b11410f604fdb38ffd8e", "score": "0.45956323", "text": "private void growList(final int requiredSize) {\n if (requiredSize < size()) {\n return;\n }\n\n ensureCapacity(requiredSize + 1);\n\n for (int i = size(); i < requiredSize; i++) {\n final DynaBean dynaBean = transform(null);\n super.add(dynaBean);\n }\n }", "title": "" }, { "docid": "5ff975a84fe367dabdddc82442573b9e", "score": "0.4593311", "text": "@Override\n public void addRecord()\n {\n try\n {\n final String kPRODUCT = Validator.getString(\"New product name> \").toLowerCase(); //get new product name from user\n final double kPRICE = Validator.getDouble(\"Price> \"); //get new product price from user\n final int kQUANTITY = Validator.getInt(\"Quantity> \"); //get new product quantity from user\n\n Product product = new Product(kPRODUCT, kPRICE, kQUANTITY); //create new object\n\n final String kADD_ENTRY_COND = \"addEntry\"; //condition argument for addRecord()\n searchRecord(product.getProductName(), kADD_ENTRY_COND, true); //search for duplicate record\n\n if(!matchExists) //if duplicate record does not exist, add a new record\n {\n RandomAccessFile file = new RandomAccessFile((new File(kDATA_FILE)), \"rw\"); //open file for read/write\n final long kFILE_SIZE = file.length(); //get end of file\n\n file.seek(kFILE_SIZE); //seek to end of file\n\n file.writeUTF(product.getProductName()); //write product string in record (byte-by-byte)\n for (int j = 0; j < kSTRING_BYTES - product.getProductName().length(); j++)\n {\n file.writeByte(kSTRING_BYTES);\n }\n file.writeDouble(product.getPrice()); //write price double in record\n file.writeInt(product.getQuantity()); //write quantity int value in record\n file.close(); //close database file\n\n System.out.println(\"Record added:\"); //display record added\n displayRecord(product);\n System.out.println();\n }\n }\n catch (IOException IOEx)\n {\n IOEx.getStackTrace();\n }\n }", "title": "" }, { "docid": "68a0cc3032e98112ad866ec88d43aa05", "score": "0.4591567", "text": "gov.nih.nlm.ncbi.www.Blast4ErrorDocument.Blast4Error addNewBlast4Error();", "title": "" }, { "docid": "0c615801dca4ef3b11a4a553b80099c9", "score": "0.45908374", "text": "private void ensureCapacity() {\r\n if (count == data.length) {\r\n @SuppressWarnings(\"unchecked\") \r\n E[] newData = (E[])new Comparable[data.length * 2];\r\n\r\n // copy data elements\r\n for (int loop = 0; loop < count; loop++) {\r\n newData[loop] = data[loop];\r\n }\r\n data = newData;\r\n }\r\n return;\r\n }", "title": "" }, { "docid": "83101eda090871996668c70e9acaf8bc", "score": "0.45896545", "text": "public void addItem() {\n TestItemDAO tItemDAO = DAOFactory.getTestItemDAO();\n if (isValidLength()) //item is valid length\n if (!isDuplicate() && isValidLength()) { //item is not duplicated\n tItem = new TestItem(testID, itemTextField.getText());\n if (!tItemDAO.insertTestItem(tItem)) {\n JOptionPane.showMessageDialog(rootPanel, \"Failed to add item to database.\");\n itemTextField.requestFocus();\n } else { //query is executed query without error\n listModel.addElement(itemTextField.getText()); //the item is added to the list\n itemTextField.setText(\"\");\n itemTextField.requestFocus();\n checkItemNumber();\n }\n }else {\n JOptionPane.showMessageDialog(rootPanel, \"The item is already exist. Please enter a new item.\");\n itemTextField.setText(\"\");\n itemTextField.requestFocus();\n }\n }", "title": "" }, { "docid": "b2cda8b8632770068c3187805cc203dc", "score": "0.45871264", "text": "public void testValuesAddAccuracy() {\r\n values.add(\"hi\");\r\n assertEquals(\"incorrect size\", 1, values.getTextValues().size());\r\n assertEquals(\"incorrect element\", \"hi\", values.getTextValues().get(0));\r\n\r\n values.add(new String[]{\"bye\", \"hello\"});\r\n assertEquals(\"incorrect element\", \"bye\", values.getTextValues().get(1));\r\n assertEquals(\"incorrect element\", \"hello\", values.getTextValues().get(2));\r\n\r\n byte[] bytes = new byte[]{5, 6, 7, 8};\r\n values.add(bytes);\r\n assertNotNull(\"shouldn't be null\", values.getBinaryValues().get(0));\r\n\r\n byte[] bytes2 = (byte[]) values.getBinaryValues().get(0);\r\n assertEquals(\"incorrect bytes size\", bytes.length, bytes2.length);\r\n for (int i = 0; i < bytes.length; i++) {\r\n assertEquals(\"incorrect element\", bytes[i], bytes2[i]);\r\n }\r\n }", "title": "" }, { "docid": "af538c653ffd8a43d0adacc1d7556ee7", "score": "0.45829117", "text": "public ValidationResults<R, E> accumulate() {\n return accumulate(null);\n }", "title": "" }, { "docid": "ccac5cd646dcc0d019857d08fd047645", "score": "0.45813206", "text": "public void append(AssertAggregator assertAggregator) {\n if (assertAggregator != null) {\n assertionFailures.addAll(assertAggregator.getAssertionFailures());\n assertionSuccesses += assertAggregator.getSuccessCount();\n }\n }", "title": "" }, { "docid": "66e936139abe8902cf6031667b0ccbb3", "score": "0.45779273", "text": "boolean addAll(LongRelation relationToAdd);", "title": "" }, { "docid": "4d183c4cb4f2191ad478665aabab8420", "score": "0.45767584", "text": "public void addAssessments() throws Exception {\n\n if (!recordsToCopy.contains(\"Assessments\")) return;\n\n // first figure out if the version of ASpace allows for assessments\n double aspaceVersionDouble = new Double(aspaceVersion.replaceAll(\"[^0-9.]\", \"\"));\n\n if (aspaceVersionDouble >= 2.2) {\n System.out.println(\"Copying assessments ...\");\n } else if (aspaceVersion.isEmpty()) {\n if (copyAssessments == null) setCopyAssessments();\n if (!copyAssessments) {\n recordsToCopy.remove();\n return;\n }\n System.out.println(\"Unknown version of ASpace.\\nAttempting to copy assessments ...\");\n print(\"Unknown version of ASpace ...\");\n print(\"Attempting to copy assessments ...\");\n } else {\n System.out.println(\"ASpace version does not support assessments. Can not copy.\");\n print(\"ASpace version \" + aspaceVersion + \" does not support assessments.\\nSkipping copy assessments.\");\n addErrorMessage(\"Can not copy assessments. ASpace version \" + aspaceVersion + \" does not support.\");\n recordsToCopy.remove();\n return;\n }\n\n // load the assessment attributes that are already in ASpace\n loadAssessmentAtributeDefinitions();\n\n ArrayList<Assessments> records = sourceRCD.getAssessments();\n\n // these are used to update the progress bar\n int total = records.size();\n int count = numAttempted;\n int success = numSuccessful;\n\n records = new ArrayList<Assessments>(records.subList(numAttempted, total));\n\n for (Assessments assessment : records) {\n if (stopCopy) return;\n\n String jsonText = (String) mapper.convert(assessment);\n\n boolean successful = true;\n\n // get all the repositories that the assessment's linked records are in\n HashSet<String> linkedRepoURIs = new HashSet<String>();\n\n for (AssessmentsDigitalObjects digitalObject : assessment.getDigitalObjects()) {\n DigitalObjects record = digitalObject.getDigitalObject();\n linkedRepoURIs.add(getRemappedRepositoryURI(\"digitalObject\", record.getIdentifier(), record.getRepository()));\n }\n for (AssessmentsResources resource : assessment.getResources()) {\n linkedRepoURIs.add(getRepositoryURI(resource.getResource().getRepository()));\n }\n for (AssessmentsAccessions accession : assessment.getAccessions()) {\n Accessions record = accession.getAccession();\n linkedRepoURIs.add(getRemappedRepositoryURI(\"accession\", record.getIdentifier(), record.getRepository()));\n }\n\n /*\n since the repositories of all records attached to an assessment must be the same as the assessment's\n repository it is necessary to add a separate assessment for each linked repository\n */\n for (String repoURI: linkedRepoURIs) {\n\n String uri = repoURI + ASpaceClient.ASSESSMENT_ENDPOINT;\n\n // add linked records and assessment attributes\n String repoJSON = mapper.addAssessmentsRepoSpecificInfo(jsonText, assessment, repoURI);\n\n if (jsonText != null) {\n String id = saveRecord(uri, repoJSON, \"Assessment->\" + assessment.getAssessmentId());\n\n if(!id.equalsIgnoreCase(NO_ID)) {\n uri = uri + \"/\" + id;\n assessmentURIMap.put(assessment.getIdentifier(), uri);\n print(\"Copied Assessment: \" + assessment + \" :: \" + id);\n } else {\n print(\"Fail -- Assessment: \" + assessment);\n successful = false;\n }\n } else {\n print(\"Fail -- Assessment to JSON: \" + assessment);\n successful = false;\n }\n }\n\n if (successful) {\n success++;\n numSuccessful++;\n }\n\n count++;\n numAttempted++;\n updateProgress(\"Assessments\", total, count);\n }\n\n recordsToCopy.remove();\n numAttempted = 0;\n numSuccessful = 0;\n saveURIMaps();\n\n updateRecordTotals(\"Assessments\", total, success);\n\n // refresh the database connection to prevent heap space error\n freeMemory();\n }", "title": "" }, { "docid": "022d22057bea322ed7b738f902694827", "score": "0.4576622", "text": "@Override\r\n\tpublic void validate() {\n\t\t\r\n\t}", "title": "" }, { "docid": "022d22057bea322ed7b738f902694827", "score": "0.4576622", "text": "@Override\r\n\tpublic void validate() {\n\t\t\r\n\t}", "title": "" }, { "docid": "7f9f80d98fe04db431a26e883e8e5287", "score": "0.45749003", "text": "public void addQuery(Query q) throws ValidationException {\n\t\tif (!this.queries.contains(q)) {\n\t\t\tthis.queries.add(q);\n\t\t} else {\n\t\t\tlog.debug(\"Skipped duplicate query: \" + q + \" for server: \" + this);\n\t\t}\n\t}", "title": "" }, { "docid": "418f5241d036e0409a8c6d1d6f4280ec", "score": "0.45713633", "text": "void add(Accusation accusation) {\n Participant accuser = view.get(accusation.getAccuser());\n Participant accused = view.get(accusation.getAccused());\n if (accuser == null || accused == null) {\n log.info(\"Accusation discarded, accused or accuser do not exist in view\");\n return;\n }\n\n if (accusation.getRingNumber() > getParameters().rings) {\n log.debug(\"Invalid ring in accusation: {}\", accusation.getRingNumber());\n return;\n }\n\n if (accused.getEpoch() != accusation.getEpoch()) {\n log.debug(\"Accusation discarded in epoch: {} for: {} epoch: {}\" + accusation.getEpoch(), accused.getId(),\n accused.getEpoch());\n return;\n }\n\n if (!accused.getNote().getMask().get(accusation.getRingNumber())) {\n log.debug(\"Member {} accussed on disabled ring {} by {}\", accused.getId(), accusation.getRingNumber(),\n accuser.getId());\n return;\n }\n\n // verify the accusation after all other tests pass, as it's reasonably\n // expensive and we want to filter out all the noise first, before going to all\n // the trouble (and cost) to validate the sig\n if (!accusation.verify(accuser.forVerification(getParameters().signatureAlgorithm))) {\n log.debug(\"Accusation signature invalid \");\n return;\n }\n\n add(accusation, accuser, accused);\n }", "title": "" }, { "docid": "6556ab5bf7618868c0d31fd74ec15007", "score": "0.4568917", "text": "@Test\n\tpublic void testAddAll() {\n\t\tSystem.out.println(\"addAll\");\n\t\tObject[] elements = new Object[] {\"Testing\", \"Testing\", \"Testing\"};\n\t\tObject[] added = new Object[]{1, 2, 3};\n\t\tCollection collection = new ArrayList(Arrays.asList(elements));\n\t\tCollection expResult = new ArrayList(Arrays.asList(elements));\n\t\texpResult.addAll(Arrays.asList(added));\n\t\tassertEquals(expResult, TypeHelper.addAll(collection, added));\n\t}", "title": "" }, { "docid": "db489ea24e127bf57ce679a2c93e8c5b", "score": "0.45664012", "text": "@Override\r\n\tpublic void validate() {\r\n\t\t\r\n\t\tif(this.dayPartValues != null) {\r\n\t\t\tList<Position> p = getStore().getPositions();\r\n\t\t\tList<DayPart> d = getStore().getDayParts();\r\n\t\t\t\r\n\t\t\tfor(int i=0; i < getDayPartValues().length; i++) {\r\n\t\t\t\tfor(int j=0; j < getDayPartValues()[0].length; j++) {\r\n\t\t\t\t\tif(!validateValue(getDayPartValues()[i][j])) {\r\n\t\t\t\t\t\tPosition position = p.get(i);\r\n\t\t\t\t\t\tDayPart dayPart = d.get(j);\r\n\t\t\t\t\t\taddFieldError( \"dayPartData\", getText(getValidationErrorMessageKey(), new String[] {getDayPartValues()[i][j], position.getName(), dayPart.getName() }) );\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t}", "title": "" }, { "docid": "7c636f0f696aff12a7be5c9a299c1721", "score": "0.45571086", "text": "public abstract void validation();", "title": "" }, { "docid": "d4f6718d46faec13c03a68c2818703e0", "score": "0.45546237", "text": "private void adjustCapacity(){\n\t\t//array length can not satisfy data size;\n\t\tif ( this.array_len < size() + 1 ) {\n\t\t\tthis.array_len *= 2;\n\t\t\tthis.elementData = Arrays.copyOf(elementData, array_len);\n\t\t} else {\n\t\t\treturn ;\n\t\t}\n\t}", "title": "" }, { "docid": "41364e4ec6ae8958980d6b32bdae66de", "score": "0.45510077", "text": "@Override\n public ValidationResult check(ArrayList<Entry> object) {\n return null;\n }", "title": "" }, { "docid": "019441ad70490691fd87c079995d88cf", "score": "0.4550851", "text": "protected void sequence_Field_AddEntryToTable(ISerializationContext context, Field_AddEntryToTable semanticObject) {\n\t\tif (errorAcceptor != null) {\n\t\t\tif (transientValues.isValueTransient(semanticObject, LuaPackage.Literals.FIELD_ADD_ENTRY_TO_TABLE__KEY) == ValueTransient.YES)\n\t\t\t\terrorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, LuaPackage.Literals.FIELD_ADD_ENTRY_TO_TABLE__KEY));\n\t\t\tif (transientValues.isValueTransient(semanticObject, LuaPackage.Literals.FIELD__VALUE) == ValueTransient.YES)\n\t\t\t\terrorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, LuaPackage.Literals.FIELD__VALUE));\n\t\t}\n\t\tSequenceFeeder feeder = createSequencerFeeder(context, semanticObject);\n\t\tfeeder.accept(grammarAccess.getField_AddEntryToTableAccess().getKeyIDTerminalRuleCall_0_0(), semanticObject.getKey());\n\t\tfeeder.accept(grammarAccess.getField_AddEntryToTableAccess().getValueExpressionParserRuleCall_2_0(), semanticObject.getValue());\n\t\tfeeder.finish();\n\t}", "title": "" }, { "docid": "e0e5ab5a9bf34562c6ae75e3e0cc3395", "score": "0.4545457", "text": "private static void checkAddConvertHaveValidFields() { \n if (commandType.equals(CommandType.ADD)) {\n checkAddHasValidName(); \n \n // check for two valid dates in the case of convert timed\n } else if (commandType.equals(CommandType.CONVERT_TIMED)) {\n checkValidDates();\n \n // check for at least one valid date in the case of convert deadline\n } else if (commandType.equals(CommandType.CONVERT_DEADLINE)) {\n checkAtLeastOneValidDate();\n }\n }", "title": "" }, { "docid": "8e04c96558b5bce7067750158639be3c", "score": "0.45360243", "text": "public void add(E newItem) {\r\n if (size == data.length) {\t\t\t// if the array is full...\r\n E[] newData = (E[])(new Object[2*data.length]);\t// create a new array of twice the length\r\n for (int i = 0; i < data.length; i++) // copy over all the old elements\r\n newData[i] = data[i];\r\n data = newData; // redirect data to point to the new array\r\n }\r\n data[size] = newItem; // add the newItem to the back of the array\r\n size++;\r\n }", "title": "" }, { "docid": "b1a8820bcedf944b775ecf46f81c2a4f", "score": "0.4535346", "text": "@Override\n\tpublic void addNotify() {\n\t\tsuper.addNotify();\n\t\t// Validate the initial state\n\t\tfinal Problem p = this.group.validateAll();\n\t\tif (p != null) {\n\t\t\tthis.vui.setProblem(p);\n\t\t}\n\t}", "title": "" }, { "docid": "bcc5a9087a9965e31701b23422a50938", "score": "0.45342365", "text": "private void checkNotEmpty() {\n\t\tif (this.isEmpty()) {\n\t\t\tthrow new EmptyListError();\n\t\t}\n\t}", "title": "" }, { "docid": "bcc5a9087a9965e31701b23422a50938", "score": "0.45342365", "text": "private void checkNotEmpty() {\n\t\tif (this.isEmpty()) {\n\t\t\tthrow new EmptyListError();\n\t\t}\n\t}", "title": "" }, { "docid": "061f594389dc8af29f6bf497a50d3e3d", "score": "0.453354", "text": "@SuppressWarnings(\"unchecked\")\r\n private void ensureExtraCapacity(int extraCapacity){\r\n //check if we need to grow\r\n if(numElems + extraCapacity > elements.length){\r\n int newCapacity = elements.length * 2 + extraCapacity;\r\n E[] newElements = (E[]) new Object[newCapacity];\r\n for(int row = 0; row < numElems; row++){\r\n newElements[row] = elements[row];\r\n }\r\n elements = newElements;\r\n }\r\n }", "title": "" }, { "docid": "e4294909011ae2c2a241459dc868f6e1", "score": "0.45303315", "text": "public boolean hasErrors() {\n return !insertErrors.isEmpty();\n }", "title": "" }, { "docid": "bd90ffd70f7fe245041495e6cf9ec2f1", "score": "0.45287764", "text": "@Test\r\n\tpublic void add_Three_Nodes()\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\tint[] elements = { 5, 100, 2 };\r\n\t\t\tint[] expectedLevelOrderTrav = { 5, 2, 100 };\r\n\r\n\t\t\taddAllData(elements);\t\r\n\t\t\tconfirmMatch(expectedLevelOrderTrav);\r\n\t\t}\r\n\t\tcatch(Exception ex)\r\n\t\t{\r\n\t\t\tfail(\"Exception caught\");\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "c10c488ff9de7a35da810459d3f72fc1", "score": "0.45229587", "text": "private void validate() {\n if (name == null || name.equals(\"\") || name.length() > 45) {\n hasNameError = true;\n }\n // TODO: Validate fields as you add them\n //validate the phone\n //PROJ DSECRIPTION: phone: after removing all spaces, dashes, and parens (all nondigits) from the string it should have exactly 10 digits\n //phone is a string\n //tested in Eclipse\n //https://www.javacodeexamples.com/java-string-keep-only-numbers-example/715\n //[^//d] is what I want (even gets rid of the period) because looks for \"not a digit\" characters to remove\n //a . is a numeric character but is NOT A DIGIT (so cannot use [^0-9] because that looks for non-numeric characters)--needs 10 digits\n //Dr K did this\n //String digitOnlyPhone=(phone==null)? \"\":phone.replaceAll(\"[^\\\\d]\", \"\");\n //and later used digitOnlyPhone.length() (I think mine works too)\n\n if (phone==null || phone.equals(\"\") || phone.replaceAll(\"[^\\\\d]\", \"\").length()!=10){\n hasPhoneError=true;\n }\n\n //create a field to get the current date\n Date currentDate = new Date();\n\n //use this conditional to get a false error if the date provided is before the current date\n //https://www.mkyong.com/java/how-to-compare-dates-in-java/\n if (ccExpDate.before(currentDate)) {\n hasDateError=true;\n }\n\n //fill in conditionals for the other fields\n //address just needs to have something within it\n if (address==null || address.equals(\"\")){\n hasAddressError=true;\n }\n\n //email: should not contain spaces; should contain a \"@\"; and the last character should not be \".\"\n //should be non-null and present\n //inspiration for containing: //https://stackoverflow.com/questions/11488478/how-do-i-check-whether-input-string-contains-any-spaces\n //should not contain spaces\n //similar principle for making sure it has a @ (if doesn't contain @ then there is an error)\n //string has an endsWith method: https://stackoverflow.com/questions/12310978/check-if-string-ends-with-certain-pattern\n //we don't want it to end with a period\n if (email==null || email.equals(\"\") || email.contains(\" \") || !email.contains(\"@\") || email.endsWith(\".\")){\n hasEmailError=true;\n }\n\n //a credit card number should ONLY have numbers (should not have letters)--so only maintain the numbers\n //credit card number: after removing spaces and dashes, the number of characters should be between 14 and 16.\n //should be non-null and present\n //when we POST, we move away and come back to the customer form so the credit card field will be empty after you hit submit\n if (creditCardNumber==null || creditCardNumber.equals(\"\") || creditCardNumber.replaceAll(\"[^\\\\d]\", \"\").length()<14 || creditCardNumber.replaceAll(\"[^\\\\d]\", \"\").length()>16){\n hasCreditCardNumberError=true;\n }\n\n }", "title": "" }, { "docid": "d7d642176b2d4d308f7013cc4f8fcc9e", "score": "0.45169607", "text": "@Test\r\n\tpublic void add_Seven_Nodes()\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\tint[] elements = { 5, 100, 2, 3, 7, 1, 102 };\r\n\t\t\tint[] expectedLevelOrderTrav = { 5, 2, 100, 1, 3, 7, 102 };\r\n\r\n\t\t\taddAllData(elements);\t\r\n\t\t\tconfirmMatch(expectedLevelOrderTrav);\r\n\t\t}\r\n\t\tcatch(Exception ex)\r\n\t\t{\r\n\t\t\tfail(\"Exception caught\");\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "44183b9b1550d52b25093f926fe3c882", "score": "0.45164883", "text": "public boolean appendElement(String elementText) {\n if (_id == null || elementText == null)\n throw new IllegalStateException(\"No segment identifier has been set\");\n\n int elementIdNum = _elements.size() + 1;\n String elementId = (_elements.size() < 10) ? _id + \"0\" + elementIdNum : _id + elementIdNum;\n\n return addElements(new Element(elementId, elementText, _separators));\n }", "title": "" }, { "docid": "71aa2ad9f0d881693cefd659f256a1b5", "score": "0.45157394", "text": "public void addData(MotCle newData)\r\n\t {\n\t if (motCle == null){\r\n\t \tmotCle = new LinkedList();\r\n\t \tmotCle.add(newData);\r\n\t }\r\n\t // Otimization: Often, words will be inserted in order\r\n\t else if (motCle.getLast().compareTo(newData) < 0){\r\n\t \tmotCle.addLast(newData);\r\n\t }\r\n\t else {\r\n\t \t//System.out.println(\"check 3!\" );\r\n\t // Hunt for where the new entry belongs\r\n\t int index = 0;\r\n\t while ((index < motCle.size()) &&\r\n\t (motCle.get(index).compareTo(newData) < 0))\r\n\t index++;\r\n\t if (index >= motCle.size()) // Scanned the entire list\r\n\t \tmotCle.addLast(newData);\r\n\t else if (motCle.get(index).compareTo(newData) == 0)\r\n\t // Overwrite\r\n\t \tmotCle.set(index, newData);\r\n\t else\r\n\t // Have data just beyond wanted position. Insert it here\r\n\t \tmotCle.add(index, newData);\r\n\t }\r\n\t }", "title": "" }, { "docid": "43e2b047c7d233dff1556e3349631589", "score": "0.4513327", "text": "private void applyRules() {\n //rule 1\n setAttributesFromClass(attr);\n //rule 2\n getAttributeList();\n //rule 3\n checksWhetherDesignElementExits();\n //rule 4\n removeRedundancy();\n //rule 5\n removeClassesFromAttributes();\n //rule 6\n // findAttributeAssociatedWithLocation();\n \n\n }", "title": "" }, { "docid": "f651dc759f3b3ae2d6317b4d66b75808", "score": "0.45110065", "text": "@Test\n public void testAddUpIdStringElipsis() throws Exception\n {\n DN dn = new DN( \"cn=test\" );\n DefaultEntry entry = new DefaultEntry( schemaManager, dn );\n \n // Test a simple addition\n entry.add( \"DC\", \"test1\" );\n assertNotNull( entry.get( atDC ) );\n assertTrue( entry.containsAttribute( atDC ) );\n assertEquals( \"dc\", entry.get( atDC ).getId() );\n assertEquals( \"DC\", entry.get( atDC ).getUpId() );\n assertEquals( 1, entry.get( atDC ).size() );\n assertEquals( \"test1\", entry.get( atDC ).get().getString() );\n \n // Test some more addition\n entry.add( \"DC\", \"test2\", \"test3\" );\n assertNotNull( entry.get( atDC ) );\n assertEquals( 3, entry.get( atDC ).size() );\n assertTrue( entry.contains( atDC, \"test1\" ) );\n assertTrue( entry.contains( atDC, \"test2\" ) );\n assertTrue( entry.contains( atDC, \"test3\" ) );\n \n // Test some addition of existing values\n entry.add( \"DC\", \"test2\" );\n assertNotNull( entry.get( atDC ) );\n assertEquals( 3, entry.get( atDC ).size() );\n assertTrue( entry.contains( atDC, \"test1\" ) );\n assertTrue( entry.contains( atDC, \"test2\" ) );\n assertTrue( entry.contains( atDC, \"test3\" ) );\n \n // Test the addition of a null value\n entry.add( \"DC\", ( String ) null );\n assertNotNull( entry.get( atDC ) );\n assertEquals( 4, entry.get( atDC ).size() );\n assertTrue( entry.contains( atDC, \"test1\" ) );\n assertTrue( entry.contains( atDC, \"test2\" ) );\n assertTrue( entry.contains( atDC, \"test3\" ) );\n assertTrue( entry.contains( atDC, ( String ) null ) );\n \n entry.clear();\n \n // Test the addition of a binary value\n byte[] test4 = StringTools.getBytesUtf8( \"test4\" );\n \n entry.add( \"DC\", test4 );\n assertFalse( entry.contains( \"DC\", test4 ) );\n }", "title": "" }, { "docid": "dccd8f67f442098e7b6b66731cfe4975", "score": "0.45081466", "text": "public boolean addIngredientToList(IngredientItem ingredientItem) {\n\n System.out.println(\"Safe to Add to List\");\n ingredientItem.setOGPrice(ingredientItem.getCost());\n ingredientItem.setOGQuant(ingredientItem.getWeight());\n this.ingredientItemArrayList.add(ingredientItem);\n //TODO This means the DTM and the arrayList doesn't match.\n\n\n return true;\n\n }", "title": "" }, { "docid": "f4464294d6259cf2f0663f9c21b722f1", "score": "0.45070276", "text": "public void lengthCheck() {\n if (obj[obj.length -1] != null) {\n Object[] newObj = new Object[(obj.length * 2)];\n for (int i = 0; i < numElements; i++) {\n newObj[i] = obj[i];\n }\n this.obj = newObj; \n } else {\n }\n\n }", "title": "" }, { "docid": "b24b95621c794f3fd927064a7fa4b536", "score": "0.45058537", "text": "int insert(RuleOpInfo record);", "title": "" }, { "docid": "d8c95d7c08e38ab0e39bec9f54e2108f", "score": "0.45051593", "text": "protected void validateInput() {\n\t\trestValidationService.setValidatableObj(this.getTransactionReportTO());\n\t\tboolean isValid = restValidationService.validate();\n\t\tif (isValid) {\n\t\t\tOptional<Contact> optional = contactRepo.findById(this.getTransactionReportTO()\n\t\t\t .getContact()\n\t\t\t .getContactID());\n\t\t\tif (!optional.isPresent()) {\n\t\t\t\tthrow new DataNotFoundException(\"contact not found\");\n\t\t\t}\n\t\t\tlog.info(\"input validation passed\");\n\t\t}\n\t}", "title": "" }, { "docid": "b6d882915de8aa70b7837b9e502679a0", "score": "0.45014727", "text": "private List<String> validate(AddStudentModel studObj){\n\t\t\n\t\tList<String> errorList = new ArrayList<>();\t\t\n\t\tif (!(studObj.getGender().equalsIgnoreCase(\"male\") || studObj.getGender().equalsIgnoreCase(\"female\"))) {\n\t\t\terrorList.add(\"Gender value should be either male or female\");\n\t\t}\n\t\t\n\t\ttry {\n\t\t\tInteger grade = Integer.parseInt(studObj.getGrade());\n\t\t\tSystem.out.println(\"grade value-->\"+grade);\n\t\t} catch(NumberFormatException e) {\n\t\t\terrorList.add(\"Grade value should be in integer\");\n\t\t}\n\t\t\n\t\ttry {\n\t\t\tInteger notebook = Integer.parseInt(studObj.getNotebooks());\n\t\t\tSystem.out.println(\"notebook value-->\"+notebook);\n\t\t} catch(NumberFormatException e) {\n\t\t\terrorList.add(\"Notebook value should be in integer\");\n\t\t}\n\t\t\n\t\ttry {\n\t\t\tDouble gpa = Double.parseDouble(studObj.getGpa());\n\t\t\tSystem.out.println(\"GPA value-->\"+gpa);\n\t\t} catch(NumberFormatException e) {\n\t\t\terrorList.add(\"GPA value should be in decimal format\");\n\t\t}\n\t\t\n\t\t\n\t\tLocalDate admDate = studObj.getAdmissiondate();\n\t\tif (admDate.isAfter(LocalDate.now())){\n\t\t\terrorList.add(\"Admission value cannot be a future date\");\n\t\t}\t\t\n\t\t\n\t\treturn errorList;\n\t}", "title": "" }, { "docid": "89d4deeaa2557a2e45ac37c830b6595e", "score": "0.45014262", "text": "@Override\n\tpublic void validate() {\n\t\t\n\t}", "title": "" }, { "docid": "5f51ebebfe75b062a04e7f9d851f7a4c", "score": "0.44996634", "text": "public void validate() {}", "title": "" }, { "docid": "5f51ebebfe75b062a04e7f9d851f7a4c", "score": "0.44996634", "text": "public void validate() {}", "title": "" }, { "docid": "5f51ebebfe75b062a04e7f9d851f7a4c", "score": "0.44996634", "text": "public void validate() {}", "title": "" }, { "docid": "e0e758b2adf4a8bc85369f6b30cde35e", "score": "0.44991517", "text": "public void addElement (String[] array, DiscreteInteger size,//!\n\t Index index, String value)//!\n{\n ActivationRecord arec = activate(ArrayOperations.class);//!\n arec.refParam(\"array\", array).refParam(\"size\", size).param(\"index\", index).param(\"value\", value).breakHere(\"starting addElement\");//!\n // Make room for the insertion\n//! int toBeMoved = size - 1;\n Index toBeMoved = new Index(size.get() - 1, array);//!\n arec.var(\"toBeMoved\", toBeMoved).breakHere(\"set toBeMoved\");//!\n//! while (toBeMoved >= index) {\n while (toBeMoved.get() >= index.get()) { //!\n\tarec.breakHere(\"in loop: ready to move an element up\");//!\n//! array[toBeMoved+1] = array[toBeMoved];\n\t if (toBeMoved.get()+1 >= array.length) {//!\n\t\t arec.breakHere(\"array is already full - program may crash\");//!\n\t\t return;//!\n\t }//!\n array[toBeMoved.get()+1] = array[toBeMoved.get()];//!\n\tarec.breakHere(\"in loop: Moved the element\");//!\n//! --toBeMoved;\n toBeMoved.set (toBeMoved.get() - 1);//!\n\tarec.breakHere(\"in loop: decremented\");//!\n }\n // Insert the new value\n arec.breakHere(\"Done moving elements\");//!\n//! array[index] = value;\n array[index.get()] = value;//!\n arec.breakHere(\"Inserted new value\");//!\n//! ++size;\n size.set(size.get() + 1);//!\n}", "title": "" }, { "docid": "f37352d0f8eb4e30a1cb5c67cc789049", "score": "0.4498439", "text": "void append(final FSWALEntry entry) throws Exception {\n // TODO: WORK ON MAKING THIS APPEND FASTER. DOING WAY TOO MUCH WORK WITH CPs, PBing, etc.\n atHeadOfRingBufferEventHandlerAppend();\n\n long start = EnvironmentEdgeManager.currentTime();\n byte [] encodedRegionName = entry.getKey().getEncodedRegionName();\n long regionSequenceId = WALKey.NO_SEQUENCE_ID;\n try {\n // We are about to append this edit; update the region-scoped sequence number. Do it\n // here inside this single appending/writing thread. Events are ordered on the ringbuffer\n // so region sequenceids will also be in order.\n regionSequenceId = entry.stampRegionSequenceId();\n // Edits are empty, there is nothing to append. Maybe empty when we are looking for a\n // region sequence id only, a region edit/sequence id that is not associated with an actual\n // edit. It has to go through all the rigmarole to be sure we have the right ordering.\n if (entry.getEdit().isEmpty()) {\n return;\n }\n\n // Coprocessor hook.\n if (!coprocessorHost.preWALWrite(entry.getHRegionInfo(), entry.getKey(),\n entry.getEdit())) {\n if (entry.getEdit().isReplay()) {\n // Set replication scope null so that this won't be replicated\n entry.getKey().setScopes(null);\n }\n }\n if (!listeners.isEmpty()) {\n for (WALActionsListener i: listeners) {\n // TODO: Why does listener take a table description and CPs take a regioninfo? Fix.\n i.visitLogEntryBeforeWrite(entry.getHTableDescriptor(), entry.getKey(),\n entry.getEdit());\n }\n }\n\n writer.append(entry);\n assert highestUnsyncedSequence < entry.getSequence();\n highestUnsyncedSequence = entry.getSequence();\n sequenceIdAccounting.update(encodedRegionName, entry.getFamilyNames(), regionSequenceId,\n entry.isInMemstore());\n coprocessorHost.postWALWrite(entry.getHRegionInfo(), entry.getKey(), entry.getEdit());\n // Update metrics.\n postAppend(entry, EnvironmentEdgeManager.currentTime() - start);\n } catch (Exception e) {\n String msg = \"Append sequenceId=\" + regionSequenceId + \", requesting roll of WAL\";\n LOG.warn(msg, e);\n requestLogRoll();\n throw new DamagedWALException(msg, e);\n }\n numEntries.incrementAndGet();\n }", "title": "" } ]
6ea48f484d42d8400473437fa5b7ccf4
controllo che la lista dei biglietti non sia vuota
[ { "docid": "bd2537b2660cc063bb7d84953a06d8a5", "score": "0.0", "text": "public void aggiungiPrenotazione(String ambiente, String mezzo, String partenza, String arrivo, String via, String dataPartenza, ArrayList<String> listaNomi,ArrayList<String> listaCognomi, ArrayList<String> listaEmail) throws ParseException, IDEsternoElementoException, OffertaInesistenteException, PrenotazioneException, TrattaInesistenteException, PostiNonSufficientiException, QuantitaException, DirittiException {\n\t\tif (listaNomi.size() == 0){\r\n\t\t\tthrow new QuantitaException(\"Occorre compilare almeno un biglietto per inserire una Prenotazione.\");\r\n\t\t}\r\n\t\t\r\n\t\t//Controllo se esiste gia' una prenotazione\r\n\t\tString nomeAcquirente = listaNomi.get(0) + \" \" + listaCognomi.get(0);\r\n\t\tData dataOfferta = Data.parseTimestamp(dataPartenza);\r\n\t\t\r\n\t\tif (catalogo.verificaEsistenzaPrenotazione(ambiente,mezzo,partenza,arrivo,via,dataOfferta,nomeAcquirente)){\r\n\t\t\tthrow new PrenotazioneException(\"Prenotazione gia' esistente per questo viaggio.\");\r\n\t\t}\r\n\t\t\r\n\t\t//prendo la Tratta\r\n\t\tTratta tratta = catalogo.getTrattaByValue(ambiente, mezzo, partenza, arrivo, via);\r\n\t\t\r\n\t\t//prendo l'offerta dalla Mappa\r\n\t\tOfferta offerta = catalogo.getOffertaFromMappa(ambiente, mezzo, partenza, arrivo, via, dataOfferta);\r\n\t\tInteger idOfferta = offerta.getIdOfferta();\r\n\t\t\r\n\t\t//controllo disponibilita' biglietti\r\n\t\tif (offerta.getPosti() < listaNomi.size()){\r\n\t\t\tthrow new PostiNonSufficientiException(\"Non ci sono abbastanza Posti disponibili per soddisfare tale prenotazione.\");\r\n\t\t}\r\n\t\t\r\n\r\n\t\tofferta.assegnaPosti(listaNomi.size());\r\n\t\t\r\n\t\t\r\n\t\t//creo una nuova Prenotazione\r\n\t\tPrenotazione prenotazione = new Prenotazione(idOfferta, listaNomi, listaCognomi, listaEmail);\r\n\t\t\r\n\t\t//Aggiungo la prenotazione al catalogo\r\n\t\tcatalogo.aggiungiPrenotazioneAlCatalogo(prenotazione, offerta, tratta);\r\n\t\tlog.aggiornaLogAggiungiPrenotazione(sessione.getUsername(),ambiente, mezzo, partenza, arrivo, via, dataPartenza, nomeAcquirente);\r\n\t\t\r\n\t\t\r\n\t}", "title": "" } ]
[ { "docid": "1ffc1c4412a8badc50675b969c5c34cc", "score": "0.64266", "text": "private ArrayList<TipoElemento> inputPietre() {\n String[] simboli = {\"🌪️\",\"🔥\",\"⛰\",\"🌿\",\"🌊\",\"🌫️\",\"🐲\",\"🌩\",\"☢\",\"🧊\"};\n int qtScelte = 0;\n ArrayList<TipoElemento> scelte = new ArrayList<>();\n\n System.out.println(SCEGLI_PIETRE);\n TipoElemento[] possibili = eq.getTipiDisponibili();\n\n //Finché non ha raggiunto il numero di pietre da prelevare\n while(qtScelte < Config.getNumPietre()){\n int pietre_rimaste = Config.getNumPietre()-qtScelte;\n\n //Stampo l'elenco di pietre disponibili\n System.out.println(\"Pietre possibili [sceglierne \"+ pietre_rimaste +\"]: \");\n for(int i = 0; i < possibili.length; i++){\n System.out.println(\"(\"+i+\") \" + possibili[i] + \" \" + simboli[i] + \": \" + getNumeroPietre(possibili[i]));\n }\n //Continuo a prendere in input il tipo finché ne prendo uno con pietre disponibili\n int tipo = InputDati.leggiIntero(SCELTA,0,possibili.length-1);\n while(getNumeroPietre(possibili[tipo]) == 0)\n tipo = InputDati.leggiIntero(NON_DISPONIBILE,0,possibili.length-1);\n int qt = InputDati.leggiIntero(QUANTITA, 0, getNumeroPietre(possibili[tipo]));\n\n System.out.println();\n\n //Prelevo le pietre\n if(qtScelte+qt <= Config.getNumPietre()){\n prelevaPietre(possibili[tipo], qt);\n qtScelte+=qt;\n while(qt>0){\n scelte.add(possibili[tipo]);\n qt--;\n }\n }\n else\n System.out.println(ERRORE_DI_SELEZIONE);\n }\n return scelte;\n }", "title": "" }, { "docid": "3a3613d5a734324862e1a00e2b2602cc", "score": "0.641161", "text": "protected void caricaListaBollo() {\n\t\tList<CodiceBollo> listaInSessione = sessionHandler.getParametro(BilSessionParameter.LISTA_CODICE_BOLLO);\n\t\tif(listaInSessione == null) {\n\t\t\tRicercaCodiceBollo request = model.creaRequestRicercaCodiceBollo();\n\t\t\tRicercaCodiceBolloResponse response = documentoService.ricercaCodiceBollo(request);\n\t\t\tif(!response.hasErrori()) {\n\t\t\t\tmodel.setListaBollo(response.getElencoCodiciBollo());\n\t\t\t\tlistaInSessione = response.getElencoCodiciBollo();\n\t\t\t\tsessionHandler.setParametro(BilSessionParameter.LISTA_CODICE_BOLLO, listaInSessione);\n\t\t\t} \n\n\t\t}\n\t\tmodel.setListaBollo(listaInSessione);\n\t\t//se ho soltanto un elemento lo preimposto\n\t\tif(model.getListaBollo() !=null && !model.getListaBollo().isEmpty() && model.getListaBollo().size()== 1){\n\t\t\tmodel.setCodiceBollo(model.getListaBollo().get(0));\n\t\t}\n\t}", "title": "" }, { "docid": "5fb0063ff630761a919b3406a97dd352", "score": "0.64068425", "text": "@Override\r\n public boolean tieneSiguiente() {\r\n return !pila.isEmpty() && indice < pila.size();\r\n }", "title": "" }, { "docid": "888b6cef53f3623435d018d7a98b3e3b", "score": "0.6396459", "text": "private void listaContatosLivro() throws SQLException {\n BdLivro d = new BdLivro();\n livros = d.getLista(\"%\" + jTPesquisar.getText() + \"%\");\n\n // Após pesquisar os contatos, executa o método p/ exibir o resultado na tabela pesquisa\n mostraPesquisaLivro(livros);\n livros.clear();\n }", "title": "" }, { "docid": "db8efbcd1d5c35f7f940ae05492e29a8", "score": "0.6358667", "text": "private List<Integer> caricaListaAnniComplessiva(){\n\t\t\n\t\tList<Integer> listaAnniEntrataEUscita = cronoprogramma.getAnniEntrataEUscita();\n \t\tInteger annoBilancio = req.getBilancio().getAnno();\n\n \t\tif(listaAnniEntrataEUscita.isEmpty()){\n \t\t\tlistaAnniEntrataEUscita.add(annoBilancio);\n \t\t\tres.setListaAnniEntrataUscitaComplessiva(listaAnniEntrataEUscita);\n \t\t\treturn listaAnniEntrataEUscita;\n \t\t}\n \t\t\n\t\tif (!listaAnniEntrataEUscita.contains(annoBilancio)) {\n\t\t\tlistaAnniEntrataEUscita.add(annoBilancio);\n\t\t}\n\t\tCollections.sort(listaAnniEntrataEUscita);\n\n\t\tres.setListaAnniEntrataUscitaComplessiva(listaAnniEntrataEUscita);\n\t\t\n\t\treturn listaAnniEntrataEUscita;\n\t\t\n\t}", "title": "" }, { "docid": "1313f4ee3716a2580c9a1ca2c84608e5", "score": "0.63242", "text": "private void unosNoveSobe() {//OVDJE JOS TREBA DOCI ZA PROGRAM\n\tfor(int i =1; i<=20; i++) {\n\tSoba soba = new Soba();\n\tsoba.setSifra(Pomocno.randomIntIzmedju(1, 100));\n\tsoba.setPosudjen(Pomocno.randomDatum(100, 2020));\n\tsoba.setKreiran(Pomocno.randomDatum(1000, 2020));\n\tsoba.setNapravljen(Pomocno.randomDatum(1000, 2020));\n\tsoba.setProgram(unesiPrograme());\n\tlistaSoba.add(soba);\n\tSystem.out.println(\"Soba \" + soba + \" je uspjesno dodana\");\n\t}\n}", "title": "" }, { "docid": "68184e70265f2dd05fb85f64c45863e9", "score": "0.63181", "text": "public void robbanoCicakPaklibaKeverese(){\n for (int i = 0; i <= jatekosDb - 2; i++){\n robbanoCicaKartyak.add(new Kartya(\"BUMM (Robbanó cica)\"));\n\n //Paklihoz adas\n kevertPakli.add(robbanoCicaKartyak.get(i));\n\n //Pakli keverese\n kevertPakli = pakliKeverese(kevertPakli);\n }\n }", "title": "" }, { "docid": "261eb4d08bbc31f72f0d3287477a3e70", "score": "0.6309836", "text": "public void cancellaVotiScarsi() {\n\t\tList<Voto> daTogliere= new ArrayList<Voto>();\n\t\tfor(Voto v : this.voti) {\n\t\t\tif(v.getVoto()<24) {\n\t\t\t\tdaTogliere.add(v);\n\t\t\t}\n\t\t}\n\t\t/*for(Voto v : daTogliere) {\n\t\t\tthis.voti.remove(v);\n\t\t}*/\n\t\tthis.voti.removeAll(daTogliere);\n\t}", "title": "" }, { "docid": "510d07b624c26440c7ec1b273df6be7e", "score": "0.62808955", "text": "private static void viderBaliseMarquante() {\r\n Balise tmp; // variable temporaire\r\n \r\n /* liste des balises a supprimer */\r\n ArrayList<Balise> aSupprimer = new ArrayList<Balise>();\r\n \r\n /* balayage de toute la collection */\r\n for (Balise balise : baliseTrouve) {\r\n \r\n tmp = balise;\r\n /* on atteint la derniere balise imbrique */\r\n while (tmp.getBaliseImbrique() != null) {\r\n tmp = tmp.getBaliseImbrique();\r\n }\r\n \r\n /* si le contenu est vide alors on supprime */\r\n if (tmp.getContenu() == null) {\r\n aSupprimer.add(balise);\r\n }\r\n }\r\n \r\n /* suppression des balises vides */\r\n for (Balise balise : aSupprimer) {\r\n baliseTrouve.remove(balise);\r\n }\r\n }", "title": "" }, { "docid": "de8749cc60e73297a965c498241a5c2b", "score": "0.62620425", "text": "private void listaContatosLivroEmprestimo() throws SQLException { \n BdLivro d = new BdLivro();\n livros = d.select(pegaIdLivro()); \n \n // Após pesquisar os contatos, executa o método p/ exibir o resultado na tabela pesquisa\n mostraContatoLivroEmprestimo(livros);\n livros.clear();\n }", "title": "" }, { "docid": "592313983cdd66100f61834a9f64bf00", "score": "0.6251603", "text": "private void listaContatosLivro() throws SQLException {\n BdLivro d = new BdLivro();\n livros = d.getListaEmprestados(\"%\" + jTPesquisar.getText() + \"%\"); \n \n // Após pesquisar os contatos, executa o método p/ exibir o resultado na tabela pesquisa\n mostraPesquisaLivroEmprestados(livros);\n livros.clear();\n }", "title": "" }, { "docid": "48ec16fdedb46a88801ec7fb1460e600", "score": "0.6218548", "text": "public List<OggettoVendibile> generaListaOggettiVendibiliNonInVendita() {\r\n\t\tList<OggettoVendibile> oggetti = new ArrayList<>();\r\n\t\tfor (CartaPolitica c : cartePolitica) {\r\n\t\t\tif (c.getPrezzo() == 0)\r\n\t\t\t\toggetti.add(c);\r\n\t\t}\r\n\t\tfor (Assistente a : assistenti) {\r\n\t\t\tif (a.getPrezzo() == 0)\r\n\t\t\t\toggetti.add(a);\r\n\t\t}\r\n\t\tfor (TesseraCostruzione t : tessereValide) {\r\n\t\t\tif (t.getPrezzo() == 0)\r\n\t\t\t\toggetti.add(t);\r\n\t\t}\r\n\t\treturn oggetti;\r\n\t}", "title": "" }, { "docid": "675904ee9abc69fd028b90244cf8d4a6", "score": "0.61362654", "text": "private static void imbrique(int baliseOuvert) { \r\n Balise tmp; // variable de stockage\r\n int taille; // taille de la collection baliseTrouve\r\n\r\n taille = baliseTrouve.size()-1;\r\n /* puis on remonte le nombre d'imbrication */\r\n for (int i = 0; i < baliseOuvert; i++) {\r\n /* on recupere la derniere balise de la collection */\r\n tmp = baliseTrouve.get(taille);\r\n\r\n /* on recupere le type de la balise precedente puis on en creer une nouvelle */\r\n baliseTrouve.set(taille, baliseTrouve.get(taille-1)\r\n .getBaliseImbrique(baliseOuvert-i-1)\r\n .creerBalise(null));\r\n\r\n /* puis on imbrique dans cette nouvelle balise tmp */\r\n baliseTrouve.get(taille).setBaliseImbrique(tmp);\r\n }\r\n }", "title": "" }, { "docid": "2008c8131b4512b978ac87c2ea58aaf1", "score": "0.61327237", "text": "public void ExibeLivros() {\n\t\tfor (int i = 0; i < tamanho; i ++) {\n\t\t\tSystem.out.println(\"Livro: \"+ livros[i].getTitulo() +\" quantidade: \"+ livros[i].getQuantidade());\n\t\t}\n\t}", "title": "" }, { "docid": "9fc468df5351d904d9b0ad66d33266af", "score": "0.61140656", "text": "Vector generisiPoteze(int[][] tabla, int igrac)\t{\n\n int[][] pom_tabla;\n Vector lista_poteza = new Vector();\t\t\t\n for (int i=0; i<8; i++){\n for (int j=0; j<8; j++){\n if (((i+j) % 2) == 1){\n int figura = tabla[i][j];\n if (boja(figura) == boja(igrac)){\n int[] potez = new int[4];\n // pocetne koordinate poteza su one na kojima se data figura trenutno nalazi\n potez[0] = i; potez[1] = j;\t\t\t\t\n\n for(int p=i-1; p<=i+1; p+=2){\t\t\t\n for(int q=j-1; q<=j+1; q+=2){\n if (dozvoljenHod(tabla, i, j, p, q)) {\n potez[2] = p; potez[3] = q;\n lista_poteza.addElement(potez);\t\t\t\t\t\t\t\t\t\n }\n }\n }\t\t\t\n\n for(int p=i-2; p<=i+2; p+=4){\t\t\t\t\t\t\t\t\t\t\t\t\t\n for(int q=j-2; q<=j+2; q+=4){\n if (dozvoljenSkok(tabla, i, j, p, q)) {\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n Vector lista_skokova = new Vector();\t\t\t\t\t\t\t\t\t\n int iter = 10;\n nadjiVezaneSkokove(tabla, lista_skokova, i, j, p, q, iter);\n for (int ls=0; ls<lista_skokova.size(); ls++){\t\t\t\t\n lista_poteza.insertElementAt(lista_skokova.elementAt(ls),ls); \n }\n }\n }\t\n }\t\n\n }\n }\n }\n }\n\n return lista_poteza;\n\n }", "title": "" }, { "docid": "bdb9828a60c0207a1e9f1ef3f5aaa568", "score": "0.6111815", "text": "private void rellenarPobCruce() {\n\t\twhile (poblacionNueva.size() < tamPob - tamElite) {\n\t\t\tIndividuo ind1 = funcSelec.select(poblacion, punts_acum).clone();\n\t\t\tIndividuo ind2 = funcSelec.select(poblacion, punts_acum).clone();\n\n\t\t\tPar<Individuo> trasCruce = funcCruz.cruzar(new Par<Individuo>(ind1, ind2));\n\n\t\t\tIndividuo ind1t = trasCruce.getN1();\n\t\t\tIndividuo ind2t = trasCruce.getN2();\n\n\t\t\tpoblacionNueva.add(ind1t);\n\t\t\tif (poblacionNueva.size() < tamPob - tamElite) // Puede ser un\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// numero impar de\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// nuevos individuos\n\t\t\t\tpoblacionNueva.add(ind2t);\n\t\t}\n\t}", "title": "" }, { "docid": "4126b37d228c521ac5ebf270706346c3", "score": "0.61043906", "text": "public static ArrayList<Integer> luoLottoRivi() {\n\n ArrayList<Integer> lottorivi = new ArrayList<>();\n Random random = new Random();\n /*for (int i = 0 ; i < 7 ; i++) {\n int num = random.nextInt(41);\n lottorivi.add(num);\n //*System.out.println(lottorivi);\n }\n System.out.println(lottorivi); <-- ei toimi */\n\n //* Lisätään satunnaiset luvut lottoriviin, kunnes lukuja on yhteensä 7.\n //* Tarkistetaan myös, ettei riviin tule samoja lukuja.\n\n do {\n int num = random.nextInt(41);\n lottorivi.add(num);\n }\n while (lottorivi.size() < 6);\n int numero = random.nextInt(41);\n if (numero != lottorivi.get(0) || numero != lottorivi.get(1) || numero != lottorivi.get(2) || numero != lottorivi.get(3) || numero != lottorivi.get(4) || numero != lottorivi.get(5) || numero != lottorivi.get(6)){\n lottorivi.add(numero);\n }\n //* System.out.println(lottorivi);\n return lottorivi;\n }", "title": "" }, { "docid": "ae2aab2b0c993de3c9055546d248e56a", "score": "0.6083604", "text": "private List<Bancarella> ContainsGiocattolo(){\n List<Bancarella> b = new ArrayList<Bancarella>();\n for(Bancarella bancarella : bancarelle){\n if(bancarella.contains(giocattolo)){\n b.add(bancarella);\n }\n }\n if(b.isEmpty()) throw new NoGiocattoloInAnyException();\n return b;\n }", "title": "" }, { "docid": "5ff602d736f7315093460b26720e3666", "score": "0.6082727", "text": "public void probarListaRecursivaLetras() {\r\n\t\tnuevaLista = new ListaEnlazada();\r\n\t\tString[] vectorNombres = { \"carlos\", \"maria\", \"arnol\", \"bruno\" };\r\n\r\n\t\tfor (int i = 0; i < vectorNombres.length; i++) {\r\n\t\t\tnuevaLista.agregar(vectorNombres[i]);\r\n\t\t}\r\n\t\tSystem.out.printf(\"\\t\\tLISTA SOLO DE NOMBRES\\n\");\r\n\t\tnuevaLista.imprimir();\r\n\t\tSystem.out.printf(\"largo lista Nombres: %s\\n\", nuevaLista.totalElemento());\r\n\t\t// ejemplo de busqueda\r\n\t\tNodo nodoResultado = nuevaLista.buscar(\"maria\");\r\n\t\tSystem.out.println(\"Elementos encontrados :\" + nodoResultado.ObtenerObjeto());\r\n\t\tnodoResultado = nuevaLista.eliminar(\"carlos\");\r\n\t\tSystem.out.println(\"nombre eliminado :\" + nodoResultado.ObtenerObjeto());\r\n\t\tnuevaLista.imprimir();\r\n\t\tpedirValorABuscar();\r\n\t}", "title": "" }, { "docid": "505fc6b06ab0bdbc0023550d1daf409c", "score": "0.606318", "text": "public void calcolaSpaiati() {\n boolean ctrl = true;\n for (int i = 0; i < codiciImportati.size(); i++) {\n ctrl = true;\n for (int j = 0; j < persone.size(); j++) {\n if (codiciImportati.get(i).equals(persone.get(j).getCodice_fiscale())) {\n ctrl = false;\n break;\n }\n }\n if (ctrl) {\n spaiati.add(codiciImportati.get(i));\n }\n }\n }", "title": "" }, { "docid": "d65fa084825ccaaa0e0e18ae0a9e763b", "score": "0.6020717", "text": "private void napuniListu() {\r\n\t\t\r\n\t\tSwingWorker<ArrayList<Soba>,Void> worker = new SwingWorker<ArrayList<Soba>,Void>() {\r\n\r\n\t\t\tprotected ArrayList<Soba> doInBackground() throws Exception {\r\n\t\t\t\tArrayList<Soba> listaSoba;\r\n\t\t\t\tlistaSoba = veza.dohvatiSobe();\r\n\t\t\t\treturn listaSoba;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tprotected void done() {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tlistaSoba = get();\r\n\t\t\t\t} catch (InterruptedException e) {\r\n\t\t\t\t} catch (ExecutionException e) {\r\n\t\t\t\t}\r\n\t\t\t\tmodelSoba.clear();\r\n\t\t\t\tfor(Soba s : listaSoba) {\r\n\t\t\t\t\tmodelSoba.addElement(s.getIdSobe() + \". \" + ( s.isSobaZakljucana()?\"Zaključana\":\"Otvorena \" ) \r\n\t\t\t\t\t\t\t+ \" ( \" + s.getPopisIgraca().size()+ \"/\" + s.getMaxBrojIgraca() + \" )\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t};\r\n\t\tworker.execute();\t\t\r\n\t}", "title": "" }, { "docid": "d83e36646ac27453e2da1d0fc2aeaba5", "score": "0.5976202", "text": "public void cargarVehiculosIniciales() {\r\n\t\t\r\n\t\tthis.agregarAuto(\"Peugeot\", \"206\", 200000, 4);\r\n\t\t\r\n\t\tthis.agregarMoto(\"Honda\", \"Titan\", 60000, 125);\r\n\t\t\r\n\t\tthis.agregarAuto(\"Peugeot\", \"208\", 250000, 5);\r\n\t\t\r\n\t\tthis.agregarMoto(\"Yamaha\", \"YBR\", 80500.50, 160);\r\n\t}", "title": "" }, { "docid": "22b1c5d66a58880debf16787f951672b", "score": "0.5974745", "text": "private void listaFeltolt() {\n szavak.add(\"alma\");\n szavak.add(\"eper\");\n szavak.add(\"iskola\");\n szavak.add(\"kutya\");\n szavak.add(\"macska\");\n szavak.add(\"csirke\");\n szavak.add(\"marha\");\n szavak.add(\"laptop\");\n szavak.add(\"telefon\");\n szavak.add(\"fon\");\n }", "title": "" }, { "docid": "fb8eb0dcd54f7ca6b45da251b7293585", "score": "0.5970893", "text": "private void popularListaDeNumerosMaisSorteadosLotofacil(){\n\t\tlistaDeNumeros = new ArrayList<>();\n\n\t\tInteger numerosMaisSorteadosLotoFacil[] = {11, 2, 24, 13, 4, 21, 1, 23, 12, 19, 6, 22, 14, 10, 25, 3, 9, 20, 17, 15, 07, 5, 18, 16, 8, 3};\n\t\tlistaDeNumeros.addAll(Arrays.asList(numerosMaisSorteadosLotoFacil));\n\t}", "title": "" }, { "docid": "e2d90aac7a7eaccd5875351875c00f83", "score": "0.5962573", "text": "private void empilhandoVizinhos(int[] vetorVizinhos){\r\n\tfor (int i = 0; i < vetorVizinhos.length; i++){\r\n\t if (chaveFoiAnalisada(vetorVizinhos[i])){\r\n\t\tpilha.add(vetorVizinhos[i]);\r\n\t }\r\n\t}\r\n }", "title": "" }, { "docid": "0de25d5671bfb6cf75e6c689b831d590", "score": "0.5958622", "text": "private static void imprimeTamanhoVetor(Lista<Contato> lista) {\r\n\r\n System.out.println(\"Tamanho do vetor é de \" + lista.tamanho());\r\n }", "title": "" }, { "docid": "80a33250b797095b7ab372032b35e087", "score": "0.5927103", "text": "@Override\r\n\tpublic List<ILetra> sorteioLetras() {\n\t\tRandom random = new Random();\r\n\t\tint numeroLetras = random.nextInt(20) + 20;\r\n\t\tArrayList<ILetra> letras = new ArrayList<ILetra>();\r\n\t\tfor (int i = 0; i <= numeroLetras; i++) {\r\n\t\t\tint vogOuCons = random.nextInt(todasAsLetras.size());\r\n\t\t\tletras.add(todasAsLetras.remove(vogOuCons));\r\n\t\t}\r\n\t\treturn letras;\r\n\t}", "title": "" }, { "docid": "d3633112a347766a6a2e95c73d866c86", "score": "0.5913508", "text": "public void WyszukajGrę() {\n String tmp1 = JOptionPane.showInputDialog(\"podaj tytuł gry jaką chcesz wyszukać\");\n\n for (int i = 0; i < liczbaGier; i++) {\n\n if (lista[i].getTytuł().equals(tmp1)) {\n\n System.out.print(lista[i]);\n } else {\n i++;\n }\n\n //wybieranie z listy WyświetlMenu() if (wybór==1)\n }\n }", "title": "" }, { "docid": "26d4b0314e7995b9a97759f2ff042483", "score": "0.5906546", "text": "public void ExibirElementos(){\n u.Escrever(\"---- LISTA ----\");\n for(int i=0; i<alunos.length; i++){\n if(alunos[i] != null){\n u.Escrever(\"~ \" + (i+1) + \" - \" + alunos[i].getNome());\n }\n }\n u.Escrever(\"---------------\");\n\n }", "title": "" }, { "docid": "2ee7fc99cf4469729a9a31d9c923eb4d", "score": "0.5901049", "text": "public void limpar_limbo(){\n if(jogo.getLimbo().isEmpty() == false){\n //mover todas as cartas do limbo para o baralho\n for(int i=0; i<jogo.getLimbo().size(); i++){\n jogo.getBaralho().add( jogo.getLimbo().get(i)); //colocar carta do limbo no baralho \n }\n jogo.getLimbo().clear(); //remover cartas do limbo\n baralhar(); //baralhar baralho\n }\n \n //voltar para a Fase 1\n jogo.setEstadoActual( jogo.getEFase1() );\n \n }", "title": "" }, { "docid": "57aa236ed1a06c0b7da84cd040339bb0", "score": "0.589625", "text": "public void tinhTuoiTrungBinh() {\r\n\t\tsize = list.size();\r\n\t\tint tongTuoi = 0;\r\n\t\tfor (int i = 0; i < size; i++) {\r\n\t\t\ttongTuoi += list.get(i).getTuoi();\r\n\t\t}\r\n\t\tSystem.out\r\n\t\t\t\t.println(\"2.Tuoi chung binh cua cac hoc sinh trong danh sach la : \"\r\n\t\t\t\t\t\t+ (tongTuoi / size));\r\n\t}", "title": "" }, { "docid": "44136eece482486d0664cd19c788d2ed", "score": "0.58930254", "text": "List<Viaje> obtenerViajes(Boolean disponibles);", "title": "" }, { "docid": "ee31e9fc6b3f05471195ad21f1b0eb35", "score": "0.58824086", "text": "public void setNumBigliettiV(int numBigliettiVendita){\r\n\t\tsuper.setNumBigliettiVendita(numBigliettiVendita);\r\n\t}", "title": "" }, { "docid": "2b1805e09316b1523352fca0bd9aa858", "score": "0.587422", "text": "private void poistaKannastaRivi(int riviIndeksi) {\n ArrayList<String> tekstitaulu = getTietokantaTekstiTauluna();\n tekstitaulu.remove(riviIndeksi);\n String tekstitauluStringina = kirjoitaTekstitauluStringiksiRivittaen(tekstitaulu);\n\n try {\n kirjoitaTietokantaanLisatenRivinvaihtoLoppuun(tekstitauluStringina, false);\n } catch (IOException ex) {\n //\n }\n }", "title": "" }, { "docid": "7440da2cb4434395742ef586659836a0", "score": "0.58702594", "text": "public static void ImprimirListado() {\n System.out.println(\"Beneficio 1 = \" + ListaBeneficios1.get(0).datos());\n System.out.println(\"Beneficio 2 = \" + ListaBeneficios1.get(1).datos());\n // se invoca el metodo getMejorbeneficios para obetener el mejor beneficio cargado\n Float mejorben = ListaBeneficios1.get(0).getMejorbeneficios(ListaBeneficios1.get(1));\n System.out.println(\"El Mejor Beneficio es monto de: \" + mejorben);\n // se obtiene informacion de la lista segun lo devuelto en el metodo getMejorbeneficios\n int pos = -1;\n for (int i = 0; i < ListaBeneficios1.size() ; i++) {\n int resul = Float.compare(mejorben, ListaBeneficios1.get(i).getValorSubsidio());\n if(resul == 0){\n pos = i;\n }\n }\n System.out.println(\"El mismo corresponde al siguiente Beneficio: \" +\n \"Id: \" +ListaBeneficios1.get(pos).getId() +\n \", Nombre: \" + ListaBeneficios1.get(pos).getNombre());\n }", "title": "" }, { "docid": "d2f5bd9092ad70739bed4d929026205d", "score": "0.58632374", "text": "public void negyedik_feladat(){\n for(int i = 0; i < line_counter ; i++){\r\n if(adatok[i].irany){\r\n int j = i+1;\r\n // megkeressuk a kovetkeezo elemtol az id parjat\r\n // mivel nemtud ketszer bemenni igy biztos kijovetel lesz a kovetkezo ezen az id-n\r\n while(j < line_counter && adatok[i].id != adatok[j].id){\r\n j++;\r\n }\r\n if(j == line_counter){\r\n // nincs parja\r\n bent_maradtak.add(adatok[i].id);\r\n }\r\n }\r\n }\r\n String kiirat = \"\";\r\n int j = 0;\r\n while(j < bent_maradtak.size()){\r\n kiirat = kiirat + bent_maradtak.get(j).toString() +\" \";\r\n j++;\r\n }\r\n System.out.println(\"A meres utan bent maradtak: \"+kiirat);\r\n }", "title": "" }, { "docid": "c01ebb9b3e49c850af00870fe4b2fdaa", "score": "0.5859174", "text": "public static ArrayList<ControladorMuebleVendido> ordenamientoMueble(ArrayList<ControladorMuebleVendido> arregloNumerosDesordenados){\n ControladorMuebleVendido variableAuxiliar;\n boolean cambios=false;\n // hace un ordenamiento de los muebles mas vendidos y menos \n while(true){\n cambios=false;\n // si unno es menor que el otro hace cambio \n for(int i=1;i<arregloNumerosDesordenados.size();i++){\n if(arregloNumerosDesordenados.get(i).getVecesVendido()<arregloNumerosDesordenados.get(i-1).getVecesVendido()){\n variableAuxiliar=arregloNumerosDesordenados.get(i);\n arregloNumerosDesordenados.set(i, arregloNumerosDesordenados.get(i-1));\n arregloNumerosDesordenados.set(i-1, variableAuxiliar);\n cambios=true;\n }\n }\n if(cambios==false){\n break;\n }\n } \n return arregloNumerosDesordenados;\n }", "title": "" }, { "docid": "579aa224cdf34980b47dc6bc9d829e3e", "score": "0.5849172", "text": "public static void main(String[] args) {\n\t\t\r\n\t\tArrayList<Pice> narudzba = new ArrayList<Pice>();\r\n\t\t\r\n\t\tSastojak mleko = new Sastojak(\"Mleko\", 10, 1);\r\n\t\tSastojak slag = new Sastojak(\"Slag\", 15, 2);\r\n\t\tSastojak sladoled = new Sastojak(\"Sladoled\", 12, 3);\r\n\t\tSastojak limun = new Sastojak(\"Limun\", 5, 2);\r\n\t\tSastojak menta = new Sastojak(\"Menta\", 7, 1);\r\n\t\tSastojak votka = new Sastojak(\"Votka\", 20, 10);\r\n\t\tSastojak crnoVino = new Sastojak(\"Crno vino\", 20, 11);\r\n\t\tSastojak cocacola = new Sastojak(\"Coca Cola\", 30, 4);\r\n\t\t\r\n\t\tKafa mocha = new Kafa(\"Mocha\", null, 1);\r\n\t\tmocha.dodajSastojak(mleko);\r\n\t\tmocha.dodajSastojak(slag);\r\n\t\t\r\n\t\tKafa nesKafa = new Kafa(\"Nes kafa\", null, 3);\r\n\t\tnesKafa.dodajSastojak(sladoled);\r\n\t\tnesKafa.dodajSastojak(slag);\r\n\t\tnesKafa.dodajSastojak(mleko);\r\n\t\t\r\n\t\tKoktel mojito = new Koktel(\"Mojito\", null);\r\n\t\tmojito.dodajSastojak(limun);\r\n\t\tmojito.dodajSastojak(menta);\r\n\t\tmojito.dodajSastojak(votka);\r\n\t\t\r\n\t\tKoktel whiteRussian = new Koktel(\"White Russian\", null);\r\n\t\twhiteRussian.dodajSastojak(votka);\r\n\t\twhiteRussian.dodajSastojak(mleko);\r\n\t\t\r\n\t\tKoktel bambus = new Koktel(\"Bambus\", null);\r\n\t\tbambus.dodajSastojak(crnoVino);\r\n\t\tbambus.dodajSastojak(cocacola);\r\n\t\t\r\n\t\t\r\n\t\tnarudzba.add(mocha);\r\n\t\tnarudzba.add(nesKafa);\r\n\t\tnarudzba.add(mojito);\r\n\t\tnarudzba.add(whiteRussian);\r\n\t\tnarudzba.add(bambus);\r\n\t\t\r\n\t\tSystem.out.println(\"Pica koja ste porucili: \");\r\n\t\tdouble ukupnaCenaNarudzbe = 0;\r\n\t\tfor (int i = 0; i < narudzba.size(); i++) {\r\n\t\t\tukupnaCenaNarudzbe += narudzba.get(i).cenaPica();\r\n\t\t\tSystem.out.print((i+1) + \". pice: \");\r\n\t\t\tnarudzba.get(i).stampaj();\r\n\t\t\tSystem.out.println(\"---------------------------------------------\");\r\n\t\t}\r\n\t\tSystem.out.print(\"Ukupan iznos racuna je: \" + ukupnaCenaNarudzbe + \" din\");\r\n\t\t\r\n\t}", "title": "" }, { "docid": "4bceb6d284bf2b9b0549c763a9ed2a8a", "score": "0.5847314", "text": "private List drop_bikes(Object o) {\n BicingBoard b = (BicingBoard) o;\n ArrayList successors = new ArrayList();\n for (int i = 0; i<b.getN_furgonetas(); ++i){\n if (b.getRuta()[i][0][0] != -1) {\n int bicis_disponibles = Math.min(b.getEstaciones().get(b.getRuta()[i][0][0]).getNumBicicletasNoUsadas(),b.getEstaciones().get(b.getRuta()[i][0][0]).getNumBicicletasNext() - b.getEstaciones().get(b.getRuta()[i][0][0]).getDemanda());\n if (bicis_disponibles > 30) bicis_disponibles = 30;\n for (int j = 1; j <= bicis_disponibles; ++j) {\n for (int k = 1; k < j; ++k) {\n if (b.getRuta()[i][2][0] != -1) {\n BicingBoard state = new BicingBoard();\n state.setRuta(b.getRuta());\n state.getRuta()[i][0][1] = -j;\n state.getRuta()[i][1][1] = k;\n state.getRuta()[i][2][1] = j - k;\n double coste = no_cost ? state.biketransport() : state.biketransport() + state.transportcost();\n String info = \"Coste \" + coste + \" Operador 6 --> \";\n info += \"Modificamos las cargas entre las estaciones de la furgoneta \" + i;\n info += \", en la ciudad origen recoge \" + j + \" bicicletas, en la ciudad destino1 \";\n info += state.getRuta()[i][1][0] + \" dejara \" + state.getRuta()[i][1][1] + \" bicicletas y\";\n info += \"en la ciudad destino2 \" + state.getRuta()[i][2][0] + \" dejara \" + state.getRuta()[i][2][1];\n info += \" bicicletas\";\n info += \"\\nDistancia de la ruta es de \" + state.distancekm();\n successors.add(new Successor(info, state));\n }\n }\n if (b.getRuta()[i][2][0] == -1){\n BicingBoard state = new BicingBoard();\n state.setRuta(b.getRuta());\n state.getRuta()[i][0][1] = -j;\n state.getRuta()[i][1][1] = j;\n double coste = no_cost ? state.biketransport() : state.biketransport() + state.transportcost();\n String info = \"Coste \" + coste + \" Operador 6 --> \";\n info += \"Modificamos las cargas entre las estaciones de la furgoneta \" + i;\n info += \", en la ciudad origen recoge \" + j + \" bicicletas y en la ciudad destino1 \";\n info += state.getRuta()[i][1][0] + \" dejara \" + state.getRuta()[i][1][1] + \" bicicletas\";\n info += \"\\nDistancia de la ruta es de \" + state.distancekm();\n successors.add(new Successor(info, state));\n }\n }\n }\n }\n return successors;\n }", "title": "" }, { "docid": "3574d72fc878f50ca3f8c0c029a4ffda", "score": "0.584648", "text": "private void partenza() {\n /**\n * crea un array di oggetti (di tipo testo), di lunghezza uno e prende\n * il valore del testo dalla classe specifica\n */\n String[] valori = super.recuperaBottoni();\n\n /* recupera il voce dalle risorse */\n super.recuperaTitolo(TITOLO_DI_DEFAULT);\n\n /* mostra il messaggio */\n this.risposta = this.showOptionDialog(null,\n unTesto,\n titoloDialogo,\n YES_NO_OPTION,\n WARNING_MESSAGE,\n null,\n valori,\n valori[1]);\n }", "title": "" }, { "docid": "527e4eefd258dea206fe945896fe842f", "score": "0.58246547", "text": "@Override\r\npublic void utiliserEffetDivinite(ArrayList<Joueur> listejoueur, int j, ArrayList<Carte> collection,\r\n\t\tArrayList<Carte> table, int cible, ArrayList<Joueur> tourJoueur) {\n\t\r\n}", "title": "" }, { "docid": "4e8148cc65fc15516b93e6b3acf2aa5d", "score": "0.5824567", "text": "public void rimuoviBiglietto(SettoriPossibili settore, int riga, int colonna)throws IllegalCancellazioneBigliettoException{\r\n\t\tswitch (settore){\r\n\t\tcase Nord: {\r\n\t\t\tbigliettiSettoreNord[riga][colonna]= null;\r\n\t\t\tbreak;\r\n\t\t}\r\n\t\tcase Sud: {\r\n\t\t\tbigliettiSettoreSud[riga][colonna]= null;\r\n\t\t\tbreak;\r\n\t\t}\r\n\t\tcase Ovest: {\r\n\t\t\tbigliettiSettoreWest[riga][colonna]= null;\r\n\t\t\tbreak;\r\n\t\t}\r\n\t\tcase Est: {\r\n\t\t\tbigliettiSettoreEst[riga][colonna]= null;\r\n\t\t\tbreak;\r\n\t\t}\r\n\t\tdefault: throw new IllegalCancellazioneBigliettoException (\"Non è stato possibile cancellare il biglietto\");\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "d14095d0eeb75c098df8b842b882c820", "score": "0.582288", "text": "public void subirDificultad(){\n for(int i=0; i < nivel;i++){\n lista.add((int) (Math.random() * 5) + 1);\n }\n }", "title": "" }, { "docid": "be7731da6cf76d7c491d93b9ba55e4a4", "score": "0.5818528", "text": "public void lihat() { \n if (batasAtas == null) { //Kondisi dinaba jika nilai batas atas sama dengan null\n System.out.println(\"Kosong\"); //Peerintah menampilkan tulisan kosong saat kondisi if terpenuhi\n } else {\n System.out.println(\"Angka yang ada adalah :\"); //Perintah menampilkan tulisan \"Angka yang ada...\"jika kondisi if tidak terpenuhi\n for (main a = batasAtas; a != null; a = a.next) { // Peulangan dimana a adalah batas atas dan a dalah negasi dari null \n a.baca(); //a akan melakukan fungsi void baca yaitu menampilkan data yang tersimpanj\n }\n }\n }", "title": "" }, { "docid": "fcf6e21afcc52596057ada5cc8e34848", "score": "0.58057594", "text": "private void procesarBombasId(ArrayList<Bomba> listaNuevasBombasParadas) {\n }", "title": "" }, { "docid": "997af99fac5e1c49ace1e9ba33e56381", "score": "0.5799933", "text": "public int getNumBigliettiV() {\r\n\t\treturn super.getNumBigliettiVendita();\r\n\t}", "title": "" }, { "docid": "85940f4127bd78b6b3e8cae575643e9f", "score": "0.57951605", "text": "private void popularListaDeNumerosMaisSorteadosMegaSena(){\n\t\tlistaDeNumeros = new ArrayList<>();\n\n\t\tInteger numerosMaisSorteadosMegaSena[] = {5,4,53,54,51,42,33,17,24,52,49,43,13,10,29,41,36,28,50,32,44,23,16,47,30,12,2,8,31,27,7,59,34,6,37,56,38,58,46,18,40,20,60,3,11,35,57,14,19,45,25,48,15,55,21,39,9,26,22,9,7,3,1};\n\t\tlistaDeNumeros.addAll(Arrays.asList(numerosMaisSorteadosMegaSena));\n\t}", "title": "" }, { "docid": "25881f46a326d7e8e20eec0e6556a48b", "score": "0.57759565", "text": "private static List<Boolean> ejercicioPredicadoPrimo(List<Tree<String>> arboles, Integer arbol) {\n\t\t\n\t\tList<Boolean> resultado = new ArrayList<Boolean>();\n\t\tList<Boolean> booleanos = new ArrayList<Boolean>();\n\t\tList<Tree<String>> niveles = new ArrayList<Tree<String>>();\n\t\t\n\t\treturn funcionAuxiliarPredicadoPrimo(arboles, resultado, niveles, booleanos, arbol, 0);\n\t\t\t\n\t}", "title": "" }, { "docid": "b4a3c4c5da7bd86ce2d1d23cd8f17e4f", "score": "0.57721287", "text": "public void llenarListaTurismo(BigInteger rut) {\n System.out.println(\"llenarListaTurismo\");\n MPEConsultarTurismoHistorialBean mpe =\n new MPEConsultarTurismoHistorialBean();\n ArrayList<CCLAHistorialTurismoConsultar> lista = mpe.turismo(rut);\n listaHistorialTurismo = new ArrayList<CCLAHistorialTurismo>();\n for (CCLAHistorialTurismoConsultar lista2 : lista) {\n\n CCLAHistorialTurismo cclaHistoria = new CCLAHistorialTurismo();\n cclaHistoria.setCentroTuristico(lista2.getCentroTuristico());\n cclaHistoria.setCodReserva(lista2.getCodigoReserva());\n cclaHistoria.setNroBoleta(lista2.getNumeroBoleta().toString());\n cclaHistoria.setCheckIn(lista2.getCheckIn().toString());\n cclaHistoria.setCheckOut(lista2.getCheckOut().toString());\n cclaHistoria.setFechaVencimiento(\"28/08/2018\");\n cclaHistoria.setNroCuota(lista2.getNumeroCuota());\n cclaHistoria.setEstadoPago(\"Disponible\");\n cclaHistoria.setMonto(lista2.getMonto());\n cclaHistoria.setNumeroBoleta(lista2.getNumeroBoleta().toString());\n\n // cclaHistoria.setFechaPago(\"29-08-2018\");\n listaHistorialTurismo.add(cclaHistoria);\n\n\n }\n\n\n }", "title": "" }, { "docid": "e50250849db7e1789009630213543603", "score": "0.5760866", "text": "public static void main(String[] args) {\n String[] eleviiDinClasaOlimpica = {\"Tiberiu\", \"Robert\", \"Cristi\", \"Florin\", \"Narcisa\", \"Mihai\", \"Catalin\"};\n\n //aflam lungimea vectorului apeland metoda lenght pe vectorul \"eleviiDinClasaOlimpica\"\n //salvam lungimea vectorului in variabila de tip int numita \"lungimeaVectorului\"\n int lungimeaVectorului = eleviiDinClasaOlimpica.length;\n\n //afisam lungimea vectorului, mai exact cati copii se afla in clasa\n System.out.println(\"Numarul de elevi olimpici din clasa este \" + lungimeaVectorului);\n //afisam un alt mesaj la consola\n System.out.println(\"In ordinea in care au fost introdusi : \");\n //parcurgem vectorul in ordine crescatoare (de la cap la coada) pentru a afisa toti elevii din clasa\n for (int index = 0; index < lungimeaVectorului; index++) {\n System.out.print(eleviiDinClasaOlimpica[index] + \" \");\n }\n\n /*\n * indexMaxim = 7\n indexMinim = 0\n lungime =8\n * int index = 8; index>=0;index--\n * */\n\n System.out.println(\"\\n\\nIn ordine inversa: \");\n //parcurgem vectorul in ordine descrescatoare (de la coada la cap) pentru a afisa toti elevii din clasa\n for (int index = eleviiDinClasaOlimpica.length - 1; index >= 0; index--) {\n System.out.print(eleviiDinClasaOlimpica[index] + \" \");\n }\n }", "title": "" }, { "docid": "a29e4a3a6bddb15ce05d3d6276c17372", "score": "0.5754509", "text": "private void llenarListas() {\n for (int i = 0; i < bodega.getContenedor().getSize(); i++) {\n if (bodega.getContenedor().get(i).getProducto() instanceof ComidaAnimales\n || bodega.getContenedor().get(i).getProducto() instanceof Fertilizante) {\n\n } else {\n figuraMercado.getListaProductosVenta().addItem(bodega.getContenedor().get(i).getProducto().getNombre());\n }\n }\n\n for (int i = 0; i < bodega.getContenedor().getSize(); i++) {\n if (bodega.getContenedor().get(i).getProducto() instanceof ComidaAnimales\n || bodega.getContenedor().get(i).getProducto() instanceof Fertilizante) {\n figuraMercado.getListaProductosCompra().addItem(bodega.getContenedor().get(i).getProducto().getNombre());\n }\n }\n\n }", "title": "" }, { "docid": "3de7ac1cb5cac6f556a02bcb95c8a521", "score": "0.575411", "text": "private void caricaListaClassiSoggetto() throws WebServiceInvocationFailureException {\n\t\tList<CodificaFin> listaClassiSoggetto = sessionHandler.getParametro(BilSessionParameter.LISTA_CLASSI_SOGGETTO);\n\t\tif(listaClassiSoggetto == null) {\n\t\t\tListeGestioneSoggetto request = model.creaRequestListeGestioneSoggetto();\n\t\t\tlogServiceRequest(request);\n\t\t\tListeGestioneSoggettoResponse response = soggettoService.listeGestioneSoggetto(request);\n\t\t\tlogServiceResponse(response);\n\t\t\t// Controllo gli errori\n\t\t\t// Controllo gli errori\n\t\t\tif(response.hasErrori()) {\n\t\t\t\t//si sono verificati degli errori: esco.\n\t\t\t\taddErrori(response);\n\t\t\t\tthrow new WebServiceInvocationFailureException(createErrorInServiceInvocationString(request, response));\n\t\t\t}\n\t\t\tlistaClassiSoggetto = response.getListaClasseSoggetto();\n\t\t\tComparatorUtils.sortByCodiceFin(listaClassiSoggetto);\n\t\t\tsessionHandler.setParametro(BilSessionParameter.LISTA_CLASSI_SOGGETTO, listaClassiSoggetto);\n\t\t}\n\t\tmodel.setListaClasseSoggetto(listaClassiSoggetto);\n\t}", "title": "" }, { "docid": "c8b39385957090264438fca2bb30502b", "score": "0.5750562", "text": "public void izbaciDuplikate2() {\n\t\tCvorJSListe pom = prvi;\n\t\tCvorJSListe pret = prvi;\n\t\tCvorJSListe unutrasnji = prvi;\n\t\twhile (pret.sledeci != null) {\n\t\t\tunutrasnji = pret.sledeci;\n\t\t\twhile (unutrasnji.sledeci != null) {\n\t\t\t\tpom = unutrasnji.sledeci;\n\t\t\t\tif (pret.podatak == pom.podatak) {\n\t\t\t\t\tunutrasnji.sledeci = pom.sledeci;\n\t\t\t\t} else {\n\t\t\t\t\tunutrasnji = unutrasnji.sledeci;\n\t\t\t\t}\n\t\t\t}\n\t\t\tpret = pret.sledeci; //bio sam pametniji kad sam pisao ovo, nzm zasto radi\n\t\t}\n\t}", "title": "" }, { "docid": "3e96543b9bc84176ffd77b9a27a22847", "score": "0.5749539", "text": "void nadjiVezaneSkokove(int[][] tabla, Vector lista_skokova, int x1, int y1, int x2, int y2, int iter){\n\n int[] npot = new int[4];\t\t\n npot[0] = x1; \t\t\t\n npot[1] = y1; \n npot[2] = x2; \n npot[3] = y2;\t\t\t\t\t\t\t\n lista_skokova.addElement(npot);\n\n int[][] pom_tabla = kopirajTablu(tabla);\n primeniPotez(pom_tabla, x1, y1, x2, y2);\n\n if (mozeDaSkoci(pom_tabla, x2, y2)){\n\n int novix = x2;\n int noviy = y2;\n\n while (novix > 7){\n novix/=10;\t\t\t\t\t\n noviy/=10;\t\t\t\t\t\t\t\n }\t\t\n\n for(int a=novix-2; a<=novix+2; a+=4){\t\t\t\t\n for(int b=noviy-2; b<=noviy+2; b+=4){\n\n if(dozvoljenSkok(pom_tabla, novix, noviy, a, b)){\n x2 = x2+a*iter; \n y2 = y2+b*iter;\t\t\t\t\t\t\t\n nadjiVezaneSkokove(pom_tabla, lista_skokova, x1, y1, x2, y2, iter*10);\t // a zavrsne se menjaju\n // i povecava se broj iteracije\t\n } \n\n }\n } \n\n }\n\n }", "title": "" }, { "docid": "df58aed67389ea8206a00d722ca03252", "score": "0.57435936", "text": "public Vector<Like> getAllLikeOfBeitrag (Beitrag val)throws java.rmi.RemoteException;", "title": "" }, { "docid": "438dc1e58062ff3a1f7dc3140fe1dc69", "score": "0.5732466", "text": "public static void main(String[] args) {\n ArrayList<Livro> livros = new ArrayList<>();\n\n Livro livro1 = new Livro();\n livro1.setNome(\"Livro 1\");\n livro1.setValor(10.4f);\n livro1.setIsbn(\"000000000000\");\n\n livros.add(livro1); //Adiciona livro1 no arrayList (posição 0) - todo arrayList inicia-se na posição 0, tal como array unidimensional\n\n Livro livro2 = new Livro();\n livro2.setNome(\"Livro 2\");\n livro2.setIsbn(\"0000000000000\");\n livro2.setValor(2.43f);\n\n livros.add(livro2); //Adiciona livro2 no arrayList (posição 1)\n\n for (Livro lvrs : livros) { //Comando equivalente ao foreach para impressão dos nomes dos livros\n System.out.println(lvrs.getNome());\n }\n\n System.out.println(\"Total de livros no ArrayList: \" + livros.size()); //Lista o total de elementos no arrayList\n \n System.out.println(\"Imprime único objeto do array: \" +livros.get(0).getNome());\n\n livro1.setNome(\"Livro Nova Ed 1\");\n livro1.setValor(10.4f);\n livro1.setIsbn(\"000000000000\");\n\n livros.set(0, livro1); //Substitui o livro1 antigo pelos dados do novo\n\n livros.forEach(o -> System.out.println(\"Livro (foreach):\" + o.getNome())); //Foreach com função lambda\n System.out.println(\"\\n\");\n \n if(livros.get(0).equals(livros.get(1))){ //Como arrayList só suporta objetos, podemos comparar os mesmos com [objeto1].equals([objeto2])\n System.out.println(\"Os livros são iguais!\");\n }else{\n System.out.println(\"Os livros são diferentes!\");\n }\n \n\n System.out.println(\"Index do livro 2 antes da remoção do livro na posição 0: \" +livros.indexOf(livro2)); // indexOf(\"parametro\") permite buscar a referência do registro no arrayList\n \n livros.remove(0); //Remove o livro1 alocado na posição 0 - após remoção o livro2 que estava na posiçao 1 passa para a posição zero como pode ser visto na impressão após remoção\n for (int i = 0; i < livros.size(); i++) {\n Livro lvri = livros.get(i);\n System.out.println(lvri.getNome());\n }\n System.out.println(livros.get(0).nome); \n System.out.println(\"Index do livro 2 após remoção do livro 1 da posição 0: \" +livros.indexOf(livro2));\n \n \n \n /* Remove livro2 se existente\n if (livros.indexOf(livro2) >= 0) {\n livros.remove(livro2);\n System.out.println(\"Livro removido com sucesso! \\n\");\n } else {\n System.out.println(\"Livro inexistente! \\n\");\n }\n\n if (livros.indexOf(livro2) > 0) {\n livros.remove(livro2);\n System.out.println(\"Livro removido com sucesso! \\n\");\n } else {\n System.out.println(\"Livro inexistente! \\n\");\n }\n */\n\n\n livros.clear(); //Limpa o arrayList removendo todos os seus registros\n\n System.out.println(\"Total de livros no ArrayList: \" + livros.size());\n\n }", "title": "" }, { "docid": "b160aa0f55081d488a3d67377972dddd", "score": "0.5722063", "text": "public void rafraichir() {\n\t\t// mlistModel = new DefaultListModel();\n\t\tArrayList<String> sujets = new ArrayList<String>();\n\t\ttry {\n\t\t\tsujets = leServeur.getSujets();\n\n\t\t} catch (RemoteException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\tSystem.out.println(\"Erreur dans l'obtention des sujets\");\n\t\t\te.printStackTrace();\n\t\t}\n\t\tmlistModel.removeAllElements();\n\t\tfor (String sujet : sujets) {\n\t\t\tmHMforumOuverts.put(sujet, false);\n\t\t\tmlistModel.addElement(sujet);\n\t\t\tSystem.out.println(sujet);\n\t\t}\n\t}", "title": "" }, { "docid": "83e2d597949a8d2538a8c76ef2ddcd36", "score": "0.57213837", "text": "private void listaContatosEmprestimoLivro() throws SQLException { \n BdEmprestimoProfessor d = new BdEmprestimoProfessor();\n emprestimos = d.getListaPorLivro(pegaIdLivro()); \n \n // Após pesquisar os contatos, executa o método p/ exibir o resultado na tabela pesquisa\n mostraPesquisaEmprestimoLivro(emprestimos);\n emprestimos.clear();\n }", "title": "" }, { "docid": "f14e1b4c88abedd5add93798e33b616a", "score": "0.57211614", "text": "private void caricamentoListe() throws WebServiceInvocationFailureException {\n\t\tcaricaListaTipoAtto();\n\t\tcaricaListaStatoOperativoElencoDocumenti();\n\t\tcaricaListaTipoFinanziamento();\n\t\tcaricaListaClassiSoggetto();\n\t\tcaricamentoDistinta();\n\t}", "title": "" }, { "docid": "b1e661d58825a49b7ad86e1024bd4f1c", "score": "0.5716328", "text": "private void burbujeo(LinkedList <String[]> datosJugador) {\r\n\t\tfor(int i = datosJugador.size()-1; i >0; i--){\r\n\t\t\tfor(int j = i-1; j >= 0; j--){\r\n\t\t\t\tif(Integer.parseInt(datosJugador.get(i)[2])!= 0 && Integer.parseInt(datosJugador.get(j)[2]) != 0){\r\n\t\t\t\t\tif((Double.parseDouble(datosJugador.get(i)[1]) / Double.parseDouble(datosJugador.get(i)[2])) \r\n\t\t\t\t\t\t\t> (Double.parseDouble(datosJugador.get(j)[1]) / Double.parseDouble(datosJugador.get(j)[2]))){\r\n\t\t\t\t\t\tString aux[] = datosJugador.get(j);\r\n\t\t\t\t\t\tdatosJugador.remove(j);\r\n\t\t\t\t\t\tdatosJugador.add(i,aux);\r\n\t\t\t\t\t}\r\n\t\t\t\t}else{\r\n\t\t\t\t\tif(Integer.parseInt(datosJugador.get(i)[2]) != 0 && Integer.parseInt(datosJugador.get(j)[2]) == 0){\r\n\t\t\t\t\t\tString aux[] = datosJugador.get(j);\r\n\t\t\t\t\t\tdatosJugador.remove(j);\r\n\t\t\t\t\t\tdatosJugador.add(i,aux);\r\n\t\t\t\t\t}\t\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "a78ae96468c1f05b95633fbb7573117f", "score": "0.57153046", "text": "@Test\n public void pelaajiaOikeaMaaraJaYksiVuorossa() {\n assertEquals(3, blokus.getPelaajat().size());\n assertTrue(blokus.getVuorossa() != null);\n }", "title": "" }, { "docid": "e4024c30a594332aee5024e2f06519a3", "score": "0.5708784", "text": "List<Karte> mischenKartenstapel(List<Karte> karten, boolean obersteKarteBleibt);", "title": "" }, { "docid": "96d46e1fb1313b4113b91e1f0b54fdf3", "score": "0.56987894", "text": "public static void cargarValores()\r\n\t{\r\n\t\ttotalVirus1 = 0; totalVirus2 = 0;\r\n\t\tVirusNeutral = 0; VirusNIvel1_1 = 0; VirusNIvel2_1 = 0; VirusNIvel3_1 = 0; VirusBloques_1 = 0; VirusNIvel1_2 = 0; VirusNIvel2_2 = 0; VirusNIvel3_2 = 0; VirusBloques_2 = 0;\r\n\t\tfor (int i = 0; i < juego.getTablero().getFilas(); i++) {\r\n\t\t\tfor (int j = 0; j < juego.getTablero().getColumnas(); j++) {\r\n\t\t\t\tif(juego.getTablero().getCasillas()[i][j].getVirus()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tif(juego.getTablero().getCasillas()[i][j].getVirus().getColor().equals(juego.getJugadores()[0].getColor()))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\ttotalVirus1++;\r\n\t\t\t\t\t\tswitch (juego.getTablero().getCasillas()[i][j].getVirus().getNivel()) {\r\n\t\t\t\t\t\tcase 1:\r\n\t\t\t\t\t\t\tVirusNIvel1_1++;\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase 2:\r\n\t\t\t\t\t\t\tVirusNIvel2_1++;\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase 3:\r\n\t\t\t\t\t\t\tVirusNIvel3_1++;\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase 4:\r\n\t\t\t\t\t\t\tVirusBloques_1++;\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if(!juego.getTablero().getCasillas()[i][j].getVirus().getColor().equals(Color.GRAY))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\ttotalVirus2++;\r\n\t\t\t\t\t\tswitch (juego.getTablero().getCasillas()[i][j].getVirus().getNivel()) {\r\n\t\t\t\t\t\tcase 1:\r\n\t\t\t\t\t\t\tVirusNIvel1_2++;\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase 2:\r\n\t\t\t\t\t\t\tVirusNIvel2_2++;\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase 3:\r\n\t\t\t\t\t\t\tVirusNIvel3_2++;\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase 4:\r\n\t\t\t\t\t\t\tVirusBloques_2++;\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tVirusNeutral++;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\ttotalVirusTablero = totalVirus1 + totalVirus2 + VirusNeutral;\r\n\t\t\r\n\t\tporcentajeVirus1 = (totalVirus1*100)/(juego.getTablero().getFilas()*juego.getTablero().getColumnas());\r\n\t\tporcentajeVirus2 = (totalVirus2*100)/(juego.getTablero().getFilas()*juego.getTablero().getColumnas());\r\n\t\t\r\n\t\tlabNombreyVirus1.setText(juego.getJugadores()[0].getNombre()+\" -- Total virus: \"+totalVirus1+\" \"+porcentajeVirus1+\"%\");\r\n\t\tif(juego.getModoJuego()==0)\r\n\t\t{\r\n\t\t\tlabNombreyVirus2.setText(juego.getJugadores()[1].getNombre()+\" -- Total virus: \"+totalVirus2+\" \"+porcentajeVirus2+\"%\");\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tlabNombreyVirus2.setText(juego.getMaquina().getNombre()+\" -- Total virus: \"+totalVirus2+\" \"+porcentajeVirus2+\"%\");\r\n\t\t}\r\n\t\t\r\n\t\tlabTotalVirus.setText(\"Total virus en el tablero: \"+totalVirusTablero);\r\n\t\tif(juego.isIlimito())\r\n\t\t{\r\n\t\t\tlabtotalTurnos.setText(\"Total de turnos: Ilimitados\");\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tlabtotalTurnos.setText(\"Total de turnos: \"+juego.getTotalTurnos());\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "797d42e65cbb803c46a254c2df831f0e", "score": "0.5697103", "text": "public void cau_10() {\n\t\tArrayList<GiangVien> dsGV= boMon.getDsGiangVien(); //lay danh sach giang vien\n\t\tint size= dsGV.size();\n\t\tint max=0;\n//\t\ttim do tuoi cao nhat\n\t\tfor (int i = 0; i < size; i++) {\n\t\t\tif((dsGV.get(i) instanceof CoHuu) && (dsGV.get(i).getTuoi()) > max) {\n\t\t\t\tmax= dsGV.get(i).getTuoi();\n\t\t\t}\n\t\t}\n//\t\tin thong tin cua nhung giang vien co huu cao tuoi nhat\n\t\tfor (int i = 0; i < size; i++) {\n\t\t\tif((dsGV.get(i) instanceof CoHuu) && (dsGV.get(i).getTuoi()) == max) {\n\t\t\t\tSystem.out.println(dsGV.get(i).xuatGiangVien());\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "253baa8ae621f927db4303665e7e666e", "score": "0.5690478", "text": "public void llenarDatos(ArrayList<carta> entra, String idiomaSeleccionado){\n int noCarta ,noIdioma;\n String seleccionado = idiomaSeleccionado.toLowerCase();\n\n for (noCarta =0 ; noCarta < entra.size(); noCarta++){\n for(noIdioma = 0; noIdioma < entra.get(noCarta).getIdiomaCarta().size(); noIdioma++ ){\n\n //Si el idioma coincide con el seleccionado pues se comienza a llenar una nueva lista con su imagen y palabra\n if(seleccionado.equals(entra.get(noCarta).getIdiomaCarta().get(noIdioma).getNombreIdioma())){\n cartasParaCargar.add(new tarjeta(entra.get(noCarta).getImagenCarta(),entra.get(noCarta).getIdiomaCarta().get(noIdioma).getPalabra()));\n }\n }\n }\n\n\n\n }", "title": "" }, { "docid": "ccce1648fb9d3671a93a44159af2a043", "score": "0.5690461", "text": "private void llenarLista(){\n listaPuntoBasura.add(new Basura(\"plastico\", new LatLng(-33.035580, -71.626953),10));\n listaPuntoBasura.add(new Basura(\"metal\", new LatLng(-33.044241, -71.620523),1));\n listaPuntoBasura.add(new Basura(\"papel\", new LatLng(-33.043656, -71.622325),1));\n listaPuntoBasura.add(new Basura(\"carton\",new LatLng(-33.046291, -71.621156),5));\n listaPuntoBasura.add(new Basura(\"plastico\",new LatLng(-33.045473, -71.622218),10));\n listaPuntoBasura.add(new Basura(\"metal\",new LatLng(-33.044843, -71.623055),3));\n listaPuntoBasura.add(new Basura(\"papel\",new LatLng(-33.042604, -71.621178),4));\n listaPuntoBasura.add(new Basura(\"carton\",new LatLng(-33.042379, -71.622669),2));\n listaPuntoBasura.add(new Basura(\"plastico\",new LatLng(-33.042406, -71.623924),1));\n listaPuntoBasura.add(new Basura(\"papel\",new LatLng(-33.043359, -71.623484),6));\n listaPuntoBasura.add(new Basura(\"carton\",new LatLng(-33.041668, -71.623591),1));\n listaPuntoBasura.add(new Basura(\"plastico\", new LatLng(-33.040742, -71.624943),2));\n listaPuntoBasura.add(new Basura(\"metal\", new LatLng(-33.039870, -71.626252),7));\n listaPuntoBasura.add(new Basura(\"papel\", new LatLng(-33.039717, -71.628419),1));\n listaPuntoBasura.add(new Basura(\"carton\",new LatLng(-33.038728, -71.628247),3));\n listaPuntoBasura.add(new Basura(\"plastico\", new LatLng(-33.038440, -71.630511),1));\n listaPuntoBasura.add(new Basura(\"metal\", new LatLng(-33.037595, -71.629996),9));\n listaPuntoBasura.add(new Basura(\"papel\", new LatLng(-33.036812, -71.628912),2));\n listaPuntoBasura.add(new Basura(\"carton\",new LatLng(-33.040267, -71.625338),1));\n listaPuntoBasura.add(new Basura(\"plastico\",new LatLng(-33.038603, -71.628986),8));\n listaPuntoBasura.add(new Basura(\"metal\",new LatLng(-33.037218, -71.627355),5));\n }", "title": "" }, { "docid": "2f396c6390a4a096fc3e7836ef60669c", "score": "0.5685805", "text": "public void ActualizarVista() {\n valoresPorDefecto();\n actualizarLosetasJugadores();\n actualizarLosetasSelva();\n actualizarTablero();\n \n for(int i = 0; i < Globales.getInstance().partida.getJugadores().size();i++){\n if(i == 0){\n actualizarValoresCajasJugadores(Globales.getInstance().partida.getJugadores().get(i),vBoxJugador1,\n lbl_jugador1,lbl_jugador1_coins,lbl_jugador1_river,lbl_jugador1_cacaos,lbl_jugador1_sol);\n }\n else if(i==1){\n actualizarValoresCajasJugadores(Globales.getInstance().partida.getJugadores().get(i),vBoxJugador2,\n lbl_jugador2,lbl_jugador2_coins,lbl_jugador2_river,lbl_jugador2_cacaos,lbl_jugador2_sol);\n }\n else if(i==2){\n actualizarValoresCajasJugadores(Globales.getInstance().partida.getJugadores().get(i),vBoxJugador3,\n lbl_jugador3,lbl_jugador3_coins,lbl_jugador3_river,lbl_jugador3_cacaos,lbl_jugador3_sol);\n }\n else{\n actualizarValoresCajasJugadores(Globales.getInstance().partida.getJugadores().get(i),vBoxJugador4,\n lbl_jugador4,lbl_jugador4_coins,lbl_jugador4_river,lbl_jugador4_cacaos,lbl_jugador4_sol);\n }\n }\n }", "title": "" }, { "docid": "a8bc513d6a848ac8440b9118f1ca7cd4", "score": "0.5685214", "text": "public void invertovanaNeopadajucaBezDuplikata() {\n\t\tif (prvi == null || prvi.sledeci == null) {\n\t\t\treturn;\n\t\t}\n\t\tCvorJSListe tek = prvi;\n\t\tCvorJSListe pom = prvi;\n\t\twhile (pom.sledeci != null) {\n\t\t\tif (tek.podatak == tek.sledeci.podatak) {\n\t\t\t\ttek.sledeci = tek.sledeci.sledeci; //ni slucajno ne pomjerat 'pom' odje, nece povezati zadnji broj, iako mozda djeluje nebitno da li cemo ga pomjeriti\n\t\t\t} else {\n\t\t\t\ttek = pom.sledeci;\n\t\t\t\tpom.sledeci = tek.sledeci;\n\t\t\t\ttek.sledeci = prvi;\n\t\t\t\tprvi = tek;\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "4fbfc17d9968feacbe6c16f6cf124fcc", "score": "0.5681985", "text": "protected void caricaListaContoTesoreria() throws WebServiceInvocationFailureException {\n\t\tList<ContoTesoreria> listaInSessione = sessionHandler.getParametro(BilSessionParameter.LISTA_CONTO_TESORERIA);\n\t\tif(listaInSessione == null) {\n\t\t\tLeggiContiTesoreria request = model.creaRequestLeggiContiTesoreria();\n\t\t\tlogServiceRequest(request);\n\t\t\tLeggiContiTesoreriaResponse response = preDocumentoSpesaService.leggiContiTesoreria(request);\n\t\t\tlogServiceResponse(response);\n\t\t\t\n\t\t\t// Controllo gli errori\n\t\t\tif(response.hasErrori()) {\n\t\t\t\t//si sono verificati degli errori: esco.\n\t\t\t\taddErrori(response);\n\t\t\t\tthrow new WebServiceInvocationFailureException(createErrorInServiceInvocationString(request, response));\n\t\t\t}\n\t\t\t\n\t\t\tlistaInSessione = response.getContiTesoreria();\n\t\t\tsessionHandler.setParametro(BilSessionParameter.LISTA_CONTO_TESORERIA, listaInSessione);\n\t\t}\n\t\t\n\t\tmodel.setListaContoTesoreria(listaInSessione);\n\t}", "title": "" }, { "docid": "8aced31d2ee717729c50f55b4c01d884", "score": "0.5674065", "text": "public ArrayList<ComoBox> listaLimitesResp() {\n ResultSet rs = Call.selectFrom(\"VER_INFORMACAO_COBERTURA WHERE SEGURO = ?\", \"*\", 3);\n ArrayList<ComoBox> list = new ArrayList<>();\n if (rs == null) {\n return list;\n }\n Consumer<HashMap<String, Object>> act = (map) -> list.add(new ComoBox(\n (map.get(\"ID COBERTURA\") == null) ? null : map.get(\"ID COBERTURA\").toString(),\n (map.get(\"INFORMACAO\") == null) ? null : map.get(\"INFORMACAO\").toString(),\n (map.get(\"ID INFORMACAO\") == null) ? null : map.get(\"ID INFORMACAO\").toString(),\n (map.get(\"COBERTURA\") == null) ? null : map.get(\"COBERTURA\").toString()));\n Call.forEchaResultSet(act, rs);\n return list;\n }", "title": "" }, { "docid": "67ddc29cb3b56b1fdfd8a90af0378e5b", "score": "0.56659746", "text": "public void valider() {\n \ttry {\n\t\t\t int[] i = listeObjet.getTableau().getSelectedRows();\n\t\t\t int j = listeObjet.getTableau().getRowSorter().convertRowIndexToModel(i[0]);\n\t\t\t ((Billet) listeObjet.getObjetByIndex(j)).razQuota();\n\t\t\t \n \tfenetre.dispose();\n\t\t} catch (Exception e1) {\n\t\t\tJOptionPane.showMessageDialog(new JFrame(), Langue.getTraduction(\"error_adding\"),\n\t\t\t\t\tLangue.getTraduction(\"error\"), JOptionPane.ERROR_MESSAGE);\n\t\t}\n }", "title": "" }, { "docid": "1f7c920ae532d7428abadc12e10ba624", "score": "0.5665135", "text": "private void cargarLstTipoBusqueda() {\r\n lstTipoBusqueda = new ArrayList();\r\n lstTipoBusqueda.add(\"CUIT\");\r\n lstTipoBusqueda.add(\"Razon Social\");\r\n }", "title": "" }, { "docid": "092e9f290c37154059e4ffb494df511e", "score": "0.56645626", "text": "private void llenarListas(){\n palabraColores=new ArrayList<>();\n tintaColores=new ArrayList<>();\n juego=new ArrayList<>();\n palabraColores.add(\"amarillo\");palabraColores.add(\"azul\");palabraColores.add(\"rojo\");palabraColores.add(\"verde\");\n tintaColores.add(\"#ffff00\");tintaColores.add(\"#0000ff\");tintaColores.add(\"#ff0000\");tintaColores.add(\"#00ff00\");\n for(int i=0;i<4;i++){\n juego.add(\"0\");\n }\n palabrasDesplegadas.setText(String.valueOf(Integer.valueOf(palabrasDesplegadas.getText().toString())+1));\n\n\n handler.postDelayed(runnable,Integer.valueOf(listaConfiguracion.get(ids).getTiempoPalabra()));\n generarPalabra();\n }", "title": "" }, { "docid": "f040fb38d7998269e0fb08f38f5c787d", "score": "0.56631774", "text": "public void listarNotasConForMejorado()\n {\n for(String aux : notas){\n System.out.println(aux);\n }\n }", "title": "" }, { "docid": "25f18c4a466ffca8aa7533a358bd0c4d", "score": "0.56593513", "text": "private void mostraPesquisaLivroEmprestados(List<Livro> livros) {\n // Limpa a tabela sempre que for solicitado uma nova pesquisa\n limpaTabelaLivro();\n \n if (livros.isEmpty()) {\n JOptionPane.showMessageDialog(rootPane, \"Nenhum livro emprestado encontrado.\");\n } else { \n // Linha em branco usada no for, para cada registro é criada uma nova linha \n String[] linha = new String[] {null, null, null, null};\n // P/ cada registro é criada uma nova linha, cada linha recebe os campos do registro\n for (int i = 0; i < livros.size(); i++) {\n tmLivro.addRow(linha);\n tmLivro.setValueAt(livros.get(i).getRegistro(), i, 0);\n tmLivro.setValueAt(livros.get(i).getTitulo(), i, 1);\n tmLivro.setValueAt(livros.get(i).getAutor(), i, 2);\n System.out.println(livros.get(i).getDisponibilidade());\n if((livros.get(i).getDisponibilidade())==false){\n tmLivro.setValueAt(\"Indisponível\", i, 3); \n }else{ \n tmLivro.setValueAt(\"Disponível\", i, 3);\n } \n } \n }\n }", "title": "" }, { "docid": "46b384c80d988176fa8f0e586628ae5c", "score": "0.56539154", "text": "public void lancerSort(){\n Carte carteCorneDeLicorne = new Carte();\r\n Carte carteBaveDeCrapaud = new Carte();\r\n Carte carteAileDeChauveSouris = new Carte();\r\n Carte carteLapisLazuli = new Carte();\r\n Carte carteMandragore = new Carte();\r\n \r\n carteCorneDeLicorne.setType(Carte.TypeCarte.CORNE_DE_LICORNE);\r\n carteBaveDeCrapaud.setType(Carte.TypeCarte.BAVE_DE_CRAPAUD);\r\n carteAileDeChauveSouris.setType(Carte.TypeCarte.AILE_DE_CHAUVE_SOURIS);\r\n carteLapisLazuli.setType(Carte.TypeCarte.LAPIS_LAZULI);\r\n carteMandragore.setType(Carte.TypeCarte.MANDRAGORE);\r\n\r\n \r\n if(this.joueurEnCours.getCartes().contains(carteCorneDeLicorne)&&\r\n this.joueurEnCours.getCartes().contains(carteBaveDeCrapaud)){\r\n System.out.println(\"[1]invisibilité\"); \r\n }\r\n if(this.joueurEnCours.getCartes().contains(carteCorneDeLicorne)&&\r\n this.joueurEnCours.getCartes().contains(carteMandragore)){ \r\n System.out.println(\"[2]philtre d'amour\"); \r\n } \r\n if(this.joueurEnCours.getCartes().contains(carteBaveDeCrapaud)&&\r\n this.joueurEnCours.getCartes().contains(carteLapisLazuli)){ \r\n System.out.println(\"[3]hypnose\"); \r\n } \r\n if(this.joueurEnCours.getCartes().contains(carteLapisLazuli)&& \r\n this.joueurEnCours.getCartes().contains(carteAileDeChauveSouris)){ \r\n System.out.println(\"[4]divination\"); \r\n } \r\n if(this.joueurEnCours.getCartes().contains(carteAileDeChauveSouris)&&\r\n this.joueurEnCours.getCartes().contains(carteMandragore)){\r\n System.out.println(\"[5]sommeil profond\");\r\n } \r\n \r\n \r\n //.2Saisie sort à lancer\r\n \r\n boolean termine = false;\r\n while(termine == false);\r\n \r\n String choix = new Scanner(System.in).nextLine();\r\n \r\n switch (choix){\r\n case \"1\":\r\n sortInvisibilite();\r\n break;\r\n case \"2\":\r\n sortPhiltreDAmour();\r\n break;\r\n case \"3\":\r\n sortHypnose();\r\n break;\r\n case \"4\":\r\n sortDivination();\r\n break;\r\n case \"5\":\r\n sortSommeilProfond();\r\n break;\r\n \r\n default:\r\n System.out.println(\"Ce sort n'existe pas\");\r\n \r\n termine = true;\r\n break;\r\n \r\n }\r\n \r\n \r\n //3.Lancement du sort\r\n \r\n \r\n //4.Supprime les 2 cartes ayatn permis de lancer le sort\r\n \r\n \r\n \r\n \r\n \r\n }", "title": "" }, { "docid": "79529622b62cc7bb046a830244373749", "score": "0.56538635", "text": "public static void main(String[] args) {\n\t\tList<String> arrayList = new ArrayList<String>();\n//adicionar elementos ao final da lista, usamos o metodo add\t\t\n\t\tarrayList.add(\"Elemento N°1\");\n\t\tarrayList.add(\"Elemento N°2\");\n\t\tarrayList.add(\"Elemento N°3\");\n\t\t\n//\t\texibir as informações\t\n\t\tSystem.out.println(\"Posição 1 contem:\"+arrayList.get(0));\n\t\tSystem.out.println(\"Posição 2 contem:\"+arrayList.get(1));\n\t\tSystem.out.println(\"Posição 3 contem:\"+arrayList.get(2));\n\t\t\n\t\tfor (String s: arrayList) {\n\t\t\tSystem.out.println(s);\n\t\t}\n//\ttambem podemos add adicionar um elemento numa posição qualquer \t\n\t\tarrayList.add(1,\"Elemento N°1,5\");\n\t\tSystem.out.println(\"\\nApós adicionar o elemento 1,5:\\n\");\n\t\tfor (String s: arrayList) {\n\t\t\tSystem.out.println(s);\n\t\t}\n//\tobter o tamanho da lista \n\t\tSystem.out.println(\"\\nO tamanho da lista é:\"+arrayList.size()+\"\\n\");\n\n//\t\tpodemos ver um determinado valor na lista \n\t\tif (arrayList.contains(\"Elemento N°1,5\")) {\n\t\t\tSystem.out.println(\"Elemento 1,5 existe\");\n\t\t}else {\n\t\t\tSystem.out.println(\"Elemento 1,5 não existe\");\n\t\t}\n\t\tint indice = arrayList.indexOf(\"Elemnto N°1,5\");\n\t\tSystem.out.println(\"\\nO indice do Elemento N°1,5 é:\"+indice);\n\t\t\n//\t\tremovendo um elemento da lista \n\t\tSystem.out.println(\"\\nRemovendo Elemento N°1,5\\n\");\n\t\tarrayList.remove(\"Elemento N°1,5\");\n\t\tSystem.out.println(\"Lista Atualizada\");\n\t\t\n\t\tfor (String s: arrayList) {\n\t\t\tSystem.out.println(s);\n\t\t}\n\t\t\n//\t\tremover com base no indice - remover ultimo registro\n\t\tSystem.out.println(\"Removendo o ultimo elemento:\");\n\t\tarrayList.remove(arrayList.size()-1);\n\t\tSystem.out.println(\"Lista Atualizada\");\n\t\tfor (String s: arrayList) {\n\t\t\tSystem.out.println(s);\n\t\t}\n\t\t\n//\t\tadicionando elementos na lista \n\t\tSystem.out.println(\"Adcionando elementos na lista\");\n\t\tarrayList.add(\"Elemento N°5\");\n\t\tarrayList.add(\"Elemento N°9\");\n\t\tarrayList.add(\"Elemento N°4\");\n\t\tarrayList.add(\"Elemento N°0\");\n\t\tarrayList.add(\"Elemento N°8\");\n\t\tSystem.out.println(\"\\nLista com elementos adicionados!\");\n\t\tfor (String s: arrayList) {\n\t\t\tSystem.out.println(s);\n\t\t}\n\t\t\n\t\t\n//\t\tordenando array list \n\t\tCollections.sort(arrayList);\n\t\tSystem.out.println(\"\\nOrdenar lista\");\n\t\tfor (String s: arrayList) {\n\t\t\tSystem.out.println(s);\n\t\t}\n\t\t\n//\t\tcriando uma lista de objeto - Filme\n\t\tList<Filme> arrrayListFilme = new ArrayList<Filme>();\n\t\t\n//\t\tcriando 3 filmes \n\t\tFilme filme1 = new Filme();\n\t\tfilme1.setCodigo(1);\n\t\tfilme1.setNome(\"Codigo de Conduta\");\n\t\t\n\t\tFilme filme2 = new Filme();\n\t\tfilme2.setCodigo(2);\n\t\tfilme2.setNome(\"Era do Gelo\");\n\t\t\n\t\tFilme filme3 = new Filme();\n\t\tfilme3.setCodigo(3);\n\t\tfilme3.setNome(\"Matrix\");\n\t\tif (filme1.equals(filme2)) {\n\t\t\tSystem.out.println(\"\\nFilmes Iguais\\n\");\n\t\t}else {\n\t\t\tSystem.out.println(\"\\nFilme Diferentes\\n\");\n\t\t}\n\t\t\n//\t\tadicionar na Lista os filmes instanciados \n\t\tarrrayListFilme.add(filme1);\n\t\tarrrayListFilme.add(filme2);\n\t\tarrrayListFilme.add(filme3);\n\n//\t\texibindo a lista de Filme \n\t\tfor (Filme f : arrrayListFilme) {\n\t\t\tSystem.out.println(f);\n\t\t}\n\t\t\n////\t\tordenar uma lista \n//\t\tSystem.out.println(\"Lista Ordenada\");\n//\t\tCollections.sort(list);\n\t\t \n\t\t\n\t\t\n\t}", "title": "" }, { "docid": "cdc715ec4b92fe838f2fd686a321d204", "score": "0.565188", "text": "public static void main(String[] args){\n Nguoi ng1 = new Nguoi();\n SinhVien sv1 = new SinhVien();\n Nguoi ng2 = new SinhVien();\n System.out.println(\"Nhap thong tin Sv1: \");\n // tham chieu hanh vi nhapTT cua cha - Nguoi hay con - SinhVien?????\n ng2.nhapTT();\n System.out.println(ng2);\n //ng2.nhapTT(new Scanner(System.in));\n ng2 = ng1;\n ng2 = sv1;\n System.out.println(\"Nhap thong tin Sv2: \");\n // cha chua chac da la con\n SinhVien sv2 = (SinhVien) ng2;\n sv2.nhapTT();\n System.out.println(sv2);\n System.out.println(sv1);\n System.out.println(ng2);\n\n SinhVien[] dssv = new SinhVien[1000];\n // dssv[0] = new Nguoi();\n Nguoi[] dsnhansu = new Nguoi[1000];\n dsnhansu[0] = new SinhVien();\n ArrayList<Nguoi> dsnhansu2 = new ArrayList<Nguoi>();\n dsnhansu2.add(new Nguoi());\n dsnhansu2.add(new SinhVien());\n dsnhansu2.add(sv1);\n System.out.println(\"Duyet ds nhan su: \");\n for (Nguoi ng: dsnhansu2){\n System.out.println(ng.toString());\n }\n\n /*\n ArrayList list = new ArrayList();\n //them phan tu vao danh sach\n list.add(1);\n list.add(sv2);\n list.add(null);\n list.add(1);\n //lay kich thuoc ds\n System.out.println(\"size: \" + list.size());\n // xoa\n list.remove(null);\n System.out.println(\"size: \" + list.size());\n //cap nhat\n list.set(0,2);\n // lay gia tri tai 1 phan tu -> lay theo chi muc\n Object ob = list.get(0);\n //hien thi ds\n System.out.println(\"hien thi ds theo foreach: \");\n for (Object obj : list){\n System.out.println(obj);\n }\n System.out.println(\"Hien thi ds theo interator: \");\n // tao ra dt lap\n Iterator it = list.iterator();\n // xem dt lap con co the lap duoc tiep khong?\n while (it.hasNext()){\n System.out.println(it.next());\n }\n System.out.println(\"Hien thi ds theo chi muc index: \");\n\n */\n\n }", "title": "" }, { "docid": "881f033790a172bf19801017306c5456", "score": "0.56453675", "text": "public void cluserizaTradicional(BlockIndex bi2) {\r\n for (Map.Entry<String, ArrayList<Vertice>> entrySet : bi2.getMapaNomes().entrySet()) { //pra cada bloco\r\n String key = entrySet.getKey();\r\n // int clusterRecuperadoBI;\r\n\r\n ArrayList<Vertice> value = entrySet.getValue();\r\n for (int i = 0; i < value.size(); i++) {//pra o array de cada bloco da entrada\r\n // System.err.println(\" teste ++++++++++++++\" + controleApagar);\r\n\r\n Vertice get1 = value.get(i);\r\n\r\n double limiar = 0.9; //limiar\r\n Vertice verticeMax = null;\r\n\r\n double maxSimilaridade = 0;\r\n for (int j = 0; j < value.size(); j++) {//descobrir por instancia sem bloco a instancia de maior similaridade\r\n if (i != j) {\r\n Vertice get2 = value.get(j);\r\n //se retornar null é pq n existe a aresta em si.N tem similaridade medida previamente\r\n // arestaAux = this.si.getAresta(key, get1, get2.getId(), get2.getSourceId());\r\n //mede similaridade\r\n AbstractStringMetric metric = new Levenshtein();\r\n //float result = metric.getSimilarity(get1.getConteudoComparacao(), get2.getConteudoComparacao());\r\n float result1 = metric.getSimilarity(get1.getConteudoComparacao(), get2.getConteudoComparacao());\r\n float result2 = metric.getSimilarity(get1.getConteudoComparacao2(), get2.getConteudoComparacao2());\r\n float result = (float) (result1 + result2) / 2;\r\n //si.verificaSimilaridade(result, key, get1.getId(), get1.getSourceId(), get2.getId(), get2.getSourceId(), key);\r\n\r\n if (result > limiar && result > maxSimilaridade) {\r\n maxSimilaridade = result;\r\n verticeMax = get2;\r\n //arestaMax = this.si.getAresta(key, get1, get2.getId(), get2.getSourceId());\r\n\r\n }\r\n\r\n //se ja tem a similaridades\r\n // si.getAresta(key, get, key, key)\r\n // if (si.get) {\r\n }\r\n\r\n }\r\n\r\n if (verticeMax != null) {\r\n if (verticeMax.getClusterId() == -1) {\r\n verticeMax.setClusterId(controleClusterId);\r\n get1.setClusterId(controleClusterId);\r\n controleClusterId++;\r\n\r\n } else {\r\n get1.setClusterId(verticeMax.getClusterId());\r\n }\r\n\r\n } else {\r\n get1.setClusterId(controleClusterId);\r\n controleClusterId++;\r\n }\r\n\r\n }\r\n\r\n //clusterRecuperadoBI = this.bi.getclusterId(get.getId(),key, get.getSourceId());\r\n // int\r\n // AbstractStringMetric similaridade = new Levenshtein();\r\n }//pra cada bloco\r\n System.out.println(\"**************Fim*************\");\r\n\r\n }", "title": "" }, { "docid": "0e68b52412f058094578d395edbf8b20", "score": "0.56430507", "text": "public void setTuiles() {\n tuiles = new ArrayList<>(); //Déclaration de l'ArrayList tuiles\n CarteAventurier carteAventurier1 = new CarteAventurier(NomAventurier.explorateur, Couleur.vert);\n CarteAventurier carteAventurier2 = new CarteAventurier(NomAventurier.messager, Couleur.blanc);\n CarteAventurier carteAventurier3 = new CarteAventurier(NomAventurier.pilote, Couleur.bleu);\n CarteAventurier carteAventurier4 = new CarteAventurier(NomAventurier.plongeur, Couleur.noir);\n CarteAventurier carteAventurier5 = new CarteAventurier(NomAventurier.ingenieur, Couleur.rouge);\n CarteAventurier carteAventurier6 = new CarteAventurier(NomAventurier.navigateur, Couleur.jaune);\n\n Tresor tresor1 = new Tresor(NomTresor.Pierre);\n Tresor tresor2 = new Tresor(NomTresor.Zephyr);\n Tresor tresor3 = new Tresor(NomTresor.Cristal);\n Tresor tresor4 = new Tresor(NomTresor.Calice);\n\n ArrayList<NomTuile> nomTuiles = new ArrayList<NomTuile>();\n nomTuiles.add(NomTuile.LePontDesAbimes);\n nomTuiles.add(NomTuile.LaPorteDeBronze);\n nomTuiles.add(NomTuile.LaCaverneDesOmbres);\n nomTuiles.add(NomTuile.LaPorteDeFer);\n nomTuiles.add(NomTuile.LaPortedOr);\n nomTuiles.add(NomTuile.LesFalaisesDeLOubli);\n nomTuiles.add(NomTuile.LePalaisDeCorail);\n nomTuiles.add(NomTuile.LaPortedArgent);\n nomTuiles.add(NomTuile.LesDunesDeLillusion);\n nomTuiles.add(NomTuile.Heliport);\n nomTuiles.add(NomTuile.LaPorteDeCuivre);\n nomTuiles.add(NomTuile.LeJardinDesHurlements);\n nomTuiles.add(NomTuile.LaForetPourpre);\n nomTuiles.add(NomTuile.LeLagonPerdu);\n nomTuiles.add(NomTuile.LeMaraisBrumeux);\n nomTuiles.add(NomTuile.Observatoire);\n nomTuiles.add(NomTuile.LeRocherFantome);\n nomTuiles.add(NomTuile.LaCaverneDuBrasier);\n nomTuiles.add(NomTuile.LeTempleDuSoleil);\n nomTuiles.add(NomTuile.LeTempleDeLaLune);\n nomTuiles.add(NomTuile.LePalaisDesMarees);\n nomTuiles.add(NomTuile.LeValDuCrepuscule);\n nomTuiles.add(NomTuile.LaTourDuGuet);\n nomTuiles.add(NomTuile.LeJardinDesMurmures);\n\n // supprimé pour la démonstration - mais permet d'obtenir une grille aléatoire\n Collections.shuffle(nomTuiles);\n\n tuiles.add(new Tuile(this, 1, 1));\n tuiles.add(new Tuile(this, 2, 1));\n tuiles.add(new Tuile(this, 3, 1, nomTuiles.get(0)));\n tuiles.add(new Tuile(this, 4, 1, nomTuiles.get(1)));\n tuiles.add(new Tuile(this, 5, 1));\n tuiles.add(new Tuile(this, 6, 1));\n tuiles.add(new Tuile(this, 1, 2));\n tuiles.add(new Tuile(this, 2, 2, nomTuiles.get(2)));\n tuiles.add(new Tuile(this, 3, 2, nomTuiles.get(3)));\n tuiles.add(new Tuile(this, 4, 2, nomTuiles.get(4)));\n tuiles.add(new Tuile(this, 5, 2, nomTuiles.get(5)));\n tuiles.add(new Tuile(this, 6, 2));\n tuiles.add(new Tuile(this, 1, 3, nomTuiles.get(6)));\n tuiles.add(new Tuile(this, 2, 3, nomTuiles.get(7)));\n tuiles.add(new Tuile(this, 3, 3, nomTuiles.get(8)));\n tuiles.add(new Tuile(this, 4, 3, nomTuiles.get(9)));\n tuiles.add(new Tuile(this, 5, 3, nomTuiles.get(10)));\n tuiles.add(new Tuile(this, 6, 3, nomTuiles.get(11)));\n tuiles.add(new Tuile(this, 1, 4, nomTuiles.get(12)));\n tuiles.add(new Tuile(this, 2, 4, nomTuiles.get(13)));\n tuiles.add(new Tuile(this, 3, 4, nomTuiles.get(14)));\n tuiles.add(new Tuile(this, 4, 4, nomTuiles.get(15)));\n tuiles.add(new Tuile(this, 5, 4, nomTuiles.get(16)));\n tuiles.add(new Tuile(this, 6, 4, nomTuiles.get(17)));\n tuiles.add(new Tuile(this, 1, 5));\n tuiles.add(new Tuile(this, 2, 5, nomTuiles.get(18)));\n tuiles.add(new Tuile(this, 3, 5, nomTuiles.get(19)));\n tuiles.add(new Tuile(this, 4, 5, nomTuiles.get(20)));\n tuiles.add(new Tuile(this, 5, 5, nomTuiles.get(21)));\n tuiles.add(new Tuile(this, 6, 5));\n tuiles.add(new Tuile(this, 1, 6));\n tuiles.add(new Tuile(this, 2, 6));\n tuiles.add(new Tuile(this, 3, 6, nomTuiles.get(22)));\n tuiles.add(new Tuile(this, 4, 6, nomTuiles.get(23)));\n tuiles.add(new Tuile(this, 5, 6));\n tuiles.add(new Tuile(this, 6, 6));\n\n for (Tuile t : tuiles) {\n if (t.getNom() == NomTuile.LaPorteDeBronze) {\n t.setEmplacementAventurier(carteAventurier5);\n } else if (t.getNom() == NomTuile.LaCaverneDesOmbres) {\n t.setEmplacementTresor(tresor3);\n } else if (t.getNom() == NomTuile.LaPorteDeFer) {\n t.setEmplacementAventurier(carteAventurier4);\n } else if (t.getNom() == NomTuile.LaPortedOr) {\n t.setEmplacementAventurier(carteAventurier6);\n } else if (t.getNom() == NomTuile.LePalaisDeCorail) {\n t.setEmplacementTresor(tresor4);\n } else if (t.getNom() == NomTuile.LaPortedArgent) {\n t.setEmplacementAventurier(carteAventurier2);\n } else if (t.getNom() == NomTuile.Heliport) {\n t.setEmplacementAventurier(carteAventurier3);\n } else if (t.getNom() == NomTuile.LaPorteDeCuivre) {\n t.setEmplacementAventurier(carteAventurier1);\n } else if (t.getNom() == NomTuile.LeJardinDesHurlements) {\n t.setEmplacementTresor(tresor2);\n } else if (t.getNom() == NomTuile.LaCaverneDuBrasier) {\n t.setEmplacementTresor(tresor3);\n } else if (t.getNom() == NomTuile.LeTempleDuSoleil) {\n t.setEmplacementTresor(tresor1);\n } else if (t.getNom() == NomTuile.LeTempleDeLaLune) {\n t.setEmplacementTresor(tresor1);\n } else if (t.getNom() == NomTuile.LePalaisDesMarees) {\n t.setEmplacementTresor(tresor4);\n } else if (t.getNom() == NomTuile.LeJardinDesMurmures) {\n t.setEmplacementTresor(tresor2);\n }\n } \n \n }", "title": "" }, { "docid": "40c9b36766b88c143f94117f2a2486de", "score": "0.562962", "text": "public void posiblesCambiosI_U(String teo, ArrayList<String> res){\n int tam = teo.length();\n int i = 0;\n String aux =\"\";\n\n while(0 <= i && i <= tam-4){\n\n i = teo.indexOf(\"III\", i);\n if( i >= 0){\n aux = cambiaI_U(i, i+3, teo);\n if(aux != \"\")\n res.add(aux);\n i++;\n }\n\n }\n }", "title": "" }, { "docid": "00a98e5d7f93d4183c06193f06528078", "score": "0.562843", "text": "public void BubbleSort(){\r\n\t\tDefaultComparator<E> C= new DefaultComparator<E>();\t\t\t\t\t\t\t\t\t\t//creo un comparatore \r\n\t\tint scambi = 0;\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//inizializzo una variabile che conterà gli scambi\r\n\t\tdo{\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//do\r\n\t\t\tscambi=0;\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//come prima cosa inizializzo scambi a 0\t\t\r\n\t\t\tfor(int i=0;i<size;i++){\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//for che si scorre tutto l'indexList\r\n\t\t\t\tif(C.compare(this.get(i), this.get(i+1))<0){\t\t\t\t\t\t\t\t\t\t\t//se l'elemento in posizione i è minore dell'elemento in posizione i+\r\n\t\t\t\t\tE first= this.get(i);\r\n\t\t\t\t\tE last=\t this.get(i+1);\r\n\t\t\t\t\tthis.set(i, last);\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//li scambio\r\n\t\t\t\t\tthis.set(i+1, first);\t\t\t\t\t\t\t\t\r\n\t\t\t\t\tscambi++;\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//incremento il contatore degli scambi\r\n\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}while(scambi!=0);\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//finche scambi è diverso da 0\r\n\t}", "title": "" }, { "docid": "e015fa86f50c44645cbd30d5e20891b3", "score": "0.56218827", "text": "public void harmadik_feladat(){\n for(int i = 0; i < line_counter;i++){\r\n if(i == 0){\r\n unique_list.add(adatok[i].id);\r\n }\r\n\r\n int j = 0;\r\n while(j < unique_list.size() && unique_list.get(j) != adatok[i].id){\r\n j++;\r\n }if(j == unique_list.size()){\r\n unique_list.add(adatok[i].id);\r\n }\r\n }\r\n // megvan a unique array most rendeznunk kell novekvo sorrendbe\r\n for(int i = 0; i < unique_list.size(); i++){\r\n for(int j = i+1; j < unique_list.size(); j++){\r\n if(unique_list.get(j) < unique_list.get(i)){\r\n int temp = unique_list.get(j);\r\n unique_list.set(j , unique_list.get(i));\r\n unique_list.set(i , temp);\r\n }\r\n }\r\n }\r\n // mostmar csak megkell szamolni a mozgasokat es kiiratni\r\n File output = new File(\"athaladas.txt\");\r\n try (FileWriter fw = new FileWriter(output);\r\n BufferedWriter bw = new BufferedWriter(fw))\r\n {\r\n for(int i = 0; i < unique_list.size(); i++){\r\n int counter = 0;\r\n for(int j = 0 ; j < line_counter; j++){\r\n if(unique_list.get(i) == adatok[j].id){\r\n counter++;\r\n }\r\n }\r\n bw.write(unique_list.get(i)+\".id belepesei: \"+counter+\"\\n\");\r\n }\r\n }catch(IOException err){\r\n System.out.println(\"File output hiba.\");\r\n }\r\n\r\n }", "title": "" }, { "docid": "ea3caea837fec5867f0a3e9f353b0b30", "score": "0.56200844", "text": "private static ArrayList<ComicDTO> comicInactivo(ArrayList<ComicDTO> lista ) {\n\t\tArrayList<ComicDTO> comicsInactivos = new ArrayList<ComicDTO>();\n\t\tArrayList<String> nombres = new ArrayList<String>(); \n\t\t\n\t\tfor (int i = 0; i <lista.size(); i++) {\n\t\t\tif (lista.get(i).getEstado().equals(EstadoEnum.INACTIVO)) {\n\t\t\t\tcomicsInactivos.add(lista.get(i));\t\t\t\t\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(ComicDTO comic : comicsInactivos) {\n\t\t\tnombres.add(comic.getNombre());\n\t\t\t\n\t\t}\n\t\t\n\t\tSystem.out.println(\"Se ha detectado que de \" + lista.size() + \" comics se encontraron que \" + (lista.size() - comicsInactivos.size())\n\t\t\t\t+ \" se encuentran activos y \" + comicsInactivos.size() + \" Se encuentran inactivos, los comics inactivos son: \" + nombres);\n\t\t\n\t\t\n\t\t\n\t\treturn comicsInactivos;\n\t}", "title": "" }, { "docid": "09854bd273d22ba0dae732fb09118539", "score": "0.56136847", "text": "private static List<Boolean> ejercicioPredicadoPar(List<Tree<String>> arboles, Integer arbol) {\n\t\t\n\t\tList<Boolean> resultado = new ArrayList<Boolean>();\n\t\tList<Boolean> booleanos = new ArrayList<Boolean>();\n\t\tList<Tree<String>> niveles = new ArrayList<Tree<String>>();\n\t\t\n\t\treturn funcionAuxiliarPredicadoPar(arboles, resultado, niveles, booleanos, arbol, 0);\n\t\t\t\n\t}", "title": "" }, { "docid": "4c7a884b20488e8ee4c6c80d01b85eb7", "score": "0.5612752", "text": "private void jueganBlancas(int xo,JLabel jlbOrigen, JLabel jlbMeta) {\n if (xo == 760) {\n mover1(jlbOrigen, jlbMeta);\n Fich.FichaColocada(1, t);//FICHA DESCONTADA DEL VECTOR\n int Fc = Tab.ColocarFicha(xt, yt, t);//FICHA COLOCADA EN EL TABLERO\n if (Tab.comerF(t) == 1) {\n fich_Elim = 1;\n System.out.println(\"COMEEE LAS BLANCAS (FASE 1)\");\n }\n\n t = 3;\n men.mens(\"Fase1 | Juega con las fichas negras\");\n System.out.println(\"Juegan las negras\");\n } else {\n //No se ha escogido una posición blanca por lo que se debe decir que escoga una de ellas\n //System.out.println(\"Escoge una blanca\");\n }\n }", "title": "" }, { "docid": "753da90d1e30e6d1e834bce1fb00ddb9", "score": "0.5612555", "text": "public static void main(String [] args){\n\t\tlong start=System.currentTimeMillis();\n\t\tustawListeKsiazek(\"plik.txt\");\n\t\tustawBibliotekiIIchKsiazki();\n ustawKsiazkiDlaCzytelnikow();\n\t\t//teraz wczytac plik z jakie ksiazki chca wypozyczyc czytelnicy\\\n for(int i=0; i<czytelnicy.size(); i++)\n czytelnicy.get(i).start();\n for(int i=0; i<biblioteki.size(); i++)\n biblioteki.get(i).start();\n// if(czytelnicy.size()>biblioteki.size()){\n// for(int i=0; i<czytelnicy.size(); i++){\n// if(i<biblioteki.size()){\n// biblioteki.get(i).start();\n// }\n// czytelnicy.get(i).start();\n// }\n// }else{\n// for(int i=0; i<biblioteki.size(); i++){\n// if(i<czytelnicy.size()){\n// czytelnicy.get(i).start();\n// }\n// biblioteki.get(i).start();\n// }\n// }\n //ZAPISYWANIE DO PLIKU\n synchronized(KONSOLA){\n int z=0;\n while(z<liczbaBibliotek){\n System.out.println(\"z jest ciągle MNIEJSZE niz liczba bibliotek\");\n KONSOLA.notifyAll();\n try{\n KONSOLA.wait();\n }catch(InterruptedException err){\n System.out.println(\"Problemy z waitowaniem\");\n }\n z=0;\n for(int i=0; i<liczbaBibliotek; i++){\n if(Program.biblioteki.get(i).isJeszczeDziala()==false){\n z++;\n }\n }\n } \n System.out.println(\"K O N I E C Z A P I S Y W A N I E K O N I E C Z A P I S Y W A N I E K O N I E C\");\n zapisywanieKoncowe();\n long stop=System.currentTimeMillis();\n System.out.println(\"CZAS DZIAŁANIA CAŁEGO PROGRAMU: \"+((stop-start)/1000));\n }\n\t//K O N I E C ::\n\t \n\t \n\t\n\t /*\n\t\t// PROBY FUNKCJI ODCZYTYWANIA I ROZSTAWIANIA KSIĄŻEK PO BIBLIOTEKACH - POPRAWIĆ I ZROBIĆ TO NA regexa'ach\n\t\tustawListeKsiazek(\"plik.txt\");\n\t\t\tfor(int i=0; i<wszyKsiazki.size(); i++){\n\t\t\t\tSystem.out.println(wszyKsiazki.get(i));\n\t\t\t}\n\t\tustawBibliotekiIIchKsiazki();\n\t\tfor(int i=0; i<liczbaBibliotek; i++){\n\t\t\tfor(int j=0; j<biblioteki.get(i).getListaKsiazek().size(); j++){\n\t\t\t\tSystem.out.println(biblioteki.get(i).getListaKsiazek().get(j));\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t\tustawKsiazkiDlaCzytelnikow();\n\t\tfor(int i=0; i<liczbaCzytelnikow; i++){\n\t\t\tfor(int j=0; j<czytelnicy.get(i).getListaPotrzebnych().size(); j++){\n\t\t\t\tSystem.out.println(czytelnicy.get(i).getListaPotrzebnych().get(j));\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t */\n\t}", "title": "" }, { "docid": "f1511a6b5ef12acdca7730f4f3a982f5", "score": "0.5610751", "text": "private void riponiPietre(ArrayList<TipoElemento> pietre) {\n for (TipoElemento pietra : pietre) {\n magazzino.replace(pietra, magazzino.get(pietra)+1);\n }\n }", "title": "" }, { "docid": "1585b77dec3d92c8339b03fda242c228", "score": "0.5605668", "text": "private void llenarVectorNumMaquinas(){\n for(int k=0; k<Cortes.size(); k++){\n if(!nomMaquinas.contains(Cortes.elementAt(k).getMaquina().getNombre())){\n nomMaquinas.add(Cortes.elementAt(k).getMaquina().getNombre()); \n }\n }\n }", "title": "" }, { "docid": "ef5643aaa2f58cf56173f56ecb0a39fe", "score": "0.56003416", "text": "@Command\r\n\t@NotifyChange({\"listaHoteles\",\"listaHotelesTemp\",\"listaDestinosconHoteles\"})\r\n\tpublic void habilitarHotelesPOP(@BindingParam(\"creserva\") CReporteReserva reserva)\r\n\t{\r\n\t\treporteReservaDAO.asignarHotelesReserva(reporteReservaDAO.recuperarHotelesReservaBD(reserva.getCodReserva(),reserva.getCodCategoria()));\r\n\t\tthis.setListaHoteles(reporteReservaDAO.getListaHotelesReserva());\r\n\t\tint valorincremento;\r\n\t\tlistaDestinosconHoteles=new ArrayList<CDestinoConHoteles>();\r\n\t\tfor(int i=0; i<listaHoteles.size();i=i+valorincremento)\r\n {\r\n \tString DestinoAnterior=listaHoteles.get(i).getNombreDestino();\r\n \tint contador=i;\r\n \tvalorincremento=0;\r\n \tlistaHotelesTemp=new ArrayList<CHotel>();\r\n \twhile(contador<listaHoteles.size() && listaHoteles.get(contador).getNombreDestino().equals(DestinoAnterior))\r\n \t{\r\n \t\tlistaHotelesTemp.add(new CHotel(listaHoteles.get(contador).getcHotel(),listaHoteles.get(contador).getnPrecioSimple()));\r\n \t\tvalorincremento++;\r\n \t\tcontador++;\r\n \t}\r\n \tlistaDestinosconHoteles.add(new CDestinoConHoteles(listaHoteles.get(i).getNombreDestino().toString(),listaHotelesTemp));\r\n }\r\n\t\treserva.setListaDestinosconHoteles(listaDestinosconHoteles);\r\n\t\t\r\n\t\tif(!reserva.getCodReserva().equals(reporteReservaAnterior.getCodReserva()))\r\n\t\t{\r\n\t\t\tif(this.getListaDestinosconHoteles().isEmpty()){\r\n\t\t\t\treserva.setVisibleHotelespop(false);\r\n\t\t\t\treserva.setColornoExisteListaHoteles(\"background: #DA0613;\");\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\treserva.setVisibleHotelespop(true);\r\n\t\t\t\treserva.setColornoExisteListaHoteles(\"background: #3BA420;\");\r\n\t\t\t}\r\n\t\t\treporteReservaAnterior.setVisibleHotelespop(false);\r\n\t\t\treporteReservaAnterior=reserva;\r\n\t\t}\r\n\t\telse {\r\n\t\t\tif(this.getListaDestinosconHoteles().isEmpty()){\r\n\t\t\t\treserva.setVisibleHotelespop(false);\r\n\t\t\t\treserva.setColornoExisteListaHoteles(\"background: #DA0613;\");\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\treserva.setVisibleHotelespop(true);\r\n\t\t\t\treserva.setColornoExisteListaHoteles(\"background: #3BA420;\");\r\n\t\t\t}\r\n\t\t}\r\n\t\tBindUtils.postNotifyChange(null, null, reserva,\"visibleHotelespop\");\r\n\t\tBindUtils.postNotifyChange(null, null, reserva,\"colornoExisteListaHoteles\");\r\n\t\tBindUtils.postNotifyChange(null, null, reserva,\"listaDestinosconHoteles\");\r\n\t}", "title": "" }, { "docid": "a38648121d704b8f2a2c87637e87bb39", "score": "0.5593718", "text": "public Immeuble(int NBEtages,String test){\n \tsuper(\"Immeuble\");\n \tNBEtage = NBEtages;\n listeAppel = new ArrayList();\n listeEtage = new ArrayList<Etage>();\n listeAscenseur = new ArrayList<Ascenseur>();\n listePersonneArrivee = new ArrayList<Personnes>();\n listePersonnesCrees = new ArrayList<Personnes>(); \n tailleEtage = this.dimensionDefaut.height/getNBEtage();\n estCree = true;\n }", "title": "" }, { "docid": "b44baebcee8f0ec88c6df15ae85c9008", "score": "0.55937", "text": "@Override\n public List<Moneda> LlenaListaVacia(Integer tipo) {\n List<Moneda> list = null; \n list = new ArrayList<>();\n if (tipo.equals(null)) { tipo=1; }\n \n Moneda p = new Moneda();\n \n p.setId(\"\");\n p.setMoneda(\"\");\n p.setSimbolo(\"\");\n p.setTipocambio(0.00); \n p.setFecha(\"19000101\");\n \n \n if ( tipo.equals(1)) //error\n {\n p.setErrcod(Constantes.RETORNO_ERRORSQL.toString());\n p.setDefcod(Constantes.MENSAJE_ERRORSQL_DEF);\n p.setDetcod(Constantes.MENSAJE_ERRORSQL_DET);\n }\n else //sin data\n {\n p.setErrcod(Constantes.RETORNO_NODATASQL.toString());\n p.setDefcod(Constantes.MENSAJE_NODATASQL_DEF);\n p.setDetcod(Constantes.MENSAJE_NODATASQL_DET);\n }\n \n list.add(p);\n\n return list;\n }", "title": "" }, { "docid": "2e6b186c6a27dfe96e6ec6e4b9192ab4", "score": "0.55933046", "text": "public static void lueKortistosta() {\n jasenlista = new ArrayList<Jasen>();\n BufferedReader br = null;\n FileReader fr = null;\n\n try {\n String rivi;\n fr = new FileReader(kortistonNimi);\n br = new BufferedReader(fr);\n while ((rivi = br.readLine()) != null) {\n System.out.println(rivi);\n String[] s = rivi.split(\"[|,]+\");\n\n Jasen jasen = new Jasen();\n jasen.jasennumero = Integer.parseInt(s[0]);\n jasen.etunimi = s[1];\n jasen.sukunimi = s[2];\n jasen.osoite = s[3];\n jasen.postinumero = s[4];\n jasen.kaupunki = s[5];\n jasen.sposti = s[6];\n jasen.puhelin = s[7];\n jasen.syntymapv = Integer.parseInt(s[8]);\n jasen.syntymakk = Integer.parseInt(s[9]);\n jasen.syntymavuosi = Integer.parseInt(s[10]);\n jasen.liittymisvuosi = Integer.parseInt(s[11]);\n if (s[12].equalsIgnoreCase(\"true\")) {\n jasen.motocross = true;\n } else {\n jasen.motocross = false;\n }\n\n if (s[13].equalsIgnoreCase(\"true\")) {\n jasen.enduro = true;\n } else {\n jasen.enduro = false;\n }\n\n if (s[14].equalsIgnoreCase(\"true\")) {\n jasen.trial = true;\n } else {\n jasen.trial = false;\n }\n\n if (s[15].equalsIgnoreCase(\"true\")) {\n jasen.supermoto = true;\n } else {\n jasen.supermoto = false;\n }\n\n if (s[16].equalsIgnoreCase(\"true\")) {\n jasen.stunt = true;\n } else {\n jasen.stunt = false;\n }\n\n if (s[17].equalsIgnoreCase(\"true\")) {\n jasen.mxj = true;\n } else {\n jasen.mxj = false;\n }\n\n if (s[18].equalsIgnoreCase(\"true\")) {\n jasen.mx50 = true;\n } else {\n jasen.mx50 = false;\n }\n\n if (s[19].equalsIgnoreCase(\"true\")) {\n jasen.mx65 = true;\n } else {\n jasen.mx65 = false;\n }\n\n if (s[20].equalsIgnoreCase(\"true\")) {\n jasen.mx85 = true;\n } else {\n jasen.mx85 = false;\n }\n\n if (s[21].equalsIgnoreCase(\"true\")) {\n jasen.aikuiset = true;\n } else {\n jasen.aikuiset = false;\n }\n\n if (s[22].equalsIgnoreCase(\"true\")) {\n jasen.juniorit = true;\n } else {\n jasen.juniorit = false;\n }\n\n if (s[23].equalsIgnoreCase(\"true\")) {\n jasen.naiset = true;\n } else {\n jasen.naiset = false;\n }\n\n if (s[24].equalsIgnoreCase(\"true\")) {\n jasen.ainaisjasenet = true;\n } else {\n jasen.ainaisjasenet = false;\n }\n\n if (s[25].equalsIgnoreCase(\"true\")) {\n jasen.jasenmaksu = true;\n } else {\n jasen.jasenmaksu = false;\n }\n\n jasenlista.add(jasen);\n\n }\n\n } catch (IOException e) {\n e.printStackTrace();\n } finally {\n try {\n if (br != null) {\n br.close();\n }\n\n } catch (IOException ex) {\n ex.printStackTrace();\n }\n }\n }", "title": "" }, { "docid": "a257567da605555da83050175f01b84b", "score": "0.55911845", "text": "public void generarListaEstado() \n\t\t{\n\t\t\tlistaEstado= new ArrayList<>();\n\t\t\tlistaEstado.add(new SelectItem(null, ConstanteWeb.CAMPO_SELECCIONE));\n\t\t\tlistaEstado.add(new SelectItem((Integer)ConstanteWeb.VALOR_REGISTRADO,ConstanteWeb.CAMPO_REGISTRADO));\t\t\n\t\t}", "title": "" }, { "docid": "6a38dc90451cfdd55575b7c317639557", "score": "0.55866545", "text": "private boolean listaImoveis() {\n if (imoveis.isEmpty()) {\r\n System.out.println(\"Sem imóveis cadastrados\");\r\n return false;\r\n } else {\r\n for (Imovel i : imoveis) {\r\n System.out.println(i.toString());\r\n }\r\n return true;\r\n }\r\n }", "title": "" }, { "docid": "256ef3cb796dcae121f73a4131820187", "score": "0.55826217", "text": "public void prendreUnObjetParUnJoueur(Commande commande){\n String s =commande.getSecondMot();\n int x=0;\n for(ObjetZork ob : pieceCourante.copy()){\n if(s.equals(ob.descriptionCourte())){\n if(joueur.contient(ob)==true){\n System.out.println(\"Vous avez deja cette objet!\\n\");\n }\n if((joueur.getPoidsTotal()+ob.getPoids()) <= joueur.getPoidsMax()){\n if(!ob.estTransportable()){\n System.out.println(\"objet non transportable!\");\n }\n else{\n joueur.ajouter(ob);\n System.out.println(ob.descriptionCourte()+\" pris avec succes\");\n joueur.setPoidsTotal(ob.getPoids());\n System.out.println(\"votre nouveau poids: \"+ joueur.getPoidsTotal());\n if(ob.descriptionCourte().equalsIgnoreCase(\"collierOr\") || ob.descriptionCourte().equalsIgnoreCase(\"bagueOr\")){\n joueur.setScore(ob.getPoids()+20); /*plus de points pour les objets precieux*/\n }\n else { \n joueur.setScore(ob.getPoids()+5);\n }\n joueur.setScore(-1);\n System.out.println(\"votre nouveau score: \"+ joueur.getScore());\n }\n }\n else{ \n System.out.println(joueur.getNom()+ \" ne peut pas transporter cette objet\");\n System.out.println(\"il va depasser le poids maximum\");\n }\n if(joueur.contient(ob)){\n pieceCourante.retirer(ob);\n x++;\n effectuerAction();\n effectuerDeplacement();\n }\n else if(!joueur.contient(ob) && (((joueur.getPoidsTotal()+ob.getPoids()) > joueur.getPoidsMax()) || !ob.estTransportable())){\n x=4;\n }\n }\n }\n joueur.afficherListObjets();\n if(x==0){\n System.out.println(\"cet objet n'est pas dans \"+pieceCourante.descriptionCourte()+\"\\n\");\n }\n }", "title": "" }, { "docid": "6d738210110b2193c4a10b1e0b998ad4", "score": "0.5579771", "text": "public void quitarBola() {\n int i = MAX_BOLAS;\n for (int j = 0; j < i; j++) {\n if (bolas[j] != null) {\n i = j;\n }\n }\n if (i != MAX_BOLAS)\n quitarBola(i);\n }", "title": "" }, { "docid": "4ca5d09b405b5c77fd4110bd0e0a29e9", "score": "0.5574898", "text": "@SuppressWarnings(\"unchecked\")\r\n\tprivate Pioche(){\r\n\t\tint i = 0;\r\n\t\t\r\n\t\tlisteCarte = new LinkedList<Carte>();\r\n\t\tlisteCarte.add(new CClassique(ECouleur.ROUGE, 0));\r\n\t\r\n\t\t\r\n\t\tfor(i=1;i<10;i++)\r\n\t\t{\r\n\t\t\tlisteCarte.add(new CClassique(ECouleur.ROUGE, i));\r\n\t\t\tlisteCarte.add(new CClassique(ECouleur.ROUGE, i));\r\n\t\t}\r\n\t\t\r\n\t\tlisteCarte.add(new CClassique(ECouleur.BLEU, 0));\r\n\t\t\r\n\t\tfor(i=1;i<10;i++)\r\n\t\t{\r\n\t\t\tlisteCarte.add(new CClassique(ECouleur.BLEU, i));\r\n\t\t\tlisteCarte.add(new CClassique(ECouleur.BLEU, i));\r\n\t\t}\r\n\t\t\r\n\t\tlisteCarte.add(new CClassique(ECouleur.JAUNE, 0));\r\n\t\t\r\n\t\tfor(i=1;i<10;i++)\r\n\t\t{\r\n\t\t\tlisteCarte.add(new CClassique(ECouleur.JAUNE, i));\r\n\t\t\tlisteCarte.add(new CClassique(ECouleur.JAUNE, i));\r\n\t\t}\r\n\t\t\r\n\t\tlisteCarte.add(new CClassique(ECouleur.VERT, 0));\r\n\t\t\r\n\t\tfor(i=1;i<10;i++)\r\n\t\t{\r\n\t\t\tlisteCarte.add(new CClassique(ECouleur.VERT, i));\r\n\t\t\tlisteCarte.add(new CClassique(ECouleur.VERT, i));\r\n\t\t}\r\n\t\t\r\n\t\tfor(i=0;i<4;i++)\r\n\t\t{\r\n\t\t\tswitch(i){\r\n\t\t\t\tcase 0:\r\n\t\t\t\t\tlisteCarte.add(new CPlusDeux(ECouleur.BLEU));\r\n\t\t\t\t\tlisteCarte.add(new CPlusDeux(ECouleur.BLEU));\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 1:\r\n\t\t\t\t\tlisteCarte.add(new CPlusDeux(ECouleur.JAUNE));\r\n\t\t\t\t\tlisteCarte.add(new CPlusDeux(ECouleur.JAUNE));\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 2:\r\n\t\t\t\t\tlisteCarte.add(new CPlusDeux(ECouleur.ROUGE));\r\n\t\t\t\t\tlisteCarte.add(new CPlusDeux(ECouleur.ROUGE));\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 3:\r\n\t\t\t\t\tlisteCarte.add(new CPlusDeux(ECouleur.VERT));\r\n\t\t\t\t\tlisteCarte.add(new CPlusDeux(ECouleur.VERT));\r\n\t\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tfor(i=0;i<4;i++)\r\n\t\t{\r\n\t\t\tswitch(i){\r\n\t\t\t\tcase 0:\r\n\t\t\t\t\tlisteCarte.add(new CInverse(ECouleur.BLEU));\r\n\t\t\t\t\tlisteCarte.add(new CInverse(ECouleur.BLEU));\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 1:\r\n\t\t\t\t\tlisteCarte.add(new CInverse(ECouleur.JAUNE));\r\n\t\t\t\t\tlisteCarte.add(new CInverse(ECouleur.JAUNE));\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 2:\r\n\t\t\t\t\tlisteCarte.add(new CInverse(ECouleur.ROUGE));\r\n\t\t\t\t\tlisteCarte.add(new CInverse(ECouleur.ROUGE));\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 3:\r\n\t\t\t\t\tlisteCarte.add(new CInverse(ECouleur.VERT));\r\n\t\t\t\t\tlisteCarte.add(new CInverse(ECouleur.VERT));\r\n\t\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tfor(i=0;i<4;i++)\r\n\t\t{\r\n\t\t\tswitch(i){\r\n\t\t\t\tcase 0:\r\n\t\t\t\t\tlisteCarte.add(new CPasse(ECouleur.BLEU));\r\n\t\t\t\t\tlisteCarte.add(new CPasse(ECouleur.BLEU));\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 1:\r\n\t\t\t\t\tlisteCarte.add(new CPasse(ECouleur.JAUNE));\r\n\t\t\t\t\tlisteCarte.add(new CPasse(ECouleur.JAUNE));\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 2:\r\n\t\t\t\t\tlisteCarte.add(new CPasse(ECouleur.ROUGE));\r\n\t\t\t\t\tlisteCarte.add(new CPasse(ECouleur.ROUGE));\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 3:\r\n\t\t\t\t\tlisteCarte.add(new CPasse(ECouleur.VERT));\r\n\t\t\t\t\tlisteCarte.add(new CPasse(ECouleur.VERT));\r\n\t\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tfor(i=0;i<4;i++)\r\n\t\t{\r\n\t\t\tlisteCarte.add(new CJoker());\r\n\t\t}\r\n\t\t\r\n\t\tfor(i=0;i<4;i++)\r\n\t\t{\r\n\t\t\tlisteCarte.add(new CPlusQuatre());\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\tCollections.shuffle((List<Carte>) listeCarte);\r\n\t}", "title": "" }, { "docid": "7cd0fc3eaf40912f1df391374006124a", "score": "0.5572716", "text": "public List<PolizaDatos> listaPolizasFiltradas(List<PolizaDatos> listaPolizaDat, List<PolizaProcesada> listaPolizasProcesadas, int periodo, int ejercicio) {\r\n List<PolizaDatos> listaPolizasFiltradas = new ArrayList<>();\r\n\r\n if (!listaPolizasProcesadas.isEmpty()) {\r\n if (!listaPolizaDat.isEmpty()) {\r\n\r\n for (int i = 0; i < listaPolizaDat.size(); i++) {\r\n int diferente = 8;\r\n String debe_haber = (listaPolizaDat.get(i).getDebe_haber() == 1) ? \"H\" : \"D\";\r\n for (int j = 0; j < listaPolizasProcesadas.size(); j++) {\r\n\r\n try {\r\n\r\n if ((listaPolizaDat.get(i).getNumeroPoliza()).replace(\" \", \"\").equals(listaPolizasProcesadas.get(j).getNumeroPoliza().replace(\" \", \"\"))) {\r\n diferente--;\r\n }\r\n if ((listaPolizaDat.get(i).getTipoPoliza().replace(\" \", \"\")).equals(listaPolizasProcesadas.get(j).getTipoPoliza().replace(\" \", \"\"))) {\r\n diferente--;\r\n }\r\n if (Double.parseDouble(listaPolizaDat.get(i).getMontoMov().replace(\" \", \"\")) != Double.parseDouble(listaPolizasProcesadas.get(j).getMontoMov().replace(\" \", \"\"))) {\r\n diferente--;\r\n }\r\n if ((listaPolizaDat.get(i).getEmpresa().replace(\" \", \"\")).equals(listaPolizasProcesadas.get(j).getEmpresa().replace(\" \", \"\"))) {\r\n diferente--;\r\n }\r\n if ((listaPolizaDat.get(i).getNumCuentaCoi().replace(\" \", \"\")).equals(listaPolizasProcesadas.get(j).getNumeroCuenta().replace(\" \", \"\"))) {\r\n diferente--;\r\n }\r\n if ((debe_haber).equals(listaPolizasProcesadas.get(j).getDh().replace(\" \", \"\"))) {\r\n diferente--;\r\n }\r\n if ((String.valueOf(periodo).replace(\" \", \"\")).equals(listaPolizasProcesadas.get(j).getPeriodo().replace(\" \", \"\"))) {\r\n diferente--;\r\n }\r\n if ((String.valueOf(ejercicio).replace(\" \", \"\")).equals(listaPolizasProcesadas.get(j).getEjercicio().replace(\" \", \"\"))) {\r\n diferente--;\r\n }\r\n if (diferente > 0) {\r\n\r\n PolizaDatos polizaDat = new PolizaDatos();\r\n polizaDat.setIdDoctodig(listaPolizaDat.get(i).getIdDoctodig());\r\n polizaDat.setRutaXml(listaPolizaDat.get(i).getRutaXml());\r\n polizaDat.setNombreXml(listaPolizaDat.get(i).getNombreXml());\r\n polizaDat.setTipoPoliza(listaPolizaDat.get(i).getTipoPoliza());\r\n polizaDat.setNumeroPoliza(listaPolizaDat.get(i).getNumeroPoliza());\r\n polizaDat.setEmpresa(listaPolizaDat.get(i).getEmpresa());\r\n polizaDat.setFechaPago(listaPolizaDat.get(i).getFechaPago());\r\n polizaDat.setCuenta(listaPolizaDat.get(i).getCuenta());\r\n polizaDat.setNumCuentaCoi(listaPolizaDat.get(i).getNumCuentaCoi());\r\n polizaDat.setConXml(listaPolizaDat.get(i).getConXml());\r\n polizaDat.setMontoMov(listaPolizaDat.get(i).getMontoMov());\r\n polizaDat.setDebe_haber(listaPolizaDat.get(i).getDebe_haber());\r\n listaPolizasFiltradas.add(polizaDat);\r\n }\r\n } catch (NullPointerException e) {\r\n Logger.getLogger(Consultas.class.getName()).log(Level.SEVERE, null, e);\r\n }\r\n\r\n }\r\n }\r\n }\r\n } else {\r\n listaPolizasFiltradas = listaPolizaDat;\r\n }\r\n\r\n return listaPolizasFiltradas;\r\n }", "title": "" }, { "docid": "0e8f46aad0ef320b5d32de6eb0b162e8", "score": "0.55721855", "text": "public void timKiemHocSinh() {\r\n\t\tint min = list.get(0).getTuoi();\r\n\t\tint max = list.get(0).getTuoi();\r\n\t\tfor (int i = 1; i < size; i++) {\r\n\t\t\tif (min > list.get(i).getTuoi()) {\r\n\t\t\t\tmin = list.get(i).getTuoi();\r\n\t\t\t}\r\n\t\t\tif (max < list.get(i).getTuoi()) {\r\n\t\t\t\tmax = list.get(i).getTuoi();\r\n\t\t\t}\r\n\t\t}\r\n\t\tfor (int i = 0; i < size; i++) {\r\n\t\t\tif (list.get(i).getTuoi() == min) {\r\n\t\t\t\tSystem.out.println(\"3.1.Hoc sinh co tuoi nho nhat la : \"\r\n\t\t\t\t\t\t+ list.get(i).toString());\r\n\t\t\t}\r\n\t\t\tif (list.get(i).getTuoi() == max) {\r\n\t\t\t\tSystem.out.println(\"3.2.Hoc sinh co tuoi lon nhat la : \"\r\n\t\t\t\t\t\t+ list.get(i).toString());\r\n\t\t\t}\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "40c4fde1a4af01ed62d91562205cbf62", "score": "0.5571475", "text": "public static void chiudiVotazione() { \n resetVoti();\n ArrayList<String> vincitori = findWinner();\n if ( vincitori.size() > 1 ) {\n JOptionPane.showMessageDialog(null,\"Necessario secondo turno!\", \"Attenzione\", JOptionPane.WARNING_MESSAGE);\n int res = JOptionPane.showConfirmDialog(null,\"Vuoi procedere a impostare un secondo turno di elezioni?\\nQuesta operazione cancellerà i candidati che non sono passati al secondo turno.\\nQuesta operazione non può essere annullata.\",\"ATTENZIONE\", JOptionPane.YES_NO_OPTION);\n if ( res == JOptionPane.YES_OPTION ) {\n \n ArrayList<Candidato> can = mySQL.readCandidatiColumns();\n for (Candidato obj: can) {\n if (!vincitori.contains(obj.getCF())) {\n mySQL.updateQuery(\"DELETE FROM db.CANDIDATI WHERE CodiceFiscale='\" + obj.getCF() + \"';\");\n \n }\n }\n \n JOptionPane.showMessageDialog(null,\"Per vedere le modifiche riavviare l' interfaccia di gestione.\", \"Necessario riavvio\", JOptionPane.INFORMATION_MESSAGE);\n }\n \n }\n else if ( vincitori.size() == 1) { // ho un vincitore con maggioranza assoluta\n JOptionPane.showMessageDialog(null,\"Un candidato ha raggiunto la maggioranza assoluta!\", \"Elezione conclusa\", JOptionPane.OK_OPTION);\n winner = vincitori.get(0).toString();\n\n \n ArrayList<Candidato> can = mySQL.readCandidatiColumns();\n \n for (Candidato obj: can) { \n if (obj.getCF().equals(winner))\n printWinner();\n }\n }\n \n votazioneAperta = false; \n }", "title": "" } ]
ec4a1038550678776a8a144fa7f1f51d
Getter for enemy health.
[ { "docid": "2f970fee12c3e978f908d6fc85251fee", "score": "0.7509234", "text": "public int getHealth()\n {\n return health;\n }", "title": "" } ]
[ { "docid": "52e8a6249a0686268f92b78e32b3487a", "score": "0.770048", "text": "public double getHealth()\n {\n return this.health;\n }", "title": "" }, { "docid": "36490e6e3c0a55829194345abde2611f", "score": "0.765643", "text": "@Override\n public int getHealth() {\n int returnHealth = this.health;\n return returnHealth;\n }", "title": "" }, { "docid": "5dc5443736fe4591274040abc49100be", "score": "0.7655683", "text": "public int getHealth(){\n \t\treturn this.health;\n \t}", "title": "" }, { "docid": "3424cd72b54592208f3f21169846d9f9", "score": "0.7625222", "text": "public double getHealth()\n\t{\n\t\treturn health;\n\t}", "title": "" }, { "docid": "f45fc8faba210002b2bf81b2f69fd4d5", "score": "0.7619037", "text": "double getHealth();", "title": "" }, { "docid": "cee43162b1d674f6647294cce129a9ff", "score": "0.7617967", "text": "public double getHealth(){\n\t\treturn health;\n\t}", "title": "" }, { "docid": "10d6cd56a73730dabba8f2974b807a2c", "score": "0.75825334", "text": "public int getHealth() {\n return health;\n }", "title": "" }, { "docid": "10d6cd56a73730dabba8f2974b807a2c", "score": "0.75825334", "text": "public int getHealth() {\n return health;\n }", "title": "" }, { "docid": "29f56cf7a3ddcf0329b593b30b97c5bb", "score": "0.7582374", "text": "public int getHealth() {\n\n return health;\n }", "title": "" }, { "docid": "9eb65d98cba17ec9a3b7202433d3db0b", "score": "0.75498784", "text": "public double getHealth();", "title": "" }, { "docid": "8add9b9abdce223eaa69c82821e229c7", "score": "0.7548421", "text": "public int getHealth() {\n return this.hp;\n }", "title": "" }, { "docid": "3320c86e8192a425e89e43d0cf55b16d", "score": "0.754152", "text": "public int getHealth() {\n return tHealth;\n }", "title": "" }, { "docid": "99567ae6ac798c72bd6b3250cfb973ad", "score": "0.75308365", "text": "public int getHealth() {\r\n\t\treturn health;\r\n\t}", "title": "" }, { "docid": "99567ae6ac798c72bd6b3250cfb973ad", "score": "0.75308365", "text": "public int getHealth() {\r\n\t\treturn health;\r\n\t}", "title": "" }, { "docid": "6b3b12ec8f981fbccd0e01a4dce20857", "score": "0.7530404", "text": "public Float getHealth() {\n return this.Health;\n }", "title": "" }, { "docid": "741758c7059691f377c8b22bfb5b986b", "score": "0.7469618", "text": "public float getHealth() { return this.health; }", "title": "" }, { "docid": "a61abb28cd9b80dee89ad5ea1911addf", "score": "0.7442505", "text": "public int getHealth() {\n\t\treturn health;\n\t}", "title": "" }, { "docid": "a61abb28cd9b80dee89ad5ea1911addf", "score": "0.7442505", "text": "public int getHealth() {\n\t\treturn health;\n\t}", "title": "" }, { "docid": "a61abb28cd9b80dee89ad5ea1911addf", "score": "0.7442505", "text": "public int getHealth() {\n\t\treturn health;\n\t}", "title": "" }, { "docid": "1ba062575af8854ef6bc823775fd4cb6", "score": "0.7387302", "text": "int getHealth() {\n return currentHealth;\n }", "title": "" }, { "docid": "fb6779189ff2b175a2c6a8b6f68f22ca", "score": "0.7383484", "text": "public int getHealth();", "title": "" }, { "docid": "72bda36c9bf0ee4639e4e0072dcdd7f9", "score": "0.7359192", "text": "public int getHealth() {return health;}", "title": "" }, { "docid": "cccfef716324c79221b7a45ea89859fb", "score": "0.73442113", "text": "public double getMaxHealth();", "title": "" }, { "docid": "24d135ac1efae18ea91ccd4314357905", "score": "0.7326764", "text": "@Override\n\tpublic int getHealth() {\n\t\treturn health;\n\t}", "title": "" }, { "docid": "c709c81464b47f3b515ad0a2dfbe7148", "score": "0.73035115", "text": "public int getHp() {\n\t\treturn health;\n\t}", "title": "" }, { "docid": "1e4f887f49e1a1e30578fc19b183c25f", "score": "0.7297719", "text": "public int getHP()\n {\n return hp; // returns the health of the entity that calls it\n }", "title": "" }, { "docid": "2de00cb1db2ba2ca9098480998371edd", "score": "0.7268682", "text": "public int obtainHealth()\r\n\t{\r\n\t\treturn healthLevel;\r\n\t}", "title": "" }, { "docid": "69d1bd5ee88b00b90a5419fb66cef61a", "score": "0.7209832", "text": "public String getHealth() {\n\t\treturn health;\n\t}", "title": "" }, { "docid": "6f0189bbd934f91cf28805f503c1df30", "score": "0.7191043", "text": "public Integer getHealth(){\n return this.health;\n }", "title": "" }, { "docid": "3c83bea401af8a177552c821ae5eb653", "score": "0.7187295", "text": "private String getHealth() {\n return health;\n }", "title": "" }, { "docid": "c1d3e359337c11a86c5b66ca821ef13f", "score": "0.7140554", "text": "public Text getHealth() {\n\t\treturn health;\n\t}", "title": "" }, { "docid": "d734b012d7afda7f39cf9e4adbc9bf4d", "score": "0.71246547", "text": "public int getCurrentHealth() {\n return currentHealth;\n }", "title": "" }, { "docid": "ad04cd6fdd78c9982d1f15c3533df96c", "score": "0.70840704", "text": "public int getEnemyBaseHits() {\n return enemyBaseHits;\n }", "title": "" }, { "docid": "26110ad4b92bd8b939913052f727754f", "score": "0.70456487", "text": "public int getBaseHealth() {\n return baseHealth;\n }", "title": "" }, { "docid": "f69b4c7ca7057bde6b517b0fe1d579b6", "score": "0.7029362", "text": "public double getCurrentHealth() {\n\t\treturn BukkitPlayer.safeGetHealth(player.getPlayer());\n\t}", "title": "" }, { "docid": "35f37f12b064a93d0b3b010a099c9d1b", "score": "0.7001618", "text": "public int getMaxHealth()\n {\n validify();\n return Client.INSTANCE.unitGetMaxHealth(ptr);\n }", "title": "" }, { "docid": "3c1781d0f9810d79ad6e047114924be9", "score": "0.6991104", "text": "float getHealthMax();", "title": "" }, { "docid": "aef7253ec9dd8aba72510ba3e6051087", "score": "0.69882125", "text": "public int getShipHealth() {\n return shipHealth;\n }", "title": "" }, { "docid": "d0fde536e805067b4eee67e74658b86f", "score": "0.6955071", "text": "public int getMaxHealth(){\n\t\treturn maxHealth;\n\t}", "title": "" }, { "docid": "0bb130f2505a1d5f5a589ef902d8eda3", "score": "0.6920534", "text": "public int getEnemyScore() {\n return enemyScore_;\n }", "title": "" }, { "docid": "3c45b546d24223a1999ce93c12957537", "score": "0.68634117", "text": "public int getEnemyScore() {\n return enemyScore_;\n }", "title": "" }, { "docid": "32ac951ba5ab8251dc108471ceebf071", "score": "0.685341", "text": "public double getLife() {\n return healthPoints;\n }", "title": "" }, { "docid": "6cd4516cba67cc161c230b1bcc0b4fcf", "score": "0.6840036", "text": "public int getBossHp() {\n return hp;\n }", "title": "" }, { "docid": "f718709544a513d2a33d9df23e927892", "score": "0.68322045", "text": "public int getMaxHealth() {\n\t\treturn health;\n\t}", "title": "" }, { "docid": "c29f165ef0c72805e8548517ceba8cf5", "score": "0.68311036", "text": "public float getHealthMax() {\n return healthMax_;\n }", "title": "" }, { "docid": "caf2bbfd7cf30e30b421cdb1adee7e23", "score": "0.6816136", "text": "public int getCurrHealth()\n {\n return currHealth;\n }", "title": "" }, { "docid": "488a44d7514bb1089eeca903dadfc042", "score": "0.68111795", "text": "public int getCurrentHealth() {\n\t\treturn currentHealth;\n\t}", "title": "" }, { "docid": "488a44d7514bb1089eeca903dadfc042", "score": "0.68111795", "text": "public int getCurrentHealth() {\n\t\treturn currentHealth;\n\t}", "title": "" }, { "docid": "2fa4a353f5baff553fd2c7d6c6b788d2", "score": "0.68009627", "text": "public int getMaximumHealth() {\n return maximumHealth;\n }", "title": "" }, { "docid": "7af4dc13e843beb922100c018f99c8af", "score": "0.678648", "text": "public float getHealthMax() {\n return healthMax_;\n }", "title": "" }, { "docid": "b01a5d9fb16605bcacb8ddd8782ef007", "score": "0.6774937", "text": "public Double getHealthBar() {\n return this.healthBar;\n }", "title": "" }, { "docid": "8893df1e765adff813437b31cbc46761", "score": "0.67105705", "text": "public int getMaxHealth()\n\t{\n\t\treturn maxHealth;\n\t}", "title": "" }, { "docid": "40ab73ed0377e0089656c330350f4cff", "score": "0.6703333", "text": "public double getMaxHealth(){\n\t\tdouble health = 20;\n\t\t\n\t\tfor(Entry<String, Double> entry : healthMap.entrySet()) {\n\t\t\thealth += entry.getValue();\n\t\t}\n\t\t\n\t\treturn health;\n\t}", "title": "" }, { "docid": "9b662545724060552f0d6a61252ca757", "score": "0.6672314", "text": "public int getHealthLeft()\n {\n validify();\n return Client.INSTANCE.unitGetHealthLeft(ptr);\n }", "title": "" }, { "docid": "cbcada5b4379d9bed3a05c47cec0ed96", "score": "0.663406", "text": "int getEnemyScore();", "title": "" }, { "docid": "8a61f89beb776201a8893c75da93ad94", "score": "0.65918887", "text": "public int getMaxHP()\n {\n return maxHp; //returns the max health of the user \n }", "title": "" }, { "docid": "0c8a7a0b86f3ca88cd6e0f2471dd4847", "score": "0.6584352", "text": "public String getEnemyLevel() {\n return _context.getResources().getString(_context.getResources().getIdentifier(\"enemy_level\", \"string\", _context.getPackageName()), _enemyLevelMin, _enemyLevelMax);\n }", "title": "" }, { "docid": "d2d9f2cdd852c7683514098be572be3c", "score": "0.65767926", "text": "public static int getEnemiesDefeated() {\n return Level.sCurrent.mScore.mEnemiesDefeated;\n }", "title": "" }, { "docid": "2e55efe075c9758a3989000beffa8c08", "score": "0.6546364", "text": "public int additionalHealth() {\n int healthItem = 5;\n return healthItem;\n }", "title": "" }, { "docid": "02cbc628634f4667b3eab7275f937030", "score": "0.65290475", "text": "public int getHp()\n {\n return (this.hp);\n }", "title": "" }, { "docid": "c54f627dcf8167783f284ebc111aa892", "score": "0.64929336", "text": "@Override\n \tpublic int getHealth() {\n \t\treturn 0;\n \t}", "title": "" }, { "docid": "95a8f6486cc41ecd5572741cf42cdd58", "score": "0.64572495", "text": "public int getHP() {\n\t\treturn HP;\n\t}", "title": "" }, { "docid": "59fc9c87c4cf5df791a4bb373d3b2eff", "score": "0.64502174", "text": "public int getHealAmount() {\n\t\treturn healAmount;\n\t}", "title": "" }, { "docid": "a5afa35bde1681f285f3386883672651", "score": "0.6443264", "text": "public Army getEnemy() {\n return enemy;\n }", "title": "" }, { "docid": "165ee4f5394643aaeceda6654bdbb4dd", "score": "0.644048", "text": "public int getShieldHP () {\r\n\t\treturn shieldHp;\r\n\t}", "title": "" }, { "docid": "ea3b015054cf76167868a5424b4f715a", "score": "0.6426772", "text": "public int getBaseHealth() {\n return getWarfare();\n }", "title": "" }, { "docid": "13623285f19526207c252f32c8369fc3", "score": "0.64195174", "text": "public int getEnemyShipHeight() {\n\t\treturn enemyShipHeight;\n\t}", "title": "" }, { "docid": "f5ef148b54e5926af33505e2af17680e", "score": "0.64070773", "text": "@Override\n public int getHp() {\n return this.hp;\n }", "title": "" }, { "docid": "89a5c6fc3ba771e76d2f0001123ac714", "score": "0.6389757", "text": "boolean hasBattleHitDefenderPercentOfHealth();", "title": "" }, { "docid": "c14c0d3b086e825e9f021aaa2ee586d1", "score": "0.63819146", "text": "public int getMaximumHealth() {\n\t\treturn maximumHealth;\n\t}", "title": "" }, { "docid": "d39c76fc29569867da88d5408fcc8e2c", "score": "0.638054", "text": "public int getHP(){\n return HP;\n }", "title": "" }, { "docid": "dfc313450fbd39e50b97e35b81f85a6e", "score": "0.6344228", "text": "private int checkForDestroyed(){\r\n //if the player's health is below zero, return 1\r\n if (this.player.getCurrentHealth() <= 0) {\r\n return 1;\r\n //if the player's health is below zero, return 2\r\n }else if(this.enemy.getCurrentHealth() <= 0){\r\n return 2;\r\n }else{\r\n return 0;\r\n }\r\n }", "title": "" }, { "docid": "31661b42b53f866f9a4aff564be595d4", "score": "0.6329468", "text": "public int getTotalHP() {\n return totalHP;\n }", "title": "" }, { "docid": "9be265c1a834dac1a22c6a7ae7847d5f", "score": "0.6297665", "text": "boolean hasBattleHitAttackerPercentOfHealth();", "title": "" }, { "docid": "fd5f7a771f6dcc4f8c1c7e79bf059e4a", "score": "0.6297551", "text": "@Override\n\tpublic int getMaxHealth() {\n\t\treturn super.getMaxHealth() + 200;\n\t}", "title": "" }, { "docid": "4f2b509f904e822daaed03e2d24715ca", "score": "0.6270031", "text": "public int[] getNumberOfEnemies() {\n\t\treturn numberOfEnemies;\n\t}", "title": "" }, { "docid": "ed6f4ffc56b3990c74554219ea1da9f4", "score": "0.62473106", "text": "int getHP(){\n return HP;\n }", "title": "" }, { "docid": "e023d2537bb834ffd980764d6a78ab44", "score": "0.62355334", "text": "public Long getHealthy() {\n return this.Healthy;\n }", "title": "" }, { "docid": "bb192f2ef6ab056bff9da8b8f9c4000a", "score": "0.6220768", "text": "public int getHp() {\n\t\treturn this.hp;\n\t}", "title": "" }, { "docid": "bb192f2ef6ab056bff9da8b8f9c4000a", "score": "0.6220768", "text": "public int getHp() {\n\t\treturn this.hp;\n\t}", "title": "" }, { "docid": "81e48a29c070a1a8e9bbd84cb2a75e2c", "score": "0.6214395", "text": "@Override\n \tpublic int getMaxHealth() {\n \t\treturn 0;\n \t}", "title": "" }, { "docid": "a05ba4270178902eaf94586a6e58e888", "score": "0.62055576", "text": "public int getMaxHP() {\n return this.MAX_HP;\n }", "title": "" }, { "docid": "15334a7d7650e4db6c68268aa23d44f4", "score": "0.62030125", "text": "public int getFallFinalHealth() {\n \t\treturn (this.finalHealth);\n \t}", "title": "" }, { "docid": "ab9e942cbfc0681e265c5ce82f2d6dbb", "score": "0.62003136", "text": "public int getHp()\r\n\t{\r\n\t\tif (hp > 0)\r\n\t\t{\r\n\t\t\treturn hp;\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\treturn 0;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "6f28b424a246ac16b5388dd74df63fb4", "score": "0.61838096", "text": "int getLevelHealthy();", "title": "" }, { "docid": "de270ef895a94d5629dd31450dbb23de", "score": "0.618001", "text": "public BasicHealthMetrics getBasicHealthMetrics () {\r\n return basicHealthMetrics;\r\n }", "title": "" }, { "docid": "9969b5af6e431cc43fe9a32f8a81d112", "score": "0.61713636", "text": "public int getCurrentHealthPoints() {\n return currentHealthPoints;\n }", "title": "" }, { "docid": "c25711b71101df3894bedcd993299e65", "score": "0.616437", "text": "public double getMaxHP() {\n return maxHP;\n }", "title": "" }, { "docid": "771f34ccbc93dea0f9d6cbeb42f19822", "score": "0.6122959", "text": "public int getMaxHealth() {\n\t\treturn 6;\n\t}", "title": "" }, { "docid": "d9f40f1b1ea786fd887a1d7fea42f432", "score": "0.6116922", "text": "public double getPlayerHealthPercent(){\n if(player.getHealth() == player.getMaxHealth()){\n return 1;\n } \n return (player.getHealth()/player.getMaxHealth())-((player.getHealth()/player.getMaxHealth())%0.0001);\n }", "title": "" }, { "docid": "ac262364ba08eca86a26f9a2deb482e4", "score": "0.61132956", "text": "int getDamage();", "title": "" }, { "docid": "f8e8f48178ac1d234f73b8021fea727e", "score": "0.6097411", "text": "public float getMaxHP()\r\n {\r\n return this.maxHP;\r\n }", "title": "" }, { "docid": "b6d90268b8e1cba12c8b456ea99673ec", "score": "0.6089083", "text": "float getHealthMin();", "title": "" }, { "docid": "c58ec5cb76c5ac91b39540553a57c99b", "score": "0.6061958", "text": "public ArrayList<AliveTroop> getInRangeEnemies() {\n return inRangeEnemies;\n }", "title": "" }, { "docid": "043a5817827fdcc1571fccbd9c5bd356", "score": "0.6055394", "text": "public ArrayList<Enemy> getEnemies()\r\n\t{\r\n\t\treturn enemies;\r\n\t}", "title": "" }, { "docid": "b700a00f8cea733f68b670a295e76cc1", "score": "0.60422975", "text": "int getMaxHP(){\n return MaxHP;\n }", "title": "" }, { "docid": "491a2b47324a918eaf5e7cc5be2782d1", "score": "0.6037079", "text": "public int getMaxHp()\n {\n return this.maxHp;\n }", "title": "" }, { "docid": "431e3c391c816d8f6cb092fdaa66c4d3", "score": "0.60316217", "text": "public float getCurrentHP()\r\n {\r\n return this.currentHP;\r\n }", "title": "" }, { "docid": "3f9aee0969b99541046d7bee76ec113d", "score": "0.60296357", "text": "public ArrayList<Enemy> getEnemies() {\n\t\t// code to get enemies\n\t\treturn enemies;\n\t}", "title": "" }, { "docid": "b4e57c68e50895c9458ccea60c29ee21", "score": "0.6027566", "text": "public int getDamage() {\r\n return damage;\r\n }", "title": "" } ]
67a94ca3f15f47062553d1105f37d2b3
prepares the input for reading. Within this method you can open streams, database connections etc.
[ { "docid": "85bb437086d0fe07b33f19d2afa2d838", "score": "0.0", "text": "public void open();", "title": "" } ]
[ { "docid": "8025412521e148560182810550dd3aa5", "score": "0.63481593", "text": "public void setInput(Reader input)\n\t{\n\t\tthis.input = input;\n\t}", "title": "" }, { "docid": "4cb0b19885e1b770b2f4f08b62b76080", "score": "0.6295612", "text": "private void setInput(@NonNull InputStream in) {\n mIn = Objects.requireNonNull(in);\n mBufferPos = 0;\n mBufferLim = 0;\n mStringRefCount = 0;\n }", "title": "" }, { "docid": "311314771421d4f73dede19ba2a536e4", "score": "0.62227017", "text": "private void CreateInputSream() {\n\t\tentrada = null;\n\t\ttry {\n\t\t\tentrada = cliente.getInputStream();\n\t\t\tflujoEntrada = new DataInputStream(entrada);\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "title": "" }, { "docid": "c59adedfc4f3642a2e5ae1a59532022c", "score": "0.6021468", "text": "public void setInput(BufferedReader input) {\n\t\tthis.input = input;\n\t}", "title": "" }, { "docid": "614062842e0f570d97657308b242b946", "score": "0.5957561", "text": "private static String readInput() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "caf1e9d48cf9950438c4908b797d3287", "score": "0.59555805", "text": "@Override\n\tpublic void setIn(InputStream inStream) {\n\t\tlocalStdin.set(inStream);\n\t}", "title": "" }, { "docid": "edfa22bb10f1471f2539f81e4da5e650", "score": "0.59541935", "text": "public void beginRead() {\n \t\t// override on some subclasses\n \t\tinitializing = true;\n \t}", "title": "" }, { "docid": "738034db221319e162872cdf41f7032f", "score": "0.5938437", "text": "private void openInputFile() {\r\n try { \r\n this.input = new BufferedReader(new FileReader(this.inFile)); \r\n }catch (IOException e) {\r\n System.out.println(\"[ERROR] Invalid input file \\\"\" + this.inFile + \"\\\"!\\n\" + e);\r\n System.exit(0);\r\n } \r\n }", "title": "" }, { "docid": "967670c513e07081218bd99291e55ca9", "score": "0.5932824", "text": "private void input() {\n\t\treadStopWords();\n\t\treadWords();\n\t\tsortTerms();\n\t}", "title": "" }, { "docid": "2a0f6e1b0de2929a15df7754a22caf9b", "score": "0.5896947", "text": "public void setBeforeRun() {\n\t\tinFromUser = new BufferedReader(new InputStreamReader(System.in));\n\t}", "title": "" }, { "docid": "8b3c5c84c4258f74eb2ec6a3f4ff51df", "score": "0.5895574", "text": "protected final void read() {\n \t\tinitialize( false );\n \t}", "title": "" }, { "docid": "049746a0c1b48991ff07d3b58bf3e32f", "score": "0.58806044", "text": "static void init(InputStream input) {\n reader = new BufferedReader(new InputStreamReader(input));\n tokenizer = new StringTokenizer(\"\");\n currentLine = \"\";\n }", "title": "" }, { "docid": "b0d2b673b6d577975df2a22193fe92c7", "score": "0.5878756", "text": "protected static void limparBuffer() {\n\t\tscanner = new Scanner(System.in);\n\t}", "title": "" }, { "docid": "624755b666016d314ad066d88577ad3b", "score": "0.5851397", "text": "private InputReader() {\r\n keyboard = new Scanner(System.in);\r\n }", "title": "" }, { "docid": "0887201b759fb5ed820ab85da72afde3", "score": "0.58386654", "text": "public void setInput(java.io.InputStream in) {\n instream = in;\n }", "title": "" }, { "docid": "0e70497f841f762b150be7495c0ffa02", "score": "0.5746948", "text": "public void setReader(Reader _in) {\n\t\trdr = new BufferedReader(_in); \n\t}", "title": "" }, { "docid": "fbfe1417d295d24a94457cd94f14546a", "score": "0.5744702", "text": "public synchronized void setInputStream(InputStream is) {\n\t\tbr = new BufferedReader(new InputStreamReader(is));\n\t\tinit();\n\t}", "title": "" }, { "docid": "91488ed75e3559b757d7399febb7f62c", "score": "0.57169086", "text": "protected abstract void readPrepare();", "title": "" }, { "docid": "060710e3077bcda20de725aa67e08c1e", "score": "0.56836784", "text": "public void inputStarted() {\n\n\t}", "title": "" }, { "docid": "04825e6430dfe16039e0544925d66160", "score": "0.5657898", "text": "@Override\n\tprotected void readInput() throws IOException {\n\t\t// TODO Auto-generated method stub\n\t\tthis.readProbability();\t\t// Read probability distribution\t\n\t\tthis.setPopulationRate();// Read populationRate\n\t\tthis.setCounters(); // Read counterSize and quantities\t\t\n\t}", "title": "" }, { "docid": "8a844c0c9e5d85d5cba1a26e080fbb30", "score": "0.5653362", "text": "public void openForInput () \n throws IOException {\n dataFile.openForInput ();\n }", "title": "" }, { "docid": "9574a51425bcec088b91c44ebc31b337", "score": "0.5640755", "text": "protected final LineRawReader getInput() {\n return input;\n }", "title": "" }, { "docid": "723177700d2604b8812494a2a3c78c01", "score": "0.5604799", "text": "@Override\r\n\tpublic void initialize(InputSplit is, TaskAttemptContext tac)\r\n\t\t\tthrows IOException, InterruptedException {\n\t\treader.initialize(is, tac);\r\n\t}", "title": "" }, { "docid": "d3c409d97c21d762ed56a9663db7049b", "score": "0.5583226", "text": "public void _read(InputStream is)\r\n {\r\n resource_state = ProcessorHelper.read(is);\r\n }", "title": "" }, { "docid": "cbdbe7ed1243c918fc58d89b452b4078", "score": "0.5550202", "text": "protected void beginStream() {\n\t\ttry {\n\t\t\titeration.acquire();\n\t\t} catch (InterruptedException e) {\n\t\t\tthrow new RuntimeException(e);\n\t\t}\n\t}", "title": "" }, { "docid": "405fd2c1014d579513bbf126ec5b7bed", "score": "0.5515365", "text": "public IsisIsoStreamReader(IsisIsoInputStream input) {\r\n this(input, null);\r\n firstRecord_ = true;\r\n }", "title": "" }, { "docid": "7dd483e2a3e99972c3ba2a8cf1319472", "score": "0.54926664", "text": "private void setUpStreams() {\n try {\n output = new PrintWriter(this.myConnection.getOutputStream());\n input = new BufferedReader(\n new InputStreamReader(this.myConnection.getInputStream()));\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "b7130234bf73a2c2f94ceba0bc8b795e", "score": "0.54897434", "text": "static void init(InputStream input) {\n reader = new BufferedReader(\n new InputStreamReader(input) );\n tokenizer = new StringTokenizer(\"\");\n }", "title": "" }, { "docid": "1689c2a6172ae93ed72c6ff4b6f32ad1", "score": "0.5483342", "text": "static void init(InputStream input) {\n reader = new BufferedReader(new InputStreamReader(input));\n tokenizer = new StringTokenizer(\"\");\n }", "title": "" }, { "docid": "6eae3f17268c5dcb727c20120a1d57e2", "score": "0.5480989", "text": "static void init(InputStream input) {\n reader = new BufferedReader(\n new InputStreamReader(input) );\n tokenizer = new StringTokenizer(\"\");\n }", "title": "" }, { "docid": "0fc20355a304c92b19caf1a4c5b1c3b6", "score": "0.5477999", "text": "static void init(InputStream input) {\r\n reader = new BufferedReader(new InputStreamReader(input));\r\n tokenizer = new StringTokenizer(\"\");\r\n }", "title": "" }, { "docid": "118c9cbb10588dd8409ccee67a054682", "score": "0.54717416", "text": "static void init(InputStream input) {\r\n reader = new BufferedReader(\r\n new InputStreamReader(input) );\r\n tokenizer = new StringTokenizer(\"\");\r\n }", "title": "" }, { "docid": "118c9cbb10588dd8409ccee67a054682", "score": "0.54717416", "text": "static void init(InputStream input) {\r\n reader = new BufferedReader(\r\n new InputStreamReader(input) );\r\n tokenizer = new StringTokenizer(\"\");\r\n }", "title": "" }, { "docid": "118c9cbb10588dd8409ccee67a054682", "score": "0.54717416", "text": "static void init(InputStream input) {\r\n reader = new BufferedReader(\r\n new InputStreamReader(input) );\r\n tokenizer = new StringTokenizer(\"\");\r\n }", "title": "" }, { "docid": "118c9cbb10588dd8409ccee67a054682", "score": "0.54717416", "text": "static void init(InputStream input) {\r\n reader = new BufferedReader(\r\n new InputStreamReader(input) );\r\n tokenizer = new StringTokenizer(\"\");\r\n }", "title": "" }, { "docid": "d24900eabf56ada6c9f989cd74b3ed95", "score": "0.5471635", "text": "public SimpleInput () {\n super(new BufferedReader(\n new InputStreamReader(System.in)));\n }", "title": "" }, { "docid": "bb89beb8996fc6818d51793a8070c507", "score": "0.5462504", "text": "static void init(InputStream input) {\n reader = new BufferedReader(\n new InputStreamReader(input));\n tokenizer = new StringTokenizer(\"\");\n }", "title": "" }, { "docid": "75816b0b6238167b45829bd3ae9a0bb4", "score": "0.5457318", "text": "public void start() throws IOException {\n boolean keepGoing;\n\n do {\n String line = mIn.readLine();\n if (line == null) {\n // End of file.\n return;\n }\n\n keepGoing = parseLine(line);\n } while (keepGoing);\n }", "title": "" }, { "docid": "fba612b7c8528669358290f3d4897e7b", "score": "0.5453531", "text": "public void setIn(BufferedReader in) {\r\n this.in = in;\r\n }", "title": "" }, { "docid": "22b33493084431f3cd605be9c93de9d9", "score": "0.5452684", "text": "static void init(InputStream input) {\n reader = new BufferedReader(\n new InputStreamReader(input) );\n tokenizer = new StringTokenizer(\"\");\n }", "title": "" }, { "docid": "22b33493084431f3cd605be9c93de9d9", "score": "0.5452684", "text": "static void init(InputStream input) {\n reader = new BufferedReader(\n new InputStreamReader(input) );\n tokenizer = new StringTokenizer(\"\");\n }", "title": "" }, { "docid": "cf0bd65b9383ba3d93a92d78938ca694", "score": "0.5447234", "text": "public interface InputStreamGenerator\n{\n\t/**\n\t * Return a java.io.InputStream representing a database file. This stream must be\n\t * pointing to the beginning of the file whenever this method is called. \n\t */\n\tInputStream read();\n}", "title": "" }, { "docid": "0605c92c7f0ce21b0747ccb50508309d", "score": "0.5447143", "text": "@Override\n\tpublic void inputStarted() {\n\t\t\n\t}", "title": "" }, { "docid": "75330904ca983b8a42d38aa756146ba5", "score": "0.54444003", "text": "private void initIO(){\n\t\ttry {\n\t\t\tdis = new DataInputStream(this.socket.getInputStream());\n\t\t\tdos = new DataOutputStream(this.socket.getOutputStream());\n\t\t\trt = new ReaderThread(this);\n\t\t\trt.start();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "title": "" }, { "docid": "112cc8b1c7cb7e69e3514e84a4d5f03f", "score": "0.5431797", "text": "public void incompleteStream()\r\n {\r\n // Do not allow changing the settings after read has started\r\n if (in != null) {\r\n throw new FitRuntimeException(\"Can't set incompleteStream option after Decode started!\");\r\n }\r\n // Don't raise an error if eof is encountered during decode,\r\n // caller may try to resume if more bytes arrive\r\n this.instreamIsComplete = false;\r\n }", "title": "" }, { "docid": "2b47b39613a91100c97972ccf051de34", "score": "0.543096", "text": "protected void readInputStream(NailgunRequest request) {\n\t\ttry {\n\t\t\tInputStream is = request.getInputStream(5000, TimeUnit.MILLISECONDS);\n\t\t\tbyte[] buff = new byte[1024];\n\t\t\tByteArrayOutputStream baos = new ByteArrayOutputStream();\n\t\t\tint bytesRead = -1;\n\t\t\tint totalBytesRead = 0;\n\t\t\twhile((bytesRead = is.read(buff))!=-1) {\n\t\t\t\tbaos.write(buff, 0, bytesRead);\n\t\t\t\ttotalBytesRead += bytesRead;\n\t\t\t}\n\t\t\tlog.info(\"STDIN (\" + totalBytesRead + \") [\" + baos.toString() + \"]\");\n\t\t\trequest.out(\"Content:\" + baos.toString() + \"\\n\");\n\t\t} catch (Exception e) {\n\t\t\tlog.error(\"Failed to read input stream\", e);\n\t\t}\n\t}", "title": "" }, { "docid": "bf87295f54f06e77669fe800f6694615", "score": "0.54297197", "text": "public void requestResume()\n {\n if(this.agent != null)\n {\n this.agent.getInputOutput().asynchronousInputReady();\n }\n }", "title": "" }, { "docid": "159288a9cd18bfeb8814f109e52be066", "score": "0.5400548", "text": "public ReadIn(){\r\n \r\n }", "title": "" }, { "docid": "41e39b95e1a2610bda05d92c4006cf82", "score": "0.5392968", "text": "static void init(InputStream input) {\r\n reader = new BufferedReader(new InputStreamReader(input));\r\n tok = new StringTokenizer(\"\");\r\n }", "title": "" }, { "docid": "bccd1f5a11308aed65b16df7297f4c9a", "score": "0.53922015", "text": "protected synchronized final InputStream getInputStream() { return in; }", "title": "" }, { "docid": "86ee130a962cd4d751096ffeb47d5fdf", "score": "0.53918713", "text": "public ASN1InputStream(InputStream input, boolean lazyEvaluate)\n {\n this(input, StreamUtil.findLimit(input), lazyEvaluate);\n }", "title": "" }, { "docid": "1d18146421607499fcbbc2c5f0a566d3", "score": "0.5383596", "text": "public void rewind() {\n first_update_error_occured = false;\n var_name_list = null;\n var_name = null;\n var_number = 0;\n updating_unsigned = false;\n next_default = null;\n msg_size = 0;\n raw_data_size = 0;\n bytes_in_input_stream = 0;\n bytes_in_input_stream_known = false;\n if (null == output_string_buffer) {\n output_string_buffer = new StringBuffer();\n }\n output_string_buffer.setLength(0);\n input_string = \"\";\n input_stream = null;\n input_string_tokenizer = null;\n output_stream = null;\n stat_msg_updated = false;\n cmd_msg_updated = false;\n error_in_update = false;\n error_in_update_string = null;\n }", "title": "" }, { "docid": "41bb0318d1c060ce53d65a93dbe4531b", "score": "0.5382473", "text": "private static void initializeVariables()\n {\n try {\n isr = new InputStreamReader(System.in,\"UTF-8\");\n input = input = new BufferedReader(isr);\n } catch (UnsupportedEncodingException ex) {\n Logger.getLogger(Lue.class.getName()).log(Level.SEVERE, ex.getLocalizedMessage());\n }\n }", "title": "" }, { "docid": "0656b6602e13de7cf85074545a270210", "score": "0.5377987", "text": "public ShieldedInputStream(InputStream input) {\r\n\t\tthis.input = input;\r\n\t}", "title": "" }, { "docid": "80d2d3dee76d49b0ed0b5e6515d04e6a", "score": "0.5365743", "text": "static void init(InputStream input) {\n\t reader = new BufferedReader(\n\t new InputStreamReader(input) );\n\t tokenizer = new StringTokenizer(\"\");\n\t }", "title": "" }, { "docid": "2e33fea6624393cf686b78bc08fc876d", "score": "0.5362711", "text": "public CommandReader() {\n\t\tkeyboard = new java.util.Scanner(System.in);\n\t}", "title": "" }, { "docid": "ee3260029d2bfa37521e3547bc80a5d9", "score": "0.53591704", "text": "InputStream getInputStoreStream() throws ProviderStreamGenerationException;", "title": "" }, { "docid": "2552834cd4b8b1d888d87f4f4e8ffdea", "score": "0.53554875", "text": "private void setInputStreamAndTryGameSetup(final String input) {\n\n game = new Game(new ByteArrayInputStream(input.getBytes()));\n try {\n // Set-up game\n game.setup();\n\n // Get map, players, and set positions before\n map = game.getMap();\n players = game.getPlayers();\n defStartPos = new Position[players.length];\n for (int i = 0; i < players.length; i++) {\n defStartPos[i] = players[i].getPosition();\n }\n } catch (GameWasNotInitialized e1) {\n fail(\"Game was not initialized.\");\n } catch (SizeOfMapWasNotSet e2) {\n fail(\"Size of map was not set.\");\n } catch (PositionIsOutOfRange e3) {\n fail(\"A position was out of range.\");\n } catch (NoSuchElementException e4) {\n fail(\"Not enough valid input was present.\");\n }\n }", "title": "" }, { "docid": "aa478af1aeb030c988ee3a18225b77e0", "score": "0.5335703", "text": "public static void prebeginInput() {\n\t\t\tSystem.out.print(\"User> \");\n\t\t\tinput = scanStr.nextLine().toLowerCase(); //input holds the value of the players input\n\t\t\t\n\t\t\tif (input.equals(\"start\")) {\n\t\t\t\tstartGame(); \n\t\t\t}\n\t\t\telse if (input.equals(\"quit\")) {\n\t\t\t\tterminate();\n\t\t\t}\n\t\t\telse {\n\t\t\t\tSystem.out.println(\"Command not recognized! Start or quit.\" );\n\t\t\t\tprebeginInput();\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "bbc55ae41289ad0ddd4d3061919fac56", "score": "0.53276485", "text": "public void Phase1()\n {\n System.out.println(\"Phase 1: Gather input\");\n System.out.println(\"---------------------\");\n\n this.InputFileExists();\n\n if(inputProvided)\n {\n ReadFileToArray();\n }\n else\n {\n RequestData();\n }\n\n System.out.println(\"Phase 1 Complete.\");\n }", "title": "" }, { "docid": "84d4b378eb3b3f4521158cf248b0b1e5", "score": "0.53247684", "text": "public static void waitForInput() {\r\n\t\tinput.nextLine();\r\n\t}", "title": "" }, { "docid": "7b727ce41642fdb1e173bf9d978d6772", "score": "0.53203183", "text": "public void prompt() {\n if (isPromptOnError()) {\n log.error( \"resume.abort\" );// localize?\n try {\n while (true) {\n switch (System.in.read()) {\n case 'a':\n case 'A':\n System.exit( -1 );\n return;\n case 'r':\n case 'R':\n return;\n case 'x':\n case 'X':\n throw new AssertionError( \"user abort\" );\n default:\n }\n }\n } catch (IOException e) {\n log.warn( \"Error reading from standard input.\" );\n }\n }\n }", "title": "" }, { "docid": "e261e931d979f62ae471315e94bef97b", "score": "0.5319343", "text": "protected void waitOnNewInput()\n \t\tthrows IOException {\n \t\tthis.in.close();\n \n \t\t// peek at the new stream\n \t\tboolean goodUrl = false;\n \n \t\twhile (!goodUrl) {\n \t\t\tURL newUrl = new URL( getLogURI( connection, log ) + \"/\" + range + getFormatQuery() );\n \n \t\t\ttry {\n \t\t\t\tgoodUrl = urlPeek(newUrl);\n \t\t\t}\n \t\t\tcatch (Exception e) {\n \t\t\t\t// failed to get a new good url, try again next time\n \t\t\t}\n \n \t\t\tif (goodUrl) {\n \t\t\t\tthis.in = openInputStream( connection, newUrl );\n \t\t\t\treturn;\n \t\t\t}\n \n \t\t\ttry {\n \t\t\t\tThread.sleep(OUTPUT_MONITOR_DELAY);\n \t\t\t}\n \t\t\tcatch (InterruptedException e) {\n \t\t\t}\n \t\t}\n \t}", "title": "" }, { "docid": "ea136a21907f00e249b5cef1fbb44dae", "score": "0.53003293", "text": "void advance() {\n // Read the line in\n rawLine = inputFile.nextLine();\n // Clean it up\n cleanLine();\n // Break it down\n parse();\n }", "title": "" }, { "docid": "a54b633f74ada55175df5e82e5b0879c", "score": "0.5294866", "text": "public Reader getIn();", "title": "" }, { "docid": "73e3cae968e5a55247d818cc3107a779", "score": "0.52903533", "text": "public LineInput(InputStream in) {\n this(in, 0);\n }", "title": "" }, { "docid": "4fab7b9b6cac82adc2b96cc6c307c45e", "score": "0.52893776", "text": "protected void clearInputStream() throws SQLException {\n/* */ try {\n/* */ int len;\n/* 892 */ while ((len = this.mysqlInput.available()) > 0 && this.mysqlInput.skip(len) > 0L);\n/* */ \n/* */ }\n/* 895 */ catch (IOException ioEx) {\n/* 896 */ throw SQLError.createCommunicationsException(this.connection, this.lastPacketSentTimeMs, this.lastPacketReceivedTimeMs, ioEx, getExceptionInterceptor());\n/* */ } \n/* */ }", "title": "" }, { "docid": "69ac3e37c9e08f473545f7776052f6d0", "score": "0.5264461", "text": "private void setupReads() {\n final Answer<Object> answer = i -> mStore.get(mPosition++);\n when(mParcel.readByte()).thenAnswer(answer);\n when(mParcel.readInt()).thenAnswer(answer);\n when(mParcel.readString()).thenAnswer(answer);\n when(mParcel.readParcelable(any(ClassLoader.class))).then(answer);\n when(mParcel.readBoolean()).thenAnswer(answer);\n when(mParcel.readSerializable()).thenAnswer(answer);\n when(mParcel.readLong()).thenAnswer(answer);\n // when(mParcel.readFloat()).thenAnswer(answer);\n // when(mParcel.readDouble()).thenAnswer(answer);\n }", "title": "" }, { "docid": "ed219b7a5d393eb201bd35c5c76f4d55", "score": "0.52631754", "text": "private void readObject(ObjectInputStream inputStream)\n throws IOException, ClassNotFoundException\n {\n inputStream.defaultReadObject();\n\n // avoid NPE because of Tomcat de-serialization of sessions\n if (Torque.isInit())\n {\n startQuery(pageSize);\n }\n }", "title": "" }, { "docid": "492b66af153db498f5eb9fd80f15989e", "score": "0.52538234", "text": "@BeforeClass\n public static void createInput() throws IOException {\n input = null;\n }", "title": "" }, { "docid": "7c229aebb49ebdf1f1a3a40ea9fe09db", "score": "0.5228571", "text": "@Override\n\tpublic void process(InputStream in) throws IOException {\n\t\tthis.document=PDDocument.load(in);\n\t}", "title": "" }, { "docid": "f3aac4d59e46dd24a302b882717a3dd5", "score": "0.5226733", "text": "public MockInStream(String input) {\n this.input = input;\n this.i = 0;\n this.charMode = true;\n }", "title": "" }, { "docid": "16536a28ee4337105b697c853386705c", "score": "0.5196731", "text": "protected void resume(final WorkQueueFrontier frontier) throws IOException {\r\n }", "title": "" }, { "docid": "3d10abad260e103e74bb53a32776c1b1", "score": "0.51821643", "text": "void readFrom(BufferedSource in) throws IOException;", "title": "" }, { "docid": "ac54b7c3aa0a297fff5c8904bbef319b", "score": "0.5181608", "text": "public static void readInput() {\n\t\tt1 = new Integer(readLine());\r\n\t\tt2 = new Integer(readLine());\r\n\t}", "title": "" }, { "docid": "68251c1a14c5dfb4d3c78065a87e2ecc", "score": "0.5174809", "text": "private void loadFromStdIn(InputStream stdin) throws SortException {\n\t\tif (stdin == null) {\n\t\t\tthrow new SortException(ERR_STDIN_NULL);\n\t\t}\n\t\tVector<String> linesVector;\n\t\ttry {\n\t\t\tlinesVector = importFile(stdin);\n\t\t} catch (IOException e) {\n\t\t\tthrow new SortException(ERR_READ);\n\t\t}\n\t\tlines = linesVector.toArray(new String[linesVector.size()]);\n\t}", "title": "" }, { "docid": "1b4ee68293ca66d62c4a17b4b5f36ef6", "score": "0.51745677", "text": "@Override\n public abstract void inputHandling();", "title": "" }, { "docid": "935c112a3608ff868365b54ad9fb23c7", "score": "0.5167863", "text": "public void streamIn(Scanner input) {\n this.deadline = input.nextInt();\n this.requiredTime = input.nextInt();\n String tempInfo = input.nextLine();\n this.information = tempInfo.substring(1, tempInfo.length());\n }", "title": "" }, { "docid": "09e496e4f2ab5d4a83684ff2ba0d70e0", "score": "0.5166506", "text": "@Override\n\tprotected InputStream getInitialContents() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "2020b52cac54f7d3cbc8ab02b1089a20", "score": "0.5164251", "text": "public void setInput(String filename) throws java.io.FileNotFoundException {\n instream = new java.io.FileInputStream(new File(filename));\n }", "title": "" }, { "docid": "e001ab76d45ff226bc49a89e0019baf6", "score": "0.5164216", "text": "private void readRequest(\n InputStream in)\n throws IOException\n {\n int ch = 0;\n int lastCh = 0;\n while ((ch = in.read()) >= 0 && (ch != '\\n' && lastCh != '\\n'))\n {\n if (ch != '\\r')\n {\n lastCh = ch;\n }\n }\n }", "title": "" }, { "docid": "58cf411b57207f9650ac9bb3d866d32a", "score": "0.51626533", "text": "TemplateLoaderStage(Pipe input) {\n\t\tthis.input = new RingInputStream(input);\n\t}", "title": "" }, { "docid": "6c8e13bfbb50cfce273fa13b056888b9", "score": "0.51603514", "text": "@Bean\n public InputStream stdin() { return System.in; }", "title": "" }, { "docid": "5e9cb8730427e1b8bc7a60ed125615db", "score": "0.51525915", "text": "SeedLexer(java.io.InputStream in) {\r\n this(new java.io.InputStreamReader(in));\r\n }", "title": "" }, { "docid": "a4dcdf25f5a5e4c38855a6eb45f4a5e2", "score": "0.515239", "text": "@Override\n protected void doInitInputLocation(WstxInputData reader)\n {\n reader.mCurrInputProcessed = mContentStart.getCharacterOffset();\n reader.mCurrInputRow = mContentStart.getLineNumber();\n /* 13-Apr-2005, TSa: Since column offsets reported by Location\n * objects are 1-based, but internally we use 0-based counts,\n * need to offset this start by 1 to begin with.\n */\n reader.mCurrInputRowStart = -mContentStart.getColumnNumber() + 1;\n }", "title": "" }, { "docid": "8a34ed68366f7692ffc3f73a3a340831", "score": "0.51475745", "text": "private static void pump(InputStream in, OutputStream out) throws IOException {\n if (in == null) throw new IOException(\"Input stream is null\");\n if (out == null) throw new IOException(\"Output stream is null\");\n try {\n try {\n byte[] buffer = new byte[4096];\n for (; ; ) {\n int bytes = in.read(buffer);\n if (bytes < 0) {\n break;\n }\n out.write(buffer, 0, bytes);\n }\n } finally {\n in.close();\n }\n } finally {\n out.close();\n }\n }", "title": "" }, { "docid": "80584e8b6c305ab5a5131da4b0772f05", "score": "0.5144867", "text": "abstract public InputStream openInputStream() throws IOException;", "title": "" }, { "docid": "a85a494bbd8ad3cd47b67564d4413cf8", "score": "0.5143882", "text": "public BufferInputStream() {\n super();\n }", "title": "" }, { "docid": "cde4c60fe24255a9f866e6c9aa1e3305", "score": "0.51376426", "text": "abstract protected void parseInput() throws IOException;", "title": "" }, { "docid": "5429f690d37b357850b7f7830ea560db", "score": "0.51359755", "text": "public abstract void read(InputBuffer in);", "title": "" }, { "docid": "cfb5223df986d5efe1514fc8091dc88c", "score": "0.51181567", "text": "protected static void advance()\n throws java.io.IOException\n { next_char = System.in.read(); }", "title": "" }, { "docid": "bd97a6795fb4e9d6e29e3ea4eea7272a", "score": "0.51162994", "text": "public void streamIn(Scanner input) {\n this.deadline = input.nextInt();\n this.requiredTime = input.nextInt();\n this.information = input.nextLine().substring(1);\n\n }", "title": "" }, { "docid": "51483805445ebef39cfbaf91e54ff23d", "score": "0.5113199", "text": "public ChildProcessParameters setInputStream(ByteReadStream inputStream);", "title": "" }, { "docid": "39b8e7811dd275afff6ec5fa25855290", "score": "0.51023114", "text": "@Override\n protected void _closeInput() throws IOException\n {\n if (_inputStream != null) {\n if (_ioContext.isResourceManaged() || isEnabled(Feature.AUTO_CLOSE_SOURCE)) {\n _inputStream.close();\n }\n _inputStream = null;\n }\n }", "title": "" }, { "docid": "f5709235a52a3138cb5cca52f287f6c6", "score": "0.5100572", "text": "public void readData() {\n parseInputFile();\n }", "title": "" }, { "docid": "b1b12e3dfc2c32e1dc2d91005e62c69f", "score": "0.50941133", "text": "public void setInput (Reader reader)\r\n {\r\n _yyIs = reader;\r\n }", "title": "" }, { "docid": "b833619a84a4ef0917afdfc84d5d93f7", "score": "0.50930655", "text": "protected void streamInit(InputStream str) throws FitsException {\n str = CompressionManager.decompress(str);\n if (str instanceof ArrayDataInput) {\n this.dataStr = (ArrayDataInput) str;\n } else {\n // Use efficient blocking for input.\n this.dataStr = new BufferedDataInputStream(str);\n }\n }", "title": "" }, { "docid": "75bcff2440caccb45e464d14464f2133", "score": "0.50922465", "text": "public ASN1InputStream(InputStream input, int limit, boolean lazyEvaluate)\n {\n this(input, limit, lazyEvaluate, new byte[11][]);\n }", "title": "" }, { "docid": "80c2334c4d767408b76f6403ac62eea0", "score": "0.5086677", "text": "public static void driveInput1(){\n\n Scanner in = new Scanner(System.in);\n\n String n = in .nextLine();\n\n input1(n);\n\n while ( in.hasNextLine()) {\n\n n = in .nextLine();\n\n input1(n);\n\n }\n }", "title": "" }, { "docid": "de156faeda87513821ab3572d84eb863", "score": "0.5086531", "text": "void readInputFile(FileParserContext ctx) throws IOException {\n FileReader fr = new FileReader(ctx.file);\n BufferedReader reader = new BufferedReader(fr);\n String line;\n\n /* Skip the first line. It's for human consumption only */\n line = reader.readLine();\n //line = reader.readLine(); /* need revisit */\n\n // Read all lines in the input file\n //\n while ((line = reader.readLine()) != null) {\n readInputLine(line, ctx);\n }\n }", "title": "" }, { "docid": "608211a3360a70762ac6eb3fcc3405ce", "score": "0.5085502", "text": "public interface AlgoInput<T> {\r\n \r\n /**\r\n * prepares the input for reading. \r\n * Within this method you can open streams, database connections etc.\r\n */\r\n public void open();\r\n \r\n /**\r\n * use this method to release all resources used during the reading \r\n * of the input lines\r\n */\r\n public void close();\r\n \r\n /**\r\n * <p>retrieves the next piece of data</p>\r\n * \r\n * @return the data object\r\n */\r\n public T next();\r\n \r\n /**\r\n * returns true if this input data more data left to return\r\n * \r\n * @return true if the input has more rows to return\r\n */\r\n public boolean hasNext();\r\n}", "title": "" } ]
d7ef775b2d1f7fdb2fdd4ec625470aee
Permutes the rows of matrix m, i.e. multiplying the matrix from the left with a permutation matrix represented by this (in new matrix). The length of this permutation has to be equal to the row number of matrix m.
[ { "docid": "4e1d402dee24852c660f660b3d17d5a9", "score": "0.50255007", "text": "public Matrix mul(Matrix m) {\n return mul(m, Matrix.create(m.rows(), m.cols()));\n }", "title": "" } ]
[ { "docid": "9bbacb945985f28fdbabda4c2350ab30", "score": "0.5963335", "text": "public ComplexMatrix mpower(int p){\n\tComplex [][] mat = eye(rows).matrix;\n\tfor (int c=0;c<p ;c++ ) {\n\t\tmat=((new ComplexMatrix(mat,rows,cols)).dotProduct(new ComplexMatrix (matrix,rows,cols))).matrix;\n\t}\n\treturn new ComplexMatrix(mat,rows,cols);\n}", "title": "" }, { "docid": "313164978aa009fd2b631fba5f015045", "score": "0.56356585", "text": "public static void findPermutedRows(int n, int m, int[][] mat, int row) {\n\t\tSet<Integer> row_elements = new HashSet<Integer>();\n\t\t\n\t\tfor (int i = 0; i < m; i++)\n\t\t\trow_elements.add(mat[row][i]);\n\t\t\n\t\tfor (int i = 0; i < n; i++)\n\t\t\tif (i != row) {\n\t\t\t\tboolean good = true;\n\t\t\t\tfor (int j = 0; j < m; j++)\n\t\t\t\t\tif (!row_elements.contains(mat[i][j])) {\n\t\t\t\t\t\tgood = false;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\tif (good)\n\t\t\t\t\tSystem.out.println(i);\n\t\t\t}\n\t}", "title": "" }, { "docid": "9c46d9bcbe14761c581786866d56bf50", "score": "0.55454546", "text": "public void permuta(int i){\r\n double[] x = new double[mat.length];\r\n int aux = 0 ;\r\n for(int j = 0; j < mat.length; j++){\r\n x[j] = mat[ind][j];\r\n mat[ind][j] = mat[i][j];\r\n mat[i][j] = x[j];\r\n }\r\n aux = p[i];\r\n p[i] = p[ind];\r\n p[ind] = aux;\r\n }", "title": "" }, { "docid": "f417a86cce8e91ecccd6e2c0cbfa50d5", "score": "0.5516598", "text": "Matrix mult(Matrix M) {\n if (this.getSize() != M.getSize()) {\n throw new RuntimeException(\n \"Matrix Error: mult() called on differently sized Matrices\");\n }\n\n Matrix C = new Matrix(getSize());\n Matrix T = M.transpose();\n for (int i = 0; i < n; i++) {\n if (this.row[i].length() != 0) { // if all 0, mult is 0\n for (int j = 0; j < n; j++) {\n if (T.row[j].length() != 0) {\n double d = dot(this.row[i], T.row[j]); // row of this and col of M\n if (d != 0) {\n C.changeEntry(i+1, j+1, d);\n }\n }\n }\n }\n }\n\n return C;\n }", "title": "" }, { "docid": "a66b08095002c7806ceb6832d186d5da", "score": "0.54950374", "text": "public ComplexMatrix cummulativeRowProd(){\n\tComplex [][] mat=new Complex[rows][cols];\n\tfor (int r=0;r<rows ;r++ ) {\n\t\tfor (int c=1;c<cols ;c++ ) {mat[r][0]=matrix[r][0];\n\t\t\tmat[r][c]=matrix[r][c].times(matrix[r][c-1]);\n\t\t}\n\t}\n\treturn new ComplexMatrix(mat,rows,cols);\n}", "title": "" }, { "docid": "7c98e522ea3eebe92beec2b0b0c600f3", "score": "0.5440046", "text": "public static double[][] rowReduce(double[][] matrix) {\n\t\tint pivotNum = 0; // index where currently examining\n\n\t\tint row = matrix.length;\n\n\t\tint col = matrix[0].length;\n\n\t\tint rowOn; // row currently examining\n\n\t\tboolean end = false;\n\n\t\tfor (int r = 0; r < row && !end; r++) {\n\t\t\t// print(m); //continuously print out the steps to row-reduce\n\n\t\t\t// System.out.println();\n\n\t\t\tif (col <= pivotNum) // When checking the elements in row, it\n\t\t\t\t\t\t\t\t\t// reached the end\n\t\t\t{\n\t\t\t\tend = true;\n\t\t\t\tbreak; // terminate loop\n\t\t\t}\n\n\t\t\trowOn = r;\n\n\t\t\twhile (!end && matrix[rowOn][pivotNum] == 0) // Checking the numbers\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// going down the\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// column, if that\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// number is 0,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// continue down\n\t\t\t{\n\t\t\t\trowOn++; // Increment rowOn if that element is 0\n\n\t\t\t\tif (row == rowOn) // hit the end of the matrix's column\n\t\t\t\t{\n\t\t\t\t\trowOn = r;\n\n\t\t\t\t\tpivotNum++; // Allows the matrix to check the next column\n\n\t\t\t\t\tif (col == pivotNum) // We know that max number of pivots is\n\t\t\t\t\t\t\t\t\t\t\t// max number of row. m[0].length is\n\t\t\t\t\t\t\t\t\t\t\t// really how many rows there are\n\t\t\t\t\t\t\t\t\t\t\t// when you think about it.This\n\t\t\t\t\t\t\t\t\t\t\t// basically tells us when we hit\n\t\t\t\t\t\t\t\t\t\t\t// the end of the matrix.\n\t\t\t\t\t{\n\t\t\t\t\t\tend = true;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (!end && matrix[rowOn][pivotNum] != 0) // goes here if that index\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t// from above isn't 0\n\t\t\t{\n\t\t\t\tswapRows(matrix, rowOn, r); // First thing it does is try to\n\t\t\t\t\t\t\t\t\t\t\t// swap. Won't affect matrix if it\n\t\t\t\t\t\t\t\t\t\t\t// can't swap anyway (aka \"swap with\n\t\t\t\t\t\t\t\t\t\t\t// itself\")\n\n\t\t\t\tif (matrix[r][pivotNum] != 0) // As long as that element isn't 0\n\t\t\t\t\t\t\t\t\t\t\t\t// ...\n\t\t\t\t{\n\t\t\t\t\tmultiplyRow(matrix, r, (1.0 / matrix[r][pivotNum])); // Multiply\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// CURRENT\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// row\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// by\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// scalar\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// multiple\n\t\t\t\t}\n\n\t\t\t\tfor (rowOn = 0; rowOn < row; rowOn++) // this for loop make\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t// everything else\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t// (except pivot) 0 in\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t// that column\n\t\t\t\t{\n\t\t\t\t\tif (rowOn != r) // if it's not the same row, then add\n\t\t\t\t\t\t\t\t\t// CURRENT row to the other rows\n\t\t\t\t\t{\n\t\t\t\t\t\taddRows(matrix, matrix[rowOn][pivotNum], r, rowOn);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn matrix;\n\t}", "title": "" }, { "docid": "5a732a8cca7ca137dbe25fe03f49af4e", "score": "0.54251075", "text": "public void rotate(int[][] matrix) {\n\n int len = matrix.length;\n\n // tranpose the matrix\n for(int i = 0; i<len; i++){\n for(int j = i; j<len; j++){\n int temp = matrix[i][j];\n matrix[i][j] = matrix[j][i];\n matrix[j][i] = temp;\n }\n }\n\n\n\n // swap the rows horizontally using 2 pointer approach\n\n // outer loop i iterates through all rows\n // inner loop will go through half way - 2 pointer approach\n for(int i = 0; i<len; i++){\n for(int j = 0; j<(len/2); j++){\n int temp = matrix[i][j];\n matrix[i][j] = matrix[i][len-1- j]; // swaps first and last element, n - 1 - j --> is the second pointer where we do length - 1 to get the valid index and do '- j' to get the position. It will be at the same distance from the beginning to the same distance from the end.\n matrix[i][len-1-j] = temp;\n }\n }\n }", "title": "" }, { "docid": "e743f37e107324e4cdd8ac2e5e2fb1fa", "score": "0.54203814", "text": "int permute(int p) {\n int r = wrap(p);\n return _alphabet.toInt(_permutation[r]);\n }", "title": "" }, { "docid": "4bf5f11a1ef7664388aeb3505f62d270", "score": "0.5411956", "text": "public Matrix mul(Matrix m, Matrix result) {\n assert (m != null && result != null && m != result);\n Matrix r = result;\n if (m.rows() == 1 && m.cols() > 1) {\n m = m.T();\n r = result.T();\n }\n final int rows = m.rows(), cols = m.cols();\n assert (length() == rows);\n assert (r.rows() == rows && r.cols() == cols);\n for (int i = 0; i < rows; ++i) {\n int row = get(i);\n for (int j = 0; j < cols; ++j) {\n r.set(i, j, m.get(row,j));\n }\n }\n return result;\n }", "title": "" }, { "docid": "f52db152c23198f4317d4b073cfc120d", "score": "0.5393352", "text": "static void llenarMatriz(int[][] m) {\r\n\t\tfor (int i = 0; i < m.length; i++)\r\n\t\t\tfor (int j = 0; j < m[i].length; j++)\r\n\t\t\t\tm[i][j] = r.nextInt(100);\r\n\r\n\t}", "title": "" }, { "docid": "3a94c3e36c614342ecf365bfdd2ba176", "score": "0.53726023", "text": "public void rotate(int[][] matrix) {\n int m = matrix.length;\n if(m==0) return;\n int x1 = 0;\n int x2 = m-1;\n int tmp = 0;\n \n while(x1<x2){\n int n = x2-x1;\n //[x1,x1][x1,x2] -- [x1,x2][x2,x2]\n for(int i=0;i<n;i++){\n tmp = matrix[x1][x1+i];\n matrix[x1][x1+i] = matrix[x1+i][x2];\n matrix[x1+i][x2] = tmp;\n }\n //[x2,x2][x2,x1]\n for(int i=0;i<n;i++){\n tmp = matrix[x1][x1+i];\n matrix[x1][x1+i] = matrix[x2][x2-i];\n matrix[x2][x2-i] = tmp;\n }\n //[x2,x1][x1,x1]\n for(int i=0;i<n;i++){\n tmp = matrix[x1][x1+i];\n matrix[x1][x1+i] = matrix[x2-i][x1];\n matrix[x2-i][x1] = tmp;\n }\n x1++;\n x2--;\n }\n }", "title": "" }, { "docid": "061ee148d21589f142d136e29ffa91af", "score": "0.5345509", "text": "public Matrice concatLig(Matrice m) {\r\n if (this.nbrCol != m.nbrCol) {\r\n throw new Error(\"nbr cols incompatibles\");\r\n }\r\n Matrice r = new Matrice(this.getNbrLig() + m.getNbrLig(),\r\n this.getNbrCol());\r\n\r\n for (int i = 0; i < this.getNbrLig(); i++) {\r\n for (int j = 0; j < this.getNbrCol(); j++) {\r\n // r.coeffs[i][j] = this.coeffs[i][j];\r\n r.set(i, j, this.get(i, j));\r\n\r\n }\r\n }\r\n for (int i = 0; i < m.getNbrLig(); i++) {\r\n for (int j = 0; j < m.getNbrCol(); j++) {\r\n r.set(this.nbrLig + i, j, this.get(i, j));\r\n\r\n }\r\n }\r\n return r;\r\n\r\n }", "title": "" }, { "docid": "facade78fde8d92f17f6675f0b43806e", "score": "0.53133833", "text": "public static void rotateMatrix() {\r\n\r\n\t\tfor (int i = 0, l = cols-1; i < rows; i++, l--) {\r\n\t\t\tfor (int j = 0, k = 0; j < cols; j++, k++) {\r\n\t\t\t\r\n\t\t\t\trotatedMatrix[k][l] = matrix[i][j];\r\n\t\t\t\t/*\r\n\t\t\t\t * [0][2] = [0][0] ; [1][2] = [0][1] [2][2] = [0][2]\r\n\t\t\t\t */\r\n\t\t\t}\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "f1b79137fb12493c11f4fe758f37bf4f", "score": "0.5288391", "text": "static void permute(int[] num, int start, ArrayList<ArrayList<Integer>> result)\n\t{ \n\t\tif (start >= num.length)\n\t\t{\n\t\t\tArrayList<Integer> item = convertArrayToList(num);\n\t\t\tresult.add(item);\n\t\t}\n\t \n\t\tfor (int j = start; j <= num.length - 1; j++)\n\t\t{\n\t\t\tswap(num, start, j);\n\t\t\tpermute(num, start + 1, result);\n\t\t\tswap(num, start, j);\n\t\t}\n\t}", "title": "" }, { "docid": "e46a7912cae81905cdebe10bcc45082d", "score": "0.52693814", "text": "private int gettransSlicePerm( int pos, int m )\r\n\t{\n\t\tint edges[]= new int[4];\r\n\t\tnum2perm(edges,0,4,pos);\r\n\t\t//do move \t L U F R D B\r\n\t\tif(m==3){\r\n\t\t\tswap( edges, 0,1 );\r\n\t\t}else if(m==2){\r\n\t\t\tswap( edges, 1,2 );\r\n\t\t}else if(m==0){\r\n\t\t\tswap( edges, 2,3 );\r\n\t\t}else if(m==5){\r\n\t\t\tswap( edges, 3,0 );\r\n\t\t}\r\n\t\t//convert back to number\r\n\t\treturn(perm2num(edges,0,4));\r\n\t}", "title": "" }, { "docid": "9a0ab175a34c28632f1408f71f822e8d", "score": "0.52647984", "text": "public Matrix horizontalFlip() {\n int[][] newMatrix = new int[numOfRows][numOfColumns]; //generating a 2D array filled with zeros that is the same size as original matrix\n\t\t\n\t\tfor(int i = 0; i < numOfRows; i++) { //outer runs #row times and inner runs #column times\n\t\t\tfor(int k = 0; k < numOfColumns; k++){ //within a row, it's the last column that gets assigned a value first, because the equation (columnSize - 1 -j) is largest the first time the inner \n\t\t\t\tnewMatrix[i][numOfColumns - 1 -k] = rawMatrix[i][k]; //loop runs. e.g. [0][2], [0][1], [0][0] then outerloop runs again then it does the same thing\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t //but for the second row this time e.g. [1][2], [1][1], [1][2]\n\t\t\t}\n\t\t}\n\t\trawMatrix = newMatrix; //assigning it so that the old matrix is actually changed\n\t\treturn this; //returns the Matrix object\n\t}", "title": "" }, { "docid": "4b6f9ad81991b6525e6de30947cce26e", "score": "0.52352107", "text": "public void rotate(int[][] matrix) {\n int s=0,e=matrix.length-1;\n while (s<e){\n int[] temp = matrix[s];\n matrix[s] = matrix[e];\n matrix[e] = temp;\n s++;\n e--;\n }\n\n for (int i = 0; i < matrix.length; i++) {\n for (int j = i+1; j <matrix[i].length ; j++) {\n int temp = matrix[i][j];\n matrix[i][j] = matrix[j][i];\n matrix[j][i] = temp;\n }\n }\n }", "title": "" }, { "docid": "d126752a0b76b89446d523b457bbe24c", "score": "0.52254564", "text": "public void permute(int x)\n {\n if (x >= n)\n {\n gotPerm();\n return;\n }\n int t;\n for (int i = x; i < n; i++)\n {\n t = p[x]; p[x] = p[i]; p[i] = t;\n permute(x + 1);\n t = p[x]; p[x] = p[i]; p[i] = t;\n }\n }", "title": "" }, { "docid": "77820232558c6212f83f16af0c99344f", "score": "0.5182271", "text": "public List<List<Integer>> permute(int[] num) {\n List<List<Integer>> ans = new ArrayList<>();\n if (num.length == 0) return ans;\n List<Integer> l0 = new ArrayList<>();\n l0.add(num[0]);\n ans.add(l0);\n for (int i = 1; i < num.length; ++i) {\n List<List<Integer>> new_ans = new ArrayList<>();\n for (int j = 0; j <= i; ++j) {\n for (List<Integer> l : ans) {\n List<Integer> new_l = new ArrayList<>(l);\n new_l.add(j, num[i]);\n new_ans.add(new_l);\n }\n }\n ans = new_ans;\n }\n return ans;\n }", "title": "" }, { "docid": "29ff791e63cc154c8784de3599d647ee", "score": "0.51565397", "text": "public void rotate1(int[][] matrix){\n\t\t\n\t\t//Transpose\n\t\tint m = matrix.length;\n\t\tint n= matrix[0].length;\n\t\tint temp=0;\n\t\tfor(int i=0;i<m;i++){\n\t\t\t\n\t\t\tfor(int j=i+1;j<n;j++){\n\t\t\t\ttemp = matrix[i][j];\n\t\t\t\tmatrix[i][j]=matrix[j][i];\n\t\t\t\tmatrix[j][i]=temp;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\t//Exchange along column\n\t\tfor(int i=0;i<m;i++){\n\t\t\t\n\t\t\tfor(int j=0;j<n/2;j++){\n\t\t\t\ttemp = matrix[i][j];\n\t\t\t\tmatrix[i][j]=matrix[i][m-1-j];\n\t\t\t\tmatrix[i][m-1-j]=temp;\n\t\t\t}\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "c72bfe29fdbe38808ce020d8e5064cad", "score": "0.5150861", "text": "private int[][] leftUp(int[][] matrix, int n, int m) {\n int[][] left = new int[n][m];\n int[][] up = new int[n][m];\n for (int i = 0; i < n; i++) {\n for (int j = 0; j < m; j++) {\n // only when matrix[i][j] == 1\n if (matrix[i][j] == 1) {\n left[i][j] = getDP(left, i - 1, j - 1, n, m) + 1;\n up[i][j] = getDP(up, i - 1, j + 1, n, m) + 1;\n }\n }\n }\n merge(left, up, n, m);\n return left;\n }", "title": "" }, { "docid": "c48666548951b4b038b25edf5297dd39", "score": "0.5140148", "text": "public void transporP(){\r\n double[][] per = new double[mat.length][mat.length];\r\n for(int i = 0; i < mat.length; i++){\r\n for(int j = 0; j < mat.length; j++){\r\n if(p[i] == j){\r\n per[i][j] = 1;\r\n }else{\r\n per[i][j] = 0;\r\n }\r\n }\r\n }\r\n for(int i = 0; i < mat.length; i++){\r\n for(int j = 0; j < mat.length; j++){\r\n if(per[i][j] == 1){\r\n p[j] = i;\r\n } \r\n }\r\n }\r\n }", "title": "" }, { "docid": "9e7cbcdbaa7efa09ae3e7c1744fc0ccf", "score": "0.5099608", "text": "void rotatematrix(int mat[][]) {\n int up = 0, left = 0;\n int right = mat[0].length - 1;\n int down = mat.length - 1;\n int prev, curr;\n /* row - Staring row index\n m - ending row index\n col - starting column index\n n - ending column index\n i - iterator */\n while (up < down && left < right) {\n if (up + 1 == down || left + 1 == right) {\n break;\n }\n // Store the first element of next row, this element will replace first element of current row\n prev = mat[up + 1][left];\n /* Move elements of first row from the remaining rows */\n for (int i = left; i < right; i++) {\n curr = mat[up][i];\n mat[up][i] = prev;\n prev = curr;\n }\n up++;\n /* Move elements of last column from the remaining columns */\n for (int i = up; i < down; i++) {\n curr = mat[i][right - 1];\n mat[i][right - 1] = prev;\n prev = curr;\n }\n right--;\n /* Move elements of last row from the remaining rows */\n if (up < down) {\n for (int i = right - 1; i >= left; i--) {\n curr = mat[down - 1][i];\n mat[down - 1][i] = prev;\n prev = curr;\n }\n }\n down--;\n /* Move elements of first column from the remaining rows */\n if (left < right) {\n for (int i = down - 1; i >= up; i--) {\n curr = mat[i][left];\n mat[i][left] = prev;\n prev = curr;\n }\n }\n left++;\n }\n // Print rotated matrix\n for (int i = 0; i < mat.length; i++) {\n for (int j = 0; j < mat[0].length; j++) {\n System.out.print(mat[i][j] + \" \");\n }\n System.out.println();\n }\n }", "title": "" }, { "docid": "2aeace5cb34e38a3d1f605ec20415896", "score": "0.5093854", "text": "public ComplexMatrix rowmultiplication(int r,Complex com){\n\tComplexMatrix mat = zeros(rows,cols).add(this);\n\tComplex temp=new Complex();\n\tfor (int c=0;c<cols ;c++ ) {\n\t\tmat.matrix[r][c]=matrix[r][c].times(com);\n\t}\n\treturn mat;\n}", "title": "" }, { "docid": "ebb93c83eebbd1707d034ddec1535a55", "score": "0.50821745", "text": "public Matrix<K> transposeInPlace() {\n if (this.m != this.n) {\n throw new DimensionException(\"illegal dimension\");\n }\n \n for (int i = 0; i < this.m; ++i) {\n for (int j = 0; j < i; ++j) {\n this.swap(i, j, j, i);\n }\n }\n return this;\n }", "title": "" }, { "docid": "5a584d5bc6d3f656e232e8f32418b1f4", "score": "0.5037185", "text": "int permute(int p) {\n char ch = _alphabet.toChar(wrap(p));\n int i = 0;\n ArrayList lst = null;\n while (i < _cycles.size()) {\n if (_cycles.get(i).contains(ch)) {\n lst = _cycles.get(i);\n break;\n }\n i++;\n }\n if (lst == null) {\n return wrap(p);\n }\n int permuteI = (lst.indexOf(ch) + 1) % lst.size();\n return _alphabet.toInt((char) lst.get(permuteI));\n }", "title": "" }, { "docid": "96a6cf5dfbe6e16338ea6ef7e1a891d4", "score": "0.5028962", "text": "char permute(char p) {\n int index = _alphabet.toInt(p);\n int pResult = permute(index);\n return _alphabet.toChar(pResult);\n }", "title": "" }, { "docid": "9a19ed619a48d5648a885014276c874a", "score": "0.5013126", "text": "public void linemultiplykey(int len) {\n resultmatrix = new int[len];\n for (int i = 0; i < len; i++) {\n for (int j = 0; j < len; j++) {\n resultmatrix[i] += keymatrix[j][i] * linematrix[j];\n }\n resultmatrix[i] %= 26;\n }\n }", "title": "" }, { "docid": "3dba362e13bac507f4f7540004c56339", "score": "0.5013006", "text": "public double[] getRowPackedCopy() {\n\t\tdouble[] copy = new double[m*n];\n\t\tfor (int i = 0; i < getRowDimension(); i++) {\n\t\t\tfor (int j = 0; j < getColumnDimension(); j++) {\n\t\t\t\tcopy[i * n + j] = matrix[i][j]; \n\t\t\t}\n\t\t}\n\t\treturn copy;\n\t}", "title": "" }, { "docid": "acef2320e3f45dc298e0cdc1e5e84d49", "score": "0.49915665", "text": "public Mat2x2 preMultiplyBy(Mat2x2 m) {\n return new Mat2x2(\n m.a * this.a + m.b * this.c,\n m.a * this.b + m.b * this.d,\n m.c * this.a + m.d * this.c,\n m.c * this.b + m.d * this.d\n );\n }", "title": "" }, { "docid": "04ad309cbc22f3997a9c981e760f9e6f", "score": "0.49883705", "text": "public static void exibeMatrizInvertidaSeForIrreg(int[][] m) {\n int linhaMaisLonga = 1;\n for (int k = 0; k < m.length; k++){\n if (m[k].length > linhaMaisLonga){\n linhaMaisLonga = m[k].length;\n }\n }\n\n for (int coluna = 0; coluna < linhaMaisLonga; coluna++) {\n for (int linha = 0; linha < m.length; linha++) {\n try {\n System.out.print(m[linha][coluna]+\"\\t\");\n }\n catch(ArrayIndexOutOfBoundsException exception) {\n System.out.print(\"\\t\");\n }\n }\n System.out.println();\n }\n }", "title": "" }, { "docid": "d2d9e0cea338e04cbab306a07ad1cdfa", "score": "0.49854636", "text": "@Override\n public IMatrix matmul(IMatrix m) {\n return m;\n }", "title": "" }, { "docid": "45895dec3b3bb79f25ec2f3232ed471a", "score": "0.49849737", "text": "public void rotate(int[][] matrix) {\n // write your code here\n for(int i = 0; i<matrix.length; i++){\n for(int j = i; j<matrix[0].length; j++){\n int temp = 0;\n temp = matrix[i][j];\n matrix[i][j] = matrix[j][i];\n matrix[j][i] = temp;\n }\n }\n for(int i =0 ; i<matrix.length; i++){\n for(int j = 0; j<matrix.length/2; j++){\n int temp = 0;\n temp = matrix[i][j];\n matrix[i][j] = matrix[i][matrix.length-1-j];\n matrix[i][matrix.length-1-j] = temp;\n }\n }\n }", "title": "" }, { "docid": "9bf14496b9bc4dbd2075afc635541f1b", "score": "0.4964734", "text": "public void rotate(int[][] matrix) {\r\n if (matrix == null || matrix.length == 0) {\r\n return;\r\n }\r\n\r\n /*\r\n * First, transpose: 1 2 3 4 5 6 7 8 9\r\n * \r\n * -->\r\n * \r\n * 1 4 7 2 5 8 3 6 9\r\n */\r\n for (int row = 0; row < matrix.length; row++) {\r\n for (int col = row; col < matrix[0].length; col++) {\r\n int temp = matrix[row][col];\r\n matrix[row][col] = matrix[col][row];\r\n matrix[col][row] = temp;\r\n }\r\n }\r\n\r\n /*\r\n * Next, flip horizontally:\r\n * \r\n * 1 4 7 2 5 8 3 6 9\r\n * \r\n * -->\r\n * \r\n * 7 4 1 8 5 2 9 6 3\r\n */\r\n for (int row = 0; row < matrix.length; row++) {\r\n for (int col = 0; col < matrix[0].length / 2; col++) {\r\n int temp = matrix[row][col];\r\n matrix[row][col] = matrix[row][matrix.length - 1 - col];\r\n matrix[row][matrix.length - 1 - col] = temp;\r\n }\r\n }\r\n }", "title": "" }, { "docid": "4c43b5bd7c25d25ff834aac4186ef0d0", "score": "0.49529734", "text": "public static int[][] rotateMatrix(int[][] matrix) {\n int n = matrix.length;\n for (int layer = 0; layer < n / 2; layer++) {\n int first = layer;\n int last = n - 1 - layer;\n for (int i = first; i < last; i++) {\n int offset = i - first;\n int top = matrix[first][i];\n matrix[first][i] = matrix[last - offset][first];\n matrix[last - offset][first] = matrix[last][last - offset];\n matrix[last][last - offset] = matrix[i][last];\n matrix[i][last] = top;\n }\n }\n return matrix;\n}", "title": "" }, { "docid": "29eeb9fbb8db2fbcd1aae996cf28eebd", "score": "0.4940874", "text": "T getRowPivotMatrix( T P );", "title": "" }, { "docid": "6909815f75c1b1ffaca9ec12b0c631b1", "score": "0.49395886", "text": "private void permute(String prefix, String word){\n int n = word.length();\n if(n == 0){\n if(!permutations.contains(prefix))\n prefix = prefix.replaceAll(\"\\\\s+\",\"\");\n permutations.add(prefix);\n }else { \n for (int i = 0; i < n; i++){\n permute(prefix + word.charAt(i), word.substring(0,i)+\n word.substring(i+1,n)); \n }\n }\n}", "title": "" }, { "docid": "ddeb2ae6336ef41379fe99d7d44d9d1a", "score": "0.4933534", "text": "public void rotate(int[][] matrix) {\n int len = matrix.length;\n int halfLen = len % 2 == 0 ? len / 2 : len / 2 + 1;\n for (int i = 0; i < halfLen; i++) {\n for (int j = i; j < len - i - 1; j++) {\n int k = len - i - 1, l = len - j - 1;\n int tmp = matrix[i][j];\n matrix[i][j] = matrix[l][i]; // top <- left\n matrix[l][i] = matrix[k][l]; // right <- top\n matrix[k][l] = matrix[j][k]; // down <- right\n matrix[j][k] = tmp; // left <- down\n }\n }\n }", "title": "" }, { "docid": "17014e6da2fd1eb7d50bd818b910966f", "score": "0.49270347", "text": "public void setRowMatrix(int r, Matrix A);", "title": "" }, { "docid": "057e0d5b0ea15511f5c953b83a26af6a", "score": "0.49260527", "text": "char permute(char p) {\n int r = wrap(_alphabet.toInt(p));\n return _permutation[r];\n }", "title": "" }, { "docid": "abd156ed3f7f2d28f790371343a27090", "score": "0.492468", "text": "public synchronized void multiplyLeft( Mat4 b ){\n\t\t\n\t\tMat4 temp = new Mat4();\n\t\t\n\t\t// first row\n\t\ttemp.values[0] = b.values[0]*values[0] + b.values[1]*values[4] + b.values[2]*values[8] + b.values[3]*values[12];\n\t\ttemp.values[1] = b.values[0]*values[1] + b.values[1]*values[5] + b.values[2]*values[9] + b.values[3]*values[13];\n\t\ttemp.values[2] = b.values[0]*values[2] + b.values[1]*values[6] + b.values[2]*values[10] + b.values[3]*values[14];\n\t\ttemp.values[3] = b.values[0]*values[3] + b.values[1]*values[7] + b.values[2]*values[11] + b.values[3]*values[15];\n\t\t\n\t\t// second row\n\t\ttemp.values[4] = b.values[4]*values[0] + b.values[5]*values[4] + b.values[6]*values[8] + b.values[7]*values[12];\n\t\ttemp.values[5] = b.values[4]*values[1] + b.values[5]*values[5] + b.values[6]*values[9] + b.values[7]*values[13];\n\t\ttemp.values[6] = b.values[4]*values[2] + b.values[5]*values[6] + b.values[6]*values[10] + b.values[7]*values[14];\n\t\ttemp.values[7] = b.values[4]*values[3] + b.values[5]*values[7] + b.values[6]*values[11] + b.values[7]*values[15];\n\t\t\n\t\t// thrid row\n\t\ttemp.values[8] = b.values[8]*values[0] + b.values[9]*values[4] + b.values[10]*values[8] + b.values[11]*values[12];\n\t\ttemp.values[9] = b.values[8]*values[1] + b.values[9]*values[5] + b.values[10]*values[9] + b.values[11]*values[13];\n\t\ttemp.values[10] = b.values[8]*values[2] + b.values[9]*values[6] + b.values[10]*values[10] + b.values[11]*values[14];\n\t\ttemp.values[11] = b.values[8]*values[3] + b.values[9]*values[7] + b.values[10]*values[11] + b.values[11]*values[15];\n\t\t\n\t\t// fourth row\n\t\ttemp.values[12] = b.values[12]*values[0] + b.values[13]*values[4] + b.values[14]*values[8] + b.values[15]*values[12];\n\t\ttemp.values[13] = b.values[12]*values[1] + b.values[13]*values[5] + b.values[14]*values[9] + b.values[15]*values[13];\n\t\ttemp.values[14] = b.values[12]*values[2] + b.values[13]*values[6] + b.values[14]*values[10] + b.values[15]*values[14];\n\t\ttemp.values[15] = b.values[12]*values[3] + b.values[13]*values[7] + b.values[14]*values[11] + b.values[15]*values[15];\n\t\t\n\t\tvalues = temp.values;\n\t}", "title": "" }, { "docid": "bb72867280db3cd3566d63d5e0b8b74f", "score": "0.49222296", "text": "public static ArrayList<ArrayList<Integer>> permuteIterative(int[] numbers) {\n\t\tArrayList<ArrayList<Integer>> permutations = new ArrayList<ArrayList<Integer>>();\n\t // Add an empty list so that the middle for loop runs\n\t permutations.add(new ArrayList<Integer>());\n\n\t for ( int i = 0; i < numbers.length; i++ ) {\n\t // create a temporary container to hold the new permutations \n\t // while we iterate over the old ones\n\t \tArrayList<ArrayList<Integer>> current = new ArrayList<ArrayList<Integer>>();\n\t for ( List<Integer> permutation : permutations ) {\n\t for ( int j = 0; j < permutation.size() + 1; j++ ) {\n\t \tArrayList<Integer> temp = new ArrayList<Integer>(permutation);\n\t temp.add(j, numbers[i]);\n\t current.add(temp);\n\t }\n\t }\n\t permutations = new ArrayList<ArrayList<Integer>>(current);\n\t \n\t /*System.out.println(\"permutation : \"+ i);\n\t printPermutation(permutations);*/\n\t }\n\n\t return permutations;\n\t}", "title": "" }, { "docid": "a8675b8e8b33ad05723e7fa6b5c7b6e2", "score": "0.48897195", "text": "public void rotate(int[][] matrix) {\r\n if (matrix.length == 0 || matrix == null) return;\r\n int n=matrix.length;\r\n int[][] rotate = new int [n][n];\r\n for (int i =0; i<n;i++) {\r\n for (int j=0;j<n;j++) {\r\n rotate[j][n-i-1]=matrix[i][j];\r\n }\r\n }\r\n matrix=rotate;\r\n }", "title": "" }, { "docid": "5886f526a62164467aa2c91e6b8cb651", "score": "0.48864186", "text": "public void permute(long seed) {\n Random random = new Random(seed);\r\n for (int i = n-1; i > 0; i--) {\r\n int j = random.nextInt(i);\r\n swap(i, j);\r\n }\r\n }", "title": "" }, { "docid": "7b96efbe56bac928a1fa441f30be71f2", "score": "0.48848963", "text": "public static int[][] padding(int[][] matrix){\n int m = matrix.length+2;\n int n = matrix[0].length+2;\n int[][] padd_matrix = new int[m][n];\n for(int i=0;i<m;i++){\n for(int j=0;j<n;j++){\n if(i==0 || j==0 || i==m-1 || j==n-1){\n padd_matrix[i][j] = 128;\n }\n }\n }\n for (int i = 1; i < m-1; i++) {\n for (int j = 1; j < n-1; j++) {\n try {\n padd_matrix[i][j] = matrix[i-1][j-1];\n\n } catch (java.util.NoSuchElementException e) {\n e.printStackTrace();\n }\n }\n }\n\n return padd_matrix;\n }", "title": "" }, { "docid": "34819765992d5ac6f1de3fb16d29f2a8", "score": "0.48835334", "text": "Matrix copy() {\n Matrix C = new Matrix(getSize());\n for (int i = 0; i < n; i++) {\n if (row[i].length() != 0) {\n row[i].moveFront();\n }\n for (int j = 0; j < row[i].length(); j++) { // traverse row\n C.row[i].append(row[i].get());\n C.numEn++;\n row[i].moveNext();\n }\n }\n return C;\n }", "title": "" }, { "docid": "48c3475da431218a657621bf37768c23", "score": "0.48696053", "text": "private static <E extends Object> void permute(E[] a, int n, List<E[]> permutations) \n {\n if (n == 1) {\n\t permutations.add( Arrays.copyOf( a, a.length ) );\n return;\n }\n for (int i = 0; i < n; i++) {\n swap(a, i, n-1);\n permute(a, n-1, permutations);\n swap(a, i, n-1);\n }\n }", "title": "" }, { "docid": "589ebc9bc9861feebad8f417873ca4d0", "score": "0.48683026", "text": "public static void exibeMatrizInvertida(int[][] m) {\n for (int coluna = 0; coluna < m[0].length; coluna++) {\n for (int linha = 0; linha < m.length; linha++) {\n System.out.print(m[linha][coluna]+\"\\t\");\n }\n System.out.println();\n }\n }", "title": "" }, { "docid": "ebabf5df7ba533a64dfc6b2fafc93944", "score": "0.48381245", "text": "public static int[][] permutations(int desiredPermutationSize, int[] numbers) {\r\n\t\tint[][] permutations = new int[0][0];\r\n\r\n\t\tif (desiredPermutationSize > 0) {\r\n\t\t\t// n choose r\r\n\t\t\tint totalPermutations = StatisticsUtil.factorial(numbers.length) / StatisticsUtil.factorial(numbers.length - desiredPermutationSize);\r\n\t\t\tpermutations = new int[totalPermutations][desiredPermutationSize];\r\n\r\n\t\t\tint currentPermutationIndex = 0;\r\n\t\t\tfor (int i = 0; i < numbers.length; i++) {\r\n\t\t\t\t// remove this number\r\n\t\t\t\t// and get the permutation for all remaining numbers\r\n\t\t\t\tif (desiredPermutationSize > 1) {\r\n\t\t\t\t\tint[][] nextPermutations = permutations(desiredPermutationSize - 1, removeValueAtIndex(numbers, i));\r\n\t\t\t\t\tfor (int j = 0; j < nextPermutations.length; j++) {\r\n\t\t\t\t\t\tpermutations[currentPermutationIndex][0] = numbers[i];\r\n\t\t\t\t\t\tfor (int k = 0; k < nextPermutations[j].length; k++) {\r\n\t\t\t\t\t\t\tpermutations[currentPermutationIndex][k + 1] = nextPermutations[j][k];\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tcurrentPermutationIndex++;\r\n\t\t\t\t\t}\r\n\t\t\t\t} else {\r\n\t\t\t\t\tpermutations[i] = new int[] { numbers[i] };\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn permutations;\r\n\t}", "title": "" }, { "docid": "b373c2c337a4b7ac054211b36993f695", "score": "0.4832905", "text": "public Matrix transpose(){\n\t\tint[][] transposedMatrix = new int[numOfColumns][numOfRows]; //setting up new 2D array, with rows as columns instead and vice versa\n\t\tfor(int i = 0; i< numOfRows; i++){ //like everything else, outside loop is rows and inside is columns \n\t\t\tfor(int j=0; j< numOfColumns; j++){ \n\t\t\t\ttransposedMatrix[j][i] = rawMatrix[i][j]; //conceptually, its like cris-cross swapping of values\n\t\t\t\t\t\t\t\t\t\t\t\t\t \t //i.e. going down by column, making the column values (going down) equal the row values (going across)\n\t\t\t}\n\t\t}\n\t\trawMatrix = transposedMatrix;\n\t\t/* 'resetting' the rows and columns, because those variables are still of the of old matrix dimensions\n\t\t * temporary variable is needed as a placeholder while the swap occurs\n\t\t */\n\t\tint temp = this.numOfRows; \n\t\tthis.numOfRows = numOfColumns;\n\t\tthis.numOfColumns = temp;\n\t\treturn this;\n\t}", "title": "" }, { "docid": "40ee12d4bfeb7d882243441c6164d21b", "score": "0.48210126", "text": "public Permutation inv(Permutation result) {\n assert (result != null && result.length() == length());\n for (int i = length()-1; i >= 0; --i) { result.data[get(i)] = i; }\n return result;\n }", "title": "" }, { "docid": "61753ed0d23d7ae1c128ba68d169ce2a", "score": "0.48145837", "text": "private void expandirMatrizDePermisosDeProgramas() {\n\n boolean[][] aux = this.permisosProgramas;\n this.permisosProgramas = new boolean[this.usuarios.size()][this.procesos.size()];\n for (int i = 0; i < aux.length; i++) {\n for (int j = 0; j < aux[i].length; j++) {\n this.permisosProgramas[i][j] = aux[i][j];\n }\n }\n }", "title": "" }, { "docid": "0bf6a6a741074703193eeed0c685a2b7", "score": "0.48094177", "text": "void permute(int[] ans, List<Integer> perm, int[] pos, int colMask, int diagLMask, int diagRMask) {\n\t\tif (perm.size() == pos.length) {\n\t\t\tans[0]++;\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tfor (int i = 0; i < pos.length; i++) {\n\t\t\t\n\t\t\t// Check if pos[i]-th column is occupied(by checking if i-th bit is set)\n\t\t\tif (colMask << ~pos[i] < 0) \n\t\t\t\tcontinue;\n\t\t\t\n\t\t\t// Calculate the index of candidate queen's coordinates left-tilted diagonal\n\t\t\tint iL = perm.size() + pos[i];\n\t\t\t// Calculate the index of candidate queen's coordinates right-tilted diagonal\n\t\t\tint iR = perm.size() + pos.length - 1 - pos[i];\n\t\t\t// Check if any of the diagonals is occupied(by checking if corresponding bit is set)\n\t\t\tif (diagLMask << ~iL < 0 || diagRMask << ~iR < 0)\n\t\t\t\tcontinue;\n\n\t\t\t// Set queen in i-th row and pos[i]-th column\n\t\t\tperm.add(pos[i]);\n\t\t\t// Mark column, left-tilted diagonal, right-tilted diagonal\n\t\t\tcolMask |= (1 << pos[i]);\n\t\t\tdiagLMask |= (1 << iL);\n\t\t\tdiagRMask |= (1 << iR);\n\t\t\t// Continue with the current permutation\n\t\t\tpermute(ans, perm, pos, colMask, diagLMask, diagRMask);\n\t\t\t// Backtrack by de-occupying column, left-tilted diagonal, right-tilted diagonal \n\t\t\tcolMask &= ~(1 << pos[i]);\n\t\t\tdiagLMask &= ~(1 << iL);\n\t\t\tdiagRMask &= ~(1 << iR);\n\t\t\t// Unset queen in i-th row and pos[i]-th column\n\t\t\tperm.remove(perm.size() - 1);\n\t\t}\n\t}", "title": "" }, { "docid": "42a66f483f7ced53e46ab57bb3b3340d", "score": "0.480568", "text": "public ArrayList<ArrayList<Integer>> permute(int[] num) {\r\n\t\tArrayList<ArrayList<Integer>> result = new ArrayList<ArrayList<Integer>>();\r\n\t\tpermute(num, 0, result);\r\n\t\treturn result;\r\n\t}", "title": "" }, { "docid": "3bd05768ba354fc97691c5e81e7ca684", "score": "0.4804293", "text": "private void permuteEGTable(BigInteger[] cibp) {\n for (int i = 0; i < nCIBits; i++) {\n if (cibp[i].testBit(0)) {\n swapMultCols(i);\n }\n }\n }", "title": "" }, { "docid": "eda65bd6b378c2d7d1584e9702283aa3", "score": "0.47879106", "text": "public void printMatrix(int[][] m) {\n for (int i = 0; i < m.length; i++) {\n for (int j = 0; j < m[i].length; j++) {\n System.out.print(m[i][j] + \" \");\n }\n System.out.println();\n }\n }", "title": "" }, { "docid": "39142e62747facdfc469151ce5c2123c", "score": "0.4756913", "text": "public static BigInteger shiftRows(BigInteger ciphertext) {\n int[] cells = splitBlockIntoCells(ciphertext);\n int[] output = new int[16];\n\n // do nothing in the first row\n output[0] = cells[0];\n output[4] = cells[4];\n output[8] = cells[8];\n output[12] = cells[12];\n\n // shift the second row backwards by one cell\n output[1] = cells[5];\n output[5] = cells[9];\n output[9] = cells[13];\n output[13] = cells[1];\n\n // shift the third row backwards by two cell\n output[2] = cells[10];\n output[6] = cells[14];\n output[10] = cells[2];\n output[14] = cells[6];\n\n // shift the forth row backwards by tree cell\n output[3] = cells[15];\n output[7] = cells[3];\n output[11] = cells[7];\n output[15] = cells[11];\n\n return mergeCellsIntoBlock(output);\n }", "title": "" }, { "docid": "9e1b22864065e72cc6a8cb6d23479c7b", "score": "0.47532415", "text": "private static void rotateMatrix(int[][] arr){\n int n = arr.length;\n for(int r = 0; r < n/2; r++) {\n for(int c = r; c < n-1-r; c++) {\n //Store top value\n int temp = arr[r][c];\n\n //Move right to top\n arr[r][c] = arr[c][n-1-r];\n\n //Move bottom to right\n arr[c][n-1-r] = arr[n-1-r][n-1-c];\n\n //Move left to bottom\n arr[n-1-r][n-1-c] = arr[n-1-c][r];\n\n //Move top to left\n arr[n-1-c][r] = temp;\n }\n }\n }", "title": "" }, { "docid": "fdfcab951b1577bd6af4132b8330bf73", "score": "0.47524568", "text": "private static void eltran(double[][] A, double[][] V, int[] perm) {\n int n = A.length;\n for (int mp = n - 2; mp > 0; mp--) {\n for (int k = mp + 1; k < n; k++) {\n V[k][mp] = A[k][mp - 1];\n }\n int i = perm[mp];\n if (i != mp) {\n for (int j = mp; j < n; j++) {\n V[mp][j] = V[i][j];\n V[i][j] = 0.0;\n }\n V[i][mp] = 1.0;\n }\n }\n }", "title": "" }, { "docid": "9331eb5e16a83d9171920da2169d5016", "score": "0.4752333", "text": "public static double[][] onesRow(double[][] m){\n double[][] one = new double[m.length][m[0].length+1];\n for(int i=0;i<one.length;i++){\n for(int j = 0; j<one[0].length;j++){\n if(j == 0) one[i][j] = 1;\n else{\n one[i][j] = m[i][j-1];\n }\n }\n }\n return one;\n }", "title": "" }, { "docid": "013b89dc609c75b6c4d675bdd75d8c47", "score": "0.47498906", "text": "public @Nullable Permutation getPermutation() {\n return getPermutation(getInput().getRowType().getFieldCount(), exps);\n }", "title": "" }, { "docid": "6ebb91433bff78227c08427d7aff473f", "score": "0.47285166", "text": "public ComplexMatrix replacerow(ComplexMatrix mat, int row){\n\tComplex [][] m = matrix;\n\tfor (int c=0;c<cols ;c++ ) {\n\t\tm[row][c]=mat.matrix[row][c];\n\t}\n\treturn new ComplexMatrix(m,rows,cols);\n}", "title": "" }, { "docid": "8fa22dc0925f7ba7ded86a63899504d4", "score": "0.47190353", "text": "static void matrixChainOrder(int[] p, int n) \n { \n \n /* \n * For simplicity of the program, one extra row and one extra column are \n * allocated in m[][]. 0th row and 0th column of m[][] are not used \n */\n int[][] m = new int[n][n]; \n \n /* \n * m[i,j] = Minimum number of scalar multiplications needed to compute the \n * matrix A[i]A[i+1]...A[j] = A[i..j] where dimension of A[i] is p[i-1] x p[i] \n */\n \n // cost is zero when multiplying one matrix. \n for (int L = 2; L < n; L++) \n { \n for (int i = 1; i < n - L + 1; i++) \n { \n int j = i + L - 1; \n m[i][j] = Integer.MAX_VALUE; \n for (int k = i; k <= j - 1; k++) \n { \n \n // q = cost/scalar multiplications \n int q = m[i][k] + m[k + 1][j] + p[i - 1] * p[k] * p[j]; \n if (q < m[i][j]) \n { \n m[i][j] = q; \n \n // Each entry m[j,ji=k shows \n // where to split the product arr \n // i,i+1....j for the minimum cost. \n m[j][i] = k; \n } \n } \n } \n } \n \n // The first matrix is printed as 'A', next as 'B', \n // and so on \n name = 'A'; \n \n System.out.print(\"Optimal Parenthesization is: \"); \n printParenthesis(1, n - 1, n, m); \n System.out.print(\"\\nOptimal Cost is :\" + m[1][n - 1]); \n }", "title": "" }, { "docid": "681750964d65b8fcaf6cd791936721e6", "score": "0.47149876", "text": "public static Matrix product(Matrix m1, Matrix m2) throws Exception{\n if (m1.numberOfCols() == m2.numberOfRows()) {\n \n Matrix result = new Matrix(m1.numberOfRows(), m2.numberOfCols());\n double product = 0;\n for (int row = 0; row < m1.numberOfRows(); row++) {\n for (int col = 0; col < m2.numberOfCols(); col++) {\n product = 0;\n for (int rowOther = 0; rowOther < m2.numberOfRows(); rowOther++) {\n double element = m2.get(rowOther, col);\n product += (element*m1.get(row, rowOther));\n }\n result.set(row, col, product);\n }\n }\n return result;\n }\n else {\n throw new Exception(\"Non è possibile eseguire il prodotto di queste matrici\");\n }\n }", "title": "" }, { "docid": "e21495bb34e682cdab60d88935380656", "score": "0.47123545", "text": "int permute(int p) {\n int contact = wrap(p);\n char start = _alphabet.toChar(contact);\n char end = _alphabet.toChar(0);\n for (int i = 0; i < _cycles.size(); i += 1) {\n for (int j = 0; j < _cycles.get(i).length(); j += 1) {\n if (_cycles.get(i).charAt(j) == start) {\n if (j != _cycles.get(i).length() - 1) {\n end = _cycles.get(i).charAt(j + 1);\n } else {\n end = _cycles.get(i).charAt(0);\n }\n return _alphabet.toInt(end);\n }\n }\n }\n return contact;\n }", "title": "" }, { "docid": "d1b99ba4e080c0e6c246d5a2ed26f95e", "score": "0.47110668", "text": "public void multiplyMat(Matrix m) throws Exception{\r\n Vector rowVector;\r\n try{\r\n Vector tempVec = new Vector (this.dim);\r\n if(this.dim == 3 && m.getColumns() == 3 && m.getRows() == 3){\r\n for (Integer i = 0; i < this.dim; i++){\r\n double value = 0.0; \r\n rowVector = m.getRowVector(i);\r\n for(Integer j = 0; j < m.getRows(); j++){\r\n value = value + (double)rowVector.getArray()[j] * (double)this.values[j]; \r\n }\r\n tempVec.set(i,value);\r\n }\r\n this.values = tempVec.getArray();\r\n } \r\n }\r\n catch(Exception e){\r\n // throw new Exception(\"Matrix dimensions not correct, multiplyMat\");\r\n throw e;\r\n } \r\n }", "title": "" }, { "docid": "e47dda71b775ba2cddec86e0373bceb7", "score": "0.47017488", "text": "private int gettransCornPerm(int pos, int m)\r\n\t{\n\t\tint corners[]=new int[8];\r\n\t\tnum2perm(corners,0,8,pos);\r\n\t\t//do move \t L U F R D B\r\n\t\tif(m==3){\r\n\t\t\tcycle( corners, 0,1,5,4 );\r\n\t\t}else if(m==2){\r\n\t\t\tcycle( corners, 1,2,6,5 );\r\n\t\t}else if(m==0){\r\n\t\t\tcycle( corners, 2,3,7,6 );\r\n\t\t}else if(m==5){\r\n\t\t\tcycle( corners, 3,0,4,7 );\r\n\t\t}else if(m==1){\r\n\t\t\tcycle( corners, 3,2,1,0 );\r\n\t\t}else if(m==4){\r\n\t\t\tcycle( corners, 4,5,6,7 );\r\n\t\t}\r\n\t\t//convert back to number\r\n\t\treturn(perm2num(corners,0,8));\r\n\t}", "title": "" }, { "docid": "ca4fa20ad7a1a81a268f664b4e3858f0", "score": "0.47014233", "text": "public void redimensionar(int m, int n) {\n matriz.redimensionar(m, n);\n }", "title": "" }, { "docid": "5fea3d8d3acd3c56dcff9db57ee7dc62", "score": "0.46958566", "text": "private void leftShift(BitSet[] ciphertext) {\r\n\t\tBitSet firstBlock = ciphertext[0];\r\n\t\tfor (int i = 0; i < BLOCK_SZ - 1; ++i) {\r\n\t\t\tciphertext[i] = ciphertext[i + 1];\r\n\t\t}\r\n\t\tciphertext[BLOCK_SZ - 1] = firstBlock;\r\n\t}", "title": "" }, { "docid": "443bbc8281a4efb94e9faa8b0b142d6a", "score": "0.4689547", "text": "public static int[][] columns (int[][] matrix) { \n\t\t\tfor(int i =0 ; i < matrix.length; i=i+1 ){\n\t\t\tfor ( int j = i+1; j < matrix.length; j = j+1){\n\t\t\t\tint tmp = matrix [i][j];\n\t\t\t\tmatrix[i][j] = matrix[j][i];\n\t\t\t\tmatrix[j][i] = tmp;\n\t\t\t}\t\t\n\t}\n\t\n\treturn matrix;\t\n\t}", "title": "" }, { "docid": "29d81cd9db097cf75c9a00f9eb5e819e", "score": "0.46650726", "text": "private int gettransEdgePerm( int pos, int m )\r\n\t{\n\t\tint edges[]= new int[8];\r\n\t\tnum2perm(edges,0,8,pos);\r\n\t\t//do move \t L U F R D B\r\n\t\tif(m==3){\r\n\t\t\tswap( edges, 0,4 );\r\n\t\t}else if(m==2){\r\n\t\t\tswap( edges, 1,5 );\r\n\t\t}else if(m==0){\r\n\t\t\tswap( edges, 2,6 );\r\n\t\t}else if(m==5){\r\n\t\t\tswap( edges, 3,7 );\r\n\t\t}else if(m==1){\r\n\t\t\tcycle( edges, 3,2,1,0 );\r\n\t\t}else if(m==4){\r\n\t\t\tcycle( edges, 4,5,6,7 );\r\n\t\t}\r\n\t\t//convert back to number\r\n\t\treturn(perm2num(edges,0,8));\r\n\t}", "title": "" }, { "docid": "c25bd106e6f939e7beec9913e07e02c2", "score": "0.4655458", "text": "private static void permute(Integer[] array, long seed) {\n Random random = new Random(seed);\n\n for (int i = 0; i < array.length; i++) {\n int r = random.nextInt(array.length);\n int swapped = array[i];\n array[i] = array[r];\n array[r] = swapped;\n }\n }", "title": "" }, { "docid": "a2e7b7acfb85d76661c2ac625f5bb4c2", "score": "0.46535644", "text": "public Matrix multiply(Matrix multiplicand)\n throws IllegalDimensionException {\n if (multiplicand.row != col) {\n throw new IllegalDimensionException(\"The row dimension does not \"\n + \"match the column dimension.\");\n }\n Matrix product = new Matrix(row, multiplicand.col);\n for (int i = 0; i < row; i++) {\n for (int j = 0; j < multiplicand.col; j++) {\n for (int k = 0; k < col; k++) {\n product.matrix[i][j] = product.matrix[i][j]\n .add(matrix[i][k]\n .multiply(multiplicand.matrix[k][j]));\n }\n }\n }\n return product;\n }", "title": "" }, { "docid": "78862bcfba6f1f3f78d7b0b5348ae2c3", "score": "0.46528405", "text": "private MLDataSet generatePermutation(MLDataSet source, int column) {\n MLDataSet result = new BasicMLDataSet();\n for(MLDataPair item:source) {\n BasicMLData input = new BasicMLData(item.getInput().size());\n BasicMLData ideal = new BasicMLData(item.getIdeal().size());\n EngineArray.arrayCopy(item.getInputArray(),input.getData());\n EngineArray.arrayCopy(item.getIdealArray(),ideal.getData());\n MLDataPair newPair = new BasicMLDataPair(input,ideal);\n result.add(newPair);\n }\n\n for(int i=0;i<result.size();i++) {\n int r = i + rnd.nextInt(result.size()-i);\n MLData rowR = result.get(r).getInput();\n MLData rowI = result.get(i).getInput();\n\n double t = rowR.getData(column);\n rowR.setData(column,rowI.getData(column));\n rowI.setData(column,t);\n }\n\n return result;\n }", "title": "" }, { "docid": "ad0427042073af93cd197b2e72dbf07e", "score": "0.4650085", "text": "public Matrix matrixMul(Matrix P) throws SizeException {\r\n\t\tif(this.sizeJ != P.sizeI) {throw new SizeException();}\r\n\t\tMatrix result = new Matrix(this.sizeI,P.sizeJ);\r\n\t\t\t\r\n\t\tfor(int i = 0; i < this.sizeI; i++) {\r\n\t\t\tfor(int n = 0; n < P.sizeJ; n++) {\r\n\t\t\t\tdouble dummy = 0;\r\n\t\t\t\tfor(int j = 0; j < this.sizeJ; j++) {\r\n\t\t\t\t\tdummy += this.getValue(i, j)*P.getValue(j, n);\r\n\t\t\t\t}\r\n\t\t\t\tresult.setMatrix(i, n, dummy);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn result;\r\n\t}", "title": "" }, { "docid": "b280752a33a6e1ca097fbaf87e561d3c", "score": "0.46454546", "text": "private static BigInteger sumProductRowCol(BigInteger[][] A, BigInteger[][] B, int Arow, int Bcol, BigInteger m)\r\n\t{\r\n\t\tBigInteger sum = BigInteger.ZERO;\r\n\t\tBigInteger product;\r\n\t\tfor(int i=0; i < A[0].length; i++)\r\n\t\t{\r\n\t\t\tproduct = A[Arow][i].multiply(B[i][Bcol]);\r\n\t\t\tsum = sum.add(product).mod(m);\r\n\t\t}\r\n\t\t\r\n\t\treturn sum;\r\n\t}", "title": "" }, { "docid": "0f3013e07757007dd9aeb72e1e6d0c30", "score": "0.46363914", "text": "public Vector apply(Matrix m) {\n\t\treturn m.applyTo(this);\n\t}", "title": "" }, { "docid": "4f09029c5b4fbe875b34a7abeee4a1fe", "score": "0.46363142", "text": "public static void readMatrixSpirally(int[][] matr){\n int k =0;\n int l = matr[0].length-1;\n int m = 0;\n int n = matr.length-1;\n while(k < l && m < n){\n \n //going from left to right\n for(int i=k;i<=l;i++){\n System.out.print(matr[m][i]+\" \");\n }\n \n //going from top to bottom\n for(int j=m+1;j<=n;j++){\n System.out.print(matr[j][l]+\" \");\n }\n \n //going from right to left\n for(int i=l-1;i>=k;i--){\n System.out.print(matr[n][i]+\" \");\n }\n \n //going from botom to top\n for(int i=n-1;i>=m+1;i--){\n System.out.print(matr[i][k]+\" \");\n }\n \n l--;n--;k++;m++;\n \n }\n System.out.println();\n }", "title": "" }, { "docid": "beaeccba598c7ef86e94efc3b4701f46", "score": "0.463488", "text": "private void compressLeft( )\n {\n System.out.println( \"compressLeft called\" );\n \n for( int r = 0; r < matrix.length; r++ )\n {\n int insertAt = 0;\n for( int c = 0; c < matrix[r].length; c++ )\n {\n if ( matrix[r][c] != 0 )\n {\n int swap = matrix[r][c];\n matrix[r][c] = matrix[r][insertAt];\n matrix[r][insertAt] = swap;\n insertAt += 1;\n }\n \n }\n }\n }", "title": "" }, { "docid": "ad75c96991044dd25684017f46099dd2", "score": "0.46329057", "text": "public static BigInteger[][] matrixMultiplication (BigInteger[][] A, BigInteger[][] B, BigInteger m)\r\n\t{\r\n\t\tBigInteger[][] result = new BigInteger[A.length][A[0].length];\r\n\t\t\r\n\t\tfor(int row = 0; row < result.length; row++)\r\n\t\t{\r\n\t\t\tfor(int col = 0; col < result[0].length; col++)\r\n\t\t\t\tresult[row][col] = sumProductRowCol(A, B, row,col,m);\r\n\t\t}\r\n\t\treturn result;\r\n\t}", "title": "" }, { "docid": "c8259567316f443a90cf3799e0b184ec", "score": "0.46315277", "text": "public void precomuteMatrixSum(int[][] a) {\n\t\tint[] top= { 0,0 };\n\t\tint[] bottom = {a.length-1,a.length-1};\n\t\tint[] leftCol = {0, 0};\n\t\tint[] rightCol = {0, a[0].length};\n\t}", "title": "" }, { "docid": "e6f022d1719e42843ef46f851cf5f587", "score": "0.46242702", "text": "private FieldMatrix<BigFraction> buildP(final int rows) {\n br.ufmg.labsoft.mutvariants.schematalib.SchemataLibMethods.listener.listen(\"org.apache.commons.math3.ode.nonstiff.AdamsNordsieckTransformer.buildP_227\");\n final BigFraction[][] pData = new BigFraction[rows][rows];\n for (int i = 1; ROR_less_equals(i, pData.length, \"org.apache.commons.math3.ode.nonstiff.AdamsNordsieckTransformer.buildP_227\", _mut17864, _mut17865, _mut17866, _mut17867, _mut17868); ++i) {\n br.ufmg.labsoft.mutvariants.schematalib.SchemataLibMethods.listener.listen(\"org.apache.commons.math3.ode.nonstiff.AdamsNordsieckTransformer.buildP_227\");\n // build the P matrix elements from Taylor series formulas\n final BigFraction[] pI = pData[AOR_minus(i, 1, \"org.apache.commons.math3.ode.nonstiff.AdamsNordsieckTransformer.buildP_227\", _mut17843, _mut17844, _mut17845, _mut17846)];\n final int factor = -i;\n int aj = factor;\n for (int j = 1; ROR_less_equals(j, pI.length, \"org.apache.commons.math3.ode.nonstiff.AdamsNordsieckTransformer.buildP_227\", _mut17859, _mut17860, _mut17861, _mut17862, _mut17863); ++j) {\n br.ufmg.labsoft.mutvariants.schematalib.SchemataLibMethods.listener.listen(\"org.apache.commons.math3.ode.nonstiff.AdamsNordsieckTransformer.buildP_227\");\n pI[AOR_minus(j, 1, \"org.apache.commons.math3.ode.nonstiff.AdamsNordsieckTransformer.buildP_227\", _mut17847, _mut17848, _mut17849, _mut17850)] = new BigFraction(AOR_multiply(aj, (AOR_plus(j, 1, \"org.apache.commons.math3.ode.nonstiff.AdamsNordsieckTransformer.buildP_227\", _mut17851, _mut17852, _mut17853, _mut17854)), \"org.apache.commons.math3.ode.nonstiff.AdamsNordsieckTransformer.buildP_227\", _mut17855, _mut17856, _mut17857, _mut17858));\n aj *= factor;\n }\n }\n return new Array2DRowFieldMatrix<BigFraction>(pData, false);\n }", "title": "" }, { "docid": "9cbe6eb7ab2efc1161e074ce00c29ca2", "score": "0.46225715", "text": "private void shiftRow(int row){\n Marble temporaryMarble;\n for(int pos = 0; pos<this.sizeX; pos++){\n temporaryMarble = this.marbleBoard[pos][row];\n this.marbleBoard[pos][row] = this.marbleOut;\n this.marbleOut = temporaryMarble;\n }\n }", "title": "" }, { "docid": "59e95e9e185e5f6ab488e4b4cd3fbde2", "score": "0.46191677", "text": "static Permutation product(Permutation... permutations) {\n Permutation result = identity();\n for (Permutation permutation : permutations)\n result = result.compose(permutation);\n return result;\n }", "title": "" }, { "docid": "8aa6f450ab3df6f13af192cb627ad822", "score": "0.46150613", "text": "private static double[][] multiplyMatrix(double[][][] allMatrix, int i) {\n\t\tdouble[][] temp = new double[allMatrix[i-1].length][allMatrix[i][0].length];\n\t\t//\t\tSystem.out.println(allMatrix[i-1][0].length + \" \" + allMatrix[i].length);\n\t\t//making sure it can be multiplied\n\t\tif (allMatrix[i-1][0].length==allMatrix[i].length){\n\t\t\t//columns\n\t\t\tfor(int j=0;j<temp.length;j++){\n\t\t\t\t//row\n\t\t\t\tfor(int k=0;k<temp[0].length;k++){\n\t\t\t\t\t//executing the matrix multiplication by multiplying every element in a row of matrix b by a column in matrix a\n\t\t\t\t\tfor(int l=0;l<allMatrix[i].length;l++){\n\t\t\t\t\t\t//iterating through the two arrays and multiplying the terms\n\t\t\t\t\t\t//taking the sum of the product of the terms from the row * column of the 2 matrices\n\t\t\t\t\t\ttemp[j][k]+= allMatrix[i-1][j][l] * allMatrix[i][l][k];\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t//\t\t\tprintMatrix(temp);\n\t\t\t//product is calculated and returned\n\t\t\treturn temp;\n\t\t}\n\t\t//the columns of the left matrix is not the same as the rows as the right matrix thus it cannot be multiplied\n\t\telse{\n\t\t\tSystem.out.println(\"Multiplication Error\");\n\t\t\treturn null;\n\t\t}\n\t}", "title": "" }, { "docid": "0721d376b8bc8c0958b6cba0e8de23c7", "score": "0.46141192", "text": "public Matrix mult(Matrix other) {\n if (this.numCols != other.numRows) {\n throw new IndexOutOfBoundsException(\"Multiplication attempted for non-matching matrices\");\n }\n\n Matrix result = new Matrix(this.numRows, other.numCols);\n\n for (int row = 0; row < this.numRows; row++) {\n for (int col = 0; col < other.numCols; col++) {\n double product = this.get(row, 0) * other.get(0, col) + this.get(row, 1) * other.get(1, col)\n + this.get(row, 2) * other.get(2, col) + this.get(row, 3) * other.get(3, col);\n\n result.set(row, col, product);\n }\n }\n\n return result;\n }", "title": "" }, { "docid": "873fa882e06fd959c7441546073a907c", "score": "0.46125364", "text": "public static BigInteger[][] matrixMultiplication (BigInteger[][] A, BigInteger n, BigInteger m)\r\n\t{\r\n\t\tBigInteger[][] result = new BigInteger[A.length][A[0].length];\r\n\t\t\r\n\t\tfor(int row = 0; row < result.length; row++)\r\n\t\t{\r\n\t\t\tfor(int col = 0; col < result[0].length; col++)\r\n\t\t\t\tresult[row][col] = (A[row][col].multiply(n)).mod(m);\r\n\t\t}\r\n\t\treturn result;\r\n\t}", "title": "" }, { "docid": "5dcb828352b5cc77b7bfcd26543c5bbe", "score": "0.46100008", "text": "public Matrix multiply(Matrix matrix) {\n\t\tif (this.n != matrix.getM()) {\n\t\t\tthrow new MatrixDimensionMismatchError(this, matrix);\n\t\t} else {\n\t\t\tMatrix result = new Matrix(this.m, matrix.getN());\n\t\t\t\n\t\t\tfor (int i = 0; i < result.getM(); i++) {\n\t\t\t\tfor (int j = 0; j < result.getN(); j++) {\n\t\t\t\t\tfor (int k = 0; k < this.getN(); k++) {\n\t\t\t\t\t\tresult.values[i][j] += this.values[i][k] * matrix.values[k][j];\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\treturn result;\n\t\t}\n\t}", "title": "" }, { "docid": "09feefed4841c4f9dc52e455c7134d00", "score": "0.45984578", "text": "public ArrayList<ArrayList<Integer>> permuteUnique(int[] num) {\n ArrayList<Integer> cur = new ArrayList<Integer>();\n ArrayList<ArrayList<Integer>> re = new ArrayList<ArrayList<Integer>>();\n pR(re, cur, num, 0);\n return re;\n }", "title": "" }, { "docid": "1fa2358db8048f9e006d11838b984e0d", "score": "0.45960888", "text": "private void Permute(int current,int[] sol,int size)\r\n {\r\n int counter=0,result=0;\r\n // base case\r\n if (current==arities.length-1) /* set last one to maximum allowable */\r\n {\r\n while(result<=size)\r\n {\r\n counter++;\r\n result=result+arities[current];\r\n }\r\n result=result-arities[current];\r\n counter--;\r\n if (result<0)\r\n {\r\n result=0;\r\n counter=0;\r\n }\r\n sol[current]=counter;\r\n\r\n //Adding this solution to the list.\r\n permutations.add(sol);\r\n }\r\n // end of base case\r\n else\r\n {\r\n while(result<=size)\r\n {\r\n if (result<=size)\r\n {\r\n sol[current]=counter;\r\n Permute(current+1,sol,size-result);\r\n }\r\n result=result+arities[current];\r\n counter++;\r\n }\r\n }\r\n }", "title": "" }, { "docid": "b8caa732cffb51d99d39f4d54d775f01", "score": "0.45941615", "text": "public void preTransform(GL_Matrix n)\n\t{\n\t\tGL_Matrix m=this.getClone();\n\t\t\n\t\tm00 = m.m00*n.m00 + m.m01*n.m10 + m.m02*n.m20;\n\t\tm01 = m.m00*n.m01 + m.m01*n.m11 + m.m02*n.m21;\n\t\tm02 = m.m00*n.m02 + m.m01*n.m12 + m.m02*n.m22;\n\t\tm03 = m.m00*n.m03 + m.m01*n.m13 + m.m02*n.m23 + m.m03;\n\t\tm10 = m.m10*n.m00 + m.m11*n.m10 + m.m12*n.m20;\n\t\tm11 = m.m10*n.m01 + m.m11*n.m11 + m.m12*n.m21;\n\t\tm12 = m.m10*n.m02 + m.m11*n.m12 + m.m12*n.m22;\n\t\tm13 = m.m10*n.m03 + m.m11*n.m13 + m.m12*n.m23 + m.m13;\n\t\tm20 = m.m20*n.m00 + m.m21*n.m10 + m.m22*n.m20;\n\t\tm21 = m.m20*n.m01 + m.m21*n.m11 + m.m22*n.m21;\n\t\tm22 = m.m20*n.m02 + m.m21*n.m12 + m.m22*n.m22;\n\t\tm23 = m.m20*n.m03 + m.m21*n.m13 + m.m22*n.m23 + m.m23;\n\t}", "title": "" }, { "docid": "6902bc32e5a923b8770b4a1d9fa51f89", "score": "0.45780316", "text": "Permutation(int[] data) {\n this.data = data;\n }", "title": "" }, { "docid": "bccd221e7f805f1d128c8707e81d663e", "score": "0.4566754", "text": "public BigInteger mod(BigInteger m) throws ArithmeticException {\n if (m.signum() <= 0)\n throw new ArithmeticException(\"Modulus <= 0\" + m);\n\n //do the computation\n return new BigInteger();\n }", "title": "" }, { "docid": "8328fed8c74098f7a8461525c9bb7e05", "score": "0.45609036", "text": "private int[][] rightDown(int[][] matrix, int n, int m) {\n int[][] right = new int[n][m];\n int[][] down = new int[n][m];\n for (int i = n - 1; i >= 0; i--) {\n for (int j = m - 1; j >= 0; j--) {\n if (matrix[i][j] == 1) {\n right[i][j] = getDP(right, i + 1, j + 1, n, m) + 1;\n down[i][j] = getDP(down, i + 1, j - 1, n, m) + 1;\n }\n }\n }\n merge(right, down, n, m);\n return right;\n }", "title": "" }, { "docid": "cc96dd472941543fae778cbf07e44037", "score": "0.4553968", "text": "static int[] permutationEquation(int[] p) {\n int len=p.length;\n int ans[]=new int[len];\n\n HashMap<Integer, Integer> idx= new HashMap<>();\n\n for(int a=0;a<len;a++){\n idx.put(p[a], a+1);\n }\n\n for(int a=1;a<=len;a++){\n ans[a-1]= idx.get(idx.get(a));\n }\n return ans;\n }", "title": "" }, { "docid": "15291eec5a4bc5d1072620163422ac65", "score": "0.4548486", "text": "public ArrayList<ArrayList<Point>> permute(ArrayList <Point> pt) {\n\t\tArrayList<ArrayList<Point>> result = new ArrayList<ArrayList<Point>>();\n\t \n\t\t//start from an empty list\n\t\tresult.add(new ArrayList<Point>());\n\t \n\t\tfor (int i = 0; i < pt.size(); i++) {\n\t\t\t//list of list in current iteration of the array pt\n\t\t\tArrayList<ArrayList<Point>> current = new ArrayList<ArrayList<Point>>();\n\t \n\t\t\tfor (ArrayList<Point> l : result) {\n\t\t\t\t// # of locations to insert is largest index + 1\n\t\t\t\tfor (int j = 0; j < l.size()+1; j++) {\n\t\t\t\t\t// + add pt[i] to different locations\n\t\t\t\t\tl.add(j, pt.get(i));\t \n\t\t\t\t\tArrayList<Point> temp = new ArrayList<Point>(l);\n\t\t\t\t\tcurrent.add(temp);\n\t\t\t\t\tl.remove(j);\n\t\t\t\t}\n\t\t\t}\n\t \n\t\t\tresult = new ArrayList<ArrayList<Point>>(current);\n\t\t}\n\t\treturn result;\n\t}", "title": "" }, { "docid": "6e2da52c524abd6bb462a2c1688c7a70", "score": "0.45468754", "text": "public Matrix multiplyBy(int x){\n\t\tfor(int i = 0; i < numOfRows; i++){\n\t\t\tfor(int k = 0; k < numOfColumns; k++){\n\t\t\t\tthis.rawMatrix[i][k] = this.rawMatrix[i][k] * x; //multiplying each element with the inner array by the integer passed and replacing the old values for new\n\t\t\t}\n\t\t}\n\t\treturn this;\t\n\t}", "title": "" }, { "docid": "daf3e2c67ce45876ec9a037a91e7e9b6", "score": "0.4539445", "text": "public static ArrayList<ArrayList<Integer>> permute(int[] num)\n\t{\n\t\tArrayList<ArrayList<Integer>> result = new ArrayList<ArrayList<Integer>>();\n\t\tpermute(num, 0, result);\n\t\treturn result;\n\t}", "title": "" }, { "docid": "3b2b5a7f3b4b867cc3cdd1e40b603bef", "score": "0.45358148", "text": "static void permuteOperators(List<List<Integer>> array, int n, int total)\n {\n \tint npow = n * n;\n for (int i = 0; i < total; i++)\n {\n array.add(Arrays.asList((i / npow ) + 20, ((i % npow) / n) + 20, (i % n) + 20));\n }\n }", "title": "" }, { "docid": "09dea2dedd9b328178f51316115ed42f", "score": "0.45312613", "text": "public Permutation inv() {\n return inv(new Permutation(new int[length()]));\n }", "title": "" } ]
01ee8581bf931784b796af49a01aa611
DONE 1 crie um pacote chamado dimensao DONE 2 dentro do pacote dimensao, crie outro pacote chamado bidimensional DONE 3 dentro do pacote dimensao.bidimensional, crie a classe TrianguloRetangulo
[ { "docid": "cd64ef33d57d7c0b4081d1faacf8b511", "score": "0.59594655", "text": "public static void main(String[] args) {\n // DONE 12 crie aqui um objeto da classe TrianguloRetangulo\n TrianguloRetangulo tr1 = new TrianguloRetangulo();\n // DONE 13 escreva como comentário: por que aconteceu um erro na criação do objeto?\n // R: o erro acontece, porque a classe TrianguloRetangulo faz parte de\n // outro pacote e ela está configurada como default, portanto só pode\n // ser acessada por classes do mesmo pacote.\n \n // DONE 14 escreva como comentário: o que pode ser feito para resolver o erro?\n // R: para resolver esse problema, poderíamos declarar a classe TrianguloRetangulo\n // como \"public\" ou colocar a classe TrianguloRetangulo no mesmo pacote\n // dessa classe que contém o método main.\n \n // DONE 15 altere o modificador da classe TrianguloRetangulo para public\n // DONE 16 escreva como comentário: por que o erro continua?\n // R: o erro permanece, porque é necessário realizar a importação da\n // classe TrianguloRetangulo aqui nessa classe\n \n // DONE 17 adicione a importação da classe TrianguloRetangulo (clique na lâmpada ao lado)\n \n // DONE 18 através do objeto, atribua valor dentro dos atributos diretamente\n tr1.cateto1 = 5.0;\n tr1.cateto2 = 7.0;\n tr1.hipotenusa = 12.5;\n tr1.alturaHipotenusa = 9.1;\n // DONE 19 escreva como comentário: é possível realizar esta atribuição? Justifique.\n // R: não é possível, porque os atributos estão declarados como default.\n // DONE 20 escreva como comentário: o que pode ser feito para resolver este problema?\n // R: para resolver esse problema, devemos declarar os atributos da classe\n // TrianguloRetangulo como public (solução ruim). \n // A melhor solução seria criar métodos set e get para modificar e acessar \n // os valores do atributos\n }", "title": "" } ]
[ { "docid": "edf9bc9d96d08a34f9efbd02288d58b8", "score": "0.6304359", "text": "void listarTriangulos() {\n\t\tint contador = 0;\n\t\tfor (Figura figura : figuritas) {\n\t\t\tif (figura instanceof TrianguloRectangulo)\n\t\t\t\tcontador++;\n\t\t}\n\t\tSystem.out.println(\"Total de triángulos: \" + contador);\n\n\t}", "title": "" }, { "docid": "46494f4f0a45f74cfd1ef43cc5482aa9", "score": "0.60924464", "text": "private void chequeaLetra(String letra){\n String auxiliar = palabraGuiones.getText();\n //ponemos siempre las letras en mayúscula para que así no haya errores\n letra = letra.toUpperCase();\n \n if (palabraOculta.contains(letra)){\n //la letra si que está, tengo que quitar el guión bajo \n //y ponerla en su posición\n //si usas indexOf te subo la nota\n for (int i=0; i<palabraOculta.length(); i++){\n if(palabraOculta.charAt(i) == letra.charAt(0)){\n System.out.println(i);\n auxiliar = auxiliar.substring(0, 2*i) + letra + auxiliar.substring(2*i + 1);\n \n }\n }\n //se actualiza la pantalla para que aparezcan las letras que \n //hayamos adivinado\n palabraGuiones.setText(auxiliar);\n }\n //A medida que se van teniendo fallos se van acumulando en el\n //contadorFallos y aparecerá la imagen correspondiente al número de\n //fallos que vamos teniendo hasta un máximo de 6 fallos que es cuando \n //nos aparecerá la imágen de que hemos perdido la partida.\n else{\n contadorFallos++;\n dibujaImagen(contadorFallos);\n // Si el contador de fallos tiene 6 o más significará que la partida\n //ha termminado y ya no funcionarán los botones\n if (contadorFallos >= 6){\n finPartida = true;\n }\n }\n //si en la palabra no queda ningún guión más aparecerá la imágen de que\n //hemos ganado la partida\n if (!auxiliar.contains(\"_\")){\n dibujaImagen(-1);\n }\n \n \n //que el juego detecte si la partida ha terminado \n //porque has ganado\n //o porque has perdido\n }", "title": "" }, { "docid": "77c6786f3846f456404a110beeea24a2", "score": "0.6083947", "text": "public Boolean perd3x3(int milieuI, int milieuJ, Joueur _joueur, Plateau _plateau){\n\n //teste si il a perdu une colone\n for (int c = milieuI - 1; c<milieuI + 2; c++){\n\n int compt = 0;\n for (int l = milieuJ - 1; l<milieuI + 2; l++){\n Case x = new Case(c,l);\n if(_plateau.getPiece(x)!=null){\n if(_plateau.getPiece(x).getJoueur()!=_joueur){\n compt+=1;\n }}\n }\n if (compt==3){return true;}\n }\n\n //teste si il a perdu une ligne\n for (int l = milieuJ - 1; l<milieuJ + 2; l++){\n\n int compt = 0;\n for (int c = milieuI - 1; c<milieuI + 2; c++){\n Case x = new Case(c,l);\n if(_plateau.getPiece(x)!=null){\n if(_plateau.getPiece(x).getJoueur()!=_joueur){\n compt+=1;\n }}\n }\n if (compt==3){return true;}\n }\n\n //teste si il a perdu la première diagonale\n int comptdiag1 = 0;\n for (int i = 0; i<3; i++){\n\n Case x = new Case(milieuI-1+i,milieuJ-1+i);\n if(_plateau.getPiece(x)!=null){\n if(_plateau.getPiece(x).getJoueur()!=_joueur){\n comptdiag1+=1;\n }}\n }\n if (comptdiag1==3){return true;}\n\n //teste si il a perdu la deuxième diagonale\n int comptdiag2 = 0;\n for (int i = 0; i<3; i++){\n\n Case x = new Case(milieuI-1+i,milieuJ+1-i);\n if(_plateau.getPiece(x)!=null){\n if(_plateau.getPiece(x).getJoueur()!=_joueur){\n comptdiag1+=1;\n }}\n }\n if (comptdiag2==3){return true;}\n\n return false;\n\n }", "title": "" }, { "docid": "bc2052e4e2dff0e515f3166d8fb6b6b5", "score": "0.5955997", "text": "public boolean triangleDoiteBasConquis(){\r\n\t\tColor couleur_presente=Color.GREEN;\r\n\t\tif (this.getPlateau()[75].getPion()== null || this.getPlateau()[85].getPion()== null ||\r\n\t\t\t\tthis.getPlateau()[86].getPion()== null || this.getPlateau()[96].getPion()== null ||\r\n\t\t\t\tthis.getPlateau()[97].getPion()== null || this.getPlateau()[98].getPion()== null ||\r\n\t\t\t\tthis.getPlateau()[108].getPion()== null || this.getPlateau()[109].getPion()== null ||\r\n\t\t\t\tthis.getPlateau()[110].getPion()== null || this.getPlateau()[111].getPion()== null)\r\n\t\t{\r\n\t\t\treturn false;\r\n\t\t}\t\t\r\n\t\t\t\r\n\t\telse if (this.getPlateau()[75].getPion().getCouleur()== couleur_presente &&\r\n\t\t\t\t\tthis.getPlateau()[85].getPion().getCouleur()== couleur_presente &&\r\n\t\t\t\t\tthis.getPlateau()[86].getPion().getCouleur()== couleur_presente && \r\n\t\t\t\t\tthis.getPlateau()[96].getPion().getCouleur()== couleur_presente &&\r\n\t\t\t\t\tthis.getPlateau()[97].getPion().getCouleur()== couleur_presente && \r\n\t\t\t\t\tthis.getPlateau()[98].getPion().getCouleur()== couleur_presente &&\r\n\t\t\t\t\tthis.getPlateau()[108].getPion().getCouleur()== couleur_presente && \r\n\t\t\t\t\tthis.getPlateau()[109].getPion().getCouleur()== couleur_presente &&\r\n\t\t\t\t\tthis.getPlateau()[110].getPion().getCouleur()== couleur_presente && \r\n\t\t\t\t\tthis.getPlateau()[111].getPion().getCouleur()== couleur_presente)\r\n\t\t\t{\t\r\n\t\t\t\treturn true;\t\r\n\t\t\t}\t\t\r\n\t\t\r\n\t\telse{\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "5e3110c0d43e00f2cd3e42f9ebacb0a2", "score": "0.5725", "text": "void rellenar_TRE1(int detalle_general){\n int contador;\n int numero_niveles;\n int subdivisiones_acumuladas=0; //suma de subdivisiones de los niveles anteriores\n int zoom_minimo=666; //si el nivel mínimo no es cero, supone mapa general\n int byte1,byte2;\n byte [] tre1_cadena;\n Tipo_Niveles_TRE1 temporal;\n //coloca el puntero al comienzo de TRE1\n this.ajustar_puntero(tre.puntero_inicio+TRE.offset_niveles_TRE1);\n numero_niveles=TRE.tamaño_niveles_TRE1/4;\n tre1_cadena=leer_cadena_bytes(TRE.tamaño_niveles_TRE1);\n if (TRE.bloqueado==true) {\n desencriptar_TRE1(tre1_cadena,TRE.clave);\n }\n //ahora se parsea desde la cadena\n int puntero=0;\n for (contador=0;contador<numero_niveles;contador++) {\n temporal=new Tipo_Niveles_TRE1();\n TRE.TRE1[contador]=temporal;\n TRE.TRE1[contador].zoom=(byte)(tre1_cadena[puntero] & 0x0f);\n puntero++;\n TRE.TRE1[contador].bits_coordenada=(byte)tre1_cadena[puntero];\n puntero++;\n byte1=tre1_cadena[puntero]&0xff;\n puntero++;\n byte2=(tre1_cadena[puntero]&0xff)<<8;\n puntero++;\n TRE.TRE1[contador].subdivisiones=byte1|byte2;\n TRE.TRE1[contador].puntero_primera_subdivision=subdivisiones_acumuladas;\n subdivisiones_acumuladas+=TRE.TRE1[contador].subdivisiones;\n TRE.numero_subdivisiones=subdivisiones_acumuladas;\n if (TRE.TRE1[contador].zoom<zoom_minimo) zoom_minimo=TRE.TRE1[contador].zoom;\n //ajusta el zoom mínimo\n } \n\n\n if (zoom_minimo>0) { //mapa general\n this.mapa_general=true;\n if (zoom_minimo!=detalle_general) { //hay que corregir los niveles de zoom\n for (contador=0;contador<numero_niveles;contador++) {\n TRE.TRE1[contador].zoom+=detalle_general-zoom_minimo;\n }\n }\n }\n }", "title": "" }, { "docid": "102c637d182fc2a4e5dfb8d6a2442ff7", "score": "0.56847155", "text": "private int checkTablero() throws Exception {\n\t\tint estadoPartida = JUGANDO;\n\t //logger.info(\"El estado al comprobar tablero es: \"+ estado);\n\n\t\t// Comprobamos si el tablero esta lleno\n\t\tif (model.isAllBusy()) {\n\t\t\testadoPartida = EMPATE;\n\t\t// Comprueba si intenta ponerse una ficha en una columna invalida\n\t\t// en cuyo caso perderia de forma instantanea\n\t\t} else if (ultimaFicha.getX() < 0 || ultimaFicha.getX() >= GSize) {\n\t\t\tif (ultimaFicha.getTipo() == PIEZA_P1) {\n\t\t\t\tlogger.info(\"player1 ha puesto ficha fuera del tablero\");\n\t\t\t\testadoPartida = P1_RANGO_INCORRECTO;\n\t\t\t} else {\n\t\t\t\tlogger.info(\"player2 ha puesto ficha fuera del tablero\");\n\t\t\t\testadoPartida = P2_RANGO_INCORRECTO;\n\t\t\t}\n\t\t} \n\t\t// Comprueba si intenta poner una ficha en una columna que esta\n\t\t// llena, en cuyo caso perderia de forma instantanea\n\t\telse if (ultimaFicha.getY() == -1) {\n\t\t\tif (ultimaFicha.getTipo() == PIEZA_P1) {\n\t\t\t\tlogger.info(\"player1 ha puesto ficha en una columna llena\");\n\t\t\t\testadoPartida = P1_COLUMNA_LLENA;\n\t\t\t} else {\n\t\t\t\tlogger.info(\"player2 ha puesto ficha en una columna llena\");\n\t\t\t\testadoPartida = P2_COLUMNA_LLENA;\n\t\t\t}\n\t\t}\n\t\t// Comprueba si hay ganador\n\t\telse if (checkGanador(ultimaFicha.getTipo())) {\n\t\t\tif (ultimaFicha.getTipo() == PIEZA_P1) {\n\t\t\t\testadoPartida = P1_GANADOR;\n\t\t\t} else {\n\t\t\t\testadoPartida = P2_GANADOR;\n\t\t\t}\n\t\t} else estadoPartida = estado;\n\t\t\n\t\treturn estadoPartida;\n\t}", "title": "" }, { "docid": "3e5bcb7ac51a539c0f7d979ca9babaeb", "score": "0.5641599", "text": "public int backNivelParaAnalisis(ArrayList<Ficha> fichas, Integer nivel, Tablero tablero, Integer nivelObjetivo) {\n int cantidadTareas = 0;\n for (Ficha f : fichas) {\n if (!f.isUsada()) {\n for (int i = 0; i < 4; i++) {\n tablero.insertarFinal(f);\n if (tablero.esSolucion()) {\n nivel += 1;\n f.setUsada(true);\n tablero.aumentarPosicion();\n if (nivel.equals(nivelObjetivo)) {\n cantidadTareas++;\n } else {\n cantidadTareas+=backNivelParaAnalisis(fichas, nivel, tablero, nivelObjetivo);\n }\n tablero.retrocederPosicion();\n nivel -= 1;\n f.setUsada(false);\n }\n tablero.eliminarUltima();\n f.rotar();\n }\n }\n }\n return cantidadTareas;\n }", "title": "" }, { "docid": "5371567f3522dd08ec234ef48f1093a0", "score": "0.5614883", "text": "public Tabla(Problema problema) {\n calcularM(problema);\n NumRestricciones = problema.restricciones.size();\n casoIgual = new int[NumRestricciones];\n NumVariables = maximoNumSubindices(problema);\n ancho = NumVariables +variablesAdicionales(problema) + 1;\n tabla = new double[NumRestricciones][ancho];\n //msm(\" Valor de la tabla al iniciar, alto: \"+NumRestricciones +\",ancho: \"+ancho);\n int k = NumVariables;\n for (int i = 0; i < NumRestricciones; i++) {\n //incorporar subindices\n for (int ii = 0; ii < NumVariables; ii++) {\n try {\n tabla[i][ii] = problema.restricciones.get(i).subindices[ii];\n } catch (Exception ex) {\n tabla[i][ii] = 0;\n }\n }\n //incorporar variables de holgura\n if (problema.restricciones.get(i).valorZ != 1)/*Excepto en la funcion objetivo*/ {\n if (variablePorSigno(problema.restricciones.get(i).desigualdad) == 1)/*en caso de <= o =*/ {\n tabla[i][k] = 1;\n if (problema.restricciones.get(i).desigualdad == 0)/*en igual tambien se añade M*/ {\n tabla[0][k] = M;\n casoIgual[i] = 1;\n }\n k += 1;\n }\n if (variablePorSigno(problema.restricciones.get(i).desigualdad) == 2)/*en caso de >=*/{\n tabla[i][k] = -1;\n tabla[i][k + 1] = 1;\n k += 2;\n }\n }\n //incorporar resultado\n tabla[i][ancho - 2] = problema.restricciones.get(i).solucion;\n //incorporar Z\n tabla[i][ancho - 1] = problema.restricciones.get(i).valorZ;\n }\n //tabla = Edwin.recortarMatriz(tabla, NumRestricciones, ancho);\n }", "title": "" }, { "docid": "b68b0f83528aaf04bd654d366b2a51ee", "score": "0.5614358", "text": "@Test\n\tpublic void testVerificarPalabras2() {\n\t\t\n\t\tFicha fichaL = new Ficha('L', 1);\n\t\tFicha fichaA = new Ficha('A', 1);\n\t\tFicha fichaT = new Ficha('T', 1);\n\t\tFicha fichaE = new Ficha('E', 1);\n\t\tFicha fichaR = new Ficha('R', 1);\n\t\t\n\t\ttab.setFicha(fichaL, 6, 5);\n\t\ttab.setFicha(fichaA, 7, 5);\n\t\ttab.setFicha(fichaT, 8, 5);\n\t\ttab.setFicha(fichaE, 9, 5);\n\t\ttab.setFicha(fichaR, 10, 5);\n\t\ttab.setFicha(fichaA, 11, 5);\n\t\ttab.setFicha(fichaL, 12, 5);\n\t\t\n\t\tList<Coordenadas> lista = new ArrayList<Coordenadas>();\n\t\tfor(int j = 6; j <= 12; ++j) {\n\t\t\tCoordenadas coord = new Coordenadas(j,5);\n\t\t\tlista.add(coord);\n\t\t}\n\t\t\n\t\t//Verificar\n\t\tboolean actual = g.Verificar(lista, adminTurnos.getJugando(), tab);\n\t\tassertTrue(actual); \n\t\t\n\t\t//Generar palabra verificada esperada\n\t\tScoredWord expected = new ScoredWord(\"lateral\",9,lista.get(0), lista.get(lista.size()-1));\n\n\t\tassertTrue(g.getVerificadas().contains(expected));\n\t}", "title": "" }, { "docid": "335d80d9f1788ccfd44ca7da765b7d6f", "score": "0.5612756", "text": "public void suivant() {\n\tint[][] tmp = grille;\n\tint i,j,c=0,k=0; //c compte le nb de voisins de la meme espece vivant\n\tfor(i=0; i<this.taille;i++) {\n\t for(j=0; j<this.taille; j++) {\n\t\tk=c=0; //reinitialisation\n\t\tint[][] t = {{1,1},{0,1},{-1,1},{-1,0},{-1,-1},{0,-1},{1,-1},{1,0}};\n\n\t\tif (i==0) { //la grille est circulaire\n\t\t t[2][0]=t[3][0]=t[4][0]=this.taille-1;\n\t\t}\n\t\tif (j==0){ //la grille est circulaire\n\t\t t[4][1]=t[5][1]=t[6][1]=this.taille-1;\n\t\t}\n\t\twhile(k<8){ //tant qu'on a pas tester tous les voisins k\n\t\t if(this.grille[(i+t[k][0])%this.taille][(j+t[k][1])%this.taille] == 1) { //vivant\n\t\t\tc++;\n\t\t\t//System.out.println(c);\n\t\t }\n\t\t k++;\n\t\t}\n\t\t//System.out.println(\"grille[\" +i+\"][\"+j+\"] = \"+grille[i][j] +\" a \"+c+\" voisin(s)\");\n\t\tif(c == 3 && this.grille[i][j] == 0) { //cellule actuelle morte avec 3 voisins vivants\n\t\t tmp[i][j] = 1; //etat a t+1\n\t\t}\n\t\tif((c == 2 || c == 3)&&this.grille[i][j] == 1) { //cellule vivante avec 2 ou 3 voisins vivants\n\t\t tmp[i][j] = 1;\n\t\t}\n\t\telse {\n\t\t tmp[i][j] = 0;\n\t\t}\n\t }\n\t}\n\tfor(i=0; i<this.taille;i++) { //boucle sur grille w/ bord\n\t for(j=0; j<this.taille; j++) {\n\t\tthis.grille[i][j] = tmp[i][j];\n\t }\n\t}\n }", "title": "" }, { "docid": "f398780db837ef0ed3180d9b3fa97afd", "score": "0.56076944", "text": "@Test\n\tpublic void testVerificarPalabras1() {\n\t\t\n\t\tFicha fichaL = new Ficha('L', 1);\n\t\tFicha fichaA = new Ficha('A', 1);\n\t\tFicha fichaT = new Ficha('T', 1);\n\t\tFicha fichaE = new Ficha('E', 1);\n\t\tFicha fichaR = new Ficha('R', 1);\n\t\t\n\t\ttab.setFicha(fichaL, 7, 5);\n\t\ttab.setFicha(fichaA, 7, 6);\n\t\ttab.setFicha(fichaT, 7, 7);\n\t\ttab.setFicha(fichaE, 7, 8);\n\t\ttab.setFicha(fichaR, 7, 9);\n\t\ttab.setFicha(fichaA, 7, 10);\n\t\ttab.setFicha(fichaL, 7, 11);\n\t\t\n\t\tList<Coordenadas> lista = new ArrayList<Coordenadas>();\n\t\tfor(int i = 5; i <= 11; ++i) {\n\t\t\tCoordenadas coord = new Coordenadas(7,i);\n\t\t\tlista.add(coord);\n\t\t}\n\t\t\n\t\t//Verificar\n\t\tboolean actual = g.Verificar(lista, adminTurnos.getJugando(), tab);\n\t\tassertTrue(actual); \n\t\t\n\t\t//Generar palabra verificada esperada\n\t\tScoredWord expected = new ScoredWord(\"lateral\",8,lista.get(0), lista.get(lista.size()-1));\n\n\t\tassertTrue(g.getVerificadas().contains(expected));\n\t}", "title": "" }, { "docid": "fc91db588c9217a636a3938997c54af1", "score": "0.5603113", "text": "Vector<TConjEltos> calcularcoleclr1() {\r\n // C := cerradura({[S' ->.S,$]})\r\n // repetir: para cada cjto. de elementos I en C y cada simbolo gramatical X tal que ir_a(I,X) no este vacio y no este en C hacer añadir ir_a(I,X) a C\r\n // hasta: no se pueden añadir mas conjuntos de elementos a C\r\n Vector<TConjEltos> cclr1 = new Vector<TConjEltos>();\r\n TConjEltos I = new TConjEltos();\r\n TConjEltos el2, nuevoconj;\r\n TElemento el;\r\n Vector<String> alfa, santicip, simbol;\r\n TElemIra elira;\r\n TVectorIra ira;\r\n String X;\r\n int posi;\r\n tablaira = new Vector<TVectorIra>();\r\n alfa = getrhs(axioma);\r\n santicip = new Vector<String>();\r\n santicip.addElement(\"$\");\r\n el = new TElemento(axioma, alfa, 0, santicip);\r\n el2 = new TConjEltos();\r\n el2.addElement(el);\r\n el2.calcularcierre(this);\r\n cclr1.addElement(el2);\r\n ira = new TVectorIra();\r\n simbol = new Vector<String>(T);\r\n for (Enumeration e = V.elements(); e.hasMoreElements(); ) {\r\n X = (String)e.nextElement();\r\n if (!X.equalsIgnoreCase(axioma))\r\n simbol.addElement(X);\r\n }\r\n // simbol.addAll(V);\r\n ira.inicializar(simbol);\r\n tablaira.addElement(ira);\r\n int primeranyadido = 0;\r\n int ultanyadido = 0;\r\n do {\r\n for (int j = primeranyadido; j <= ultanyadido; j++) {\r\n I = (TConjEltos)cclr1.elementAt(j);\r\n for (Enumeration e = simbol.elements();\r\n e.hasMoreElements(); ) {\r\n X = (String)e.nextElement();\r\n nuevoconj = I.calcularira(this, X);\r\n if (!nuevoconj.isEmpty()) {\r\n posi = posicion(cclr1,nuevoconj);\r\n if (posi >= 0)\r\n setestadoira(j, X, posi);\r\n else {\r\n cclr1.addElement(nuevoconj);\r\n posi = cclr1.size() - 1;\r\n setestadoira(j, X, posi);\r\n ira = new TVectorIra();\r\n ira.inicializar(simbol);\r\n tablaira.addElement(ira);\r\n }\r\n }\r\n }\r\n }\r\n primeranyadido = ultanyadido + 1;\r\n ultanyadido = cclr1.size() - 1;\r\n } while (ultanyadido >= primeranyadido);\r\n return cclr1;\r\n }", "title": "" }, { "docid": "0d4ab94686665856b8c03fe327216a31", "score": "0.5589047", "text": "public void setCantidad_monedas() {\r\n int posicion = 0;\r\n double saldo_pagado_copia = this.saldo_pagado;\r\n int[] cantidad_monedas_copia = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,\r\n 0};\r\n int[] devolver = this.getCantidad_monedas();\r\n String palabra_tipo_billete = \"cuantos billetes\";\r\n\r\n while (posicion < this.tipos_monedas.length && saldo_pagado_copia != 0) {\r\n if (saldo_pagado_copia < this.tipos_monedas[posicion]\r\n && saldo_pagado_copia != 0) {\r\n posicion++;\r\n } else if (saldo_pagado_copia == 0) {\r\n posicion = this.cantidad_monedas.length;\r\n } else {\r\n if (this.getTipos_monedas()[posicion] < 2) {\r\n palabra_tipo_billete = \"cuantas monedas\";\r\n };\r\n System.out.print(\"Indique \" + palabra_tipo_billete + \" de \"\r\n + this.getTipos_monedas()[posicion]\r\n + \" ha introducido: \");\r\n cantidad_monedas_copia[posicion] = escaner.nextInt();\r\n if (saldo_pagado_copia - this.getTipos_monedas()[posicion]\r\n * cantidad_monedas_copia[posicion] >= 0) {\r\n saldo_pagado_copia = saldo_pagado_copia\r\n - this.getTipos_monedas()[posicion]\r\n * cantidad_monedas_copia[posicion];\r\n posicion++;\r\n } else {\r\n System.out.println(\"El valor introducido es erroneo, \"\r\n + \"intentelo de nuevo\");\r\n }\r\n }\r\n }\r\n if (saldo_pagado_copia == 0) {\r\n devolver = cantidad_monedas_copia;\r\n } else {\r\n System.out.println(\"Se ha equivocado introduciendo las cantidades\");\r\n }\r\n for (posicion = 0; posicion < this.cantidad_monedas.length; posicion++) {\r\n this.cantidad_monedas[posicion] = this.cantidad_monedas[posicion]\r\n + devolver[posicion];\r\n }\r\n\r\n palabra_tipo_billete = \"Tipo billete: \";\r\n System.out.println(\"Tipos y cantidades de billetes/monedas \"\r\n + \"introducidos: \");\r\n\r\n for (posicion = 0; posicion < this.tipos_monedas.length; posicion++) {\r\n if (cantidad_monedas_copia[posicion] <= 2) {\r\n palabra_tipo_billete = \"Tipo moneda: \";\r\n }\r\n if (cantidad_monedas_copia[posicion] != 0) {\r\n System.out.println(palabra_tipo_billete\r\n + this.tipos_monedas[posicion] + \" cantidad: \"\r\n + cantidad_monedas_copia[posicion] + \" unidades\");\r\n }\r\n }\r\n\r\n }", "title": "" }, { "docid": "56ddd089bd7a6f04e4ba6d04101b7bcf", "score": "0.55674636", "text": "public int verificarGanadorJuego() {\n int inicio = 0;\n //Si es en columna\n for (int filas = this.getTablero().getFilas() - 1; filas >= 0; filas--) {\n for (int col = 0; col < this.getTablero().getColumnas() - 3; col++) {\n inicio = this.getTablero().getMatriz()[filas][col];\n if (inicio != 0 && inicio == this.getTablero().getMatriz()[filas][col + 1]\n && inicio == this.getTablero().getMatriz()[filas][col + 2]\n && inicio == this.getTablero().getMatriz()[filas][col + 3]) {\n for (int i = 0; i < 4; i++) {\n this.getConecto4()[i] = new Point(filas, col + i);\n }\n return inicio;\n }\n }\n }\n\n //Si es en fila\n for (int filas = this.getTablero().getFilas() - 1; filas >= 3; filas--) {\n for (int col = 0; col < this.getTablero().getColumnas(); col++) {\n inicio = this.getTablero().getMatriz()[filas][col];\n if (inicio != 0\n && inicio == this.getTablero().getMatriz()[filas - 1][col]\n && inicio == this.getTablero().getMatriz()[filas - 2][col]\n && inicio == this.getTablero().getMatriz()[filas - 3][col]) {\n for (int i = 0; i < 4; i++) {\n this.getConecto4()[i] = new Point(filas - i, col);\n }\n return inicio;\n }\n }\n }\n\n //Si es en diagonal de izquierda inferior y derecha arriba\n for (int filas = this.getTablero().getFilas() - 1; filas >= 3; filas--) {\n for (int col = 0; col < this.getTablero().getColumnas() - 3; col++) {\n inicio = this.getTablero().getMatriz()[filas][col];\n if (inicio != 0\n && inicio == this.getTablero().getMatriz()[filas - 1][col + 1]\n && inicio == this.getTablero().getMatriz()[filas - 2][col + 2]\n && inicio == this.getTablero().getMatriz()[filas - 3][col + 3]) {\n for (int i = 0; i < 4; i++) {\n this.getConecto4()[i] = new Point(filas - i, col + i);\n }\n return inicio;\n }\n }\n }\n\n //Si es en diagonal de izquierda arriba y derecha inferior\n for (int filas = this.getTablero().getFilas() - 1; filas >= 3; filas--) {\n for (int col = this.getTablero().getColumnas() - 1; col >= 3; col--) {\n inicio = this.getTablero().getMatriz()[filas][col];\n if (inicio != 0\n && inicio == this.getTablero().getMatriz()[filas - 1][col - 1]\n && inicio == this.getTablero().getMatriz()[filas - 2][col - 2]\n && inicio == this.getTablero().getMatriz()[filas - 3][col - 3]) {\n for (int i = 0; i < 4; i++) {\n this.getConecto4()[i] = new Point(filas - i, col - i);\n }\n return inicio;\n }\n }\n }\n\n return 0;\n }", "title": "" }, { "docid": "69af6b7e15b5081fae60df68d3d4cb2a", "score": "0.55625284", "text": "private static void problemaNPuzzle(){\n\t\tNPuzzleTabuleiro tabuleiro = new NPuzzleTabuleiro();\n\t\tNPuzzle puzzle = new NPuzzle(tabuleiro);\n\t\tSystem.out.println(\"Estado Inicial\\n\"+puzzle.estadoInicial()+\"\\n\\n\");\n\t\t\n\t\t// 2 - Instânciando Buscas e adicionando em uma lista com cada algoritmo.\n\t\tList<BuscaNaoInformada<NPuzzleTabuleiro, NPuzzle>> buscas = Arrays.asList(\n\t\t\t\tnew BuscaProfundidade<>(puzzle),\n\t\t\t\tnew BuscaLargura<>(puzzle)\n\t\t);\n\t\t\n\t\t\n\t\t// 3 - Executando as buscas em paralelo.\n\t\tbuscas.parallelStream()\n\t\t\t.forEach((busca)-> {\n\t\t\t\tStringBuilder saida = new StringBuilder();\n\t\t\t\tboolean solucaoEncontrada = false;\n\t\t\t\t\n\t\t\t\tSystem.out.println(busca.getClass().getName()+\": Iniciando Busca...\");\n\t\t\t\tlong start = System.currentTimeMillis();\n\t\t\t\t\n\t\t\t\t// 3.1Obtendo passos para solução ou EMPTY caso a busca não tenha encontrado solução.\n\t\t\t\tOptional<List<Acao<NPuzzleTabuleiro>>> acoes = busca.buscar();\n\t\t\t\tif (acoes.isPresent()){\n\t\t\t\t\tsolucaoEncontrada = true;\n\t\t\t\t\t\n\t\t\t\t\t// 3.2 Caso a solução tenha sido encontrada, imprimir passos.\n\t\t\t\t\tfor (Acao<NPuzzleTabuleiro> acao : acoes.get()) {\n\t\t\t\t\t\tsaida.append(acao.getEstadoAlvo());\n\t\t\t\t\t\tsaida.append('\\n');\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tlong end = System.currentTimeMillis();\n\t\t\t\t\n\t\t\t\tSystem.out.println(busca.getClass().getName()\n\t\t\t\t\t\t+ \": busca finalizada, solução encontrada: \"\n\t\t\t\t\t\t+solucaoEncontrada+\" Tempo (ms): \"\n\t\t\t\t\t\t+ (end - start)\n\t\t\t\t\t\t+ \"\\n\"\n\t\t\t\t\t\t+ saida);\n\t\t\t});\n\t}", "title": "" }, { "docid": "d1ef7bf515262da8482c193249d5ab0a", "score": "0.5548601", "text": "public boolean triangleBasConquis(){\r\n\t\tfor(int i=112; i<=121 ; i++){\r\n\t\t\tif (getPlateau()[i].getPion()==null || getPlateau()[i].getPion().getCouleur()!=Color.RED){\r\n\t\t\t\t\r\n\t\t\t\t\treturn false;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\treturn true;\r\n\t}", "title": "" }, { "docid": "7dacf98350ac485d71d973406f31c1e5", "score": "0.5536083", "text": "public void haceDobleTurnosCompleto(){\n if (getFase() ==3){\n boolean b = this.hacerDobleTurnos(); //a nivel de apuesta\n if (b){\n\n this.pedirCarta();\n int val=0;\n if (!this.esSplit()){\n\n val = this.manos[turno/2].getValorMano();\n this.getPlantarse()[turno/2]=true;\n if (val>21) {\n this.getPasarse()[turno/2]=true;\n\n }\n\n }\n else{\n val = this.splitManos[turno/2].getValorMano();\n this.getSplitPlantarse()[turno/2]=true;\n if (val>21) {\n this.getSplitPasarse()[turno/2]=true;\n\n }\n\n\n }\n\n\n }\n //se ha de enviar al cliente la mano que ha pedido el doble o la carta.\n }\n }", "title": "" }, { "docid": "080e92597a83f0d8b42d7c5cf32db710", "score": "0.5533372", "text": "private void dibujarFicha(int fila, int columna) {\n\n\t\tCasillero casillero = juego.obtenerCasillero(fila, columna);\n\t\tint tamanio = new Double(500 / juego.contarFilas()).intValue();\n\n\t\tImage image = crearPintura(casillero);\n\t\tif (image != null) {\n\t\t\tImageView dibujoCasillero = new ImageView(image);\n\t\t\tRotateTransition rt = new RotateTransition(Duration.millis(500),\n\t\t\t\t\tdibujoCasillero);\n\t\t\trt.setAxis(Rotate.Y_AXIS);\n\t\t\trt.setFromAngle(0);\n\t\t\trt.setToAngle(180);\n\t\t\trt.setInterpolator(Interpolator.LINEAR);\n\t\t\trt.setCycleCount(1);\n\t\t\tanimaciones[fila][columna] = rt;\n\t\t\tdibujoCasillero.setFitHeight(500 / juego.contarColumnas());\n\t\t\tdibujoCasillero.setFitWidth(500 / juego.contarFilas());\n\t\t\tdibujar(dibujoCasillero, fila, columna);\n\t\t} else {\n\t\t\tPaint pintura = Color.TRANSPARENT;\n\t\t\tRectangle dibujoCasillero = new Rectangle(tamanio, tamanio);\n\t\t\tdibujoCasillero.setFill(pintura);\n\t\t\tdibujar(dibujoCasillero, fila, columna);\n\t\t}\n\t}", "title": "" }, { "docid": "f00adbf050b9b95c4589b7d86e931f89", "score": "0.5532824", "text": "public void Contenedor(){\r\n String tipo = \"\";\r\n String nombre = \"\";\r\n String imagen = \"\";\r\n String posicionx = \"\";\r\n String posiciony = \"\";\r\n String vida = \"\";\r\n String dano = \"\";\r\n \r\n int recibirx = 0;\r\n int recibiry = 0;\r\n \r\n int especialm = 0;\r\n String remplazo = \"\";\r\n \r\n //para imagenes\r\n\r\n \r\n //Fin de para imagenes\r\n \r\n int seguidor = 0; //variable para sumar filas\r\n int contador = 1; // vriable para enemigo,personaje,complemento\r\n int contador2 = 0;\r\n while(Guardar[seguidor][0]!=null){\r\n if(Guardar[seguidor][0].equals(\"Personaje\") && contador!=6){\r\n tipo = \"Personaje\";\r\n nombre = Guardar[seguidor][2];\r\n seguidor++;\r\n contador++;\r\n vida = Guardar[seguidor][2];\r\n seguidor++;\r\n contador++;\r\n imagen = Guardar[seguidor][2];\r\n seguidor++;\r\n contador++;\r\n posicionx = Guardar[seguidor][2];\r\n seguidor++;\r\n contador++;\r\n posiciony = Guardar[seguidor][2];\r\n contador++;\r\n if(contador == 6){\r\n contador = 0;\r\n \r\n }\r\n concatenar += tipo +\" \"+\" Nombre>:\"+nombre+\" Vida>:\"+vida+\" Imagen>:\"+imagen+\" X>:\"+posicionx+\" Y>:\"+posiciony + \"\\n\";\r\n Objetos[especialm][0] = tipo;\r\n Objetos[especialm][1] = nombre;\r\n Objetos[especialm][2] = vida;\r\n Objetos[especialm][3] = imagen;\r\n Objetos[especialm][4] = posicionx;\r\n Objetos[especialm][5] = posiciony;\r\n \r\n recibirx = Integer.parseInt(posicionx);\r\n recibiry = Integer.parseInt(posiciony);\r\n remplazo = imagen.replace(\"'\", \"\");\r\n nuevo2.GuardaTodo[recibirx][recibiry] = remplazo;\r\n //para mover personaje\r\n nuevo2.recibir = remplazo;\r\n nuevo2.n = recibirx;\r\n nuevo2.m = recibiry;\r\n nuevo2.vida = Integer.parseInt(vida);\r\n // fin de mover\r\n \r\n }else if(Guardar[seguidor][0].equals(\"Bloque\") && contador2!=4){\r\n tipo = \"Bloque\";\r\n posicionx = Guardar[seguidor][2];\r\n seguidor++;\r\n contador2++;\r\n posiciony = Guardar[seguidor][2];\r\n seguidor++;\r\n contador2++;\r\n imagen = Guardar[seguidor][2];\r\n contador2++;\r\n if(contador2 == 4){\r\n contador = 0; \r\n }\r\n concatenar += tipo+\" Imagen>:\"+imagen+\" X>:\"+posicionx+\" Y>:\"+posiciony +\"\\n\";\r\n Objetos[especialm][0] = tipo;\r\n Objetos[especialm][3] = imagen;\r\n Objetos[especialm][4] = posicionx;\r\n Objetos[especialm][5] = posiciony;\r\n \r\n recibirx = Integer.parseInt(posicionx);\r\n recibiry = Integer.parseInt(posiciony);\r\n remplazo = imagen.replace(\"'\", \"\");\r\n nuevo2.GuardaTodo[recibirx][recibiry] = remplazo;\r\n nuevo2.Bloques[bloquefila][0] = posicionx;\r\n nuevo2.Bloques[bloquefila][1] = posiciony;\r\n bloquefila++;\r\n \r\n }else if(Guardar[seguidor][0].equals(\"Enemigo\") && contador!=6){\r\n tipo = \"Enemigo\";\r\n nombre = Guardar[seguidor][2];\r\n seguidor++;\r\n contador++;\r\n imagen = Guardar[seguidor][2];\r\n seguidor++;\r\n contador++;\r\n posicionx = Guardar[seguidor][2];\r\n seguidor++;\r\n contador++;\r\n posiciony = Guardar[seguidor][2];\r\n seguidor++;\r\n contador++;\r\n dano = Guardar[seguidor][2];\r\n contador++;\r\n if(contador == 6){\r\n contador = 0; \r\n }\r\n concatenar += tipo +\" \"+\" Nombre>:\"+nombre+\" Dano>:\"+dano+\" Imagen>:\"+imagen+\" X>:\"+posicionx+\" Y>:\"+posiciony + \"\\n\"; \r\n Objetos[especialm][0] = tipo;\r\n Objetos[especialm][1] = nombre;\r\n Objetos[especialm][2] = dano;\r\n Objetos[especialm][3] = imagen;\r\n Objetos[especialm][4] = posicionx;\r\n Objetos[especialm][5] = posiciony;\r\n \r\n recibirx = Integer.parseInt(posicionx);\r\n recibiry = Integer.parseInt(posiciony);\r\n remplazo = imagen.replace(\"'\", \"\");\r\n \r\n nuevo2.GuardaTodo[recibirx][recibiry] = remplazo;\r\n \r\n //para obetener los datos de enemigos\r\n nuevo2.Enemigos[enemigofila][0] = posicionx;\r\n nuevo2.Enemigos[enemigofila][1] = posiciony;\r\n nuevo2.Enemigos[enemigofila][2] = dano;\r\n enemigofila++;\r\n //\r\n \r\n }else if(Guardar[seguidor][0].equals(\"Salida\")&& contador!=4){\r\n tipo = \"Salida\";\r\n posicionx = Guardar[seguidor][2];\r\n seguidor++;\r\n contador2++;\r\n posiciony = Guardar[seguidor][2];\r\n seguidor++;\r\n contador2++;\r\n imagen = Guardar[seguidor][2];\r\n contador2++;\r\n if(contador2 == 4){\r\n contador = 0; \r\n }\r\n concatenar += tipo+\" Imagen>:\"+imagen+\" X>:\"+posicionx+\" Y>:\"+posiciony +\"\\n\";\r\n Objetos[especialm][0] = tipo;\r\n Objetos[especialm][3] = imagen;\r\n Objetos[especialm][4] = posicionx;\r\n Objetos[especialm][5] = posiciony;\r\n \r\n recibirx = Integer.parseInt(posicionx);\r\n recibiry = Integer.parseInt(posiciony);\r\n remplazo = imagen.replace(\"'\", \"\");\r\n nuevo2.GuardaTodo[recibirx][recibiry] = remplazo;\r\n nuevo2.a = recibirx;\r\n nuevo2.b = recibiry;\r\n \r\n }else if(Guardar[seguidor][0].equals(\"Complemento\")&& contador!=6){\r\n tipo = \"Complemento\";\r\n nombre = Guardar[seguidor][2];\r\n seguidor++;\r\n contador++;\r\n imagen = Guardar[seguidor][2];\r\n seguidor++;\r\n contador++;\r\n vida = Guardar[seguidor][2];\r\n seguidor++;\r\n contador++;\r\n posicionx = Guardar[seguidor][2];\r\n seguidor++;\r\n contador++;\r\n posiciony = Guardar[seguidor][2];\r\n contador++;\r\n if(contador == 6){\r\n contador = 0; \r\n }\r\n concatenar += tipo +\" \"+\" Nombre>:\"+nombre+\" vida>:\"+vida+\" Imagen>:\"+imagen+\" X>:\"+posicionx+\" Y>:\"+posiciony + \"\\n\"; \r\n Objetos[especialm][0] = tipo;\r\n Objetos[especialm][1] = nombre;\r\n Objetos[especialm][2] = vida;\r\n Objetos[especialm][3] = imagen;\r\n Objetos[especialm][4] = posicionx;\r\n Objetos[especialm][5] = posiciony;\r\n \r\n recibirx = Integer.parseInt(posicionx);\r\n recibiry = Integer.parseInt(posiciony);\r\n remplazo = imagen.replace(\"'\", \"\");\r\n nuevo2.GuardaTodo[recibirx][recibiry] = remplazo;\r\n \r\n //para guardar datos\r\n nuevo2.Complementos[complefila][0] = posicionx;\r\n nuevo2.Complementos[complefila][1] = posiciony;\r\n nuevo2.Complementos[complefila][2] = vida;\r\n complefila++;\r\n //fin\r\n \r\n }\r\n seguidor++;\r\n especialm++;\r\n }\r\n System.out.println(concatenar);\r\n }", "title": "" }, { "docid": "6c2be90ecbf47c665e444be99a5fa365", "score": "0.55172575", "text": "public void comite(){\n int mayor = mayor();\n\n boolean termina = llenarResultado(mayor);\n\n int indice = n - acumula[mayor];\n int indice2 = acumula[mayor];\n\n int pos=0;\n\n if(indice<acumula[mayor]){\n acumula[mayor]=0;\n while(!termina){\n pos = encontrarPosicion(indice);\n while(pos != -1){\n termina = llenarResultado(pos);\n pos = encontrarPosicion(indice);\n }\n indice--;\n if(indice==0){\n indice=indice2;\n }\n }\n }else{\n acumula[mayor]=0;\n while(!termina){\n pos = encontrarPosicion(indice2);\n while(pos != -1){\n termina = llenarResultado(pos);\n pos = encontrarPosicion(indice2);\n }\n indice2--;\n }\n }\n }", "title": "" }, { "docid": "c5ac7aaf30c5fe969530b808b043054f", "score": "0.54910076", "text": "public int pruebaCasilla(int f, int c) {\n\t\tthis.disparos++;//aumentamos el nº de disparos\n\t\tint pos = mar[f][c]; //obtenemos el nº que tiene en esa posicion la matriz del mar\n\t\tif (pos < 0) {//comprobamos si el resultado anterior es menor que 0, en ese caso devolvemos la posición que tenía, puesto que no nos interesa hacer nada\n\t\t\treturn pos;\n\n\t\t} else { //de lo contrario debemos o bien poner -2 o -3 segun corresponda, y devolver o -2 o el nº del barco\n\t\t\tbarcos.get(pos).tocaBarco(); //incrementamos el nº de disparos que se le han hecho a un barco\n\t\t\tif (barcos.get(pos).getTocadas() == barcos.get(pos).getTamanyo()) { //si el nº de disparos al barco es igual a su tamaño-->hundirlo\n\t\t\t\tint filaIni = barcos.get(pos).getFilaInicial(); //obtenemos la fila de la casilla inicial del barco\n\t\t\t\tint colIni = barcos.get(pos).getColumnaInicial(); //obtenemos la columna de la casilla inicial del barco\n\t\t\t\tint cant = barcos.get(pos).getTamanyo(); //obtenemos el tamaño del barco\n\t\t\t\tif (barcos.get(pos).getOrientacion() == 'V') { //comprobamos si su horientacion es vertical u horizontal\n\t\t\t\t\tint cont = 0;\n\t\t\t\t\tfor (int i = filaIni; cont < cant; i++) {//ponemos las casillas correspondientes al barco a -3\n\t\t\t\t\t\tmar[i][colIni] = HUNDIDO;\n\t\t\t\t\t\tcont++;\n\t\t\t\t\t}\n\t\t\t\t} else { //haremos lo mismo que anteriormente, pero para barcos con posicion horizontal\n\t\t\t\t\tint cont = 0;\n\t\t\t\t\tfor (int i = colIni; cont < cant; i++) {\n\t\t\t\t\t\tmar[filaIni][i] = HUNDIDO;\n\t\t\t\t\t\tcont++;\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t\tthis.quedan--; //decrementamos el contador de barcos que quedan sin hundir\n\t\t\t\treturn pos; //devolvemos el nº del barco hundido\n\t\t\t} else { //si el barco solo ha sido tocado\n\t\t\t\tmar[f][c] = TOCADO; //marcamos la casilla como tocado(-2)\n\t\t\t\treturn TOCADO; //Devolvemos -2\n\t\t\t}\n\n\t\t}\n\n\t}", "title": "" }, { "docid": "c4025a87a54417070cbe678103a1da2e", "score": "0.5448223", "text": "public int nroTerritorios(){ return terriConquistado.size();}", "title": "" }, { "docid": "967e68fe20a20586f41485e87357641f", "score": "0.544173", "text": "public int turno(){\n boolean empate=true;\n boolean ult_movimiento= true;\n //Recorre el array 3d y pone el numero de jugador ke\n // ha marcado en las posiciones que le corresponden\n for (int i= 0; i<CONBINACIONES.length;i++){\n for(int pos:CONBINACIONES[i]){\n if (casillasestado[pos]!=jugador){\n ult_movimiento= false;\n //evalua si el numero de jugador esta en las tres posiciones\n //si en alguna no esta devuelve false\n //si los tres son iguales al jugador ult_mov es true y ha ganado\n }\n if (casillasestado[pos]==0){\n empate= false;\n }\n\n }\n if (ult_movimiento){\n return jugador;\n //si ult_movimiento es true termina la ejecucion\n }\n ult_movimiento= true;\n }\n //comprueba si hay empate, si ha encontrado un 0 en el array casillaestado\n if (empate){\n return 3;\n }\n jugador++;\n if (jugador>2){\n jugador= 1;\n }\n return 0;\n }", "title": "" }, { "docid": "b4cbe6bd3cbb2786972c849d2f107fa0", "score": "0.54261154", "text": "public int procesar_rgn() {\n int valor_int;\n int offset_rgn;\n int contador;\n int contador2;\n int numero_secciones;\n int [] punteros=new int[5]; //punteros a las secciones de cada subdivisión\n int tamaño_rgn;\n Tipo_Subdivisiones_TRE2 subdivision;\n if (tre_procesado==false) { //no hay información de subdivisiones disponible\n ultimo_error=\"Falta el proceso previo del subarchivo TRE.\";\n return 1;\n }\n RGN = new Tipo_RGN(TRE.numero_subdivisiones);\n this.ajustar_puntero(rgn.puntero_inicio+0x15);\n offset_rgn=leer_quad(); //offset dentro de RGN al comienzo de datos\n tamaño_rgn=leer_quad();\n for (contador=0;contador<TRE.numero_subdivisiones;contador++) {\n //subdivision=(Tipo_Subdivisiones_TRE2) TRE.TRE2.elementAt(contador);\n subdivision=TRE.TRE2[contador];\n //cuenta elnúmero de secciones que contiene la subdivisión\n numero_secciones=0;\n if (subdivision.objetos_puntos==true) numero_secciones++;\n if (subdivision.objetos_puntos_indexados==true) numero_secciones++;\n if (subdivision.objetos_polilineas==true) numero_secciones++;\n if (subdivision.objetos_poligonos==true) numero_secciones++;\n if (numero_secciones==0) continue; //no hay geometría, pasa a la siguiente subdivisión\n if (numero_secciones>1) {//si hay más de una sección, habrá que leer del subarchivo, así que hay que ubicar el puntero\n this.ajustar_puntero(rgn.puntero_inicio+offset_rgn+subdivision.puntero_RGN);\n }\n //lectura de los punteros\n punteros[0]=2*(numero_secciones-1); //no hay puntero a la primera sección\n for (contador2=1;contador2<numero_secciones;contador2++) {\n punteros[contador2]=leer_palabra();\n }\n //el último puntero se rellena con la posición de comienzo de la siguiente subdivisión.\n //si ya se está en la última, hay que usar el tamaño del subarchivo\n if (contador<(TRE.numero_subdivisiones-1)) {\n //punteros[numero_secciones]=((Tipo_Subdivisiones_TRE2)TRE.TRE2.elementAt(contador+1)).puntero_RGN-subdivision.puntero_RGN;\n punteros[numero_secciones]=TRE.TRE2[contador+1].puntero_RGN-subdivision.puntero_RGN;\n } else {\n //si se trata de la última sección, hay que restar al tamaño del subarchivo la posición de la última subdivisión\n punteros[numero_secciones]=tamaño_rgn-subdivision.puntero_RGN;\n }\n //los punteros se ajustan a posiciones absolutas dentro del archivo IMG\n for (contador2=0;contador2<=numero_secciones;contador2++) {\n punteros[contador2]+=rgn.puntero_inicio+offset_rgn+subdivision.puntero_RGN;\n }\n numero_secciones = 0; //se vuelve a utilizar la variable para asignar los punteros a sus zonas\n if (subdivision.objetos_puntos==true) {\n RGN.puntero_puntos[contador]=punteros[numero_secciones];\n RGN.final_puntos[contador]=punteros[numero_secciones+1]-1;\n numero_secciones++;\n }\n if (subdivision.objetos_puntos_indexados==true) {\n RGN.puntero_puntos_indexados[contador]=punteros[numero_secciones];\n RGN.final_puntos_indexados[contador]=punteros[numero_secciones+1]-1;\n numero_secciones++;\n }\n if (subdivision.objetos_polilineas==true) {\n RGN.puntero_polilineas[contador]=punteros[numero_secciones];\n RGN.final_polilineas[contador]=punteros[numero_secciones+1]-1;\n numero_secciones++;\n }\n if (subdivision.objetos_poligonos==true) {\n RGN.puntero_poligonos[contador]=punteros[numero_secciones];\n RGN.final_poligonos[contador]=punteros[numero_secciones+1]-1;\n numero_secciones++;\n }\n //if (contador%200==0) System.gc();\n }\n rgn_procesado=true;\n ultimo_error=\"\";\n return 0;\n }", "title": "" }, { "docid": "666bfd3bbe9c2f2d9e8386b01ca4b1b9", "score": "0.5423583", "text": "private void fin(Casilla[][] tablero){\n\t\tfor(int i = 0; i < tablero.length; i++){//Si se cliqueo una mina\n\t\t\tfor(int j = 0; j < tablero[i].length; j++){\n\t\t\t\tif(tablero[i][j] instanceof Minas){\n\t\t\t\t\tif(tablero[i][j].de_frente) {\n\t\t\t\t\t\tMarco.queMarco(Tablero.this).getPanel().killCrono();//Parar el reloj\t\t\n\t\t\t\t\t\treiniciar(JOptionPane.showConfirmDialog(null, \"Perdiste ;(\\nQuieres empezar de nuevo?\", \"Derrota\", 0, 1, null));\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfor(int i = 0; i < tablero.length; i++){//Si se cliquearon todas las noMinas\n\t\t\tfor(int j = 0; j < tablero[i].length; j++){\n\t\t\t\tif(tablero[i][j] instanceof NoMinas){\n\t\t\t\t\tif(!tablero[i][j].de_frente)\n\t\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tMarco.queMarco(Tablero.this).getPanel().killCrono();//Parar el reloj\t\n\t\treiniciar(JOptionPane.showConfirmDialog(null, \"Felicidades Ganaste!!!!\\nQuieres empezar de nuevo?\", \"Victoria\", 0, 1, null));\n\t}", "title": "" }, { "docid": "c5cd38cfa927658707c5e7b0e5cb1605", "score": "0.54129094", "text": "void altaMasiva() {\n\t\tfor (int i = 0; i < 3; i++) {\n\t\t\ttry {\n\t\t\t\tfiguritas.add(new Rectangulo(numeroAleatorio(), numeroAleatorio()));\n\t\t\t} catch (DimensionMenorQueCeroException e) {\n\t\t\t\tSystem.err.println(e.getMessage());\n\t\t\t}\n\t\t\ttry {\n\t\t\t\tfiguritas.add(new Cuadrado(numeroAleatorio()));\n\t\t\t} catch (DimensionMenorQueCeroException e) {\n\t\t\t\tSystem.err.println(e.getMessage());\n\t\t\t}\n\t\t\ttry {\n\t\t\t\tfiguritas.add(new Circunferencia(numeroAleatorio()));\n\t\t\t} catch (DimensionMenorQueCeroException e) {\n\t\t\t\tSystem.err.println(e.getMessage());\n\t\t\t}\n\t\t\ttry {\n\t\t\t\tfiguritas.add(new TrianguloRectangulo(numeroAleatorio(), numeroAleatorio()));\n\t\t\t} catch (DimensionMenorQueCeroException e) {\n\t\t\t\tSystem.err.println(e.getMessage());\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(toString());\n\t}", "title": "" }, { "docid": "f33bfc201a38cacb26534cf506874a79", "score": "0.5404403", "text": "public void comer(int comidita){\r\n int fuerza, aux;\r\n if (comidita > this.getComida()){\r\n System.out.println(\"No tienes la comida suficiente!!\");\r\n\t\t\treturn;\r\n\t\t}\r\n else if (comidita < 3){\r\n\t\t\tSystem.out.println(\"Comiste, pero no te alcanzo para subir tu fuerza\");\r\n\t\t\tthis.setComida(this.getComida() - comidita);\r\n\t\t}\r\n\t\tfuerza = comidita / 3;\r\n\t\tthis.setFuerza(this.getFuerza() + fuerza);\r\n System.out.println(\"MMMMMMMH....... Comi \" + comidita + \" platitos (porque estoy chiquito) y gane \" +fuerza+ \" de fuerza >:)\" );\r\n aux = fuerza * 3;\r\n this.setComida(this.getComida() - aux);\r\n\t}", "title": "" }, { "docid": "fd5ecde4fa49497189693a120d0b2abc", "score": "0.53974354", "text": "private void verificaColumna(int Turno, int noColumnas) {\r\n int suma = 0;\r\n for (int i = noColumnas; i < 43; ) {\r\n if (Aplicacion.cell[i - 1].getColourCelda() == Turno) {\r\n suma ++ ;\r\n if (suma == 4) {\r\n // 2 = verde 1 =rojo\r\n if (Turno == 1) {\r\n Game.miDialogo.findViewById(R.id.layoutback).setBackground(getResources().getDrawable(R.drawable.borde_rounded2));\r\n txtWinner = Game.miDialogo.findViewById(R.id.txtGanador);\r\n ganador = \"El ganador es\" + Aplicacion.jugador1;\r\n txtWinner.setText(ganador);\r\n Game.miDialogo.show();\r\n } else {\r\n {\r\n Game.miDialogo.findViewById(R.id.layoutback).setBackground(getResources().getDrawable(R.drawable.borde_rounded3));\r\n txtWinner = Game.miDialogo.findViewById(R.id.txtGanador);\r\n ganador = \"El ganador es\" + Aplicacion.jugador2;\r\n txtWinner.setText(ganador);\r\n Game.miDialogo.show();\r\n }\r\n }\r\n\r\n }\r\n } else {\r\n suma = 0;\r\n }\r\n i = i +7;\r\n }\r\n\r\n }", "title": "" }, { "docid": "4424fa3ed9e9561b1a91f88c7629abf6", "score": "0.53968614", "text": "private static void problemaLocalizacao(){\n\t\tGrafo<Local> mapa = Grafo.<Local>builder()\n\t\t\t\t.addLigacaoBiderecional(new Local(\"Orades\"), new Local(\"Zerind\"), Custo.de(71d))\n\t\t\t\t.addLigacaoBiderecional(new Local(\"Orades\"), new Local(\"Sibiu\"), Custo.de(151d))\n\t\t\t\t.addLigacaoBiderecional(new Local(\"Zerid\"), new Local(\"Arad\"), Custo.de(75d))\n\t\t\t\t.addLigacaoBiderecional(new Local(\"Arad\"), new Local(\"Sibiu\"), Custo.de(140d))\n\t\t\t\t.addLigacaoBiderecional(new Local(\"Arad\"), new Local(\"Temisoara\"), Custo.de(118d))\n\t\t\t\t.addLigacaoBiderecional(new Local(\"Temisoara\"), new Local(\"Lugoj\"), Custo.de(111d))\n\t\t\t\t.addLigacaoBiderecional(new Local(\"Lugoj\"), new Local(\"Mehadia\"), Custo.de(70d))\n\t\t\t\t.addLigacaoBiderecional(new Local(\"Mehadia\"), new Local(\"Dobreta\"), Custo.de(75d))\n\t\t\t\t.addLigacaoBiderecional(new Local(\"Dobreta\"), new Local(\"Craiova\"), Custo.de(120d))\n\t\t\t\t.addLigacaoBiderecional(new Local(\"Craiova\"), new Local(\"RimnicuVilcea\"), Custo.de(146d))\n\t\t\t\t.addLigacaoBiderecional(new Local(\"Craiova\"), new Local(\"Pitesti\"), Custo.de(138d))\n\t\t\t\t.addLigacaoBiderecional(new Local(\"RimnicuVilcea\"), new Local(\"Sibiu\"), Custo.de(146d))\n\t\t\t\t.addLigacaoBiderecional(new Local(\"RimnicuVilcea\"), new Local(\"Pitesti\"), Custo.de(97d))\n\t\t\t\t.addLigacaoBiderecional(new Local(\"Sibiu\"), new Local(\"Fagaras\"), Custo.de(99d))\n\t\t\t\t.addLigacaoBiderecional(new Local(\"Fagaras\"), new Local(\"Bucareste\"), Custo.de(211d))\n\t\t\t\t.addLigacaoBiderecional(new Local(\"Pitesti\"), new Local(\"Bucareste\"), Custo.de(101d))\n\t\t\t\t.build();\n\t\t\t\t\n\t\tLocalizacao localizacao = new Localizacao(mapa, new Local(\"Arad\"), new Local(\"Bucareste\"));\n\t\t\n\t\tSystem.out.println(\"Estado Inicial\\n\"+localizacao.estadoInicial()+\"\\n\\n\");\n\t\t\n\t\t// 2 - Instânciando Buscas e adicionando em uma lista com cada algoritmo.\n\t\tList<BuscaNaoInformada<Local, Localizacao>> buscas = Arrays.asList(\n\t\t\t\tnew BuscaProfundidade<>(localizacao),\n\t\t\t\tnew BuscaLargura<>(localizacao)\n\t\t);\n\t\t\n\t\t\n\t\t// 3 - Executando as buscas em paralelo.\n\t\tbuscas.parallelStream()\n\t\t\t.forEach((busca)-> {\n\t\t\t\tStringBuilder saida = new StringBuilder();\n\t\t\t\tboolean solucaoEncontrada = false;\n\t\t\t\t\n\t\t\t\tSystem.out.println(busca.getClass().getName()+\": Iniciando Busca...\");\n\t\t\t\tlong start = System.currentTimeMillis();\n\t\t\t\t\n\t\t\t\t// 3.1Obtendo passos para solução ou EMPTY caso a busca não tenha encontrado solução.\n\t\t\t\tOptional<List<Acao<Local>>> acoes = busca.buscar();\n\t\t\t\tif (acoes.isPresent()){\n\t\t\t\t\tsolucaoEncontrada = true;\n\t\t\t\t\t\n\t\t\t\t\t// 3.2 Caso a solução tenha sido encontrada, imprimir passos.\n\t\t\t\t\tfor (Acao<Local> acao : acoes.get()) {\n\t\t\t\t\t\tsaida.append(acao);\n\t\t\t\t\t\tsaida.append('\\n');\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tlong end = System.currentTimeMillis();\n\t\t\t\t\n\t\t\t\tSystem.out.println(busca.getClass().getName()\n\t\t\t\t\t\t+ \": busca finalizada, solução encontrada: \"\n\t\t\t\t\t\t+solucaoEncontrada+\" Tempo (ms): \"\n\t\t\t\t\t\t+ (end - start)\n\t\t\t\t\t\t+ \"\\n\"\n\t\t\t\t\t\t+ saida);\n\t\t\t});\n\t}", "title": "" }, { "docid": "7339717ffd5cb4682e569dc42e7cda48", "score": "0.539193", "text": "private int sprawdzkonta() {\r\n int zwrot = 0;\r\n if (wykazkont == null || wykazkont.size() == 0) {\r\n zwrot = 1;\r\n } else {\r\n for (Konto p : wykazkont) {\r\n if (p.isSlownikowe() == true) {\r\n zwrot = 2;\r\n break;\r\n }\r\n }\r\n }\r\n return zwrot;\r\n }", "title": "" }, { "docid": "48b2b4ff2e4803dafb2a99347b461b6f", "score": "0.5388753", "text": "protected String[] recuperaBottoni() {\n /** variabili e costanti locali di lavoro */\n ResourceBundle unaRisorsa = null;\n String unTestoBottone = \"\";\n ArrayList listaBottoni = null;\n String unFile = PATH_BASE + \"testo.TestoDati\";\n int maxBottoni = 0;\n\n listaBottoni = new ArrayList();\n\n /** massimo numero teorico dei bottoni (volutamente grande) */\n maxBottoni = 99;\n\n /** valori di default dei bottoni */\n String[] bottoni = {\"Si\", \"No\"};\n\n /** recupera il file di preferenze */\n try {\n unaRisorsa = ResourceBundle.getBundle(unFile);\n } catch (Exception unErrore) {\n /* mostra il messaggio di errore */\n Errore.crea(unErrore);\n } /* fine del blocco try-catch */\n\n /** ciclo for sicuramente superiore al numero reale dei bottoni */\n for (int k = 1; k < maxBottoni; k++) {\n /** prova ad eseguire il codice */\n try {\n unTestoBottone = unaRisorsa.getString(unaChiave + k);\n if (Lib.Testo.isValida(unTestoBottone)) {\n listaBottoni.add(unTestoBottone);\n } else {\n } /* fine del blocco if/else */\n } catch (Exception unErrore) {\n /** mostra il messaggio di errore */\n break;\n } /* fine del blocco try-catch */\n } /* fine del blocco for */\n\n /** valore di ritorno */\n if (listaBottoni.size() > 0) {\n return (String[])listaBottoni.toArray(bottoni);\n } else {\n return bottoni;\n } /* fine del blocco if/else */\n }", "title": "" }, { "docid": "ad118accbae63a7fa9f0a5c3936483f5", "score": "0.5374131", "text": "public String atira(String resposta) {\n String proximoTiro = null;\n\n //Começa jogo\n if (resposta.equals(\"i\")) {\n ultimoTiro = \"00\";\n return ultimoTiro;\n }\n\n //Obtém último tiro\n ultimaLinha = Integer.parseInt(ultimoTiro.substring(0, 1)); //Integer.parseInt(historicoTiros.get(historicoTiros.size() - 1).substring(0, 1));\n ultimaColuna = Integer.parseInt(ultimoTiro.substring(1, 2)); //Integer.parseInt(historicoTiros.get(historicoTiros.size() - 1).substring(1, 2));\n\n //Preenche tabuleiro de controle o alvo do último tiro\n tabuleiroAdversario[ultimaLinha][ultimaColuna] = resposta;\n\n //Se tiro foi correto acrescenta na lista\n if (!resposta.equals(\"a\")) {\n //System.out.println(\"tiro \" + ultimoTiro);\n historicoTiros.add(ultimoTiro);\n }\n\n //Obtém última peça acertada no tabuleiro, caso haja alguma incompleta\n if (pecasAcertadas > 0) {\n ultimaLinha = Integer.parseInt(historicoTiros.get(historicoTiros.size() - 1).substring(0, 1));\n ultimaColuna = Integer.parseInt(historicoTiros.get(historicoTiros.size() - 1).substring(1, 2));\n }\n\n //Chama a função correta após a resposta\n if (resposta.equals(\"h\")) {\n proximoTiro = tiroHidroaviao();\n } else if (resposta.equals(\"s\")) {\n proximoTiro = tiroSubmarino();\n } else if (resposta.equals(\"d\")) {\n proximoTiro = tiroDestroyer();\n } else if (resposta.equals(\"e\")) {\n proximoTiro = tiroEncouracado();\n } else if (resposta.equals(\"c\")) {\n proximoTiro = tiroCruzador();\n } else if (resposta.equals(\"a\")) {\n if (pecasAcertadas == 0) {\n proximoTiro = tiroAgua();\n } else {\n pecasAcertadas--;\n\n if (embarcacaoAcertada.equals(\"h\")) {\n proximoTiro = tiroHidroaviao();\n } else if (embarcacaoAcertada.equals(\"s\")) {\n proximoTiro = tiroSubmarino();\n } else if (embarcacaoAcertada.equals(\"d\")) {\n proximoTiro = tiroDestroyer();\n } else if (embarcacaoAcertada.equals(\"e\")) {\n proximoTiro = tiroEncouracado();\n } else if (embarcacaoAcertada.equals(\"c\")) {\n proximoTiro = tiroCruzador();\n }\n }\n }\n\n ultimoTiro = proximoTiro;\n\n return proximoTiro;\n }", "title": "" }, { "docid": "f9c2bb60d69d74b7316f4638a3f57ac6", "score": "0.5374077", "text": "private boolean verifierTriangulaireInferieur() {\n\t\tint ctrLnColZero = 0; // Compteur du nombre de fois que i > j\n\t\tint ctrValeurZero = 0; // Compteur du nombre de fois que c[i,j] = 0\n\n\t\tfor (int ligne = 0; ligne < getLignes(); ligne++) \n\t\t\tfor (int colonne = 0; colonne < getColonnes(); colonne++)\n\t\t\t\tif (ligne < colonne) {\n\t\t\t\t\tctrLnColZero++;\n\t\t\t\t\tif (getElement(ligne, colonne) == 0)\n\t\t\t\t\t\tctrValeurZero++;\n\t\t\t\t}\n\t\t\t\t\t\n\t\t\treturn (ctrLnColZero == ctrValeurZero);\t\t\n\t\t}", "title": "" }, { "docid": "b98242fc88e250cd563be9226f491766", "score": "0.53569347", "text": "public Ruta obtenerRutaInicial(Problema problema){\r\n \r\n ArrayList<Ciudad> listaCiudadesAux = new ArrayList<>();\r\n listaCiudadesAux=problema.getListaCiudades();\r\n\tRuta ordenViaje = new Ruta(listaCiudadesAux.size());\r\n\tdouble yMax =listaCiudadesAux.get(0).getPosicion().ObtieneCoordenada_y();\r\n double xMax =listaCiudadesAux.get(0).getPosicion().ObtieneCoordenada_x();\r\n double xMin =listaCiudadesAux.get(0).getPosicion().ObtieneCoordenada_x();\r\n\tint pos1=0,pos2=0,pos3=0;\r\n \r\n\t\t//Buscamos la coordenada Y mayor.\r\n\tfor (int i=1;i<listaCiudadesAux.size();i++){\r\n if(listaCiudadesAux.get(i).getPosicion().ObtieneCoordenada_y()> yMax ){\r\n\t\tyMax=listaCiudadesAux.get(i).getPosicion().ObtieneCoordenada_y();\r\n pos1=i;\r\n // visitados[i]=true;\r\n }\r\n\t}\r\n\t\t//Buscamos la coordenada X mayor.\r\n\tfor (int j=1;j<listaCiudadesAux.size();j++){\r\n if(listaCiudadesAux.get(j).getPosicion().ObtieneCoordenada_x()> xMax ){\r\n\t\txMax=listaCiudadesAux.get(j).getPosicion().ObtieneCoordenada_x();\r\n pos2=j;\r\n // visitados[j]=true;\r\n }\r\n\t}\r\n //Buscamos la coordenada X menor.\r\n\tfor (int k=1;k<listaCiudadesAux.size();k++){\r\n if(listaCiudadesAux.get(k).getPosicion().ObtieneCoordenada_x()< xMin ){\r\n\t\txMin=listaCiudadesAux.get(k).getPosicion().ObtieneCoordenada_x();\r\n pos3=k;\r\n // visitados[k]=true;\r\n }\r\n\t}\r\n \r\n\tordenViaje.addCiudad(pos1);\r\n\tordenViaje.addCiudad(pos2);\r\n\tordenViaje.addCiudad(pos3);\r\n\t\t\r\n\treturn ordenViaje;\r\n }", "title": "" }, { "docid": "eff5b42c965addb872ba7abd95fb36b5", "score": "0.53551704", "text": "public void cambiaTipos(){\n\tint total = mundo.getAncho()*mundo.getAlto(); /* El total de Celdas */\n\tArrayList<Celda> a = mundo.toArrayList(); /* El mundo representado \n\t\t\t\t\t\t como ArrayList */\n\tCollections.sort(a);\n\tint contador = 0; /* Contador */\n\tfor(Celda c: a){\n\t if(contador <= total/3.0)\n\t\tc.setTipo(TipoCelda.PROBABILIDAD_BAJA);\n\t else if(contador <= 2*total/3.0)\n\t\tc.setTipo(TipoCelda.PROBABILIDAD_MEDIA);\n\t else\n\t\tc.setTipo(TipoCelda.PROBABILIDAD_ALTA);\n\t contador++;\n\t}\n }", "title": "" }, { "docid": "cfdb40aa1d7ffe678d1bd786fdd1f922", "score": "0.53519535", "text": "public Map\r\n consultarDadosContasBaixadasContabilmenteTXT(\r\n Integer referenciaInicio, Integer referenciaFinal,\r\n Integer idQuadra, Integer faixa,Short periodicidade)throws ControladorException{\r\n \r\n StringBuilder contasBaixadasContabilmenteTXT = null;\r\n Collection colecaoDadosContasBaixadasContabilmente = null;\r\n \r\n Map retorno = new HashMap();\r\n \r\n try {\r\n \r\n if (faixa.equals(ConstantesSistema.FAIXA_1)){\r\n \r\n colecaoDadosContasBaixadasContabilmente = repositorioFinanceiro\r\n .consultarDadosContasBaixadasContabilmentePorQuadraFaixa1(\r\n referenciaInicio, referenciaFinal, idQuadra, periodicidade);\r\n \r\n }else if (faixa.equals(ConstantesSistema.FAIXA_2)){\r\n \r\n colecaoDadosContasBaixadasContabilmente = repositorioFinanceiro\r\n .consultarDadosContasBaixadasContabilmentePorQuadraFaixa2(\r\n referenciaInicio, referenciaFinal, idQuadra, periodicidade);\r\n \r\n }else if (faixa.equals(ConstantesSistema.FAIXA_3)){\r\n \r\n colecaoDadosContasBaixadasContabilmente = repositorioFinanceiro\r\n .consultarDadosContasBaixadasContabilmentePorQuadraFaixa3(\r\n referenciaInicio, referenciaFinal, idQuadra,periodicidade);\r\n }\r\n\r\n if (colecaoDadosContasBaixadasContabilmente != null \r\n && !colecaoDadosContasBaixadasContabilmente.isEmpty()) {\r\n\r\n Iterator iteratorColecaoDadosContasBaixadasContabilmente = colecaoDadosContasBaixadasContabilmente.iterator();\r\n contasBaixadasContabilmenteTXT = new StringBuilder();\r\n \r\n StringBuilder contaTxt = null;\r\n Imovel imovel = null;\r\n Localidade localidade = null;\r\n SetorComercial setorComercial = null;\r\n Quadra quadra = null;\r\n \r\n while (iteratorColecaoDadosContasBaixadasContabilmente.hasNext()) {\r\n\r\n Object[] arrayDados = (Object[]) \r\n iteratorColecaoDadosContasBaixadasContabilmente.next();\r\n\r\n contaTxt = new StringBuilder();\r\n imovel = new Imovel();\r\n \r\n //referencia Baixa Contabil\r\n String referenciaBaixaContabil = \"\";\r\n if (arrayDados[0] != null) {\r\n referenciaBaixaContabil = Util.formatarAnoMesParaMesAno((Integer) arrayDados[0]);\r\n }\r\n \r\n //matricula e endereço do imovel \r\n String matriculaImovel = \"\";\r\n String endereco = \"\";\r\n if (arrayDados[1] != null) {\r\n matriculaImovel = ((Integer) arrayDados[1]).toString();\r\n \r\n endereco = getControladorEndereco().pesquisarEndereco((Integer) arrayDados[1]);\r\n }\r\n \r\n //referencia da fatura\r\n String referenciaFatura = \"\";\r\n if (arrayDados[2] != null) {\r\n referenciaFatura = Util.formatarAnoMesParaMesAno((Integer) arrayDados[2]);\r\n }\r\n \r\n //id Localidade\r\n localidade = new Localidade();\r\n if (arrayDados[3] != null) {\r\n localidade.setId((Integer) arrayDados[3]);\r\n imovel.setLocalidade(localidade);\r\n }\r\n \r\n //codigo do setor comercial\r\n setorComercial = new SetorComercial();\r\n if (arrayDados[4] != null) {\r\n setorComercial.setId((Integer) arrayDados[4]);\r\n imovel.setSetorComercial(setorComercial);\r\n }\r\n \r\n //numero da quadra\r\n if (arrayDados[5] != null) {\r\n quadra = new Quadra();\r\n quadra.setNumeroQuadra((Integer) arrayDados[5]);\r\n imovel.setQuadra(quadra);\r\n }\r\n \r\n //lote\r\n if (arrayDados[6] != null) {\r\n imovel.setLote((Short) arrayDados[6]);\r\n }\r\n \r\n if (arrayDados[7] != null) {\r\n imovel.setLote((Short) arrayDados[7]);\r\n }\r\n \r\n //valor da conta\r\n String valorContaFormatado = \"\";\r\n if (arrayDados[8] != null) {\r\n BigDecimal valorConta = (BigDecimal) arrayDados[8];\r\n valorContaFormatado = Util.formatarMoedaReal(valorConta);\r\n }\r\n \r\n //nome do usuario\r\n String nomeUsuario = \"\";\r\n if (arrayDados[9] != null) {\r\n nomeUsuario = (String) arrayDados[9];\r\n }\r\n \r\n //situação de ligacao agua\r\n String situacaoAgua = \"\";\r\n if (arrayDados[10] != null) {\r\n situacaoAgua = (String) arrayDados[10];\r\n }\r\n \r\n //situação de ligação esgoto\r\n String situacaoEsgoto = \"\";\r\n if (arrayDados[11] != null) {\r\n situacaoEsgoto = (String) arrayDados[11];\r\n }\r\n \r\n contaTxt.append(Util.completaString(referenciaBaixaContabil,10));\r\n contaTxt.append(Util.completaString(matriculaImovel,12));\r\n contaTxt.append(Util.completaString(imovel.getInscricaoFormatada(),23));\r\n contaTxt.append(Util.completaString(nomeUsuario,53));\r\n contaTxt.append(Util.completaString(endereco,53));\r\n contaTxt.append(Util.completaString(situacaoAgua,23));\r\n contaTxt.append(Util.completaString(situacaoEsgoto,23));\r\n contaTxt.append(Util.completaString(referenciaFatura,10));\r\n contaTxt.append(Util.completaStringComEspacoAEsquerda(valorContaFormatado,15));\r\n \r\n contasBaixadasContabilmenteTXT.append(contaTxt.toString());\r\n \r\n contaTxt = null;\r\n contasBaixadasContabilmenteTXT.append(System.getProperty(\"line.separator\"));\r\n \r\n iteratorColecaoDadosContasBaixadasContabilmente.remove();\r\n }\r\n }\r\n \r\n colecaoDadosContasBaixadasContabilmente = null;\r\n retorno.put(\"linhasTXT\",contasBaixadasContabilmenteTXT);\r\n \r\n return retorno;\r\n \r\n } catch (ErroRepositorioException ex) {\r\n throw new ControladorException(\"erro.sistema\", ex);\r\n }\r\n\r\n }", "title": "" }, { "docid": "2e9fe56190405d4853192758ac1f0bcd", "score": "0.5346647", "text": "private boolean librePosiciones(int fila, int col, int tam, char ori) {\n\t\tint i;\n\t\tif (ori == 'H') {\n\t\t\ti = ((col > 0) ? -1 : 0);\n\t\t\t// Comprueba que \"cabe\" horizontalmente a partir de la columna dada.\n\t\t\t// Esto implica que:\n\t\t\t// haya 'tam' casillas vacias (con mar) en la fila 'fila'\n\t\t\t// y que quede rodeado por el mar o por un borde\n\t\t\twhile ((col + i < numColumnas)\n\t\t\t\t\t&& (i < tam)\n\t\t\t\t\t&& (mar[fila][col + i] == AGUA)\n\t\t\t\t\t&& ((fila == 0) || (mar[fila - 1][col + i] == AGUA))\n\t\t\t\t\t&& ((fila == numFilas - 1) || (mar[fila + 1][col + i] == AGUA)))\n\t\t\t\ti++;\n\t\t} else { // ori == 'V'\n\t\t\ti = ((fila > 0) ? -1 : 0);\n\t\t\twhile ((fila + i < numFilas)\n\t\t\t\t\t&& (i < tam)\n\t\t\t\t\t&& (mar[fila + i][col] == AGUA)\n\t\t\t\t\t&& ((col == 0) || (mar[fila + i][col - 1] == AGUA))\n\t\t\t\t\t&& ((col == numColumnas - 1) || (mar[fila + i][col + 1] == AGUA)))\n\t\t\t\ti++;\n\t\t}\n\t\t// Ha encontrado un hueco cuando ha generado el barco totalmente rodeado\n\t\t// de agua o\n\t\tboolean resultado = (i == tam);\n\t\t// lo ha generado horizontal pegado al borde derecho o\n\t\tresultado = resultado || ((ori == 'H') && (col + i == numColumnas));\n\t\t// lo ha generado vertical pegado al borde inferior.\n\t\tresultado = resultado || ((ori == 'V') && (fila + i == numFilas));\n\t\treturn resultado;\n\t}", "title": "" }, { "docid": "368672a7c83b1a0b9da3c3d84cd6f906", "score": "0.5341524", "text": "private int verifierMoussaillonAvecTresor() { //Appele par le fantome\n\t\tPoint p = new Point(tabPion[4].x,tabPion[4].y);\n\t\tint direction = 0;\n\t\tfor(int i=0; i<4;i++)\n\t\t{\n\t\t\tif(direction ==0)\n\t\t\t{\n\t\t\t\tif(p.y>i)\n\t\t\t\t{\n\t\t\t\t\tfor(int j=0; j<3;j++)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(tabPion[j] != null) //Si le moussaillon j est vivant (encore en jeu)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif(((PionMoussaillon) tabPion[j]).hasATresor() && tabPion[j].y == p.y-i && tabPion[j].x == p.x) // si ce moussaillon j a un tresor et qu'il est atteignable par le fantome, alors :\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tSystem.out.println(\"Pion moussaillon avec un tresor trouve en x :\" + tabPion[j].x +\" y :\" + tabPion[j].y);\n\t\t\t\t\t\t\t\tdirection = 1;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif(p.y<12-i)\n\t\t\t\t{\n\t\t\t\t\tfor(int j=0; j<3;j++)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(tabPion[j] != null) //Si le moussaillon j est vivant\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif(((PionMoussaillon) tabPion[j]).hasATresor() && tabPion[j].y == p.y+i && tabPion[j].x == p.x) // si ce moussaillon j a un tresor et qu'il est atteignable par le fantome, alors :\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tSystem.out.println(\"Pion moussaillon avec un tresor trouve en x :\" + tabPion[j].x +\" y :\" + tabPion[j].y);\n\t\t\t\t\t\t\t\tdirection = 2;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif(p.x>i)\n\t\t\t\t{\n\t\t\t\t\tfor(int j=0; j<3;j++)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(tabPion[j] != null) //Si le moussaillon j est vivant\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif(((PionMoussaillon) tabPion[j]).hasATresor() && tabPion[j].x == p.x-i && tabPion[j].y == p.y) // si ce moussaillon j a un tresor et qu'il est atteignable par le fantome, alors :\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tSystem.out.println(\"Pion moussaillon avec un tresor trouve en x :\" + tabPion[j].x +\" y :\" + tabPion[j].y);\n\t\t\t\t\t\t\t\tdirection = 3;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif(p.x<12-i)\n\t\t\t\t{\n\t\t\t\t\tfor(int j=0; j<3;j++)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(tabPion[j] != null) //Si le moussaillon j est vivant\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif(((PionMoussaillon) tabPion[j]).hasATresor() && tabPion[j].x == p.x+i && tabPion[j].y == p.y) // si ce moussaillon j a un tresor et qu'il est atteignable par le fantome, alors :\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tSystem.out.println(\"Pion moussaillon avec un tresor trouv en x :\" + tabPion[j].x +\" y :\" + tabPion[j].y);\n\t\t\t\t\t\t\t\tdirection = 4;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif(direction == 0)\n\t\t{\n\t\t\tSystem.out.println(\"Pas de moussaillon avec un tresor a proximite !\");\n\t\t}\n\t\treturn direction;\n\t}", "title": "" }, { "docid": "a93558d388ef2f79ad17f0f5a8c8257e", "score": "0.5337974", "text": "private void setTablaDiferencias(){\n\n\t\tfor(int i = 0;i<(datos.getSize()+1)/2;i++){\n\t\t\tfor(int j = i;j<datos.getSize();j++){\n\t\t\t\tif(i == 0 && j!=0)\n\t\t\t\t\tthis.tabladiferencias.get(j).set(0,f(j)-f(j-1));\n\n\t\t\t\tif(j != 0 && i !=0 && j < datos.getSize()-1)\n\t\t\t\t\tthis.tabladiferencias.get(j+1).set(i,fTD(j+1,i-1)-fTD(j,i-1));\n\t\t\t}\n\t\t}\n\n\t\tif(pos >= datos.getSize()-1){\n\t\t\tfor(int i = 1;i<(datos.getSize()+1)/2;i++){\n\t\t\t\tfor(int j = pos ;j < pos+2;j++){\n\t\t\t\t\tif(i == (datos.getSize()+1)/2-1)\n\t\t\t\t\t\tthis.tabladiferencias.get(j+1).set(i,fTD(j,i));\n\t\t\t\t\telse\n\t\t\t\t\t\tthis.tabladiferencias.get(j+1).set(i,fTD(j,i)+fTD(j,i+1));\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "3b78776de1bc9c87e5df0c7f47faa88d", "score": "0.53341544", "text": "private static void operarBicondicional(Object[][] tabla, int i, int j, String aux4, String aux3) {\n for (int k = 0; k < tabla[0].length; k++) {\n if (tabla[0][k].toString().equals(aux3)) {\n for (int k2 = 0; k2 < tabla[0].length; k2++) {\n if (tabla[0][k2].toString().equals(aux4)) {\n if (tabla[i][k2].toString().equalsIgnoreCase(tabla[i][k].toString())) {\n tabla[i][j] = 1;\n } else {\n tabla[i][j] = 0;\n }\n }\n }\n }\n }\n }", "title": "" }, { "docid": "9452c300b8e511a453d481435118fe50", "score": "0.5320273", "text": "public int dosEnRaya(int jugador_en_turno){\n //devuelve la posicion ke la maquina debe poner para evitar tres en raya\n int casilla = -1;//posicion que no existe SERA DEVUELTA\n int cuantas_lleva= 0;\n for (int i= 0; i<CONBINACIONES.length;i++){\n for(int pos:CONBINACIONES[i]){\n if (casillasestado[pos]== jugador_en_turno){\n cuantas_lleva++;\n }\n if (casillasestado[pos]== 0){\n casilla=pos;//esta casilla esta vacia, si las otras dos estan con el mismo jugador\n //esta es la casilla CLAVE\n }\n }\n if (cuantas_lleva==2 && casilla!=-1){\n return casilla;\n }\n casilla=-1;\n cuantas_lleva= 0;\n }\n //Si no secumple el if del AND resetea los valores para el siguiente trio\n //Si en ningun trio se cumple devuelve una casilla que no existe\n return -1;\n }", "title": "" }, { "docid": "4b0c2f4732f7a0c1211cc4dadc6c0b80", "score": "0.5319917", "text": "public int contar(){\n int predicciones=0;\n int exito=0, noExito=0;\n for(int i=0;i<this.hoja.length;i++){ // O(n) n cantidad de elementos del arreglo\n if(Integer.parseInt(this.hoja[i][hoja[0].length-1])==1){\n exito++;\n }else{\n noExito++;\n }\n\n }\n int total=exito+noExito;\n if(total==exito){\n predicciones = 1;\n }\n if(total==noExito){\n predicciones = 0;\n }\n /*\n String exit=\"Exito: \"+(exito/total)*100+\"%\";\n String noExit=\"No exito: \"+(noExito/total)*100+\"%\";\n predicciones= exit+\" \"+noExit;\n */\n return predicciones;\n }", "title": "" }, { "docid": "1ec703ebb97d4c8593deb5306f078c0b", "score": "0.5278887", "text": "public void labirintoSuformavimas() {\n\t\tfor (int i = 0; i < 15; i++) {\n\t\t\tfor (int j = 0; j < 15; j++) {\n\t\t\t\t//cia patikrina jeigu langelyje yra #\n\t\t\t\tif(\"#\".equals(mygtukai[i][j].getText())) {\n\t\t\t\t\tlevelDataNew[i][j] -= 16;\n\t\t\t\t} else {\n\t\t\t\t\tif(i != 0) {\n\t\t\t\t\t\tif(\"#\".equals(mygtukai[i - 1][j].getText())) {\n\t\t\t\t\t\t\tlevelDataNew[i][j] += 2;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif(j != 0) {\n\t\t\t\t\t\tif(\"#\".equals(mygtukai[i][j - 1].getText())) {\n\t\t\t\t\t\t\tlevelDataNew[i][j] += 1;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t//cia patikrina, jeigu langelyje yra .\n\t\t\t\tif(\".\".equals(mygtukai[i][j].getText()) || \"~\".equals(mygtukai[i][j].getText()) || \"*\".equals(mygtukai[i][j].getText())) {\n\t\t\t\t\tif(j != 14) {\n\t\t\t\t\t\tif(\"#\".equals(mygtukai[i][j + 1].getText())) {\n\t\t\t\t\t\t\tlevelDataNew[i][j] += 4;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif(i != 14) {\n\t\t\t\t\t\tif(\"#\".equals(mygtukai[i + 1][j].getText())) {\n\t\t\t\t\t\t\tlevelDataNew[i][j] += 8;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//System.out.println(levelDataNew[i][j]);\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "fb4cbd3e2cd47d12f5c0fa5d63e293bc", "score": "0.5265037", "text": "public void gerarTXTContasBaixadasContabilmente(\r\n Map parametros, Integer idSetorComercial, Integer idFuncionalidadeIniciada, Integer faixa)\r\n throws ControladorException{\r\n \r\n int idUnidadeIniciada = 0;\r\n\r\n \r\n try {\r\n /*\r\n * Registrar o início do processamento da Unidade de\r\n * Processamento do Batch\r\n */\r\n \r\n idUnidadeIniciada = getControladorBatch().iniciarUnidadeProcessamentoBatch(idFuncionalidadeIniciada,UnidadeProcessamento.SETOR_COMERCIAL,(idSetorComercial));\r\n\r\n Integer referenciaInicial = (Integer)parametros.get(\"referenciaInicial\");\r\n Integer referenciaFinal = (Integer)parametros.get(\"referenciaFinal\");\r\n Short tipo = (Short)parametros.get(\"tipo\");\r\n Short periodicidade = (Short)parametros.get(\"periodicidade\");\r\n \r\n Map contasBaixadasContabilmenteMap = null;\r\n StringBuilder contasBaixadasContabilmenteTXT = new StringBuilder();\r\n \r\n String nomeZip = \"\"; \r\n String nomeDiretorio = \"\";\r\n if(periodicidade.equals(ConstantesSistema.ACUMULADO)){\r\n nomeDiretorio = \"ContasBContabilAcumulado\" + referenciaFinal;\r\n }else{\r\n \r\n if(referenciaInicial.equals(referenciaFinal)){\r\n nomeDiretorio = \"ContasBContabilMensal\"+referenciaInicial;\r\n }else{\r\n nomeDiretorio = \"ContasBContabilMensal\"+referenciaInicial + \"A\" + referenciaFinal;\r\n } \r\n }\r\n IoUtil.criarDiretorio(nomeDiretorio);\r\n \r\n if(tipo.equals(ConstantesSistema.ANALITICO)){\r\n \r\n Collection colecaoQuadras = getControladorLocalidade().pesquisarIdQuadraPorSetorComercial(idSetorComercial);\r\n Iterator iterator = colecaoQuadras.iterator();\r\n\r\n while (iterator.hasNext()) {\r\n\r\n Integer idQuadra = (Integer) iterator.next();\r\n \r\n contasBaixadasContabilmenteMap = this\r\n .consultarDadosContasBaixadasContabilmenteTXT(\r\n referenciaInicial, referenciaFinal, idQuadra, faixa, periodicidade);\r\n \r\n StringBuilder txtContasBaixadasContabilmentePorQuadra = (StringBuilder)contasBaixadasContabilmenteMap.get(\"linhasTXT\");\r\n if (txtContasBaixadasContabilmentePorQuadra != null){\r\n contasBaixadasContabilmenteTXT.append(txtContasBaixadasContabilmentePorQuadra);\r\n }\r\n }\r\n \r\n nomeZip = \"CONTAS_BAIXADAS_CONTABILMENTE_\"\r\n + Util.adicionarZerosEsquedaNumero(3,\"\" + idSetorComercial) + \"_F\" + faixa ;\r\n \r\n }else if (tipo.equals(ConstantesSistema.SINTETICO)){\r\n \r\n contasBaixadasContabilmenteTXT.append(this.\r\n consultarSomatorioValorContasBaixadasContabilmenteTXT(\r\n referenciaInicial, referenciaFinal, periodicidade));\r\n \r\n nomeZip = \"CONTAS_BAIXADAS_CONTABILMENTE_SINTETICO\" ;\r\n \r\n }\r\n \r\n \r\n if (contasBaixadasContabilmenteTXT != null\r\n && contasBaixadasContabilmenteTXT.length() != 0) {\r\n\r\n BufferedWriter out = null;\r\n File arquivoTxt = new File(nomeDiretorio + \"/\" + nomeZip + \".txt\");\r\n \r\n System.out.println(\"CRIANDO ZIP -- \" + idSetorComercial);\r\n out = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(arquivoTxt.getAbsolutePath())));\r\n out.write(contasBaixadasContabilmenteTXT.toString());\r\n out.flush();\r\n out.close();\r\n \r\n out = null;\r\n arquivoTxt = null;\r\n contasBaixadasContabilmenteTXT = null;\r\n \r\n }\r\n \r\n \r\n getControladorBatch().encerrarUnidadeProcessamentoBatch(null,idUnidadeIniciada, false);\r\n \r\n } catch (Exception ex) {\r\n ex.printStackTrace();\r\n getControladorBatch().encerrarUnidadeProcessamentoBatch(ex,idUnidadeIniciada, true);\r\n throw new EJBException(ex);\r\n }\r\n \r\n \r\n }", "title": "" }, { "docid": "0594a9b606ceb35036555b1d7a470a91", "score": "0.5263402", "text": "private int functionK3(ArrayList<Punto> posibleGrupo,Punto muestraTunel){\n\t\tint i;\n\t\tint sumatoria = 0;\n\t\tint size = posibleGrupo.size();\n\t\tfor(i=0;i<size;i++){\n\t\t\tPunto p = posibleGrupo.get(i);\n\t\t\tsumatoria = sumatoria + (p.x*p.y);\n\t\t}\n\t\tsumatoria = sumatoria + (muestraTunel.x*muestraTunel.y);\n\t\treturn sumatoria;\n }", "title": "" }, { "docid": "f1b4e36fe97e972215a2ba35647d3c08", "score": "0.524879", "text": "@Override\r\n\tprotected double getTributacao() {\r\n\r\n\t\tdouble tributacao = 0.0;\r\n\r\n\t\tif (this.numeroDeToneladasPorAno <= DEZ_TONELADAS) {\r\n\t\t\ttributacao = TAXA_FIXA;\r\n\t\t} else {\r\n\t\t\ttributacao = TAXA_FIXA + (this.numeroDeToneladasPorAno - DEZ_TONELADAS) * TAXA_ACIMA_DE_10_TONELADAS;\r\n\t\t}\r\n\r\n\t\treturn tributacao;\r\n\r\n\t}", "title": "" }, { "docid": "bdf997f5cad087328d464cab0f6d6f2a", "score": "0.52456534", "text": "private void checkEtFixLignesVides(Case tableDeJeu[][]) {\r\n\r\n LinkedBlockingQueue<Integer> cmptr = new LinkedBlockingQueue();\r\n\r\n int lignInit = 0;\r\n\r\n while (contientNull(tableDeJeu) == true) {\r\n \r\n for (int i = 7; i >= 0; i--) {\r\n for (int j = 7; j >= 0; j--) {\r\n if (tableDeJeu[i][j] == null) {\r\n \r\n if (i != 0) {\r\n tableDeJeu[i][j] = tableDeJeu[i - 1][j];\r\n tableDeJeu[i - 1][j] = null;\r\n cmptr.add(j);\r\n \r\n } else if (i == 0) {\r\n Random rdm = new Random();\r\n int numeroRdm ;\r\n numeroRdm = rdm.nextInt(6 - 0 + 1) + 0;\r\n tableDeJeu[0][j] = new Case(0, j, couleurs[numeroRdm]);\r\n }\r\n \r\n }\r\n }\r\n }\r\n }\r\n\r\n }", "title": "" }, { "docid": "62793299682bcab191f1df0fa5a4174f", "score": "0.52360505", "text": "public void TuglalariAsagiIndir()\r\n\t{\n\t\tfor(int i=(oyunBoyu*(oyunBoyu-1)-1);i>=0;i--)\r\n\t\t{\r\n\t\t\tif(tuglalar[i]==1)\r\n\t\t\t{\r\n\t\t\t\ttuglalar[i] = 0;\r\n\t\t\t\ttuglalar[i+oyunBoyu] = 1;\r\n\t\t\t}\r\n\t\t}\r\n\t\tRastgeleTuglaUret();\r\n\t\tMatrisCiz();\t\t\t\r\n\t}", "title": "" }, { "docid": "2d364b64d885e939c72d9dedca715ea0", "score": "0.5216492", "text": "public void executaAlgoritm() {\n\t\t\tIntoarcere.dreapta(600);\r\n\t\t\tMers.inainte();\r\n\t\t\tDelay.msDelay(500); //2000? trebuie verificat timpul:in cat timp merge ~10 cm?\r\n\t\t\tMers.opreste();\r\n\t\t\t\r\n\t\t\t//se intoarce 90 de grade la stanga si inainteaza ~20 cm\r\n\t\t\t//face acest lucru de 4 ori: practic ocoleste odata cubul\r\n\t\t\tfor(int i=1;i<=3;i++){\r\n\t\t\t\tIntoarcere.stanga(600);\r\n\t\t\t\tMers.inainte();\r\n\t\t\t\tDelay.msDelay(700);//4000? trebuie verificat timpul:in cat timp merge ~20 cm?\r\n\t\t\t\tMers.opreste();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//se intoarce 90 de grade la stanga si inainteaza pana la perete\r\n\t\t\tIntoarcere.stanga(600);\r\n\t\t\tMers.inainte();\r\n\t\t\tDelay.msDelay(700);//4000? trebuie verificat timpul:in cat timp merge ~20 cm?\r\n\t\t\tMers.opreste();\r\n\t\t\t//if(Var.sonic.getDistance()<=Var.distantaMinima)\r\n\t\t\t//\tMers.opreste();\r\n\t\t\t\r\n\t\t\t//se intoarce 90 de grade la stanga si inainteaza pana la celalalt robot\r\n\t\t\tIntoarcere.stanga(600);\r\n\t\t\tMers.inainte();\r\n\t\t\tDelay.msDelay(700);\r\n\t\t\t//if(Var.sonic.getDistance()<=Var.distantaMinima)\r\n\t\t\t\t//Mers.opreste();\r\n\t\t\r\n\t\t\r\n\t}", "title": "" }, { "docid": "03d81342a073ccdc3a3913f2d2be359c", "score": "0.5215559", "text": "public static boolean backtrack() {\r\n\r\n\tif (nekadUsao == 0) {\r\n\t nekadUsao = 1;\r\n\t kopijaIspita = new ArrayList<>();\r\n\t for (int i = 0; i < reseniispiti.size(); i++) {\r\n\t\tkopijaIspita.add(reseniispiti.get(i));\r\n\t }\r\n\r\n\t}\r\n\tnekadUsao++;\r\n\tif (nekadUsao % 2 == 0) {\r\n\t txtFile.flush();\r\n\r\n\t}\r\n\tif (nekadUsao >= 2 * cnt) {\r\n\r\n\t for (int j = 0; j < cnt; j++) {\r\n\t\tif (reseniispiti != null && reseniispiti.size() > 0) {\r\n\t\t Ispit pogresan1 = reseniispiti.remove(reseniispiti.size() - 1);\r\n\t\t preostaliIspiti.add(pogresan1);\r\n\t\t txtFile.print(\" Dodaje se i \" + pogresan1.getSifra() + \" \\n\");\r\n\t\t for (int i = 0; i < pogresan1.getIskorisceneSale().size(); i++) {\r\n\t\t\tpogresan1.getIskorisceneSale().get(i).dodajSat((Integer) pogresan1.getVreme());\r\n\t\t\tif (!preostaleSale.get(pogresan1.getDan()).contains(pogresan1.getIskorisceneSale().get(i))) {\r\n\t\t\t preostaleSale.get(pogresan1.getDan()).add(pogresan1.getIskorisceneSale().get(i));\r\n\t\t\t}\r\n\r\n\t\t }\r\n\r\n\t\t pogresan1.setIskorisceneSale(new ArrayList<>());\r\n\t\t pogresan1.setVreme(-1);\r\n\t\t pogresan1.setDan(-1);\r\n\t\t}\r\n\t }\r\n\r\n\t cnt++;\r\n\t}\r\n\r\n\tlong endTime = System.currentTimeMillis();\r\n\tlong duration = (endTime - startTime);\r\n\tif (preostaliIspiti.isEmpty() || reseniispiti.isEmpty() || duration > otp * 3) {\r\n\t return false;\r\n\t}\r\n\r\n\ttxtFile.print(\"BACKTRACK \\n\");\r\n\tif (reseniispiti.size() == 0)\r\n\t return false;\r\n\tIspit pogresan = reseniispiti.remove(reseniispiti.size() - 1);\r\n\tpreostaliIspiti.add(pogresan);\r\n\ttxtFile.print(\" Ispit za koji se pokusava raspodela u drugom terminu je \" + pogresan.getSifra() + \" \\n\");\r\n\tArrayList<Sala> pokusaj = pogresan.getIskorisceneSale();\r\n\tArrayList<Sala> iskoriscene = new ArrayList<>();\r\n\tint kap = pogresan.getPrijavljeni();\r\n\tboolean kraj = false;\r\n\tfor (int j = 0; j < trajanje; j++) {\r\n\t for (int termin = 0; termin < 4; termin++) {\r\n\t\tiskoriscene = new ArrayList<>();\r\n\r\n\t\tif (termin != pogresan.getVreme()) {\r\n\t\t kraj = false;\r\n\t\t while (!kraj) {\r\n\t\t\tSala nova = izaberiSalu2(pogresan, kap, j, termin, iskoriscene);\r\n\t\t\tif (nova != null) {\r\n\t\t\t txtFile.print(\"Uspesno je da nadjena nova sala \" + nova.getNaziv() + \" \" + (j + 1)\r\n\t\t\t\t + \". dana \" + \" \\n\");\r\n\t\t\t if (kap > 0) {\r\n\t\t\t\tkap = kap - nova.getKapacitet();\r\n\t\t\t\tiskoriscene.add(nova);\r\n\t\t\t }\r\n\r\n\t\t\t if (kap <= 0) {\r\n\r\n\t\t\t\ttxtFile.print(\r\n\t\t\t\t\t\"Uspesno je zavrsen raspored za ispit\" + pogresan.getSifra() + \" \\n\" + \" \\n\");\r\n\t\t\t\tfor (int i = 0; i < pogresan.getIskorisceneSale().size(); i++) {\r\n\t\t\t\t pogresan.getIskorisceneSale().get(i).dodajSat((Integer) pogresan.getVreme());\r\n\t\t\t\t if (!preostaleSale.get(pogresan.getDan())\r\n\t\t\t\t\t .contains(pogresan.getIskorisceneSale().get(i))) {\r\n\t\t\t\t\tpreostaleSale.get(pogresan.getDan()).add(pogresan.getIskorisceneSale().get(i));\r\n\t\t\t\t }\r\n\r\n\t\t\t\t}\r\n\r\n\t\t\t\tpogresan.setIskorisceneSale(iskoriscene);\r\n\t\t\t\tpogresan.setVreme(termin);\r\n\t\t\t\tpogresan.setDan(j);\r\n\t\t\t\tif (nijeVisePreostalo(iskoriscene, termin, j)) {\r\n\t\t\t\t txtFile.print(\" \\n\" + \" \\n\");\r\n\t\t\t\t} else {\r\n\t\t\t\t txtFile.print(\"Ne moze \" + \" \\n\" + \" \\n\" + \" \\n\");\r\n\t\t\t\t backtrack();\r\n\t\t\t\t}\r\n\r\n\t\t\t\tArrayList<Integer> dan = new ArrayList<>();\r\n\t\t\t\tdan.add(j);\r\n\r\n\t\t\t\treseniispiti.add(pogresan);\r\n\t\t\t\tpreostaliIspiti.remove(pogresan);\r\n\t\t\t\tkraj = true;\r\n\t\t\t\trasporedjivanje();\r\n\t\t\t\treturn true;\r\n\t\t\t }\r\n\r\n//\t\t\t\ttxtFile.print(\" Postoji druga sala \" + \":( \\n\" + \":( \\n\" + \":( \\n\");\r\n\r\n\t\t\t} else {\r\n\t\t\t txtFile.print(\"Nema vise slobodnih za ovaj ispit \" + \" \\n\");\r\n\t\t\t kraj = true;\r\n\r\n\t\t\t}\r\n\t\t }\r\n\r\n\t\t}\r\n\r\n\t }\r\n\r\n\t}\r\n\r\n\tif (!reseniispiti.contains(pogresan)) {\r\n\t txtFile.print(\"Vraca se ponovo u BACKTRACK \" + pogresan.getSifra() + \" \\n\" + \" \\n\");\r\n\t for (int i = 0; i < pogresan.getIskorisceneSale().size(); i++) {\r\n\t\ttxtFile.print(\"Dodaje vreme za salu \" + pogresan.getIskorisceneSale().get(i).getNaziv() + \" \\n\");\r\n\t\tpogresan.getIskorisceneSale().get(i).dodajSat((Integer) pogresan.getVreme());\r\n\t\tif (!preostaleSale.get(pogresan.getDan()).contains(pogresan.getIskorisceneSale().get(i))) {\r\n\t\t preostaleSale.get(pogresan.getDan()).add(pogresan.getIskorisceneSale().get(i));\r\n\t\t}\r\n\r\n\t }\r\n\r\n\t backtrack();\r\n\t}\r\n\r\n\treturn false;\r\n }", "title": "" }, { "docid": "964b9b6ded1dc95a86dcf0b5939852a1", "score": "0.520696", "text": "void vertablaacc() {\r\n String sim, cad;\r\n\t\tString oper = new String();\r\n\t\tStringBuffer espacios = new StringBuffer();\r\n TVectorAccion acc;\r\n TEltoAccion item;\r\n int index2,x;\r\n int index = 0;\r\n int longcelda = 6;\r\n for (Enumeration e = T.elements(); e.hasMoreElements(); ) {\r\n sim = (String)e.nextElement();\r\n if (sim.length() > longcelda)\r\n longcelda = sim.length();\r\n }\r\n cad = new String(\"Estado\");\r\n for (Enumeration e = T.elements(); e.hasMoreElements(); ) {\r\n sim = (String)e.nextElement();\r\n\t\t\tespacios.delete(0,espacios.length());\r\n for(x=0;x<(longcelda - sim.length());x++){\r\n \t\t\t espacios.append(\" \");\r\n\t\t\t} \r\n cad+=sim+espacios.toString();\r\n }\r\n\t\tSystem.out.println(cad);\r\n for (Enumeration e = tablaaccion.elements(); e.hasMoreElements(); ) {\r\n cad=String.valueOf(index);\r\n\t\t\tespacios.delete(0,espacios.length());\r\n for(x=0;x<(longcelda - cad.length());x++){\r\n \t\t\t espacios.append(\" \");\r\n\t\t\t} \r\n acc = (TVectorAccion)e.nextElement();\r\n for (Enumeration enum2 = acc.elements(); enum2.hasMoreElements();) {\r\n item = (TEltoAccion)enum2.nextElement();\r\n if (!item.tipo.equalsIgnoreCase(\"error\")) {\r\n index2 = T.indexOf(item.simbolo);\r\n if (item.tipo.equalsIgnoreCase(\"reducir\")) {\r\n oper = \"red [\" + String.valueOf(item.R.num) + \",\"+item.simbolo+\"]\";\r\n }\r\n if (item.tipo.equalsIgnoreCase(\"desplazar\")) {\r\n oper = \"desp\"+item.simbolo;\r\n }\r\n if (item.tipo.equalsIgnoreCase(\"aceptar\")) {\r\n oper = \"acep\";\r\n }\r\n\t\t\t\t\tespacios.delete(0,espacios.length());\r\n\t\t for(x=0;x<(index2 * longcelda + longcelda- oper.length());x++){\r\n\t\t \t\t\t espacios.append(\" \");\r\n\t\t\t\t\t} \r\n cad+= oper+espacios;\r\n }\r\n }\r\n\t\t\tSystem.out.println(cad);\r\n index++;\r\n }\r\n }", "title": "" }, { "docid": "fcde75b8eaee8958ffbaa380ff67c20d", "score": "0.5203831", "text": "@Override\n\t\tpublic int retirarDa( PilhaBolas pilhaDeBolas ) throws JogadaInvalida \n\t\t{\n\t\t\tJogada jogada = new Jogada(pilhaDeBolas.getJogadaMaxima());\n\t\t\t\n\t\t\tint bolasRetiradas;\n\t\t\t\t\n\t\t\t//Se a quantidade de bolas é igual a uma potencia de dois menos um o computador inteligente faz um movimento aleatório\n\t\t\tif( isPotenciaDeDoisMenosUm(pilhaDeBolas.getNumeroBolas()) )\n\t\t\t\tbolasRetiradas = jogada.retirarNumeroAleatorio();\n\t\t\t\n\t\t\t//Se a quantidade não é potencia de dois menos um. Eu retiro uma quantidade de bolas igual a alguma potencia de dois menos um\n\t\t\telse\n\t\t\t{\n\t\t\t\tbolasRetiradas = jogada.retirarPotenciaDeDoisMenosUm();\n\t\t\t}\n\t\t\t\n\t\t\tpilhaDeBolas.retirarBola( bolasRetiradas );\n\t\t\t\n\t\t\treturn bolasRetiradas;\n\t\t}", "title": "" }, { "docid": "971919e1c7055cca35d78a0d6f74944d", "score": "0.52036077", "text": "public void recorrido(){\r\n currentN=Esquema.first; //El nodo actual se establece como la primera fila.\r\n arreglo=\"\";aray=\"\"; //Variables acumulativas para la representación en forma de matriz.\r\n start=0; //Si start es 0 se sabe que se trabaja actualmente con la primera fila, eso implica que no lleve un espacio al inicio.\r\n while (currentN!=null){\r\n currentL=(Lista) currentN.data; //Se establece la lista actual como la sublista en la fila 1.\r\n currentN1=currentL.first; //El nodo actual por recorrer dentro se la sublista se establece como el primer valor de la anterior mencionada.\r\n while (currentN1!=null){\r\n if (currentN1.next!=null){\r\n arreglo=arreglo+currentN1.data+\", \";} //Concatenación de los datos de cada nodo separado por una coma y espacio, son las columnas.\r\n else{\r\n arreglo=arreglo+currentN1.data;} //Si es el ultimo nodo no se hace la separacion de comas y espacio.\r\n currentN1=currentN1.next;} //Nodo actual de la sublista pasa a ser el siguiente.\r\n if (currentN.next==null && fila>1){aray+=\" [\"+arreglo+\"]\";}\r\n else {\r\n if (start==0 && fila>1){\r\n aray+=\"[\"+arreglo+\"]\\n\";start=1; //Se trabaja con la primer fila, se establece start en 1 y se indica que se acabo con la primera fila.\r\n }\r\n else {\r\n if (fila>1){\r\n aray+=\" [\"+arreglo+\"]\\n\"; //Se van concatenando las filas dentro de la estructura dentro de corchetes y con un espacio al inicio para alinear.\r\n }\r\n else {\r\n aray+=\"[\"+arreglo+\"]\"; //Si es la ultima fila de la matriz no se hace salto de linea.\r\n }\r\n }\r\n }\r\n arreglo=\"\"; //La variable que se encarga de contener las columnas se inicializa vacia nuevamente, permite concatenar mas columnas en otras filas.\r\n currentN=currentN.next; //Se pasa a la fila siguiente.\r\n }\r\n System.out.println(\"[\"+aray+\"]\\n\"); //Se imprime la matriz estructurada de como una matriz \"real\".\r\n }", "title": "" }, { "docid": "68de3cec6a65c1f0eba97cb4662a6dc7", "score": "0.5202006", "text": "private void backward(NodoBackward nodo, int[] monedas, int etapa, int restante) {\n if (etapa == monedas.length) {\n //En el caso base los nodos contienen solo lo restante\n nodo.setRestante(restante);\n\n } else {\n\n //Caso recursivo\n\n //Generamos los hijos del nodo\n //Suponiendo que restante=4, monedas[2,3], y etapa=1,\n //n_monedas valdria primero 4 y despues 1.\n for (int n_monedas = 0; restante - n_monedas * monedas[etapa] >= 0; n_monedas++) {\n\n //Creamos el hijo correspondiente\n NodoBackward hijo = new NodoBackward(nodo);\n\n //Lo ponemos en la lista de hijos del padre\n nodo.addHijo(hijo);\n //Recursion\n backward(hijo, monedas, etapa + 1, restante - n_monedas * monedas[etapa]);\n\n //Le metemos el numero de monedas gastadas\n hijo.addMoneda(n_monedas);\n\n //Comprobamos si esa solucion es mejor que lo que tenemos ahora\n if (mejorSolucion(hijo, nodo)) {\n nodo.setMonedas((LinkedList<Integer>) hijo.getMonedas().clone());\n nodo.setRestante(hijo.getRestante());\n }\n }\n }\n\n }", "title": "" }, { "docid": "8293ac93e3d73967be604009f2a4005e", "score": "0.51968926", "text": "triang(triang ob)\r\n {\r\n super(ob); // pasa un objeto al constructor de formaDosd\r\n estilo=ob.estilo;\r\n }", "title": "" }, { "docid": "5f61d6e3561722b428fcd00021fd62cf", "score": "0.51961684", "text": "void ganar() {\n //\n\n if (v1 == 1 && v2 == 1 && v3 == 0 && !done) {\n felinoMarc(1, 3);\n\n done = true;\n }\n if (v1 == 1 && v2 == 0 && v3 == 1 && !done) {\n felinoMarc(1, 2);\n done = true;\n\n }\n if (v1 == 0 && v2 == 1 && v3 == 1 && !done) {\n felinoMarc(1, 1);\n done = true;\n }\n\n //segunda fila horizontal\n if (v4 == 1 && v5 == 1 && v6 == 0 && !done) {\n felinoMarc(1, 6);\n done = true;\n }\n if (v4 == 1 && v5 == 0 && v6 == 1 && !done) {\n felinoMarc(1, 5);\n done = true;\n }\n if (v4 == 0 && v5 == 1 && v6 == 1 && !done) {\n felinoMarc(1, 4);\n done = true;\n }\n //tercera fila horizontal\n if (v7 == 1 && v8 == 1 && v9 == 0 && !done) {\n felinoMarc(1, 9);\n done = true;\n }\n if (v7 == 1 && v8 == 0 && v9 == 1 && !done) {\n felinoMarc(1, 8);\n done = true;\n }\n if (v7 == 0 && v8 == 1 && v9 == 1 && !done) {\n felinoMarc(1, 7);\n done = true;\n }\n //primera vertical\n if (v1 == 1 && v4 == 1 && v7 == 0 && !done) {\n felinoMarc(1, 7);\n done = true;\n }\n if (v1 == 1 && v4 == 0 && v7 == 1 && !done) {\n felinoMarc(1, 4);\n done = true;\n }\n if (v1 == 0 && v4 == 1 && v7 == 1 && !done) {\n felinoMarc(1, 1);\n done = true;\n }\n //segunda vertical\n if (v2 == 1 && v5 == 1 && v8 == 0 && !done) {\n felinoMarc(1, 8);\n done = true;\n }\n if (v2 == 1 && v5 == 0 && v8 == 1 && !done) {\n felinoMarc(1, 5);\n done = true;\n }\n if (v2 == 0 && v5 == 1 && v8 == 1 && !done) {\n felinoMarc(1, 2);\n done = true;\n }\n //tercera vertical\n if (v3 == 1 && v6 == 1 && v9 == 0 && !done) {\n felinoMarc(1, 9);\n done = true;\n }\n if (v3 == 1 && v6 == 0 && v9 == 1 && !done) {\n felinoMarc(1, 6);\n done = true;\n }\n if (v3 == 0 && v6 == 1 && v9 == 1 && !done) {\n felinoMarc(1, 3);\n\n done = true;\n }\n //primera diagonal\n if (v1 == 1 && v5 == 1 && v9 == 0 && !done) {\n felinoMarc(1, 9);\n done = true;\n }\n if (v1 == 1 && v5 == 0 && v9 == 1 && !done) {\n felinoMarc(1, 5);\n done = true;\n }\n if (v1 == 0 && v5 == 1 && v9 == 1 && !done) {\n felinoMarc(1, 1);\n done = true;\n }\n //segunda diagonal\n if (v3 == 1 && v5 == 1 && v7 == 0 && !done) {\n felinoMarc(1, 7);\n done = true;\n }\n if (v3 == 1 && v5 == 0 && v7 == 1 && !done) {\n felinoMarc(1, 5);\n done = true;\n }\n if (v3 == 0 && v5 == 1 && v7 == 1 && !done) {\n felinoMarc(1, 3);\n\n done = true;\n }\n\n\n }", "title": "" }, { "docid": "63cdc392f7d0c31324529cf5fe592156", "score": "0.51949924", "text": "public static int[] buscarUnicoPosibleFila(){\n\n //recorre por fila\n for (int i = 0; i < posible.getTamanio(); i++) {\n //recorre dentro de la fila por columna\n for (int j = 0; j < posible.getTamanio(); j++) {\n //mientras exista un valor posible\n if(posible.getSolucionSudoku(j,i) != null){\n //recorre todos los valores posibles\n for (int k = 0; k < 9; k++) {\n int posibleUnico = posible.getSolucionSudoku(j,i).getNumero(k);\n boolean semaforo = true;\n //mientras el posible numero no sea 0\n if(posibleUnico != 0){\n //recorre todos los de la fila buscando si existe algun otro cuadro con el mismo posible valor\n for (int l = 0; l < posible.getTamanio(); l++) {\n //mientras la casilla sea distinta a null y no sea la misma con la que se compara\n if(posible.getSolucionSudoku(l,i) != null && posible.getSolucionSudoku(l,i) != posible.getSolucionSudoku(j,i)){\n //recorre los posibles datos que tiene la casilla con la que se compara\n for (int m = 0; m < 9; m++) {\n int comparador = posible.getSolucionSudoku(l,i).getNumero(m);\n if(comparador == posibleUnico){\n semaforo = false;\n break;\n }\n }\n }\n if(!semaforo){\n break;\n }\n }\n if(semaforo){\n int [] unico = {j,i,posibleUnico};\n return unico;\n }\n }\n }\n }\n }\n }\n int [] ningun = {-1};\n return ningun;\n }", "title": "" }, { "docid": "f4f922fb0942e1f2956cff1feba6fdc3", "score": "0.51919234", "text": "private void llenarBarajaInicial() {\n for (int i = 1; i <= 13; i++) {\r\n //HASTA 11 EL VALORVISIAL D ELA CARTA ES IGUAL A SU VALOR\r\n if (i < 11) {\r\n baraja.add(new Carta(\"PICAS\", \"\" + i, i));\r\n baraja.add(new Carta(\"CORAZONES\", \"\" + i, i));\r\n baraja.add(new Carta(\"DIAMANTES\", \"\" + i, i));\r\n baraja.add(new Carta(\"TREBOLES\", \"\" + i, i));\r\n } else {\r\n if (i == 11) {\r\n baraja.add(new Carta(\"PICAS\", \"J\", i));\r\n baraja.add(new Carta(\"CORAZONES\", \"J\", i));\r\n baraja.add(new Carta(\"DIAMANTES\", \"J\", i));\r\n baraja.add(new Carta(\"TREBOLES\", \"J\", i));\r\n }\r\n if (i == 12) {\r\n baraja.add(new Carta(\"PICAS\", \"Q\", i));\r\n baraja.add(new Carta(\"CORAZONES\", \"Q\", i));\r\n baraja.add(new Carta(\"DIAMANTES\", \"Q\", i));\r\n baraja.add(new Carta(\"TREBOLES\", \"Q\", i));\r\n }\r\n if (i == 13) {\r\n baraja.add(new Carta(\"PICAS\", \"K\", i));\r\n baraja.add(new Carta(\"CORAZONES\", \"K\", i));\r\n baraja.add(new Carta(\"DIAMANTES\", \"K\", i));\r\n baraja.add(new Carta(\"TREBOLES\", \"K\", i));\r\n }\r\n }\r\n }\r\n }", "title": "" }, { "docid": "d76423ef1141fe1de50d1e62802dc54e", "score": "0.51910615", "text": "public FramePoly1Kunci() {\n initComponents();\n this.setLocationRelativeTo(null);\n \n tabel_model.add(\"a\");\n tabel_model.add(\"b\");\n tabel_model.add(\"c\");\n tabel_model.add(\"d\");\n tabel_model.add(\"e\");\n tabel_model.add(\"f\");\n tabel_model.add(\"g\");\n tabel_model.add(\"h\");\n tabel_model.add(\"i\");\n tabel_model.add(\"j\");\n tabel_model.add(\"k\");\n tabel_model.add(\"l\");\n tabel_model.add(\"m\");\n tabel_model.add(\"n\");\n tabel_model.add(\"o\");\n tabel_model.add(\"p\");\n tabel_model.add(\"q\");\n tabel_model.add(\"r\");\n tabel_model.add(\"s\");\n tabel_model.add(\"t\");\n tabel_model.add(\"u\");\n tabel_model.add(\"v\");\n tabel_model.add(\"w\");\n tabel_model.add(\"x\");\n tabel_model.add(\"y\");\n tabel_model.add(\"z\");\n \n// for (int i = 0; i < 10; i++) {\n// for (int j = 0; j < 10; j++) {\n// \n// if (i == 7) {\n// return;\n// }\n// System.out.println(i + \" \" + j);\n// }\n// if (i == 7) {\n// System.out.println(\"done\");\n// }\n// }\n\n// for (int i = 0; i < 5; i++) {\n// for (int j = 0; j < 5; j++) {\n// if (i * j > 6) {\n// System.out.println(\"Breaking\");\n// return;\n// }\n// System.out.println(i + \" \" + j);\n// }\n// }\n// for (int j = 2; 0 < j; j--) {\n// System.out.println(j);\n// }\n// int i = 0;\n// while (i++ < 10) {\n// if (i == 5) {\n// break;\n// }\n// }\n// System.out.println(i);\n }", "title": "" }, { "docid": "ca0c304f693a294340ee0ce4ba44c2eb", "score": "0.5190372", "text": "private boolean procesoAnulaPedido_F11(String vFlagValidarMinMatriz) {\r\n boolean vValor = false;\r\n boolean previaAnulacion=true;\r\n UtilityTransactionPuntos trnxPuntos = new UtilityTransactionPuntos(VariablesCaja.vNumPedVta_Anul);\r\n try {\r\n \r\n //UNA NC PARCIAL NO SE ENVIA A ORBIS\r\n if(!isNCParcial()){\r\n /*\r\n * previoAnulaPuntos\r\n * anulaOrbis\r\n * */\r\n previaAnulacion =trnxPuntos.previoAnulaPuntos();\r\n }\r\n\r\n if(previaAnulacion){\r\n //ANULO EL PEDIDO EN LOCAL\r\n vValor = vAccionAnulaPedidoBD(vFlagValidarMinMatriz);\r\n FarmaUtility.aceptarTransaccion(); \r\n //ANULO EL PEDIDO EN LOCAL\r\n if (vValor) {\r\n // SI YA GENERO LA NOTA DE CREDITO YA SE DEBE DE ANULAR EN ORBIS\r\n // LAIS INDICO QUE SEGUN LO DEFINIDO Y CONVERSADO\r\n // DEBE DE HACERSE EL REGISTRO DE ANULACION A ORBIS SI ES QUE SE GRABO Y COMMIT EN EL LOCAL.\r\n // dubilluz 16.02.2015\r\n try {\r\n if (trnxPuntos.isVAnulaEnOrbis()&&!trnxPuntos.isVIndDescartaPedidoOrbis()) {\r\n trnxPuntos.anulaOrbis();\r\n if(trnxPuntos.isVIndDescartaPedidoOrbis())\r\n trnxPuntos.descartaAnulacionOrbis();\r\n else\r\n trnxPuntos.saveTrxAnulOrbis();\r\n \r\n FarmaUtility.aceptarTransaccion(); \r\n trnxPuntos.imprimeVariables();\r\n trnxPuntos.reset();\r\n FarmaUtility.showMessage(this, \"Anulación generada con éxito.\" + \"\\n\" +\r\n \"Se pudo procesar la anulación de Puntos.\", tblUsuariosCaja);\r\n \r\n \r\n } else{\r\n if(trnxPuntos.isVIndDescartaPedidoOrbis()){\r\n trnxPuntos.descartaAnulacionOrbis();\r\n FarmaUtility.aceptarTransaccion();\r\n trnxPuntos.imprimeVariables();\r\n trnxPuntos.reset();\r\n }\r\n /*** INICIO ARAVELLO 23/09/2019 ***/ //Comentado\r\n //FarmaUtility.showMessage(this, \"¡Anulación generada satisfactoriamente!\", tblUsuariosCaja);\r\n /*** FIN ARAVELLO 23/09/2019 ***/\r\n }\r\n } catch (Exception e) {\r\n log.error(\"\",e);\r\n FarmaUtility.liberarTransaccion();\r\n log.error(\"\",e);\r\n FarmaUtility.showMessage(this, \"Se generó con la éxito la nota de crédito\"+\"\\n\"+\r\n \"No se pudo procesar la anulación de Puntos:\"+\"\\n\"+\r\n e.getMessage()+\"\",\r\n tblUsuariosCaja); \r\n }\r\n // dubilluz 16.02.2015\r\n // SI FUESE NECESARIO\r\n //JCHAVEZ 10.07.2009.sn\r\n }\r\n \r\n } else {\r\n vValor = false;\r\n FarmaUtility.showMessage(this, \"No se puede anular el pedido.\"+\"\\n\"+\r\n \"Porque el servicio de puntos no permite esta acción.\"\r\n , tblUsuariosCaja);\r\n }\r\n } catch (Exception e) {\r\n // TODO: Add catch code\r\n log.error(\"\",e);\r\n FarmaUtility.liberarTransaccion();\r\n log.error(\"\",e);\r\n if(vValor)\r\n FarmaUtility.showMessage(this, \"Se generó con éxito Anulación\"+\"\\n\"+\r\n e.getMessage()\r\n , tblUsuariosCaja);\r\n else{\r\n FarmaUtility.showMessage(this, e.getMessage()\r\n , tblUsuariosCaja);\r\n }\r\n }\r\n return vValor;\r\n }", "title": "" }, { "docid": "d5fb46601e7eef98b15fc3c5c04d4519", "score": "0.5185854", "text": "private boolean controlla(List<Integer> parziale) {\n\t\tif(parziale.size()!=this.N*this.N)\n\t\t\tthrow new IllegalArgumentException(\"Numero di elementi insufficiente\") ;\n\t\t\n\t\t// Fai la somma delle righe\n\t\tfor(int riga=0; riga<this.N; riga++) {\n\t\t\tint somma = 0 ;\n\t\t\tfor(int col=0; col<this.N; col++) {\n\t\t\t\tsomma += parziale.get(riga*this.N+col) ;\n\t\t\t}\n\t\t\tif(somma!=this.magica)\n\t\t\t\treturn false ;\n\t\t}\n\t\t\n\t\t// Fai la somma delle colonne\n\t\tfor(int col=0; col<this.N; col++) {\n\t\t\tint somma = 0 ;\n\t\t\tfor(int riga=0; riga<this.N; riga++) {\n\t\t\t\tsomma += parziale.get(riga*this.N+col) ;\n\t\t\t}\n\t\t\tif(somma!=this.magica)\n\t\t\t\treturn false ;\n\t\t}\n\t\t\n\t\t// diagonale principale\n\t\tint somma = 0;\n\t\tfor(int riga=0; riga<this.N; riga++) {\n\t\t\tsomma += parziale.get(riga*this.N+riga) ;\n\t\t}\n\t\tif(somma!=this.magica)\n\t\t\treturn false ;\n\t\t\n\t\t// diagonale inversa\n\t\tsomma = 0;\n\t\tfor(int riga=0; riga<this.N; riga++) {\n\t\t\tsomma += parziale.get(riga*this.N+(this.N-1-riga)) ;\n\t\t}\n\t\tif(somma!=this.magica)\n\t\t\treturn false ;\n\n\t\treturn true ;\n\t}", "title": "" }, { "docid": "edca80640f7788e9718be901f5c52f5a", "score": "0.51831347", "text": "@Test\n public void testDeterminaTipoTrianguloInexistente() {\n System.out.println(\"DeterminaTipoTrianguloInexistente\");\n int a = 0;\n int b = 0;\n int c = 0;\n Triangulo instance = new Triangulo();\n String expResult = \"INEXISTENTE\";\n String result = instance.DeterminaTipoTriangulo(a, b, c);\n assertEquals(expResult, result);\n }", "title": "" }, { "docid": "2b195560d4f6ec748a65b94e9dd95b07", "score": "0.51712495", "text": "public Fichas colocarFicha(int x, String jugador) {\n int player = validarJugador(jugador);\n int coorX = 100, coorY = 100;\n if (x <= 86) {\n for (int i = this.tablero.getFilas() - 1; i >= 0; i--) {\n if (this.tablero.getMatriz()[i][0] == 0) {\n this.tablero.getMatriz()[i][0] = player;\n coorX = i;\n coorY = 0;\n\n break;\n }\n }\n } else if (x <= 172) {\n for (int i = this.tablero.getFilas() - 1; i >= 0; i--) {\n if (this.tablero.getMatriz()[i][1] == 0) {\n this.tablero.getMatriz()[i][1] = player;\n coorX = i;\n coorY = 1;\n break;\n }\n }\n } else if (x <= 258) {\n for (int i = this.tablero.getFilas() - 1; i >= 0; i--) {\n if (this.tablero.getMatriz()[i][2] == 0) {\n this.tablero.getMatriz()[i][2] = player;\n coorX = i;\n coorY = 2;\n break;\n }\n }\n } else if (x <= 344) {\n for (int i = this.tablero.getFilas() - 1; i >= 0; i--) {\n if (this.tablero.getMatriz()[i][3] == 0) {\n this.tablero.getMatriz()[i][3] = player;\n coorX = i;\n coorY = 3;\n break;\n }\n }\n } else if (x <= 430) {\n for (int i = this.tablero.getFilas() - 1; i >= 0; i--) {\n if (this.tablero.getMatriz()[i][4] == 0) {\n this.tablero.getMatriz()[i][4] = player;\n coorX = i;\n coorY = 4;\n break;\n }\n }\n } else if (x <= 515) {\n for (int i = this.tablero.getFilas() - 1; i >= 0; i--) {\n if (this.tablero.getMatriz()[i][5] == 0) {\n this.tablero.getMatriz()[i][5] = player;\n coorX = i;\n coorY = 5;\n break;\n }\n }\n } else {\n for (int i = this.tablero.getFilas() - 1; i >= 0; i--) {\n if (this.tablero.getMatriz()[i][6] == 0) {\n this.tablero.getMatriz()[i][6] = player;\n coorX = i;\n coorY = 6;\n break;\n }\n }\n }\n\n return this.pintarFichaTablero(coorY, coorX);\n }", "title": "" }, { "docid": "70b3ca9e3e35002c23e9f4571281c0b7", "score": "0.5169885", "text": "public void bajamana(int gasto,String quien) {\n Jugadores recibio;\n ImagenFondo interfaz;\n\n if (quien == \"Enemigo\") {\n recibio = Jugadores.getInstance(\"Enemigo\");\n interfaz = this.manaenemigo;\n } else {\n recibio = Jugadores.getInstance(\"Usuario\");\n interfaz = this.manausuario;\n }\n recibio.gasto(gasto);\n if (recibio.getMana() <= 1000 && recibio.getMana() > 950) {\n interfaz.imagen = \"imagenes/mana 1000.jpg\";\n interfaz.repaint();\n } else {\n if (recibio.getMana() <= 950 && recibio.getMana() > 900) {\n interfaz.imagen = \"imagenes/mana 950.jpg\";\n interfaz.repaint();\n } else {\n if (recibio.getMana() <= 900 && recibio.getMana() > 850) {\n interfaz.imagen = \"imagenes/mana 900.jpg\";\n interfaz.repaint();\n } else {\n if (recibio.getMana() <= 850 && recibio.getMana() > 800) {\n interfaz.imagen = \"imagenes/mana 850.jpg\";\n interfaz.repaint();\n } else {\n if (recibio.getMana() <= 800 && recibio.getMana() > 750) {\n interfaz.imagen = \"imagenes/mana 800.jpg\";\n interfaz.repaint();\n } else {\n if (recibio.getMana() <= 750 && recibio.getMana() > 700) {\n interfaz.imagen = \"imagenes/mana 750.jpg\";\n interfaz.repaint();\n } else {\n if (recibio.getMana() <= 700 && recibio.getMana() > 650) {\n interfaz.imagen = \"imagenes/mana 700.jpg\";\n interfaz.repaint();\n } else {\n if (recibio.getMana() <= 650 && recibio.getMana() > 600) {\n interfaz.imagen = \"imagenes/mana 650.jpg\";\n interfaz.repaint();\n } else {\n if (recibio.getMana() <= 600 && recibio.getMana() > 550) {\n interfaz.imagen = \"imagenes/mana 600.jpg\";\n interfaz.repaint();\n } else {\n if (recibio.getMana() <= 550 && recibio.getMana() > 500) {\n interfaz.imagen = \"imagenes/mana 550.jpg\";\n interfaz.repaint();\n } else {\n if (recibio.getMana() <= 500 && recibio.getMana() > 450) {\n interfaz.imagen = \"imagenes/mana 500.jpg\";\n interfaz.repaint();\n } else {\n if (recibio.getMana() <= 450 && recibio.getMana() > 400) {\n interfaz.imagen = \"imagenes/mana 450.jpg\";\n interfaz.repaint();\n } else {\n if (recibio.getMana() <= 400 && recibio.getMana() > 350) {\n interfaz.imagen = \"imagenes/mana 400.jpg\";\n interfaz.repaint();\n } else {\n if (recibio.getMana() <= 350 && recibio.getMana() > 300) {\n interfaz.imagen = \"imagenes/mana 350.jpg\";\n interfaz.repaint();\n } else {\n if (recibio.getMana() <= 300 && recibio.getMana() > 250) {\n interfaz.imagen = \"imagenes/mana 300.jpg\";\n interfaz.repaint();\n } else {\n if (recibio.getMana() <= 250 && recibio.getMana() > 200) {\n interfaz.imagen = \"imagenes/mana 250.jpg\";\n interfaz.repaint();\n } else {\n if (recibio.getMana() <= 200 && recibio.getMana() > 150) {\n interfaz.imagen = \"imagenes/mana 200.jpg\";\n interfaz.repaint();\n } else {\n if (recibio.getMana() <= 150 && recibio.getMana() > 100) {\n interfaz.imagen = \"imagenes/mana 150.jpg\";\n interfaz.repaint();\n } else {\n if (recibio.getMana() <= 100 && recibio.getMana() > 50) {\n interfaz.imagen = \"imagenes/mana 100.jpg\";\n interfaz.repaint();\n } else {\n if (recibio.getMana() <= 50 && recibio.getMana() > 0) {\n interfaz.imagen = \"imagenes/mana 40.jpg\";\n interfaz.repaint();\n } else {\n if (recibio.getMana() <= 0) {\n interfaz.imagen = \"imagenes/mana 0.jpg\";\n interfaz.repaint();\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n}\n}}}}}\n if (recibio.getMana() > 1000){\n recibio.setMana(1000);}\n }", "title": "" }, { "docid": "a2fca7fe42f303cadc8929c0829c6d87", "score": "0.51689386", "text": "private static void operarCondicional(Object[][] tabla, int i, int j, String aux4, String aux3) {\n for (int k = 0; k < tabla[0].length; k++) {\n if (tabla[0][k].toString().equals(aux3)) {\n for (int k2 = 0; k2 < tabla[0].length; k2++) {\n if (tabla[0][k2].toString().equals(aux4)) {\n if (tabla[i][k2].toString().equalsIgnoreCase(\"1\")\n && tabla[i][k].toString().equalsIgnoreCase(\"0\")) {\n tabla[i][j] = 0;\n } else {\n tabla[i][j] = 1;\n }\n }\n }\n }\n }\n }", "title": "" }, { "docid": "55411eb25496c4ede175720aef00441b", "score": "0.5164375", "text": "public ArrayList<Estado> backNivel(ArrayList<Ficha> fichas, Integer nivel, Tablero tablero, Integer nivelObjetivo) {\n ArrayList<Estado> resultado = new ArrayList<>();\n for (Ficha f : fichas) {\n if (!f.isUsada()) {\n for (int i = 0; i < 4; i++) {\n tablero.insertarFinal(f);\n //TareaAbs.sumar();\n if (tablero.esSolucion()) {\n nivel += 1;\n f.setUsada(true);\n tablero.aumentarPosicion();\n if (nivel.equals(nivelObjetivo)) {\n Estado estado = new Estado(tablero.clone(), Utils.getCopia(fichas), nivel );\n resultado.add(estado);\n } else {\n resultado.addAll(backNivel(fichas, nivel, tablero, nivelObjetivo));\n }\n tablero.retrocederPosicion();\n nivel -= 1;\n f.setUsada(false);\n }\n tablero.eliminarUltima();\n f.rotar();\n }\n }\n }\n return resultado;\n }", "title": "" }, { "docid": "e8cf3864273217c5e8b1dbfcd4e3cd95", "score": "0.5164302", "text": "@Override\n protected String[] doInBackground(final String... params) {\n Log.d(TAG, \"empieza Doin\");\n\n Cifrador cifrador = new Cifrador(params[0]);\n\n if (params[2].equals(\"0\")) {\n Log.d(TAG, \"continua Doin cifrando\");\n\n int n = 0;\n publishProgress(n, 0);\n StringBuilder buffer = new StringBuilder(params[1].length());\n for (int i = 0; i < params[1].length(); i++) {\n char c2 = cifrador.cifraCaracter(params[1].charAt(i));\n buffer.append(c2);\n /* try {\n for (Long j = 0L; j < 3L; j++) {\n Thread.sleep(1);\n\n }\n\n } catch (InterruptedException e) {\n Log.v(\"Codificacion int\", e.getMessage());\n }\n publishProgress(++n, 0);*/\n }\n\n isCifrado = true;\n String[] txt = new String[2];\n txt[0] = buffer.toString();\n txt[1] = \"1\";\n return txt;\n }\n Log.d(TAG, \"Continua Doin descifrando\");\n StringBuilder buffer = new StringBuilder(params[0].length());\n int n = 0;\n publishProgress(n, 1);\n for (int i = 0; i < params[1].length(); i++) {\n char c1 = params[1].charAt(i);\n char c2 = cifrador.descifraCaracter(c1);\n buffer.append(c2);\n /* try {\n for (Long j = 0L; j < 3L; j++) {\n Thread.sleep(1);\n\n }\n } catch (InterruptedException e) {\n Log.v(\"Codificacion int\", e.getMessage());\n }*/\n publishProgress(++n, 1);\n }\n isCifrado = false;\n\n String[] txt = new String[2];\n txt[0] = buffer.toString();\n txt[1] = \"0\";\n return txt;\n }", "title": "" }, { "docid": "99f3de05d1279eae160f33d5d9ecae7b", "score": "0.516319", "text": "public int tirarFijoles(){\n Reglas reglas = new Reglas();\n Random r = new Random();\n boolean frijoles [] = new boolean[5];\n JLabel addfrijol[] = {Frijol1,Frijol2,Frijol3,Frijol4,Frijol5};\n byte contador = 0;\n for (int i = 0; i < frijoles.length; i++) {\n frijoles[i]=r.nextBoolean();\n System.out.println(frijoles[i]);\n }\n for (int i = 0; i < frijoles.length; i++) {\n if(frijoles[i]){\n addfrijol[i].setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Imagenes/frijol2.png\")));\n contador++;\n System.out.println(contador);\n }else{\n addfrijol[i].setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Imagenes/frijol sin nada.png\"))); \n }\n }\n \n if(contador==0){\n JOptionPane.showMessageDialog(this, contador+ \" casillas no avanza, Siguente turno\");\n }else{\n JOptionPane.showMessageDialog(this, \"Avanzas \"+reglas.Avanzar(contador)+\" casillas\"); \n }\n //this.movimiento=reglas.Avanzar(contador);\n \n return reglas.Avanzar(contador);\n \n }", "title": "" }, { "docid": "0f715a154d74c420e2a21fe01093777a", "score": "0.5162678", "text": "public abstract boolean habilidadRaza1(Peleable atacado);", "title": "" }, { "docid": "3734797b01b5c5c9fbc842246eb0cedb", "score": "0.5162427", "text": "public void calcularTiro() {\n\t\tcarasDados[0] = dado1.getCaraVisible(); //carasDados[1] = dado1.getCaraVisible();\n\t\tcarasDados[1] = dado2.getCaraVisible(); //carasDados[2] = dado2.getCaraVisible();\n\t\ttiro = carasDados[0] + carasDados[1];\t//tiro = carasDados[1] + carasDados[2];\n\t\t\n\t}", "title": "" }, { "docid": "c52aaa834fc39fcb46b2ffef61f832a4", "score": "0.516217", "text": "private void Baja(ArrayList<Biblioteca> libros, ArrayList<Ejemplar> ejemplares) {\n byte i, libro; //Libro a dar de baja.\n do{\n Scanner teclado = new Scanner(System.in);\n System.out.println(\"¿Qué libro quieres dar de baja?\");\n for (i=0; i<libros.size(); i++)\n {\n System.out.println((i+1)+ \". \"+libros.get(i).getTítulo()+\".\");\n }\n libro=teclado.nextByte();\n } while (libro<1 || libro>libros.size());\n libros.get(libro-1).Baja(libros, libro);\n System.out.println(\"También se eliminarán sus ejemplares. *Efectuando operación*\");\n for (i=(byte)(ejemplares.size()-1); i>=0; i--)\n {\n if (ejemplares.get(i).getLibro()==libro)\n {\n ejemplares.get(i).Baja(ejemplares, i);\n }\n }\n System.out.println(\"¡Listo!\");\n /*Sin embargo, no está todo solucionado. Los ejemplares que tienen un número de libro posterior al libro marcado a eliminar (\"libro\"),\n tienen referencia a un número de libro incorrecto, pues el tamaño del ArrayList de los libros se ha reducido en uno. Para reparar esto,\n aquellos números de libro de los ejemplares que sean iguales o superiores al libro marcado, serán decrementados en uno: */\n for (i=0; i<ejemplares.size(); i++)\n {\n if (libro<ejemplares.get(i).getLibro()) {ejemplares.get(i).setLibro(ejemplares.get(i).getLibro()-1);}\n }\n }", "title": "" }, { "docid": "21da9d61f97927bc0ae2eea19e05d25a", "score": "0.5158313", "text": "public void accionesBombas() {\n\t\tint posX;\n\t\tint posY;\n\t\tString estado;\n\t\tint i;\n\t\tfor (i = 0; i < jugadores.length && jugadores[i] != null; i++) {\n\t\t\testado = jugadores[i].bomba.estado;\n\t\t\tswitch (estado) {\n\t\t\tcase \"cargando\":\n\t\t\t\tif (!jugadores[i].sueltaBomba) {\n\t\t\t\t\tjugadores[i].colocarbomba();\n\t\t\t\t\tposX = jugadores[i].bomba.x;\n\t\t\t\t\tposY = jugadores[i].bomba.y;\n\t\t\t\t\tmatriz[posX][posY] = jugadores[i].bomba.simbolo;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase \"inicioExplocion\":\n\t\t\t\tposX = jugadores[i].bomba.x;\n\t\t\t\tposY = jugadores[i].bomba.y;\n\t\t\t\tinicioExplocion(i, posX, posY);\n\t\t\t\tbreak;\n\t\t\tcase \"finExplocion\":\n\t\t\t\tposX = jugadores[i].bomba.x;\n\t\t\t\tposY = jugadores[i].bomba.y;\n\t\t\t\tfinExplocion(i, posX, posY);\n\t\t\t\tjugadores[i].bomba.estado = \"desactivado\";\n\t\t\t\tjugadores[i].sueltaBomba = false;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "3290723962a2db774ce8ee13e7ca5043", "score": "0.5149481", "text": "private void aggiorna(){\n \n //Controllo se c'è stata un'interazione con il Giocatore\n if(interazione != 0){\n \n //Metto in pausa solo al primo ciclo dopo l'interazione\n if(cont == 0){\n \n pausa(300);\n cont++;\n \n }\n \n //Richiamo il metodo per far uscire di scena l'antagonista\n UscitaDiScena.uscitaAiutante(this, velocita);\n \n pausa(15);\n \n }\n \n //Caso in cui non c'è stata un'interazione con il Giocatore\n else{\n \n /*Creo un intero casuale da 0 a 5 per far spostare l'aiutante in una\n delle 4 direzioni in maniera casuale o farlo stare fermo*/\n Random rand = new Random();\n int r = 0;\n r = rand.nextInt(6);\n \n /*Controllo il numero casuale in modo da scegliere la direzione\n dello spostamento*/\n switch(r){\n \n /*Faccio spostare in una direzione solo se:\n - non si trova allineato con il Giocatore in quella direzione\n - non esce dal bordo della mappa*/ \n case 1:\n \n if((animazione != 4) && ((this.punto.x + 80) < (Gioco.getLarghezza_mappa() + Gioco.getPoint_mappa().x - offset))){\n \n scegliImgDx();\n this.spostaDestra(velocita);\n }\n break;\n \n case 2:\n \n if((animazione != 3) && ((this.punto.x) > Gioco.getPoint_mappa().x + offset)){\n \n scegliImgSx();\n this.spostaSinistra(velocita);\n }\n break;\n \n case 3:\n \n if((animazione != 1) && ((this.punto.y) > Gioco.getPoint_mappa().y + offset)){\n \n scegliImgSu();\n this.spostaSu(velocita);\n }\n break;\n \n case 4:\n \n if((animazione != 2) && ((this.punto.y + 120) < (Gioco.getAltezza_mappa() + Gioco.getPoint_mappa().y - offset))){\n \n scegliImgGiu();\n this.spostaGiu(velocita);\n }\n break;\n \n //Altrimenti sta fermo\n default: break;\n \n \n }\n \n /*Ad ogni aggiornamento faccio stare fermo l'aiutante per qualche\n secondo. La pausa è qui perché così ho il tempo di cambiare le\n impostazioni in caso di contatto con il giocatore prima che\n l'aiutante si sposti di nuovo*/\n pausa(40);\n \n }\n \n }", "title": "" }, { "docid": "37210c9eee1f60eec6919a902bdae02d", "score": "0.5143765", "text": "public void cambioCantidad() {\n\r\n try {\r\n cantidad = Integer.parseInt(tab_tabla.getValor(\"cantidad_acafi\"));\r\n } catch (Exception e) {\r\n cantidad = 0;\r\n }\r\n if (cantidad <= 0) {\r\n utilitario.agregarMensajeError(\"La cantidad debe ser mayor o igual que 1\", \"\");\r\n tab_tabla.setValor(\"cantidad_acafi\", \"1\");\r\n utilitario.addUpdateTabla(tab_tabla, \"cantidad_acafi\", \"\");\r\n cantidad = 1;\r\n } else if (cantidad > 1) {\r\n //Si es mayor q 1 es ingreso masivo\r\n utilitario.agregarMensajeInfo(\"Se crearán \" + cantidad + \" activos fijos del mismo tipo\", \"\");\r\n }\r\n generarCodigoBarras();\r\n }", "title": "" }, { "docid": "a2278b85cbb0ada331d6865529e95754", "score": "0.5142236", "text": "public void triParMerite() {\n //on cree un Set temporaire qui aura le bon tri\n TreeSet<Etudiant> tmp = new TreeSet<>(new Comparator<Etudiant>() {\n @Override\n public int compare(Etudiant a, Etudiant b) {\n double moyA = 0, moyB = 0;\n try {\n moyA = a.calculerMoyenneGenerale();\n moyB = b.calculerMoyenneGenerale();\n } catch (ListeNotesVideException e) {\n e.printStackTrace();\n }\n // on mets moyB avant moyA afin de s'assurer que le tri se fera de façon décroissant\n int i = Double.compare(moyB, moyA);\n if (i == 0) return a.getIdentite().getNip().compareTo(b.getIdentite().getNip()); //on les trie dans l'ordre des NIP après\n return i;\n }\n });\n\n //on ajoute tout les elements de l'ancien set\n for (Etudiant e : this.etudiants) {\n tmp.add(e);\n }\n\n //on remplace l'ancien set par le nouveau\n this.etudiants = tmp;\n }", "title": "" }, { "docid": "bce181b6e20d449113f679ae9415b81d", "score": "0.5135668", "text": "@Test\n public void pascalsTriangle() throws Exception {\n BiFunction<Integer,Integer,Long> pascal = MemoizedBiFunction.makeRecursive(pascalInternal);\n\n for (int n = 0; n < 10; n++) {\n for (int r = 0; r <= n; r++) {\n assertEquals((Long) choose(n, r), pascal.apply(n, r));\n }\n }\n }", "title": "" }, { "docid": "947628e587a5bb9ba8228380119002e6", "score": "0.51346475", "text": "private static ArrayList<BitSet> buscaTransversales(Hipergrafo hg, int[] elementos,\n ArrayList<BitSet> permutaciones) {\n ArrayList<BitSet> transversales = new ArrayList<BitSet>();\n for (int m = 1; m < elementos.length; m++) {\n\n hg.verificaTransversal(permutaciones.get(m - 1), transversales);\n\n }\n\n\n return transversales;\n\n\n }", "title": "" }, { "docid": "815784d1d49cdeea34e126b4f604e4d3", "score": "0.5124464", "text": "static public void pintar( CircusCrush juego, GraphicsContext context, Dimension mundo, Dimension ventana )\n {\n Bloque bloques[][] = juego.getBloques();\n for (int i = 0; i <juego.getCantidadBloquesHorizontales(); i++) \n {\n for (int j = 0; j < juego.getCantidadBloquesVerticales(); j++) \n {\n Bloque bloque = bloques[i][j];\n Pintador.dibujar(bloque, context, mundo, ventana, juego);\n }\n \n }\n \n }", "title": "" }, { "docid": "861f62d4c5a77ed712b7d62a315bd1e9", "score": "0.5117866", "text": "public abstract boolean habilidadRaza2(Peleable atacado);", "title": "" }, { "docid": "937da76dc7b1c629907f8a40c0e23f89", "score": "0.5116115", "text": "public void Buscar(String palabra) {\n\n contador = 0;\n int indice = valorPalabra(palabra) % (TablaHash.length - 1);\n\n if (TablaHash[indice] != null) {//Si existe un elemento en esa posicion del vector\n\n if (TablaHash[indice].seEncuentraEnLista(palabra)) {//Buscar en la lista\n\n JOptionPane.showMessageDialog(null, \"El elemento \" + palabra + \" ha sido encontrado.\");\n\n } else {\n\n JOptionPane.showMessageDialog(null, \"El elemento \" + palabra + \" no ha sido encontrado.\");\n\n }\n\n } else {//Si no hay ningun elemento en esa posicion del Vector\n\n JOptionPane.showMessageDialog(null, \"El elemento \" + palabra + \" no ha sido encontrado.\");\n\n }\n \n }", "title": "" }, { "docid": "007e11c87af3990b25defca2f9ff1280", "score": "0.5114465", "text": "public void iluminarBotones( int i, int j, int orientacion, Object[][] tablero) {\n\t\t\n\t\t//Se pinta todo de blanco\n\t\t\n\t\tfor (int r = 1; r < 11; r++) {\n\t\t\tfor (int l = 1; l < 11; l++) {\n\t\t\t\t//ACTIVAR PARA QUE LOS BOTONES AZULES NO SEAN REPINTADOS\n\t\t\t\tif( ( (JButton)tablero[r][l]).getBackground().equals(Color.green)==false)\n\t\t\t\tthis.setColorBoton((JButton)tablero[r][l], Color.red);\n\t\t\t\tSystem.out.println(\"192 modelo\");\n\t\t\t}\n\t\t}\n\n\t\t//Se pintan los botones que se necesiten\n\t\tif(orientacion==0) {\n\t\t\tfor (int k = 0; k < 1; k++) {\n\t\t\t\tif(getVentanaJuego().getBotonTablero1(i, j+k).getBackground().equals(Color.green))\t\n\t\t\t\tthis.setColorBoton((JButton)tablero[i][j+k], Color.yellow);\n\t\t\t}\n\t\t}else if (orientacion==1){\n\t\t\tfor (int k = 0; k < 1; k++) {\n\t\t\t\tif(getVentanaJuego().getBotonTablero1(i+k, j).getBackground()!=Color.green)\n\t\t\t\tthis.setColorBoton((JButton)tablero[i+k][j], Color.yellow);\n\t\t\t}\n\t\t}\t\n\t}", "title": "" }, { "docid": "e99df49d1009060d41e67c7db229321f", "score": "0.5111715", "text": "public void tulostaHaku(){\n\n\t\tSystem.out.println(\"\\n-------------------------------------------------------------------------------------------------------------------------------------------------\");\n\t\tSystem.out.format(\"%5s%15s%50s%30s%15s%15s%15s%10s%10s\\n\",\"\",\"ISBN\",\"Nimi\",\"Tekija\",\"Vuosi\",\"Tyyppi\",\"Luokka\",\"Paino\",\"Hinta\");\n\t\tSystem.out.println(\"-------------------------------------------------------------------------------------------------------------------------------------------------\");\n\n\t\tfor(int i = 1 ; i< this.teoshakutulokset.size()+1; i++){\n\n\t\t\tString avain = String.valueOf(i);\n\t\t\tSystem.out.format(\"%5s\",avain);\n\n\t\t\tfor(int j = 1 ; j<this.teoshakutulokset.get(avain).size();j++){\n\n\t\t\t\tif(j==2){\n\t\t\t\t\tSystem.out.format(\"%50s\",this.teoshakutulokset.get(avain).get(j));\n\n\t\t\t\t}else if(j==3){\n\t\t\t\t\tSystem.out.format(\"%30s\",this.teoshakutulokset.get(avain).get(j));\n\n\t\t\t\t}else if(j==7 || j==8){\n\t\t\t\t\tSystem.out.format(\"%10s\",this.teoshakutulokset.get(avain).get(j));\n\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.format(\"%15s\",this.teoshakutulokset.get(avain).get(j));\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\n\t\tSystem.out.println(\"\\n\");\n\t\tSystem.out.println(\"Valitse haluamasi kirja ostoskoriin tai palaa hakuvalikkoon\");\n\t\tSystem.out.println(\"[ 1 ] Lisää kirja ostoskoriin\");\n\t\tSystem.out.println(\"[ 2 ] Palaa hakuvalikkoon\");\n\n\t\tString syote3 = \"\";\n\n\t\twhile(!syote3.equals(\"2\")){\n\n\t\t\tsyote3 = lukija.nextLine();\n\n\t\t\tif(syote3.equals(\"1\")){\n\n\t\t\t\tif(this.lisaaKoriin()){\n\t\t\t\t\tSystem.out.println(\"Teos lisätty ostoskoriin onnistuneesti!\");\n return;\n\t\t\t\t}\n\n\t\t\t}else if(!syote3.equals(\"2\")){\n\t\t\t\tSystem.out.println(\"Tuntematon komento!\");\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "b33beede20b08e51383fb1b0fb3af668", "score": "0.5111632", "text": "static private Hashi buscaSemiAfortunadas(Hashi hashiInicio,Hashi hashiOriginal,boolean nuevasAfortunadas, int pasada, EntSal myEntSal, boolean depuracion){\n \n int islasPretratadas = 0;\n for(Isla islaMirada : listaOriginal){\n \n if(hashiOriginal.islaSemiAfortunada(islaMirada) ){\n \n int valorInicio = hashiInicio.obtenerValorEnLista(islaMirada);\n int valorOriginal = hashiOriginal.obtenerValorEnLista(islaMirada);\n ArrayList<Isla> vecinas = hashiInicio.islasVecinas(islaMirada);\n \n if (valorInicio == valorOriginal) {\n //Se imprime un pequeño mensaje en pantalla que informe que el programa esta progresando\n System.out.print(\"/// \\r\");\n Isla isla = hashiInicio.buscaIsla (islaMirada);\n nuevasAfortunadas = true;\n \n do{ \n hashiInicio.tenderPuente(isla, vecinas.get(0));\n vecinas.remove(0);\n valorInicio --; \n \n if(!hashiInicio.parcialmenteValido()){\n hashiInicio = null;\n return hashiInicio;}\n \n }while ((valorInicio > 1 && valorOriginal == 3) ||\n (valorInicio > 2 && valorOriginal == 5) ||\n (valorInicio > 3 && valorOriginal == 7));\n \n if (depuracion)\n hashiInicio.imprimirHashi(EntSalDatos, -(pasada++));\n } \n }\n }\n return hashiInicio;\n \n }", "title": "" }, { "docid": "6a0bbe6c6d7d1636b76e06212c9d2ab3", "score": "0.511157", "text": "public void comparar(int botonPresionado){\n if (botonPresionado==colorTinta){\n correctas++;\n }else{\n intentos--;\n }\n\n try{\n timerPalabra.cancel();\n }catch (Exception e){}\n\n if (tipoP){\n if (intentos==0)finalPartida();\n else cargaJuego();\n }else{\n cargaJuego();\n }\n\n\n\n }", "title": "" }, { "docid": "aefc6d40179bcdb0929553790639ea43", "score": "0.510728", "text": "public void contadorPuntos() {\n\t}", "title": "" }, { "docid": "82c242d46361216a525336559477c078", "score": "0.5106673", "text": "public static void poblar_grafo() {\n\n ArrayList<Integer> ints = new ArrayList<>();\n ints.add(5);\n ints.add(10);\n ints.add(15);\n ints.add(20);\n ints.add(25);\n ints.add(30);\n ArrayList<String> elementos = conexiom.getLugares();\n\n int coord_x = 50;\n int coord_y = 50;\n for (int i = 0; i < elementos.size(); i++) {\n if (ints.contains(i)) {\n coord_x = 50;\n coord_y = coord_y + 200;\n }\n String nombre = elementos.get(i);\n nombre = nombre.replaceAll(\"\\\\s+\", \"\");\n System.out.println(elementos.get(i));\n Fabrica_elementos_interfaz.create_Nodo(nombre, coord_x, coord_y);\n coord_x = coord_x + 150;\n }\n poblar_grafo_lineas(conexiom.getArcos());\n\n }", "title": "" }, { "docid": "24fdc1e30ddde3359d2354b584f39d04", "score": "0.5106023", "text": "public boolean movimientoInvalido4() {\n String desplazamiento = \"\";\n //Se obtienen los puntos del tablero reales\n Punto punto0 = ventanaTablero.obtenerPuntoReal(lineaActual[0]);\n Punto punto1 = ventanaTablero.obtenerPuntoReal(lineaActual[1]);\n\n \n //Se determina hacia donde se desplazo la linea, con respecto al primer punto seleccionado\n if (lineaActual[0].obtenerX() > lineaActual[1].obtenerX()) {\n if (lineaActual[0].obtenerY() == lineaActual[1].obtenerY()) {\n desplazamiento = \"izquierda\"; \n //Se verifica si ya hay una linea en ese punto hacia esa direccion\n if(punto0.isLineaIzquierda() == true) {\n return true;\n }\n \n }\n }\n\n if (lineaActual[0].obtenerX() < lineaActual[1].obtenerX()) {\n if (lineaActual[0].obtenerY() == lineaActual[1].obtenerY()) {\n desplazamiento = \"derecha\";\n //Se verifica si ya hay una linea en ese punto hacia esa direccion\n if(punto0.isLineaDerecha() == true) {\n\n return true;\n\n }\n \n }\n }\n\n if (lineaActual[0].obtenerY() < lineaActual[1].obtenerY()) {\n if (lineaActual[0].obtenerX() == lineaActual[1].obtenerX()) {\n desplazamiento = \"abajo\";\n //Se verifica si ya hay una linea en ese punto hacia esa direccion\n if(punto0.isLineaAbajo() == true) {\n return true;\n }\n \n }\n }\n\n if (lineaActual[0].obtenerY() > lineaActual[1].obtenerY()) {\n if (lineaActual[0].obtenerX() == lineaActual[1].obtenerX()) {\n desplazamiento = \"arriba\";\n //Se verifica si ya hay una linea en ese punto hacia esa direccion\n if(punto0.isLineaArriba() == true) {\n return true;\n }\n \n }\n }\n \n return false;\n \n }", "title": "" }, { "docid": "a068910b30bc35e10b797a78127bd02c", "score": "0.5102914", "text": "private void moveSetas() {\n SetaSprite aSeta = null;\n \n for (int i = 0; i < numSetas; i++) {\n \n aSeta = (SetaSprite)vecControlo.elementAt(i);\n \n //\n // verificar se atingiu um objeto da TileLayer ou o limite superior\n // do ecrã\n //\n // se for verdadeiro remover do Vector e do LayerManager\n //\n if (aSeta.atingiuTopoOuObstaculo(objectos)) {\n vecControlo.removeElement(aSeta);\n lmgr.remove(aSeta);\n \n i--;\n numSetas--;\n } else {\n BolaSprite bs = null;\n \n for (int y = numSetas; y < vecControlo.size(); y++) {\n bs = (BolaSprite)vecControlo.elementAt(y);\n \n if (bs.colideCom(aSeta) || aSeta.colideCom(bs) ) {\n \n //\n // determinar se vai cair bónus. existem três condições\n // # não pode estar nenhum bónus a cair\n // # a personagem não pode ter nenhum bónus aplicado\n // # tem que sair zero :P\n //\n if (bonus.getFrame() == 5 && personagem.bonusActivo == BonusSprite.BONUS_NENHUM && rnd.nextInt(10) == 0) {\n bonus.seleccionarBonus(bs.getX(), bs.getY());\n }\n \n //\n // Destruir apenas se não tivermos o bónus da seta poderosa\n //\n if (personagem.bonusActivo != bonus.BONUS_SETA_PODEROSA) {\n vecControlo.removeElement(aSeta);\n lmgr.remove(aSeta);\n \n i--;\n numSetas--;\n }\n \n dividirBola(bs, 2, true);\n \n personagem.pontuacao+=100;\n personagem.tirosCerteiros++;\n \n //\n // Se foi a última bola, carregar o próximo nível\n //\n if (numBolas <= 0) {\n carregarNivel(++nivelActual, tipoNiveis, true);\n }\n \n break;\n }\n }\n }\n \n aSeta.mexeSeta();\n }\n }", "title": "" }, { "docid": "6441b469d00782996256fbeac6fb025a", "score": "0.51017463", "text": "public VistaTriangulo() {\n\t\tsuper(\"Triangulo\");\n\t\tsetSize(260, 320);\n\t\tsetDefaultCloseOperation(DISPOSE_ON_CLOSE);\n\t\tcargarControles();\n\t}", "title": "" }, { "docid": "f52785e7d14691d4c602393ac83acfa1", "score": "0.5101201", "text": "private void calcolaValoriGrafici(boolean flusso){\n\n\t\t\n\t\tprimoarco = new Arc2D.Double(xstart,ystart-semih-(posCollegamento+1)*DEFAULT_LINK_DISTANCE,\n\t\t\t\tsemiw,2*(semih+(posCollegamento+1)*DEFAULT_LINK_DISTANCE),90,90,0);\n\t\tprimalinea = new Line2D.Double(xstart+semiw/2,ystart-semih-(posCollegamento+1)*DEFAULT_LINK_DISTANCE,xstart+3*semiw/2,ystart-semih-(posCollegamento+1)*DEFAULT_LINK_DISTANCE);\n\t\tsecondoarco = new Arc2D.Double(xstart+3*semiw/2-DEFAULT_LINK_DISTANCE*posCollegamento/2,\n\t\t\t\tystart-semih-(posCollegamento+1)*DEFAULT_LINK_DISTANCE,posCollegamento*DEFAULT_LINK_DISTANCE,\n\t\t\t\t2*posCollegamento*DEFAULT_LINK_DISTANCE,0,90,0);\n\t\tsecondalinea = new Line2D.Double(xstart+3*semiw/2+posCollegamento*DEFAULT_LINK_DISTANCE/2,\n\t\t\t\tystart-semih,xstart+3*semiw/2+posCollegamento*DEFAULT_LINK_DISTANCE/2,ystart-semih-DEFAULT_LINK_DISTANCE);\n\t\tterzoarco = new Arc2D.Double(xstart-3*semiw/2-DEFAULT_LINK_DISTANCE*posCollegamento/2,\n\t\t\t\tystart-2*semih,3*semiw+posCollegamento*DEFAULT_LINK_DISTANCE, 2*semih,270,90,0); \n\t\tflex = new Freccia(Math.round((float)(xstart+3*semiw/2+posCollegamento*DEFAULT_LINK_DISTANCE/2)),\n\t\t\t\tMath.round((float)(ystart-semih-DEFAULT_LINK_DISTANCE/2)),update.getTipo(),((flusso)? 2:3)); \n\t\ttestolayout = new TextLayout(update.getViewName(), new Font(testofont,fontstile,fontdimensione),\n\t\t\t\tDEFAULT_FONTRENDERCONTEXT);\n\t\ttestoX = (float)(xstart+semiw/2-4);\n\t\ttestoY = (float)(ystart-semih-(posCollegamento+1)*DEFAULT_LINK_DISTANCE-5);\n\t\tif (rotazione)\n\t\t{\t \n\t\t\trectSelFirst = new Rectangle2D.Double(xstart+semiw/2-3,ystart-semih-(posCollegamento+1+2.0/3.0)*DEFAULT_LINK_DISTANCE-3,6,6);\n\t\t\trectSelSecond = new Rectangle2D.Double(xstart+3*semiw/2-3,ystart-semih-(posCollegamento+1+2.0/3.0)*DEFAULT_LINK_DISTANCE-3,6,6); \t\t\n\t\t}\n\t\telse\n\t\t{\n\t\t\trectSelFirst = new Rectangle2D.Double(xstart+semiw/2-3,ystart-semih-(posCollegamento+1)*DEFAULT_LINK_DISTANCE-3,6,6);\n\t\t\trectSelSecond = new Rectangle2D.Double(xstart+3*semiw/2-3,ystart-semih-(posCollegamento+1)*DEFAULT_LINK_DISTANCE-3,6,6); \t\t\t\n\t\t}\n\t}", "title": "" }, { "docid": "dcdd5ee06e996e04a1f4a2d3c83a73ea", "score": "0.5100324", "text": "public void iluminarBotones(Barco barco, int i, int j, int orientacion, Object[][] tablero) {\n\t\t\n\t\tfor (int r = 1; r < 11; r++) {\n\t\t\tfor (int l = 1; l < 11; l++) {\n\t\t\t\t//ACTIVAR PARA QUE LOS BOTONES AZULES NO SEAN REPINTADOS\n\t\t\t\tif( ( (JButton)tablero[r][l]).getBackground().equals(Color.green)==false)\n\t\t\t\tthis.setColorBoton((JButton)tablero[r][l], Color.white);\n\t\t\t}\n\t\t}\n\n\t\t//Se pintan los botones que se necesiten\n\t\tif(orientacion==0) {\n\t\t\tfor (int k = 0; k < barco.getCantidadCasillas(); k++) {\n\t\t\t\tif( ( (JButton)tablero[i][j+k]).getBackground().equals(Color.green)==false)\n\t\t\t\tthis.setColorBoton((JButton)tablero[i][j+k], Color.yellow);\n\t\t\t}\n\t\t}else if (orientacion==1){\n\t\t\tfor (int k = 0; k < barco.getCantidadCasillas(); k++) {\n\t\t\t\tif( ( (JButton)tablero[i+k][j]).getBackground().equals(Color.green)==false)\n\n\t\t\t\tthis.setColorBoton((JButton)tablero[i+k][j], Color.yellow);\n\t\t\t}\n\t\t}\n\n\t\t\n\n\t}", "title": "" }, { "docid": "9a62fa712b677ceb556a64d97d3d1d36", "score": "0.50997233", "text": "static void tigreBurroPasto() {\n\t\t\n\t\tGrafo<String> g = new GrafoMatrizAdyacenciaImplementacion<String>();\n\t\tg.addVertex(\"\");\n\t\tg.addVertex(\"T\");\n\t\tg.addVertex(\"B\");\n\t\tg.addVertex(\"P\");\n\t\tg.addVertex(\"TB\");\n\t\tg.addVertex(\"TP\");\n\t\tg.addVertex(\"BP\");\n\t\tg.addVertex(\"TBP\");\n\t\t\n\t\tg.addEdge(\"\", \"B\", 1.0);\n\t\tg.addEdge(\"B\", \"\", 1.0);\n\t\t\n\t\tg.addEdge(\"B\", \"TB\", 1.0);\n\t\tg.addEdge(\"TB\", \"B\", 1.0);\n\t\t\n\t\tg.addEdge(\"B\", \"BP\", 1.0);\n\t\tg.addEdge(\"BP\", \"B\", 1.0);\n\t\t\n\t\tg.addEdge(\"TB\", \"T\", 1.0);\n\t\tg.addEdge(\"T\", \"TB\", 1.0);\n\t\t\n\t\tg.addEdge(\"B\", \"TP\", 1.0);\n\t\tg.addEdge(\"TP\", \"B\", 1.0);\n\t\t\n\t\tg.addEdge(\"BP\", \"P\", 1.0);\n\t\tg.addEdge(\"P\", \"BP\", 1.0);\n\t\t\n\t\tg.addEdge(\"P\", \"TP\", 1.0);\n\t\tg.addEdge(\"TP\", \"P\", 1.0);\n\t\t\n\t\tg.addEdge(\"TP\", \"T\", 1.0);\n\t\tg.addEdge(\"T\", \"TP\", 1.0);\n\t\t\n\t\tg.addEdge(\"TP\", \"TBP\", 1.0);\n\t\tg.addEdge(\"TBP\", \"TP\", 1.0);\n\t\t\n\t\t\n\t\tVector<Pair<String, Double>> res = g.dijkstra(\"TBP\");\n\t\tint pos = ((GrafoMatrizAdyacenciaImplementacion<String>) g).getVertexPosition(res.get(res.size()-1).getFirst());\n\t\twhile(pos != ((GrafoMatrizAdyacenciaImplementacion<String>) g).getVertexPosition(res.get(pos).getFirst())){\n\t\t\tSystem.out.println(res.get(pos).getFirst());\n\t\t\tpos = ((GrafoMatrizAdyacenciaImplementacion<String>) g).getVertexPosition(res.get(pos).getFirst());\n\t\t}\n\t\treturn;\n\t}", "title": "" }, { "docid": "7d8adc1bda5cf369f0cae56bdb9df1c6", "score": "0.50996584", "text": "public static void repartirExperiencia(){\n Scanner scannerSaludPokemonEnemigoQuitada = new Scanner(System.in);\n final double PORCENTAJE_PARA_DISTRIBUIR_EXPERIENCIA_VIVO_1= 0.6;\n final double PORCENTAJE_PARA_DISTRIBUIR_EXPERIENCIA_MUERTO_1= 0.4;\n final double PORCENTAJE_PARA_DISTRIBUIR_EXPERIENCIA_VIVO_2= 0.9;\n final double PORCENTAJE_PARA_DISTRIBUIR_EXPERIENCIA_MUERTO_2= 0.1;\n int pokemonVivosEnBatalla=0, pokemonMuertosEnBatalla=0;\n int numAlmacenarExperiencia1, numAlmacenarExperiencia2;\n int numAlmacenarExperiencia3, numAlmacenarExperiencia4;\n int saludPokemonEnemigoQuitada;\n for(int i=0;i<pokemon.length;i++){\n if(pokemon[i]==null){}\n else{\n if(!\"desmayado\".equals(pokemon[i].getEstadoPokemonPelea()) && !\"muerto\".equals(pokemon[i].getEstadoPokemon())){\n pokemonVivosEnBatalla++;\n }\n else{\n pokemonMuertosEnBatalla++;\n }\n }\n }\n System.out.println(\"Ingrese la cantidad de vida que rebajo de los pokemon enemigos\");\n saludPokemonEnemigoQuitada=scannerSaludPokemonEnemigoQuitada.nextInt();\n if(pokemonVivosEnBatalla==0){\n numAlmacenarExperiencia1=saludPokemonEnemigoQuitada/pokemonMuertosEnBatalla;\n for(int p=0;p<pokemon.length ;p++)\n if(pokemon[p]==null){}\n else{\n pokemon[p].recibirExperiencia(numAlmacenarExperiencia1);\n }\n }\n if(pokemonMuertosEnBatalla==0){\n numAlmacenarExperiencia1=saludPokemonEnemigoQuitada/pokemonVivosEnBatalla;\n for(int h=0;h<pokemon.length; h++){\n if( pokemon[h]==null){}\n else{\n pokemon[h].recibirExperiencia(numAlmacenarExperiencia1);\n }\n }\n }\n else{\n if(pokemonVivosEnBatalla<=pokemonMuertosEnBatalla){\n numAlmacenarExperiencia1 = (int) (PORCENTAJE_PARA_DISTRIBUIR_EXPERIENCIA_VIVO_1*saludPokemonEnemigoQuitada);\n numAlmacenarExperiencia2 = numAlmacenarExperiencia1/pokemonVivosEnBatalla;\n numAlmacenarExperiencia3 = (int) (PORCENTAJE_PARA_DISTRIBUIR_EXPERIENCIA_MUERTO_1*saludPokemonEnemigoQuitada);\n numAlmacenarExperiencia4 = numAlmacenarExperiencia3/pokemonMuertosEnBatalla;\n for(int j=0;j<pokemon.length && pokemon[j]!=null;j++){\n if(!\"desmayado\".equals(pokemon[j].getEstadoPokemonPelea()) && !\"muerto\".equals(pokemon[j].getEstadoPokemon())){\n pokemon[j].recibirExperiencia(numAlmacenarExperiencia2);\n }\n else{\n pokemon[j].recibirExperiencia(numAlmacenarExperiencia4);\n }\n pokemon[j].subirDeNivel();\n }\n }\n else{\n numAlmacenarExperiencia1 = (int) (PORCENTAJE_PARA_DISTRIBUIR_EXPERIENCIA_VIVO_2*saludPokemonEnemigoQuitada);\n numAlmacenarExperiencia2 = numAlmacenarExperiencia1/pokemonVivosEnBatalla;\n numAlmacenarExperiencia3 = (int) (PORCENTAJE_PARA_DISTRIBUIR_EXPERIENCIA_MUERTO_2*saludPokemonEnemigoQuitada);\n numAlmacenarExperiencia4 = numAlmacenarExperiencia3/pokemonMuertosEnBatalla;\n for(int k=0;k<pokemon.length ;k++){\n if(pokemon[k]==null){}\n else{\n if(!\"desmayado\".equals(pokemon[k].getEstadoPokemonPelea()) && !\"muerto\".equals(pokemon[k].getEstadoPokemon())){\n pokemon[k].recibirExperiencia(numAlmacenarExperiencia2);\n }\n else{\n pokemon[k].recibirExperiencia(numAlmacenarExperiencia4);\n } \n pokemon[k].subirDeNivel();\n }\n }\n }\n }\n \n }", "title": "" }, { "docid": "65308a5e0bc93ba6ba0328f24a0fe353", "score": "0.5095845", "text": "private static void operarConjuncion(Object[][] tabla, int i, int j, String aux4, String aux3) {\n for (int k = 0; k < tabla[0].length; k++) {\n if (tabla[0][k].toString().equals(aux3)) {\n for (int k2 = 0; k2 < tabla[0].length; k2++) {\n if (tabla[0][k2].toString().equals(aux4)) {\n if (tabla[i][k2].toString().equalsIgnoreCase(\"1\")\n && tabla[i][k].toString().equalsIgnoreCase(\"1\")) {\n tabla[i][j] = 1;\n } else {\n tabla[i][j] = 0;\n }\n }\n }\n }\n }\n }", "title": "" }, { "docid": "44142b36660bdb9a603ac829707a7c33", "score": "0.50956535", "text": "public static void main(String[] args) {\r\n\r\n // Declara tabuleiro\r\n int [] tabuleiro = {-1, -1, -1, -1};\r\n\r\n // Laco para coluna 0\r\n for (int i = 0; i < N_RAINHAS; i++) {\r\n\r\n // Popula posição (linha) da rainha na coluna 1 do tabuleiro\r\n tabuleiro[0] = i;\r\n\r\n // Laco para coluna 1\r\n for (int j = 0; j < N_RAINHAS; j++) {\r\n\r\n // Popula posição (linha) da rainha na coluna 2 do tabuleiro\r\n tabuleiro[1] = j;\r\n\r\n // Condição de posicionamento coluna 1\r\n if (permitido(tabuleiro, 1)) {\r\n\r\n // Laco para coluna 2\r\n for (int k = 0; k < N_RAINHAS; k++) {\r\n\r\n // Popula posição (linha) da rainha na coluna 3 do tabuleiro\r\n tabuleiro[2] = k;\r\n\r\n // Condição de posicionamento coluna 2\r\n if (permitido(tabuleiro, 2)) {\r\n\r\n // Laço para outra linhas da coluna 3\r\n for (int l = 0; l < N_RAINHAS; l++) {\r\n\r\n // Popula posição (linha) da rainha na coluna 3 do tabuleiro\r\n tabuleiro[3] = l;\r\n\r\n // Condição de posicionamento coluna 3\r\n if (permitido(tabuleiro, 3)) {\r\n\r\n // Executa método para mostrar a posição das rainhas no tabuleiro\r\n mostraRainha(tabuleiro);\r\n }\r\n }\r\n }\r\n }\r\n }\r\n }\r\n\r\n }\r\n }", "title": "" }, { "docid": "0a11599e5ec1daeffc3b99b54c699466", "score": "0.50943583", "text": "public void verificaCampeao(){\n // Verifica se o topo esta todo preenchido pelo símbolo do jogador 1\n if(TopoEsqJog1==1 && TopoMeioJog1==1 && TopoDirJog1== 1){\n JanelaJogo.lblLogs.setText(\"O jogador \"+jog1.getNome()+\" foi vencedor.\");\n desabilitaBotoes();\n }\n // Verifica se o topo esta todo preenchido pelo símbolo do jogador 2\n else if(TopoEsqJog2==1 && TopoMeioJog2==1 && TopoDirJog2== 1){\n JanelaJogo.lblLogs.setText(\"O jogador \"+jog2.getNome()+\" foi vencedor.\");\n desabilitaBotoes();\n }\n // Verifica se a lateral esquerda esta toda preenchido pelo símbolo do jogador 1\n else if(TopoEsqJog1==1 && MeioEsqJog1==1 && BaseEsqJog1==1){\n JanelaJogo.lblLogs.setText(\"O jogador \"+jog1.getNome()+\" foi vencedor.\");\n desabilitaBotoes();\n }\n // Verifica se a lateral esquerda esta toda preenchido pelo símbolo do jogador 2\n else if(TopoEsqJog2==1 && MeioEsqJog2==1 && BaseEsqJog2==1){\n JanelaJogo.lblLogs.setText(\"O jogador \"+jog2.getNome()+\" foi vencedor.\");\n desabilitaBotoes();\n }\n // Verifica se a diagonal esquerda esta toda preenchido pelo símbolo do jogador 1\n else if(TopoEsqJog1==1 && MeioMeioJog1==1 && BaseDirJog1==1){\n JanelaJogo.lblLogs.setText(\"O jogador \"+jog1.getNome()+\" foi vencedor.\");\n desabilitaBotoes();\n }\n // Verifica se a diagonal esquerda esta toda preenchido pelo símbolo do jogador 2\n else if(TopoEsqJog2==1 && MeioMeioJog2==1 && BaseDirJog2==1){\n JanelaJogo.lblLogs.setText(\"O jogador \"+jog2.getNome()+\" foi vencedor.\");\n desabilitaBotoes();\n }\n // Verifica se a lateral direita esta toda preenchido pelo símbolo do jogador 1\n else if(TopoDirJog1==1 && MeioDirJog1==1 && BaseDirJog1==1){\n JanelaJogo.lblLogs.setText(\"O jogador \"+jog1.getNome()+\" foi vencedor.\");\n desabilitaBotoes();\n }\n // Verifica se a lateral direita esta toda preenchido pelo símbolo do jogador 2\n else if(TopoDirJog2==1 && MeioDirJog2==1 && BaseDirJog2==1){\n JanelaJogo.lblLogs.setText(\"O jogador \"+jog2.getNome()+\" foi vencedor.\");\n desabilitaBotoes();\n }\n // Verifica se a base esta toda preenchida pelo símbolo do jogador 1\n else if(BaseEsqJog1==1 && BaseMeioJog1==1 && BaseDirJog1==1){\n JanelaJogo.lblLogs.setText(\"O jogador \"+jog1.getNome()+\" foi vencedor.\");\n desabilitaBotoes();\n }\n // Verifica se a base esta toda preenchida pelo símbolo do jogador 2\n else if(BaseEsqJog2==1 && BaseMeioJog2==1 && BaseDirJog2==1){\n JanelaJogo.lblLogs.setText(\"O jogador \"+jog2.getNome()+\" foi campeão.\");\n desabilitaBotoes();\n }\n // Verifica se o meio horizontal esta todo preenchido pelo símbolo do jogador 1\n else if(MeioEsqJog1==1 && MeioMeioJog1==1 && MeioDirJog1==1){\n JanelaJogo.lblLogs.setText(\"O jogador \"+jog1.getNome()+\" foi campeão.\");\n desabilitaBotoes();\n }\n // Verifica se o meio meio horizontal esta todo preenchido pelo símbolo do jogador 2\n else if(MeioEsqJog2==1 && MeioMeioJog2==1 && MeioDirJog2==1){\n JanelaJogo.lblLogs.setText(\"O jogador \"+jog2.getNome()+\" foi campeão.\");\n desabilitaBotoes();\n }\n // Verifica se o meio meio vertical esta todo preenchido pelo símbolo do jogador 1\n else if(TopoMeioJog1==1 && MeioMeioJog1==1 && BaseMeioJog1==1){\n JanelaJogo.lblLogs.setText(\"O jogador \"+jog1.getNome()+\" foi campeão.\");\n desabilitaBotoes();\n }\n // Verifica se o meio meio vertical esta todo preenchido pelo símbolo do jogador 1\n else if(TopoMeioJog2==1 && MeioMeioJog2==1 && BaseMeioJog2==1){\n JanelaJogo.lblLogs.setText(\"O jogador \"+jog2.getNome()+\" foi campeão.\");\n desabilitaBotoes();\n }\n // Verifica se a diagonal direita esta toda preenchida pelo símbolo do jogador 1\n else if(TopoDirJog1==1 && MeioMeioJog1==1 && BaseEsqJog1==1){\n JanelaJogo.lblLogs.setText(\"O jogador \"+jog1.getNome()+\" foi campeão.\");\n desabilitaBotoes();\n }\n // Verifica se a diagonal direita esta toda preenchida pelo símbolo do jogador 1\n else if(TopoDirJog2==1 && MeioMeioJog2==1 && BaseEsqJog2==1){\n JanelaJogo.lblLogs.setText(\"O jogador \"+jog2.getNome()+\" foi campeão.\");\n desabilitaBotoes();\n }\n // Fim de jogo, deu velha\n else if(verificaFimDeJogo()==0){\n JanelaJogo.lblLogs.setText(\"Deu velha\");\n }\n }", "title": "" }, { "docid": "de41387a0ccb21f42e7ced64b648ac98", "score": "0.5093434", "text": "public void borrarTablas(){\n \n int contador = 3;\n \n try {\n sentencia.executeUpdate(\"DROP TABLE ESCCLI \");\n Programa01.mostrarMensaje(\"Se ha borrado la tabla ESCCLI\");\n contador--;\n } catch (SQLException ex) {\n Programa01.mostrarMensaje(\"Fallo al borrar la tabla ESCCLI. \"+ex);\n }\n \n try {\n sentencia.executeUpdate(\"DROP TABLE CLIENTES \");\n Programa01.mostrarMensaje(\"Se ha borrado la tabla CLIENTES\");\n contador--;\n } catch (SQLException ex) {\n Programa01.mostrarMensaje(\"Fallo al borrar la tabla CLIENTES. \"+ex);\n }\n \n try {\n sentencia.executeUpdate(\"DROP TABLE TABLAESCRITURAS\");\n Programa01.mostrarMensaje(\"Se ha borrado la tabla ESCRITURAS\");\n contador--;\n } catch (SQLException ex) {\n Programa01.mostrarMensaje(\"Fallo al borrar la tabla ESCRITURAS. \"+ex);\n }\n \n if (contador==0){\n Programa01.mostrarMensaje(\"Se han borrado las 3 tablas\");\n }\n }", "title": "" }, { "docid": "1a0990354f3741e7be5cd8a6cdeadd3f", "score": "0.5081301", "text": "private void connetti() \r\n {\r\n try \r\n {\r\n // Stabilisce la connessione col Database.\r\n String str = \"select * from graduatoria ORDER BY differenza DESC limit 10\";\r\n ps = Database.ConnessioneDB.conn.prepareStatement(str);\r\n rs = ps.executeQuery();\r\n \r\n int riga = 0;\r\n int colonna = 0;\r\n while (rs.next())\r\n {\r\n lista[riga][colonna] = rs.getString(\"nomeutente\");\r\n colonna++;\r\n lista[riga][colonna] = rs.getString(\"partitevinte\");\r\n colonna++;\r\n lista[riga][colonna] = rs.getString(\"partiteperse\");\r\n colonna++;\r\n lista[riga][colonna] = rs.getString(\"differenza\");\r\n colonna = 0;\r\n riga++;\r\n \r\n if(riga == 10)\r\n { \r\n break;\r\n }\r\n }\r\n model.setDataVector(lista, colonneTabella);\r\n tabella.setModel(model);\r\n }\r\n catch (SQLException ex)\r\n {\r\n Logger.getLogger(Classifica.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }", "title": "" }, { "docid": "b1010e77809659b160515c4878b318d9", "score": "0.507718", "text": "public int cantidadMinasAlrededor(int i, int j) {\n\t\tint valorContadorSoldador = 0;\n\t\tif(i==0 && j==0) {\n\t\t\tif(casillas[i][j+1].esMina()) {\n\t\t\t\tvalorContadorSoldador++;\n\t\t\t}\n\t\t\tif(casillas[i+1][j+1].esMina()) {\n\t\t\t\tvalorContadorSoldador++;\n\t\t\t}\n\t\t\tif(casillas[i+1][j].esMina()) {\n\t\t\t\tvalorContadorSoldador++;\n\t\t\t}\t\n\t\t}\n\t\telse if(i==0 && j==casillas[i].length-1) {\n\t\t\tif(casillas[i][j-1].esMina()) {\n\t\t\t\tvalorContadorSoldador++;\n\t\t\t}\n\t\t\tif(casillas[i+1][j-1].esMina()) {\n\t\t\t\tvalorContadorSoldador++;\n\t\t\t}\n\t\t\tif(casillas[i+1][j].esMina()) {\n\t\t\t\tvalorContadorSoldador++;\n\t\t\t}\n\t\t}\n\t\telse if(i==casillas.length-1 && j== 0) {\n\t\t\tif(casillas[i-1][j].esMina()) {\n\t\t\t\tvalorContadorSoldador++;\n\t\t\t}\n\t\t\tif(casillas[i-1][j+1].esMina()) {\n\t\t\t\tvalorContadorSoldador++;\n\t\t\t}\n\t\t\tif(casillas[i][j+1].esMina()) {\n\t\t\t\tvalorContadorSoldador++;\n\t\t\t}\n\t\t}\n\t\telse if(i==casillas.length-1 && j==casillas[i].length-1) {\n\t\t\tif(casillas[i-1][j].esMina()) {\n\t\t\t\tvalorContadorSoldador++;\n\t\t\t}\n\t\t\tif(casillas[i-1][j-1].esMina()) {\n\t\t\t\tvalorContadorSoldador++;\n\t\t\t}\n\t\t\tif(casillas[i][j-1].esMina()) {\n\t\t\t\tvalorContadorSoldador++;\n\t\t\t}\n\t\t}\n\t\telse if(i==0) {\n\t\t\tif(casillas[i][j-1].esMina()) {\n\t\t\t\tvalorContadorSoldador++;\n\t\t\t}\n\t\t\tif(casillas[i][j+1].esMina()) {\n\t\t\t\tvalorContadorSoldador++;\n\t\t\t}\n\t\t\tif(casillas[i+1][j-1].esMina()) {\n\t\t\t\tvalorContadorSoldador++;\n\t\t\t}\n\t\t\tif(casillas[i+1][j].esMina()) {\n\t\t\t\tvalorContadorSoldador++;\n\t\t\t}\n\t\t\tif(casillas[i+1][j+1].esMina()) {\n\t\t\t\tvalorContadorSoldador++;\n\t\t\t}\t\n\t\t}\n\t\telse if(j==0) {\n\t\t\tif(casillas[i-1][j].esMina()) {\n\t\t\t\tvalorContadorSoldador++;\n\t\t\t}\n\t\t\tif(casillas[i-1][j+1].esMina()) {\n\t\t\t\tvalorContadorSoldador++;\n\t\t\t}\n\t\t\tif(casillas[i][j+1].esMina()) {\n\t\t\t\tvalorContadorSoldador++;\n\t\t\t}\n\t\t\tif(casillas[i+1][j].esMina()) {\n\t\t\t\tvalorContadorSoldador++;\n\t\t\t}\n\t\t\tif(casillas[i+1][j+1].esMina()) {\n\t\t\t\tvalorContadorSoldador++;\n\t\t\t}\t\n\t\t}\n\t\telse if(i==casillas.length-1) {\n\t\t\t\tif(casillas[i][j-1].esMina()) {\n\t\t\t\t\tvalorContadorSoldador++;\n\t\t\t\t}\n\t\t\t\tif(casillas[i][j+1].esMina()) {\n\t\t\t\t\tvalorContadorSoldador++;\n\t\t\t\t}\n\t\t\t\tif(casillas[i-1][j-1].esMina()) {\n\t\t\t\t\tvalorContadorSoldador++;\n\t\t\t\t}\n\t\t\t\tif(casillas[i-1][j].esMina()) {\n\t\t\t\t\tvalorContadorSoldador++;\n\t\t\t\t}\n\t\t\t\tif(casillas[i-1][j+1].esMina()) {\n\t\t\t\t\tvalorContadorSoldador++;\n\t\t\t\t}\n\t\t}\n\t\telse if(j==casillas[i].length-1) {\n\t\t\tif(casillas[i-1][j].esMina()) {\n\t\t\t\tvalorContadorSoldador++;\n\t\t\t}\n\t\t\tif(casillas[i+1][j].esMina()) {\n\t\t\t\tvalorContadorSoldador++;\n\t\t\t}\n\t\t\tif(casillas[i][j-1].esMina()) {\n\t\t\t\tvalorContadorSoldador++;\n\t\t\t}\n\t\t\tif(casillas[i+1][j-1].esMina()) {\n\t\t\t\tvalorContadorSoldador++;\n\t\t\t}\n\t\t\tif(casillas[i-1][j-1].esMina()) {\n\t\t\t\tvalorContadorSoldador++;\n\t\t\t}\t\n\t\t}\n\t\telse {\n\t\t\tif(casillas[i-1][j-1].esMina()) {\n\t\t\t\tvalorContadorSoldador++;\n\t\t\t}\n\t\t\tif(casillas[i][j-1].esMina()) {\n\t\t\t\tvalorContadorSoldador++;\n\t\t\t}\n\t\t\tif(casillas[i+1][j-1].esMina()) {\n\t\t\t\tvalorContadorSoldador++;\n\t\t\t}\n\t\t\tif(casillas[i+1][j].esMina()) {\n\t\t\t\tvalorContadorSoldador++;\n\t\t\t}\n\t\t\tif(casillas[i+1][j+1].esMina()) {\n\t\t\t\tvalorContadorSoldador++;\n\t\t\t}\t\n\t\t\tif(casillas[i][j+1].esMina()) {\n\t\t\t\tvalorContadorSoldador++;\n\t\t\t}\n\t\t\tif(casillas[i-1][j+1].esMina()) {\n\t\t\t\tvalorContadorSoldador++;\n\t\t\t}\n\t\t\tif(casillas[i-1][j].esMina()) {\n\t\t\t\tvalorContadorSoldador++;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn valorContadorSoldador;\n\t}", "title": "" }, { "docid": "86d2ca7d0b1545cf75a187c4971dfac4", "score": "0.50719064", "text": "private void montaTela() {\r\n\t\tlog(\"montaTela\");\r\n\r\n\t\tmontaDadosTela();\r\n\r\n\t\tmontaBalao();\r\n\r\n\t\tmontaGanchoCorda();\r\n\r\n\t\tmontaObjs();\r\n\t}", "title": "" } ]
25197b4cf814864ecd440f23b9149cb3
TODO Autogenerated method stub
[ { "docid": "22330ea318a925fc73fa74ddbb7b3b90", "score": "0.0", "text": "@Override\r\n\tpublic int followingcount(String id) throws Exception {\n\t\treturn dao.followingcount(id);\r\n\t}", "title": "" } ]
[ { "docid": "05a606445504484958a1c21e14b7198e", "score": "0.69474965", "text": "@Override\r\n\tpublic void sapace() {\n\t\t\r\n\t}", "title": "" }, { "docid": "8619203d4867f5c6d05eb9a5354405c0", "score": "0.6920049", "text": "@Override\n\t\tpublic void pintate() {\n\t\t\t\n\t\t}", "title": "" }, { "docid": "8619203d4867f5c6d05eb9a5354405c0", "score": "0.6920049", "text": "@Override\n\t\tpublic void pintate() {\n\t\t\t\n\t\t}", "title": "" }, { "docid": "33d41636b65afa8267c9085dae3d1a2d", "score": "0.6676429", "text": "private void apparence() {\r\n\r\n\t}", "title": "" }, { "docid": "0b5b11f4251ace8b3d0f5ead186f7beb", "score": "0.65686274", "text": "@Override\n\tpublic void comer() {\n\t\t\n\t}", "title": "" }, { "docid": "118f2b8a20f48999973063ac332d07d3", "score": "0.6563993", "text": "@Override\r\n\t\t\tpublic void atras() {\n\r\n\t\t\t}", "title": "" }, { "docid": "80d20df1cc75d8fa96c12c49a757fc43", "score": "0.65278774", "text": "@Override\n\tprotected void getExras() {\n\t\t\n\t}", "title": "" }, { "docid": "ffd8193c9cf73515d0f9301b9a7d8817", "score": "0.6485175", "text": "@Override\n\tpublic void morrer() {\n\n\t}", "title": "" }, { "docid": "b62a7c8e0bb1090171742c543bf4b253", "score": "0.6373858", "text": "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "title": "" }, { "docid": "6c2fa45ab362625ae567ee8a229630a4", "score": "0.622455", "text": "@Override\n\tprotected void interr() {\n\t}", "title": "" }, { "docid": "b941b399a338e8c204f1063e54a94824", "score": "0.6224095", "text": "public void mo7103g() {\n }", "title": "" }, { "docid": "b941b399a338e8c204f1063e54a94824", "score": "0.6224095", "text": "public void mo7103g() {\n }", "title": "" }, { "docid": "b941b399a338e8c204f1063e54a94824", "score": "0.6224095", "text": "public void mo7103g() {\n }", "title": "" }, { "docid": "27e4479db2c37a2e77fe796119b66d4b", "score": "0.61936283", "text": "@Override\r\n\t\t\tpublic void adelante() {\n\r\n\t\t\t}", "title": "" }, { "docid": "0d3bf6f2ee77f787007ba6b4021b5721", "score": "0.6164056", "text": "protected void olha()\r\n\t{\r\n\t\t\r\n\t}", "title": "" }, { "docid": "e3a701d0fdb1fef5e0afd9dc7c345fcb", "score": "0.61634105", "text": "@Override\n\tprotected void generateData() {\n\t\n\t}", "title": "" }, { "docid": "10ead2e988bf977cb8edb2bacf974891", "score": "0.6158877", "text": "@Override\n\tprotected void init() {\n\t\t\n\t}", "title": "" }, { "docid": "10ead2e988bf977cb8edb2bacf974891", "score": "0.6158877", "text": "@Override\n\tprotected void init() {\n\t\t\n\t}", "title": "" }, { "docid": "10ead2e988bf977cb8edb2bacf974891", "score": "0.6158877", "text": "@Override\n\tprotected void init() {\n\t\t\n\t}", "title": "" }, { "docid": "10ead2e988bf977cb8edb2bacf974891", "score": "0.6158877", "text": "@Override\n\tprotected void init() {\n\t\t\n\t}", "title": "" }, { "docid": "10ead2e988bf977cb8edb2bacf974891", "score": "0.6158877", "text": "@Override\n\tprotected void init() {\n\t\t\n\t}", "title": "" }, { "docid": "4e49f5db36ca664153e54380025b85d4", "score": "0.6095768", "text": "protected boolean method_21825() {\n }", "title": "" }, { "docid": "67e1a422c8d1e74f6601c8a6d1aaa237", "score": "0.6074471", "text": "@Override\n\tpublic void apagar() {\n\n\t}", "title": "" }, { "docid": "a613dcce17453a8e1eed3b984b6b35b1", "score": "0.6028443", "text": "@Override\n\tpublic void composant() {\n\t}", "title": "" }, { "docid": "6f653341cfc7d30c8418e4b72116f7e2", "score": "0.60278815", "text": "public void mo5201a() {\n }", "title": "" }, { "docid": "588ab475e29950e8a1944c4a28fe2189", "score": "0.6027122", "text": "public void mo7036d() {\n }", "title": "" }, { "docid": "770d423e40bf5782a700bc181e8b8a1e", "score": "0.6020569", "text": "@Override\n\tvoid init() {\n\t\t\n\t}", "title": "" }, { "docid": "770d423e40bf5782a700bc181e8b8a1e", "score": "0.6020569", "text": "@Override\n\tvoid init() {\n\t\t\n\t}", "title": "" }, { "docid": "f2fe8a59406298fe7e97b543f2bf8186", "score": "0.60087883", "text": "@Override\r\n \tpublic void init() {\r\n \t}", "title": "" }, { "docid": "fa1a013b1df2f5f1062e1cc971135645", "score": "0.5988416", "text": "@Override\n\tpublic void mamar() {\n\t\t\n\t}", "title": "" }, { "docid": "f49ed6756be41155bd7261ea2ff6564b", "score": "0.59858125", "text": "@Override\n\t\t\t\tpublic void init() {\n\n\t\t\t\t}", "title": "" }, { "docid": "f49ed6756be41155bd7261ea2ff6564b", "score": "0.59858125", "text": "@Override\n\t\t\t\tpublic void init() {\n\n\t\t\t\t}", "title": "" }, { "docid": "f49ed6756be41155bd7261ea2ff6564b", "score": "0.59858125", "text": "@Override\n\t\t\t\tpublic void init() {\n\n\t\t\t\t}", "title": "" }, { "docid": "0ecc2b05fa1b3fe069983a07eba7914d", "score": "0.5978686", "text": "private void inicialitzarTaulell() {\r\n\t\t//PENDENT IMPLEMENTAR\r\n\t}", "title": "" }, { "docid": "9fe3f6ccb967a8bcee9106fbbd56b684", "score": "0.5974211", "text": "@Override\r\n\tpublic void properties() {\n\t\t\r\n\t}", "title": "" }, { "docid": "b044552fe4d8d8225d09361b41fbea3a", "score": "0.59513867", "text": "public void mo5201a() {\n }", "title": "" }, { "docid": "fcfbf321ff3e4c56b4e383ce15e49dbb", "score": "0.59429646", "text": "@Override\r\n\tpublic void obtersaida()\r\n\t{\n\t}", "title": "" }, { "docid": "482b1825ec60700f97ed42e420d69d99", "score": "0.59383935", "text": "@Override\n\tpublic void valide() {\n\t}", "title": "" }, { "docid": "b2775812be4cd009dca27a30c5ce78fa", "score": "0.59383595", "text": "@Override\n\tprotected void fouseChange() {\n\n\t}", "title": "" }, { "docid": "4b7e3f693781babf82ed11447db2a554", "score": "0.5929242", "text": "@Override\n\tpublic void concentrarse() {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t}", "title": "" }, { "docid": "41e50fb9a0b417818374927eb02c67f1", "score": "0.59280443", "text": "protected void mo5608a() {\n }", "title": "" }, { "docid": "21caf865e426ec5feea3bed303161112", "score": "0.59228885", "text": "@Override\r\n\t\t\t\t\tpublic void funktionMarkiert() {\n\t\t\t\t\t\t\r\n\t\t\t\t\t}", "title": "" }, { "docid": "21caf865e426ec5feea3bed303161112", "score": "0.59228885", "text": "@Override\r\n\t\t\t\t\tpublic void funktionMarkiert() {\n\t\t\t\t\t\t\r\n\t\t\t\t\t}", "title": "" }, { "docid": "21caf865e426ec5feea3bed303161112", "score": "0.59228885", "text": "@Override\r\n\t\t\t\t\tpublic void funktionMarkiert() {\n\t\t\t\t\t\t\r\n\t\t\t\t\t}", "title": "" }, { "docid": "8b18fd12dbb5303a665e92c25393fb78", "score": "0.59215844", "text": "@Override\n\tprotected void initData() {\n\t\t\n\t}", "title": "" }, { "docid": "8b18fd12dbb5303a665e92c25393fb78", "score": "0.59215844", "text": "@Override\n\tprotected void initData() {\n\t\t\n\t}", "title": "" }, { "docid": "9a0f5a503f38cb7c40d13ecc89073bd8", "score": "0.58973867", "text": "@Override\r\n\tpublic void getDuriation() {\n\t\t\r\n\t}", "title": "" }, { "docid": "9781c90863e9dc9781fafcc4dc828136", "score": "0.58739185", "text": "public void mo7839l() {\n }", "title": "" }, { "docid": "9781c90863e9dc9781fafcc4dc828136", "score": "0.58739185", "text": "public void mo7839l() {\n }", "title": "" }, { "docid": "32d0d506f2de2532fe4789f006c84da0", "score": "0.5863205", "text": "@Override\n\tpublic void bicar() {\n\t\t\n\t}", "title": "" }, { "docid": "02699a98134693036160a045239bddba", "score": "0.58500654", "text": "@Override\r\n\tpublic void zwroc() {\n\r\n\t}", "title": "" }, { "docid": "46569800c9d73cd59bcbec066cdb5304", "score": "0.58491904", "text": "private void lidoInf() {\n\n\n }", "title": "" }, { "docid": "b8d886581a76c72e11ab317e6cb6e2a8", "score": "0.58308905", "text": "@Override\r\n public void rechercher() {\n }", "title": "" }, { "docid": "80b5722cdc9efe11a305e92ea813ac0f", "score": "0.5827698", "text": "@Override\r\n\tpublic void inter() {\n\t\t\r\n\t}", "title": "" }, { "docid": "947b4ee184fe32ab14b8c244b9461c7d", "score": "0.5807026", "text": "@Override\n\tpublic void vida() {\n\n\t}", "title": "" }, { "docid": "9d2f44c3ebe1fb8de1ac4ae677e2d851", "score": "0.58069414", "text": "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "c86f446a8bd6af19f88cc011fdf2ffd4", "score": "0.5802792", "text": "public void asustar() {\n // TODO implement here\n \n }", "title": "" }, { "docid": "b14d9313b224be37257260448fc816d3", "score": "0.58025044", "text": "@Override\n\tpublic void breathes()\n\t{\n\n\t}", "title": "" }, { "docid": "c8f75a8f93bc20d4e8695ba99b470e1d", "score": "0.580217", "text": "public void mo1684e() {\n }", "title": "" }, { "docid": "1c223692b2a2bdbc36ebfa379064d28d", "score": "0.5800657", "text": "public void mo7102f() {\n }", "title": "" }, { "docid": "1c223692b2a2bdbc36ebfa379064d28d", "score": "0.5800657", "text": "public void mo7102f() {\n }", "title": "" }, { "docid": "1c223692b2a2bdbc36ebfa379064d28d", "score": "0.5800657", "text": "public void mo7102f() {\n }", "title": "" }, { "docid": "19b30f4f881d8f7b600c7c12f1c30963", "score": "0.57979786", "text": "public void mo5203c() {\n }", "title": "" }, { "docid": "5783648f118108797828ca2085091ef9", "score": "0.57931334", "text": "@Override\n protected void initialize() {\n \n }", "title": "" }, { "docid": "bb30a482e2236eb664f8d8fc23724b59", "score": "0.57915", "text": "@Override\n\tprotected void initActb() {\n\t\t\n\t}", "title": "" }, { "docid": "7846476d210d55d45e5540a9c92b1ce3", "score": "0.57903147", "text": "@Override\n\tpublic void chocar() {\n\t\t\n\t}", "title": "" }, { "docid": "7846476d210d55d45e5540a9c92b1ce3", "score": "0.57903147", "text": "@Override\n\tpublic void chocar() {\n\t\t\n\t}", "title": "" }, { "docid": "54b1134554bc066c34ed30a72adb660c", "score": "0.5788234", "text": "@Override\n\tprotected void initData() {\n\n\t}", "title": "" }, { "docid": "54b1134554bc066c34ed30a72adb660c", "score": "0.5788234", "text": "@Override\n\tprotected void initData() {\n\n\t}", "title": "" }, { "docid": "0cc40600dd2e7cb9f56bd77995e01fc3", "score": "0.5780891", "text": "@Override\n\tpublic void Miow() {\n\t\t\n\t}", "title": "" }, { "docid": "a5600ed00582d8ca8d293829dcfd6c38", "score": "0.57797045", "text": "private void Syso() {\n\r\n\t}", "title": "" }, { "docid": "0a14b2c4ac9647e6bc7077e1e653d540", "score": "0.57781726", "text": "@Override\n \tprotected int getSize() {\n \t\treturn 0;\n \t}", "title": "" }, { "docid": "7d110d5ea1b4795727b052c3f897a146", "score": "0.5776224", "text": "public void ligar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "e022c47f335a39c6bdb94a0f49a4e940", "score": "0.5767807", "text": "@Override\r\n\tpublic void parar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "518a761521ca9f5cb8a8055b32b72cda", "score": "0.57589173", "text": "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "title": "" }, { "docid": "518a761521ca9f5cb8a8055b32b72cda", "score": "0.57589173", "text": "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "title": "" }, { "docid": "900d30c04323cde584c73c5ffa48d9cf", "score": "0.5757801", "text": "@Override\n\t\tpublic void visitEnd() {\n\n\t\t}", "title": "" }, { "docid": "ebfe1bb4dd1c0618c0fad36d9f7674b4", "score": "0.57514423", "text": "@Override\n protected void initialize() {\n\n }", "title": "" }, { "docid": "0adb5f1f1c75684eab047201533dcfe7", "score": "0.57495934", "text": "protected void mo5609b() {\n }", "title": "" }, { "docid": "c16c8d1ea4a8c8572e4aa91460503742", "score": "0.57494617", "text": "private void Initalization() {\n\t\t\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.57491463", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.57491463", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.57491463", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "b938c58260ac0b899b5e73492c412a69", "score": "0.57377213", "text": "@Override\r\n\t\t\t\t\t\r\n\t\t\t\t\tpublic void leerMarkiert() {\n\t\t\t\t\t\t\r\n\t\t\t\t\t}", "title": "" }, { "docid": "b938c58260ac0b899b5e73492c412a69", "score": "0.57377213", "text": "@Override\r\n\t\t\t\t\t\r\n\t\t\t\t\tpublic void leerMarkiert() {\n\t\t\t\t\t\t\r\n\t\t\t\t\t}", "title": "" }, { "docid": "b938c58260ac0b899b5e73492c412a69", "score": "0.57377213", "text": "@Override\r\n\t\t\t\t\t\r\n\t\t\t\t\tpublic void leerMarkiert() {\n\t\t\t\t\t\t\r\n\t\t\t\t\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57341826", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57341826", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57341826", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57341826", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "734b1972ec29b58535c294e3962d017d", "score": "0.5732932", "text": "@Override\n\tpublic void generar() {\n\t\t\n\t}", "title": "" }, { "docid": "4da4d5cf96c032296a894fc6e8d76283", "score": "0.5718805", "text": "@Override\n\tpublic void beCagey() {\n\t\t\n\t}", "title": "" }, { "docid": "a8f4d3149e0f7a43b23b53ce69363fd6", "score": "0.57184815", "text": "public void mo5202b() {\n }", "title": "" }, { "docid": "c2a6308317d4e5fc230ea7d2fb55fc1b", "score": "0.5715011", "text": "@Override\n\tpublic void update() {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t}", "title": "" } ]
b477c0f36283ac5548a0877773a62583
optional string FreeFormText = 33;
[ { "docid": "6e62b102e698b6344a4b3fd39cddbdd6", "score": "0.6474425", "text": "boolean hasFreeFormText();", "title": "" } ]
[ { "docid": "ab54a14b6a43469aaa76a28068d6fa4a", "score": "0.7244743", "text": "java.lang.String getFreeFormText();", "title": "" }, { "docid": "ab54a14b6a43469aaa76a28068d6fa4a", "score": "0.7244743", "text": "java.lang.String getFreeFormText();", "title": "" }, { "docid": "ab54a14b6a43469aaa76a28068d6fa4a", "score": "0.7244743", "text": "java.lang.String getFreeFormText();", "title": "" }, { "docid": "ab54a14b6a43469aaa76a28068d6fa4a", "score": "0.7244743", "text": "java.lang.String getFreeFormText();", "title": "" }, { "docid": "ab54a14b6a43469aaa76a28068d6fa4a", "score": "0.7244457", "text": "java.lang.String getFreeFormText();", "title": "" }, { "docid": "e5baf32208c23ae2a49489fec61c22f4", "score": "0.628863", "text": "private void Text(String string) {\n\t\t\t\t\t\n\t\t\t\t}", "title": "" }, { "docid": "d913d0533deff12dde8b252966f8e93f", "score": "0.6253324", "text": "public boolean hasFreeFormText() {\n return ((bitField1_ & 0x00000001) == 0x00000001);\n }", "title": "" }, { "docid": "b11b3096aad947d03b917ed2119ed362", "score": "0.62049043", "text": "public boolean hasFreeFormText() {\n return ((bitField1_ & 0x00000001) == 0x00000001);\n }", "title": "" }, { "docid": "780abe2316a53a37db027d963bc2528f", "score": "0.619079", "text": "public java.lang.String getFreeFormText() {\n java.lang.Object ref = freeFormText_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n freeFormText_ = s;\n }\n return s;\n }\n }", "title": "" }, { "docid": "780abe2316a53a37db027d963bc2528f", "score": "0.619079", "text": "public java.lang.String getFreeFormText() {\n java.lang.Object ref = freeFormText_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n freeFormText_ = s;\n }\n return s;\n }\n }", "title": "" }, { "docid": "780abe2316a53a37db027d963bc2528f", "score": "0.6190122", "text": "public java.lang.String getFreeFormText() {\n java.lang.Object ref = freeFormText_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n freeFormText_ = s;\n }\n return s;\n }\n }", "title": "" }, { "docid": "780abe2316a53a37db027d963bc2528f", "score": "0.6190122", "text": "public java.lang.String getFreeFormText() {\n java.lang.Object ref = freeFormText_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n freeFormText_ = s;\n }\n return s;\n }\n }", "title": "" }, { "docid": "780abe2316a53a37db027d963bc2528f", "score": "0.618993", "text": "public java.lang.String getFreeFormText() {\n java.lang.Object ref = freeFormText_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n freeFormText_ = s;\n }\n return s;\n }\n }", "title": "" }, { "docid": "7931e36d156fb9c7d92eb952cd2ef3dc", "score": "0.6165808", "text": "protected String getDosageFormFreeText() {\n return dosageFormFreeText;\n }", "title": "" }, { "docid": "7984d8d748f413b82c301fd57cd2ceb1", "score": "0.6148009", "text": "public java.lang.String getFreeFormText() {\n java.lang.Object ref = freeFormText_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n freeFormText_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "title": "" }, { "docid": "7984d8d748f413b82c301fd57cd2ceb1", "score": "0.6147181", "text": "public java.lang.String getFreeFormText() {\n java.lang.Object ref = freeFormText_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n freeFormText_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "title": "" }, { "docid": "7984d8d748f413b82c301fd57cd2ceb1", "score": "0.6147181", "text": "public java.lang.String getFreeFormText() {\n java.lang.Object ref = freeFormText_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n freeFormText_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "title": "" }, { "docid": "7984d8d748f413b82c301fd57cd2ceb1", "score": "0.614665", "text": "public java.lang.String getFreeFormText() {\n java.lang.Object ref = freeFormText_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n freeFormText_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "title": "" }, { "docid": "7984d8d748f413b82c301fd57cd2ceb1", "score": "0.614665", "text": "public java.lang.String getFreeFormText() {\n java.lang.Object ref = freeFormText_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n freeFormText_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "title": "" }, { "docid": "34df7cfa67c546c39b5ff45fd8475158", "score": "0.60796756", "text": "public boolean hasFreeFormText() {\n return ((bitField0_ & 0x00080000) == 0x00080000);\n }", "title": "" }, { "docid": "34df7cfa67c546c39b5ff45fd8475158", "score": "0.60796756", "text": "public boolean hasFreeFormText() {\n return ((bitField0_ & 0x00080000) == 0x00080000);\n }", "title": "" }, { "docid": "b75b144a946b15b65323e1dda1c56124", "score": "0.6075581", "text": "public Char80 getContractText(){\r\n return localContractText;\r\n }", "title": "" }, { "docid": "dcabb62b445a33c4452393622528a395", "score": "0.6033977", "text": "public boolean hasFreeFormText() {\n return ((bitField0_ & 0x00004000) == 0x00004000);\n }", "title": "" }, { "docid": "4f23bcc46f4bcbcb646f6cdb6ef310e8", "score": "0.603274", "text": "public boolean hasFreeFormText() {\n return ((bitField0_ & 0x00080000) == 0x00080000);\n }", "title": "" }, { "docid": "4f23bcc46f4bcbcb646f6cdb6ef310e8", "score": "0.6031049", "text": "public boolean hasFreeFormText() {\n return ((bitField0_ & 0x00080000) == 0x00080000);\n }", "title": "" }, { "docid": "a4ee309c3edeef5b08f87b1f821e8552", "score": "0.6028602", "text": "public void setContractText(Char80 param){\r\n \r\n this.localContractText=param;\r\n \r\n\r\n }", "title": "" }, { "docid": "7afb87e20c8cf4e2cc0e4c310002e6ba", "score": "0.6004125", "text": "public boolean hasFreeFormText() {\n return ((bitField0_ & 0x00004000) == 0x00004000);\n }", "title": "" }, { "docid": "9af0a1843ab54ef8390be57017afbbfa", "score": "0.5938954", "text": "public Char60 getTermText(){\r\n return localTermText;\r\n }", "title": "" }, { "docid": "9af0a1843ab54ef8390be57017afbbfa", "score": "0.5938954", "text": "public Char60 getTermText(){\r\n return localTermText;\r\n }", "title": "" }, { "docid": "9af0a1843ab54ef8390be57017afbbfa", "score": "0.5938954", "text": "public Char60 getTermText(){\r\n return localTermText;\r\n }", "title": "" }, { "docid": "9af0a1843ab54ef8390be57017afbbfa", "score": "0.5938954", "text": "public Char60 getTermText(){\r\n return localTermText;\r\n }", "title": "" }, { "docid": "9af0a1843ab54ef8390be57017afbbfa", "score": "0.5938954", "text": "public Char60 getTermText(){\r\n return localTermText;\r\n }", "title": "" }, { "docid": "1e4172fc75027a2c668616482a32335a", "score": "0.58186513", "text": "public Builder setFreeFormText(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00004000;\n freeFormText_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "bf01dde51d0e39b46b9d355f334b5bb4", "score": "0.58169544", "text": "public String getShortAnsText() {\n// if(ansTxt.length() > 400) return ansTxt.substring(0,400);\n// else return ansTxt;\n return ansTxt;\n }", "title": "" }, { "docid": "4d01fdfc7c195825cb967e51ff3af38b", "score": "0.58061033", "text": "void setMaintext(String mainText);", "title": "" }, { "docid": "6d4e99fb7df80bb2f5d148e6287f5c2f", "score": "0.57903445", "text": "public String getPintrestText();", "title": "" }, { "docid": "86c1bf50ceec1c0a884e7607ee160d7a", "score": "0.5786674", "text": "public boolean hasFreeFormText() {\n return ((bitField0_ & 0x00002000) == 0x00002000);\n }", "title": "" }, { "docid": "5d68badca7bed2df498e9bb077a0ab84", "score": "0.5776916", "text": "protected String getDosageSchemeFreeText() {\n return dosageSchemeFreeText;\n }", "title": "" }, { "docid": "ddabb4c2c917dbeb178055f8f0e2994b", "score": "0.575886", "text": "public void setFarText() { userBits |= NHASFARTEXT; }", "title": "" }, { "docid": "1fe39c854faa28f5b2b07c6877ecfc06", "score": "0.5756521", "text": "public boolean hasFreeFormText() {\n return ((bitField0_ & 0x00002000) == 0x00002000);\n }", "title": "" }, { "docid": "05e9ec6fa5d3285e21ace519d3c9d1e4", "score": "0.5749904", "text": "public Builder setFreeFormText(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00080000;\n freeFormText_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "05e9ec6fa5d3285e21ace519d3c9d1e4", "score": "0.5749904", "text": "public Builder setFreeFormText(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00080000;\n freeFormText_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "2a5fc8912535b3dbca39b233032cb3b3", "score": "0.5740366", "text": "public Builder setFreeFormText(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField1_ |= 0x00000001;\n freeFormText_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "d8f859dc0fc6171661585342180ae0b3", "score": "0.5705698", "text": "com.google.protobuf.ByteString\n getFreeFormTextBytes();", "title": "" }, { "docid": "d8f859dc0fc6171661585342180ae0b3", "score": "0.5705698", "text": "com.google.protobuf.ByteString\n getFreeFormTextBytes();", "title": "" }, { "docid": "d8f859dc0fc6171661585342180ae0b3", "score": "0.57056427", "text": "com.google.protobuf.ByteString\n getFreeFormTextBytes();", "title": "" }, { "docid": "d8f859dc0fc6171661585342180ae0b3", "score": "0.57056427", "text": "com.google.protobuf.ByteString\n getFreeFormTextBytes();", "title": "" }, { "docid": "d8f859dc0fc6171661585342180ae0b3", "score": "0.57056427", "text": "com.google.protobuf.ByteString\n getFreeFormTextBytes();", "title": "" }, { "docid": "df43c738ac13ef18825832ebc4ba90cd", "score": "0.5677923", "text": "private org.gwtbootstrap3.client.ui.html.Text get_f_Text27() {\n return build_f_Text27();\n }", "title": "" }, { "docid": "3de7e85f7cc62b6b231ddce9f115cf1e", "score": "0.56769395", "text": "public Builder setFreeFormText(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00002000;\n freeFormText_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "f89289c48ce019a88f0184c9b20b612d", "score": "0.5675785", "text": "protected String getDosageFreeText() {\n\n String dosage = enums.eMeasureOfUnit.converToString(this.dosageFreeText);\n\n if(!util.String.isEmpty(dosage)){\n return dosage;\n } else {\n return this.dosageFreeText;\n }\n }", "title": "" }, { "docid": "c4d6cf2aa110117d0ef618e5dd2ff16c", "score": "0.5665375", "text": "public String displaytext(String text){\n //Display the formula\n text=\"The formula for ideal gas law is P*V/nRT\"; \n return text;\n \n }", "title": "" }, { "docid": "9a5ac13797685d288dbb3de13ad83423", "score": "0.56629455", "text": "public Builder setFreeFormTextBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00004000;\n freeFormText_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "88268f38b2b1c1ec110184585d14ed32", "score": "0.5661529", "text": "public com.google.protobuf.ByteString\n getFreeFormTextBytes() {\n java.lang.Object ref = freeFormText_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n freeFormText_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "title": "" }, { "docid": "88268f38b2b1c1ec110184585d14ed32", "score": "0.5661529", "text": "public com.google.protobuf.ByteString\n getFreeFormTextBytes() {\n java.lang.Object ref = freeFormText_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n freeFormText_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "title": "" }, { "docid": "88268f38b2b1c1ec110184585d14ed32", "score": "0.5659902", "text": "public com.google.protobuf.ByteString\n getFreeFormTextBytes() {\n java.lang.Object ref = freeFormText_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n freeFormText_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "title": "" }, { "docid": "88268f38b2b1c1ec110184585d14ed32", "score": "0.5659338", "text": "public com.google.protobuf.ByteString\n getFreeFormTextBytes() {\n java.lang.Object ref = freeFormText_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n freeFormText_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "title": "" }, { "docid": "88268f38b2b1c1ec110184585d14ed32", "score": "0.56592584", "text": "public com.google.protobuf.ByteString\n getFreeFormTextBytes() {\n java.lang.Object ref = freeFormText_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n freeFormText_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "title": "" }, { "docid": "47d169f1d89957610427cfb95ad45aa8", "score": "0.5655601", "text": "public Char50 getRemark(){\r\n return localRemark;\r\n }", "title": "" }, { "docid": "47d169f1d89957610427cfb95ad45aa8", "score": "0.5655601", "text": "public Char50 getRemark(){\r\n return localRemark;\r\n }", "title": "" }, { "docid": "53f3c8b041fe77ffa4801c1aadd8b72b", "score": "0.56501395", "text": "String getAleartText();", "title": "" }, { "docid": "024054c2c0ba28a493f6ffa5dd6f1e8e", "score": "0.56460303", "text": "String errorText();", "title": "" }, { "docid": "3cab50bc537e1efbcecae29e26ed97e5", "score": "0.5633001", "text": "public void displayString(String text);", "title": "" }, { "docid": "805311341dd99225209be85d43e6c2b8", "score": "0.56302935", "text": "public void setTermText(Char60 param){\r\n \r\n this.localTermText=param;\r\n \r\n\r\n }", "title": "" }, { "docid": "805311341dd99225209be85d43e6c2b8", "score": "0.56302935", "text": "public void setTermText(Char60 param){\r\n \r\n this.localTermText=param;\r\n \r\n\r\n }", "title": "" }, { "docid": "805311341dd99225209be85d43e6c2b8", "score": "0.56302935", "text": "public void setTermText(Char60 param){\r\n \r\n this.localTermText=param;\r\n \r\n\r\n }", "title": "" }, { "docid": "805311341dd99225209be85d43e6c2b8", "score": "0.56302935", "text": "public void setTermText(Char60 param){\r\n \r\n this.localTermText=param;\r\n \r\n\r\n }", "title": "" }, { "docid": "805311341dd99225209be85d43e6c2b8", "score": "0.56302935", "text": "public void setTermText(Char60 param){\r\n \r\n this.localTermText=param;\r\n \r\n\r\n }", "title": "" }, { "docid": "bfef8b5f9c5c5bcbc7f46ed8da4e6a87", "score": "0.56204623", "text": "public static TextBoxText getFemaleResponseText() {\n BitmapFont header = new BitmapFont(Gdx.files.internal(\"font/textHeaderFont.fnt\"));\n BitmapFont body = new BitmapFont(Gdx.files.internal(\"font/textBoxNarrowFont.fnt\"));\n TextBoxText tbt = new TextBoxText(header, body);\n tbt.setHeader(\"Professor Ivy\");\n tbt.addLine(\"So you are a girl then?\");\n return tbt;\n }", "title": "" }, { "docid": "340d7cfb7a042758f40bd278994ae00a", "score": "0.56195825", "text": "private org.gwtbootstrap3.client.ui.html.Text get_f_Text39() {\n return build_f_Text39();\n }", "title": "" }, { "docid": "c8c8647ecae62d76c3a25dddacae6b68", "score": "0.56100786", "text": "public String GetText(){return text;}", "title": "" }, { "docid": "ffe0e5385a7088c618e9c352c3baf5d9", "score": "0.5594985", "text": "public void setDescription (String Description)\n{\nif (Description != null && Description.length() > 255)\n{\nlog.warning(\"Length > 255 - truncated\");\nDescription = Description.substring(0,255);\n}\nset_Value (\"Description\", Description);\n}", "title": "" }, { "docid": "332c348993dd4abd16bc6d95dfffd6bc", "score": "0.55911565", "text": "public boolean isFarText() { return (userBits & NHASFARTEXT) != 0; }", "title": "" }, { "docid": "4922a9005eab362dc2b5623a77665e78", "score": "0.5585133", "text": "public String getWordform();", "title": "" }, { "docid": "6c2b29042cf39d9e6136aceab74ea8e3", "score": "0.55820954", "text": "public Builder setFreeFormTextBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00080000;\n freeFormText_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "6c2b29042cf39d9e6136aceab74ea8e3", "score": "0.55820954", "text": "public Builder setFreeFormTextBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00080000;\n freeFormText_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "140b6f49439ec96d8f1a072b9c577073", "score": "0.5576566", "text": "Font captchaTextFont(String text);", "title": "" }, { "docid": "83c1c973489eed982af2c8436bc6ecca", "score": "0.55727357", "text": "public Builder setFreeFormTextBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField1_ |= 0x00000001;\n freeFormText_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "3fb98b5a1d24c04f733204254088846d", "score": "0.5571383", "text": "public void setRemark(Char50 param){\r\n \r\n this.localRemark=param;\r\n \r\n\r\n }", "title": "" }, { "docid": "3fb98b5a1d24c04f733204254088846d", "score": "0.5571383", "text": "public void setRemark(Char50 param){\r\n \r\n this.localRemark=param;\r\n \r\n\r\n }", "title": "" }, { "docid": "99c7b3640cb121823c00a800a850368c", "score": "0.55624986", "text": "public void setZsetMess(Char30 param){\r\n \r\n this.localZsetMess=param;\r\n \r\n\r\n }", "title": "" }, { "docid": "50cd54f03d2f4a5524767fc641345a94", "score": "0.5543925", "text": "public com.google.protobuf.ByteString\n getFreeFormTextBytes() {\n java.lang.Object ref = freeFormText_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n freeFormText_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "title": "" }, { "docid": "50cd54f03d2f4a5524767fc641345a94", "score": "0.55436885", "text": "public com.google.protobuf.ByteString\n getFreeFormTextBytes() {\n java.lang.Object ref = freeFormText_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n freeFormText_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "title": "" }, { "docid": "50cd54f03d2f4a5524767fc641345a94", "score": "0.55436885", "text": "public com.google.protobuf.ByteString\n getFreeFormTextBytes() {\n java.lang.Object ref = freeFormText_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n freeFormText_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "title": "" }, { "docid": "50cd54f03d2f4a5524767fc641345a94", "score": "0.5543485", "text": "public com.google.protobuf.ByteString\n getFreeFormTextBytes() {\n java.lang.Object ref = freeFormText_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n freeFormText_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "title": "" }, { "docid": "50cd54f03d2f4a5524767fc641345a94", "score": "0.5543485", "text": "public com.google.protobuf.ByteString\n getFreeFormTextBytes() {\n java.lang.Object ref = freeFormText_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n freeFormText_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "title": "" }, { "docid": "fff5444857c55f53396c43ec814aaceb", "score": "0.55389047", "text": "public String _gettext() throws Exception{\nif (true) return _mtextfield.getText();\n //BA.debugLineNum = 390;BA.debugLine=\"End Sub\";\nreturn \"\";\n}", "title": "" }, { "docid": "17ce120bbce26babf1e0d78efdeafa08", "score": "0.55341816", "text": "private org.gwtbootstrap3.client.ui.html.Text get_f_Text13() {\n return build_f_Text13();\n }", "title": "" }, { "docid": "a6d2b96af7082bd98e0fa4275c08d736", "score": "0.55314606", "text": "public String getFreetext() {\n return this.freetext;\n }", "title": "" }, { "docid": "b99070c5e8456058ffeca6092e4f80d3", "score": "0.55301934", "text": "public Char4 getExternalPurpose(){\r\n return localExternalPurpose;\r\n }", "title": "" }, { "docid": "b99070c5e8456058ffeca6092e4f80d3", "score": "0.55301934", "text": "public Char4 getExternalPurpose(){\r\n return localExternalPurpose;\r\n }", "title": "" }, { "docid": "b99070c5e8456058ffeca6092e4f80d3", "score": "0.55301934", "text": "public Char4 getExternalPurpose(){\r\n return localExternalPurpose;\r\n }", "title": "" }, { "docid": "fe9f34055fcba7a39d37902b014f9130", "score": "0.5528085", "text": "java.lang.String getFuroDataTextInput();", "title": "" }, { "docid": "d219f5ef86cb1a78ded30a8341b0a8cc", "score": "0.55173045", "text": "String getText();", "title": "" }, { "docid": "d219f5ef86cb1a78ded30a8341b0a8cc", "score": "0.55173045", "text": "String getText();", "title": "" }, { "docid": "d219f5ef86cb1a78ded30a8341b0a8cc", "score": "0.55173045", "text": "String getText();", "title": "" } ]
109879e0bf2cdd5c1dc35c757553f0a4
Inflate the menu; this adds items to the action bar if it is present. getMenuInflater().inflate(R.menu.main, menu);
[ { "docid": "55543fa90a5799a1d30d86b533233b24", "score": "0.0", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tmenu.add(Menu.NONE, R.id.action_start, Menu.NONE, R.string.action_start);\n \tmenu.add(Menu.NONE, R.id.action_settings, Menu.NONE, R.string.action_settings);\n \tmenu.add(Menu.NONE, R.id.action_exit, Menu.NONE, R.string.action_exit); \t \t\n \treturn super.onCreateOptionsMenu(menu); \n \t//return true;\n }", "title": "" } ]
[ { "docid": "a3569ff2f193bf88f7f514cf503b795a", "score": "0.82479876", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.activity_main_menu, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "title": "" }, { "docid": "95fc5d6ba267064b15174bb9beb12b36", "score": "0.82138765", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.action_bar_main, menu);\n\t\tmMenu = menu;\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "title": "" }, { "docid": "24f0129339b290abe6883f9f32067305", "score": "0.81864923", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater mif = getMenuInflater();\n\t\tmif.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "title": "" }, { "docid": "995c0098b16995ae46e6cd96c50e0cdf", "score": "0.818623", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t// Inflate the menu items for use in the action bar\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.activity_main_menu, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "title": "" }, { "docid": "b3fe4a42d5dba274648fe54e7b8bcf08", "score": "0.8167313", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main_menu, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "title": "" }, { "docid": "7c7f52bc85432234ee2050f101ef1659", "score": "0.81465256", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "title": "" }, { "docid": "7c7f52bc85432234ee2050f101ef1659", "score": "0.81465256", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "title": "" }, { "docid": "fbfe5f7fb9486d8fc056ff922706085e", "score": "0.81388766", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "title": "" }, { "docid": "5371ae2350e6ad9a817d6a0e8d0040f7", "score": "0.8119794", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu)\n\t{\n\t\t//inflate menu items for use in action bar\n\t MenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.main, menu);\n\t return super.onCreateOptionsMenu(menu);\n\t}", "title": "" }, { "docid": "f7afc4270b636cfac3a7769bcb744b5a", "score": "0.8112204", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\n\t\tgetMenuInflater().inflate(R.menu.activity_main, menu);\n\t\treturn true;\n\t}", "title": "" }, { "docid": "d8ecc81fcbeda783068385f48dd854c6", "score": "0.81000346", "text": "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.activity_main, menu);\r\n\t\treturn true;\r\n\t}", "title": "" }, { "docid": "d8ecc81fcbeda783068385f48dd854c6", "score": "0.81000346", "text": "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.activity_main, menu);\r\n\t\treturn true;\r\n\t}", "title": "" }, { "docid": "d8ecc81fcbeda783068385f48dd854c6", "score": "0.81000346", "text": "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.activity_main, menu);\r\n\t\treturn true;\r\n\t}", "title": "" }, { "docid": "d8ecc81fcbeda783068385f48dd854c6", "score": "0.81000346", "text": "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.activity_main, menu);\r\n\t\treturn true;\r\n\t}", "title": "" }, { "docid": "d8ecc81fcbeda783068385f48dd854c6", "score": "0.81000346", "text": "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.activity_main, menu);\r\n\t\treturn true;\r\n\t}", "title": "" }, { "docid": "d8ecc81fcbeda783068385f48dd854c6", "score": "0.81000346", "text": "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.activity_main, menu);\r\n\t\treturn true;\r\n\t}", "title": "" }, { "docid": "ecce3fa046ceca11e2064741329c53ef", "score": "0.80981666", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.activity_main, menu);\n\t\treturn true;\n\t}", "title": "" }, { "docid": "ecce3fa046ceca11e2064741329c53ef", "score": "0.80981666", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.activity_main, menu);\n\t\treturn true;\n\t}", "title": "" }, { "docid": "ecce3fa046ceca11e2064741329c53ef", "score": "0.80981666", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.activity_main, menu);\n\t\treturn true;\n\t}", "title": "" }, { "docid": "ecce3fa046ceca11e2064741329c53ef", "score": "0.80981666", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.activity_main, menu);\n\t\treturn true;\n\t}", "title": "" }, { "docid": "ecce3fa046ceca11e2064741329c53ef", "score": "0.80981666", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.activity_main, menu);\n\t\treturn true;\n\t}", "title": "" }, { "docid": "ecce3fa046ceca11e2064741329c53ef", "score": "0.80981666", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.activity_main, menu);\n\t\treturn true;\n\t}", "title": "" }, { "docid": "ecce3fa046ceca11e2064741329c53ef", "score": "0.80981666", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.activity_main, menu);\n\t\treturn true;\n\t}", "title": "" }, { "docid": "ecce3fa046ceca11e2064741329c53ef", "score": "0.80981666", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.activity_main, menu);\n\t\treturn true;\n\t}", "title": "" }, { "docid": "ecce3fa046ceca11e2064741329c53ef", "score": "0.80981666", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.activity_main, menu);\n\t\treturn true;\n\t}", "title": "" }, { "docid": "ecce3fa046ceca11e2064741329c53ef", "score": "0.80981666", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.activity_main, menu);\n\t\treturn true;\n\t}", "title": "" }, { "docid": "ecce3fa046ceca11e2064741329c53ef", "score": "0.80981666", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.activity_main, menu);\n\t\treturn true;\n\t}", "title": "" }, { "docid": "ecce3fa046ceca11e2064741329c53ef", "score": "0.80981666", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.activity_main, menu);\n\t\treturn true;\n\t}", "title": "" }, { "docid": "ecce3fa046ceca11e2064741329c53ef", "score": "0.80981666", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.activity_main, menu);\n\t\treturn true;\n\t}", "title": "" }, { "docid": "ecce3fa046ceca11e2064741329c53ef", "score": "0.80981666", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.activity_main, menu);\n\t\treturn true;\n\t}", "title": "" }, { "docid": "ecce3fa046ceca11e2064741329c53ef", "score": "0.80981666", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.activity_main, menu);\n\t\treturn true;\n\t}", "title": "" }, { "docid": "ecce3fa046ceca11e2064741329c53ef", "score": "0.80981666", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.activity_main, menu);\n\t\treturn true;\n\t}", "title": "" }, { "docid": "ecce3fa046ceca11e2064741329c53ef", "score": "0.80981666", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.activity_main, menu);\n\t\treturn true;\n\t}", "title": "" }, { "docid": "ecce3fa046ceca11e2064741329c53ef", "score": "0.80981666", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.activity_main, menu);\n\t\treturn true;\n\t}", "title": "" }, { "docid": "ecce3fa046ceca11e2064741329c53ef", "score": "0.80981666", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.activity_main, menu);\n\t\treturn true;\n\t}", "title": "" }, { "docid": "ecce3fa046ceca11e2064741329c53ef", "score": "0.80981666", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.activity_main, menu);\n\t\treturn true;\n\t}", "title": "" }, { "docid": "ecce3fa046ceca11e2064741329c53ef", "score": "0.80981666", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.activity_main, menu);\n\t\treturn true;\n\t}", "title": "" }, { "docid": "1ae01ac120460ecb9278d0ee2036eb5a", "score": "0.8087297", "text": "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tthis.getMenuInflater().inflate(R.menu.main_activity_actions, menu);\r\n\t\treturn super.onCreateOptionsMenu(menu);\r\n\t}", "title": "" }, { "docid": "3028fd896591b7755d02080bc0f13228", "score": "0.80734164", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n \n inflater.inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "title": "" }, { "docid": "6d9fec374258a66f5488c8bb98d6fc68", "score": "0.8069592", "text": "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu)\r\n\t{\n\t\tgetMenuInflater().inflate(R.menu.activity_main, menu);\r\n\t\treturn true;\r\n\t}", "title": "" }, { "docid": "b4de770f7f663724f88396f6d61643af", "score": "0.80658466", "text": "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\r\n\t\tinflater.inflate(R.menu.main, menu);\r\n\t\treturn true;\r\n\t}", "title": "" }, { "docid": "67a9d520eccb872e5b2fca7e11709114", "score": "0.8060258", "text": "@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main, menu);\r\n return super.onCreateOptionsMenu(menu);\r\n }", "title": "" }, { "docid": "9813d71a4b724b9d132f23a2cb80322c", "score": "0.8053867", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main_activity_actions, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "title": "" }, { "docid": "b214f37a2013c1f810d0be080dbf27e4", "score": "0.8052342", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.menu_main_activity, menu);\n\n\t\treturn true;\n\t}", "title": "" }, { "docid": "6bdc0a0d9e041b09fee3503aca1c3b05", "score": "0.8048224", "text": "@Override\n\tpublic boolean onCreateOptionsMenu (Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate (R.menu.main_menu, menu);\n\t\treturn true;\n\t}", "title": "" }, { "docid": "d56408934caa4fd5707b117c5a9d88b4", "score": "0.80468404", "text": "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\r\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\r\n\t\treturn true;\r\n\t}", "title": "" }, { "docid": "4ebf9d6e136f4b8aceb2420190256be4", "score": "0.8043158", "text": "@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\r\n inflater.inflate(R.menu.main_menu, menu);\r\n return super.onCreateOptionsMenu(menu);\r\n }", "title": "" }, { "docid": "ba483b6843b255583bbd95ca18003713", "score": "0.80414534", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t getMenuInflater().inflate(R.menu.activity_main, menu);\n\t return true;\n\t}", "title": "" }, { "docid": "bb66b464065c22cd72c2f1e8dbd36822", "score": "0.80403566", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\treturn true;\n\t}", "title": "" }, { "docid": "bb66b464065c22cd72c2f1e8dbd36822", "score": "0.80403566", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\treturn true;\n\t}", "title": "" }, { "docid": "bb66b464065c22cd72c2f1e8dbd36822", "score": "0.80403566", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\treturn true;\n\t}", "title": "" }, { "docid": "bb66b464065c22cd72c2f1e8dbd36822", "score": "0.80403566", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\treturn true;\n\t}", "title": "" }, { "docid": "bb66b464065c22cd72c2f1e8dbd36822", "score": "0.80403566", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\treturn true;\n\t}", "title": "" }, { "docid": "bb66b464065c22cd72c2f1e8dbd36822", "score": "0.80403566", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\treturn true;\n\t}", "title": "" }, { "docid": "bb66b464065c22cd72c2f1e8dbd36822", "score": "0.80403566", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\treturn true;\n\t}", "title": "" }, { "docid": "bb66b464065c22cd72c2f1e8dbd36822", "score": "0.80403566", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\treturn true;\n\t}", "title": "" }, { "docid": "bb66b464065c22cd72c2f1e8dbd36822", "score": "0.80403566", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\treturn true;\n\t}", "title": "" }, { "docid": "bb66b464065c22cd72c2f1e8dbd36822", "score": "0.80403566", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\treturn true;\n\t}", "title": "" }, { "docid": "bb66b464065c22cd72c2f1e8dbd36822", "score": "0.80403566", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\treturn true;\n\t}", "title": "" }, { "docid": "bb66b464065c22cd72c2f1e8dbd36822", "score": "0.80403566", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\treturn true;\n\t}", "title": "" }, { "docid": "bb66b464065c22cd72c2f1e8dbd36822", "score": "0.80403566", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\treturn true;\n\t}", "title": "" }, { "docid": "bb66b464065c22cd72c2f1e8dbd36822", "score": "0.80403566", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\treturn true;\n\t}", "title": "" }, { "docid": "bb66b464065c22cd72c2f1e8dbd36822", "score": "0.80403566", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\treturn true;\n\t}", "title": "" }, { "docid": "bb66b464065c22cd72c2f1e8dbd36822", "score": "0.80403566", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\treturn true;\n\t}", "title": "" }, { "docid": "bb66b464065c22cd72c2f1e8dbd36822", "score": "0.80403566", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\treturn true;\n\t}", "title": "" }, { "docid": "bb66b464065c22cd72c2f1e8dbd36822", "score": "0.80403566", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\treturn true;\n\t}", "title": "" }, { "docid": "bb66b464065c22cd72c2f1e8dbd36822", "score": "0.80403566", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\treturn true;\n\t}", "title": "" }, { "docid": "bb66b464065c22cd72c2f1e8dbd36822", "score": "0.80403566", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\treturn true;\n\t}", "title": "" }, { "docid": "bb66b464065c22cd72c2f1e8dbd36822", "score": "0.80403566", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\treturn true;\n\t}", "title": "" }, { "docid": "bb66b464065c22cd72c2f1e8dbd36822", "score": "0.80403566", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\treturn true;\n\t}", "title": "" }, { "docid": "bb66b464065c22cd72c2f1e8dbd36822", "score": "0.80403566", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\treturn true;\n\t}", "title": "" }, { "docid": "bb66b464065c22cd72c2f1e8dbd36822", "score": "0.80403566", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\treturn true;\n\t}", "title": "" }, { "docid": "bb66b464065c22cd72c2f1e8dbd36822", "score": "0.80403566", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\treturn true;\n\t}", "title": "" }, { "docid": "bb66b464065c22cd72c2f1e8dbd36822", "score": "0.80403566", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\treturn true;\n\t}", "title": "" }, { "docid": "bb66b464065c22cd72c2f1e8dbd36822", "score": "0.80403566", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\treturn true;\n\t}", "title": "" }, { "docid": "bb66b464065c22cd72c2f1e8dbd36822", "score": "0.80403566", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\treturn true;\n\t}", "title": "" }, { "docid": "bb66b464065c22cd72c2f1e8dbd36822", "score": "0.80403566", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\treturn true;\n\t}", "title": "" }, { "docid": "bb66b464065c22cd72c2f1e8dbd36822", "score": "0.80403566", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\treturn true;\n\t}", "title": "" }, { "docid": "bb66b464065c22cd72c2f1e8dbd36822", "score": "0.80403566", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\treturn true;\n\t}", "title": "" }, { "docid": "bb66b464065c22cd72c2f1e8dbd36822", "score": "0.80403566", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\treturn true;\n\t}", "title": "" }, { "docid": "bb66b464065c22cd72c2f1e8dbd36822", "score": "0.80403566", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\treturn true;\n\t}", "title": "" }, { "docid": "bb66b464065c22cd72c2f1e8dbd36822", "score": "0.80403566", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\treturn true;\n\t}", "title": "" }, { "docid": "bb66b464065c22cd72c2f1e8dbd36822", "score": "0.80403566", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\treturn true;\n\t}", "title": "" }, { "docid": "bb66b464065c22cd72c2f1e8dbd36822", "score": "0.80403566", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\treturn true;\n\t}", "title": "" }, { "docid": "bb66b464065c22cd72c2f1e8dbd36822", "score": "0.80403566", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\treturn true;\n\t}", "title": "" }, { "docid": "bb66b464065c22cd72c2f1e8dbd36822", "score": "0.80403566", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\treturn true;\n\t}", "title": "" }, { "docid": "bb66b464065c22cd72c2f1e8dbd36822", "score": "0.80403566", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\treturn true;\n\t}", "title": "" }, { "docid": "bb66b464065c22cd72c2f1e8dbd36822", "score": "0.80403566", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\treturn true;\n\t}", "title": "" }, { "docid": "bb66b464065c22cd72c2f1e8dbd36822", "score": "0.80403566", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\treturn true;\n\t}", "title": "" }, { "docid": "bb66b464065c22cd72c2f1e8dbd36822", "score": "0.80403566", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\treturn true;\n\t}", "title": "" }, { "docid": "bb66b464065c22cd72c2f1e8dbd36822", "score": "0.80403566", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\treturn true;\n\t}", "title": "" }, { "docid": "bb66b464065c22cd72c2f1e8dbd36822", "score": "0.80403566", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\treturn true;\n\t}", "title": "" }, { "docid": "bb66b464065c22cd72c2f1e8dbd36822", "score": "0.80403566", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\treturn true;\n\t}", "title": "" }, { "docid": "bb66b464065c22cd72c2f1e8dbd36822", "score": "0.80403566", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\treturn true;\n\t}", "title": "" }, { "docid": "bb66b464065c22cd72c2f1e8dbd36822", "score": "0.80403566", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\treturn true;\n\t}", "title": "" }, { "docid": "bb66b464065c22cd72c2f1e8dbd36822", "score": "0.80403566", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\treturn true;\n\t}", "title": "" }, { "docid": "bb66b464065c22cd72c2f1e8dbd36822", "score": "0.80403566", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\treturn true;\n\t}", "title": "" }, { "docid": "bb66b464065c22cd72c2f1e8dbd36822", "score": "0.80403566", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\treturn true;\n\t}", "title": "" }, { "docid": "bb66b464065c22cd72c2f1e8dbd36822", "score": "0.80403566", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\treturn true;\n\t}", "title": "" }, { "docid": "bb66b464065c22cd72c2f1e8dbd36822", "score": "0.80403566", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\treturn true;\n\t}", "title": "" }, { "docid": "bb66b464065c22cd72c2f1e8dbd36822", "score": "0.80403566", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\treturn true;\n\t}", "title": "" } ]
8293a364bc62ec9e6e341ad1bc8b552f
jhipsterneedleentityaddfield JHipster will add fields here, do not remove
[ { "docid": "823574a9919d9ee0ef0470408b7a800c", "score": "0.0", "text": "public Long getId() {\n return id;\n }", "title": "" } ]
[ { "docid": "17e640e0364a3b181efeaf6a41037312", "score": "0.68674475", "text": "com.ats.aempi.configuration.xml.CustomFields addNewCustomFields();", "title": "" }, { "docid": "33fe9978047fb59fa895831bce4404d6", "score": "0.60788435", "text": "void addField(Field c);", "title": "" }, { "docid": "ca1e6c76d511bc5196ad216ddb3eda02", "score": "0.5880656", "text": "FetchPlan addField(Class cls, String field);", "title": "" }, { "docid": "4ee09bdc96924066f4ff36f5113b20c1", "score": "0.58479595", "text": "FetchPlan addField(String field);", "title": "" }, { "docid": "d49d5a536cf7ca794b55e6a90381d58f", "score": "0.580032", "text": "@Override\r\n public void initField(Field field, FormContext formContext) {\n\r\n }", "title": "" }, { "docid": "6b2c1d1f8121f289f6716cbd30a11b84", "score": "0.5787765", "text": "protected void addClassFields() {\n }", "title": "" }, { "docid": "b1ba3cb21d4aaf305f2f464b19005fb4", "score": "0.5778523", "text": "public interface EntityField<E> {\n\n /**\n * Returns name of this field with no spaces where each word starts with a capital letter.\n * @return\n */\n String getName();\n /*\n * Returns name of this field in camel case with first word starting with lower case letter and\n * further words starting with a capital letter.\n * @return\n */\n String getNameCamelCase();\n /**\n * Returns name of this field in lowercase with words separated by a dash ({@code -}).\n * @return\n */\n String getNameDashed();\n /**\n * Returns the value of this field.\n *\n * @param e Entity\n * @return Value of the field\n */\n Object get(E e);\n\n /**\n * Sets the value of this field. Does nothing by default. If you want to have a field set, override this method.\n * @param <T>\n * @param e Entity\n * @param value Value of the field\n */\n default <T> void set(E e, T value) {};\n\n /**\n * Adds an element to the collection stored in this field.\n * @param e Entity\n * @param value Value to be added to the collection\n * @throws ClassCastException If this field is not a collection.\n * @throws UnsupportedOperationException If this collection type is not yet known.\n */\n default <T> void collectionAdd(E e, T value) {\n @SuppressWarnings(\"unchecked\")\n Collection<T> c = (Collection<T>) get(e);\n if (c != null) {\n c.add(value);\n } else {\n if (getFieldClass().equals(List.class)) {\n c = Collections.singletonList(value);\n } else if (getFieldClass().equals(Set.class)) {\n c = Collections.singleton(value);\n } else {\n throw new UnsupportedOperationException(\"Unsupported collection type.\"); // in case we add e.g. java.util.Queue in future\n }\n set(e, c);\n }\n }\n /**\n * Removes an element from the collection stored in this field.\n * @param e Entity\n * @param value Value to be added to the collection\n * @return Defined by the underlying field. Preferrably it should return deleted object, but it can return\n * {@code true / false} indication of removal, or just {@code null}.\n * @throws ClassCastException If this field is not a collection.\n */\n default <T> Object collectionRemove(E e, T value) {\n Collection<?> c = (Collection<?>) get(e);\n return c == null ? null : c.remove(value);\n }\n\n /**\n * Retrieves a value from the map stored in this field.\n * @param e Entity\n * @param key Requested key\n * @return Object mapped to this key\n * @throws ClassCastException If this field is not a map.\n */\n default <K> Object mapGet(E e, K key) {\n @SuppressWarnings(\"unchecked\")\n Map<K, ?> m = (Map<K, ?>) get(e);\n return m == null ? null : m.get(key);\n }\n /**\n * Adds a mapping to the map stored in this field.\n * @param e Entity\n * @param key Key to map\n * @param value Mapped value\n * @throws ClassCastException If this field is not a map.\n */\n default <K, T> void mapPut(E e, K key, T value) {\n @SuppressWarnings(\"unchecked\")\n Map<K, T> m = (Map<K, T>) get(e);\n if (m != null) {\n m.put(key, value);\n } else {\n set(e, Collections.singletonMap(key, value));\n }\n }\n /**\n * Removes a mapping from the map stored in this field.\n * @param e Entity\n * @param key Key to remove\n * @return Object mapped to this key\n * @throws ClassCastException If this field is not a map.\n */\n default <K> Object mapRemove(E e, K key) {\n @SuppressWarnings(\"unchecked\")\n Map<K, ?> m = (Map<K, ?>) get(e);\n if (m != null) {\n return m.remove(key);\n }\n return null;\n }\n\n /**\n * @return Returns the most specific type of this field.\n */\n default Class<?> getFieldClass() { return Object.class; }\n\n /**\n * @return If this field is a collection, returns type of its elements; otherwise returns {@code Void} class.\n */\n default Class<?> getCollectionElementClass() { return Void.class; }\n\n /**\n * @return If this field is a map, returns type of its keys; otherwise returns {@code Void} class.\n */\n default Class<?> getMapKeyClass() { return Void.class; }\n\n /**\n * @return If this field is a map, returns type of its values; otherwise returns {@code Void} class.\n */\n default Class<?> getMapValueClass() { return Void.class; }\n}", "title": "" }, { "docid": "b3b53c03b8720763784331867ca59578", "score": "0.5698647", "text": "void customizeEntity()\n {\n }", "title": "" }, { "docid": "ee43d1ea50b7f0ee8b0f4d1ce2b4a961", "score": "0.56681097", "text": "@Test\n public void testAddDeveloperField()\n {\n System.out.println(\"addDeveloperField\");\n\n assertEquals(2, instance.getNumberOfDeveloperFields());\n instance.addDeveloperField(20, 3, 1, 3, developerFieldDefinition);\n assertEquals(3, instance.getNumberOfDeveloperFields());\n FitDeveloperField field=instance.getDeveloperFieldDefintions().get(2);\n assertEquals(\"test2\", field.fieldName);\n assertEquals(124, field.nativeMessageNumber);\n assertEquals(235, field.nativeFieldNumber);\n }", "title": "" }, { "docid": "3d77a1d43ebe8e8c546a7903ad4150f3", "score": "0.5650306", "text": "public void setupFields()\n {\n FieldInfo field = null;\n field = new FieldInfo(this, ID, Constants.DEFAULT_FIELD_LENGTH, null, null);\n field.setDataClass(Integer.class);\n field.setHidden(true);\n field = new FieldInfo(this, LAST_CHANGED, Constants.DEFAULT_FIELD_LENGTH, null, null);\n field.setDataClass(Date.class);\n field.setHidden(true);\n field = new FieldInfo(this, DELETED, 10, null, new Boolean(false));\n field.setDataClass(Boolean.class);\n field.setHidden(true);\n field = new FieldInfo(this, BOOKING_ID, Constants.DEFAULT_FIELD_LENGTH, null, null);\n field.setDataClass(Integer.class);\n field = new FieldInfo(this, BOOKING_PAX_ID, Constants.DEFAULT_FIELD_LENGTH, null, new Integer(0));\n field.setDataClass(Integer.class);\n field = new FieldInfo(this, MODULE_ID, Constants.DEFAULT_FIELD_LENGTH, null, null);\n field.setDataClass(Integer.class);\n field = new FieldInfo(this, TOUR_HEADER_DETAIL_ID, Constants.DEFAULT_FIELD_LENGTH, null, null);\n field.setDataClass(Integer.class);\n field = new FieldInfo(this, TOUR_HEADER_OPTION_ID, Constants.DEFAULT_FIELD_LENGTH, null, null);\n field.setDataClass(Integer.class);\n field = new FieldInfo(this, MODULE_START_DATE, 25, null, null);\n field.setDataClass(Date.class);\n field = new FieldInfo(this, DESCRIPTION, 60, null, null);\n //field = new FieldInfo(this, PRODUCT_TYPE, 15, null, null);\n field = new FieldInfo(this, REMOTE_REFERENCE_NO, 60, null, null);\n field = new FieldInfo(this, PRODUCT_TYPE_ID, Constants.DEFAULT_FIELD_LENGTH, null, null);\n field.setDataClass(Integer.class);\n field = new FieldInfo(this, DETAIL_DATE, 25, null, null);\n field.setDataClass(Date.class);\n field = new FieldInfo(this, GMT_DATE, 25, null, null);\n field.setDataClass(Date.class);\n field = new FieldInfo(this, GMT_OFFSET, 18, null, null);\n field.setDataClass(Double.class);\n field = new FieldInfo(this, PRODUCT_ID, Constants.DEFAULT_FIELD_LENGTH, null, null);\n field.setDataClass(Integer.class);\n field = new FieldInfo(this, RATE_ID, Constants.DEFAULT_FIELD_LENGTH, null, null);\n field.setDataClass(Integer.class);\n field = new FieldInfo(this, CLASS_ID, Constants.DEFAULT_FIELD_LENGTH, null, null);\n field.setDataClass(Integer.class);\n field = new FieldInfo(this, MARKUP_FROM_LAST, Constants.DEFAULT_FIELD_LENGTH, null, null);\n field.setDataClass(Float.class);\n field = new FieldInfo(this, VENDOR_ID, 8, null, null);\n field.setDataClass(Integer.class);\n field = new FieldInfo(this, TOUR_ID, Constants.DEFAULT_FIELD_LENGTH, null, null);\n field.setDataClass(Integer.class);\n field = new FieldInfo(this, AP_TRX_ID, Constants.DEFAULT_FIELD_LENGTH, null, null);\n field.setDataClass(Integer.class);\n field = new FieldInfo(this, PRICING_DETAIL_KEY, 128, null, null);\n field = new FieldInfo(this, TOTAL_COST, 18, null, null);\n field.setDataClass(Double.class);\n field = new FieldInfo(this, EXCHANGE, 10, null, null);\n field.setDataClass(Double.class);\n field.setScale(-1);\n //field = new FieldInfo(this, CURRENCY_CODE, 3, null, null);\n field = new FieldInfo(this, TOTAL_COST_LOCAL, 18, null, null);\n field.setDataClass(Double.class);\n field = new FieldInfo(this, TOTAL_PRICE_LOCAL, 18, null, null);\n field.setDataClass(Double.class);\n field = new FieldInfo(this, INFO_MESSAGE_TRANSPORT_ID, Constants.DEFAULT_FIELD_LENGTH, null, null);\n field.setDataClass(Integer.class);\n field = new FieldInfo(this, INFO_STATUS_ID, Constants.DEFAULT_FIELD_LENGTH, null, null);\n field.setDataClass(Integer.class);\n field = new FieldInfo(this, INFO_REQUEST_KEY, 128, null, null);\n //field = new FieldInfo(this, INFO_STATUS_REQUEST, 10, null, null);\n //field.setDataClass(Boolean.class);\n field = new FieldInfo(this, COST_MESSAGE_TRANSPORT_ID, Constants.DEFAULT_FIELD_LENGTH, null, null);\n field.setDataClass(Integer.class);\n field = new FieldInfo(this, COST_STATUS_ID, Constants.DEFAULT_FIELD_LENGTH, null, null);\n field.setDataClass(Integer.class);\n field = new FieldInfo(this, COST_REQUEST_KEY, 128, null, null);\n //field = new FieldInfo(this, COST_STATUS_REQUEST, 10, null, null);\n //field.setDataClass(Boolean.class);\n field = new FieldInfo(this, INVENTORY_MESSAGE_TRANSPORT_ID, Constants.DEFAULT_FIELD_LENGTH, null, null);\n field.setDataClass(Integer.class);\n field = new FieldInfo(this, INVENTORY_STATUS_ID, Constants.DEFAULT_FIELD_LENGTH, null, null);\n field.setDataClass(Integer.class);\n field = new FieldInfo(this, INVENTORY_REQUEST_KEY, 128, null, null);\n //field = new FieldInfo(this, INVENTORY_STATUS_REQUEST, 10, null, null);\n //field.setDataClass(Boolean.class);\n field = new FieldInfo(this, PRODUCT_MESSAGE_TRANSPORT_ID, Constants.DEFAULT_FIELD_LENGTH, null, null);\n field.setDataClass(Integer.class);\n field = new FieldInfo(this, PRODUCT_STATUS_ID, Constants.DEFAULT_FIELD_LENGTH, null, null);\n field.setDataClass(Integer.class);\n field = new FieldInfo(this, PRODUCT_REQUEST_KEY, 128, null, null);\n //field = new FieldInfo(this, PRODUCT_STATUS_REQUEST, 10, null, null);\n //field.setDataClass(Boolean.class);\n field = new FieldInfo(this, REMOTE_BOOKING_NO, 127, null, null);\n field = new FieldInfo(this, ACK_DAYS, 4, null, null);\n field.setDataClass(Short.class);\n field = new FieldInfo(this, DETAIL_END_DATE, 25, null, null);\n field.setDataClass(Date.class);\n field = new FieldInfo(this, GMT_END_DATE, 25, null, null);\n field.setDataClass(Date.class);\n //field = new FieldInfo(this, MEAL_SUMMARY, 255, null, null);\n //field = new FieldInfo(this, STATUS_SUMMARY, 20, null, null);\n //field.setDataClass(Integer.class);\n field = new FieldInfo(this, ITINERARY_DESC, Constants.DEFAULT_FIELD_LENGTH, null, null);\n field = new FieldInfo(this, PROPERTIES, Constants.DEFAULT_FIELD_LENGTH, null, null);\n field = new FieldInfo(this, ERROR_PROPERTIES, Constants.DEFAULT_FIELD_LENGTH, null, null);\n field = new FieldInfo(this, PP_COST, 18, null, null);\n field.setDataClass(Double.class);\n field = new FieldInfo(this, PP_PRICE_LOCAL, 18, null, null);\n field.setDataClass(Double.class);\n field = new FieldInfo(this, NIGHTS, 2, null, null);\n field.setDataClass(Short.class);\n field = new FieldInfo(this, MEAL_PLAN_1ID, Constants.DEFAULT_FIELD_LENGTH, null, null);\n field.setDataClass(Integer.class);\n field = new FieldInfo(this, MEAL_PLAN_1_QTY, 2, null, null);\n field.setDataClass(Short.class);\n field = new FieldInfo(this, MEAL_PLAN_1_DAYS, 9, null, null);\n field.setDataClass(Short.class);\n field = new FieldInfo(this, MEAL_PLAN_2ID, Constants.DEFAULT_FIELD_LENGTH, null, null);\n field.setDataClass(Integer.class);\n field = new FieldInfo(this, MEAL_PLAN_2_QTY, 2, null, null);\n field.setDataClass(Short.class);\n field = new FieldInfo(this, MEAL_PLAN_2_DAYS, 9, null, null);\n field.setDataClass(Short.class);\n field = new FieldInfo(this, MEAL_PLAN_3ID, Constants.DEFAULT_FIELD_LENGTH, null, null);\n field.setDataClass(Integer.class);\n field = new FieldInfo(this, MEAL_PLAN_3_QTY, 2, null, null);\n field.setDataClass(Short.class);\n field = new FieldInfo(this, MEAL_PLAN_3_DAYS, 9, null, null);\n field.setDataClass(Short.class);\n field = new FieldInfo(this, MEAL_PLAN_4ID, Constants.DEFAULT_FIELD_LENGTH, null, null);\n field.setDataClass(Integer.class);\n field = new FieldInfo(this, MEAL_PLAN_4_QTY, 2, null, null);\n field.setDataClass(Short.class);\n field = new FieldInfo(this, MEAL_PLAN_4_DAYS, 9, null, null);\n field.setDataClass(Short.class);\n //field = new FieldInfo(this, SINGLE_PAX, 4, null, null);\n //field.setDataClass(Short.class);\n //field = new FieldInfo(this, DOUBLE_PAX, 2, null, null);\n //field.setDataClass(Short.class);\n //field = new FieldInfo(this, TRIPLE_PAX, 2, null, null);\n //field.setDataClass(Short.class);\n //field = new FieldInfo(this, QUAD_PAX, 2, null, null);\n //field.setDataClass(Short.class);\n field = new FieldInfo(this, CHILDREN, 5, null, null);\n field.setDataClass(Short.class);\n field = new FieldInfo(this, SINGLE_COST, 18, null, null);\n field.setDataClass(Double.class);\n field = new FieldInfo(this, DOUBLE_COST, 18, null, null);\n field.setDataClass(Double.class);\n field = new FieldInfo(this, TRIPLE_COST, 18, null, null);\n field.setDataClass(Double.class);\n field = new FieldInfo(this, QUAD_COST, 18, null, null);\n field.setDataClass(Double.class);\n field = new FieldInfo(this, CHILDREN_COST, 18, null, null);\n field.setDataClass(Double.class);\n field = new FieldInfo(this, ROOM_COST, 18, null, null);\n field.setDataClass(Double.class);\n field = new FieldInfo(this, MEAL_COST, 18, null, null);\n field.setDataClass(Double.class);\n //field = new FieldInfo(this, ROOM_COST_LOCAL, 18, null, null);\n //field.setDataClass(Double.class);\n //field = new FieldInfo(this, MEAL_COST_LOCAL, 18, null, null);\n //field.setDataClass(Double.class);\n field = new FieldInfo(this, VARIES_CODE, 1, null, \"\");\n field = new FieldInfo(this, VARIES_QTY, 2, null, null);\n field.setDataClass(Short.class);\n field = new FieldInfo(this, VARIES_COST, 9, null, null);\n field.setDataClass(Double.class);\n field = new FieldInfo(this, PMC_CUTOFF, 3, null, null);\n field.setDataClass(Short.class);\n field = new FieldInfo(this, PMC_COST, 18, null, null);\n field.setDataClass(Double.class);\n field = new FieldInfo(this, SIC_COST, 18, null, null);\n field.setDataClass(Double.class);\n field = new FieldInfo(this, BOOKING_AIR_HEADER_ID, Constants.DEFAULT_FIELD_LENGTH, null, null);\n field.setDataClass(Integer.class);\n field = new FieldInfo(this, GMT_TIME, 10, null, null);\n field.setDataClass(Date.class);\n field.setScale(Constants.TIME_ONLY);\n field = new FieldInfo(this, ETD, 10, null, null);\n field.setDataClass(Date.class);\n field.setScale(Constants.TIME_ONLY);\n field = new FieldInfo(this, XO, 1, null, null);\n field = new FieldInfo(this, CITY_CODE, 3, null, null);\n field = new FieldInfo(this, CITY_DESC, 17, null, null);\n field = new FieldInfo(this, AIRLINE_ID, Constants.DEFAULT_FIELD_LENGTH, null, null);\n field.setDataClass(Integer.class);\n field = new FieldInfo(this, CARRIER, 2, null, null);\n field = new FieldInfo(this, FLIGHT_NO, 4, null, null);\n field = new FieldInfo(this, FLIGHT_CLASS, 1, null, null);\n field = new FieldInfo(this, TO_CITY_CODE, 3, null, null);\n field = new FieldInfo(this, TO_CITY_DESC, 17, null, null);\n field = new FieldInfo(this, ARRIVE_TIME, 10, null, null);\n field.setDataClass(Date.class);\n field.setScale(Constants.TIME_ONLY);\n field = new FieldInfo(this, ADD_DAYS, 2, null, null);\n field.setDataClass(Short.class);\n field = new FieldInfo(this, ARC_STATUS, 2, null, \"OK\");\n field = new FieldInfo(this, FARE_BASIS, 15, null, null);\n field = new FieldInfo(this, START_DATE, 5, null, null);\n field.setDataClass(Date.class);\n field.setScale(Constants.DATE_ONLY);\n field = new FieldInfo(this, END_DATE, 5, null, null);\n field.setDataClass(Date.class);\n field.setScale(Constants.DATE_ONLY);\n field = new FieldInfo(this, ALLOW, 3, null, null);\n field = new FieldInfo(this, DET_FARE, 10, null, null);\n field.setDataClass(Double.class);\n field = new FieldInfo(this, SEGMENT_CONF_NO, 128, null, null);\n field = new FieldInfo(this, SEGMENT_CONFIRMED_BY, 50, null, null);\n field = new FieldInfo(this, COUPON, 1, null, null);\n field.setDataClass(Short.class);\n field = new FieldInfo(this, SEAT, 5, null, null);\n field = new FieldInfo(this, GATE, 5, null, null);\n field = new FieldInfo(this, SEAT_PREF, 1, null, null);\n field = new FieldInfo(this, SMOKING, 1, null, null);\n field.setDataClass(Boolean.class);\n field = new FieldInfo(this, MEALS, 2, null, null);\n field = new FieldInfo(this, DAYS, 8, null, new Float(1));\n field.setDataClass(Float.class);\n field = new FieldInfo(this, QUANTITY, 5, null, new Short((short)1));\n field.setDataClass(Short.class);\n field = new FieldInfo(this, ASK_FOR_ANSWER, 10, null, new Boolean(false));\n field.setDataClass(Boolean.class);\n //field = new FieldInfo(this, ALWAYS_RESOLVE, 10, null, new Boolean(false));\n //field.setDataClass(Boolean.class);\n field = new FieldInfo(this, PRICING_TYPE_ID, Constants.DEFAULT_FIELD_LENGTH, null, null);\n field.setDataClass(Integer.class);\n }", "title": "" }, { "docid": "690e7de33a500ab9250af7effa91c5b4", "score": "0.56370896", "text": "protected void addFieldsFromTable() {\r\n\t\tfor (IColumnInfo column : getColumnList()) {\r\n\t\t\tFieldConfig field = new FieldConfig();\r\n\t\t\tfield.setClassName(column.getJavaType());\r\n\t\t\tfield.setName(column.getFieldName());\r\n\t\t\tif (!StringUtils.isEmpty(column.getComment())) {\r\n\t\t\t\tCommentConfig comment = new CommentConfig();\r\n\t\t\t\tcomment.setValue(column.getComment());\r\n\t\t\t\tfield.setConfigObject(CommentConfig.MAIN_TAG, comment);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tthis.setConfigObject(FieldConfig.MAIN_TAG, field);\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "e51da94d5decb07e72cdf1730126a367", "score": "0.56344175", "text": "public interface EntityDefinedCommonColumn extends Entity {\n\n /**\n * Get the value of registerDatetime.\n * @return The instance of the property type. (NullAllowed)\n */\n java.time.LocalDateTime getRegisterDatetime();\n\n /**\n * Set the value of registerDatetime.\n * @param registerDatetime The instance of the property type. (NullAllowed)\n */\n void setRegisterDatetime(java.time.LocalDateTime registerDatetime);\n\n /**\n * Get the value of registerTrace.\n * @return The instance of the property type. (NullAllowed)\n */\n String getRegisterTrace();\n\n /**\n * Set the value of registerTrace.\n * @param registerTrace The instance of the property type. (NullAllowed)\n */\n void setRegisterTrace(String registerTrace);\n\n /**\n * Get the value of updateDatetime.\n * @return The instance of the property type. (NullAllowed)\n */\n java.time.LocalDateTime getUpdateDatetime();\n\n /**\n * Set the value of updateDatetime.\n * @param updateDatetime The instance of the property type. (NullAllowed)\n */\n void setUpdateDatetime(java.time.LocalDateTime updateDatetime);\n\n /**\n * Get the value of updateTrace.\n * @return The instance of the property type. (NullAllowed)\n */\n String getUpdateTrace();\n\n /**\n * Set the value of updateTrace.\n * @param updateTrace The instance of the property type. (NullAllowed)\n */\n void setUpdateTrace(String updateTrace);\n}", "title": "" }, { "docid": "061f6bdcb052f93d0055a9b3ec472af4", "score": "0.55520946", "text": "public RecordFieldEntity()\n {\n super();\n }", "title": "" }, { "docid": "05c451cc186170ea703a092285d41ab2", "score": "0.5550181", "text": "public interface EntityFieldChange extends EntityFieldChangeModel, PersistedModel {\n /*\n * NOTE FOR DEVELOPERS:\n *\n * Never modify this interface directly. Add methods to {@link ru.akimov.model.impl.EntityFieldChangeImpl} and rerun ServiceBuilder to automatically copy the method declarations to this interface.\n */\n}", "title": "" }, { "docid": "04b2d2aa6c6591ff284157e066ea8d2f", "score": "0.5532373", "text": "com.heston.adapter.con1.account.metadata.AccountFieldExtensions createAccountFieldExtensions();", "title": "" }, { "docid": "19a80c68e68b307254ae66a3e206963c", "score": "0.5448898", "text": "public interface Field {\n /**\n * If set to true, the field is allowed to be blank (for string fields such as phone, name, etc)\n */\n boolean IS_BLANK_VALUE_ALLOWED = true;\n\n /**\n * If set to true, the field is allowed to be null (for int/Date fields such as LastMet, etc)\n */\n boolean IS_NULL_VALUE_ALLOWED = true;\n\n /**\n * The default value for the field. Set when user does not pass in the prefix on Client creation.\n */\n String DEFAULT_VALUE = \"\";\n\n /**\n * If set to true, the field is editable by the user through edit command.\n */\n boolean IS_EDITABLE = true;\n}", "title": "" }, { "docid": "4336787c992b5d87ecb0c2000f0b12ca", "score": "0.54243225", "text": "interface WithEtag {\n /**\n * Specifies the etag property: HTTP strong entity tag value. Ignored if submitted.\n *\n * @param etag HTTP strong entity tag value. Ignored if submitted.\n * @return the next definition stage.\n */\n WithCreate withEtag(String etag);\n }", "title": "" }, { "docid": "5ec892520d9279ce31cf77c40ebe8504", "score": "0.54025555", "text": "@Repository\npublic interface ProductFieldRepository extends CrudRepository<ProductField, Integer> {\n\n /**\n * 根据productId查询,查询出的domain直接转成dto\n * @param product\n * @return\n */\n @Query(value = \"select new org.banyan.gateway.helios.data.jpa.dto.ProductFieldDto(pf.id, f.field, f.name, pf.parentId, pf.required, f.minLength, f.maxLength, f.array, f.type, f.regex, f.encrypt) from \" +\n \"org.banyan.gateway.helios.data.jpa.domain.product.ProductField pf, org.banyan.gateway.helios.data.jpa.domain.product.Field f where pf.field=f.field and pf.product=?1\")\n List<ProductFieldDto> findDtoByProduct(String product);\n\n boolean existsByProductAndField(String product, String field);\n}", "title": "" }, { "docid": "35d268f2f283ef17bca7493a84d89efb", "score": "0.5401042", "text": "@Test\n @Transactional\n void createFieldWithExistingId() throws Exception {\n field.setId(1L);\n\n int databaseSizeBeforeCreate = fieldRepository.findAll().size();\n\n // An entity with an existing ID cannot be created, so this API call must fail\n restFieldMockMvc\n .perform(post(ENTITY_API_URL).contentType(MediaType.APPLICATION_JSON).content(TestUtil.convertObjectToJsonBytes(field)))\n .andExpect(status().isBadRequest());\n\n // Validate the Field in the database\n List<Field> fieldList = fieldRepository.findAll();\n assertThat(fieldList).hasSize(databaseSizeBeforeCreate);\n\n // Validate the Field in Elasticsearch\n verify(mockFieldSearchRepository, times(0)).save(field);\n }", "title": "" }, { "docid": "397fe8bc54396b814d6c94492d706aca", "score": "0.53761137", "text": "public void addField (RequestResponse response, TableField field) {\n\tConfigField cf = this.getField(field.getName());\n\n\t// If a mask value is set, the default mask action depends only\n\t// on the hint flags set for the keyword in the keyword dictionary.\n\t// This may be overriden however by an explicit entry for the\n\t// keyword in the table configuration.\n\n\tif (mask != null && !field.hintContains(mask)) {\n\t if (cf == null || cf.omit())\n\t\treturn;\n\t}\n\n\tif (cf == null) {\n\t response.addField(field);\n\t} else if (cf.omit()) {\n\t ;\n\t} else {\n\t if (cf.id != null)\n\t\tfield.setId(cf.id);\n\t if (cf.name != null)\n\t\tfield.setName(cf.name);\n\t if (cf.datatype != null)\n\t\tfield.setDataType(cf.datatype);\n\t if (cf.arraysize != null)\n\t\tfield.setArraySize(cf.arraysize);\n\t if (cf.width != null)\n\t\tfield.setWidth(cf.width);\n\t if (cf.precision != null)\n\t\tfield.setPrecision(cf.precision);\n\t if (cf.xtype != null)\n\t\tfield.setXtype(cf.xtype);\n\t if (cf.unit != null)\n\t\tfield.setUnit(cf.unit);\n\t if (cf.ucd != null)\n\t\tfield.setUcd(cf.ucd);\n\t if (cf.utype != null)\n\t\tfield.setUtype(cf.utype);\n\n\t response.addField(field);\n\t}\n }", "title": "" }, { "docid": "0b410bee2497022f901061fdc92cfbe9", "score": "0.53715515", "text": "public void addEmployeeField() {\n\t\tthis.add(addNameField);\n\t\tthis.add(addSsnField);\n\t\tthis.add(addSalaryField);\n\t}", "title": "" }, { "docid": "96ae3e6c83f29c5fe92601a33f07525d", "score": "0.5359827", "text": "FetchPlan addFields(Collection fields);", "title": "" }, { "docid": "6a831b5b940da8b701fe1f66cdb400c3", "score": "0.53507286", "text": "@Override\r\n\tvoid beforeCreate(Hotel entity) {\n\t\t\r\n\t}", "title": "" }, { "docid": "7d45d576e4c639587addbdf48069ce0a", "score": "0.5328251", "text": "interface WithEtag {\n /**\n * Specifies the etag property: HTTP strong entity tag value. Ignored if submitted.\n *\n * @param etag HTTP strong entity tag value. Ignored if submitted.\n * @return the next definition stage.\n */\n Update withEtag(String etag);\n }", "title": "" }, { "docid": "aeb4fda1e37ada81bd32b560687d44f3", "score": "0.53142345", "text": "private void setAttributes(CoalesceField<?> field)\n {\n Field entityField = field.getBaseField();\n\n _entityFieldHistory.setName(entityField.getName());\n _entityFieldHistory.setValue(entityField.getValue());\n _entityFieldHistory.setDatatype(entityField.getDatatype());\n _entityFieldHistory.setLabel(entityField.getLabel());\n _entityFieldHistory.setModifiedby(entityField.getModifiedby());\n _entityFieldHistory.setModifiedbyip(entityField.getModifiedbyip());\n _entityFieldHistory.setClassificationmarking(entityField.getClassificationmarking());\n _entityFieldHistory.setPrevioushistorykey(entityField.getPrevioushistorykey());\n _entityFieldHistory.setDatecreated(entityField.getDatecreated());\n _entityFieldHistory.setLastmodified(entityField.getLastmodified());\n _entityFieldHistory.setInputlang(entityField.getInputlang());\n _entityFieldHistory.setStatus(entityField.getStatus());\n _entityFieldHistory.setObjectversion(entityField.getObjectversion());\n\n for (Map.Entry<QName, String> otherAttr : entityField.getOtherAttributes().entrySet())\n {\n _entityFieldHistory.getOtherAttributes().put(otherAttr.getKey(), otherAttr.getValue());\n }\n }", "title": "" }, { "docid": "248a2f2061ae64a2c45fa416717ba79d", "score": "0.5282286", "text": "void setField(Field field) {\n\t\tthis.field = field;\n\t}", "title": "" }, { "docid": "f44e19b48f497e32ffaed80c4c9f4c90", "score": "0.52737707", "text": "@Override\r\n protected void buildData(Admin model, AdminDto dto) {\n \r\n }", "title": "" }, { "docid": "dab487967b612ffd228d2d5a494ae352", "score": "0.5262471", "text": "public interface OtaqJsdFieldRepository extends JpaRepository<OtaqJsdField, Long> {\n}", "title": "" }, { "docid": "292b01a7a35f741ab8beba29782c3fe4", "score": "0.5256859", "text": "public void addEntity(Entity entityIn) {}", "title": "" }, { "docid": "b1318fb231cfb007f5888e8886d07795", "score": "0.52438235", "text": "@Test\n public void testHasDeveloperField()\n {\n System.out.println(\"getDeveloperField\");\n assertEquals(true, instance.hasDeveloperField(\"test1\"));\n assertEquals(false, instance.hasDeveloperField(\"test2\"));\n assertEquals(false, instance.hasDeveloperField(\"non_existent\"));\n instance.addDeveloperField(20, 3, 1, 3, developerFieldDefinition);\n assertEquals(true, instance.hasDeveloperField(\"test2\"));\n\n }", "title": "" }, { "docid": "72de40604ae12196707aee8100f8c9f4", "score": "0.52361983", "text": "@ImplementedBy(FieldRepository.class)\npublic interface IFieldRepository {\n public void create(Field field);\n public void update(Field field);\n public Field get(String fieldId);\n public List<Field> getAll(String collectionId);\n public void delete(String fieldId);\n}", "title": "" }, { "docid": "a24c1841752de9da78512fb72383c0bd", "score": "0.5223804", "text": "Builder addModel(ProductModel.Builder value);", "title": "" }, { "docid": "b2083643c5eaa811b7f79e0cd7caa38c", "score": "0.52185947", "text": "protected void registerOtherEntity() {\n // empty ...\n }", "title": "" }, { "docid": "0fa07b44bb1778ade29848e4cead9463", "score": "0.5174177", "text": "private DescribeField genereteDescribeField(Field field, String level) {\n if (ColumnUtil.isEmbeddedField(field)) {\n DescribeField describeField = new DescribeField();\n describeField.setTypeField(field);\n describeField.setName(level.concat(field.getName()));\n for (Field subField : field.getType().getDeclaredFields()) {\n if (\"serialVersionUID\".equals(subField.getName())) {\n continue;\n }\n describeField.add(genereteDescribeField(subField,\n level.concat(field.getName() + \".\")));\n }\n columnName.put(describeField.getRealCqlName(),\n describeField.getName());\n fields.put(describeField.getName(), describeField);\n return describeField;\n }\n DescribeField describeField = new DescribeField();\n describeField.setTypeField(field);\n describeField.setName(level.concat(field.getName()));\n columnName.put(describeField.getRealCqlName(), describeField.getName());\n fields.put(describeField.getName(), describeField);\n return describeField;\n }", "title": "" }, { "docid": "8469a48a15e92ca9d0379d4b9a80dfae", "score": "0.5165775", "text": "FetchPlan addFields(Class cls, String... fields);", "title": "" }, { "docid": "047578f53ab7f595e8b51d5cd765aade", "score": "0.5162551", "text": "@Override\n\tprotected void updateFields(Coupon modelInManage, Coupon modelAsParameter) {\n\t\t\n\t}", "title": "" }, { "docid": "873808d44daec53881f66fa4bf029407", "score": "0.51609576", "text": "@Override\r\npublic void addEmployee(EmployeeDto Empl) {\n\tdao.addEmployeeDeoImpl(Empl);\r\n}", "title": "" }, { "docid": "5b0a0b957b302de1e3d84dffdd226ea4", "score": "0.51583934", "text": "public static Field createUpdatedEntity(EntityManager em) {\n Field field = new Field()\n .fieldName(UPDATED_FIELD_NAME)\n .fieldLabel(UPDATED_FIELD_LABEL)\n .fieldType(UPDATED_FIELD_TYPE)\n .isDeleted(UPDATED_IS_DELETED)\n .createdBy(UPDATED_CREATED_BY)\n .createdAt(UPDATED_CREATED_AT)\n .updatedBy(UPDATED_UPDATED_BY)\n .updatedAt(UPDATED_UPDATED_AT);\n return field;\n }", "title": "" }, { "docid": "faee4b17e4dd215c2d7566526439b40e", "score": "0.5151019", "text": "FetchPlan addFields(Class cls, Collection fields);", "title": "" }, { "docid": "207fb1e931674ec6486aee6fc68ed229", "score": "0.51497585", "text": "private void appendDefEntity(Builder builder, DefEntity defEntity) {\n\tSearchUtils.addField(builder, SDef.NAME, defEntity.name.toLowerCase(), TokenSizes.RESOURCE);\n\tSearchUtils.addField(builder, SDef.DATE, mPublishDate);\n\n\t// Add name of creators\n\tString creatorName = UserRepo.getUsername(KeyFactory.stringToKey(defEntity.revisedByKey));\n\tSearchUtils.addField(builder, SDef.CREATOR, creatorName, TokenSizes.RESOURCE);\n\tString originalCreatorName = UserRepo.getUsername(KeyFactory.stringToKey(defEntity.originalCreatorKey));\n\tSearchUtils.addField(builder, SDef.ORIGINAL_CREATOR, originalCreatorName, TokenSizes.RESOURCE);\n}", "title": "" }, { "docid": "e18c430e59251a6e2c120245c387f3dc", "score": "0.5149291", "text": "protected void createTeneoAnnotations() {\n\t\tString source = \"teneo.jpa\";\t\t\t\n\t\taddAnnotation\n\t\t (getAnimalHealthRequest_Dairy(), \n\t\t source, \n\t\t new String[] \n\t\t {\n\t\t\t \"appinfo\", \"@ManyToOne(cascade=PERSIST)\"\n\t\t });\n\t}", "title": "" }, { "docid": "0d89c6c521630936977de4f09413bd9a", "score": "0.51363623", "text": "FetchPlan addFields(String... fields);", "title": "" }, { "docid": "604fc16a944b42161a1ecdf3d5a9751e", "score": "0.51258814", "text": "public void setField(DatabaseField newField) {\n field = newField;\n }", "title": "" }, { "docid": "c44fec321f9d0046487e5802fbd07aff", "score": "0.51220983", "text": "@SuppressWarnings(\"unused\")\n@Repository\npublic interface CommonIntegerRepository extends EntityGraphJpaRepository<CommonInteger, Long>, EntityGraphJpaSpecificationExecutor<CommonInteger> {\n\n // jhipster-needle-repository-add-method - JHipster will add getters and setters here, do not remove\n}", "title": "" }, { "docid": "0a1fd4faa4f47c668f2ec0486384c798", "score": "0.51147646", "text": "public static Entities getValuesForCheckPostMethod() {\n Entities base = new BaseBuilder().\n // BuildId(\"ENTITIESID\").\n BuildName(\"NameEntities\").\n BuildSchemaName(\"SchemaNameEntities\").\n BuildTableName(\"TableNameEntities\").\n BuildFieldList(\"NameFields\", \"Column_NameFields\", NVARCHAR, 100).\n //BuildFieldList(\"NameFields_Price\", \"Column_NameFields_Price\", NVARCHAR, 100 ).\n build();\n return base;\n }", "title": "" }, { "docid": "aef552e989729a92a931a35175b2a61c", "score": "0.5111724", "text": "@Override\r\n public void add(IEntity entity) {\n\r\n }", "title": "" }, { "docid": "a2be56c092d1881271de0137d1e40c08", "score": "0.5111033", "text": "protected void generateFields() {\n\t\t// add injections into main class\n\t\tfor (Element element : mElements) {\n\t\t\tif (!element.used) {\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tStringBuilder injection = new StringBuilder();\n if(mInjectType == InjectType.BUTTERKNIFE) {\n injection.append(\"@butterknife.InjectView(\"); // annotation\n injection.append(element.getFullID());\n injection.append(\") \");\n } else if(mInjectType == InjectType.NATIVE_FINDS) {\n injection.append(\"private \");\n }\n\t\t\tif (element.nameFull != null && element.nameFull.length() > 0) { // custom package+class\n\t\t\t\tinjection.append(element.nameFull);\n\t\t\t} else if (Defintions.paths.containsKey(element.name)) { // listed class\n\t\t\t\tinjection.append(Defintions.paths.get(element.name));\n\t\t\t} else { // android.widget\n\t\t\t\tinjection.append(\"android.widget.\");\n\t\t\t\tinjection.append(element.name);\n\t\t\t}\n\t\t\tinjection.append(\" \");\n\t\t\tinjection.append(element.fieldName);\n\t\t\tinjection.append(\";\");\n\n\t\t\tmClass.add(mFactory.createFieldFromText(injection.toString(), mClass));\n\t\t}\n\t}", "title": "" }, { "docid": "503d5ab12a5a448fdfaf49afb09a05c5", "score": "0.5101099", "text": "public void setNewEmpData(entity.EmploymentData value);", "title": "" }, { "docid": "8291c0cfb31f5a385ce7169149bd4ea8", "score": "0.5100366", "text": "@Fields({\n @Field(propName = \"students\", type = Student.class, complexType = COMPLEXT_LIST)\n})\npublic interface RecyclerListBind {\n}", "title": "" }, { "docid": "747fd43a91f1aff66745c33e7fd9e38e", "score": "0.50774246", "text": "@Override\n\tpublic boolean isCreateonfield() {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "21db034b44eccd67589259d6fc741d43", "score": "0.5074656", "text": "Object writeReplace()\n/* */ {\n/* 150 */ return new AnnotatedField(new Serialization(this._field));\n/* */ }", "title": "" }, { "docid": "49e6a5bb947a5a44a0ed20b55f4736a2", "score": "0.5073935", "text": "org.landxml.schema.landXML11.FieldNoteDocument.FieldNote addNewFieldNote();", "title": "" }, { "docid": "196e5b7be5b544302d8acb4eb05268a8", "score": "0.50726587", "text": "@Override\r\n protected void addExtraAttributeForCreatePage(ModelAndView modelAndView) {\n\r\n }", "title": "" }, { "docid": "ffb9b54dc8cd69baca2254e6b0422dd8", "score": "0.5056461", "text": "public void addField(final Field field) {\n List<List<Integer>> whitelistList = new ArrayList<>();\n List<Integer> spriteIDs = null;\n Flower flower = null;\n for(FieldProperty fp : field.getProperties()) {\n whitelistList.add(Beehive.config.getWhitelistFor(fp.getName()));\n if (fp.getName().equals(\"flyable\")) {\n drawables.add(new Flower(field.getPosition()));\n return ;\n }\n }\n \n if (whitelistList.size() > 0) {\n spriteIDs = new ArrayList<>(whitelistList.get(0)); // Beehive.graphicsConfig.getSpriteIDs();\n whitelistList.remove(0);\n\n for(List<Integer> list : whitelistList) {\n spriteIDs.retainAll(list);\n }\n }\n \n if (spriteIDs != null && spriteIDs.size() > 0) {\n final Random r = new Random();\n final int spriteID = (int) spriteIDs.get(\n (spriteIDs.size() == 1 ? 0 :\n r.nextInt(spriteIDs.size()-1))\n );\n\n\n drawables.add(new IDrawable() {\n \n private int sID = spriteID;\n// private Direction direction = Direction.NORTH;\n private Position position = new Position(field.getPosition().getX(), field.getPosition().getY());\n \n @Override\n public int getImageID() {\n return sID;\n }\n\n @Override\n public Direction getDirection() {\n return Direction.NORTH;\n }\n\n @Override\n public Position getPosition() {\n return position;\n }\n });\n \n// System.out.println(\"LOL\");\n\n }\n }", "title": "" }, { "docid": "3cd77ef6bb8f9a89485eb3b965656e68", "score": "0.5053323", "text": "@Override\n public void manipulate() throws NotFoundException, CannotCompileException {\n String classpath = resolvePath();\n if(classpath.contains(\".class\")) {\n CtClass ctClass = ClassResolver.resolveClass(classpath);\n if (!textArea.getText().isEmpty()) {\n CtField ctField = CtField.make(textArea.getText(), ctClass);\n ctClass.addField(ctField);\n\n }\n }\n else\n Controller.showError(\"Cant add field here\");\n\n\n }", "title": "" }, { "docid": "4cac382f1b6500ec28fab77ec4177557", "score": "0.5051359", "text": "@Override\r\n\tpublic void add(UQrm uqrm) {\n\t\tsuper.getHibernateTemplate().save(uqrm); \r\n\t}", "title": "" }, { "docid": "d6b78d3eaaaf5ede66faa394aea98092", "score": "0.50500906", "text": "public interface PetControlTypeDataSource {\n\n PetControlTypeEntity insertPetControlTypeEntity(PetControlTypeEntity petControlTypeEntity) throws Exception;\n}", "title": "" }, { "docid": "70a4aad0518bbd89a277700aba397d40", "score": "0.504849", "text": "@org.fugerit.java.core.lang.annotate.DefineImpl(as = HelperTestTwoFieldKey.class)\r\npublic interface ModelTestTwoFieldKey extends org.fugerit.java.core.lang.compare.CheckEmpty {\r\n\r\n\t// custom code start ( code above here will be overwritten )\r\n\t// custom code end ( code below here will be overwritten )\r\n\r\n\t/**\r\n\t * Getter method for property : idOne (nullable: no)\r\n\t *\r\n\t * \r\n\t *\r\n\t * @return the value of idOne\r\n\t */\r\n\tjava.math.BigDecimal getIdOne();\r\n\r\n\t/**\r\n\t * Setter method for property : idOne (nullable: no)\r\n\t *\r\n\t * \r\n\t *\r\n\t * @param value the value of idOne\r\n\t */\r\n\tvoid setIdOne( java.math.BigDecimal value );\r\n\r\n\t/**\r\n\t * Getter method for property : idTwo (nullable: no)\r\n\t *\r\n\t * \r\n\t *\r\n\t * @return the value of idTwo\r\n\t */\r\n\tjava.math.BigDecimal getIdTwo();\r\n\r\n\t/**\r\n\t * Setter method for property : idTwo (nullable: no)\r\n\t *\r\n\t * \r\n\t *\r\n\t * @param value the value of idTwo\r\n\t */\r\n\tvoid setIdTwo( java.math.BigDecimal value );\r\n\r\n\t/**\r\n\t * Getter method for property : info (nullable: no)\r\n\t *\r\n\t * \r\n\t *\r\n\t * @return the value of info\r\n\t */\r\n\tjava.lang.String getInfo();\r\n\r\n\t/**\r\n\t * Setter method for property : info (nullable: no)\r\n\t *\r\n\t * \r\n\t *\r\n\t * @param value the value of info\r\n\t */\r\n\tvoid setInfo( java.lang.String value );\r\n\r\n}", "title": "" }, { "docid": "72fe9e9cea818e2689fc2ce775beca47", "score": "0.5046297", "text": "@Mapping(source = \"fields.name\", target=\"name\")\n @Mapping(source = \"fields.cat_name\", target=\"categoryName\")\n @Mapping(source = \"fields.style_name\", target=\"styleName\")\n @Mapping(source = \"fields.name_breweries\", target=\"breweriesName\")\n @Mapping(source = \"fields.country\", target=\"country\")\n @Mapping(source = \"fields.state\", target=\"stateName\")\n @Mapping(source = \"fields.city\", target=\"city\")\n @Mapping(source = \"fields.address1\", target=\"street\")\n NoSqlBeerDTO mapSqlToNoSqlDTO(SqlBeerDTO noSqlBeerDTO);", "title": "" }, { "docid": "e1b2df8b00902d95996fc7784700d5aa", "score": "0.5041979", "text": "Builder addManufacturer(Organization.Builder value);", "title": "" }, { "docid": "2fe68838c34cb408390b402b012e9263", "score": "0.50403404", "text": "@Override\n\tprotected void entityInit() {\n\t\t\n\t}", "title": "" }, { "docid": "8a987b4e1e60fc78ade8e470faf71edf", "score": "0.5038257", "text": "@Override protected NoContentDatabaseResult createModelInDatabase( ){\nreturn null;\n\n// ###(createModelInDatabase) You can edit above this line ### \n}", "title": "" }, { "docid": "9dac072aaed47693955782bae381717d", "score": "0.5034355", "text": "@Mapper(componentModel = \"spring\", uses = {})\npublic interface MealTypeMapper extends EntityMapper<MealTypeDTO, MealType> {\n\n\n @Mapping(target = \"mealTypeRecipees\", ignore = true)\n MealType toEntity(MealTypeDTO mealTypeDTO);\n\n default MealType fromId(Long id) {\n if (id == null) {\n return null;\n }\n MealType mealType = new MealType();\n mealType.setId(id);\n return mealType;\n }\n}", "title": "" }, { "docid": "5829ad681e16406ba6fc665935f99259", "score": "0.50322974", "text": "private MessageRestful addField(final Session session, final Map<String, String> values, final HttpServletResponse response)\n throws RepositoryException, IOException {\n final String docTypeBase = MessageFormat.format(\"/hippo:namespaces/{0}/{1}/\",\n values.get(\"namespace\"), values.get(\"documentType\"));\n final String documentType = values.get(\"namespace\") + \":\" + values.get(\"documentType\");\n\n final Node editorTemplate = session.getNode(docTypeBase + \"editor:templates/_default_\");\n final Node nodeTypeHandle = session.getNode(docTypeBase + \"hipposysedit:nodetype\");\n if (nodeTypeHandle.getNodes().getSize() > 1) {\n return createErrorMessage(\"Document type '\" + documentType + \"' is currently being edited in the CMS, \"\n + \"please commit any pending changes before adding a selection field.\", response);\n }\n final Node nodeType = nodeTypeHandle.getNode(\"hipposysedit:nodetype\");\n\n // Check if the field name is valid. If so, normalize it.\n final String normalized = NodeNameCodec.encode(values.get(\"fieldName\").toLowerCase().replaceAll(\"\\\\s\", \"\"));\n values.put(\"normalizedFieldName\", normalized);\n\n // Check if the fieldName is already in use\n if (nodeType.hasNode(normalized)\n || editorTemplate.hasNode(normalized)\n || isPropertyNameInUse(nodeType, values.get(\"namespace\"), normalized)) {\n return createErrorMessage(\"Field name is already in use for this document type.\", response);\n }\n\n // Put the new field to the default location\n values.put(\"fieldPosition\", DocumentTemplateUtils.getDefaultPosition(editorTemplate));\n\n if (\"single\".equals(values.get(\"selectionType\"))) {\n importXml(\"/xml/single-field-editor-template.xml\", values, editorTemplate);\n importXml(\"/xml/single-field-node-type.xml\", values, nodeType);\n } else if (\"multiple\".equals(values.get(\"selectionType\"))) {\n importXml(\"/xml/multi-field-editor-template.xml\", values, editorTemplate);\n importXml(\"/xml/multi-field-node-type.xml\", values, nodeType);\n }\n session.save();\n\n final String successMessage = MessageFormat.format(\"Successfully added new selection field {0} to document type {1}.\",\n values.get(\"fieldName\"), documentType);\n return new MessageRestful(successMessage);\n }", "title": "" }, { "docid": "52538208337db52aec9a8e7dfa3ff017", "score": "0.502627", "text": "@JsonAnySetter\n private void addUnknownField(String key, Object value) {\n if (key.startsWith(CUSTOM_FIELD_KEY_PREFIX)) {\n addCustomField(key, value);\n }\n }", "title": "" }, { "docid": "0bbf156c1d158a23ac7e036108afb14c", "score": "0.50191694", "text": "@Mapper(componentModel = \"spring\", uses = {})\npublic interface NodeConfigHistoryMapper extends EntityMapper<NodeConfigHistoryDTO, NodeConfigHistory> {\n\n\n\n default NodeConfigHistory fromId(Long id) {\n if (id == null) {\n return null;\n }\n NodeConfigHistory nodeConfigHistory = new NodeConfigHistory();\n nodeConfigHistory.setId(id);\n return nodeConfigHistory;\n }\n}", "title": "" }, { "docid": "0abf51d68669e359e03195582f2ecb42", "score": "0.50185424", "text": "@MyBatisDao\npublic interface TtsScltxxcjUsernumberExpandMapper extends BaseExpandMapper{\n\n /**\n * 根据主体身份码查询用户号\n * @param entityCode\n * @return\n */\n Integer getUsernumByEntityCode(String entityCode);\n\n /**\n * 编辑主体身份码对应的身份号\n * @param map\n */\n void updateUsernumByEntityCode(Map<String, Object> map);\n}", "title": "" }, { "docid": "08c7b4abc8b2e495834a28feb02c438c", "score": "0.50180537", "text": "public interface IField\n{\n\n /**\n * @return the name of the field\n */\n String getName();\n\n /**\n * @return the alias of the field\n */\n String getAlias();\n\n /**\n * Sets the value of the object\n * @param object the object to set the value on\n * @param value the value to set\n * @return The changed object or the newly created object\n */\n Object setValue(Object object, Object value);\n\n /**\n * @param object the object to get the value from\n * @return the value of the field\n */\n Object getValue(Object object);\n\n /**\n * @return if a field is readonly or not\n */\n boolean isReadOnly();\n\n /**\n * @return the type of Object the field must create if the object has to be created\n */\n Class getType();\n\n\n}", "title": "" }, { "docid": "2a34271e6c9a400ca3960bcba0d373f2", "score": "0.5017257", "text": "public static Entities getValuesForCheckPatchMethodF() {\n Entities base = new BaseBuilder().\n //BuildId(\"ENTITIESID\").\n BuildName(\"NameEntities\").\n BuildSchemaName(\"SchemaNameEntities\").\n BuildTableName(\"TableNameEntities\").\n BuildFieldList(\"FieldNamePatch\", \"FieldColumnNamePatch\", NVARCHAR, 100).build();\n return base;\n }", "title": "" }, { "docid": "68cd80fcb2c6acf2301dd93dd27f3295", "score": "0.5016149", "text": "@Mapper\npublic interface CompanyMapper {\n\n @Select(\"select * from company where companyId = #{comId}\")\n CompanyEntity getCompanyById(@Param(\"comId\") int comId);\n\n @Select(\"select * from company where companyCode = #{companyCode}\")\n CompanyEntity getCompanyByCode(@Param(\"companyCode\") String companyCode);\n\n @Insert({\"insert into user(companyName,companyLogo,description,state,companyCode})\"\n +\"values(#{companyName},#{companyLogo},#{description},#{state},#{companyCode})\"})\n int saveCompany(CompanyEntity companyEntity);\n\n// @Update(\"update company set companyCode = #{companyCode} where companyId = #{companyId}\")\n// int updateCompany(int companyCode,int companyId);\n}", "title": "" }, { "docid": "f8b35c92557a7dbcf005ba333d1f940b", "score": "0.5015531", "text": "public void populateFields() {\n id.setDisable(true);\n id.setText(String.valueOf(productToModify.getId()));\n name.setText(String.valueOf(productToModify.getName()));\n inv.setText(String.valueOf(productToModify.getStock()));\n price.setText(String.valueOf(productToModify.getPrice()));\n max.setText(String.valueOf(productToModify.getMax()));\n min.setText(String.valueOf(productToModify.getMin()));\n associatedPartsList.addAll(this.productToModify.getAllAssociatedParts());\n }", "title": "" }, { "docid": "464bfcc55a5b9607abd0e47da614edb1", "score": "0.50080913", "text": "public abstract void setField(Field field);", "title": "" }, { "docid": "28b93ad8d0967039d62dd1287d0e4c6d", "score": "0.49949297", "text": "public abstract void process(Field field, Annotation annotation, Object entity);", "title": "" }, { "docid": "be45dece0f612e93041de6b3663359de", "score": "0.49947435", "text": "public interface DynamicFieldTemplateHandler extends ImogBeanHandler<DynamicFieldTemplate> {\n\n}", "title": "" }, { "docid": "5918f87dfc31884a90924886c164dad7", "score": "0.49918768", "text": "@Override protected void entityInit(){}", "title": "" }, { "docid": "0cbbbc7599bd37c50705695f91ec84cb", "score": "0.49870154", "text": "Builder addAdditionalProperty(String value);", "title": "" }, { "docid": "03bcdbbda888f501237cb883dd465b38", "score": "0.49860817", "text": "public interface JSONModel {\n\n /**\n * config the fields you want expose to json model.\n *\n * @param exposer fields exposer\n */\n void config(FieldExposer exposer);\n \n}", "title": "" }, { "docid": "e3008d55daa5430e1e59bc2bcd9bfa8a", "score": "0.4983975", "text": "public abstract ITermsConsumer addField(IFieldInfo field) throws IOException;", "title": "" }, { "docid": "d34d986534e1cb0db845c7934a183050", "score": "0.49838933", "text": "public void addEntity(EntityUniqueKey euk, Object entity);", "title": "" }, { "docid": "27bff148ed4ff0faafaed7684e72d574", "score": "0.49789453", "text": "com.spirit.medios.entity.PautaGenericoClienteIf addPautaGenericoCliente(com.spirit.medios.entity.PautaGenericoClienteIf model) throws GenericBusinessException;", "title": "" }, { "docid": "3617f6554699817018c7f3e201fe8121", "score": "0.49713632", "text": "sust.bookshelves.entity.Wanttoread addWanttoread(sust.bookshelves.entity.Wanttoread model) throws sust.bookshelves.exception.GenericBusinessException;", "title": "" }, { "docid": "c38bfba9ad0fe2d2e86fefcd415beb65", "score": "0.49702892", "text": "interface WithAdministratorLoginPassword {\n /**\n * Specifies the administratorLoginPassword property: The password of the administrator login..\n *\n * @param administratorLoginPassword The password of the administrator login.\n * @return the next definition stage.\n */\n Update withAdministratorLoginPassword(String administratorLoginPassword);\n }", "title": "" }, { "docid": "6e7a846c967f37bfa1b788796fb63bda", "score": "0.4962206", "text": "public static Entities getValuesForCheckPutMethod() {\n Entities base = new BaseBuilder().\n BuildName(\"Name\").\n BuildSchemaName(\"Schema\").\n BuildTableName(\"Table\").\n BuildFieldList(\"FIELDNameEdited\", \"FIELDColumnNameEdited\", NVARCHAR, 46).build();\n return base;\n }", "title": "" }, { "docid": "44efec1544741b8db678df52218b7aa5", "score": "0.4958126", "text": "Builder addMainEntityOfPage(String value);", "title": "" }, { "docid": "9fc51c9209fe91ed385be77da823e677", "score": "0.49529088", "text": "@Mapper(componentModel = \"spring\", uses = {})\npublic interface RefFractionnementMapper extends EntityMapper <RefFractionnementDTO, RefFractionnement> {\n \n \n default RefFractionnement fromId(Long id) {\n if (id == null) {\n return null;\n }\n RefFractionnement refFractionnement = new RefFractionnement();\n refFractionnement.setId(id);\n return refFractionnement;\n }\n}", "title": "" }, { "docid": "68267d50e5ff212874aae812ef902773", "score": "0.4947244", "text": "void setFieldName(String name);", "title": "" }, { "docid": "cc217cdf7d042cd9c5510518d4e01509", "score": "0.49460137", "text": "@Mapper(componentModel = \"spring\", uses = {})\npublic interface DeliveryTypeMapper extends EntityMapper<DeliveryTypeDTO, DeliveryType> {\n\n\n\n default DeliveryType fromId(Long id) {\n if (id == null) {\n return null;\n }\n DeliveryType deliveryType = new DeliveryType();\n deliveryType.setId(id);\n return deliveryType;\n }\n}", "title": "" }, { "docid": "c17c86a2acecd34b7ab78135ba394336", "score": "0.49449173", "text": "@PrePersist // 在执行保存操作之前,会执行的函数, CallBack\r\n void prePersist() {\n this.name = String.format(\"[ %s_%.2f ]\", this.name, this.price);\r\n this.created = this.updated = new Date();\r\n }", "title": "" }, { "docid": "ab2e2fc82eeb7c33c823919cfd8dbc73", "score": "0.49347797", "text": "public interface FieldInterceptor {\n \n \t/**\n \t * Use to associate the entity to which we are bound to the given session.\n \t *\n \t * @param session The session to which we are now associated.\n \t */\n \tpublic void setSession(SessionImplementor session);\n \n \t/**\n \t * Is the entity to which we are bound completely initialized?\n \t *\n \t * @return True if the entity is initialized; otherwise false.\n \t */\n \tpublic boolean isInitialized();\n \n \t/**\n \t * The the given field initialized for the entity to which we are bound?\n \t *\n \t * @param field The name of the field to check\n \t * @return True if the given field is initialized; otherwise false.\n \t */\n \tpublic boolean isInitialized(String field);\n \n \t/**\n \t * Forcefully mark the entity as being dirty.\n \t */\n \tpublic void dirty();\n \n \t/**\n \t * Is the entity considered dirty?\n \t *\n \t * @return True if the entity is dirty; otherwise false.\n \t */\n \tpublic boolean isDirty();\n \n \t/**\n \t * Clear the internal dirty flag.\n \t */\n \tpublic void clearDirty();\n }", "title": "" }, { "docid": "64596b8631b250db0ce1c7905c1597b9", "score": "0.49324602", "text": "public void addManagerField() {\n\t\taddEmployeeField();\n\t\tthis.add(addTitleField);\n\t\tthis.add(addBonusField);\n\t}", "title": "" }, { "docid": "1733870bfb371f9294eee21ed57ada6d", "score": "0.49291214", "text": "private void addField(\n final DescriptorProtos.DescriptorProto.Builder builder,\n final DescriptorProtos.FieldDescriptorProto.Type fieldType,\n final int index,\n final String name\n )\n {\n log.debug(String.format(\"Adding field [%s] of type [%s]\", name, fieldType.name()));\n builder.addFieldBuilder()\n .setType(fieldType)\n .setName(name)\n .setNumber(index)\n .build();\n }", "title": "" }, { "docid": "0286d74de6196ec85de56e7ec8336bc7", "score": "0.492631", "text": "protected void appendGettersAndSettersHook(ClassDescriptor context,\r\n FieldDescriptor fieldDescriptor, Appendable appendable)\r\n {\n\r\n }", "title": "" }, { "docid": "095a8249a62b40dd8de90eb55ae6cebb", "score": "0.4923026", "text": "private SootFieldContainer(){}", "title": "" }, { "docid": "81875f122b2cdb6b6b0c0bd27315e8cf", "score": "0.49207124", "text": "void addImport(String entityName, String rename) throws DuplicateMappingException;", "title": "" }, { "docid": "419cade233fb9511b252b61a77b22bed", "score": "0.49202535", "text": "@Override\r\n public void toElement(Element fieldEle) {\n\r\n }", "title": "" }, { "docid": "28b935fae84a322cc58583a110a85223", "score": "0.49146295", "text": "com.ats.aempi.configuration.xml.CustomFields getCustomFields();", "title": "" }, { "docid": "dd9ef52b19ff5203142fc0bb355a66db", "score": "0.49110875", "text": "public QbCreateModel(BcaTool_PojoCreatePanel pojoCreatePanel) {\n this.pojoCreatePanel = pojoCreatePanel;\n }", "title": "" }, { "docid": "91cfbd4dfe585f1ac16672333ec62d78", "score": "0.49043205", "text": "void config(FieldExposer exposer);", "title": "" }, { "docid": "d21133fce0679044efe5d761ab856a44", "score": "0.4903153", "text": "public void addEntity(Entity entity) {\n \t\tint id = getNewEntityId();\n \t\tentity.id = id;\n \t\taddedEntities.put(id, entity);\n \n \t\tClass<? extends Entity> entityClass = entity.getClass();\n \t\t// Read reflection data and use it to add all the components that were\n \t\t// declared as fields.\n \t\tEntityReflection reflection = entitydataManager.getReflection(entityClass);\n \t\tentity.data = reflection.data;\n \n \t\tif (entity.getClass() != Entity.class) {\n \t\t\tKeys k = reflection.componentFields.keys();\n \t\t\twhile (k.hasNext) {\n \t\t\t\tint next = k.next();\n \t\t\t\tField field = reflection.componentFields.get(next);\n \t\t\t\tComponentMapper<? extends Component> mapper = componentManager.getComponentMapper(next);\n \t\t\t\ttry {\n \t\t\t\t\tmapper.add(id, (Component) field.get(entity));\n \t\t\t\t} catch (IllegalArgumentException e) {\n \t\t\t\t\te.printStackTrace();\n \t\t\t\t} catch (IllegalAccessException e) {\n \t\t\t\t\te.printStackTrace();\n \t\t\t\t}\n \t\t\t}\n \t\t}\n \t\t// Add all the components that were added to the entity before the\n \t\t// entity was added to the world.\n \t\tList<Component> scheduleAddList = scheduledAdds.remove(entity);\n \t\tif (scheduleAddList != null) {\n \t\t\tcomponentManager.addComponent(entity, scheduleAddList.toArray(new Component[0]));\n \t\t}\n \t\t// Remove all the components that were removed from the entity before\n \t\t// the entity was added to the world.\n \t\tList<Component> scheduledRemovesList = scheduledRemoves.remove(entity);\n \t\tif (scheduledRemovesList != null) {\n \t\t\tcomponentManager.removeComponent(entity, scheduledRemovesList.toArray(new Component[0]));\n \t\t}\n \n \t\t//Add the entity to the systems.\n \t\tsystemManager.addEntityToSystems(entity, entity.data.systemBits);\n \t}", "title": "" }, { "docid": "ac62296926ad95ceb54b27850a90de57", "score": "0.49022055", "text": "@Override\n public void addEmployee(Employee employee){\n Contact contact = employee.getContact();\n contact.setEmployee(employee);\n//\n// for(Vehicle vehicle: employee.getVehicleList()){\n// vehicle.setEmployee(employee);\n// }\n\n employeeRepository.save(employee);\n\n }", "title": "" }, { "docid": "3d2ad9b9035be07c5a256c1573db8755", "score": "0.4901553", "text": "@Mapper(componentModel = \"spring\", uses = {})\npublic interface ChidMapper extends EntityMapper<ChidDTO, Chid> {\n\n\n\n default Chid fromId(Long id) {\n if (id == null) {\n return null;\n }\n Chid chid = new Chid();\n chid.setId(id);\n return chid;\n }\n}", "title": "" } ]
5c740c975cd8689c07265b16e8dda18e
Update the registry's data with the values in the input registerable object that have changed since it was last checked in.
[ { "docid": "4e59f7f9fdef78d7768bfd7c026b841e", "score": "0.53260946", "text": "public void checkIn(Registerable t) throws VellumException {\n\t\ttry {\n\t\t\tif (t.isValid() && isAValidCheckOut(t)) {\n\t\t\t\t// Update the sets and maps of\n\t\t\t\t// property entries held in the registry\n\t\t\t\tPersistings currentState = \n\t\t\t\t\t\tpeMap.get(t.getRegistrationNumber());\n\t\t\t\t\n\t\t\t\t// For each property...\n\t\t\t\tfor (Persisting pe : currentState) {\n\t\t\t\t\t//find the corresponding index...\n\t\t\t\t\tIndex index = indexes.get(pe.getIndexName());\n\t\t\t\t\tif (index != null) {\n\t\t\t\t\t\t//and remove the current property \n\t\t\t\t\t\tindex.remove(t);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t//Now update the current state to the\n\t\t\t\t//state of the checked-in object\n\t\t\t\tcurrentState.clear();\n\t\t\t\tcurrentState.addAll(t.getState());\n\n\t\t\t\t// For each property...\n\t\t\t\tfor (Persisting pe : currentState) {\n\t\t\t\t\t//find the corresponding index...\n\t\t\t\t\tIndex index = indexes.get(pe.getIndexName());\n\t\t\t\t\tif (index != null) {\n\t\t\t\t\t\t// and add the new property\n\t\t\t\t\t\tindex.put(t);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// check this object in so others can check it out again c\n\t\t\t\tcheckOuts.remove(t.getRegistrationNumber());\n\t\t\t} else {\n\t\t\t\tthrow new VellumException(\n\t\t\t\t\t\t\"Invalid Data: Object cannot be checked in\");\n\t\t\t}\n\t\t} catch (VellumException ve) {\n\t\t\tthrow ve;\n\t\t} catch (Exception e) {\n\t\t\tthrow new VellumException(e);\n\t\t}\n\t}", "title": "" } ]
[ { "docid": "782c5120acf56affc9a9ef512caf66fb", "score": "0.63993686", "text": "void updated(RegistrationUpdate update, Registration updatedReg, Registration previousReg);", "title": "" }, { "docid": "205d807f700260b32c9458c83cc048e7", "score": "0.6046338", "text": "public void update() {\n updateValuesOnly();\n }", "title": "" }, { "docid": "72f79f620b3499b99489b9a44980528e", "score": "0.6016274", "text": "protected abstract void updateDataValue();", "title": "" }, { "docid": "85ac0f202a6d9af38b183194f656c5a4", "score": "0.6015663", "text": "private void updateValues() {\r\n\r\n }", "title": "" }, { "docid": "fc8306c3316f93e91a205eb2571d4c75", "score": "0.6008603", "text": "private void updateData() {\n\t\t\r\n\t}", "title": "" }, { "docid": "8d8e474f0c24a1ba57db2d609df8c835", "score": "0.5812038", "text": "public void updateLocationData(){\n if(!this.updateable) return;\n super.sense();\n }", "title": "" }, { "docid": "90ef6ddc28687292d28af70818ae35fc", "score": "0.57780284", "text": "public UpdateRegistry(){\n\t\tthis.viewer = null;\n\t\tthis.modelList = new ArrayList<Model>();\n\t\tthis.toolPanel = null;\n//\t\tthis.mouseState = new MouseState();\n\t\tthis.dragMode = -1;\n\t}", "title": "" }, { "docid": "3391c9180282e3691ed7de6e7f4099c9", "score": "0.5734957", "text": "@Override\n public void updated() {\n }", "title": "" }, { "docid": "a4df1ddbbefe5b58fe783c4f1e245d76", "score": "0.56183964", "text": "@Override\n\tpublic void registryChanged(IRegistryChangeEvent event) {\n\t\tSystem.out.println(\"changement of registry\");\n\t\t\n\t}", "title": "" }, { "docid": "d4dc853dc9a2e6908864797fa2231d45", "score": "0.5574486", "text": "void markDataDirty();", "title": "" }, { "docid": "8a0813b0262bdbd2dd561c8891e725d2", "score": "0.5564022", "text": "public void updateAddedDatas() {\n\t\tif (filter == null)\n\t\t\treturn;\n\t\tObject o = filter.getAddedData();\n\t\tsetAddedDatas((Object[])o);\n\t}", "title": "" }, { "docid": "770cdca61b3dcde861f954f8df4428c4", "score": "0.5519533", "text": "public void registryChanged(IRegistryChangeEvent event) {\n history.clear();\n // give implementation a chance to react to change.\n handleRegistryChanged(event);\n }", "title": "" }, { "docid": "b0076d4db6abde2e783985bf30c10c63", "score": "0.55159736", "text": "public void notifyValuesChanged();", "title": "" }, { "docid": "86fa04854a826384df3f90b801c3fd1c", "score": "0.5501055", "text": "void updateInformation();", "title": "" }, { "docid": "63129324e0df4f036bc2ce3098097cc0", "score": "0.54896474", "text": "@Override\n\tpublic void refresh(Object data, int changeSource) {\n\t\t\n\t}", "title": "" }, { "docid": "89a47c9184c69636ac090bbcf6db99c3", "score": "0.5476847", "text": "public void updated() {\n this.lastCheck = System.currentTimeMillis();\n }", "title": "" }, { "docid": "ff67f2126a6f65fd1711d7f2cfff4a84", "score": "0.54687685", "text": "protected abstract void handleRegistryChanged(IRegistryChangeEvent event);", "title": "" }, { "docid": "0beba909cdf74e3a760f83b6a4eaea5b", "score": "0.5436682", "text": "@Override\r\n\tpublic void update() {\n\t\tSystem.out.println(\"Available locations : \"+locationMap.keySet().toString());\r\n\t\t\r\n\t\tSystem.out.println(\"Enter location name : \");\r\n\t\tString name = scan.next();\r\n\t\tif(scan.hasNext())\r\n\t\t{\r\n\t\t\tname += scan.nextLine();\r\n\t\t}\r\n\t\t\r\n\t\tSystem.out.println(\"Enter new latitude : \");\r\n\t\tdouble lat = scan.nextDouble();\r\n\t\tSystem.out.println(\"Enter new longitude : \");\r\n\t\tdouble lon = scan.nextDouble();\r\n\t\t\r\n\t\tLocation loc = locationMap.get(name);\r\n\t\tloc.setLongitude(lon);\r\n\t\tloc.setLatitude(lat);\r\n\t\tlocationMap.put(name, loc);\r\n\t\tSystem.out.println(\"Location updated!\");\r\n\t\t\t\t\r\n\t}", "title": "" }, { "docid": "d670d7667504894d3568d28195097a79", "score": "0.54364043", "text": "@Override\n public void update(Object updateData) {\n\n }", "title": "" }, { "docid": "761b32aa696379f75f3df21eb1f40089", "score": "0.5423007", "text": "public void updated();", "title": "" }, { "docid": "e304f6a271543cca8f91f18a7e2ef5f2", "score": "0.54083955", "text": "@Override\n\tpublic boolean updateData(UserModel updatePojo) {\n\t\tboolean status = daoRegister.updateData(updatePojo);\n\t\treturn status;\n\t}", "title": "" }, { "docid": "25ac9ceab1444461608e82fad0a61e0e", "score": "0.5401519", "text": "@Override\n\t\tpublic void allChanged() {\n\t\t\t\n\t\t}", "title": "" }, { "docid": "0f9b06164137a1fb78b1b0dfdd13e7d0", "score": "0.5400539", "text": "public void updateValues() {\n\n\t\tthis.SmartDashboardDisplay();\n\n\t}", "title": "" }, { "docid": "bed527f3692066dbef726cc45527210c", "score": "0.5387339", "text": "@Override\n\tpublic void update(THistory t) {\n\t\t\n\t}", "title": "" }, { "docid": "b19cff34ff4a00a5edbe773f344572fc", "score": "0.5385282", "text": "private void updateValues() {\n objValue = getTestFunction().calculateFitness(chromosome);\n fitTransValue = getTestFunction().getFitnessTransferral(objValue);\n }", "title": "" }, { "docid": "9ec582a674f0785e1ad331d4c23b0c17", "score": "0.53661406", "text": "@Override\n\t\tpublic void update() {\n\t\t\t\n\t\t}", "title": "" }, { "docid": "02ecb6f6e642b723f09a8ad5ee637e18", "score": "0.5346777", "text": "@Override\r\n\tpublic int Update(Object dataObject) {\n\t\treturn 0;\r\n\t}", "title": "" }, { "docid": "9d13af8544490b1f001202e8e96c152f", "score": "0.5336106", "text": "public void update(Mstregistration mstregistration);", "title": "" }, { "docid": "d0f411904dcf6f91a363530989f72d05", "score": "0.5304276", "text": "@Override\n\t\tpublic void refresh() {\n\n\t\t}", "title": "" }, { "docid": "103cdb287ff098e5b33fc302507f3cd9", "score": "0.5286978", "text": "public interface WatcherNewData {\n void refreshNewData();\n}", "title": "" }, { "docid": "5fbf9badd992b6f4523b2cce0f147055", "score": "0.5286807", "text": "@Override\r\n\tpublic void update() {\n\t\t\r\n\t}", "title": "" }, { "docid": "5fbf9badd992b6f4523b2cce0f147055", "score": "0.5286807", "text": "@Override\r\n\tpublic void update() {\n\t\t\r\n\t}", "title": "" }, { "docid": "5fbf9badd992b6f4523b2cce0f147055", "score": "0.5286807", "text": "@Override\r\n\tpublic void update() {\n\t\t\r\n\t}", "title": "" }, { "docid": "5fbf9badd992b6f4523b2cce0f147055", "score": "0.5286807", "text": "@Override\r\n\tpublic void update() {\n\t\t\r\n\t}", "title": "" }, { "docid": "5fbf9badd992b6f4523b2cce0f147055", "score": "0.5286807", "text": "@Override\r\n\tpublic void update() {\n\t\t\r\n\t}", "title": "" }, { "docid": "5fbf9badd992b6f4523b2cce0f147055", "score": "0.5286807", "text": "@Override\r\n\tpublic void update() {\n\t\t\r\n\t}", "title": "" }, { "docid": "5fbf9badd992b6f4523b2cce0f147055", "score": "0.5286807", "text": "@Override\r\n\tpublic void update() {\n\t\t\r\n\t}", "title": "" }, { "docid": "06d05bd87963273ae949d435bdc6a21a", "score": "0.52771664", "text": "@Override\n public void refreshData() {\n List<Recipe> newRecipes = recipeDao.getAll();\n recipes.forEach(oldRecipe -> {\n if (!newRecipes.contains(oldRecipe)) {\n container.removeItem(idResolver.getIdForBean(oldRecipe));\n }\n }\n );\n container.addAll(newRecipes);\n recipes = newRecipes;\n recipeWindow.refreshData();\n }", "title": "" }, { "docid": "2fa5455930e401b6b77c68d7ed251983", "score": "0.5271553", "text": "@Override\n\tpublic void remoteDeviceUpdated(Registry arg0, RemoteDevice arg1) {\n\n\t}", "title": "" }, { "docid": "5766baecf348e9c9f47ed0026b6de202", "score": "0.52700716", "text": "@Override\n\tpublic void update() {}", "title": "" }, { "docid": "4eb8c6b1cf2d03d52b163433084db376", "score": "0.52675915", "text": "protected void update() {}", "title": "" }, { "docid": "6c7e99731316e4585e2f945675e1355c", "score": "0.52611905", "text": "@Override\n\t\tpublic void refresh()\n\t\t{\n\t\t}", "title": "" }, { "docid": "bf0e9587e9a0d3365b8b3743793a012e", "score": "0.5260437", "text": "public void updateAvailableRecipes() {\n availableRecipes.updateNextTick();\n }", "title": "" }, { "docid": "53a62bf045212af467c5248a3fb5e98c", "score": "0.5245466", "text": "public void updateValue() {\r\n setValue(getSupplier().get());\r\n }", "title": "" }, { "docid": "0c7d55eba83aa4d938170c3d1d49770e", "score": "0.52249527", "text": "public void rewind() throws IllegalArgumentException, NativeLibException\n {\n synchronized (this)\n {\n suspendLogging();\n\n for (Object aLogging : logging)\n {\n RegistryLogItem rli = (RegistryLogItem) aLogging;\n String rliValueName = (DEFAULT_PLACEHOLDER.equals(rli.getValueName())) ? \"\" : rli\n .getValueName();\n switch (rli.getType())\n {\n case RegistryLogItem.CREATED_KEY:\n deleteKeyIfEmpty(rli.getRoot(), rli.getKey());\n break;\n case RegistryLogItem.REMOVED_KEY:\n createKeyN(rli.getRoot(), rli.getKey());\n break;\n case RegistryLogItem.CREATED_VALUE:\n RegDataContainer currentContents;\n // Delete value only if reg entry exists and is equal to the stored value.\n try\n {\n currentContents = getValue(rli.getRoot(), rli.getKey(), rliValueName);\n }\n catch (NativeLibException nle)\n {\n break;\n }\n if (currentContents.equals(rli.getNewValue()))\n {\n deleteValueN(rli.getRoot(), rli.getKey(), rliValueName);\n }\n // TODO: what todo if value has changed?\n break;\n case RegistryLogItem.REMOVED_VALUE:\n // Set old value only if reg entry not exists.\n try\n {\n getValue(rli.getRoot(), rli.getKey(), rliValueName);\n }\n catch (NativeLibException nle)\n {\n setValueN(rli.getRoot(), rli.getKey(), rliValueName, rli\n .getOldValue());\n }\n break;\n case RegistryLogItem.CHANGED_VALUE:\n // Change to old value only if reg entry exists and equal to\n // the\n // stored value.\n try\n {\n currentContents = getValue(rli.getRoot(), rli.getKey(), rliValueName);\n }\n catch (NativeLibException nle)\n {\n break;\n }\n if (currentContents.equals(rli.getNewValue()))\n {\n setValueN(rli.getRoot(), rli.getKey(), rliValueName, rli\n .getOldValue());\n }\n break;\n }\n }\n }\n\n }", "title": "" }, { "docid": "b26acfbf1bb6fb3829f595273bc5c51c", "score": "0.5224328", "text": "public void uponRefresh(){\n int page;\n //Shift the bits before adding the new value.\n shiftBit();\n for(int i = 0; i<numOfFrames; i++){\n page = frameTable[i];\n if(page!=-1){\n PTE pageEntry = table.getEntry(page);\n if(pageEntry.rBit==1){\n bits[i] = (bits[i] | (1 << 7));\n }\n else{\n bits[i] = (bits[i] & ~(1 << 7));\n }\n //Set rbit to 0 after storing it to 8-bit history table.\n pageEntry.rBit = 0;\n }\n\n }\n }", "title": "" }, { "docid": "d8afbc71e434a6dba971eb270de7773c", "score": "0.5224002", "text": "@Override\n public void processNewRegistration(Map data) {\n this.processRegistration(data,\"registrations\");\n }", "title": "" }, { "docid": "761ceaa8b8b6b1dbbb881f75d3baa9ab", "score": "0.52175146", "text": "public abstract void update(Data data);", "title": "" }, { "docid": "03c5797a15816444b7c98dc9213939cc", "score": "0.52162975", "text": "@Override\n protected void markValueUpdate(Type value) {\n String key = getValueReference(value);\n if (key != null) observableMap.put(key, value);\n }", "title": "" }, { "docid": "cc573cc16ce3cd3179bf8d915749f040", "score": "0.5209431", "text": "private void refreshSaves() {\n fortitude = baseFortitude + cMod + conTempMod + fortitudeMiscMod;\n reflex = baseReflex + dMod + dexTempMod + reflexMiscMod;\n will = baseWill + wMod + wisTempMod + willMiscMod;\n }", "title": "" }, { "docid": "592919f9753de5829988309df6602387", "score": "0.520482", "text": "void updateData() {\n updateDriveTrain();\n updateScoring();\n }", "title": "" }, { "docid": "cb4597815e0bccfbac182683173c828b", "score": "0.5204657", "text": "public void update() {\n\t\tsetChanged();\n\t\tnotifyObservers();\n\t}", "title": "" }, { "docid": "4624c9d94492071e5c949ca44055117b", "score": "0.5196292", "text": "@Override\r\n\tpublic void update() \r\n\t{\n\t\t\r\n\t}", "title": "" }, { "docid": "387a0e761d9c65d8e913fd2fe76dff1c", "score": "0.519545", "text": "public void reEntry(){\n\t\treEntry(listAgents);\n\t}", "title": "" }, { "docid": "b476a5e813736a3599d09fd3e9548045", "score": "0.51869667", "text": "@Override\r\n public void update() {\r\n }", "title": "" }, { "docid": "c99a32407aa03cedc14dc3d84c815b70", "score": "0.5181095", "text": "@Override\n public void refreshing() {\n }", "title": "" }, { "docid": "0da1baef055795bbafe52f4bd2e190d8", "score": "0.517736", "text": "@Override\n public void update() {\n buildOptionsFromHashMap(eventRegisterController.getEvents());\n }", "title": "" }, { "docid": "1c86573e4f378d3e60d53118615c581f", "score": "0.51768905", "text": "@Override\n public void update(java.util.Observable o, Object obj){\n updateState();\n }", "title": "" }, { "docid": "dabb00a03ddbf3353550edf5f0ae7c66", "score": "0.51728296", "text": "protected CashRegister updateMoney(){\r\n updateMoneyCount += 1;\r\n \r\n \r\n /*----------------------------------------------------\r\n * add your code below this comment block \r\n *--------------------------------------------------- */\r\n int[] moneyInRegister = this.getAll();\r\n int highestValueInRegister = 0;\r\n int counter = moneyInRegister.length - 1;\r\n int index = 0;\r\n //split the highest currency into lower currency\r\n for (int i=counter; i>=0; i--) {\r\n if (moneyInRegister[i] > 0){\r\n highestValueInRegister = moneyInRegister[i] * valueTypes[i];\r\n index = i - 1;\r\n break;\r\n }\r\n }\r\n \r\n int[] newMoney = this.getShuffledRegisterMoney(moneyInRegister, highestValueInRegister, index);\r\n \r\n this.setAll(newMoney);\r\n\r\n /* DO NOT CHANGE THIS LINE */ \r\n /* your method must return this */\r\n return this;\r\n }", "title": "" }, { "docid": "f016a59c9c62c6716a0b5e918a286a8d", "score": "0.5171947", "text": "private void updateValue() {\n Object value = getValue();\n firePropertyChange(\"value\", null, value);\n }", "title": "" }, { "docid": "b6a1e55cf726b5a864aa9427ac7e6b3d", "score": "0.5169873", "text": "@Override\n\tpublic void update(Observable o, Object arg) {\n\t\tchangeData(arg);\n\t}", "title": "" }, { "docid": "69cc080039a4062d2111fbda00e82233", "score": "0.51690435", "text": "@Override\n\tpublic void update() {\n\n\t}", "title": "" }, { "docid": "69cc080039a4062d2111fbda00e82233", "score": "0.51690435", "text": "@Override\n\tpublic void update() {\n\n\t}", "title": "" }, { "docid": "69cc080039a4062d2111fbda00e82233", "score": "0.51690435", "text": "@Override\n\tpublic void update() {\n\n\t}", "title": "" }, { "docid": "69cc080039a4062d2111fbda00e82233", "score": "0.51690435", "text": "@Override\n\tpublic void update() {\n\n\t}", "title": "" }, { "docid": "69cc080039a4062d2111fbda00e82233", "score": "0.51690435", "text": "@Override\n\tpublic void update() {\n\n\t}", "title": "" }, { "docid": "69cc080039a4062d2111fbda00e82233", "score": "0.51690435", "text": "@Override\n\tpublic void update() {\n\n\t}", "title": "" }, { "docid": "69cc080039a4062d2111fbda00e82233", "score": "0.51690435", "text": "@Override\n\tpublic void update() {\n\n\t}", "title": "" }, { "docid": "157fdf656fba568b2eb98258ec626c59", "score": "0.5168743", "text": "@Override\r\n\tpublic void recogerDatosUpdate() {\n\t\t\r\n\t}", "title": "" }, { "docid": "00ab93da90978aec16368128d30d4ea4", "score": "0.51644635", "text": "void update(Map<String, Integer> registers);", "title": "" }, { "docid": "63628b718820a8372cc78e71de73c21b", "score": "0.5159978", "text": "public void updateAllData() {\n\n\t\tupdateOptionData(false);\n\t\t// getOptionList();\n\t\t// updateZJData();\n\t\t// updateChiCang(false);\n\t\t// updateDRWT_CD(false);\n\t}", "title": "" }, { "docid": "efe59ac73ed9582d9dc77c487f03403f", "score": "0.51562965", "text": "void valueUpdated(T marker) {\n Node<T> node = (Node<T>)lookupNode(marker);\n if (node != null) node.recalculateSubTreeSumUp();\n }", "title": "" }, { "docid": "a98038ce03d1bdeb3f87f50b8b55d423", "score": "0.51484853", "text": "void registered(Registration registration, Registration previousReg, Collection<Observation> previousObservations);", "title": "" }, { "docid": "1e0f84b28aa9fbea2d7c071237389c17", "score": "0.51433754", "text": "public void update() {\r\n if (evaltreeStorage != null) {\r\n evaltreeStorage.update();\r\n }\r\n }", "title": "" }, { "docid": "b64bfc849e79aa09409761afb68e4657", "score": "0.5139524", "text": "public void update() { update(activeInStartLocs,inactiveLocs); }", "title": "" }, { "docid": "8131833911ad9596b596363935debcdc", "score": "0.51371205", "text": "@Override\r\n public void update() {\n }", "title": "" }, { "docid": "ce967c2cf27210f1cd210cd6d862bc75", "score": "0.5132963", "text": "void updateInfo(Patient currentPatient) { //Update all sub types of interfaces\n this.patient = currentPatient;\n updateDemographic();\n updateMedicalInfo();\n updateComobo();\n }", "title": "" }, { "docid": "ef930ab22fd320fe2528fa972c445f2c", "score": "0.5131433", "text": "private static void updatedValues() {\n for (Request r : requests) {\n r.updateValue();\n }\n }", "title": "" }, { "docid": "f1f6143c02a9db1a2eab90bb8fb2c3fa", "score": "0.51266354", "text": "@Override\n\tpublic void refresh(Object o) {\n\t\t\n\t}", "title": "" }, { "docid": "5d9c49df23091328b94b249e74be18cc", "score": "0.5122164", "text": "@Override\n\tpublic void setValue(Object newData) {\n\t\tif(newData == null) {\n\t\t\tthrow new NullPointerException(\"L'objet indiqué est null\");\n\t\t}else {\n\t\t\tthis.current.theValue = newData;\n\t\t}\n\t\tassert(this.invariant()):\"Invariant violé !\";\n\t}", "title": "" }, { "docid": "4713f63005267410264c0a708444a157", "score": "0.5118858", "text": "@Override\n public void refresh() {\n }", "title": "" }, { "docid": "1b0005aff95da589b64ccd5c72c33150", "score": "0.5117465", "text": "@Override\n\tpublic void refreshComponentData() {\n\t\tif (getHandler() != null)\n\t\t\tgetHandler().refreshComponentData();\n\t}", "title": "" }, { "docid": "6e779bb120100f60e78897829a3c7b27", "score": "0.51075923", "text": "public void update() {\n\t\tsuper.write(new byte[] { B, G, R, 0x00, (byte) (value >> 8), (byte) (value & 0xFF), (byte) (mode >> 8),\n\t\t\t\t(byte) (mode & 0xFF) });\n\t}", "title": "" }, { "docid": "405999032810a245a89243778c428dcd", "score": "0.51038617", "text": "@Override\n public void update() {\n }", "title": "" }, { "docid": "405999032810a245a89243778c428dcd", "score": "0.51038617", "text": "@Override\n public void update() {\n }", "title": "" }, { "docid": "405999032810a245a89243778c428dcd", "score": "0.51038617", "text": "@Override\n public void update() {\n }", "title": "" }, { "docid": "405999032810a245a89243778c428dcd", "score": "0.51038617", "text": "@Override\n public void update() {\n }", "title": "" }, { "docid": "000763afc341414c3a4b8fb1a93c6d3d", "score": "0.51025075", "text": "@Override\n\tpublic void update( )\n\t{\n\n\t}", "title": "" }, { "docid": "a09b416884224c44337fd0b0fe5ac4cb", "score": "0.50997084", "text": "private void updateRegisterTimeMillis() {\n lock.writeLock().lock();\n try {\n registerTimeMillis = System.currentTimeMillis();\n } finally {\n lock.writeLock().unlock();\n }\n }", "title": "" }, { "docid": "8091747702311cfb14824a1af3f953e3", "score": "0.5098615", "text": "void updateData(Trick c);", "title": "" }, { "docid": "2fc57116352d2b2d386d4c68e83c75b1", "score": "0.50905913", "text": "@Override\n public void reload() {\n\n }", "title": "" }, { "docid": "35cbfb85bd3e948faed5365e4dfe59a1", "score": "0.5088198", "text": "public void withdraw(Registerable t) throws VellumException {\n\n\t\t// Find all of the property values...\n\t\tPersistings pes = t.getState();\n\n\t\t// For each property...\n\t\tfor (Persisting pe : pes) {\n\t\t\t// Remove this property entry from the registry per se...\n\t\t\tpeMap.remove(pe.getRegistrationNumber());\n\n\t\t\t// ...and remove this changed object from the corresponding indices\n\t\t\tRegistrationNumbers t2 = find(pe.getObjectType(), pe.getFieldName(), pe.getValue());\n\t\t\tif (t2.contains(t)) {\n\t\t\t\tt2.remove(t);\n\t\t\t}\n\t\t\t\n\t\t\t//Remove this object from check outs if present\n\t\t\tcheckOuts.remove(t.getRegistrationNumber());\n\t\t}\n\n\t\t// Make sure object doesn't linger in list of check outs\n\t\tcheckOuts.remove(t.getRegistrationNumber());\n\t}", "title": "" }, { "docid": "9c6b299eacdd4330272bd064936de211", "score": "0.5087549", "text": "public void updateStoredVariables();", "title": "" }, { "docid": "63940ce6e3397b881092bd2dcb00ca2c", "score": "0.50743425", "text": "@Override\r\n \tpublic void update(Observable o, Object arg) {\n \t\tSystem.out.println(\"ALV: updating...\");\r\n \t\tpopulateFields();\r\n \t}", "title": "" }, { "docid": "c581774ec8c42a56001c89c52cdc6f1f", "score": "0.507348", "text": "protected void setChanged(){\n hasChanged = true;\n }", "title": "" }, { "docid": "39edeab0d139464c567d736df5a454e0", "score": "0.5067402", "text": "public void registerForLteDataRegStateOrRatChanged(Handler h, int what,\n Object obj) {\n Registrant r = new Registrant(h, what, obj);\n mLteDataRegStateOrRatChangedRegistrants.add(r);\n }", "title": "" }, { "docid": "b9547ea0bfae52eef9af81634002f52e", "score": "0.5063745", "text": "void pushChange()\r\n {\r\n _log(\"update() \" + getName() + \"=\" + getValue() + \", \" + (null==getInputEl()?\"???\":getInputEl().getNodeValue()));\r\n\r\n String text = _default(getValue(), null);\r\n\r\n if (null != updateErrorFormat(text, false))\r\n return;\r\n\r\n if (_pd != null)\r\n {\r\n FieldStatus status = getStatus(_pd);\r\n Object propObj = _prop.get();\r\n String propText = propObj == null ? null : propObj.toString();\r\n if (!nullEquals(text, propText))\r\n {\r\n // Just refresh the status icon, not the whole row\r\n _prop.set(text);\r\n if (status != getStatus(_pd))\r\n updateStatusImage(_pd);\r\n }\r\n }\r\n else\r\n {\r\n _prop.set(text);\r\n }\r\n }", "title": "" }, { "docid": "df80d4319a8ba0687165356d9873c234", "score": "0.50560427", "text": "private final void refreshPushersList() {\n }", "title": "" }, { "docid": "cafc209c786acd52fc2588987eaeda76", "score": "0.5054162", "text": "public void updateInfoAfterStructureChange()\r\n {\r\n updateGameStats();\r\n\r\n nameValuePairs.get(1).setValue(gameData.getMoney());\r\n nameValuePairs.get(3).setValue(gameData.getPopulation());\r\n nameValuePairs.get(4).setValue(gameData.getEmploymentRate());\r\n nameValuePairs.get(5).setValue(gameData.getTemperature());\r\n\r\n infoAdapter.notifyDataSetChanged();\r\n }", "title": "" }, { "docid": "4b23bb07332a02dd37d2edecf77d2e08", "score": "0.50528413", "text": "public void update() {\n selection.applyToDataSelection(dataChoice, dataSelection);\n }", "title": "" } ]
523ec968187e6079f285f40f4c661e50
Get this PropertyHelper's Project.
[ { "docid": "0fcf5b107cbf5845d2d66bdbc4990aa8", "score": "0.75454426", "text": "public Project getProject() {\n return project;\n }", "title": "" } ]
[ { "docid": "5543d6e14e475d734c4cd47d8fea9601", "score": "0.75749683", "text": "public static String getProject() { return project; }", "title": "" }, { "docid": "62983efb98171966174d24ef6f8b7524", "score": "0.75102663", "text": "public String getProject() {\n return this.project;\n }", "title": "" }, { "docid": "e4d97705118ed35438bcb333838515e2", "score": "0.7505213", "text": "public Project getProject(){\n\t\treturn project;\n\t}", "title": "" }, { "docid": "eec0944efdd66875e72b5e45ce850393", "score": "0.7467749", "text": "public Project getProject() {\r\n\t\treturn project;\r\n\t}", "title": "" }, { "docid": "75839d2703873c60062f9c1698bff6c2", "score": "0.74619657", "text": "public String getProject() {\r\n return project;\r\n }", "title": "" }, { "docid": "b65a268c80568d5df707f2c0a903c9f2", "score": "0.74170196", "text": "public Project getProject() {\n\t\treturn project;\n\t}", "title": "" }, { "docid": "0b4ecea05487a0cabaaf12ce368f79df", "score": "0.7353206", "text": "public String getProject() {\n\t\treturn project;\n\t}", "title": "" }, { "docid": "26a76030f41b3af0d2261b0509ae7932", "score": "0.73386645", "text": "public Project getProject() {\r\n\t return project == null ? loadProject() : project;\r\n\t}", "title": "" }, { "docid": "ca3dc657dd72ef6c8c0e4c07ec5adc8b", "score": "0.72240394", "text": "@Override\n public IProject getProject() {\n return project;\n }", "title": "" }, { "docid": "c3962cb26a0cbff1c42c1127a9af1840", "score": "0.7094387", "text": "public java.lang.String getProject() {\n return project;\n }", "title": "" }, { "docid": "c3962cb26a0cbff1c42c1127a9af1840", "score": "0.7094387", "text": "public java.lang.String getProject() {\n return project;\n }", "title": "" }, { "docid": "c3962cb26a0cbff1c42c1127a9af1840", "score": "0.7094387", "text": "public java.lang.String getProject() {\n return project;\n }", "title": "" }, { "docid": "c3962cb26a0cbff1c42c1127a9af1840", "score": "0.7094387", "text": "public java.lang.String getProject() {\n return project;\n }", "title": "" }, { "docid": "c3962cb26a0cbff1c42c1127a9af1840", "score": "0.7094387", "text": "public java.lang.String getProject() {\n return project;\n }", "title": "" }, { "docid": "c3962cb26a0cbff1c42c1127a9af1840", "score": "0.7094387", "text": "public java.lang.String getProject() {\n return project;\n }", "title": "" }, { "docid": "c3962cb26a0cbff1c42c1127a9af1840", "score": "0.7094387", "text": "public java.lang.String getProject() {\n return project;\n }", "title": "" }, { "docid": "c3962cb26a0cbff1c42c1127a9af1840", "score": "0.7094387", "text": "public java.lang.String getProject() {\n return project;\n }", "title": "" }, { "docid": "c3962cb26a0cbff1c42c1127a9af1840", "score": "0.7094387", "text": "public java.lang.String getProject() {\n return project;\n }", "title": "" }, { "docid": "c3962cb26a0cbff1c42c1127a9af1840", "score": "0.7094387", "text": "public java.lang.String getProject() {\n return project;\n }", "title": "" }, { "docid": "c3962cb26a0cbff1c42c1127a9af1840", "score": "0.7094327", "text": "public java.lang.String getProject() {\n return project;\n }", "title": "" }, { "docid": "c3962cb26a0cbff1c42c1127a9af1840", "score": "0.7094327", "text": "public java.lang.String getProject() {\n return project;\n }", "title": "" }, { "docid": "c3962cb26a0cbff1c42c1127a9af1840", "score": "0.7094327", "text": "public java.lang.String getProject() {\n return project;\n }", "title": "" }, { "docid": "c3962cb26a0cbff1c42c1127a9af1840", "score": "0.7094327", "text": "public java.lang.String getProject() {\n return project;\n }", "title": "" }, { "docid": "c3962cb26a0cbff1c42c1127a9af1840", "score": "0.7094327", "text": "public java.lang.String getProject() {\n return project;\n }", "title": "" }, { "docid": "c3962cb26a0cbff1c42c1127a9af1840", "score": "0.7094327", "text": "public java.lang.String getProject() {\n return project;\n }", "title": "" }, { "docid": "c3962cb26a0cbff1c42c1127a9af1840", "score": "0.7094327", "text": "public java.lang.String getProject() {\n return project;\n }", "title": "" }, { "docid": "c3962cb26a0cbff1c42c1127a9af1840", "score": "0.7094327", "text": "public java.lang.String getProject() {\n return project;\n }", "title": "" }, { "docid": "c3962cb26a0cbff1c42c1127a9af1840", "score": "0.7094327", "text": "public java.lang.String getProject() {\n return project;\n }", "title": "" }, { "docid": "c3962cb26a0cbff1c42c1127a9af1840", "score": "0.7094327", "text": "public java.lang.String getProject() {\n return project;\n }", "title": "" }, { "docid": "c3962cb26a0cbff1c42c1127a9af1840", "score": "0.7094327", "text": "public java.lang.String getProject() {\n return project;\n }", "title": "" }, { "docid": "22759aa7f66e43f213b5b3178c43187a", "score": "0.6978235", "text": "public com.rallydev.webservice.v1_37.domain.Project getProject() {\n return project;\n }", "title": "" }, { "docid": "926f3a2b55198fc6d72656b453dfb67d", "score": "0.6918865", "text": "public Long getProject() {\n return project;\n }", "title": "" }, { "docid": "e5b690d031eb69936fedb30636b64bde", "score": "0.6916996", "text": "protected MavenProjectHelper getProjectHelper()\r\n {\r\n return this.mProjectHelper;\r\n }", "title": "" }, { "docid": "7fe62af2f920739d1566db736da3d7fe", "score": "0.69110984", "text": "public org.eclipse.core.resources.IProject getProject() {\n \t\treturn project;\n \t}", "title": "" }, { "docid": "89ae9237d79c641941b616f9e0d6540d", "score": "0.6878301", "text": "protected String getProjectPath() {\n return projectPath;\n }", "title": "" }, { "docid": "1d73b7e3a46c106ee6912b2d5b425f07", "score": "0.6849515", "text": "public ProjectView getProjectView() {\n\t\treturn projView;\n\t}", "title": "" }, { "docid": "67ee9050d27926137ef6e004c5d94a05", "score": "0.68306804", "text": "@Override abstract public String getProject();", "title": "" }, { "docid": "5cff009caeea964c7d454e7c5a4c3e3a", "score": "0.68288046", "text": "public IProject getProjectHandle() {\n\t\treturn ResourcesPlugin.getWorkspace().getRoot().getProject(fNameGroup.getName());\n\t}", "title": "" }, { "docid": "ef42252fe8929f3a3dd38c748da7ee13", "score": "0.6827635", "text": "public StringProperty projectNameProperty()\r\n {\r\n return projectName;\r\n }", "title": "" }, { "docid": "2a311da39bf4e245c429f4e67bf49241", "score": "0.67222106", "text": "public AcideProjectMenu getProjectMenu() {\r\n\t\treturn _projectMenu;\r\n\t}", "title": "" }, { "docid": "7e9a38891ab85c03b95026d20cc8a0c7", "score": "0.67219234", "text": "String getProject();", "title": "" }, { "docid": "22dcdb420ee1a01e3a1db55ebf12d4d0", "score": "0.67135334", "text": "public Manager getProjManager()\n {\n return projManager; \n }", "title": "" }, { "docid": "d20cd39716a6b15e853b802dee135e99", "score": "0.6694892", "text": "public ProjectControl getProjectControl() {\n return projectResource.getControl();\n }", "title": "" }, { "docid": "65ac667dda96d484763092a2ac7453ac", "score": "0.66880864", "text": "public Project getCreatedProject()\n\t{\n\t\treturn createdProject;\n\t}", "title": "" }, { "docid": "3a26c10f0c6587b03e59b12cc6c2c24e", "score": "0.66816837", "text": "java.lang.String getProject();", "title": "" }, { "docid": "3a26c10f0c6587b03e59b12cc6c2c24e", "score": "0.66816837", "text": "java.lang.String getProject();", "title": "" }, { "docid": "3a26c10f0c6587b03e59b12cc6c2c24e", "score": "0.66816837", "text": "java.lang.String getProject();", "title": "" }, { "docid": "be9a0bd002fe52b66a773e581f8f8dd7", "score": "0.662312", "text": "public ProjectFile getProjectFile() {\n return projectFile;\n }", "title": "" }, { "docid": "5b072d19460d8b18dc3885701446728b", "score": "0.6618406", "text": "public String getProjectName(){\n return projectName;\n }", "title": "" }, { "docid": "b4196456f0a89e4cd5ae8e2a4e92cc7e", "score": "0.65587157", "text": "public IJavaProject getJavaProject() {\n return project;\n }", "title": "" }, { "docid": "547d64b3af081b394713bd47e7a451ef", "score": "0.65556246", "text": "public String getPvcsproject() {\n return pvcsProject;\n }", "title": "" }, { "docid": "0b21122f5e763ae26236b6306f704bc7", "score": "0.65278864", "text": "public String getProjectName() {\r\n return projectName;\r\n }", "title": "" }, { "docid": "52ba44837ffa283f5b2b8578c244e2f3", "score": "0.6505907", "text": "public Project getProject() {\n URI url = Urls.apiProject();\n RequestHelper requestHelper = getRequestHelper();\n ProjectData projectData = requestHelper.executeQuery(new HttpGet(url), true, ProjectData.class);\n return new Project(this, projectData);\n }", "title": "" }, { "docid": "d752c8cf00ad18676f316a3c9da892fc", "score": "0.64986074", "text": "public String getProjectName() {\n return projectName;\n }", "title": "" }, { "docid": "d752c8cf00ad18676f316a3c9da892fc", "score": "0.64986074", "text": "public String getProjectName() {\n return projectName;\n }", "title": "" }, { "docid": "0d422f0b961fa12028585af65c254e4f", "score": "0.6495371", "text": "@Override\n public String getProject() {\n return null;\n }", "title": "" }, { "docid": "15e78bca673aaf0a63ba8abe4c571857", "score": "0.64875996", "text": "public static MicroProjectManager getProjectManager() {\n\t\treturn projectManager;\n\t}", "title": "" }, { "docid": "a2518419cb9e016754ba8262e755c07a", "score": "0.64649385", "text": "public FileObject getProjectfolder() {\n return projectfolder;\n }", "title": "" }, { "docid": "ee0247932a596a69e6dd568900ea6ec3", "score": "0.6422959", "text": "public String getProjLocation()\n {\n return projLocation; \n }", "title": "" }, { "docid": "dc06c2fe676823747e71468c80e46b64", "score": "0.64075893", "text": "public List<String> getProject() {\n return projectService.getProject();\n }", "title": "" }, { "docid": "a2d2a3712e95f66e03bdbeeb811315c2", "score": "0.6396632", "text": "@java.lang.Override\n public java.lang.String getProject() {\n java.lang.Object ref = project_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n project_ = s;\n return s;\n }\n }", "title": "" }, { "docid": "671e3e4f9fdb7bf25c0d435f42373a9b", "score": "0.635525", "text": "public String getProjectName() {\n\t\tText field = (Text) propertyFields.get(IGenModel.PROJECT_NAME);\n\t\tif (field==null) return \"\";\n\t\telse return field.getText().trim();\n\t}", "title": "" }, { "docid": "b271b320e08dccd35d048a2483272ab4", "score": "0.6344574", "text": "public String getProjectId() {\n return this.mProps.getProperty(APP_PROJECT_KEY);\n }", "title": "" }, { "docid": "796d04ee8de3fe2035f7ae1fea9e4f7c", "score": "0.6340927", "text": "@java.lang.Override\n public java.lang.String getProject() {\n java.lang.Object ref = project_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n project_ = s;\n return s;\n }\n }", "title": "" }, { "docid": "796d04ee8de3fe2035f7ae1fea9e4f7c", "score": "0.6340927", "text": "@java.lang.Override\n public java.lang.String getProject() {\n java.lang.Object ref = project_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n project_ = s;\n return s;\n }\n }", "title": "" }, { "docid": "872377203bfcc6acca6cec9de0c1f754", "score": "0.631683", "text": "public String getProject() throws JSONException {\n return project.getProjectName();\n }", "title": "" }, { "docid": "7ef2a3657f37e60087bf6d766e3329fd", "score": "0.63128555", "text": "@Override\n\tpublic WxProject getModel() {\n\t\treturn this.webProject;\n\t}", "title": "" }, { "docid": "40150afc7481b3a1697c42d023dba0b2", "score": "0.6294679", "text": "public java.lang.String getProject() {\n java.lang.Object ref = project_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n project_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "title": "" }, { "docid": "40150afc7481b3a1697c42d023dba0b2", "score": "0.6294679", "text": "public java.lang.String getProject() {\n java.lang.Object ref = project_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n project_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "title": "" }, { "docid": "7b72009ed137873e9aa7c7400157e32e", "score": "0.6286725", "text": "public java.lang.String getProject() {\n java.lang.Object ref = project_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n project_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "title": "" }, { "docid": "83e8bfa4fd5c7d9f7bb33ad5416c7766", "score": "0.6266018", "text": "public String getProjectKey() {\n return this.projectKey;\n }", "title": "" }, { "docid": "f58d456ce13446d464807d1e904393ed", "score": "0.62517637", "text": "public String getProjTitle()\n {\n return projTitle;\n }", "title": "" }, { "docid": "9c83d03d35d8510f3b15e988fe630412", "score": "0.6245595", "text": "public Project() {\r\n\t\tthis( DataManager.getDefaultProjectProperties() );\r\n\t\t\r\n\t}", "title": "" }, { "docid": "9934d2255acedf0e2440a8bbc8349904", "score": "0.62171036", "text": "public IContainer getEMFRoot() {\n \t\treturn getProject();\n \t}", "title": "" }, { "docid": "b44896fbcb6825d693adfe3e9e23fc27", "score": "0.6204082", "text": "public Project getSelectedProject() {\n \t\treturn selected;\n \t}", "title": "" }, { "docid": "b6368b3e17f74104ddbfd3fd17d8826e", "score": "0.61990494", "text": "public File getProjectHome() {\r\n\t\treturn projectHome;\r\n\t}", "title": "" }, { "docid": "ab4324957d5526aea9397788c537c2b5", "score": "0.61970836", "text": "private View getProject() {\r\n\t\tIWorkbenchPage activePage = PlatformUI.getWorkbench()\r\n\t\t\t\t.getActiveWorkbenchWindow().getActivePage();\r\n\t\tif (activePage != null) {\r\n\t\t\tIEditorPart activeEditor = activePage.getActiveEditor();\r\n\t\t\tif (activeEditor != null) {\r\n\t\t\t\tObject adapter = activePage.getActiveEditor().getAdapter(\r\n\t\t\t\t\t\tView.class);\r\n\t\t\t\tif (adapter != null && adapter instanceof View) {\r\n\t\t\t\t\treturn (View) adapter;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "07b412e004cd42684015c42928932560", "score": "0.6194852", "text": "public IPath getProjectPath() {\n \t\treturn getProject().getFullPath();\n \t}", "title": "" }, { "docid": "859f656bf63db4eb27c7a98d703f5c9b", "score": "0.61935407", "text": "public String getProjectCd() {\r\n return this.projectCd;\r\n }", "title": "" }, { "docid": "adfbe50227d79ae694eca717ea2720de", "score": "0.61817497", "text": "@Nonnull\r\n public String getProjectName() {\r\n return projectName;\r\n }", "title": "" }, { "docid": "2e2c1cfa38ac712410689be7d3940fdc", "score": "0.6132362", "text": "public IJavaProject getJavaProject() {\r\n\t\tif (null == javaProject && null != project)\r\n\t\t\ttry {\r\n\t\t\t\tjavaProject = (IJavaProject) project.getNature(JavaCore.NATURE_ID);\r\n\t\t\t} catch (CoreException e) {\r\n\t\t\t\tlogError(e);\r\n\t\t\t}\r\n\t\treturn javaProject;\r\n\t}", "title": "" }, { "docid": "3c277cb196c6b1b5cc606e172fb0263d", "score": "0.6112025", "text": "public static synchronized PropertyHelper getPropertyHelper(Project project) {\n PropertyHelper helper = null;\n if (project != null) {\n helper = project.getReference(MagicNames.REFID_PROPERTY_HELPER);\n }\n if (helper != null) {\n return helper;\n }\n\n helper = new PropertyHelper();\n helper.setProject(project);\n\n if (project != null) {\n project.addReference(MagicNames.REFID_PROPERTY_HELPER, helper);\n }\n\n return helper;\n }", "title": "" }, { "docid": "c97fd1afb8f0d849c5b10b1d855a0fb8", "score": "0.6105289", "text": "private Project getProject(TedamUser tedamUser) {\n Project project = tedamUser.getProjects().iterator().next();\n return project;\n }", "title": "" }, { "docid": "4923adc58764c3c4ff93ee895b43a427", "score": "0.60768855", "text": "public MavenModuleSet layoutProject() {\n\t\tfinal AbstractProject<?, ?> currentProject = build().getProject();\n\t\tfinal ProjectIdentity property = ProjectIdentity\n\t\t\t\t.identity(currentProject);\n\t\tfinal MavenModuleSet layoutProject = property.layoutProject();\n\t\treturn layoutProject;\n\t}", "title": "" }, { "docid": "6cf6251075de7051a4631832060b7bac", "score": "0.6072311", "text": "public String getProjectDescription() {\r\n return projectDescription;\r\n }", "title": "" }, { "docid": "89a579067fc59f1df582d6858843684e", "score": "0.606838", "text": "public Project getEvaluatedProject() {\n return project;\n }", "title": "" }, { "docid": "7691b1675f9a008370e49d12a9dfe37b", "score": "0.6049077", "text": "public int getProjNumber()\n {\n return projNumber;\n }", "title": "" }, { "docid": "ef2603063e3cd29d0f7d551cb43f787b", "score": "0.60437495", "text": "@DomainAPI\n public PList<Project> getProjectList() {\n return this.projectList;\n }", "title": "" }, { "docid": "20b046b1e58c7b34c388f21f162a6fe7", "score": "0.6043313", "text": "public String getProjectCode() {\n return projectCode;\n }", "title": "" }, { "docid": "565f7080b491f8d7c496aa0892246440", "score": "0.60429245", "text": "public Project getProject() throws TorqueException\n {\n if (aProject == null && (this.projectid > 0))\n {\n aProject = ProjectPeer.retrieveByPK(SimpleKey.keyFor(this.projectid));\n \n /* The following can be used instead of the line above to\n guarantee the related object contains a reference\n to this object, but this level of coupling\n may be undesirable in many circumstances.\n As it can lead to a db query with many results that may\n never be used.\n Project obj = ProjectPeer.retrieveByPK(this.projectid);\n obj.addTasks(this);\n */\n }\n return aProject;\n }", "title": "" }, { "docid": "0fc8bd153de13748adf6bbe2b52f3a3b", "score": "0.60423034", "text": "public String getProjectGuid() {\r\n return projectGuid;\r\n }", "title": "" }, { "docid": "c9c77a06729281e9800278abe7dbce4d", "score": "0.6041074", "text": "public Project newProject() {\n return new Project();\n }", "title": "" }, { "docid": "9ce1523e94570c48a9378423f127ea5e", "score": "0.60117584", "text": "protected IProject getProject(IAdaptable element) {\n\t\tif (element instanceof IProject) {\n\t\t\treturn (IProject) element;\n\t\t} else {\n\t\t\treturn (IProject) (element.getAdapter(IProject.class));\n\t\t}\n\t}", "title": "" }, { "docid": "64ced54562cd1e3058db7626f7fc23d6", "score": "0.60068095", "text": "public String getProjectId() {\n return projectId;\n }", "title": "" }, { "docid": "64ced54562cd1e3058db7626f7fc23d6", "score": "0.60068095", "text": "public String getProjectId() {\n return projectId;\n }", "title": "" }, { "docid": "997779b780e791795f3e6fcacd0ed986", "score": "0.6000517", "text": "static String projectId() {\n return get(Key.GCP_PROJECT_ID);\n }", "title": "" }, { "docid": "1842762ee56fdd1a1c6d9b5919a1b097", "score": "0.5992603", "text": "public String getProjId() {\n return projId;\n }", "title": "" }, { "docid": "1842762ee56fdd1a1c6d9b5919a1b097", "score": "0.5992603", "text": "public String getProjId() {\n return projId;\n }", "title": "" }, { "docid": "8379daa8c96a755988123d6f26bcfa80", "score": "0.5985557", "text": "public ProjectCategory getProjectCategory() {\r\n return projectCategory;\r\n }", "title": "" }, { "docid": "7b498aa7353f4e2c44894b2618b71f28", "score": "0.5942996", "text": "@java.lang.Override\n public com.google.protobuf.ByteString\n getProjectBytes() {\n java.lang.Object ref = project_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n project_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "title": "" } ]
21135ff6453f016c88b4b4ab2f2eeef6
Gets the expiryDateTime value for this GetAccountDetailsResponseResponseHeaderAccountDetailsOfferInformationList.
[ { "docid": "2810aca89886148998d30ea8dccb14ad", "score": "0.6369281", "text": "public String getExpiryDateTime() {\n return expiryDateTime;\n }", "title": "" } ]
[ { "docid": "0247fb348c9cd30451d4e7c67724afb8", "score": "0.6328006", "text": "public String getExpiryDate() {\n return expiryDate;\n }", "title": "" }, { "docid": "7a8f2b0a51942d00b7353a61527e1b38", "score": "0.6264558", "text": "public Date getExpiryDate() {\n return expiryDate;\n }", "title": "" }, { "docid": "5b4c51660c4d1b18008af38cde73f21f", "score": "0.62002903", "text": "public java.lang.String getExpiryDate() {\n return expiryDate;\n }", "title": "" }, { "docid": "33f367253893dbaa3f782e57977cd20d", "score": "0.6035078", "text": "public java.util.Calendar getExpiryDate() {\n return expiryDate;\n }", "title": "" }, { "docid": "33f367253893dbaa3f782e57977cd20d", "score": "0.6035078", "text": "public java.util.Calendar getExpiryDate() {\n return expiryDate;\n }", "title": "" }, { "docid": "ad4c39e23a0f7d9c8fc4f49a2983b6ba", "score": "0.58988726", "text": "public int getExpiryTime() {\n\t\treturn expiryTime;\n\t}", "title": "" }, { "docid": "11cc88328ef605ae91051675cd08aefa", "score": "0.58883905", "text": "public java.util.Date getExpiryDate () {\n\t\treturn expiryDate;\n\t}", "title": "" }, { "docid": "e489eb0e6b82f7475248665b2872024b", "score": "0.5861778", "text": "public LocalDate getExpiryDate() {\n return expiryDate;\n }", "title": "" }, { "docid": "4efce95d96e19cad909f9a87fbd61692", "score": "0.56696314", "text": "public ExpiryDateType getExpiryDate() {\r\n\t\treturn (expiryDate == null) ? new ExpiryDateType() : expiryDate;\r\n\t}", "title": "" }, { "docid": "ec9c8523a4347c40bbc96b38a3302b39", "score": "0.56117684", "text": "public double getTimeToExpiry() {\n return timeToExpiry;\n }", "title": "" }, { "docid": "b262f116f18ba443b3550c2d722b40b1", "score": "0.556774", "text": "public String getLicenseExpiryDate() {\n return licenseExpiryDate;\n }", "title": "" }, { "docid": "8a98242ed3a94a52ba840418da5ad0a9", "score": "0.5502126", "text": "public Integer expiryTime() {\n return null;\n }", "title": "" }, { "docid": "843b09b4f1e7a7c0c85f5cbe1a476ad6", "score": "0.5444685", "text": "@Override\n public String getExpirationDate() {\n return this.expDate;\n }", "title": "" }, { "docid": "dea767a2da563907bdb546dd577b10dc", "score": "0.5372329", "text": "public Date getExpirationDate() {\n\n return expirationDate;\n }", "title": "" }, { "docid": "bcb367103a19215f5228c90a4cf1fe02", "score": "0.5360312", "text": "public Date getExpirationDate() {\r\n return this.expirationDate;\r\n }", "title": "" }, { "docid": "8a135c84edc15b478cf890191ed8e7c4", "score": "0.53482884", "text": "public String getExpireDate() {\n return expireDate;\n }", "title": "" }, { "docid": "1a236d88ca2ec6949390fd1bb9ac661b", "score": "0.53197235", "text": "public void setExpiryDate(Date expiryDate) {\n this.expiryDate = expiryDate;\n }", "title": "" }, { "docid": "781c8d41cc166d2480943a753ce3e06c", "score": "0.53191996", "text": "public String getExpiresHeader() {\n return commonHeaders.get(HttpHeaders.EXPIRES);\n }", "title": "" }, { "docid": "7c42a0ace26c63c453a5b14471513fa4", "score": "0.5301717", "text": "public Date getExpires() {\n return this.expires;\n }", "title": "" }, { "docid": "eb613accc930962fa6f05f755abb3c09", "score": "0.53014827", "text": "public DateTime expirationDate() {\n return this.expirationDate;\n }", "title": "" }, { "docid": "d5a20561be42b65d7f9b8889f5c23e4a", "score": "0.5299714", "text": "public void setExpiryDate(String expiryDate) {\n this.expiryDate = expiryDate;\n }", "title": "" }, { "docid": "abea0792d4c422525b317a2ee7de0886", "score": "0.5294713", "text": "public Date getExpireDate() {\r\n return expireDate;\r\n }", "title": "" }, { "docid": "e24f6b8763226cb51b4f42f435a3d736", "score": "0.528398", "text": "public Date getExpireDate() {\n return expireDate;\n }", "title": "" }, { "docid": "ab27a2b833771f77eded840e62d4ef81", "score": "0.5270062", "text": "String getOnExpiryDescription();", "title": "" }, { "docid": "0047e58ffcc03e784fef3358d325d15a", "score": "0.5246104", "text": "public static String getExpiryDate() {\n\t\tSimpleDateFormat sd = new SimpleDateFormat(Constants.DATE_TIME_FORMAT);\n\t\tDate date = new Date();\n\t\tDate expiryDate = new Date(date.getTime() + MILLIS_IN_A_DAY * 60);\n\t\tsd.setTimeZone(TimeZone.getTimeZone(\"IST\"));\n\t\treturn sd.format(expiryDate);\n\t}", "title": "" }, { "docid": "864b6f99b6fb70184e2c1ad4b73fd9aa", "score": "0.52446264", "text": "public java.lang.String getExpireDate() {\r\n return expireDate;\r\n }", "title": "" }, { "docid": "b8ea255bf6e37b6210c683ea1746e287", "score": "0.5229339", "text": "public Date getExpiredate() {\n return expiredate;\n }", "title": "" }, { "docid": "53d986dff18236b2de80159352d06476", "score": "0.5228798", "text": "public Date getExpireTime() {\n return expireTime;\n }", "title": "" }, { "docid": "4a56ea249fb8aa282ae3f39f73351973", "score": "0.5189626", "text": "public java.util.Date getExpirationDate() {\n return expirationDate;\n }", "title": "" }, { "docid": "7b79dcbbd115b35451873dd9f060a358", "score": "0.5184063", "text": "public long getExpireDatetimeMs() {\n return expireDatetimeMs_;\n }", "title": "" }, { "docid": "dbb7cbcbea353c4c83fd0d80bffe63f0", "score": "0.5178044", "text": "public Date getExpire_time() {\r\n return expire_time;\r\n }", "title": "" }, { "docid": "b5d100765306439ba82db1909ed2a2aa", "score": "0.5158577", "text": "public Date getExpirationDate()\n {\n if(expirationDate == null && getProductNameStruct() != null)\n {\n expirationDate = new DateImpl(getProductNameStruct().expirationDate);\n }\n return expirationDate;\n }", "title": "" }, { "docid": "e1931de0fd0337d8f9bf02e6ac60d7df", "score": "0.51447654", "text": "public long getExpireDatetimeMs() {\n return expireDatetimeMs_;\n }", "title": "" }, { "docid": "463b7943ddfcd57fa629a37c6c150ea0", "score": "0.51261395", "text": "@javax.annotation.Nullable\n @ApiModelProperty(value = \"Date this ApiKey expires.\")\n\n public OffsetDateTime getExpires() {\n return expires;\n }", "title": "" }, { "docid": "dc33eded022344c46bbf9fdcd7c8c9cb", "score": "0.5101148", "text": "public Date getExpiredTime() {\r\n return expiredTime;\r\n }", "title": "" }, { "docid": "c3a1817c225f9770393d6f2ac86ed8d8", "score": "0.5090603", "text": "public void setExpiryDate(java.util.Calendar expiryDate) {\n this.expiryDate = expiryDate;\n }", "title": "" }, { "docid": "c3a1817c225f9770393d6f2ac86ed8d8", "score": "0.5090603", "text": "public void setExpiryDate(java.util.Calendar expiryDate) {\n this.expiryDate = expiryDate;\n }", "title": "" }, { "docid": "1ba9a459588414fb165731c244328db9", "score": "0.508642", "text": "public Date getExpiredTime() {\n return expiredTime;\n }", "title": "" }, { "docid": "1ba9a459588414fb165731c244328db9", "score": "0.508642", "text": "public Date getExpiredTime() {\n return expiredTime;\n }", "title": "" }, { "docid": "f183369f407b022ff1cb7af5ea3e23ac", "score": "0.5082144", "text": "public void setExpiryDate (java.util.Date expiryDate) {\n\t\tthis.expiryDate = expiryDate;\n\t}", "title": "" }, { "docid": "f100aff5b591a89510255720a1698341", "score": "0.50489026", "text": "public Optional<LocalDate> getExpirationDate() {\n return Optional.ofNullable(expirationTime);\n }", "title": "" }, { "docid": "3d133862aa9885a7d32d70a2c4cdf12a", "score": "0.5039094", "text": "public String getLicenseExpireDate()\n {\n return licenseExpireDate;\n }", "title": "" }, { "docid": "39a11dffa7004264745f9b0891c49905", "score": "0.50366914", "text": "public java.util.Calendar getExpirationDate() {\n return expirationDate;\n }", "title": "" }, { "docid": "39a11dffa7004264745f9b0891c49905", "score": "0.50366914", "text": "public java.util.Calendar getExpirationDate() {\n return expirationDate;\n }", "title": "" }, { "docid": "6e4ee9292c83a6bf7d0632d8ce66cf8d", "score": "0.50340354", "text": "public void setExpiryDateTime(String expiryDateTime) {\n this.expiryDateTime = expiryDateTime;\n }", "title": "" }, { "docid": "3689a957f431f8f0c2e5d2ff55ca5a44", "score": "0.4980501", "text": "public void setExpiryDate(java.lang.String expiryDate) {\n this.expiryDate = expiryDate;\n }", "title": "" }, { "docid": "194e75280189286850b420396ea8064c", "score": "0.49788612", "text": "public java.util.Date getExpireDate() {\n\t\treturn _vcmsArticle.getExpireDate();\n\t}", "title": "" }, { "docid": "4ca582e4fdf9bc4c8fcb3bd317133cb5", "score": "0.49718022", "text": "public Date getExpireDate() {\n return expireDate == 0 ? null : new Date(expireDate);\n }", "title": "" }, { "docid": "c456602e531043a388487361fc2f0601", "score": "0.49666348", "text": "public Date getExpirationDate();", "title": "" }, { "docid": "28a914018db4f7fac02b3fe0ae164956", "score": "0.49545223", "text": "@java.lang.Override\n public long getExpirationTime() {\n return expirationTime_;\n }", "title": "" }, { "docid": "9671ccf63a7a5854cf9498eb398f29dc", "score": "0.49480933", "text": "public java.util.Calendar getExpirationDateTime() {\n return expirationDateTime;\n }", "title": "" }, { "docid": "d143f713b6a0706dbf1a2ece5800b0e7", "score": "0.49321976", "text": "public Date getEXPIRY_DATE()\r\n {\r\n\treturn EXPIRY_DATE;\r\n }", "title": "" }, { "docid": "74d916a837903554fbfb609d16ed7513", "score": "0.49235743", "text": "public long getTimeExpires() {\n return timeExpires;\n }", "title": "" }, { "docid": "2b70fe7393b6273bf6590041b1036da5", "score": "0.49139288", "text": "public long getExpireTime() {\n\t\treturn expireTime;\n\t}", "title": "" }, { "docid": "d7823975ad607785f0440d08699b45b7", "score": "0.49138516", "text": "public Date getTokenExpireTime() {\n return tokenExpireTime;\n }", "title": "" }, { "docid": "7fd04e0c4d427d945b7468e4637733f7", "score": "0.4893829", "text": "@Nullable public Function<MessageContext,Instant> getExpiresLookup() {\n return expiresLookup;\n }", "title": "" }, { "docid": "81f8ecd449592cb1fd48683f43132f9a", "score": "0.48765057", "text": "public Integer getTokenExpirationAfterHours() {\n return tokenExpirationAfterHours;\n }", "title": "" }, { "docid": "16dd9e21824d449dbb746dd38c3dfa13", "score": "0.48750356", "text": "public java.lang.String getExpireTime() {\r\n return expireTime;\r\n }", "title": "" }, { "docid": "16dd9e21824d449dbb746dd38c3dfa13", "score": "0.48750356", "text": "public java.lang.String getExpireTime() {\r\n return expireTime;\r\n }", "title": "" }, { "docid": "f303ffce6c8c09b0af4035b66402a3a3", "score": "0.48589274", "text": "@java.lang.Override\n public long getExpirationTime() {\n return expirationTime_;\n }", "title": "" }, { "docid": "66428bd25f56dffe3b55ada0e3eb0a4c", "score": "0.48562333", "text": "public Instant getExpires() {\n\t\treturn expires;\n\t}", "title": "" }, { "docid": "8d50dae006575e18e63136287d5d151b", "score": "0.48512763", "text": "Date getExpiresAt();", "title": "" }, { "docid": "c0859c62ebef4f9e611d19cdb6c5771a", "score": "0.48284245", "text": "@Nullable public Duration getExpiresOffsetFromCreated() {\n return expiresOffsetFromCreated;\n }", "title": "" }, { "docid": "cd7cf836e2d88dbe56982155fc49b223", "score": "0.48229834", "text": "Date getExpirationDate();", "title": "" }, { "docid": "cd7cf836e2d88dbe56982155fc49b223", "score": "0.48229834", "text": "Date getExpirationDate();", "title": "" }, { "docid": "c85f2f35737a7df1fd0cd42bf3ae714a", "score": "0.4821467", "text": "@Override\n public YearMonth getExpiry() {\n return expiry;\n }", "title": "" }, { "docid": "d9b6237e0506a8f46e74c45541989fef", "score": "0.47798327", "text": "public long getExpiringTime() {\n return expiringTime;\n }", "title": "" }, { "docid": "1c2e9b6e2a053f1319c5f1438c768f05", "score": "0.47771165", "text": "public Date getID_EXPIRY_DATE() {\r\n return ID_EXPIRY_DATE;\r\n }", "title": "" }, { "docid": "0ada09b545750ee5b618355ace3b0839", "score": "0.4760039", "text": "public Instant date() {\n return Instant.parse(headers().sole(\"WARC-Date\").get());\n }", "title": "" }, { "docid": "dc06a539c7aed948e60116d10ed79218", "score": "0.4745592", "text": "public long getExpires_in() {\r\n\t\treturn expires_in;\r\n\t}", "title": "" }, { "docid": "7cc93affcec6bef6d963351f70e52979", "score": "0.4697475", "text": "public long getExpiration()\r\n {\r\n return _expiration; \r\n }", "title": "" }, { "docid": "587312faa11a5da6982554b8edac2e2e", "score": "0.4673172", "text": "public Integer getExpires() {\n\t\treturn expires;\n\t}", "title": "" }, { "docid": "fb87698a19755a02706a481fc2df5bcd", "score": "0.4668787", "text": "public String getExpiryYear() {\n return expiryYear;\n }", "title": "" }, { "docid": "5f8dc54e9decfa94392e87eba773a843", "score": "0.46505275", "text": "long getExpireDatetimeMs();", "title": "" }, { "docid": "cef131a3634baf172c1f7f0a03a22ca4", "score": "0.46391925", "text": "public long getExpiration() {\n return expiration;\n }", "title": "" }, { "docid": "e0d3ea3bdb693f1ad273725f7e518023", "score": "0.46328592", "text": "public int getExpiredHireTime() {\n\t\treturn _expired_hire_time;\n\t}", "title": "" }, { "docid": "668733153891c9e00fce598450216034", "score": "0.46091402", "text": "@ApiModelProperty(value = \"Date after which no further authorisations shall be performed. Only for 3D Secure 2.\")\n @JsonProperty(JSON_PROPERTY_RECURRING_EXPIRY)\n @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)\n\n public OffsetDateTime getRecurringExpiry() {\n return recurringExpiry;\n }", "title": "" }, { "docid": "8a03e6e31c85314c532dc511a7810609", "score": "0.45942137", "text": "long getExpirationTime();", "title": "" }, { "docid": "3029fade67966a88d42c53da6891c35a", "score": "0.4574934", "text": "public Date getExpDate() {\n return expDate;\n }", "title": "" }, { "docid": "db7b008fe9e26da6c571e20c8e84d89d", "score": "0.45686722", "text": "public String getExpDate() {\n\t\treturn expDate;\n\t}", "title": "" }, { "docid": "361ea6dbe543601cd90c7b674f8f5796", "score": "0.45618635", "text": "@Override\n public void setExpirationDate(String expDate) {\n this.expDate = expDate;\n }", "title": "" }, { "docid": "91dca609b6f1fbb2b10a249913308b74", "score": "0.45318773", "text": "public java.util.Date getStickyExpireDate() {\n\t\treturn _vcmsArticle.getStickyExpireDate();\n\t}", "title": "" }, { "docid": "9f835c27a6897a4313877bd655bd4b1b", "score": "0.45280245", "text": "public com.amazon.ws.OfferAttributes getOfferAttributes() {\r\n return offerAttributes;\r\n }", "title": "" }, { "docid": "b73fbfcf37118d10953459fcd6e91af9", "score": "0.45182797", "text": "public java.util.Date getExpirationDate(){\r\n return localExpirationDate;\r\n }", "title": "" }, { "docid": "45c2dd63e93cea8e6b79be08dabcb53f", "score": "0.45096663", "text": "@Nullable protected Instant getExpiresValue(@Nonnull final MessageContext messageContext, \n @Nullable final Instant created) {\n Instant value = null;\n final WSSecurityContext security = messageContext.getSubcontext(WSSecurityContext.class, false);\n if (security != null) {\n value = security.getTimestampExpires();\n }\n \n if (value == null && getExpiresLookup() != null) {\n value = getExpiresLookup().apply(messageContext);\n }\n \n if (value == null) {\n if (getExpiresOffsetFromCreated() != null && created != null) {\n return created.plus(getExpiresOffsetFromCreated());\n }\n }\n return value;\n }", "title": "" }, { "docid": "5a90bbd574b756a0c3967ba041cc8e38", "score": "0.45058745", "text": "public String getExpiryMonth() {\n return expiryMonth;\n }", "title": "" }, { "docid": "e71866e9f54b4176fc507dccfe4b910a", "score": "0.4496274", "text": "@Basic\n\t@Column(name = \"expirationdate\", nullable = false)\n\tDate getExpirationdate();", "title": "" }, { "docid": "41b96f62b5858b6f319e8cdc7e6fe7a9", "score": "0.4484674", "text": "public Date getDateExpired(){\n return dateExpired;\n }", "title": "" }, { "docid": "47e5fc157cc6249ab627dd7673e2ec3a", "score": "0.44751987", "text": "@ApiModelProperty(value = \"Date after which no further authorisations shall be performed. Only for 3D Secure 2.\")\n @JsonProperty(JSON_PROPERTY_RECURRING_EXPIRY)\n @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)\n\n public String getRecurringExpiry() {\n return recurringExpiry;\n }", "title": "" }, { "docid": "701c30d48fde70d447f98f02b91f09b1", "score": "0.443547", "text": "public String getAgeHeader() {\n return commonHeaders.get(HttpHeaders.AGE);\n }", "title": "" }, { "docid": "a4f48a54b510d1c6eaf09530cdbe6e91", "score": "0.44337198", "text": "public String getExpirationDateToString() {\n DateFormat dateFormat = new SimpleDateFormat(\"yyyy-mm-dd\");\n\n\n return dateFormat.format(expirationDate);\n // return expirationDate.toString();\n\n\n }", "title": "" }, { "docid": "64e757107884870de26353c615e87a09", "score": "0.4415543", "text": "public Date getExpdateEnd() {\r\n return expdateEnd;\r\n }", "title": "" }, { "docid": "91810200a257dd757f6648fa76c181e0", "score": "0.4415404", "text": "public java.util.Calendar getClaimReceivedTime() {\r\n return claimReceivedTime;\r\n }", "title": "" }, { "docid": "abc1e023223620c33a6529a4f1d11edf", "score": "0.44126612", "text": "public long getExpiration() {\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "e25085c825ec1397fa99423b0976015d", "score": "0.44109893", "text": "public com.google.protobuf.DurationOrBuilder getExpirationDurationOrBuilder() {\n return getExpirationDuration();\n }", "title": "" }, { "docid": "b86761ebc0399d2c928e3eb428b47511", "score": "0.4401087", "text": "public void setExpirationDate(Date expirationDate);", "title": "" }, { "docid": "db6ac5f2e89a5d75f3541c6562b2cab3", "score": "0.43963355", "text": "public String getScheduleExpiryDt() {\r\n\t\treturn scheduleExpiryDt;\r\n\t}", "title": "" }, { "docid": "517001dfec981391be4dc850a4ef2d01", "score": "0.43960157", "text": "@Override\n\t\t\tpublic DateTime expiration() {\n\t\t\t\treturn null;\n\t\t\t}", "title": "" }, { "docid": "32b94394aa4d6c53e26d3a07994253e1", "score": "0.43889162", "text": "public GetAccountDetailsResponseResponseHeaderAccountDetailsOfferInformationListAttributeInformationList[] getAttributeInformationList() {\n return attributeInformationList;\n }", "title": "" }, { "docid": "85db0c87571d27d4c1daddbd78692397", "score": "0.43875554", "text": "@Override\n\tpublic Date getExpriedDate() {\n\t\treturn _advItem.getExpriedDate();\n\t}", "title": "" } ]
1033516bdad1dc4d36651d385a59dde1
Check the taglet to see if it is a legacy taglet. Also check its name for errors.
[ { "docid": "781a321b2f5c7d6568a7f0137271d6bd", "score": "0.75950545", "text": "private void checkTaglet(Object taglet) {\n if (taglet instanceof Taglet) {\n checkTagName(((Taglet) taglet).getName());\n } else if (taglet instanceof jdk.javadoc.doclet.Taglet) {\n jdk.javadoc.doclet.Taglet legacyTaglet = (jdk.javadoc.doclet.Taglet) taglet;\n customTags.remove(legacyTaglet.getName());\n customTags.put(legacyTaglet.getName(), new UserTaglet(legacyTaglet));\n checkTagName(legacyTaglet.getName());\n } else {\n throw new IllegalArgumentException(\"Given object is not a taglet.\");\n }\n }", "title": "" } ]
[ { "docid": "a651dabd48ad1ff437594c1e6433fd0f", "score": "0.58235896", "text": "private void checkTagName(String name) {\n if (standardTags.contains(name)) {\n overridenStandardTags.add(name);\n } else {\n if (name.indexOf('.') == -1) {\n potentiallyConflictingTags.add(name);\n }\n unseenCustomTags.add(name);\n }\n }", "title": "" }, { "docid": "a30c2c26616340a7efb91316a2699a3a", "score": "0.56356156", "text": "private void printTagMisuseWarn(CommentHelper ch, Taglet taglet, DocTree tag, String holderType) {\n Set<String> locationsSet = new LinkedHashSet<>();\n if (taglet.inOverview()) {\n locationsSet.add(\"overview\");\n }\n if (taglet.inModule()) {\n locationsSet.add(\"module\");\n }\n if (taglet.inPackage()) {\n locationsSet.add(\"package\");\n }\n if (taglet.inType()) {\n locationsSet.add(\"class/interface\");\n }\n if (taglet.inConstructor()) {\n locationsSet.add(\"constructor\");\n }\n if (taglet.inField()) {\n locationsSet.add(\"field\");\n }\n if (taglet.inMethod()) {\n locationsSet.add(\"method\");\n }\n if (taglet.isInlineTag()) {\n locationsSet.add(\"inline text\");\n }\n String[] locations = locationsSet.toArray(new String[]{});\n if (locations == null || locations.length == 0) {\n //This known tag is excluded.\n return;\n }\n StringBuilder combined_locations = new StringBuilder();\n for (int i = 0; i < locations.length; i++) {\n if (i > 0) {\n combined_locations.append(\", \");\n }\n combined_locations.append(locations[i]);\n }\n messages.warning(ch.getDocTreePath(tag), \"doclet.tag_misuse\",\n \"@\" + taglet.getName(), holderType, combined_locations.toString());\n }", "title": "" }, { "docid": "14da5bbd0db36d6b78567c6c898dc26a", "score": "0.52709925", "text": "boolean hasDeprecatedType();", "title": "" }, { "docid": "2d2c154b36764c12ded3bc48ff3794fe", "score": "0.51942873", "text": "boolean hasTraceTag();", "title": "" }, { "docid": "5862f213f848ef21f1a0becc7613d8c4", "score": "0.5160419", "text": "protected boolean parseTag(Tag tag, ParserContext ctx) throws HttpErrorPage {\n // Default implementation does nothing\n return true;\n }", "title": "" }, { "docid": "c7c6e019c9db3a1729eacf670b1866b0", "score": "0.51032794", "text": "boolean hasDevtypename();", "title": "" }, { "docid": "22b3413047a377a6b59d1ca81b501ae1", "score": "0.51032627", "text": "boolean hasDevname();", "title": "" }, { "docid": "0a2ef1ce2d3878db3dd544ac132d8bc7", "score": "0.5091456", "text": "void checkTag(boolean get);", "title": "" }, { "docid": "a4b8f71fe151f9ec050d5b738c3fb093", "score": "0.5013952", "text": "private void checkIfDeveloperFragment() {\n\t\tFragment fragment = getSupportFragmentManager().findFragmentByTag(\"developerFragment\");\n\t\tif (fragment != null) {\n\t\t\treplaceContentWithEntryListFragment();\n\t\t}\n\t}", "title": "" }, { "docid": "a9728f563361956badd53d8e94e6f964", "score": "0.49598774", "text": "boolean hasTag();", "title": "" }, { "docid": "a9728f563361956badd53d8e94e6f964", "score": "0.49598774", "text": "boolean hasTag();", "title": "" }, { "docid": "a9728f563361956badd53d8e94e6f964", "score": "0.49598774", "text": "boolean hasTag();", "title": "" }, { "docid": "a9728f563361956badd53d8e94e6f964", "score": "0.49598774", "text": "boolean hasTag();", "title": "" }, { "docid": "a9728f563361956badd53d8e94e6f964", "score": "0.49598774", "text": "boolean hasTag();", "title": "" }, { "docid": "79963ab15b41ebc228b82014ecd83d6a", "score": "0.49381867", "text": "@Override\n public boolean matchTag(String tagName) {\n return false;\n }", "title": "" }, { "docid": "890cea470cdd5870ad932681a8221fec", "score": "0.49375024", "text": "boolean hasTagTemplateField();", "title": "" }, { "docid": "1683ea51df2673e936666f147e1d598e", "score": "0.48733243", "text": "public static boolean isLegalXMLTag(String tag) {\n if (tag == null || tag.isEmpty() || !Character.isLetter(tag.charAt(0))) {\n return false;\n }\n final int len = tag.length();\n for (int i = 1; i < len; i++) {\n final char crt = tag.charAt(i);\n if (!Character.isLetterOrDigit(crt) && crt != '-' && crt != '_') {\n return false;\n }\n }\n return true;\n }", "title": "" }, { "docid": "442b02fb6189852228877aff7f311992", "score": "0.4871701", "text": "public boolean checkContextName(String contextName);", "title": "" }, { "docid": "b0b50a13cbfc4d5201919ec3838a79f1", "score": "0.48158985", "text": "boolean hasTagName();", "title": "" }, { "docid": "fdacd937f1a5f69c6355ed9675d6f209", "score": "0.4812705", "text": "boolean isTargetPortlet(HttpServletRequest request);", "title": "" }, { "docid": "adf8b61989212e76b253faf194aace0d", "score": "0.47904193", "text": "@Deprecated\n\tpublic boolean isTarget(LivingEntity livingEntity, String text) {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "bafc375c70661adcd98f383e7637093d", "score": "0.47518122", "text": "boolean hasDeprecatedIsExternal();", "title": "" }, { "docid": "a32c9808f627a75fce3ae973f7ba12dc", "score": "0.4734116", "text": "@Override\r\n\tpublic boolean checkTags() throws DataAccessException,\r\n\t\t\tMarcCorrelationException, ValidationException {\n\t\treturn false;\r\n\t}", "title": "" }, { "docid": "69493e5cb8f32dab60ddbf29b3b42a11", "score": "0.47327128", "text": "private void checkTag(DetailAST ast, List<JavadocTag> tags, String tagName,\n Pattern formatPattern) {\n if (formatPattern != null) {\n boolean hasTag = false;\n final String tagPrefix = \"@\";\n\n for (final JavadocTag tag :tags) {\n if (tag.getTagName().equals(tagName)) {\n hasTag = true;\n if (!formatPattern.matcher(tag.getFirstArg()).find()) {\n log(ast, MSG_TAG_FORMAT, tagPrefix + tagName, formatPattern.pattern());\n }\n }\n }\n if (!hasTag) {\n log(ast, MSG_MISSING_TAG, tagPrefix + tagName);\n }\n }\n }", "title": "" }, { "docid": "28c9b327e238efc4977a5c6fa2baf002", "score": "0.472602", "text": "private static boolean hasTag(final Object nmsItemStack) {\n try {\n return (boolean) hasTagMethod.invoke(nmsItemStack);\n } catch (IllegalAccessException | InvocationTargetException e) {\n return false;\n }\n }", "title": "" }, { "docid": "4a1d375a0d2b01619294a4ca00b81c66", "score": "0.4721966", "text": "private void checkUnusedParamTags(\n List<JavadocTag> tags,\n List<String> typeParamNames,\n List<String> recordComponentNames) {\n\n for (final JavadocTag tag: tags) {\n if (tag.isParamTag()) {\n final String paramName = extractParamNameFromTag(tag);\n final boolean found = typeParamNames.contains(paramName)\n || recordComponentNames.contains(paramName);\n\n if (!found) {\n final String actualParamName =\n TYPE_NAME_IN_JAVADOC_TAG_SPLITTER.split(tag.getFirstArg())[0];\n log(tag.getLineNo(), tag.getColumnNo(),\n MSG_UNUSED_TAG,\n JavadocTagInfo.PARAM.getText(), actualParamName);\n }\n }\n }\n\n }", "title": "" }, { "docid": "9d8be0e4ca9f668ba660b866b6fb847d", "score": "0.47085038", "text": "private boolean isSensorTag(String name) {\n\n boolean is_sensor_tag = false;\n if ((name.equals(\"SensorTag2\")) ||(name.equals(\"CC2650 SensorTag\"))) {\n is_sensor_tag = true;\n }\n return is_sensor_tag;\n }", "title": "" }, { "docid": "df5487de2e735fbd94491830a89751ff", "score": "0.47005945", "text": "private static boolean isElementIgnorable(Name tagName) {\n String lcName = tagName.getCanonicalForm();\n return \"noscript\".equals(lcName) || \"noembed\".equals(lcName)\n || \"noframes\".equals(lcName) || \"title\".equals(lcName);\n }", "title": "" }, { "docid": "dcfa869f84edb5e0cf2c5be55b7f6470", "score": "0.4699641", "text": "private static boolean isParserOutdated(XmlPullParser xmlPullParser) {\n int n10 = 1;\n if (xmlPullParser == null) return n10 != 0;\n try {\n int n11 = xmlPullParser.getEventType();\n int n12 = 3;\n if (n11 == n12) return n10 != 0;\n }\n catch (XmlPullParserException xmlPullParserException) {\n return n10 != 0;\n }\n int n13 = xmlPullParser.getEventType();\n if (n13 != n10) return 0 != 0;\n return n10 != 0;\n }", "title": "" }, { "docid": "f7bc6d9e6f5d52b8280e88849ef950ca", "score": "0.46923488", "text": "@Override\r\n\t\t\tpublic boolean hasComponentsTaggedBy(String tagId) {\n\t\t\t\treturn false;\r\n\t\t\t}", "title": "" }, { "docid": "9870f4c6d6a4a04082769466c4b0fc21", "score": "0.46720403", "text": "boolean getDeprecated();", "title": "" }, { "docid": "44ee68d58b0ce13de0d45d8c046cef8a", "score": "0.46595353", "text": "private\tstatic\t\tDocletListener\tcheckListener(ClassDoc doc) {\n\t\tString\tdocClassName = doc.toString();\n\t\treturn\t(DocletListener)listeners.get(docClassName);\n\t}", "title": "" }, { "docid": "99a4b12c36de9d928f3a0bc2418fc89f", "score": "0.46494582", "text": "private void checkOldLayoutStorage(StorageDirectory sd) throws IOException {\n if (isPreUpgradableLayout(sd)) {\n checkVersionUpgradable(0);\n }\n }", "title": "" }, { "docid": "6899c0a73add08caac0841991201972a", "score": "0.46487808", "text": "@Deprecated\n public boolean isBook() {\n return info.isBook();\n }", "title": "" }, { "docid": "238328ec225f0bcf77968c36d7161d98", "score": "0.46395463", "text": "private void checkTagsValidation(LevelSpecificationReader currentLevel) throws IOException {\n if (currentLevel.levelName() == null) {\n throw new IOException(LEVEL_NAME + \" tag is missing\");\n }\n if (currentLevel.initialBallVelocities() == null) {\n throw new IOException(BALL_VELOCITIES + \" tag is missing\");\n }\n if (currentLevel.getBackground() == null) {\n throw new IOException(BACKGROUND + \" tag is missing\");\n }\n if (currentLevel.paddleSpeed() < 0) {\n throw new IOException(PADDLE_SPEED + \" tag is missing or value is not valid\");\n }\n if (currentLevel.paddleWidth() < 0) {\n throw new IOException(PADDLE_WIDTH + \" tag is missing or value is not valid\");\n }\n if (currentLevel.getBlockStartX() < 0) {\n throw new IOException(BLOCKS_START_X + \" tag is missing or value is not valid\");\n }\n if (currentLevel.getBlockStartY() < 0) {\n throw new IOException(BLOCKS_START_Y + \" tag is missing or value is not valid\");\n }\n if (currentLevel.getRowHeight() < 0) {\n throw new IOException(ROW_HEIGHT + \" tag is missing or value is not valid\");\n }\n if (currentLevel.numberOfBlocksToRemove() < 0) {\n throw new IOException(NUM_BLOCKS + \" tag is missing or value is not valid\");\n }\n }", "title": "" }, { "docid": "61a57f3bf91e55b87d1d135d4cf2fe7e", "score": "0.46352702", "text": "@Deprecated\n public boolean hasWellFormedXML();", "title": "" }, { "docid": "a9c052206324020a271fd92e4a137da7", "score": "0.46167043", "text": "public boolean accepts(String tagName) {\n return tagName.equals(\"login\");\n }", "title": "" }, { "docid": "72dfa1fe4aa7208304fb3ac77e8c6997", "score": "0.46163708", "text": "boolean hasStkName();", "title": "" }, { "docid": "92798afc35321679c6051ec286f60f23", "score": "0.4616239", "text": "private boolean deny(final Package pack) {\n // is package annotated with nojexl ?\n final NoJexl nojexl = pack.getAnnotation(NoJexl.class);\n if (nojexl != null) {\n return true;\n }\n return Objects.equals(NOJEXL_PACKAGE, packages.get(pack.getName()));\n }", "title": "" }, { "docid": "17b2ebdd8925985a57a2e1cf945a69cd", "score": "0.46121734", "text": "@Override\n public boolean isDeprecated() {\n return status.equals((AMEEStatus.DEPRECATED));\n }", "title": "" }, { "docid": "1110d3bb6fc70caf879df5c42b5e9fd4", "score": "0.45948908", "text": "@Override\r\n\tpublic boolean compatible(Tag t1, Tag t2) \r\n\t{\n\t\treturn false;\r\n\t}", "title": "" }, { "docid": "b3a5eda27047f773c818c345c87c9a64", "score": "0.458984", "text": "@Deprecated\n public void isValid() throws JepException {\n checkValid();\n }", "title": "" }, { "docid": "1853443faabde1af27fcff03f24fe659", "score": "0.45709077", "text": "protected boolean needsRemoval(Tag tag)\n \t{\n \t\t// TODO: better extensibility mechanism wanted\n \t\tif (this.cleanComments && tag.isComment() || this.cleanDoctypes\n \t\t\t\t&& tag.getShortTag().toLowerCase().equals(\"!doctype\")\n \t\t\t\t|| this.cleanMeta\n \t\t\t\t&& tag.getShortTag().toLowerCase().equals(\"meta\")\n \t\t\t\t|| this.cleanIFrame\n \t\t\t\t&& tag.getShortTag().toLowerCase().equals(\"iframe\")\n \t\t\t\t|| this.cleanScripts\n \t\t\t\t&& tag.getShortTag().toLowerCase().equals(\"script\")\n \t\t\t\t|| this.cleanNoScripts\n \t\t\t\t&& tag.getShortTag().toLowerCase().equals(\"noscript\")\n \t\t\t\t|| this.cleanLinks\n \t\t\t\t&& tag.getShortTag().toLowerCase().equals(\"link\")\n \t\t\t\t|| this.cleanStyles\n \t\t\t\t&& tag.getShortTag().toLowerCase().equals(\"style\")\n \t\t\t\t|| this.cleanFormElements && tag.getShortTag().equals(\"form\")\n \t\t\t\t|| this.cleanImages\n \t\t\t\t&& tag.getShortTag().toLowerCase().equals(\"img\")\n \t\t\t\t|| this.cleanAnchors\n \t\t\t\t&& tag.getShortTag().toLowerCase().equals(\"a\"))\n \t\t\treturn true;\n \t\treturn false;\n \t}", "title": "" }, { "docid": "312f2acfb7fc83253ca946479d337513", "score": "0.45643142", "text": "private boolean _needsTableTag(UIComponent component) {\n\t\tUIComponent parent = XhtmlUtils.getStructuralParent(component);\r\n\t\tif (parent == null)\r\n\t\t\treturn true;\r\n\r\n\t\t// =-=AEW We should review this code.\r\n\t\t// Either the parent should mark down that it rendered\r\n\t\t// a table, or we should lean on the ResponseWriter\r\n\t\t// to tell us if a table had been used.\r\n\r\n\t\t// Hardcoding some packages 'cause I need this code to change!\r\n\t\tString family = parent.getFamily();\r\n\t\tif (HtmlTableLayout.COMPONENT_FAMILY.equals(family)) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\treturn true;\r\n\t}", "title": "" }, { "docid": "03f1e02bcaa06309124c20213f934eab", "score": "0.456334", "text": "@DISPID(444) //= 0x1bc. The runtime will prefer the VTID if present\r\n @VTID(380)\r\n boolean labelSmartTags();", "title": "" }, { "docid": "9a49bb6a582747b4482264d8b0c56ed9", "score": "0.45466563", "text": "boolean getDeprecatedIsExternal();", "title": "" }, { "docid": "aee541558081a78476d9d93b3d68c52f", "score": "0.45331138", "text": "public boolean isLeeg() {\n\t\treturn this.getVeldType() == VeldType.LEEGVELD;\n\t}", "title": "" }, { "docid": "6a6f815a58d98d7a89869ab7c1b7d4fc", "score": "0.4528815", "text": "static public boolean isSanitaryName(String name) {\n if (name.toLowerCase().endsWith(\".pde\")) {\n name = name.substring(0, name.length() - 4);\n }\n return sanitizeName(name).equals(name);\n }", "title": "" }, { "docid": "d195c7c67c2d4f2787ab63ac02931688", "score": "0.45209718", "text": "boolean isSetDeprecated();", "title": "" }, { "docid": "d7a5d51fc1578b3d1d4d37938ca490be", "score": "0.45050138", "text": "private void initStandardTaglets() {\n if (javafx) {\n initJavaFXTaglets();\n }\n\n Taglet temp;\n addStandardTaglet(new ParamTaglet());\n addStandardTaglet(new ReturnTaglet());\n addStandardTaglet(new ThrowsTaglet());\n addStandardTaglet(new SimpleTaglet(EXCEPTION.tagName, null,\n SimpleTaglet.METHOD + SimpleTaglet.CONSTRUCTOR));\n addStandardTaglet(!nosince, new SimpleTaglet(SINCE.tagName, resources.getText(\"doclet.Since\"),\n SimpleTaglet.ALL));\n addStandardTaglet(showversion, new SimpleTaglet(VERSION.tagName, resources.getText(\"doclet.Version\"),\n SimpleTaglet.MODULE + SimpleTaglet.PACKAGE + SimpleTaglet.TYPE + SimpleTaglet.OVERVIEW));\n addStandardTaglet(showauthor, new SimpleTaglet(AUTHOR.tagName, resources.getText(\"doclet.Author\"),\n SimpleTaglet.MODULE + SimpleTaglet.PACKAGE + SimpleTaglet.TYPE + SimpleTaglet.OVERVIEW));\n addStandardTaglet(new SimpleTaglet(SERIAL_DATA.tagName, resources.getText(\"doclet.SerialData\"),\n SimpleTaglet.EXCLUDED));\n addStandardTaglet(new SimpleTaglet(HIDDEN.tagName, resources.getText(\"doclet.Hidden\"),\n SimpleTaglet.FIELD + SimpleTaglet.METHOD + SimpleTaglet.TYPE));\n customTags.put((temp = new SimpleTaglet(\"factory\", resources.getText(\"doclet.Factory\"),\n SimpleTaglet.METHOD)).getName(), temp);\n addStandardTaglet(new SeeTaglet());\n //Standard inline tags\n addStandardTaglet(new DocRootTaglet());\n addStandardTaglet(new InheritDocTaglet());\n addStandardTaglet(new ValueTaglet());\n addStandardTaglet(new LiteralTaglet());\n addStandardTaglet(new CodeTaglet());\n addStandardTaglet(new IndexTaglet());\n\n // Keep track of the names of standard tags for error\n // checking purposes. The following are not handled above.\n standardTags.add(DEPRECATED.tagName);\n standardTags.add(LINK.tagName);\n standardTags.add(LINK_PLAIN.tagName);\n standardTags.add(SERIAL.tagName);\n standardTags.add(SERIAL_FIELD.tagName);\n }", "title": "" }, { "docid": "f3637a6b5dc1f966cf1ccb2638a91f93", "score": "0.44995686", "text": "boolean isIsObsolete();", "title": "" }, { "docid": "57f924d117d3d6a18611e0d9cbe50fec", "score": "0.4498587", "text": "public static boolean isJSF22() {\n return FacesContext.class.getPackage().getImplementationVersion().startsWith(\"2.2\");\n }", "title": "" }, { "docid": "7515edd27c81e4cdae510623942d7235", "score": "0.4492814", "text": "public boolean hasDevtypename() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }", "title": "" }, { "docid": "a081d19220c321250f801936521eac9b", "score": "0.44830424", "text": "@Test\n public void testHasTagSpec() {\n boolean hasTag = ampValidatorManager.hasTagSpec(ValidatorProtos.HtmlFormat.Code.AMP4EMAIL, \"H\");\n Assert.assertFalse(hasTag, \"AMP4EMAIL html format should not contain H tag\");\n\n hasTag = ampValidatorManager.hasTagSpec(ValidatorProtos.HtmlFormat.Code.AMP4EMAIL, \"A\");\n Assert.assertTrue(hasTag, \"AMP4EMAIL html format should contain A tag\");\n }", "title": "" }, { "docid": "a7a060b4e36149562bf91a88af595748", "score": "0.44810438", "text": "public boolean hasDeprecatedType() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "title": "" }, { "docid": "a164e846d62b2f4a346099eb3efb36a3", "score": "0.44801804", "text": "public Taglet getTaglet(String name) {\n if (name.indexOf(\"@\") == 0) {\n return customTags.get(name.substring(1));\n } else {\n return customTags.get(name);\n }\n\n }", "title": "" }, { "docid": "83700cfab1e16c6f00dbaf515ac750f0", "score": "0.44780552", "text": "private void checkVersions() throws BadVersionException {\n NodeList nodes = document.getFirstChild().getChildNodes();\n for (int i = 0; i < nodes.getLength(); i++) {\n if (nodes.item(i) instanceof Element && nodes.item(i).getNamespaceURI().equals(dinosyNS)) {\n String componentVersion = nodes.item(i).getAttributes().getNamedItem(\"since\").getNodeValue();\n String needed = Settings.getInstance().getSupportedVersion();\n if (checkVersion(componentVersion, needed) > 0) {\n throw new BadVersionException(needed, componentVersion, nodes.item(i).getNodeName());\n }\n if (getRealNodeName(nodes.item(i)).equals(\"sources\")) {\n xmlSources = (Element) nodes.item(i);\n } else if (getRealNodeName(nodes.item(i)).equals(\"data\")) {\n xmlData = (Element) nodes.item(i);\n } else if (getRealNodeName(nodes.item(i)).equals(\"representations\")) {\n xmlRepresentations = (Element) nodes.item(i);\n } else if (getRealNodeName(nodes.item(i)).equals(\"relations\")) {\n xmlRelations = (Element) nodes.item(i);\n }\n }\n }\n }", "title": "" }, { "docid": "4ab03c7074f216eff116aae895402601", "score": "0.44688186", "text": "public boolean hasDevname() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "title": "" }, { "docid": "80cedf73d459b0fe1be478242a9723bd", "score": "0.4467529", "text": "public boolean isUpgradeTool() {\n\t\treturn this.name.equals(\"Upgrade Tool\");\n\t}", "title": "" }, { "docid": "c0346207971975d039348fb7886e0ce3", "score": "0.44618067", "text": "public boolean hasDevname() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "title": "" }, { "docid": "8a03ded512d40642af6ec5ec0726f194", "score": "0.4448854", "text": "public boolean isTierDeneid(String tierName)throws APIManagementException;", "title": "" }, { "docid": "e054e82e53d853d5b031130535f62ca8", "score": "0.44436732", "text": "public boolean hasDeprecatedType() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "title": "" }, { "docid": "1285bf13e5e950ff8ea022a72035a0e2", "score": "0.4441107", "text": "public boolean hasTagName() {\n return ((bitField0_ & 0x00000001) != 0);\n }", "title": "" }, { "docid": "9525f39a4e41e6eba59f132e3a5c7c80", "score": "0.44372937", "text": "public boolean hasDevtypename() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }", "title": "" }, { "docid": "1f039e23e0f3764fc9a0ad40f18d5b18", "score": "0.44326878", "text": "boolean hasTraceName();", "title": "" }, { "docid": "577ba5e6057bcbe3d314d9a37639cf82", "score": "0.442762", "text": "public RefactoringStatus checkNewElementName(String newName) throws CoreException;", "title": "" }, { "docid": "7cc39573c07fb736771fdbe5105344cc", "score": "0.442716", "text": "boolean hasUpdateTags();", "title": "" }, { "docid": "fc7b648416f65eb78398542c4215e17b", "score": "0.44260755", "text": "private boolean isPortletRequest(Object request) \n {\n if (request instanceof ServletRequest)\n {\n ServletRequest sr = (ServletRequest) request;\n Bridge.PortletPhase phase = (Bridge.PortletPhase) sr.getAttribute(Bridge.PORTLET_LIFECYCLE_PHASE);\n return (phase != null);\n }\n else if (request instanceof PortletRequest)\n {\n return true;\n }\n \n return false;\n }", "title": "" }, { "docid": "8d8bfc1d503c1ec543e71a1c34483aa8", "score": "0.442313", "text": "protected void checkTie() {\n\t\t\n\t}", "title": "" }, { "docid": "a4509e64c70beefe99d88c05e72c853d", "score": "0.44146612", "text": "public boolean visit(SimpleName node) {\n collectTaint(node, true);\n return false;\n }", "title": "" }, { "docid": "97aada051c96579c429e0d98714fd7a0", "score": "0.441113", "text": "private boolean isNameValid(String name) {\n\t\tboolean ret = false;\r\n\r\n\t\treturn ret;\r\n\t}", "title": "" }, { "docid": "64b3aacb1555742eb5ab8ffc5445ff40", "score": "0.44015127", "text": "boolean hasTagNum();", "title": "" }, { "docid": "e83762b10bd76486cf84b5d1b87f14f6", "score": "0.43917352", "text": "private Boolean resolveSchemaNamesForETLSteps() {\r\n\t\tBoolean status = true;// Hope for the best\r\n\t\ttry {\r\n\t\t\tfor (ETLStep etlStep : getETLSteps()) {\r\n\t\t\t\tString schemaName, connection;\r\n\t\t\t\tconnection = etlStep.getConnection();\r\n\t\t\t\tif (connection.trim().length() > 0) {\r\n\t\t\t\t\tschemaName = getETLConnections().getConnection(connection).getDatabase();\r\n\t\t\t\t\tetlStep.setSchemaName(schemaName);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch (Exception ex) {\r\n\t\t\tLog.logError(\"DatabaseGraphController.resolveSchemaNamesForETLSteps: \" + ex.getLocalizedMessage());\r\n\t\t\tstatus = false;\r\n\t\t}\r\n\t\treturn status;\r\n\t}", "title": "" }, { "docid": "f053403938756e5e4f53eb2dd8ccb5e3", "score": "0.43839744", "text": "public boolean hasTraceTag() {\n return ((bitField0_ & 0x00020000) == 0x00020000);\n }", "title": "" }, { "docid": "0f76519720f95c240f66718a981aaa40", "score": "0.4381128", "text": "public abstract boolean is(String tag);", "title": "" }, { "docid": "8e087be953c1641063d6c9505f3f8e4e", "score": "0.43760654", "text": "public boolean validateBasicComponent_NoSeffTypeUsedTwice(BasicComponent basicComponent, DiagnosticChain diagnostics, Map<Object, Object> context) {\n\t\treturn basicComponent.NoSeffTypeUsedTwice(diagnostics, context);\n\t}", "title": "" }, { "docid": "5dc50d29f3037aa2ccd7dc262bfb8db5", "score": "0.4374534", "text": "public boolean hasTraceTag() {\n return ((bitField0_ & 0x00020000) == 0x00020000);\n }", "title": "" }, { "docid": "7078b2aec877753ba4d1a56749288a9a", "score": "0.437182", "text": "boolean hasTokenTag();", "title": "" }, { "docid": "eafd3959e085ab6069e91e83219cb0f5", "score": "0.43711203", "text": "@java.lang.Override\n public boolean hasTagName() {\n return ((bitField0_ & 0x00000001) != 0);\n }", "title": "" }, { "docid": "023fdc2d78097b8172a2f69ba9b94d3c", "score": "0.43701905", "text": "public static boolean CompatibleElements(int lnameEl,int oldnameEl,int np)\n\t{\n\t\tif(np>CmdViewer.BEGIN_MPM_TYPES)\n\t\t{\tif(lnameEl==FOUR_NODE_ISO)\n\t\t\t{\tif(np == CmdViewer.THREED_MPM) return false;\n\t\t\t}\n\t\t\telse if(lnameEl==EIGHT_NODE_ISO_BRICK)\n\t\t\t{\tif(np != CmdViewer.THREED_MPM) return false;\n\t\t\t}\n\t\t\telse\n\t\t\t\treturn false;\n\t\t}\n\t\telse if(lnameEl == EIGHT_NODE_ISO_BRICK)\n\t\t\treturn false;\n\t\t\n\t\t// if previous was not used, then make sure it is valid\n\t\tif(oldnameEl==CmdViewer.NO_ELEMENT) return true;\n\t\t\n\t\t// otherwise, look for compatibility\n\t\tswitch(lnameEl)\n\t\t{\tcase FOUR_NODE_ISO:\n\t\t\tcase LINEAR_INTERFACE:\n\t\t\tcase CST:\n\t\t\t\tif(oldnameEl==CST) return true;\n\t\t\t\tif(oldnameEl==LINEAR_INTERFACE) return true;\n\t\t\t\tif(oldnameEl==FOUR_NODE_ISO) return true;\n\t\t\t\tbreak;\n\t\t\t\n\t\t\tcase EIGHT_NODE_ISO:\n\t\t\tcase ISO_TRIANGLE:\n\t\t\tcase LAGRANGE_2D:\n\t\t\tcase QUAD_INTERFACE:\n\t\t\t\tif(oldnameEl==EIGHT_NODE_ISO) return true;\n\t\t\t\tif(oldnameEl==ISO_TRIANGLE) return true;\n\t\t\t\tif(oldnameEl==QUAD_INTERFACE) return true;\n\t\t\t\tif(oldnameEl==LAGRANGE_2D) return true;\n\t\t\t\tbreak;\n\t\t\t\n\t\t\tdefault:\n\t\t\t\tbreak;\n\t\t}\n\t\t\n\t\treturn false;\n\t}", "title": "" }, { "docid": "c1904a1b3ea92f188810859599855608", "score": "0.43676695", "text": "@Deprecated\n boolean canParse();", "title": "" }, { "docid": "b56241b826cdb2c9d229a1754b48c065", "score": "0.43659216", "text": "public boolean isTLSSupported(){\n return false;\n }", "title": "" }, { "docid": "7a8aa3deb59b068ec79682f5db621c81", "score": "0.4365409", "text": "public boolean validateName(String productName) {\n\t\treturn false;\r\n\t}", "title": "" }, { "docid": "c46da8bcf074d1ff1e037237f47f55ef", "score": "0.43652883", "text": "void checkNamespaceBundleSplit();", "title": "" }, { "docid": "29cd8dcce149eacda206f6d782378b99", "score": "0.43559316", "text": "private boolean checkForSysOutOverSLF4J() {\n\t\tClassNotFoundException classNotFound = null; // false (== null)\n\t\ttry {\n\t\t\tClass.forName(\"uk.org.lidalia.sysoutslf4j.context.SysOutOverSLF4J\",\n\t\t\t\t\tfalse, ClassLoader.getSystemClassLoader());\n\t\t} catch (final ClassNotFoundException e) {\n\t\t\tclassNotFound = e; // true (!= null)\n\t\t}\n\t\treturn (classNotFound != null);\n\t}", "title": "" }, { "docid": "2ebc69c8f21a071a17d9afbbcce60f4d", "score": "0.4355296", "text": "@Test\n public void testIt() throws Exception {\n File jar = MavenTestingUtils.getTestResourceFile(\"taglib.jar\");\n File tld = MavenTestingUtils.getTestResourceFile(\"META-INF/foo-taglib.tld\");\n List<URL> list = new ArrayList<>();\n list.add(new URL(((\"jar:\" + (jar.toURI().toURL().toString())) + \"!/META-INF/bar-taglib.tld\")));\n list.add(tld.toURI().toURL());\n JettyTldPreScanned preScanned = new JettyTldPreScanned(new ServletContextHandler().getServletContext(), false, false, false, list);\n preScanned.scanJars();\n Map<TldResourcePath, TaglibXml> map = preScanned.getTldResourcePathTaglibXmlMap();\n Assertions.assertNotNull(map);\n Assertions.assertEquals(2, map.size());\n for (TldResourcePath p : map.keySet()) {\n URL u = p.getUrl();\n TaglibXml tlx = map.get(p);\n Assertions.assertNotNull(tlx);\n if ((!(\"foo\".equals(tlx.getShortName()))) && (!(\"bar\".equals(tlx.getShortName()))))\n Assertions.fail(\"unknown tag\");\n\n }\n }", "title": "" }, { "docid": "e281cfdfb263eaffb883db2872a4016b", "score": "0.4352011", "text": "public boolean hasTag(String tag) {\n return tags.contains(tag);\n }", "title": "" }, { "docid": "b1f573920b4f3da448c93cafecd536bd", "score": "0.4351288", "text": "boolean isWool(Block block){\r\n return block != null && Tag.WOOL.isTagged(block.getType());\r\n }", "title": "" }, { "docid": "aef17c301ac480c3887f57e088f46b15", "score": "0.43511155", "text": "boolean hasOpusName();", "title": "" }, { "docid": "aef17c301ac480c3887f57e088f46b15", "score": "0.43511155", "text": "boolean hasOpusName();", "title": "" }, { "docid": "93eae2dd349a2a630d814332328ed6f7", "score": "0.43405804", "text": "public void doTag() throws JspException, IOException {\n\t\t\n\t\tlogger.trace(\"should be defining framework objects here!\");\n\t}", "title": "" }, { "docid": "ab4ec6327eb1bc6e7670ef70158d03f3", "score": "0.4339488", "text": "public static boolean isLanguageLegal(String sLang)\n {\n return ClassHelper.isPartialNameLegal(sLang);\n }", "title": "" }, { "docid": "24fcd7a267433602db913cf8365ec150", "score": "0.4328953", "text": "public boolean isLegacyMode();", "title": "" }, { "docid": "93b0cd2aa22d18e3d91a0e6cec19b84f", "score": "0.43260512", "text": "@SuppressWarnings({\"unchecked\", \"cast\"}) public boolean isDeprecated() {\n boolean isDeprecated_value = isDeprecated_compute();\n return isDeprecated_value;\n }", "title": "" }, { "docid": "7c8bdd0bd8088c6a487fb569217f2e4e", "score": "0.4324869", "text": "@Test\n @Tag(\"junit5Tag\")\n @WithTag(\"serenityTag\")\n void shouldAllowUsageOfSerenityAndJunit5TagsTogether() {\n }", "title": "" }, { "docid": "e56775ff0523e8615fd4f64a3affedc2", "score": "0.4323679", "text": "@Test\n\tpublic void testCheckTags_2()\n\t\tthrows Exception {\n\t\tHTMLInputFilter fixture = new HTMLInputFilter(true);\n\t\tfixture.vAllowed = new CaseInsensitiveMap();\n\t\tfixture.vSelfClosingTags = new String[] {};\n\t\tfixture.vAllowedEntities = new String[] {};\n\t\tfixture.vTagCounts = new CaseInsensitiveMap();\n\t\tfixture.vNeedClosingTags = new String[] {};\n\t\tfixture.vRemoveBlanks = new String[] {};\n\t\tfixture.vAllowedProtocols = new String[] {};\n\t\tfixture.vProtocolAtts = new String[] {};\n\t\tString s = \"\";\n\n\t\tString result = fixture.checkTags(s);\n\n\t\t\n\t\tassertEquals(\"\", result);\n\t}", "title": "" }, { "docid": "5c2a52e69d1d0204e99a6ad519dab450", "score": "0.43177518", "text": "boolean hasTcnName();", "title": "" }, { "docid": "5c2a52e69d1d0204e99a6ad519dab450", "score": "0.43177518", "text": "boolean hasTcnName();", "title": "" }, { "docid": "5c2a52e69d1d0204e99a6ad519dab450", "score": "0.43177518", "text": "boolean hasTcnName();", "title": "" }, { "docid": "5c2a52e69d1d0204e99a6ad519dab450", "score": "0.43177518", "text": "boolean hasTcnName();", "title": "" } ]
5e185150f8b61ce5105970ef4a853eb6
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor.
[ { "docid": "a81ff1d0b7cb0f06f9e98435c1de94f5", "score": "0.0", "text": "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n button1 = new java.awt.Button();\n jPanel1 = new javax.swing.JPanel();\n jLabel1 = new javax.swing.JLabel();\n lblTenCuaHang = new javax.swing.JLabel();\n jLabel3 = new javax.swing.JLabel();\n jLabel4 = new javax.swing.JLabel();\n lblTenDangNhap = new javax.swing.JLabel();\n lblChiNhanh = new javax.swing.JLabel();\n jLabel2 = new javax.swing.JLabel();\n lblVaiTro = new javax.swing.JLabel();\n jLabel6 = new javax.swing.JLabel();\n jLabel7 = new javax.swing.JLabel();\n jPanel2 = new javax.swing.JPanel();\n jPanel5 = new javax.swing.JPanel();\n jPanel6 = new javax.swing.JPanel();\n jPanel7 = new javax.swing.JPanel();\n btnQuanLy = new javax.swing.JLabel();\n jLabel8 = new javax.swing.JLabel();\n jLabel9 = new javax.swing.JLabel();\n jPanel11 = new javax.swing.JPanel();\n jLabel10 = new javax.swing.JLabel();\n jPanel12 = new javax.swing.JPanel();\n jLabel11 = new javax.swing.JLabel();\n jPanel13 = new javax.swing.JPanel();\n jLabel12 = new javax.swing.JLabel();\n jPanel14 = new javax.swing.JPanel();\n jLabel13 = new javax.swing.JLabel();\n jPanel15 = new javax.swing.JPanel();\n jPanel3 = new javax.swing.JPanel();\n QuanLy = new javax.swing.JPanel();\n jLabel14 = new javax.swing.JLabel();\n BanHang = new javax.swing.JPanel();\n jLabel15 = new javax.swing.JLabel();\n NhapHang = new javax.swing.JPanel();\n jLabel16 = new javax.swing.JLabel();\n jPanel4 = new javax.swing.JPanel();\n\n button1.setLabel(\"button1\");\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n jPanel1.setBackground(new java.awt.Color(255, 255, 255));\n\n jLabel1.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/com/hbh/icon/hbh.png\"))); // NOI18N\n\n lblTenCuaHang.setFont(new java.awt.Font(\"Tahoma\", 0, 18)); // NOI18N\n lblTenCuaHang.setText(\"HBH Showroom\");\n\n jLabel3.setFont(new java.awt.Font(\"Tahoma\", 0, 16)); // NOI18N\n jLabel3.setText(\"Chi nhánh: \");\n\n jLabel4.setFont(new java.awt.Font(\"Tahoma\", 0, 16)); // NOI18N\n jLabel4.setText(\"username:\");\n\n lblTenDangNhap.setFont(new java.awt.Font(\"Tahoma\", 0, 16)); // NOI18N\n lblTenDangNhap.setText(\"quanly001\");\n\n lblChiNhanh.setFont(new java.awt.Font(\"Tahoma\", 0, 16)); // NOI18N\n lblChiNhanh.setText(\"86 nguyen sinh sac\");\n\n jLabel2.setFont(new java.awt.Font(\"Tahoma\", 0, 16)); // NOI18N\n jLabel2.setText(\"Bạn đang đăng nhập với vai trò\");\n\n lblVaiTro.setFont(new java.awt.Font(\"Tahoma\", 0, 16)); // NOI18N\n lblVaiTro.setText(\"quản lý\");\n\n jLabel6.setFont(new java.awt.Font(\"Tahoma\", 0, 16)); // NOI18N\n jLabel6.setForeground(new java.awt.Color(0, 51, 255));\n jLabel6.setText(\"Đăng xuất\");\n\n jLabel7.setFont(new java.awt.Font(\"Tahoma\", 0, 16)); // NOI18N\n jLabel7.setForeground(new java.awt.Color(0, 51, 255));\n jLabel7.setText(\"Đổi mật khẩu\");\n\n javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);\n jPanel1.setLayout(jPanel1Layout);\n jPanel1Layout.setHorizontalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(53, 53, 53)\n .addComponent(jLabel1)\n .addGap(18, 18, 18)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(lblTenCuaHang, javax.swing.GroupLayout.PREFERRED_SIZE, 170, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addComponent(jLabel4, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel3, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(lblTenDangNhap, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(lblChiNhanh, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGap(656, 656, 656)))\n .addGap(231, 231, 231)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()\n .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 231, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 0, 0)\n .addComponent(lblVaiTro, javax.swing.GroupLayout.PREFERRED_SIZE, 83, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jLabel6)\n .addGap(12, 12, 12))\n .addComponent(jLabel7, javax.swing.GroupLayout.Alignment.TRAILING))\n .addGap(34, 34, 34))\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(20, 20, 20)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(lblTenCuaHang, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(lblVaiTro)\n .addComponent(jLabel6))\n .addGap(0, 0, 0)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel3, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(lblChiNhanh, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel7))\n .addGap(0, 0, 0)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel4, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(lblTenDangNhap, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addContainerGap(24, Short.MAX_VALUE))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(13, 13, 13)\n .addComponent(jLabel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addContainerGap())\n );\n\n jPanel2.setBackground(new java.awt.Color(255, 255, 255));\n\n jPanel5.setBackground(new java.awt.Color(102, 102, 102));\n\n javax.swing.GroupLayout jPanel5Layout = new javax.swing.GroupLayout(jPanel5);\n jPanel5.setLayout(jPanel5Layout);\n jPanel5Layout.setHorizontalGroup(\n jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 0, Short.MAX_VALUE)\n );\n jPanel5Layout.setVerticalGroup(\n jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 2, Short.MAX_VALUE)\n );\n\n jPanel6.setBackground(new java.awt.Color(0, 204, 0));\n jPanel6.setForeground(new java.awt.Color(0, 204, 51));\n\n javax.swing.GroupLayout jPanel6Layout = new javax.swing.GroupLayout(jPanel6);\n jPanel6.setLayout(jPanel6Layout);\n jPanel6Layout.setHorizontalGroup(\n jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 100, Short.MAX_VALUE)\n );\n jPanel6Layout.setVerticalGroup(\n jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 10, Short.MAX_VALUE)\n );\n\n jPanel7.setBackground(new java.awt.Color(0, 204, 0));\n\n javax.swing.GroupLayout jPanel7Layout = new javax.swing.GroupLayout(jPanel7);\n jPanel7.setLayout(jPanel7Layout);\n jPanel7Layout.setHorizontalGroup(\n jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 100, Short.MAX_VALUE)\n );\n jPanel7Layout.setVerticalGroup(\n jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 11, Short.MAX_VALUE)\n );\n\n btnQuanLy.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n btnQuanLy.setText(\"QUẢN LÝ\");\n btnQuanLy.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n btnQuanLyMouseClicked(evt);\n }\n });\n\n jLabel8.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n jLabel8.setText(\"BÁN HÀNG\");\n jLabel8.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jLabel8MouseClicked(evt);\n }\n });\n\n jLabel9.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n jLabel9.setText(\"NHẬP HÀNG\");\n\n jPanel11.setBackground(new java.awt.Color(0, 204, 0));\n\n javax.swing.GroupLayout jPanel11Layout = new javax.swing.GroupLayout(jPanel11);\n jPanel11.setLayout(jPanel11Layout);\n jPanel11Layout.setHorizontalGroup(\n jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 0, Short.MAX_VALUE)\n );\n jPanel11Layout.setVerticalGroup(\n jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 11, Short.MAX_VALUE)\n );\n\n jLabel10.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n jLabel10.setText(\"BẢO HÀNH\");\n\n jPanel12.setBackground(new java.awt.Color(0, 204, 0));\n\n javax.swing.GroupLayout jPanel12Layout = new javax.swing.GroupLayout(jPanel12);\n jPanel12.setLayout(jPanel12Layout);\n jPanel12Layout.setHorizontalGroup(\n jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 100, Short.MAX_VALUE)\n );\n jPanel12Layout.setVerticalGroup(\n jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 11, Short.MAX_VALUE)\n );\n\n jLabel11.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n jLabel11.setText(\"BÁO CÁO THỐNG KÊ\");\n\n jPanel13.setBackground(new java.awt.Color(0, 204, 0));\n\n javax.swing.GroupLayout jPanel13Layout = new javax.swing.GroupLayout(jPanel13);\n jPanel13.setLayout(jPanel13Layout);\n jPanel13Layout.setHorizontalGroup(\n jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 0, Short.MAX_VALUE)\n );\n jPanel13Layout.setVerticalGroup(\n jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 11, Short.MAX_VALUE)\n );\n\n jLabel12.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n jLabel12.setText(\"TRỢ GIÚP\");\n\n jPanel14.setBackground(new java.awt.Color(0, 204, 0));\n\n javax.swing.GroupLayout jPanel14Layout = new javax.swing.GroupLayout(jPanel14);\n jPanel14.setLayout(jPanel14Layout);\n jPanel14Layout.setHorizontalGroup(\n jPanel14Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 0, Short.MAX_VALUE)\n );\n jPanel14Layout.setVerticalGroup(\n jPanel14Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 11, Short.MAX_VALUE)\n );\n\n jLabel13.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n jLabel13.setText(\"TIN NHẮN\");\n\n jPanel15.setBackground(new java.awt.Color(0, 204, 0));\n\n javax.swing.GroupLayout jPanel15Layout = new javax.swing.GroupLayout(jPanel15);\n jPanel15.setLayout(jPanel15Layout);\n jPanel15Layout.setHorizontalGroup(\n jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 0, Short.MAX_VALUE)\n );\n jPanel15Layout.setVerticalGroup(\n jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 11, Short.MAX_VALUE)\n );\n\n javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);\n jPanel2.setLayout(jPanel2Layout);\n jPanel2Layout.setHorizontalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel5, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGap(100, 100, 100)\n .addComponent(jPanel6, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup()\n .addGap(108, 108, 108)\n .addComponent(btnQuanLy, javax.swing.GroupLayout.PREFERRED_SIZE, 92, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGap(130, 130, 130)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel8)\n .addComponent(jPanel7, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(130, 130, 130)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jLabel9, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jPanel11, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGap(130, 130, 130)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel10)\n .addComponent(jPanel12, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(130, 130, 130)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jLabel11, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jPanel13, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGap(130, 130, 130)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jPanel14, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel12, javax.swing.GroupLayout.DEFAULT_SIZE, 94, Short.MAX_VALUE))\n .addGap(130, 130, 130)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jLabel13, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jPanel15, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n jPanel2Layout.setVerticalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup()\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGap(0, 0, Short.MAX_VALUE)\n .addComponent(jLabel9, javax.swing.GroupLayout.PREFERRED_SIZE, 27, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(10, 10, 10)\n .addComponent(jPanel11, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addContainerGap(21, Short.MAX_VALUE)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addComponent(jLabel8, javax.swing.GroupLayout.PREFERRED_SIZE, 27, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(10, 10, 10)\n .addComponent(jPanel7, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addComponent(btnQuanLy, javax.swing.GroupLayout.PREFERRED_SIZE, 27, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jPanel6, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addComponent(jLabel10, javax.swing.GroupLayout.PREFERRED_SIZE, 27, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(10, 10, 10)\n .addComponent(jPanel12, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addComponent(jLabel11, javax.swing.GroupLayout.PREFERRED_SIZE, 27, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(10, 10, 10)\n .addComponent(jPanel13, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addComponent(jLabel12, javax.swing.GroupLayout.PREFERRED_SIZE, 27, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(10, 10, 10)\n .addComponent(jPanel14, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addComponent(jLabel13, javax.swing.GroupLayout.PREFERRED_SIZE, 27, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(10, 10, 10)\n .addComponent(jPanel15, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addComponent(jPanel5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))))\n .addGap(0, 0, 0))\n );\n\n jPanel3.setBackground(new java.awt.Color(255, 255, 255));\n jPanel3.setLayout(new java.awt.CardLayout());\n\n jLabel14.setFont(new java.awt.Font(\"Tahoma\", 0, 18)); // NOI18N\n jLabel14.setText(\"Quản lý\");\n jLabel14.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jLabel14MouseClicked(evt);\n }\n });\n\n javax.swing.GroupLayout QuanLyLayout = new javax.swing.GroupLayout(QuanLy);\n QuanLy.setLayout(QuanLyLayout);\n QuanLyLayout.setHorizontalGroup(\n QuanLyLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(QuanLyLayout.createSequentialGroup()\n .addGap(447, 447, 447)\n .addComponent(jLabel14, javax.swing.GroupLayout.PREFERRED_SIZE, 358, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(1004, Short.MAX_VALUE))\n );\n QuanLyLayout.setVerticalGroup(\n QuanLyLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(QuanLyLayout.createSequentialGroup()\n .addGap(178, 178, 178)\n .addComponent(jLabel14, javax.swing.GroupLayout.PREFERRED_SIZE, 162, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(437, Short.MAX_VALUE))\n );\n\n jPanel3.add(QuanLy, \"card2\");\n\n jLabel15.setFont(new java.awt.Font(\"Tahoma\", 0, 18)); // NOI18N\n jLabel15.setText(\"Bán hàng\");\n\n javax.swing.GroupLayout BanHangLayout = new javax.swing.GroupLayout(BanHang);\n BanHang.setLayout(BanHangLayout);\n BanHangLayout.setHorizontalGroup(\n BanHangLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(BanHangLayout.createSequentialGroup()\n .addGap(515, 515, 515)\n .addComponent(jLabel15, javax.swing.GroupLayout.PREFERRED_SIZE, 230, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(1064, Short.MAX_VALUE))\n );\n BanHangLayout.setVerticalGroup(\n BanHangLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(BanHangLayout.createSequentialGroup()\n .addGap(229, 229, 229)\n .addComponent(jLabel15, javax.swing.GroupLayout.PREFERRED_SIZE, 123, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(425, Short.MAX_VALUE))\n );\n\n jPanel3.add(BanHang, \"card2\");\n\n jLabel16.setFont(new java.awt.Font(\"Tahoma\", 0, 18)); // NOI18N\n jLabel16.setText(\"Nhập hàng\");\n jLabel16.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jLabel16MouseClicked(evt);\n }\n });\n\n javax.swing.GroupLayout NhapHangLayout = new javax.swing.GroupLayout(NhapHang);\n NhapHang.setLayout(NhapHangLayout);\n NhapHangLayout.setHorizontalGroup(\n NhapHangLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(NhapHangLayout.createSequentialGroup()\n .addGap(525, 525, 525)\n .addComponent(jLabel16)\n .addContainerGap(1198, Short.MAX_VALUE))\n );\n NhapHangLayout.setVerticalGroup(\n NhapHangLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(NhapHangLayout.createSequentialGroup()\n .addGap(272, 272, 272)\n .addComponent(jLabel16, javax.swing.GroupLayout.PREFERRED_SIZE, 130, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(375, Short.MAX_VALUE))\n );\n\n jPanel3.add(NhapHang, \"card2\");\n\n javax.swing.GroupLayout jPanel4Layout = new javax.swing.GroupLayout(jPanel4);\n jPanel4.setLayout(jPanel4Layout);\n jPanel4Layout.setHorizontalGroup(\n jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 0, Short.MAX_VALUE)\n );\n jPanel4Layout.setVerticalGroup(\n jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 50, Short.MAX_VALUE)\n );\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jPanel3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jPanel4, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 0, 0)\n .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 0, 0)\n .addComponent(jPanel3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGap(0, 0, 0)\n .addComponent(jPanel4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n );\n\n pack();\n }", "title": "" } ]
[ { "docid": "0683d7c04886f33eb3de4cd0ed5cbadc", "score": "0.74529076", "text": "public Herrendjimi1() {\n initComponents();\n }", "title": "" }, { "docid": "a265c28895719fa5abe69bc5acb37bbf", "score": "0.7301484", "text": "public FormLat3() {\n initComponents();\n }", "title": "" }, { "docid": "2901c5027f800c57f8efe188557aec1f", "score": "0.72906625", "text": "public MainForm() {\n initComponents();\n }", "title": "" }, { "docid": "2901c5027f800c57f8efe188557aec1f", "score": "0.72906625", "text": "public MainForm() {\n initComponents();\n }", "title": "" }, { "docid": "0b54bca8df11d64ec2e90e929b0d2c14", "score": "0.72716683", "text": "public MAINFORM() {\n initComponents();\n }", "title": "" }, { "docid": "0c86ede958a0034370ce7e4bef936105", "score": "0.7259241", "text": "public MainForm() {\n initComponents();\n }", "title": "" }, { "docid": "2c07707d9f7944d448a462ab9327eaac", "score": "0.7251289", "text": "public frmQuanLyBangHoachToan() {\n initComponents();\n }", "title": "" }, { "docid": "c4acbeda5cea01954bccb283480cff55", "score": "0.7234026", "text": "public MyForm() {\n initComponents();\n }", "title": "" }, { "docid": "4059ce9fb879b9bfa1d9518442fc4138", "score": "0.7172675", "text": "public NEWWIDOW() {\n initComponents();\n }", "title": "" }, { "docid": "73f3359a4fa373ed69a5292fff09b996", "score": "0.7079378", "text": "public Formulir() {\n initComponents();\n }", "title": "" }, { "docid": "b8d5e8b732de05a73164f95e9d9772d5", "score": "0.7064787", "text": "public NhapkhoFrm() {\n initComponents();\n }", "title": "" }, { "docid": "99d92a44a591b096b28997d6eb35b9d7", "score": "0.70564395", "text": "public formUKM() {\n initComponents();\n }", "title": "" }, { "docid": "09be94c12be7601fd6ac250042cd619d", "score": "0.7048276", "text": "public MarkCalculatorGUI() {\n initComponents();\n }", "title": "" }, { "docid": "82bf4860bd6462a8441201a30800df6a", "score": "0.7028762", "text": "public NurseEntryForm() {\n initComponents();\n }", "title": "" }, { "docid": "5ab41bce5caca988d2521a2f294cf1ca", "score": "0.70115435", "text": "public Cpst() {\n initComponents();\n }", "title": "" }, { "docid": "895113fbc7f0133946672ce2db809b43", "score": "0.6996501", "text": "public add_form() {\n initComponents();\n this.setLocation(400,90);\n }", "title": "" }, { "docid": "1b06db5b4c211f941d57820db1d80e22", "score": "0.6995456", "text": "public newStudentForm() {\n super(\"New Student Form\");\n initComponents();\n }", "title": "" }, { "docid": "ab00bcc3a2f0b659f7d1ef28832c7f20", "score": "0.69880587", "text": "public Caudal() {\n initComponents();\n }", "title": "" }, { "docid": "1abcb77520d4f11fea180760fa8b24a8", "score": "0.69816285", "text": "public BanVeUI() {\n initComponents();\n }", "title": "" }, { "docid": "b1d5a82525f525f6c60e2a97db0191c4", "score": "0.6978367", "text": "public HistoryForm1() {\n initComponents();\n }", "title": "" }, { "docid": "073e2abf81a49475584478d72b9224fd", "score": "0.69712275", "text": "public JfrmMenu() {\n initComponents();\n }", "title": "" }, { "docid": "e696c6336174fe3f2c6784f004efb9e6", "score": "0.69621336", "text": "public PCBaseForm() {\n initComponents();\n }", "title": "" }, { "docid": "4dc5245213e92129721f6adec863d110", "score": "0.69484633", "text": "public NewMenuFormMen() {\n initComponents();\n }", "title": "" }, { "docid": "8bfe553545cc103096292f44b9c5a2ae", "score": "0.6939784", "text": "public DataAddForm() {\n initComponents();\n }", "title": "" }, { "docid": "688e1998d07026053b5a0d3366b3cc66", "score": "0.69396096", "text": "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setLayout(new java.awt.BorderLayout());\n }", "title": "" }, { "docid": "3dd4e9a81d76de08a398d72697af2e05", "score": "0.6938461", "text": "public registrationform() {\n initComponents();\n this.setLocationRelativeTo(null);\n }", "title": "" }, { "docid": "e53e1f392aaa3b5711e49095d75dd6c9", "score": "0.69296026", "text": "public FormLaporanKwitansi() {\n initComponents();\n }", "title": "" }, { "docid": "b2c77184e041e3759329fb9dd7cef7ac", "score": "0.6927081", "text": "public inversa() {\n initComponents();\n }", "title": "" }, { "docid": "efb59c83bca43a7c4fa29ecbf56aa866", "score": "0.69239086", "text": "public frmTarifa2() {\n initComponents();\n }", "title": "" }, { "docid": "4e60560fb10aabef6f1d84d7a7719276", "score": "0.69191426", "text": "public frmMantenimiento() {\n initComponents();\n }", "title": "" }, { "docid": "69efbd9451cff876cad87bc5f4279882", "score": "0.6910267", "text": "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setBackground(new java.awt.Color(206, 224, 180));\n setMinimumSize(new java.awt.Dimension(890, 90));\n setPreferredSize(new java.awt.Dimension(890, 90));\n setVerifyInputWhenFocusTarget(false);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 890, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 90, Short.MAX_VALUE)\n );\n }", "title": "" }, { "docid": "15910a1d15d9c4c877625dc138d9da22", "score": "0.6909774", "text": "public frmCiudades() {\n initComponents();\n }", "title": "" }, { "docid": "1796aa239a0080a15145d615bd023eaa", "score": "0.69017106", "text": "public emply() {\n initComponents();\n }", "title": "" }, { "docid": "d8362cbfcde0f973b558e72fed350be6", "score": "0.69012433", "text": "public Inicial() {\n initComponents();\n this.setLocationRelativeTo(null);// centra el formulari en la pantalla\n }", "title": "" }, { "docid": "006b6c1bdcac26144bf19747be84ee1c", "score": "0.68958527", "text": "public AddCategry() {\n initComponents();\n }", "title": "" }, { "docid": "e379390edd9c6dbc7272e6fd4ae5eec5", "score": "0.6894406", "text": "public Esfera() {\n initComponents();\n }", "title": "" }, { "docid": "8733fb2b17b140cf48f81df8cc0bb0a7", "score": "0.6891491", "text": "public JFFVacunador() {\n initComponents();\n }", "title": "" }, { "docid": "6c6b545eadd55674b8704abf4df7a2ec", "score": "0.68825835", "text": "public GUI_bentosaUI() {\n initComponents();\n }", "title": "" }, { "docid": "4e2367c5529c9c28b20d169e4f20c53d", "score": "0.68786216", "text": "public MinisterInwardForm() {\n initComponents();\n }", "title": "" }, { "docid": "7f807c3febe5b216cd42ac7eb7143004", "score": "0.687679", "text": "public OrderGUI() {\n initComponents();\n }", "title": "" }, { "docid": "ff71f6d75f0cb1e6bd3948a54b7a551e", "score": "0.6857152", "text": "public cgdet() {\n initComponents();\n }", "title": "" }, { "docid": "13eb432242a170ba8bb6ab65a6067512", "score": "0.6851834", "text": "public frmMain() {\n initComponents();\n }", "title": "" }, { "docid": "81a6af9897b0b551723bdaa74411db4e", "score": "0.6850132", "text": "public maine() {\n initComponents();\n }", "title": "" }, { "docid": "ff18a42856a0d3dad42c75d1d7f55d15", "score": "0.6847738", "text": "public AddBarang() {\n initComponents();\n }", "title": "" }, { "docid": "028ebdcafed8cf708df4e1a0e91c0026", "score": "0.68474054", "text": "public Clac() {\n initComponents();\n }", "title": "" }, { "docid": "fe8c82a4ada218e17364cd4a98ae22a1", "score": "0.68464684", "text": "public Pencere() {\n initComponents();\n }", "title": "" }, { "docid": "d7ffd5425ee2a9cf142c0bffcbcb6e63", "score": "0.68458456", "text": "public FormKasir() {\n initComponents();\n }", "title": "" }, { "docid": "aa3a473504643ae0d99526279b38ea20", "score": "0.68427765", "text": "public RegisterForm() {\n initComponents();\n \n setLocationRelativeTo(null);\n setResizable(false);\n }", "title": "" }, { "docid": "62d6f1c20c10ad1ead5700d7ce249d73", "score": "0.6839957", "text": "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setLayout(new BorderLayout());\n }", "title": "" }, { "docid": "93d361b3faf44663e02b0dd3374502de", "score": "0.68379486", "text": "public PersonGUI() {\n initComponents();\n }", "title": "" }, { "docid": "ccb67caaceb63cab4a1ef031f0add155", "score": "0.68368196", "text": "public FrmMainmenu() {\n initComponents();\n }", "title": "" }, { "docid": "c01f744cf7c69146b738579940c8763d", "score": "0.6833719", "text": "public PropertiesFrame() {\n initComponents();\n }", "title": "" }, { "docid": "47bf0ff21d2793deb5cb64d3a59113ce", "score": "0.68297404", "text": "public CelbFrame() {\n initComponents();\n }", "title": "" }, { "docid": "82ddbcedcaff3c00770204b1fef73d89", "score": "0.68294144", "text": "public ProgrammerGUI()\n {\n initComponents();\n }", "title": "" }, { "docid": "f9a62b34de062f3fdfe71ded48f6aa83", "score": "0.68276715", "text": "public FrmMenu() {\n initComponents();\n }", "title": "" }, { "docid": "3aeec18a4846a2bb500c1e9d050327f6", "score": "0.6827283", "text": "public Singin() {\n initComponents();\n }", "title": "" }, { "docid": "1a306bece81303185cad73a90881eadf", "score": "0.6825249", "text": "public Frm_Menu() {\n initComponents();\n }", "title": "" }, { "docid": "d72ca94c92c3b997fba028050642727a", "score": "0.6821313", "text": "public Arith() {\n initComponents();\n }", "title": "" }, { "docid": "7a5f4bf09aeedbc7a13d675da83eba67", "score": "0.6818012", "text": "public NewBetaUI() {\n initComponents();\n }", "title": "" }, { "docid": "c1472b6972829ec014ead9fa4f843c03", "score": "0.68090534", "text": "public GiaiMaForm() {\n initComponents();\n }", "title": "" }, { "docid": "4f7af84a191a521c29123454590c8e25", "score": "0.68069774", "text": "public yearsandeventsGUI() {\n initComponents();\n }", "title": "" }, { "docid": "148f6b57287eb5ba1c9b4eacd333a64f", "score": "0.68055403", "text": "public CarForm() {\n initComponents();\n }", "title": "" }, { "docid": "cc09905f4e20362f87d21c0a2f7f88b1", "score": "0.6800901", "text": "public BookList() {\n initComponents();\n this.setLocationRelativeTo(null);\n BookType0.setText(\"--\");\n BookType1.setText(\"--\");\n BookType2.setText(\"--\");\n BookType3.setText(\"--\");\n BookType4.setText(\"--\");\n }", "title": "" }, { "docid": "1f4001a4bbf7016dfe25d9be0864d6d2", "score": "0.67992514", "text": "public FormMahasiswa() {\n initComponents();\n }", "title": "" }, { "docid": "efb1f2769f0d90791cc48b1c5351237b", "score": "0.6797698", "text": "public vairag() {\n initComponents();\n }", "title": "" }, { "docid": "88b7d12176526194ef25ddf9a73b7827", "score": "0.67923546", "text": "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\"> \n private void initComponents() {\n\n setBackground(new java.awt.Color(255, 255, 255));\n setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 29, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 26, Short.MAX_VALUE)\n );\n }", "title": "" }, { "docid": "24263a64ff52f9fe31e0c5734c587a14", "score": "0.67905664", "text": "public MothManagementForm() {\n initComponents();\n postInit(); \n }", "title": "" }, { "docid": "318d51990ca209e33577f0a283744d49", "score": "0.6787943", "text": "public MembDelUI() {\n initComponents();\n }", "title": "" }, { "docid": "b7f32f67ce4e96c5749be3209e1b7e9e", "score": "0.67844087", "text": "public CadVendedor() {\n initComponents();\n }", "title": "" }, { "docid": "ded9d9c6f629b5d6dd60cc1e3b7978b7", "score": "0.6782982", "text": "public KhuyenmaiNCGUI() {\n initComponents();\n }", "title": "" }, { "docid": "fc915da8861e32be8d0700a2ff2cc7d2", "score": "0.67782795", "text": "public CalculatorUI() {\n initComponents();\n }", "title": "" }, { "docid": "3bf9972ee2e6a38fbf171a4af4d98645", "score": "0.6778168", "text": "public frmTelaInicial() {\n initComponents();\n }", "title": "" }, { "docid": "6bad2f7f475492a4e7c978d9fe8e5629", "score": "0.67776775", "text": "public AC() {\n initComponents();\n }", "title": "" }, { "docid": "4dd41f9b582bcdc264eee3a22b4bf3d7", "score": "0.677321", "text": "public q8() {\n initComponents();\n }", "title": "" }, { "docid": "f30cf0fac193da575d4ee2cb76f66746", "score": "0.6773069", "text": "public frmNhanVien() {\r\n initComponents();\r\n }", "title": "" }, { "docid": "3f7f2e07a8a89f1545d01d16dd58d427", "score": "0.67721725", "text": "public MultipleChoiceFrm() {\n initComponents();\n }", "title": "" }, { "docid": "e430788297de32525a6261ca024dfe1c", "score": "0.6772169", "text": "public JanelaCircuito4() {\n initComponents();\n }", "title": "" }, { "docid": "63bba058264da9c42c07a5424b0942c9", "score": "0.67689675", "text": "public Latihan02() {\n initComponents();\n }", "title": "" }, { "docid": "f57faf1c3df30c9001a833bc5c953d6b", "score": "0.6766784", "text": "public Registerform() {\n initComponents();\n this.setLocationRelativeTo(null);\n }", "title": "" }, { "docid": "9b85de5858174c4ce24035d3792c706a", "score": "0.676603", "text": "public AccesosForm() {\n initComponents();\n }", "title": "" }, { "docid": "e8eed8436cb531a8e390e9877a654f68", "score": "0.6765057", "text": "public FileManipulationForm() {\n initComponents();\n Dimension dim = Toolkit.getDefaultToolkit().getScreenSize();\n this.setLocation(dim.width/2-this.getSize().width/2, dim.height/2-this.getSize().height/2);\n usernameL.setText(Helper.username);\n }", "title": "" }, { "docid": "e8e56d1bb9c3209d379b5f95d39c4012", "score": "0.6759401", "text": "public Frame14() {\n initComponents();\n }", "title": "" }, { "docid": "3c38ca5d05e06b4308947ccfb1b6f80c", "score": "0.6758564", "text": "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents()\n {\n\n setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0), 2));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 796, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 323, Short.MAX_VALUE)\n );\n }", "title": "" }, { "docid": "7b90a6db634ee069daeecaa099122440", "score": "0.67489314", "text": "public TrianguloForm() {\n initComponents();\n }", "title": "" }, { "docid": "5eeeb46d29d96cc1ea7fcb6dc8f359b3", "score": "0.67488194", "text": "public OptionsGUI() {\r\n\t\tinitComponents();\r\n\t}", "title": "" }, { "docid": "90cfcae364ca6ef793cb3d95f71f9738", "score": "0.6740726", "text": "public t() {\n initComponents();\n }", "title": "" }, { "docid": "4489dd374d0177ee8f259402e1f6c1e1", "score": "0.67352456", "text": "public UserEditFrame() {\n initComponents();\n }", "title": "" }, { "docid": "9e5320f8e6f6ea5038071fc01cd47860", "score": "0.6732546", "text": "public DossierMedical() {\n initComponents();\n }", "title": "" }, { "docid": "66b5e2bbd19dac1cc7e82b56acb0c18a", "score": "0.6730446", "text": "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jPCadastroClassificacao = new unibaveopencode.gui.panel.screens.JPCadastroClassificacao();\n\n setClosable(true);\n setIconifiable(true);\n setTitle(\"UnibaveOpenCode\");\n getContentPane().add(jPCadastroClassificacao, java.awt.BorderLayout.CENTER);\n\n pack();\n }", "title": "" }, { "docid": "b1dc49e68642392f5a24c1f8b56230f6", "score": "0.67296296", "text": "public Racun() {\n initComponents();\n }", "title": "" }, { "docid": "6a7041f76970466ade48e2b1ba796200", "score": "0.6727003", "text": "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setTitle(\"Quản lý sinh viên kí túc xá\");\n setResizable(false);\n\n pack();\n }", "title": "" }, { "docid": "f8447f2c18725d7cfb449c457b9f3849", "score": "0.67237604", "text": "public Traductor() {\n initComponents();\n }", "title": "" }, { "docid": "e55a741eb2609f4a8b2e7eaa994e1414", "score": "0.67224985", "text": "public Cad_Aluno_1() {\n initComponents();\n }", "title": "" }, { "docid": "cf01e40ca73a7c25909e63f5afad0871", "score": "0.6720921", "text": "public Tugas1() {\n initComponents();\n }", "title": "" }, { "docid": "59104e8e50595e3442ba7643b888d9e5", "score": "0.67196447", "text": "public Kuis2() {\n initComponents();\n }", "title": "" }, { "docid": "161b6af59f3e8977ce09e5c983d90424", "score": "0.6711579", "text": "public PerdoruesiForm() {\n initComponents();\n loadTable();\n loadComboBoxCategory();\n groupButton();\n tabelaSelectedIndexChange();\n }", "title": "" }, { "docid": "e392c0c1cc592ab07170fc0d52a55642", "score": "0.6711382", "text": "public QuestBio() {\n initComponents();\n }", "title": "" }, { "docid": "c8eb448e3c80ca6d68978cf67994efc3", "score": "0.6708445", "text": "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n org.jdesktop.application.ResourceMap resourceMap = org.jdesktop.application.Application.getInstance(dkgg2012group22imat.view.DKGG2012Group22iMatApp.class).getContext().getResourceMap(CartsWrapper.class);\n setBackground(resourceMap.getColor(\"Form.background\")); // NOI18N\n setName(\"Form\"); // NOI18N\n setOpaque(false);\n setLayout(new javax.swing.BoxLayout(this, javax.swing.BoxLayout.LINE_AXIS));\n }", "title": "" }, { "docid": "542aa7fac595b29c1d88aa014cf01f2c", "score": "0.67068744", "text": "public FrmMelihatBarang() {\n initComponents();\n }", "title": "" }, { "docid": "f8bf9c8776c578eba7afc8325cdd5f91", "score": "0.6704512", "text": "public RegularEntry() {\n initComponents();\n }", "title": "" }, { "docid": "4901a1e0f41a29ebaeb53a03d9f90afc", "score": "0.6692157", "text": "public frmVCourse() {\n initComponents();\n }", "title": "" } ]
045870a110228b3ffdca1a3e4e01997e
set id of node
[ { "docid": "996f762d73c1a838cc77b6494f2efdc4", "score": "0.0", "text": "public void setId(int num) {\n\t\tid = num;\n\t}", "title": "" } ]
[ { "docid": "eb72c5eebf0f004eb0a3df19c58f85a9", "score": "0.80132794", "text": "public void setID(int n) {\n nodeID = n;\n }", "title": "" }, { "docid": "e58c937f22355fafb78bb1759f2d0114", "score": "0.73416775", "text": "public edu.berkeley.path.model_elements_base.Node.Builder setId(java.lang.String value) {\n validate(fields()[0], value);\n this.id = value;\n fieldSetFlags()[0] = true;\n return this; \n }", "title": "" }, { "docid": "ef17a57a239b4b34c52957d1be740436", "score": "0.73051065", "text": "void setId(Object id);", "title": "" }, { "docid": "881afd0455d86710441f5221ba1db128", "score": "0.7270001", "text": "public void id(int id) {\n this.id = id;\n }", "title": "" }, { "docid": "5bebe84336e7f855d5d33f048c044b79", "score": "0.7215664", "text": "void setID(int inte);", "title": "" }, { "docid": "0fcfb32a181f627594b1abb039d4050d", "score": "0.7202395", "text": "@Override\n public void setId(String value)\n {\n id = value;\n }", "title": "" }, { "docid": "4b40ef10e603de37b478ab0046d4087f", "score": "0.7186154", "text": "public void setId(String in) {\n this.id = in;\n }", "title": "" }, { "docid": "67866a5e22d313ca0e0df0cb7aa08475", "score": "0.71484", "text": "public void setId(int id)\n {\n idNumber = id;\n }", "title": "" }, { "docid": "eff69bd20d80afcddc9f65515a88df49", "score": "0.7137389", "text": "public void setNodeid(String nodeid) {\r\n this.nodeid = nodeid;\r\n }", "title": "" }, { "docid": "62257d16ae78e2ff66959509ea3cfe3a", "score": "0.70819616", "text": "public void setId(String value)\r\n {\r\n _id = value;\r\n }", "title": "" }, { "docid": "e8214643115270d59fa40a00761b7f86", "score": "0.70795107", "text": "protected void setID(long id) { this.id = id; }", "title": "" }, { "docid": "81e79eeaf1c75bab9565a9ed643f7cc3", "score": "0.7078724", "text": "Node(int id){\n this.id=id;\n }", "title": "" }, { "docid": "fc2efe28396e73df5bab5b9735088832", "score": "0.70693463", "text": "public void setId(int id) {\n this.id = id;\n this.addProperty(\"id\",id);\n }", "title": "" }, { "docid": "31b5e41dafb41f4062a4d724072a6c04", "score": "0.7061977", "text": "public void setId() {\n\t\tid=nextId;\n\t\tnextId++;\n\t}", "title": "" }, { "docid": "27d40fad6ffddfb882d4698918a44f23", "score": "0.7049716", "text": "private void setId(Integer id) { this.id = id; }", "title": "" }, { "docid": "305ce345fcfbe4efbf9c9fd449985977", "score": "0.7049084", "text": "public MyNode(int id) {\n\t\t this.id = id;\n\t\t }", "title": "" }, { "docid": "c67c639272478e53f3824772c0873d2f", "score": "0.7045447", "text": "public void setIdDecl(IdDecl node) {\n setChild(node, 1);\n }", "title": "" }, { "docid": "7dbea84af5e740c654cd3e7cc004f601", "score": "0.70353556", "text": "public abstract void setId(long id);", "title": "" }, { "docid": "d8ba24029c17f490bcbb63df830660d1", "score": "0.70153123", "text": "public void setID(int num);", "title": "" }, { "docid": "a9e8356d86456a1722aa9e03bb29e3c0", "score": "0.7000442", "text": "public abstract void setId(int id);", "title": "" }, { "docid": "6f9617df126c070652b75ebb1b08a1f4", "score": "0.69931877", "text": "protected final void setId(int id) {\n \t\tassert id >= 0;\n\t\tthis.elementId = id;\n \t}", "title": "" }, { "docid": "21240f473b2873fe9a6ec28ac18b8f98", "score": "0.69869", "text": "public void setId(final T id) {\n\t\tthis.id = id;\n\t}", "title": "" }, { "docid": "09ec975d1529def40016e2f11f774ce4", "score": "0.69841045", "text": "public void set_id(int id){\n _id = id;\n }", "title": "" }, { "docid": "8df902f8acb701f94711c43fffb53ade", "score": "0.69779557", "text": "public void setId(int id)\n \t{\n \t\tthis.id = id;\n \t}", "title": "" }, { "docid": "3b2d502364e3e4d114863c300b618c2b", "score": "0.69556195", "text": "void setID(String id);", "title": "" }, { "docid": "e7bf7d4bc963772f49c2434eec6782ec", "score": "0.6947214", "text": "@Override\n\tpublic void setId(Integer id) {\n\t\t\n\t}", "title": "" }, { "docid": "7500c6c62148a0ab937d56dff0c29786", "score": "0.6943796", "text": "@Override\n public void setId(int id) {\n this.id = id;\n }", "title": "" }, { "docid": "bef3713f61a11ad8d6bac327590d84e0", "score": "0.6943107", "text": "public void setId(long id) {\n iId = id;\n }", "title": "" }, { "docid": "0847e73c7b4cc818acc9450f87baf6ce", "score": "0.6930584", "text": "public void setId(int id) { this.id = id; }", "title": "" }, { "docid": "0847e73c7b4cc818acc9450f87baf6ce", "score": "0.6930584", "text": "public void setId(int id) { this.id = id; }", "title": "" }, { "docid": "0847e73c7b4cc818acc9450f87baf6ce", "score": "0.6930584", "text": "public void setId(int id) { this.id = id; }", "title": "" }, { "docid": "0847e73c7b4cc818acc9450f87baf6ce", "score": "0.6930584", "text": "public void setId(int id) { this.id = id; }", "title": "" }, { "docid": "0847e73c7b4cc818acc9450f87baf6ce", "score": "0.6930584", "text": "public void setId(int id) { this.id = id; }", "title": "" }, { "docid": "0847e73c7b4cc818acc9450f87baf6ce", "score": "0.6930584", "text": "public void setId(int id) { this.id = id; }", "title": "" }, { "docid": "0847e73c7b4cc818acc9450f87baf6ce", "score": "0.6930584", "text": "public void setId(int id) { this.id = id; }", "title": "" }, { "docid": "0847e73c7b4cc818acc9450f87baf6ce", "score": "0.6930584", "text": "public void setId(int id) { this.id = id; }", "title": "" }, { "docid": "0847e73c7b4cc818acc9450f87baf6ce", "score": "0.6930584", "text": "public void setId(int id) { this.id = id; }", "title": "" }, { "docid": "0847e73c7b4cc818acc9450f87baf6ce", "score": "0.6930584", "text": "public void setId(int id) { this.id = id; }", "title": "" }, { "docid": "0847e73c7b4cc818acc9450f87baf6ce", "score": "0.6930584", "text": "public void setId(int id) { this.id = id; }", "title": "" }, { "docid": "0847e73c7b4cc818acc9450f87baf6ce", "score": "0.6930584", "text": "public void setId(int id) { this.id = id; }", "title": "" }, { "docid": "0847e73c7b4cc818acc9450f87baf6ce", "score": "0.6930584", "text": "public void setId(int id) { this.id = id; }", "title": "" }, { "docid": "0847e73c7b4cc818acc9450f87baf6ce", "score": "0.6930584", "text": "public void setId(int id) { this.id = id; }", "title": "" }, { "docid": "0847e73c7b4cc818acc9450f87baf6ce", "score": "0.6930584", "text": "public void setId(int id) { this.id = id; }", "title": "" }, { "docid": "0847e73c7b4cc818acc9450f87baf6ce", "score": "0.6930584", "text": "public void setId(int id) { this.id = id; }", "title": "" }, { "docid": "77aaad0bc84405d00c6bc6210c39c891", "score": "0.69304633", "text": "public void setId(int id) {this.id = id;}", "title": "" }, { "docid": "4f8051d51de476002d4a5d69528b4891", "score": "0.69277716", "text": "public void setNodeId(int nodeId){ this.nodeId = nodeId;}", "title": "" }, { "docid": "116357042043be687cc019eeadf2ee13", "score": "0.692753", "text": "void setId(int id);", "title": "" }, { "docid": "116357042043be687cc019eeadf2ee13", "score": "0.692753", "text": "void setId(int id);", "title": "" }, { "docid": "2f9380e950a0be9e1ff591def01e6d9e", "score": "0.69227463", "text": "public void setId(int id) {\r\n this.id = id;\r\n }", "title": "" }, { "docid": "045747e4da07ee824b41cb88099a3250", "score": "0.69164133", "text": "void setId(String id);", "title": "" }, { "docid": "045747e4da07ee824b41cb88099a3250", "score": "0.69164133", "text": "void setId(String id);", "title": "" }, { "docid": "563436e2c29a8169f2b2a840c8150f03", "score": "0.6914608", "text": "public void setId (int id) {\n this.id = id;\n }", "title": "" }, { "docid": "b4bfdd788f89f2b99dc19a364bc005b8", "score": "0.69092023", "text": "public void setId(int id){\n\t\tthis.id = id;\n\t}", "title": "" }, { "docid": "b4bfdd788f89f2b99dc19a364bc005b8", "score": "0.69092023", "text": "public void setId(int id){\n\t\tthis.id = id;\n\t}", "title": "" }, { "docid": "b4bfdd788f89f2b99dc19a364bc005b8", "score": "0.69092023", "text": "public void setId(int id){\n\t\tthis.id = id;\n\t}", "title": "" }, { "docid": "370c89ec4264533d53889698d284f277", "score": "0.6902468", "text": "public void setId(int id) {\r\n this.id = id;\r\n }", "title": "" }, { "docid": "370c89ec4264533d53889698d284f277", "score": "0.6902468", "text": "public void setId(int id) {\r\n this.id = id;\r\n }", "title": "" }, { "docid": "370c89ec4264533d53889698d284f277", "score": "0.6902468", "text": "public void setId(int id) {\r\n this.id = id;\r\n }", "title": "" }, { "docid": "370c89ec4264533d53889698d284f277", "score": "0.6902468", "text": "public void setId(int id) {\r\n this.id = id;\r\n }", "title": "" }, { "docid": "370c89ec4264533d53889698d284f277", "score": "0.6902468", "text": "public void setId(int id) {\r\n this.id = id;\r\n }", "title": "" }, { "docid": "370c89ec4264533d53889698d284f277", "score": "0.6902468", "text": "public void setId(int id) {\r\n this.id = id;\r\n }", "title": "" }, { "docid": "370c89ec4264533d53889698d284f277", "score": "0.6902468", "text": "public void setId(int id) {\r\n this.id = id;\r\n }", "title": "" }, { "docid": "12b6e591b554f388e11a9ce9c084023e", "score": "0.6902216", "text": "public void setId(String id) {\n\t\t\n\t}", "title": "" }, { "docid": "74b4a09a65e313e954b049690c4bc2cf", "score": "0.68977094", "text": "public final native void setId(int id) /*-{\n this.id = id;\n }-*/;", "title": "" }, { "docid": "94e19d7d5f3a4ed2767d2246bd5e5e22", "score": "0.6897632", "text": "public void setId(int id) {\n this.id = id;\n }", "title": "" }, { "docid": "e5e40506424a106f08233550ccf6c471", "score": "0.68954045", "text": "public void setId(int id){\n this.id = id;\n }", "title": "" }, { "docid": "e5e40506424a106f08233550ccf6c471", "score": "0.68954045", "text": "public void setId(int id){\n this.id = id;\n }", "title": "" }, { "docid": "e5e40506424a106f08233550ccf6c471", "score": "0.68954045", "text": "public void setId(int id){\n this.id = id;\n }", "title": "" }, { "docid": "96139eb9c564392c5c0319d2614db1c9", "score": "0.6893924", "text": "@Override\n public void setId(int id) {\n this.id = id;\n }", "title": "" }, { "docid": "c1e32b961d60ff2010b4b3398f29a46e", "score": "0.68927675", "text": "public void setId(String id){\r\n\t\tthis.id = id;\r\n\t}", "title": "" }, { "docid": "7377497276793a73d6f4e2f5fd6b4843", "score": "0.68896604", "text": "protected void setId(int id) {\n\t\t_id = id;\n\t}", "title": "" }, { "docid": "1ab17ca223c9aa7615cd5de9dfe79c8b", "score": "0.6889108", "text": "public void setId(int id)\n {\n this.id = id;\n }", "title": "" }, { "docid": "bacd8d0eb2db925308437e5d0dc5545e", "score": "0.688704", "text": "@Override\r\n public void setId(String id) {\n }", "title": "" }, { "docid": "0b5efb3b2f3903903b39cebe346319a1", "score": "0.68838346", "text": "public void setId( Integer id )\n {\n this.id = id ;\n }", "title": "" }, { "docid": "0b5efb3b2f3903903b39cebe346319a1", "score": "0.68838346", "text": "public void setId( Integer id )\n {\n this.id = id ;\n }", "title": "" }, { "docid": "b67bd9de7a67ab89de28e813b3bbdfef", "score": "0.6881186", "text": "public void setId(long id);", "title": "" }, { "docid": "b67bd9de7a67ab89de28e813b3bbdfef", "score": "0.6881186", "text": "public void setId(long id);", "title": "" }, { "docid": "b67bd9de7a67ab89de28e813b3bbdfef", "score": "0.6881186", "text": "public void setId(long id);", "title": "" }, { "docid": "dd941c0fac47c2be665ca9de3bc2951d", "score": "0.6880751", "text": "public void setId(int value) {\n this.id = value;\n }", "title": "" }, { "docid": "dd941c0fac47c2be665ca9de3bc2951d", "score": "0.6880751", "text": "public void setId(int value) {\n this.id = value;\n }", "title": "" }, { "docid": "dd941c0fac47c2be665ca9de3bc2951d", "score": "0.6880751", "text": "public void setId(int value) {\n this.id = value;\n }", "title": "" }, { "docid": "dd941c0fac47c2be665ca9de3bc2951d", "score": "0.6880751", "text": "public void setId(int value) {\n this.id = value;\n }", "title": "" }, { "docid": "dd941c0fac47c2be665ca9de3bc2951d", "score": "0.6880751", "text": "public void setId(int value) {\n this.id = value;\n }", "title": "" }, { "docid": "dd941c0fac47c2be665ca9de3bc2951d", "score": "0.6880751", "text": "public void setId(int value) {\n this.id = value;\n }", "title": "" }, { "docid": "dd941c0fac47c2be665ca9de3bc2951d", "score": "0.6880751", "text": "public void setId(int value) {\n this.id = value;\n }", "title": "" }, { "docid": "dd941c0fac47c2be665ca9de3bc2951d", "score": "0.6880751", "text": "public void setId(int value) {\n this.id = value;\n }", "title": "" }, { "docid": "dd941c0fac47c2be665ca9de3bc2951d", "score": "0.6880751", "text": "public void setId(int value) {\n this.id = value;\n }", "title": "" }, { "docid": "ae0f4b2c08ddd4905e206c5640b8e069", "score": "0.68733716", "text": "@Override\n\tpublic void setId(int id) {\n\t\tsuper.setId(id);\n\t}", "title": "" }, { "docid": "ae0f4b2c08ddd4905e206c5640b8e069", "score": "0.68733716", "text": "@Override\n\tpublic void setId(int id) {\n\t\tsuper.setId(id);\n\t}", "title": "" }, { "docid": "f37f67721a56860930fe205d6cb9c26b", "score": "0.6872956", "text": "@Override\n public void setId(Integer id) {\n super.setId(id);\n }", "title": "" }, { "docid": "c02d7bef310be52be706277144fd6711", "score": "0.6872384", "text": "void setId(T id);", "title": "" }, { "docid": "ed98d8f1b03990961734c3a0a3c0eafc", "score": "0.6870597", "text": "@Override\n\tpublic void setId(String id) {\n\t\t\n\t}", "title": "" }, { "docid": "ad8981513e1ce92442258ed488cf34d9", "score": "0.68664277", "text": "void setId(long id){\n\t\tthis.id = id;\n\t}", "title": "" }, { "docid": "07824ad1f62e46b94516c85d7ced2725", "score": "0.6863774", "text": "public void setId(String id) {\n }", "title": "" }, { "docid": "4346e5a854bafebc22dbca1980d8631f", "score": "0.68625706", "text": "public void setId(String id) { this.id = id; }", "title": "" }, { "docid": "4346e5a854bafebc22dbca1980d8631f", "score": "0.68625706", "text": "public void setId(String id) { this.id = id; }", "title": "" }, { "docid": "605caa4cb7aea4133af9d212d98594d3", "score": "0.685693", "text": "public void setId(java.lang.Integer id) { \n this.id = id; \n }", "title": "" }, { "docid": "2c9e18582b5e38d7fd237db0b62090cd", "score": "0.68551534", "text": "public void setId(String id) {this.id = id;}", "title": "" }, { "docid": "51e5dfeede2169b6642c80fddf219b90", "score": "0.6849742", "text": "public void setId(int value) {\n this.id = value;\n }", "title": "" }, { "docid": "e8e66617e4d5d8172f8ad2c9bb32cdf7", "score": "0.68460715", "text": "public void setId(int id) {\n\tthis.id = id;\n }", "title": "" }, { "docid": "e8e66617e4d5d8172f8ad2c9bb32cdf7", "score": "0.68460715", "text": "public void setId(int id) {\n\tthis.id = id;\n }", "title": "" } ]
a9f29557dff47a4a8456628cdad4041e
Returns all valid topological sort ordering of vertices starting at root vertex
[ { "docid": "6efbf60afe9267370f764ab865ab1d5b", "score": "0.0", "text": "public static List<Team> topologicalSort(List<Team> teams) {\n List<Team> result = new LinkedList<>();\n return result;\n }", "title": "" } ]
[ { "docid": "c450d77d380b300630fd9a15f1421cb4", "score": "0.71144116", "text": "static void allTopologicalSorts() {\n int[] indegree = new int[graph.v];\n boolean[] visited = new boolean[graph.v];\n List<Integer> list = new ArrayList<>();\n\n for (int idx = 0; idx < graph.v; idx++) {\n for (int node : graph.adj[idx]) {\n indegree[node]++;\n }\n }\n\n allTopologicalSorts(list, visited, indegree);\n }", "title": "" }, { "docid": "bff6bd005eaf0461d37ddb05d12d0355", "score": "0.6896987", "text": "public List<Node<W>> topologicalOrdering(){\n HashMap<Node<W>,Integer> nodeIncomingEdges = incomingEdges();\n List<Node<W>> sortedList = new ArrayList<>();\n Stack<Node<W>> nodeSet = new Stack<>();\n\n for(Node<W> startNode : nodeIncomingEdges.keySet())\n System.out.println(\"startnode \" + startNode.getID() + \" edges \" + nodeIncomingEdges.get(startNode));\n\n for(Node<W> startNode : nodeIncomingEdges.keySet())\n if(nodeIncomingEdges.get(startNode) == 0)\n nodeSet.push(startNode);\n\n while(!nodeSet.isEmpty()){\n Node<W> node = nodeSet.pop();\n sortedList.add(node);\n\n HashMap<Node, W> edges = node.getEdges();\n for(Node<W> edgeNode : edges.keySet()) {\n nodeIncomingEdges.put(edgeNode, nodeIncomingEdges.get(edgeNode) - 1);\n\n if (nodeIncomingEdges.get(edgeNode) == 0)\n nodeSet.push(edgeNode);\n\n }\n }\n return sortedList;\n }", "title": "" }, { "docid": "67fc4003591c6ab6ab2c3f01beb1b1f5", "score": "0.6771083", "text": "public static List<Vertex> topologicalSort (Graph g) {\n ArrayList<Vertex> totalOrder = new ArrayList<Vertex>();\n g.initGraph();\n for(Vertex v : g.vertices){\n if(!v.seen){\n visit(v, totalOrder);\n }\n }\n return totalOrder;\n }", "title": "" }, { "docid": "02e9ff2315848f21cb78a0ec8e38481f", "score": "0.67123026", "text": "public List<Vertex> topologicalSort() {\r\n // YOUR CODE HERE\r\n\r\n //Create a linked list holding the vertices\r\n LinkedList<Vertex> sorted = new LinkedList<Vertex>();\r\n boolean added = false;\r\n //for loop to check each vertex and test its sorted order\r\n for(Vertex v : myVertices){\r\n\r\n for(Vertex x : sorted){\r\n //If v has fewer in neighbors, add to end of list\r\n if(inNeighbors(v).size() < inNeighbors(x).size()) {\r\n sorted.add(sorted.indexOf(x), v);\r\n added = true;\r\n break;\r\n }\r\n }\r\n //Check if added inside the for loop\r\n if(added){\r\n added = false;\r\n continue;\r\n }\r\n //Add it to the end\r\n sorted.add(v);\r\n }\r\n return sorted;\r\n }", "title": "" }, { "docid": "a2776cafc38c8c265d6f038447ede577", "score": "0.67070776", "text": "public List<Integer> topologicSort() {\n int[] indegree = new int[this.adj.length];\n for(List<Integer> adjs : this.adj) {\n for(int i = 0; i < adjs.size(); i++) {\n indegree[adjs.get(i)] += 1;\n }\n }\n\n //step 2, pick up the in-degree 0 vertex and insert into queue.\n Queue<Integer> zeroQueue = new LinkedList<>();\n for(int i = 0; i < indegree.length; i++) {\n if(indegree[i] == 0) zeroQueue.offer(i);\n }\n\n //step 3, poll the zero in-degree vertex out and recompute the indegree for the neighbors.\n List<Integer> res = new ArrayList<>();\n while (!zeroQueue.isEmpty()) {\n int vertex = zeroQueue.poll();\n res.add(vertex);\n //re-compute the indegress for the neighbors.\n for(int v : this.adj[vertex]) {\n indegree[v] -= 1;\n if(indegree[v] == 0) {\n zeroQueue.offer(v);\n }\n }\n }\n return res;\n }", "title": "" }, { "docid": "bc314a5be21b4798bb509b2b2ff4e7cb", "score": "0.65846014", "text": "public List<String> topologicalSort()\n {\n // TODO: Find cycles\n if(!isDirected())\n {\n System.out.println(\"Can't topological sort an undirected graph.\");\n return null;\n }\n else\n {\n ArrayList<LinkedList<String>> topologicalSort = new ArrayList<LinkedList<String>>();\n while(processed < vertexCount)\n {\n for(int i = 0; i < vertexDataList.size(); i++)\n {\n if(vertexDataList\n .get(vertexDataList.keySet().toArray()[i])\n .getState() == State.States.UNDISCOVERED)\n {\n depthFirstSearch((String)vertexDataList.keySet().toArray()[i]);\n }\n }\n ListIterator<String> listIterator = dfs.listIterator();\n LinkedList<String> component = new LinkedList<String>();\n while(listIterator.hasNext())\n {\n String next = listIterator.next();\n component.add(next);\n }\n topologicalSort.add(component);\n dfs = new Stack<String>();\n }\n int i = 0;\n Stack<String> sort = new Stack<String>();\n while(i < topologicalSort.size())\n {\n LinkedList<String> component = topologicalSort.get(i);\n while(!component.isEmpty())\n {\n String node = component.pop();\n sort.push(node);\n }\n i++;\n }\n LinkedList<String> master = new LinkedList<String>();\n while(!sort.isEmpty())\n {\n master.add(sort.pop());\n }\n return master;\n }\n }", "title": "" }, { "docid": "78e23a31dedac2d76a0ab8c38540dfab", "score": "0.64947796", "text": "public void topologicalSort() {\n\n\t\tboolean[] visited = new boolean[edges.length];\n\n\t\tfor (int i = 0; i < visited.length; i++) {\n\t\t\tif (!visited[i]) {\n\t\t\t\texplore(i, visited);\n\t\t\t}\n\t\t}\n\n\t}", "title": "" }, { "docid": "4c44a0e8c959448a3f1e5ccdbd9be91a", "score": "0.6464322", "text": "@Override\r\n\tpublic List<Integer> topologicalSort() {\r\n\t\tList<Integer> topological = new ArrayList<Integer>();\r\n\t\t//create a new array to store each vertex's In-Degree (number of incoming edges)\r\n\t\tint sum[] = new int[size];\r\n\t\t\r\n\t\tfor(int i = 0; i< size; i++)\r\n\t\t\tfor(int j = 0; j < size; j++)\r\n\t\t\t\tsum[i] += matrix[j][i];\r\n\t\t\r\n\t\t//check if this graph is a DAG (Directed Acyclic Graph)\r\n\t\tif(findZero(sum) != -1) {\r\n\t\t\tfor (int count = 0; count < size; count++) {\r\n\t\t\t\t//declare an variable to store the first vertex with In-Degree is 0\r\n\t\t\t\tint in_degree0 = findZero(sum);\r\n\t\t\t\ttopological.add(in_degree0);\r\n\t\t\t\tsum[in_degree0] = -1;\r\n\t\t\t\t\r\n\t\t\t\t//Reduce In-Degree of all vertices adjacent to it by 1\t\t\t\t\r\n\t\t\t\tfor (int newSum = 0; newSum < size; newSum++)\r\n\t\t\t\t\tsum[newSum] -= matrix[in_degree0][newSum];\r\n\t\t\t}\r\n\t\t}else\r\n\t\t\tSystem.out.println(\"Topological Sorting is not possible fot this graph which is not a DAG (Directed Acyclic Graph).\\n\");\r\n\t\t\r\n\t\treturn topological;\r\n\t}", "title": "" }, { "docid": "7a41559953048922208aa58795c7bdfc", "score": "0.64312804", "text": "void topologicalSort() {\n Stack stack = new Stack();\n\n // Mark all the vertices as not visited\n boolean visited[] = new boolean[V];\n for (int i = 0; i < V; i++){ visited[i] = false;}\n\n // Call the recursive helper function to store\n // Topological Sort starting from all vertices\n // one by one\n for (int i = 0; i < V; i++) {\n if (visited[i] == false)\n topologicalSortUtil(i, visited, stack);\n }\n int index = stack.size();\n // Print contents of stack\n while (stack.empty() == false) {\n System.out.println(\"Executed: \" + \"[\" + index-- + \"] --> \" + stack.pop() + \" \");\n }\n }", "title": "" }, { "docid": "b41c0c97329c97d4176fc9bfb91190ed", "score": "0.6374784", "text": "public long enumerateTopologicalOrders() {\n\t\t\t// To do\n\t\t\t//dagChecker()\n\t\t\tthis.tp_count=0;\n\t\t\tXGraph xg=new XGraph(g);\n\t\t\tList<XVertex> vl=new LinkedList<XVertex>();\n\t\t\tfor(Vertex v:xg){\n\t\t\t\tif(sv[v.name].indegree==0){\n\t\t\t\t\tvl.add((XVertex)v);\n\t\t\t\t}\n\t\t\t}\n\t\t\tVertex[] arr=new Vertex[g.size()];\n\t\t\tfor(XVertex v: vl){\n\t\t\ttopologicalOrderHelper(xg,v,1,true,arr);\n\t\t\t}\n\t\t\treturn this.tp_count;\n\t\t}", "title": "" }, { "docid": "7ad9ac95aed67b8357ed106abdc99ebc", "score": "0.6368222", "text": "@Override\n public void performTopologicalSort() {\n boolean[] visited = new boolean[this.numVertices];\n\n // Initialize stack\n Deque<Integer> recursionStack = new LinkedBlockingDeque<>();\n\n // Call topologicalSortUtil() for all vertices which are not yet visited\n for (int vertex = 0; vertex < this.numVertices; vertex++) {\n if (!visited[vertex]) {\n topologicalSortUtil(vertex, visited, recursionStack);\n }\n }\n\n // Print the topological sort\n System.out.println(\"Topological sorting of given graph:\");\n while (!recursionStack.isEmpty()) {\n System.out.print(recursionStack.pop() + \", \");\n }\n System.out.println();\n }", "title": "" }, { "docid": "e0338b51766c469a52b96a0fb82059cd", "score": "0.6254482", "text": "private void assignOrderNoDependents(Vertex rootVertex) throws CyclicGraphException{\n\t\tLinkedList<Integer> tempList = rootVertex.getAdjacencyList();\n\t\t//again, if it's an isolated vertex, just return\n\t\tif (tempList.isEmpty()){\n\t\t\treturn;\n\t\t} else{\n\t\t\tfor (int i = 0; i < tempList.size(); i++){\n\t\t\t\tint nextID = tempList.get(i);\n\t\t\t\tVertex nextVertex = findVertexByID(nextID);\n\t\t\t\tif (nextVertex.getAdjacencyList().isEmpty()){\n\t\t\t\t\tif(nextVertex.visited){\n\t\t\t\t\t\tSystem.out.println(\"Cycle Detected!\");\n\t\t\t\t\t\tthrow new CyclicGraphException();\n\t\t\t\t\t}\n\t\t\t\t\tnextVertex.setVisited();\n\t\t\t\t\tsortCounter++;\n\t\t\t\t\tnextVertex.setTopSort(sortCounter);\n\t\t\t\t} else{\n\t\t\t\t\t\n\t\t\t\t\t//skip over the verticies identified with dependencies\n\t\t\t\t\tassignOrderNoDependents(nextVertex);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "9b9abe085e705f7c6be1eecbf66cc578", "score": "0.6193272", "text": "private void topologicalSort(int v){\n }", "title": "" }, { "docid": "bd9153e2821847c9b920d25aaef1b3e9", "score": "0.60636383", "text": "private void sort()\n\t{\n\t\tDSALinkedList<Vertex> sortingVertexList = new DSALinkedList<Vertex>();\n\t\tDSAQueue<Vertex> queue;\n\t\tDSALinkedList<Vertex> sortedVertexList;\n\t\t\t\t\t\n\t\tqueue = calcSource();\n\t\tsortedVertexList = sortVertexRecurse(queue, sortingVertexList);\n\t\tsortEdge(sortedVertexList);\n\t}", "title": "" }, { "docid": "351e0a6423ceaac929472741121d13c4", "score": "0.6023239", "text": "static int[] topoSort(int V, ArrayList<ArrayList<Integer>> adj){\n \n int inDegree[] = new int[V];\n int top[] = new int[V];\n \n for(ArrayList<Integer> list : adj){\n for(int v : list){\n inDegree[v]++;\n } \n }\n \n // for(int i=0; i<V; i++){\n // System.out.println(i+ \" \" + inDegree[i]);\n // }\n \n Queue<Integer> queue = new LinkedList<>();\n \n for(int i=0; i<V; i++){\n if(inDegree[i]==0){\n queue.add(i);\n }\n }\n \n int t=0;\n while(!queue.isEmpty()){\n \n int v = queue.poll();\n top[t++] = v;\n ArrayList<Integer> list = adj.get(v);\n \n for(int currV : list){\n inDegree[currV]--;\n if(inDegree[currV] == 0){\n queue.add(currV);\n }\n }\n }\n \n return top;\n \n }", "title": "" }, { "docid": "f6eb584cb02e86b9e33d49f2c568b0cc", "score": "0.60084033", "text": "private void sortNodes()\n\t{\n\t\tsortedNodes = new ArrayList<Integer>();\n\t\tsortedNodes.add(0);\n\t\tfor(int i=1;i<G.length;i++)\n\t\t\tsortedNodes.add(searchDegreePosition(G[i].getDegree(),0,sortedNodes.size()), i);\n\t}", "title": "" }, { "docid": "2e3859b37979dff5ec105a7d67c82fab", "score": "0.5967553", "text": "public void topologicalSort(Vertex start) {\n\t\tif (start == null || start.isVisited())\n\t\t\treturn;\n\t\tstart.setVisit();\n\t\tstart.setDFSStartTime(this.time++);\n\t\tfor (Vertex v : this.getChildren(start)) {\n\t\t\tif (!v.isVisited()) {\n\t\t\t\ttopologicalSort(v);\n\t\t\t}\n\t\t}\n\t\tstart.setDFSEndTime(this.time++);\n\t}", "title": "" }, { "docid": "9ee75396281a66f0f7e0dcc17a4324c3", "score": "0.59605825", "text": "private List<DP_State_Node> topological_order()\n {\n DP_State_Node cur_node, child;\n\n // The visited nodes will be returned in a stack\n List<DP_State_Node> res = new ArrayList<DP_State_Node>();\n // The DFS procedure needs a stack for a non-recursive implementation\n Stack<DP_State_Node> dfs_stack = new Stack<DP_State_Node>();\n // We also need to record which nodes have been visited\n Set<DP_State_Node> visited = new HashSet<DP_State_Node>();\n // Initialize by going to the starting node\n dfs_stack.push(starting_node);\n\n while (!dfs_stack.isEmpty())\n {\n cur_node = dfs_stack.pop();\n\n if (visited.contains(cur_node))\n {\n // This node has already been visited\n // Since we popped it again, it means that we have also visited all of its children\n // So now is the time to add it to the topological sort order\n res.add(cur_node);\n }\n else\n {\n visited.add(cur_node);\n // Add the node again to the stack so that we know when we are done visiting its children\n dfs_stack.push(cur_node);\n // Add its children to the stack\n for (DP_Decision edge : cur_node.get_decisions())\n {\n child = edge.target;\n if (!visited.contains(child)) dfs_stack.push(child);\n }\n }\n }\n return res;\n }", "title": "" }, { "docid": "3b63ca77d08d17941567c4298ecf4484", "score": "0.59260726", "text": "private void assignOrderDependents(Vertex rootVertex)throws CyclicGraphException{\n\t\tLinkedList<Integer> tempList = rootVertex.getAdjacencyList();\n\t\t//if our root vertx is isolated and has no dependencies\n\t\tif (tempList.isEmpty()){\n\t\t\trootVertex.setVisited();\n\t\t\treturn;\n\t\t} else {\n\t\t\tfor (int i = 0; i < tempList.size(); i++){\n\t\t\t\tint nextID = tempList.get(i);\n\t\t\t\tVertex nextVertex = findVertexByID(nextID);\n\t\t\t\t\n\t\t\t\t//skip over non-dependent elements the first time around\n\t\t\t\tif (nextVertex.getAdjacencyList().isEmpty()){\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tif(nextVertex.visited){\n\t\t\t\t\t\tSystem.out.println(\"Cycle Detected!\");\n\t\t\t\t\t\t//break;\n\t\t\t\t\t\tthrow new CyclicGraphException(); // <----------changed this during last edit\n\t\t\t\t\t}\n\t\t\t\t\tnextVertex.setVisited();\n\t\t\t\t\tsortCounter++;\n\t\t\t\t\tnextVertex.setTopSort(sortCounter);\n\t\t\t\t\tassignOrderDependents(nextVertex);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "fbe91dfe9ff1b176ca4567f1fc4473e0", "score": "0.5850297", "text": "private List<Integer> createOrder(Set<Integer> roots) {\n // Initialize the temporary list that contains string IDs which need to be visited\n Deque<Integer> deque = new LinkedList<>(roots);\n // Initialize the result that contains at the end all ordered string IDs in their order\n List<Integer> result = new LinkedList<>();\n\n // While the temporary list contains string IDs, continue\n while (!deque.isEmpty()) {\n // Rotate a string ID at the first position that is the best candidate fo being the next ID in the\n // resulting list\n rotateToCandidate(deque, result, 0);\n\n // Find all siblings of the first string ID (including itself) and add it to the resulting list. So all\n // siblings stay close together to make the process of translating easier\n Set<Integer> siblings = findSiblings(deque.removeFirst());\n deque.removeAll(siblings);\n result.addAll(siblings);\n\n // Add all children of the siblings to the temporary list\n LinkedList<Integer> children = new LinkedList<>();\n for (int each : siblings) {\n children.addAll(idsToDialogs.get(each).getChildren());\n }\n Iterator<Integer> reverseIterator = children.descendingIterator();\n while (reverseIterator.hasNext()) {\n int child = reverseIterator.next();\n if (!deque.contains(child) && !result.contains(child)) {\n deque.addFirst(child);\n }\n }\n }\n return result;\n }", "title": "" }, { "docid": "156281bb318099a783329cd2491190cb", "score": "0.58417237", "text": "public int[] sortRoot(){\n \t int count = 0;\n \t for(int i = 0; i < S.length; i++){\n \t\tif(S[i] < 0){\n \t\t count++;\n \t\t}\n \t }\n \t int[] rootDsf = new int[count];\n \t int j = 0;\n \t for(int i = 0; i < S.length; i++){\n \t\t if(S[i] < 0){\n \t\t\t rootDsf[j] = S[i];\n \t\t\t j++;\n \t\t }\n \t }\n \t Arrays.sort(rootDsf);\n \t return rootDsf;\n }", "title": "" }, { "docid": "0bbbde6b6d8ac2f099ae2c2451c95e29", "score": "0.5836605", "text": "public String topologicalSort(T element) throws CyclicGraphException{\t\t\n\t\t//first reset counter and topSort values for multiple method calls from GUI\n\t\tsortCounter = 0; \n\t\t\n\t\tfor (int i = 0; i < vertexList.size(); i++){\n\t\t\tvertexList.get(i).setTopSort(-1);\n\t\t}\n\t\t\n\t\t//at a minimum, we'll return the vertex passed into this method\n\t\tVertex rootVertex = findVertex(element); //linearly traversing the structure looking for a match seems wasteful\n\t\trootVertex.setTopSort(sortCounter);\t\t//root vertex starts with 0 topSort value (must be more than -1)\n\t\tString str = \"\";\t\t\t\t\t\t//instantiate String for later processing\n\n\t\t//set all vertex boolean values to false before our topological sort\n\t\tfor (int i = 0; i < vertexList.size(); i++){\n\t\t\tvertexList.get(i).setUnvisited();\n\t\t}\n\t\t\n\t\t//process vertices with dependent nodes first, then those without second\n\t\tassignOrderDependents(rootVertex);\n\t\tassignOrderNoDependents(rootVertex);\n\t\t\n\t\t//now piece the returned string together\n\t\tfor (int i = 0; i < sortCounter+1; i++){\n\t\t\tVertex nextVertex = findVertexByTopSort(i);\n\t\t\tT insertElement = nextVertex.element;\t//grab element from HashMap\n\t\t\tString insert = insertElement.toString();\n\t\t\tstr += \" \" + insert;\n\t\t}\n\t\treturn str;\n\t}", "title": "" }, { "docid": "30c50de623375293bbcabf1e3a2786b8", "score": "0.5786323", "text": "public static final List<Graph.Vertex<Integer>> sort(Graph<Integer> graph) {\n if (graph == null)\n throw new IllegalArgumentException(\"Graph is NULL.\");\n\n if (graph.getType() != Graph.TYPE.DIRECTED)\n throw new IllegalArgumentException(\"Cannot perform a topological sort on a non-directed graph. graph type = \"+graph.getType());\n\n List<Graph.Vertex<Integer>> sorted = new ArrayList<Graph.Vertex<Integer>>();\n List<Graph.Vertex<Integer>> noOutgoing = new ArrayList<Graph.Vertex<Integer>>();\n\n List<Graph.Edge<Integer>> edges = new CopyOnWriteArrayList<Graph.Edge<Integer>>();\n edges.addAll(graph.getEdges());\n\n for (Graph.Vertex<Integer> v : graph.getVerticies()) {\n if (v.getEdges().size() == 0)\n noOutgoing.add(v);\n }\n while (noOutgoing.size() > 0) {\n Graph.Vertex<Integer> v = noOutgoing.remove(0);\n sorted.add(v);\n for (Graph.Edge<Integer> e : edges) {\n Graph.Vertex<Integer> v2 = e.getFromVertex();\n Graph.Vertex<Integer> v3 = e.getToVertex();\n if (v3.equals(v)) {\n edges.remove(e);\n v2.getEdges().remove(e);\n }\n if (v2.getEdges().size() == 0)\n noOutgoing.add(v2);\n }\n }\n if (edges.size() > 0)\n return null;\n return sorted;\n }", "title": "" }, { "docid": "a848f02b8b441cbc15f639d830b64c85", "score": "0.5778146", "text": "public static List<List<ProvVertex>> sortConnectedVertLoop(List<ProvVertex> verts) {\r\n List<List<ProvVertex>> result = new ArrayList<>();\r\n List<ProvVertex> availVerts = new ArrayList(verts);\r\n\r\n /* keep creating new sets of lists until no verts are left */\r\n while (availVerts.size() > 0) {\r\n /* intialize next set of verts */\r\n List<ProvVertex> nextList = new ArrayList<>(availVerts.size());\r\n result.add(nextList);\r\n\r\n ProvVertex next = availVerts.get(0);\r\n availVerts.remove(0);\r\n ProvVertex prev;\r\n /* keep adding connected verts to this list until this set is done */\r\n while (next != null) {\r\n nextList.add(next);\r\n availVerts.remove(next);\r\n\r\n List<RefVertex> adjs = next.getNeighbors();\r\n prev = next;\r\n next = null;\r\n /* find vertex that is connected by a border edge */\r\n for (RefVertex i : adjs) {\r\n if (i instanceof ProvVertex && !nextList.contains((ProvVertex)i)\r\n && availVerts.contains((ProvVertex)i)\r\n && !Province.sameOwner(prev.getSharedProvinces((ProvVertex)i))) {\r\n next = (ProvVertex)i;\r\n break;\r\n }\r\n }\r\n }\r\n }\r\n\r\n return result;\r\n }", "title": "" }, { "docid": "92659537fc4aac9dbc5111252c40051c", "score": "0.5767509", "text": "public List<Integer> preorderTraversal(TreeNode root) {\n return preMethod4(root);\n }", "title": "" }, { "docid": "fcbc7f63f6e2a321ccfdf8a27a975579", "score": "0.5677276", "text": "public List<Character> topSort(){\n Set<Character> visited = new HashSet<>();\n LinkedList<Character> results = new LinkedList<>();\n for( Character node: graph.keySet() ){\n if ( !visited.contains(node) ) {\n topSortUtil( node, visited, results );\n }\n }\n return results;\n }", "title": "" }, { "docid": "d664853899d3c702ce37448ed9aeb6aa", "score": "0.56321526", "text": "public List<List<Integer>> levelOrder(Node root) {\n List<List<Integer>> results = new ArrayList<>();\n levelOrder(root, 1, results);\n return results;\n }", "title": "" }, { "docid": "7595e886be7b53b8fbee512b39b4bdd4", "score": "0.56015056", "text": "public List<Node> topologicalTraversal() {\n\t\treturn Collections.unmodifiableList(getToplogicalTraversalImplementation());\n\t}", "title": "" }, { "docid": "6fd9db1c644336c383a3c12a388de7d3", "score": "0.5594981", "text": "public ArrayList<Integer> preorderTraversal(TreeNode root) {\n ArrayList<Integer> res = new ArrayList<Integer>();\n preorderTraversal(root,res);\n return res;\n }", "title": "" }, { "docid": "639b71fc544e64f7bd286e3fca8d0818", "score": "0.55808806", "text": "public static LinkedList<Integer> topSort(Graph g) {\n int n = g.nVertices();\n LinkedList<Integer> ans = new LinkedList<Integer>();\n //Check for a cycle\n LinkedList<Integer> l2 = findCycle(g);\n if(l2.size() != 0) {\n return ans;\n }\n //Loop through vertices\n LinkedList<Integer> Verts = new LinkedList<Integer>();\n ArrayList<Integer> verts = new ArrayList<Integer>();\n for(int i=0; i<n; i++) {\n verts.add(i);\n }\n //Check to see if it is a source\n while(verts.size() != 0) {\n for(int i=0; i<verts.size(); i++) {\n if(g.inDegree(verts.get(i))==0) {\n ans.add(verts.get(i));\n //Remove all edges\n for(int m=0; m<n; m++){\n g.removeEdge(verts.get(i),m);\n }\n verts.remove(i);\n }\n }\n }\n return ans;\n }", "title": "" }, { "docid": "f7ed9ee38939856809414ee0701c3b08", "score": "0.5573516", "text": "public ArrayList<Integer> getPreorderTraversal()\n {\n ArrayList<Integer> result = new ArrayList<>();\n return recursivePT(root, result);\n }", "title": "" }, { "docid": "c1edb9f61b89f7f4dde975353eeb13dc", "score": "0.5573369", "text": "public void topologicalSortDFS(int V, int[][] edges) {\n\t\tGraph g = new Graph(V);\n\t\tfor (int [] edge: edges) {\n\t\t\tg.addEdge(edge[0], edge[1], false);\n\t\t}\n\t\tArrayList<Integer>[] adjLs = g.getAdjacencyList();\n\t\t\n\t\tboolean [] visited = new boolean[V];\n\t\tLinkedList<Integer> ordering = new LinkedList<>();\n\t\t\n\t\tfor (int i=0; i<V; i++) {\n\t\t\tif (!visited[i]) {\n\t\t\t\tDFS(i, visited, adjLs, ordering);\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor (int i=0; i<ordering.size(); i++) {\n\t\t\tSystem.out.print(ordering.get(i)+\" \");\n\t\t}\n\t}", "title": "" }, { "docid": "694de477e87c85c9aeea5d565c74e2e9", "score": "0.5562465", "text": "public List<String> getDependenciesInOrder() {\n\n ArrayList<String> result = new ArrayList<>();\n\n // return a depth-first traversal of the graph\n TopologicalOrderIterator<String, DefaultEdge> itr = new TopologicalOrderIterator<>(graph);\n while(itr.hasNext()) {\n String v = itr.next();\n result.add(0, v); // push onto the list\n }\n\n return result;\n }", "title": "" }, { "docid": "262ac9fa039e7c97182b0d8763e0c8bd", "score": "0.5549098", "text": "public void testTopologicalOrdering(List<Component> ordering){\n\t\tfor (int i = 1; i < ordering.size(); i++){\n\t\t\tHashSet<Component> prev = new HashSet<Component>(ordering.subList(0, i));\n\t\t\tSet<Component> inputs_c = ordering.get(i).getInputs();\n\t\t\tHashSet<Component> inputs = new HashSet<Component>();\n\t\t\tfor (Component c : inputs_c){\n\t\t\t\tif (!(c instanceof Transition)){\n\t\t\t\t\tinputs.add(c);\n\t\t\t\t}\n\t\t\t}\n\t\t\tinputs.removeAll(prev);\n\t\t\tif (!inputs.isEmpty()){\n\t\t\t\tthrow new Error(\"[PropNet] Ordering is not topological\");\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "ab2edfefd98654c237dfd910e1c595d4", "score": "0.55399585", "text": "public void preorder()\n {\n preorder(root);\n }", "title": "" }, { "docid": "1cf614ce10706c5e304947d95b5fc435", "score": "0.55328345", "text": "public ISet<E> findMinimumSpanningTree() {\n ArrayDisjointSet<V> tree = new ArrayDisjointSet<>();\n\n for (KVPair<V, IList<E>> vertex : dict) {\n tree.makeSet(vertex.getKey());\n }\n\n\n ISet<E> edgeSet = new ChainedHashSet<>();\n IList<E> sortEdges = Sorter.topKSort(numEdges(), edges);\n\n for (E sortedEdge : sortEdges) {\n V vertex1 = sortedEdge.getVertex1();\n V vertex2 = sortedEdge.getVertex2();\n if (tree.findSet(vertex1) != tree.findSet(vertex2)) {\n tree.union(vertex1, vertex2);\n edgeSet.add(sortedEdge);\n }\n }\n return edgeSet;\n }", "title": "" }, { "docid": "98b3214030253d5c1a32d6a23e814dfb", "score": "0.5510887", "text": "static void topologicalSorting(Graph graph) {\n\t\tfor (int i = 0; i < graph.size(); ++i) {\n\t\t\tgraph.get(i).color = Color.WHITE;\n\t\t}\n\n\t\t/* Pornim DFS din noduri. */\n\t\ttime = 0;\n\t\tfor (int i = 0; i < graph.size(); ++i) {\n\t\t\tif (graph.get(i).color == Color.WHITE) {\n\t\t\t\tdfs(graph.get(i));\n\t\t\t}\n\t\t}\n\n\t\t/*\n\t\t * Si acum vom sorta descrescator dupa timpul de finish pentru a obtine\n\t\t * o ordonare topologica.\n\t\t */\n\t\tCollections.sort(graph);\n\t}", "title": "" }, { "docid": "5d3288af8c1207a3a7d2c91af7b9e619", "score": "0.55094624", "text": "private void preOrder(Node localRoot) { // hacemos el recorrido en preOrder y necesitamos la raiz\n if (localRoot != null) { //cuando la raiz es diferente de null, osea cuando si existen nodos podemos hacer el recorrido\n System.out.print(localRoot.iData + \" \"); //prmero visitamos el la raiz y nos muestra\n preOrder(localRoot.leftChild); //visita los nodos izquierdo, despues la del lado derecho\n preOrder(localRoot.rightChild); //visita los nodos del lado derecho\n }\n }", "title": "" }, { "docid": "6e5162a24d21c9a0436c8347914850a2", "score": "0.550245", "text": "public void preOrder(Node root) {\n if (root != null) {\n System.out.println(root.id);\n preOrder(root.left);\n preOrder(root.right);\n }\n }", "title": "" }, { "docid": "f6767c676156c23e50275507da44504a", "score": "0.54774374", "text": "public static List<List<Integer>> zigzagLevelOrder(TreeNode root) {\n\t\t\n\t\tint depth = getHeight(root);\n\t\tList<List<Integer>> ret = new ArrayList<List<Integer>>(depth);\n\t\tif(depth==0) return ret;\n\t\tfor(int i=0;i<depth;i++){\n\t\t\tret.add(i, new ArrayList<Integer>());\n\t\t}\n\t\tDFS(root, ret, 0);\n\t\tfor(int j=1;j<depth;j+=2){\n\t\t\tCollections.reverse(ret.get(j));\n\t\t}\n\t\treturn ret;\n }", "title": "" }, { "docid": "77546553dbb842240ed0e630d65af7a0", "score": "0.5468693", "text": "int[] findOrdering(int maxO) {\n int[] inEdges = new int[N];\n for (ArrayList<Edge> edges : graph) {\n for (Edge edge : edges) {\n if (edge.o <= maxO) inEdges[edge.n]++;\n }\n }\n // System.out.println(Arrays.toString(inEdges));\n\n // Find nodes with 0 inEdges\n PriorityQueue<Integer> pq = new PriorityQueue<>();\n for (int i = 0; i < N; i++) {\n if (inEdges[i] == 0) pq.add(i);\n }\n\n // Main loop\n int numNodesAdded = 0;\n int index = 0;\n int c;\n int[] ordering = new int[N];\n while (!pq.isEmpty()) {\n c = pq.poll();\n ordering[index] = c + 1;\n index++;\n // Minus 1 from inEdges for all c's neighbors\n for (Edge edge : graph[c]) {\n if (edge.o > maxO) break;\n inEdges[edge.n]--;\n if (inEdges[edge.n] == 0) pq.add(edge.n);\n }\n }\n\n return ordering;\n }", "title": "" }, { "docid": "803c8780578970b9bcb1f65eb3e32b13", "score": "0.5466716", "text": "static void verticalOrder(Node root)\n {\n TreeMap<Integer,ArrayList<Integer>> map = new TreeMap<>();\n Queue<Pair> q = new LinkedList<>();\n \n Pair p = new Pair();\n p.node = root;\n p.level = 0;\n q.add(p);\n while(q.size() > 0){\n \n int N = q.size();\n \n for(int i = 0; i < N; i++){\n \n Pair cp = q.poll();\n \n int level = cp.level;\n Node curr = cp.node;\n \n if(map.containsKey(level)){\n map.get(level).add(curr.data);\n } else{\n ArrayList<Integer> l = new ArrayList<>();\n l.add(curr.data);\n map.put(level,l);\n }\n \n if(curr.left != null){\n cp = new Pair();\n cp.level = level - 1;\n cp.node = curr.left;\n q.add(cp);\n }\n if(curr.right != null){\n cp = new Pair();\n cp.level = level + 1;\n cp.node = curr.right;\n q.add(cp);\n }\n \n }\n }\n \n \n \n \n \n for(Integer key : map.keySet()){\n ArrayList<Integer> l = map.get(key);\n for(Integer node : l){\n System.out.print(node + \" \");\n }\n }\n \n }", "title": "" }, { "docid": "a5c6cfcbc3051c83629060535b5323b9", "score": "0.5461741", "text": "public void preorder() {\n preorder(root);\n }", "title": "" }, { "docid": "c92eed28664d8a1d3248fc7e8bece7dc", "score": "0.5454657", "text": "private static void preOrder(TreeNode root) {\n\t\tif(root == null)\n\t\t\treturn;\n\t\t\n\t\tSystem.out.println(root.data);\n\n\t\tpreOrder(root.left);\n\t\t\n\t\t\n\t\tpreOrder(root.right);\n\t}", "title": "" }, { "docid": "d579136b0f94dcfea47dd14a28dc8772", "score": "0.54524404", "text": "public List<Integer> naryPreorder(NaryTreeNode root) {\n List<Integer> result = new ArrayList<>();\n if(root==null) return result;\n recursNaryPreorder(root, result);\n return result;\n }", "title": "" }, { "docid": "4bfe788138973deead243c9728e6299b", "score": "0.54414684", "text": "public List<List<Integer>> levelOrder(TreeNode root) {\n List<List<Integer>>res=new ArrayList<>();\n Queue<TreeNode>q=new LinkedList<>();\n if(root==null)\n return res;\n q.offer(root);\n while(!q.isEmpty()){\n int size=q.size();\n List<Integer>path=new ArrayList<>();\n while(size-- >0){\n TreeNode top=q.poll();\n path.add(top.val);\n if(top.left!=null)\n q.add(top.left);\n if(top.right!=null)\n q.add(top.right);\n }\n res.add(path);\n }\n return res;\n }", "title": "" }, { "docid": "7da598b809165687558cace2904c0f2a", "score": "0.5432075", "text": "public void topologicalSortBFS(int V, int[][] edges) {\n\t\tGraph g = new Graph(V);\n\t\t\n\t\tfor (int [] edge: edges) {\n\t\t\tg.addEdge(edge[0], edge[1], false);\n\t\t}\n\t\tList<Integer>[] adjLS = g.getAdjacencyList();\n\t\t\n\t\t// calculate the in-degree for each node in the graph.\n\t\t// in-degree array is the count of in-coming vertices/edges for a particular node in the graph \n\t\tint [] inDegree = new int [V];\n\t\t\n\t\tfor (int i=0; i<V; i++) {\n\t\t\tfor (int nbr: adjLS[i]) {\n\t\t\t\tinDegree[nbr]++;\n\t\t\t\t}\n\t\t}\n\t\tQueue<Integer> q = new LinkedList<>();\n\t\t// PriorityQueue<Integer> q = new PriorityQueue<>();\n\t\t// If you want to sort it by natural ordering -> ascending order or aplhabetical order\n\t\t// then use a PriorityQueue. \n\t\t// push all nodes whose in-degree is 0 into the queue\n\t\tfor (int i=0; i<V; i++) {\n\t\t\tif(inDegree[i] == 0)\n\t\t\t\tq.add(i);\n\t\t}\n\t\t\n\t\t// BFS\n\t\twhile (!q.isEmpty()) {\n\t\t\tint node = q.poll();\n\t\t\tSystem.out.print(node+\" \");\n\t\t\tfor (int nbr: adjLS[node]) {\n\t\t\t\tinDegree[nbr]--;\n\t\t\t\tif (inDegree[nbr] == 0) {\n\t\t\t\t\tq.add(nbr);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "2eb0e9928e4eccdd3637cedb00866de7", "score": "0.5426108", "text": "public List<List<Integer>> levelOrder(TreeNode root) {\n List<List<Integer>> result = new ArrayList<>();\n preOrderTraversal(root, 1, result);\n return result;\n }", "title": "" }, { "docid": "c20d5e07894ebe842cb49ac6a7e19665", "score": "0.5420814", "text": "List<Node> getSortedSelection(boolean differentSubtrees);", "title": "" }, { "docid": "e37ebc80ab890c633948e35576d3e6a2", "score": "0.54076445", "text": "public List<Integer> preorderTraversal(TreeNode root) {\n List<Integer> res = new LinkedList<>();\n if (root == null) {\n return res;\n }\n res.add(root.val);\n if (root.left != null) {\n List<Integer> leftPreorder = preorderTraversal(root.left);\n res.addAll(leftPreorder);\n }\n if (root.right != null) {\n List<Integer> rightPreorder = preorderTraversal(root.right);\n res.addAll(rightPreorder);\n }\n return res;\n }", "title": "" }, { "docid": "b4a4a0af3523400d6726888de66f4553", "score": "0.54010195", "text": "public final Vector topoSort(String[] root, Hashtable targetTable,\n boolean returnAll) throws BuildException {\n Vector ret = new Vector();\n Hashtable state = new Hashtable();\n Stack visiting = new Stack();\n \n // We first run a DFS based sort using each root as a starting node.\n // This creates the minimum sequence of Targets to the root node(s).\n // We then do a sort on any remaining unVISITED targets.\n // This is unnecessary for doing our build, but it catches\n // circular dependencies or missing Targets on the entire\n // dependency tree, not just on the Targets that depend on the\n // build Target.\n \n for (int i = 0; i < root.length; i++) {\n String st = (String) (state.get(root[i]));\n if (st == null) {\n tsort(root[i], targetTable, state, visiting, ret);\n } else if (st == VISITING) {\n throw new RuntimeException(\"Unexpected node in visiting state: \"\n + root[i]);\n }\n }\n StringBuffer buf = new StringBuffer(\"Build sequence for target(s)\");\n \n for (int j = 0; j < root.length; j++) {\n buf.append((j == 0) ? \" `\" : \", `\").append(root[j]).append('\\'');\n }\n buf.append(\" is \" + ret);\n log(buf.toString(), MSG_VERBOSE);\n \n Vector complete = (returnAll) ? ret : new Vector(ret);\n for (Enumeration en = targetTable.keys(); en.hasMoreElements();) {\n String curTarget = (String) en.nextElement();\n String st = (String) state.get(curTarget);\n if (st == null) {\n tsort(curTarget, targetTable, state, visiting, complete);\n } else if (st == VISITING) {\n throw new RuntimeException(\"Unexpected node in visiting state: \"\n + curTarget);\n }\n }\n log(\"Complete build sequence is \" + complete, MSG_VERBOSE);\n return ret;\n }", "title": "" }, { "docid": "d11a0519e3e12b0be3d5d85c4342482f", "score": "0.5398446", "text": "List<Node> getVertexes();", "title": "" }, { "docid": "2cde2f86c802886148ab5f47c0646874", "score": "0.539484", "text": "public List<T> preorder() {\n List<T> list = new ArrayList<>();\n preorderHelper(root, list);\n return list;\n }", "title": "" }, { "docid": "fffa3fc2a7dfbe3d03c45a5fda175734", "score": "0.5390483", "text": "public List<List<Integer>> zigzagLevelOrder(TreeNode root) {\n if (root == null) {\n return new ArrayList<>();\n }\n List<List<Integer>> results = new ArrayList<>();\n boolean leftToRight = true;\n List<TreeNode> curLevel = new ArrayList<>();\n curLevel.add(root);\n while (!curLevel.isEmpty()) {\n List<TreeNode> newLevel = new ArrayList<>();\n for (int i = 0; i < curLevel.size(); i++) {\n if (curLevel.get(i).left != null) {\n newLevel.add(curLevel.get(i).left);\n }\n if (curLevel.get(i).right != null) {\n newLevel.add(curLevel.get(i).right);\n }\n }\n List<Integer> tmp = new ArrayList<>();\n if (leftToRight) {\n for (int j = 0; j < curLevel.size(); j++) {\n tmp.add(curLevel.get(j).val);\n }\n } else {\n for (int j = curLevel.size() - 1; j >= 0; j--) {\n tmp.add(curLevel.get(j).val);\n }\n }\n results.add(tmp);\n leftToRight = !leftToRight;\n curLevel = newLevel;\n }\n return results;\n }", "title": "" }, { "docid": "f4877f701144f4e411a6c8ff91a38a47", "score": "0.538906", "text": "public void preOrderTrav() \n {\n /*** YOUR IMPLEMENTATION HERE ***/\n preOrderTravH(root);\n }", "title": "" }, { "docid": "7a89bb7dd130b14f7f186e75655e52eb", "score": "0.53860575", "text": "public Iterable<Node<T>> pre() {\r\n\t\treturn preorder;\r\n\t}", "title": "" }, { "docid": "c97798c5d5f3750ca1758c765f1f9608", "score": "0.5384291", "text": "public static List<Integer> preorderTraversal(TreeNode root) {\n\t\tList<Integer> ret = new ArrayList<Integer>();\n\t\tif(root==null) return ret;\n\t\tStack<TreeNode> stack = new Stack<TreeNode>();\n\t\tstack.push(root);\n\t\twhile(!stack.isEmpty()){\n\t\t\tTreeNode node = stack.pop();\n\t\t\tret.add(node.val);\n\t\t\tif(node.right!=null){\n\t\t\t\tstack.push(node.right);\n\t\t\t}\n\t\t\tif(node.left!=null){\n\t\t\t\tstack.push(node.left);\n\t\t\t}\n\t\t}\n\t\treturn ret;\n \n }", "title": "" }, { "docid": "29543cd8caeecd866020fe67f86e910d", "score": "0.53729415", "text": "public List<Integer> preorderTraversal(TreeNode root) {\n if (root == null) return new LinkedList<>();\n\n ArrayList<Integer> traversal = new ArrayList<>();\n LinkedList<TreeNode> stack = new LinkedList<>();\n HashSet<TreeNode> visited = new HashSet<>();\n stack.push(root);\n\n //Preorder is easy, it only ever goes down\n while (!stack.isEmpty()) {\n TreeNode curr = stack.pop();\n traversal.add(curr.val);\n visited.add(curr);\n\n if (curr.right != null && !visited.contains(curr.right)) {\n stack.push(curr.right);\n }\n if (curr.left != null && !visited.contains(curr.left)) {\n stack.push(curr.left);\n }\n }\n return traversal;\n }", "title": "" }, { "docid": "47dd6146e68528c566209fc09f0a1b7e", "score": "0.53665966", "text": "public static List<List<Integer>> traverseZigzag(Node root) {\n\t\tList<List<Integer>> result = new ArrayList<>();\n\t\tif (root == null) {\n\t\t\treturn result;\n\t\t}\n\t\tQueue<Node> q = new LinkedList<>();\n\t\tq.offer(root);\n\t\tq.offer(null);\n\t\tList<Integer> temp = new ArrayList<>();\n\t\tboolean zigzag = false;\n\t\twhile (!q.isEmpty()) {\n\t\t\tNode node = q.poll();\n\t\t\tif (node != null) {\n\t\t\t\tif (zigzag) {\n\t\t\t\t\ttemp.add(0, node.data);\n\t\t\t\t} else {\n\t\t\t\t\ttemp.add(node.data);\n\t\t\t\t}\n\t\t\t\tif (node.left != null) {\n\t\t\t\t\tq.offer(node.left);\n\t\t\t\t}\n\t\t\t\tif (node.right != null) {\n\t\t\t\t\tq.offer(node.right);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tresult.add(temp);\n\t\t\t\ttemp = new ArrayList<>();\n\t\t\t\tif (!q.isEmpty()) {\n\t\t\t\t\tq.offer(null);\n\t\t\t\t\tzigzag = !zigzag;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}", "title": "" }, { "docid": "df3c01e3bcd9f4a1408c6a7f307f6857", "score": "0.5358076", "text": "@Override\n\tpublic Object[] traversalPreOrder() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "a1f25eece1dacb0e8cf034b9aac23678", "score": "0.5339191", "text": "public ArrayList<String> getNodeOrder(){\n return nodeOrder;\n }", "title": "" }, { "docid": "73095507d42e07838e92893f693dfb4d", "score": "0.5334265", "text": "public Vector<PathSegment> minSpanningTree() throws GraphException {\r\n\t\tVector<PathSegment> mst = new Vector<>();\r\n\t\tDisjointSet dsu = new DisjointSet(_arrVertices.size());\r\n\t\tArrayList<Edge> edges = new ArrayList<>();\r\n\t\tfor (Edge e : _arrEdges)\r\n\t\t\tedges.add(e);\r\n\t\tCollections.sort(edges, (a, b) -> a.getCost() - b.getCost());\r\n\t\tfor (Edge e : edges) {\r\n\t\t\tint u = e._verFirstVertex.getIdx(), v = e._verSecondVertex.getIdx();\r\n\t\t\tif (dsu.union(u, v)) {\r\n\t\t\t\tmst.add(new PathSegment(null, e));\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn mst;\r\n\t}", "title": "" }, { "docid": "e9b0957b591aeeb53b29f01acaf9dc7e", "score": "0.53327", "text": "public HashSet<Integer> getVerticesRoot() {\r\n\t\tHashSet<Integer> temp = new HashSet<Integer>();\r\n\t\ttemp.addAll(this.getVerticesOutput());\r\n\t\ttemp.removeAll(this.getVerticesInput());\r\n\t\treturn temp;\r\n\t}", "title": "" }, { "docid": "c30d8f8ab54367f779f7115ea46b0bfb", "score": "0.5327752", "text": "private void preorder(Node<AnyType> root)\n\t{\n\t\tif (root == null)\n\t\t\treturn;\n\n\t\tSystem.out.print(\" \" + root.data);\n\t\tpreorder(root.left);\n\t\tpreorder(root.right);\n\t}", "title": "" }, { "docid": "f98a6e75ce8a882a47fe83d4b3f2713d", "score": "0.5324391", "text": "public ArrayList<Integer> preorderTraversal(TreeNode root) {\n \n Stack<TreeNode> s = new Stack<TreeNode>();\n ArrayList<Integer> res = new ArrayList<Integer>();\n \n if (root == null) return res;\n \n while(root != null){\n res.add(root.val);\n if (root.right != null) {\n s.add(root.right);\n }\n root = root.left;\n if (root == null && !s.empty()) {\n root = s.pop();\n }\n }\n return res;\n }", "title": "" }, { "docid": "7a60747404f1c84c4b8dac3fbd23f16f", "score": "0.5323657", "text": "public List<Object> preOrder() {\n List<Object> list = new ArrayList<>();\n\n list.add(getRoot());\n\n if (getChildren()[0] != null) {\n list.addAll(((BinaryTree) getChildren()[0]).preOrder());\n }\n\n if (getChildren()[1] != null) {\n list.addAll(((BinaryTree) getChildren()[1]).preOrder());\n }\n\n return list;\n }", "title": "" }, { "docid": "7175df867fb2ea91e504a8858245aafe", "score": "0.5316274", "text": "public List<Integer> inorderTraversal(TreeNode root){\n\t\tList<Integer> inorder = new ArrayList<>();\n\t\treturn traversal(inorder, root);\n\t}", "title": "" }, { "docid": "5eed015f13aa3ea3277363b5b8400ea9", "score": "0.5313271", "text": "@Override\n\tpublic List<T> getSort() throws GraphError\n\t{\n\t\treturn null;\n\t}", "title": "" }, { "docid": "c1dc7a645da6527149dc4e7a4490d4c3", "score": "0.5313208", "text": "public void preorder();", "title": "" }, { "docid": "f4aa8c8c3db04d278dde5c22f212f7bc", "score": "0.5307676", "text": "int findMinRootOrdering(long catalogUid);", "title": "" }, { "docid": "08a7f8357269f612d5dba362ec11d8e3", "score": "0.53003925", "text": "@Override\r\n public List<WEdge<VT>> kruskals() {\r\n Partition roots = new Partition(this.allVertices().size());\r\n List<WEdge<VT>> mst = new ArrayList<WEdge<VT>>();\r\n List<WEdge<VT>> edges = this.allEdges();\r\n\r\n //heap contains all the edges of the graph\r\n PQHeap<WEdge<VT>> heap = new PQHeap<WEdge<VT>>(new ReverseComparator());\r\n heap.init(this.allEdges());\r\n \r\n // process all the edges IN ORDER OF WEIGHT \r\n while (!heap.isEmpty()) {\r\n WEdge<VT> current = heap.peek();\r\n int root1 = roots.find(current.source().id()); \r\n int root2 = roots.find(current.end().id()); \r\n \r\n //if the two roots are NOT equal, then union and add to MST\r\n //otherwise, do nothing\r\n if (root1 != root2) {\r\n mst.add(current);\r\n roots.union(root1, root2);\r\n }\r\n //remove the processed edge\r\n heap.remove();\r\n }\r\n \r\n return mst;\r\n }", "title": "" }, { "docid": "e9669c4321e0d4777737be05b0e92993", "score": "0.52902186", "text": "private void topologicalSortUtil(\n int currentVertex, boolean[] visited, Deque<Integer> recursionStack) {\n visited[currentVertex] = true;\n\n // Iterate through all neighbours of current vertex\n for (int neighbour : this.adjListArray[currentVertex]) {\n // If neighbour is not visited\n if (!visited[neighbour]) {\n // Recursively traverse its neighbours\n topologicalSortUtil(neighbour, visited, recursionStack);\n }\n }\n\n // Push the current vertex to the recursion stack\n recursionStack.push(currentVertex);\n }", "title": "" }, { "docid": "86e9a66be18620304d03e49f6888184b", "score": "0.5289426", "text": "protected void sort() {\n if (triangleCount > 0) {\n sortTrianglesInternal(0, triangleCount-1);\n }\n }", "title": "" }, { "docid": "60de367978141eb235bbf81f3147b8e5", "score": "0.5288219", "text": "public static List<List<Integer>> levelOrder(TreeNode root){\n\t\tint depth = getHeight(root);\n\t\tList<List<Integer>> ret = new ArrayList<List<Integer>>(depth);\n\t\tif(depth==0) return ret;\n\t\tfor(int i=0;i<depth;i++){\n\t\t\tret.add(i, new ArrayList<Integer>());\n\t\t}\n\t\tDFS(root, 0);\n\t\treturn ret;\n\t}", "title": "" }, { "docid": "9838198fb706c1858b84ca8e95e03dba", "score": "0.5287081", "text": "@Override\n\tpublic void arrangeShortestPath() {\n\t\tgetInnerGraph().resetGraph();\n\t\t\n\t\tVertex sourceVertex = getInnerGraph().source;\n\t\tsourceVertex.seen = true;\n\t\tsourceVertex.distance = 0;\n\t\t\n\t\tIndexedHeap<Vertex> priorityQueue = new IndexedHeap<Vertex>(getInnerGraph().numNodes, vertexComparator);\n\n\t\tfor (Vertex vertex : getInnerGraph())\n\t\t\tif (vertex != null)\n\t\t\t\tpriorityQueue.add(vertex);\n\t\t\n\t\twhile (priorityQueue.size() > 1) {\n\t\t\tVertex u = priorityQueue.remove();\n\t\t\tu.seen = true;\n\t\t\t\n\t\t\tif (u.distance != null) {\n\t\t\t\t// relax edges out of u\n\t\t\t\tfor (Edge edge : u.Adj) {\n\t\t\t\t\tVertex v = edge.otherEnd(u);\n\t\t\t\t\t\n\t\t\t\t\tif (!v.seen && (v.distance == null ? true : (v.distance > u.distance + edge.Weight))) {\n\t\t\t\t\t\tv.distance = u.distance + edge.Weight;\n\t\t\t\t\t\tv.parent = u;\n\t\t\t\t\t\t\n\t\t\t\t\t\tpriorityQueue.decreaseKey(v);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "3585d8775c286c37875a01ae28365244", "score": "0.5283089", "text": "public exactTopologicalSort(String filename) throws IOException\n\t{\n\t\tScanner in = new Scanner(new File(filename));\n\t\t\n\t\tnumVert = in.nextInt();\n\t\t\n\t\t// All arrays offset by 1 so there is no need to subtract 1 from inputs in later methods.\n\t\tadjMatrix = new boolean[numVert + 1][numVert + 1];\n\t\tvDegree = new int[numVert + 1];\n\t\tincoming = new int[numVert + 1];\n\t\t\n\t\t// For each vertex read its degree number and then iterate the degree (num outgoing edges)\n\t\t// to fill in the adjacency matrix for this vertex.\n\t\tfor (int i = 1; i <= numVert; i++)\n\t\t{\n\t\t\tvDegree[i] = in.nextInt();\n\t\t\t\n\t\t\tfor (int j = 1; j <= vDegree[i]; j++)\n\t\t\t{\n\t\t\t\t// f briefly holds the last read int\n\t\t\t\tint f;\n\t\t\t\tadjMatrix[i][f = in.nextInt()] = true;\n\t\t\t\tincoming[f] += (adjMatrix[i][f] ? 1 : 0);\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "e8fa4429f16f0c781a2111ffec67fa2c", "score": "0.5275228", "text": "public void printPreOrder()\n\t{\n\t\tprintPreOrder(root);//starting from the root\n\t}", "title": "" }, { "docid": "3f35e63463bcc319e64f73f0d92359fe", "score": "0.52666533", "text": "public Iterable<Key> levelOrder() {\n Queue<Key> keys = new Queue<Key>();\n Queue<Node> queue = new Queue<Node>();\n queue.enqueue(root);\n while (!queue.isEmpty()) {\n Node x = queue.dequeue();\n if (x == null) continue;\n keys.enqueue(x.key);\n queue.enqueue(x.leftNode);\n queue.enqueue(x.rightNode);\n }\n return keys;\n }", "title": "" }, { "docid": "4e59ab9cf15917575b9c8aab11984f0d", "score": "0.52621114", "text": "public void preOrder(TreeNode root){\n if(root == null){\n return;\n }\n System.out.print(root.val + \" \");\n preOrder(root.left);\n preOrder(root.right);\n }", "title": "" }, { "docid": "6f211ed612cd73eb99cc2d0f28eb3a3b", "score": "0.52611953", "text": "public List<Vertex> getVertices() {\n List<Vertex> returnlist = new ArrayList<Vertex>();\n for(Map.Entry<Vertex,Set<Vertex>> vertex : adjacencyList.entrySet()) {\n returnlist.add(vertex.getKey());\n }\n\n Comparator compare = new AdjacencyListGraph();\n Collections.sort(returnlist,compare);\n\n return returnlist;\n }", "title": "" }, { "docid": "64a32b55e00a7aceeea125139ce38677", "score": "0.526049", "text": "public List<Integer> pathTo(int v) {\n Comparator comparator = new vertComparator();\n PriorityQueue<Integer> vertex =\n new PriorityQueue<Integer>(20, comparator);\n ArrayList<Integer> path = new ArrayList<Integer>();\n for (int i = 1; i < _G.maxVertex() + 1; i += 1) {\n setWeight(i, Double.POSITIVE_INFINITY);\n }\n setWeight(_source, 0);\n for (int i = 0; i < allVertices.size(); i += 1) {\n vertex.add(allVertices.get(i));\n }\n while (!vertex.isEmpty()) {\n int vert = vertex.remove();\n if (vert == v) {\n break;\n }\n Iteration vSuccessor = _G.successors(vert);\n while (vSuccessor.hasNext()) {\n int w = (int) vSuccessor.next();\n if (getWeight(w) > getWeight(vert, w) + getWeight(vert)) {\n setWeight(w, getWeight(vert, w) + getWeight(vert));\n setPredecessor(w, vert);\n vertex.remove(w);\n vertex.add(w);\n }\n }\n }\n path.add(v);\n while (v != _source) {\n path.add(getPredecessor(v));\n v = getPredecessor(v);\n }\n Collections.reverse(path);\n return path;\n }", "title": "" }, { "docid": "eb7185db22eabf9f048f60d615debf10", "score": "0.5250917", "text": "public List<List<Integer>> levelOrder(NaryTreeNode root) {\n if(root==null) return new ArrayList<>();\n Queue<NaryTreeNode> level = new LinkedList<>();\n level.offer(root);\n List<List<Integer>> results = new ArrayList<>();\n while(!level.isEmpty()){\n int curLevelSize = level.size();\n List<Integer> levelVals = new ArrayList<>(curLevelSize);\n for(int i=0; i<curLevelSize; i++){\n NaryTreeNode curNode = level.poll();\n levelVals.add(curNode.val);\n for(int j=0; j<curNode.children.size(); j++){\n level.add(curNode.children.get(j));\n }\n }\n results.add(levelVals);\n }\n return results;\n }", "title": "" }, { "docid": "d0c3e163d9757fcb3bffb7e523e2a694", "score": "0.5237793", "text": "public ArrayList<Node> findEveryShortestPathLength(Node root) {\n\t ArrayList<Node> everyPath = new ArrayList<>();\n\t everyPath.addAll(vertices);\n\n\t for(int i = 0; i < everyPath.size(); i++){\n\t int distance = findShortestPathLength(root, everyPath.get(i));\n\t everyPath.get(i).setMinDistance(distance);\n }\n return everyPath;\n }", "title": "" }, { "docid": "c0ea66e87daef6b9a03e43c38203e015", "score": "0.5225216", "text": "public void printPreorder() {\r\n System.out.print(\"preorder:\");\r\n printPreorder(overallRoot);\r\n System.out.println();\r\n }", "title": "" }, { "docid": "66c6761856ce26822850e7b911e1c231", "score": "0.5223331", "text": "public void preorder() {\n preorder(root);\n System.out.println();\n }", "title": "" }, { "docid": "42e3b0f79ed98d628521ecb666aac0d3", "score": "0.5212602", "text": "public List<TreeNode<E>> preOrderSeq() {\n\t\tList<TreeNode<E>> nodes = new LinkedList<>();\n\t\tassignNodesPreOrder(nodes, root);\n\t\treturn nodes;\n\t}", "title": "" }, { "docid": "ed41670270bee1ebbfa515108e93ae16", "score": "0.52104324", "text": "private void preOrder(Node localRoot) {\n\t\tif (localRoot != null) {\n\t\t\tlocalRoot.displayNode();\n\t\t\tpreOrder(localRoot.rightChild);\n\t\t\tpreOrder(localRoot.rightChild);\n\t\t}\n\t}", "title": "" }, { "docid": "09cbf712c6514b1dafaf1594b2c04b63", "score": "0.52101016", "text": "protected void preorder(TreeNode<E> root) {\n if (root == null) return;\n System.out.print(root.element + \" \");\n preorder(root.left);\n preorder(root.right);\n }", "title": "" }, { "docid": "478391244a963f741ba1c4c961595b64", "score": "0.5209246", "text": "public void setPaths() {\n Comparator comparator = new vertComparator();\n PriorityQueue<Integer> vertex =\n new PriorityQueue<Integer>(20, comparator);\n\n for (int v = 1; v < _G.maxVertex() + 1; v += 1) {\n setWeight(v, Double.POSITIVE_INFINITY);\n }\n setWeight(_source, 0);\n for (int i = 0; i < allVertices.size(); i += 1) {\n vertex.add(allVertices.get(i));\n }\n while (!vertex.isEmpty()) {\n int v = vertex.remove();\n if (v == _dest) {\n return;\n }\n Iteration vSuccessor = _G.successors(v);\n while (vSuccessor.hasNext()) {\n int w = (int) vSuccessor.next();\n if (getWeight(w) > getWeight(v, w) + getWeight(v)) {\n setWeight(w, getWeight(v, w) + getWeight(v));\n setPredecessor(w, v);\n vertex.remove(w);\n vertex.add(w);\n }\n }\n }\n }", "title": "" }, { "docid": "a3678c5b34b9914f9bd8ee640029a2c5", "score": "0.51987326", "text": "String getPredecessorOrder();", "title": "" }, { "docid": "3b7cc893a7df5f0db3956914a6234fe4", "score": "0.51972264", "text": "public List<List<Integer>> levelOrder(TreeNode root) {\n List<List<Integer>> result = new ArrayList<>();\n if (root == null) {\n return result;\n }\n Queue<TreeNode> queue = new LinkedList<>();\n queue.offer(root);\n\n while (!queue.isEmpty()) {\n List<Integer> tmp = new ArrayList<>();\n int curSize = queue.size();\n for (int i = 0; i < curSize; i++) {\n TreeNode node = queue.poll();\n tmp.add(node.val);\n if (node.left != null) {\n queue.offer(node.left);\n }\n if (node.right != null) {\n queue.offer(node.right);\n }\n }\n result.add(tmp);\n }\n return result;\n }", "title": "" }, { "docid": "8bcd7a5f7d3dc98e2b64b8a79027865a", "score": "0.5191466", "text": "public List<TreeNode<E>> ascendSeq() {\n\t\tList<TreeNode<E>> nodes = new LinkedList<>();\n\t\tassignNodesInOrder(nodes, root);\n\t\treturn nodes;\n\t}", "title": "" }, { "docid": "3588249ac4eb7d2d816a7ff82981a6f9", "score": "0.519114", "text": "public void preorder()\n\t{\n\t\tSystem.out.print(\"Pre-order Traversal:\");\n\t\tpreorder(root);\n\t\tSystem.out.println();\n\t}", "title": "" }, { "docid": "bf9e1ad3160ae623a148cccbde8400f1", "score": "0.5187879", "text": "public void preOrder(Node root) {\n\t\tif(root == null) {\n\t\t\treturn; \n\t\t}\n\t\tSystem.out.print(root.data + \" \");\n\t\tpreOrder(root.left);\n\t\tpreOrder(root.right);\n\t}", "title": "" }, { "docid": "0fa5b9b18ca3db4ee8b3518c271cecd8", "score": "0.5176974", "text": "private void inOrder(Node localRoot) {\n if (localRoot != null) { //cuando la raiz es diferente de null, osea cuando si existen nodos podemos hacer el recorrido\n inOrder(localRoot.leftChild); // No visita hasta agotar todos los nodos izquierdos\n System.out.print(localRoot.iData + \" \"); // después visita la raiz y muestar el dato\n inOrder(localRoot.rightChild); // despúees de agotar la izquierda visita la derecha\n }\n }", "title": "" }, { "docid": "2d34be27669f922f38593a362d6264e4", "score": "0.517518", "text": "@Override\n public Iterable<Position<E>> inOrder() {\n List<Position<E>> snapshot = new ArrayList<>();\n if (!isEmpty()) {\n inOrderSubtree(root(), snapshot);\n }\n return snapshot;\n }", "title": "" }, { "docid": "7c447a4df82d7cc7adb9cb909ca27eb5", "score": "0.5174908", "text": "private void prepareDataStructure() {\n\n\t\t// sort the sortedNodes list first by level, then by count\n\t\tCollections.sort(sortedNodes, new Comparator<LvlCtInfo>() {\n\n\t\t\t@Override\n\t\t\tpublic int compare(LvlCtInfo a, LvlCtInfo b) {\n\n\t\t\t\tif(a.level == b.level) {\n\t\t\t\t\treturn a.count - b.count;\n\t\t\t\t} else {\n\t\t\t\t\treturn (int) (b.level - a.level);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\t\t// sort the nonbottom leaves the same way\n\t\tCollections.sort(leaves, new Comparator<LvlCtInfo>() {\n\n\t\t\t@Override\n\t\t\tpublic int compare(LvlCtInfo n0, LvlCtInfo n1) {\n\n\t\t\t\tif(n0.level == n1.level) {\n\t\t\t\t\treturn n0.count - n1.count;\n\t\t\t\t} else {\n\t\t\t\t\treturn (int) (n1.level - n0.level);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}", "title": "" }, { "docid": "8c24caee4aec69c7660c563abec01faa", "score": "0.5173289", "text": "private DSALinkedList<Vertex> sortVertexRecurse( DSAQueue<Vertex> queue, DSALinkedList<Vertex> sortingVertexList )\n\t{\n\t\tVertex v, fromV, toV;\n\n\t\tif( queue.isEmpty() ) //Base case hits when the queue is empty\n\t\t{\n\t\t\tsetVertexList( sortingVertexList ); //Set to this class\n\t\t}\n\t\telse\n\t\t{\n\t\t\tv = queue.dequeue(); //Dequeue first vertex\n\t\t\tsortingVertexList.insertLast(v); //Insert to the list \n\t\t\t\n\t\t\tfor( Edge e: edgeQueue ) //Looping through the edges to find vertex which is connected from the vertex that has just been dequeue\n\t\t\t{\n\t\t\t\tfromV = e.getFrom();\n\t\t\t\ttoV = e.getTo();\n\n\t\t\t\tif( ( fromV.getName() ).equals( v.getName() ) )\n\t\t\t\t{\n\t\t\t\t\tif( toV.getVisited() == 0 ) //If found and is not visited\n\t\t\t\t\t{\n\t\t\t\t\t\t\ttoV.setVisited(VISITED);\n\t\t\t\n\t\t\t\t\t\t\tqueue.enqueue( toV ); //Enqueue to the queue in order to find vertex which is connected from the vertex that has just been enqueue\n\n\t\t\t\t\t\t\titerateEdge( fromV, toV );//Looping through the edges to change the states of the vertices whose state has just changed\n\t\t\t\t\t}\n\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t\tsortVertexRecurse( queue, sortingVertexList ); //Recursive call\n\t\t}\n\n\t\treturn sortingVertexList;\n\t}", "title": "" }, { "docid": "23a0b9fde7fe06c7c6e3a3daa156f033", "score": "0.51701045", "text": "public List<Integer> fillOrder(ArrayList<Vertex> vertexList, boolean[] visited) \n {\n List<Integer> order = new ArrayList<Integer>();\n \n for (int i = 0; i < vertexList.size(); i++)\n if (!visited[i])\n {\n DFS(vertexList, i, visited, order);\n }\n return order;\n }", "title": "" }, { "docid": "58bd40d9b7d9fdb4026ac11bb7129685", "score": "0.5165216", "text": "public void dfsstack() {\r\n\t\tStack<vertex> frontier=new Stack<vertex>();\r\n\r\n\t\tfor (vertex v:V) {\r\n\t\t\tif (!parent.containsKey(v)) {\r\n\t\t\t\tfrontier.push(v);\r\n\t\t\t\tparent.put(v,null);\r\n\t\t\t\twhile (!frontier.isEmpty()) {\r\n\t\t\t\t\tvertex u=frontier.pop();\r\n\t\t\t\t\t\t\t\t\t\t//System.out.println(u.val);\r\n\t\t\t\t\tfor (vertex e:u.neighbours) {\r\n\t\t\t\t\t\tif (!parent.containsKey(e)) {\r\n\t\t\t\t\t\t\tfrontier.push(e);\r\n\r\n\t\t\t\t\t\t\tparent.put(e,u);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t//while (!topsort.isEmpty()) System.out.println(topsort.remove().val);\r\n\t}", "title": "" }, { "docid": "741c6a1659ef10beff7bc1a17cc21dc4", "score": "0.5156008", "text": "public JwComparator<AcItem> getTopNestIdComparatorNullsLower()\n {\n return TopNestIdComparatorNullsLower;\n }", "title": "" } ]
25197b4cf814864ecd440f23b9149cb3
TODO Autogenerated method stub
[ { "docid": "a08d1abd0b7fe501bc81c2860bcf0c69", "score": "0.0", "text": "public String[] listNotificationInterests() {\n\t\treturn new String[]{\r\n\t\t\tApplicationFacade.STARTUP,ApplicationFacade.ADD_COMPLETE\r\n\t\t};\r\n\t}", "title": "" } ]
[ { "docid": "74a4209c94e08d9f5eb0b60e580f5e04", "score": "0.68867725", "text": "@Override\r\n\tpublic void comit() {\n\t\t\r\n\t}", "title": "" }, { "docid": "b645eacb329adc01490ab5013a6c4f7f", "score": "0.67295986", "text": "@Override\n\t\t\tpublic void perfom() {\n\n\t\t\t}", "title": "" }, { "docid": "e3110a393bd4b870b4055aa9ed6efd87", "score": "0.6602715", "text": "@Override\n\tpublic void attaquer() {\n\t\t\n\t}", "title": "" }, { "docid": "0b5b11f4251ace8b3d0f5ead186f7beb", "score": "0.65686274", "text": "@Override\n\tpublic void comer() {\n\t\t\n\t}", "title": "" }, { "docid": "534c466f09845319b9edaf959a891c09", "score": "0.65467274", "text": "@Override\r\n\tpublic void debriyaj() {\n\t\t\r\n\t}", "title": "" }, { "docid": "21d672149bbdd06ba8646ddf7f7f41d1", "score": "0.65211904", "text": "@Override\n\tprotected void descansar() {\n\t\t\n\t}", "title": "" }, { "docid": "21d672149bbdd06ba8646ddf7f7f41d1", "score": "0.65211904", "text": "@Override\n\tprotected void descansar() {\n\t\t\n\t}", "title": "" }, { "docid": "5f8d37aee09bc1e9959f768d6eb0183c", "score": "0.6481321", "text": "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "title": "" }, { "docid": "5f8d37aee09bc1e9959f768d6eb0183c", "score": "0.6481321", "text": "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "title": "" }, { "docid": "80762458b54fe841d7e4f99e4de13990", "score": "0.6464543", "text": "@Override\n\tprotected void respirar() {\n\t\t\n\t}", "title": "" }, { "docid": "80762458b54fe841d7e4f99e4de13990", "score": "0.6464543", "text": "@Override\n\tprotected void respirar() {\n\t\t\n\t}", "title": "" }, { "docid": "2dcda7054abb2ac593302e39a2284f12", "score": "0.64569044", "text": "@Override\n\tprotected void getExras() {\n\n\t}", "title": "" }, { "docid": "4541b4eaa2b2871ab4c98fc297f4dede", "score": "0.6389071", "text": "@Override\n\tpublic void descer() {\n\t\t\n\t}", "title": "" }, { "docid": "f37aebdfc461c1965abd4e2afbc83532", "score": "0.6359046", "text": "private void apparence()\r\n\t\t{\r\n\t\t//rien\r\n\t\t}", "title": "" }, { "docid": "0aeb31da8ebac864ecfc84df5be728c9", "score": "0.6342541", "text": "@Override\r\n\tpublic void koleos() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2e8b0d8bb9fd62c1559ca4b277c6505c", "score": "0.6332389", "text": "@Override\n\tpublic void 이체() {\n\t\t\n\t}", "title": "" }, { "docid": "83c17378086426b4324c4ea8c160e29d", "score": "0.626611", "text": "@Override\r\n\tpublic void provjeri() {\n\r\n\t}", "title": "" }, { "docid": "1f7c82e188acf30d59f88faf08cf24ac", "score": "0.6237362", "text": "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "title": "" }, { "docid": "1f7c82e188acf30d59f88faf08cf24ac", "score": "0.6237362", "text": "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "title": "" }, { "docid": "b14cffacd51e1ce2462cbb7320ae9815", "score": "0.6235278", "text": "@Override\n\tprotected void preInilize() {\n\t\t\n\t}", "title": "" }, { "docid": "4a318c00e2da3a27b638b396481252df", "score": "0.621979", "text": "@Override\r\n\tpublic void herbivore() {\r\n\t\t// TODO Auto-generated method stub\r\n\t\t\r\n\t}", "title": "" }, { "docid": "3e556c0f03a7d2509fe80fc61a60a369", "score": "0.62114227", "text": "@Override\n\t\t\t\tpublic void init() {\n\t\t\t\t\t\n\t\t\t\t}", "title": "" }, { "docid": "c612bcadafd393d086f44fd19558a8be", "score": "0.61539394", "text": "@Override\r\n\tpublic void inicialize() {\n\t\t\r\n\t}", "title": "" }, { "docid": "d3f774182d4215967c63b04db821b349", "score": "0.6145912", "text": "@Override\r\n\tpublic void munul() {\n\t\t\r\n\t}", "title": "" }, { "docid": "a6e9388ba580a030c48b527221f8e81a", "score": "0.6141126", "text": "@Override\n\tpublic void actuar() {\n\t\t\n\t}", "title": "" }, { "docid": "314ae73dd9b4e0fd24e41e58c68718e8", "score": "0.6126155", "text": "@Override\r\n\tpublic void conducir() {\n\t\t\r\n\t}", "title": "" }, { "docid": "50eb8922149b6987def0b49575615f5e", "score": "0.61245364", "text": "@Override\n protected void getExras() {\n }", "title": "" }, { "docid": "03dec34dcb010fb4f8aaffffeb038a5c", "score": "0.6122166", "text": "@Override\r\n public void atacar() {\n \r\n }", "title": "" }, { "docid": "7dc226c2dd73339594b9a5d78d538a9b", "score": "0.6068579", "text": "public void soigner() {\n\t\t\n\t}", "title": "" }, { "docid": "bdc1683df7d1d6b2d988cd3acab4903e", "score": "0.60398114", "text": "public void mo5201a() {\n }", "title": "" }, { "docid": "9e3b9f67f6df4ff7587902e76540dbce", "score": "0.60307544", "text": "@Override\n\tpublic void nadar() {\n\t}", "title": "" }, { "docid": "5f1811a241e41ead4415ec767e77c63d", "score": "0.6025444", "text": "@Override\n\tprotected void init() {\n\n\t}", "title": "" }, { "docid": "5f1811a241e41ead4415ec767e77c63d", "score": "0.6025444", "text": "@Override\n\tprotected void init() {\n\n\t}", "title": "" }, { "docid": "b1cf16017c8057c0255a9ad368ecaee5", "score": "0.6017447", "text": "@Override\r\n\tprotected void init() {\n\r\n\t}", "title": "" }, { "docid": "7c2f530eef910ca7368316b6425dbb09", "score": "0.60089034", "text": "@Override\n\t\t\tpublic void test12() {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "a8466bdc481ff3361d07776f72a6ad5a", "score": "0.60056853", "text": "@Override\n\tpublic void fliegen() {\n\t\t\n\t}", "title": "" }, { "docid": "4e2bc6086cff0dc11f4d0ca1a0f610c2", "score": "0.60052466", "text": "@Override\r\n\tpublic void tired() {\n\t\t\r\n\t}", "title": "" }, { "docid": "bcc647eaea257a78c8d339a2668f39eb", "score": "0.59953445", "text": "@Override\r\n\tpublic void thirsty() {\n\t\t\r\n\t}", "title": "" }, { "docid": "8a2f3b349a25374b05205f9955000cb0", "score": "0.59933674", "text": "public void omzet(){\n\t}", "title": "" }, { "docid": "4d0d3ada3b77658f4e45ede4fd37399e", "score": "0.59840435", "text": "@Override\n\t\t\tvoid fazTal() {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t}", "title": "" }, { "docid": "690c3795eb018aa9906a3ed189d8e3a0", "score": "0.5965588", "text": "@Override\n\tpublic void atacar() {\n\n\t}", "title": "" }, { "docid": "5fa8025455ce490980ad8cccfd13eea3", "score": "0.5963883", "text": "public void mo5201a() {\n }", "title": "" }, { "docid": "3f2920a75faf042f941c5de3f07f1cbc", "score": "0.59580034", "text": "@Override\n\tpublic void postInilize() {\n\t\t\n\t}", "title": "" }, { "docid": "573e777b1723411d46abc7892cb5caea", "score": "0.5933409", "text": "public void mo5608a() {\n }", "title": "" }, { "docid": "fb7e6b2a89843e694a13571c31377718", "score": "0.59090626", "text": "public void mo19849a() {\n }", "title": "" }, { "docid": "234aa77d9cf02b8617820e857e5304e4", "score": "0.58938795", "text": "public void comer(){\n\t\t\n\t}", "title": "" }, { "docid": "b9700791b625283953260f34cbaa3438", "score": "0.5879405", "text": "@Override\n public void visitEnd() {\n }", "title": "" }, { "docid": "ff2a26de6775216e86ea92e547fb9c42", "score": "0.5869516", "text": "@Override\n\tpublic void manobrar() {\n\t\t\n\t}", "title": "" }, { "docid": "4967494f628119c8d3a4740e09278944", "score": "0.5858707", "text": "@Override\r\n\tprotected void initData() {\n\r\n\t}", "title": "" }, { "docid": "5aa237d31e744d1e0729621e464fcfb2", "score": "0.5854053", "text": "@Override\r\n\tprotected void DataInit() {\n\r\n\t}", "title": "" }, { "docid": "4218376ad671a7e613b2d401e5484e2d", "score": "0.58539504", "text": "@Override\n\t\t\tpublic void accept(Visitor visitor) {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "2f3e7c4f4d0072a55c8e0187be049a27", "score": "0.58473253", "text": "public void mo9610b() {\n }", "title": "" }, { "docid": "e04f934fbe00df663fa9d5d545a1a729", "score": "0.5845961", "text": "@Override\n public void sporcuPuaniGoster() {\n\n }", "title": "" }, { "docid": "252960e025bfa106bbe3903b4e4cbd3c", "score": "0.58432287", "text": "public void mo35709a() {\n }", "title": "" }, { "docid": "c9fd6fa2969355fe1396f0967662f775", "score": "0.58328706", "text": "@Override\n\t\t\tpublic int defence() {\n\t\t\t\treturn 0;\n\t\t\t}", "title": "" }, { "docid": "087d8f1969faa21f6247025aedc8b4be", "score": "0.5826683", "text": "@Override\n\tpublic void faseRondas() {\n\t\t\n\t}", "title": "" }, { "docid": "164451c7abb6fff8ecb189a8f21fcd12", "score": "0.58159095", "text": "@Override\n\tpublic void init() {\n\t\n\n\t}", "title": "" }, { "docid": "b7e98de900f4657495e91d5ff4bd6bd6", "score": "0.58140445", "text": "@Override\r\n\tpublic void init(){\r\n\t}", "title": "" }, { "docid": "655a271d981b875feb8fbc679e1a4f87", "score": "0.5804755", "text": "public void mo9609a() {\n }", "title": "" }, { "docid": "8784a223ae524195b951c7522a3dc7dc", "score": "0.5794505", "text": "@Override\n\tprotected void createObject() {\n\n\t}", "title": "" }, { "docid": "2c61ed93c2e8a4e918b773dc3a2e7966", "score": "0.57887554", "text": "private void traiteCreerRegle() {\n\r\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "c6bc5d71695bfc44366c74f6f0fe2368", "score": "0.5771875", "text": "@Override\n\tvoid retoceder() {\n\t\t\n\t}", "title": "" }, { "docid": "a147e931a0b23fd21b8e6b39e13d9778", "score": "0.57693547", "text": "@Override\n\tprotected void alimentar() {\n\t\t\n\t}", "title": "" }, { "docid": "a147e931a0b23fd21b8e6b39e13d9778", "score": "0.57693547", "text": "@Override\n\tprotected void alimentar() {\n\t\t\n\t}", "title": "" }, { "docid": "6c897821a3b00faa6e582b1c5bd5b3c6", "score": "0.5768425", "text": "@Override\r\n\tpublic void direksiyon() {\n\t\t\r\n\t}", "title": "" }, { "docid": "24508ad049d3837bebf9e0a440e73dd1", "score": "0.5767707", "text": "@Override\n\tpublic void tomar() {\n\t\t\n\t}", "title": "" }, { "docid": "518a761521ca9f5cb8a8055b32b72cda", "score": "0.57589173", "text": "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "title": "" }, { "docid": "1ed144b4d2aead457255ab8ddb73ac57", "score": "0.57549745", "text": "@Override\r\n\tpublic void limpar() {\n\r\n\t}", "title": "" }, { "docid": "ebfe1bb4dd1c0618c0fad36d9f7674b4", "score": "0.57514423", "text": "@Override\n protected void initialize() {\n\n }", "title": "" }, { "docid": "2b918d595b2e03dbc4dff690dfae35e2", "score": "0.5750942", "text": "@Override\n\tpublic void getC() {\n\t\t\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.57491463", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.57491463", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.57491463", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.57491463", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57341826", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "c6e40448cb261fef3ee1fc3a1f5373f0", "score": "0.5732929", "text": "@Override\n\tpublic void operation() {\n\t\t\n\t}", "title": "" }, { "docid": "a937c607590931387a357d03c3b0eef4", "score": "0.5718783", "text": "@Override\n\tprotected void initialize() {\n\n\t}", "title": "" }, { "docid": "a937c607590931387a357d03c3b0eef4", "score": "0.5718783", "text": "@Override\n\tprotected void initialize() {\n\n\t}", "title": "" }, { "docid": "a937c607590931387a357d03c3b0eef4", "score": "0.5718783", "text": "@Override\n\tprotected void initialize() {\n\n\t}", "title": "" }, { "docid": "8e056894cd061aea767d71a9c1b43d97", "score": "0.5701457", "text": "@Override\n\tpublic void init(){\n\t}", "title": "" }, { "docid": "b2858312446172fa25a799c5367d2043", "score": "0.56931245", "text": "Smelting(){\r\n\r\n\t\t}", "title": "" }, { "docid": "01841f81ab35e62f2bd0f7128634a0ab", "score": "0.56905705", "text": "@Override\n\tpublic void laufen() {\n\t\t\n\t}", "title": "" }, { "docid": "79ad318e5d0ad6ee82877d05e89a4257", "score": "0.5686335", "text": "public void mo10094a() {\n }", "title": "" }, { "docid": "804a3cf5821b9c54fd66c69b0953e805", "score": "0.5676017", "text": "@Override\n\tprotected void operateDataRefer() {\n\n\t}", "title": "" }, { "docid": "c937f9289f415cfdd7aefc5d621d0867", "score": "0.567194", "text": "@Override\n protected void inicializar() {\n }", "title": "" }, { "docid": "179a686178b5933a94ef6b9a53f1ed98", "score": "0.5669961", "text": "@Override\n public void visitEnd() {\n super.visitEnd();\n }", "title": "" }, { "docid": "9c40b6fea6b82ca9a9a7d36b6c663636", "score": "0.56666464", "text": "@Override\r\n public void init() {\n\r\n }", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.56563133", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.56563133", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.56563133", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.56563133", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "a549c1e6bc27711b5c76bad3496de875", "score": "0.5647085", "text": "@Override\n\tpublic void faseInicializacion() {\n\t\t\n\t}", "title": "" } ]
e6a6e61996c16189e0e2567018de1235
Toast.makeText(getApplicationContext(), "Ad failed to load! error code: " + errorCode, Toast.LENGTH_SHORT).show();
[ { "docid": "1e8b0384ba7694ca24d4a6a94a806a30", "score": "0.7357663", "text": "@Override\n public void onAdFailedToLoad(int errorCode) {\n }", "title": "" } ]
[ { "docid": "35c16aa759cd374e7449fa2738d564c6", "score": "0.8604698", "text": "@Override\n public void onAdFailedToLoad(int errorCode) {\n Toast.makeText(getContext(), \"Ad failed: \" + errorCode, Toast.LENGTH_SHORT).show();\n }", "title": "" }, { "docid": "54ef19035d449399e550d66fa417e1fe", "score": "0.833842", "text": "@Override\n public void onAdFailedToLoad(int errorCode) {\n Toast.makeText(BannerAddActivity.this, \"Ad Failed To Load Error Code : \" + Integer.toString(errorCode), Toast.LENGTH_SHORT).show();\n }", "title": "" }, { "docid": "675349338489e991f96ceb6dacd16465", "score": "0.8131151", "text": "@Override\n public void onAdFailedToLoad(int errorCode) {\n Toasty.info(CreatePostActivity.this,getString(R.string.adblock_disble_message) + errorCode ,Toast.LENGTH_LONG).show();\n }", "title": "" }, { "docid": "ce248e1731a75a8309c7dc794c4941f7", "score": "0.80217904", "text": "@Override\n public void onAdFailed(int errorCode) {\n Log.e(TAG, String.format(Locale.ROOT, \"Ad failed to load with error code %d.\", errorCode));\n }", "title": "" }, { "docid": "b8e1549f27ccc7511967c34ce55580f1", "score": "0.7780237", "text": "@Override\n public void onAdFailedToLoad(int errorCode) {\n super.onAdFailedToLoad(errorCode);\n Toast.makeText(AdActivity.this, \"Ad Failed to Load: \" + errorCode, Toast.LENGTH_SHORT).show();\n JCLoger.debug(\"Ad Failed to Load: \" + errorCode);\n }", "title": "" }, { "docid": "1e72a988886580ed40b5a2694ae4306e", "score": "0.7652449", "text": "@Override\n public void onAdFailedToLoad(int errorCode) {\n Log.i(\"Ads\", \"onAdFailedToLoad\");\n }", "title": "" }, { "docid": "c4c30fc394f7f8259f620034080528e9", "score": "0.7587846", "text": "@Override\n public void onAdFailedToLoad(int errorCode) {\n\n\n\n }", "title": "" }, { "docid": "314a9902b6705418c92e419c471adb2f", "score": "0.7555205", "text": "@Override\n public void onAdFailedToLoad(int errorCode) {\n Log.d(LOG_TAG, \"error code AD : \" + errorCode);\n }", "title": "" }, { "docid": "3a5d3946567b56196b91fec312846026", "score": "0.74280566", "text": "@Override\n public void onAdFailedToLoad(int errorCode) {\n }", "title": "" }, { "docid": "e18987a78204104a4749ea9ee7d4fadf", "score": "0.7403438", "text": "@Override\n public void onAdFailedToLoad(int errorCode) {\n }", "title": "" }, { "docid": "164010c2f98320a4838140ee6262fa71", "score": "0.7361151", "text": "@Override\n public void onAdFailedToLoad(int errorCode) {\n super.onAdFailedToLoad(errorCode);\n Toast.makeText(AdActivity.this, \"Ad2 Failed to Load: \" + errorCode, Toast.LENGTH_SHORT).show();\n JCLoger.debug(\"Ad2 Failed to Load: \" + errorCode);\n }", "title": "" }, { "docid": "6f9be44306118c39e50ec08623b8066b", "score": "0.72836816", "text": "@Override\n public void onError(Ad ad, AdError adError) {\n Log.e(TAG, \"Native ad failed to load: \" + adError.getErrorMessage());\n }", "title": "" }, { "docid": "df1eb6a2d3097b333b4d44d6a1cadc6a", "score": "0.7222418", "text": "@Override\n public void onAdFailedToLoad(int errorCode) {\n Toast.makeText(getContext(), errorCode + \": Inventory in creation\", Toast.LENGTH_SHORT).show();\n }", "title": "" }, { "docid": "22985d7871cc9e979ed1520bae8b132b", "score": "0.7210726", "text": "@Override\n public void onAdLoaded() {\n Toast.makeText(BannerAddActivity.this, \"Ad Loaded\", Toast.LENGTH_SHORT).show();\n }", "title": "" }, { "docid": "68f67a5a67adcb17a86660e0a2aceade", "score": "0.7164799", "text": "@Override\n public void onAdLoaded() {\n super.onAdLoaded();\n //Toast.makeText(TossActivity.this, \"Ad loaded\", Toast.LENGTH_SHORT).show();\n }", "title": "" }, { "docid": "eab9e839c9e37f66f122d8fb14db9337", "score": "0.7105805", "text": "@Override\n public void onError(Ad ad, AdError adError) {\n Log.e(TAG, \"Native ad failed to load: \" + adError.getErrorMessage());\n }", "title": "" }, { "docid": "928813eb4a53862a9b0d69278dbde5a5", "score": "0.7092231", "text": "@Override\n public void onAdShow() {\n ToastUtil.showToast(\"ad show\");\n }", "title": "" }, { "docid": "f3c17d0e894e8ef6e613fc894e5bcc6e", "score": "0.7082659", "text": "@Override\n public void onAdFailed(String s) {\n Log.e(TAG, \"Banner failed: \" + s);\n }", "title": "" }, { "docid": "6e8a72a018b2f89bdae12a6cc78231cd", "score": "0.69796073", "text": "@Override\n public void onAdFailedToLoad(int errorCode) {\n Log.e(\"AdListener\", \"onAdFailedToLoad: AdLoading Failed. ErrorCode: \" + errorCode);\n adView.setVisibility(View.GONE);\n }", "title": "" }, { "docid": "683e445cf52013fee3deb30f0310ce20", "score": "0.69350356", "text": "@Override\n\t\t\tpublic void onAdFailedToLoad(int errorCode) {\n\t\t\t\tGdx.app.log(\"插屏广告\"+errorCode,\" 广告加载失败,0:内部出现问题;例如,收到广告服务器的无效响应。,1:广告请求无效,例如,广告单元 ID 不正确 ,2:由于网络连接问题,广告请求失败,3:广告请求成功,但由于缺少广告资源,未返回广告。\");\n\t\t\t}", "title": "" }, { "docid": "434feadb0d64a7c2e194bdb4801cba6a", "score": "0.69317853", "text": "@Override\n public void onAdFailedToLoad(LoadAdError adError) {\n }", "title": "" }, { "docid": "d1436e003bb5c0f170bfd9fe1c414e2b", "score": "0.692141", "text": "@Override\n public void onAdLoaded() {\n Toast.makeText(context, \"InterstialAd Loaded\", Toast.LENGTH_LONG).show();\n super.onAdLoaded();\n }", "title": "" }, { "docid": "5800616fc5bf9fc62f1739e000026455", "score": "0.68650335", "text": "@Override\n public void onAdFailedToLoad(int errorCode) {\n mAdView.setVisibility(View.GONE);\n }", "title": "" }, { "docid": "b758aaf2eea5e524a71bc8fd9de28ec1", "score": "0.6851024", "text": "void didFailToReceiveAd (GADBannerView view, GADRequestError error);", "title": "" }, { "docid": "1dd0cd0afc4862e548fc610ee89f8f26", "score": "0.68439496", "text": "@Override\r\n public void onAdFailedToLoad(int errorCode)\r\n {\n super.onAdFailedToLoad(errorCode);\r\n }", "title": "" }, { "docid": "1dd0cd0afc4862e548fc610ee89f8f26", "score": "0.68439496", "text": "@Override\r\n public void onAdFailedToLoad(int errorCode)\r\n {\n super.onAdFailedToLoad(errorCode);\r\n }", "title": "" }, { "docid": "3f32e5e83a131fb830e9db3864c2307c", "score": "0.6836621", "text": "@Override\n public void onAdLoaded() {\n toast(\"RewardedAdsActivity onAdLoaded\");\n }", "title": "" }, { "docid": "355bf6cdc8cd94ef5d326cae75386cad", "score": "0.68179595", "text": "@Override\n public void onAdFailedToLoad(int errorCode) {\n\n super.onAdFailedToLoad(errorCode);\n\n }", "title": "" }, { "docid": "fa901c4e3f59fbca4c2acb9bd17fb0fd", "score": "0.6735143", "text": "public void avisoError(){\n\t\t \t\tToast.makeText(getApplicationContext(), \"Error de Autentificacion\",Toast.LENGTH_LONG).show();\n\t\t \t}", "title": "" }, { "docid": "a149443f3ef8dba35e7a2ef768029b2f", "score": "0.67226034", "text": "@Override\n public void onAdFailedToLoad(LoadAdError adError) {\n }", "title": "" }, { "docid": "a149443f3ef8dba35e7a2ef768029b2f", "score": "0.67226034", "text": "@Override\n public void onAdFailedToLoad(LoadAdError adError) {\n }", "title": "" }, { "docid": "24575565b769bd587a2e0b005c104816", "score": "0.6710819", "text": "@Override\n public void onAdLeftApplication() {\n Toast.makeText(BannerAddActivity.this, \"Ad Left Application\", Toast.LENGTH_SHORT).show();\n }", "title": "" }, { "docid": "406e4a80b5ce52ef9e29b505ac3d7d42", "score": "0.67103994", "text": "@Override\n public void onAdFailedToLoad(int errorCode) {\n Log.i(HMKApplication.TAG, \"SplashAdLoadListener onAdFailedToLoad, errorCode: \" + errorCode);\n if(listener != null){\n listener.onAdFailedToLoad(\"ErrorCode: \"+errorCode);\n }\n }", "title": "" }, { "docid": "5c2d25c8e84b7d6c9c572e99b2eb424c", "score": "0.66783684", "text": "@Override\n public void onAdFailedToLoad(int errorCode) {\n Log.e(\"MainActivity\", \"The previous banner ad failed to load. Attempting to\"\n + \" load the next banner ad in the items list.\");\n loadBannerAd(index + ITEMS_PER_AD);\n }", "title": "" }, { "docid": "b4dfceb099213e623978081382135688", "score": "0.66588414", "text": "@Override\n public void onAdOpened() {\n Toast.makeText(BannerAddActivity.this, \"Ad Opened\", Toast.LENGTH_SHORT).show();\n }", "title": "" }, { "docid": "e4c2c3f0a4775986a849370433fba221", "score": "0.6654568", "text": "@Override\n public void onAdFailedToShowFullScreenContent(AdError adError) {\n Log.d(\"TAG\", \"The ad failed to show.\");\n }", "title": "" }, { "docid": "4cd48dafa9ea83f3510f9ccd179a8a06", "score": "0.6596017", "text": "@Override\n public void onAdFailedToShow(@NonNull POBRewardedAd ad,@NonNull POBError error) {\n Log.e(TAG, \"Rewarded : onAdFailedToShow\");\n Log.e(TAG,\"Ad failed with show error - \" + error.toString());\n //Method gets called when sdk fails to show ad\n //Here, you can put logger and see why ad failed to show\n }", "title": "" }, { "docid": "c689402c8587360cd0ca7838418f4e36", "score": "0.6578391", "text": "@Override\n public void onAdClicked() {\n ToastUtil.showToast(\"ad clicked\");\n }", "title": "" }, { "docid": "c46a7d2ceeae33e73fc45945d2c117c9", "score": "0.6552934", "text": "@Override\n public void onAdLoaded() {\n Log.d(TAG, \"Ad loaded.\");\n }", "title": "" }, { "docid": "fad11bd84294951cc1f4a84695a29a5e", "score": "0.65132046", "text": "@Override\n public void onAdLoaded() {\n super.onAdLoaded();\n Toast.makeText(AdActivity.this, \"Ad Loaded\", Toast.LENGTH_SHORT).show();\n JCLoger.debug(\"Ad Loaded\");\n }", "title": "" }, { "docid": "a4853c8e1780ffc460f9d1dbf5c77535", "score": "0.64653206", "text": "@Override\n public void onAdClosed() {\n Toast.makeText(MainActivity.this, \"Add is Closed\", Toast.LENGTH_SHORT).show();\n }", "title": "" }, { "docid": "0d7c0669ec0f0cd26b4bb8ead8a76c3b", "score": "0.6440722", "text": "private void showError(final String errorMessage) {\n //Toast.makeText(IapSampleActivity.this, errorMessage, Toast.LENGTH_LONG).show();\n }", "title": "" }, { "docid": "c32103dec7851719599ee45d8a5fbdd6", "score": "0.6426408", "text": "@Override\n public void onAdDisplayFailed(MaxAd ad, MaxError error) {\n this.ad.loadAd();\n // Called when fullscreen content failed to show.\n Log.d(\"AppLovin\", \"The ad failed to show.\");\n }", "title": "" }, { "docid": "73c5759be9c71a9e43891a762d067ed8", "score": "0.63598484", "text": "@Override\n public void onFailure(@NonNull Exception e) {\n\n Toast.makeText(context, \"Error:\"+e.getMessage(), Toast.LENGTH_SHORT).show();\n }", "title": "" }, { "docid": "46eb446a18e67a9f77f6f1749f0c66e3", "score": "0.6330551", "text": "@Override\n public void onAdFailedToLoad(LoadAdError adError) {\n super.onAdFailedToLoad(adError);\n mAdView.loadAd(adRequest);\n }", "title": "" }, { "docid": "54af6033d21c148f8b10366ad90ad6f1", "score": "0.6329229", "text": "@Override\n public void onFailure(@NonNull Exception exception) {\n Toast.makeText(getActivity(), \"\"+exception, Toast.LENGTH_SHORT).show();\n }", "title": "" }, { "docid": "70133e681ab756073bbdc01a9ac19388", "score": "0.62952185", "text": "@Override\n public void onAdFailedToLoad(@NonNull POBRewardedAd ad, @NonNull POBError error) {\n Log.d(TAG, \"Rewarded : onAdFailedToLoad\" );\n Log.e(TAG,\"Ad failed with load error - \" + error.toString());\n //Method gets called when sdk fails to load ad\n //Here, you can put logger and see why ad failed to load\n }", "title": "" }, { "docid": "f958621a1716c28e1b123f27efdcf8bf", "score": "0.62907296", "text": "public void onError(Exception error) {\n showToast(error.toString());\n\n\n }", "title": "" }, { "docid": "5254f230e3b37c35c16254f7ec87d250", "score": "0.62862754", "text": "@Override\n\t\t\tpublic void onError(com.facebook.ads.Ad ad,\n\t\t\t\t\tcom.facebook.ads.AdError error) {\n\t\t\t\tLog.d(\"aaa\", \"aa\");\n\t\t\t\t// Add code to hide the ad's view\n\t\t\t\t// adViewFaceBook.dis\n\t\t\t\t// showStarAppBanner();\n\t\t\t}", "title": "" }, { "docid": "f1a0923d3b269d643df4da1aee0b4ece", "score": "0.62704515", "text": "@Override\n public void onFailure(@NonNull Exception e) {\n Toast.makeText(MainActivity.this,\"Fallo\", Toast.LENGTH_LONG).show();\n }", "title": "" }, { "docid": "f1a0923d3b269d643df4da1aee0b4ece", "score": "0.62704515", "text": "@Override\n public void onFailure(@NonNull Exception e) {\n Toast.makeText(MainActivity.this,\"Fallo\", Toast.LENGTH_LONG).show();\n }", "title": "" }, { "docid": "32db48599bc9690f5133707266849853", "score": "0.6248764", "text": "@Override\n public void onAdClosed() {\n Toast.makeText(BannerAddActivity.this, \"Ad Closed\", Toast.LENGTH_SHORT).show();\n }", "title": "" }, { "docid": "a51840690091d510e4bf8fffd3b20acd", "score": "0.62422335", "text": "@Override\n public void onAdOpened() {\n Log.d(TAG, String.format(\"Ad opened \"));\n }", "title": "" }, { "docid": "4edf0a7bae38036905b9cccbb6dd073f", "score": "0.6240775", "text": "void showErroMessage (String message){\n Toast.makeText(this, message, Toast.LENGTH_LONG).show();\n }", "title": "" }, { "docid": "1df2c12d54e9fb0a8f09b617110c6647", "score": "0.62213236", "text": "@Override\n public void onFailure(@NonNull Exception e) {\n Toast.makeText(MainActivity.this,\"Fallo\", Toast.LENGTH_LONG).show();\n }", "title": "" }, { "docid": "a70df7f0ed44d06ff5110f426525ba5d", "score": "0.620137", "text": "@Override\n public void onError(Ad ad, AdError error) {\n Log.e(TAG, \"Rewarded video ad failed to load: \" + error.getErrorMessage());\n }", "title": "" }, { "docid": "58462db2b772b094f15ca18523f60f42", "score": "0.6200487", "text": "@Override\r\n public void onFailure(@NonNull Exception e) {\n progressDialog.dismiss();\r\n Toast.makeText(getApplicationContext(), \"Error\"+e.getMessage(),Toast.LENGTH_LONG).show();\r\n }", "title": "" }, { "docid": "523bfe83d66a7e59c07e1b0d0f50f93b", "score": "0.6197454", "text": "@Override\n public void onAdLoaded() {\n Log.i(\"Ads\", \"onAdLoaded\");\n }", "title": "" }, { "docid": "2103016af53c436dfc1d7c7afd9410ca", "score": "0.6183981", "text": "@Override\n public void onFailure(@NonNull Exception exception) {\n ProgressDialogBox.disMissDailog();\n\n //and displaying error message\n Toast.makeText(getApplicationContext(), exception.getMessage(), Toast.LENGTH_LONG).show();\n Log.e(\"message\",exception.getMessage());\n }", "title": "" }, { "docid": "09ff8f23ce430587b0fbb709ce656fbf", "score": "0.6181622", "text": "@Override\n public void onFailure(String message){\n progressDialog.dismiss();\n Toast.makeText(getApplicationContext(), \"Cannot make video, please try again later.\", Toast.LENGTH_SHORT).show();\n //Log.d(\"fail reason\", message);\n AlertDialog.Builder builder = new AlertDialog.Builder(MainActivity.this);\n builder.setMessage(message);\n builder.setTitle(\"Something went wrong...\");\n builder.setCancelable(true);\n builder.setPositiveButton(\"ok\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n dialogInterface.dismiss();\n }\n });\n AlertDialog alertDialog = builder.create();\n alertDialog.show();\n }", "title": "" }, { "docid": "e2003ff2e9d54761ebbc3a9308345fb8", "score": "0.61193085", "text": "@Override\n public void onErrorResponse(VolleyError error) {\n String texterror = getString(R.string.error);\n Toast toast = Toast.makeText(DeleteAccount.this, texterror, Toast.LENGTH_SHORT);\n toast.show();\n }", "title": "" }, { "docid": "d6677690b4589f7167e66edbf7e26e2d", "score": "0.61160743", "text": "private void showErrorToast(String message){\n Toast.makeText(LoginActivity.this, message, Toast.LENGTH_LONG).show();\n }", "title": "" }, { "docid": "3bf9de5e8b6197584558c71ecc1a8120", "score": "0.6112651", "text": "private void sendFailed()\n {\n new Toast(getApplicationContext()).makeText(getApplicationContext(), \"Must take picture\", Toast.LENGTH_LONG).show();\n }", "title": "" }, { "docid": "1aa0501e1ffd3ba837134784b3cac133", "score": "0.6109223", "text": "@Override\n public void onErrorResponse(VolleyError error) {\n Toast.makeText(getApplicationContext(),\n error.getMessage(), Toast.LENGTH_LONG).show();\n //Toast.makeText(DashboardActivity.this,\"hola\", Toast.LENGTH_SHORT).show();\n\n }", "title": "" }, { "docid": "1aa0501e1ffd3ba837134784b3cac133", "score": "0.6109223", "text": "@Override\n public void onErrorResponse(VolleyError error) {\n Toast.makeText(getApplicationContext(),\n error.getMessage(), Toast.LENGTH_LONG).show();\n //Toast.makeText(DashboardActivity.this,\"hola\", Toast.LENGTH_SHORT).show();\n\n }", "title": "" }, { "docid": "9e3b14060a9b41001884b12095a15a56", "score": "0.61063284", "text": "@Override\n public void onAdClicked() {\n Log.d(TAG, \"Ad clicked\");\n }", "title": "" }, { "docid": "6bc54adacbcd7d2f008a7c78991cb721", "score": "0.61059767", "text": "public void showError(String message){\n Toast.makeText(this,message,Toast.LENGTH_SHORT).show();\n }", "title": "" }, { "docid": "55c538c09093790d89a086c76caaa161", "score": "0.6097231", "text": "@Override\n public void onAdClosed() {\n mNewListInterstitialAd.loadAd(new AdRequest.Builder().build());\n Toast.makeText(getApplicationContext(), getString(R.string.wait_save), Toast.LENGTH_LONG).show();\n }", "title": "" }, { "docid": "b4ba9f2ff8aa454b6ce865de5d92f53a", "score": "0.608178", "text": "@Override\r\n public void onFailure(@NonNull Exception e) {\n progressDialog.dismiss();\r\n Toast.makeText(getApplicationContext(), \"Error\"+e.getMessage(),Toast.LENGTH_LONG).show();\r\n }", "title": "" }, { "docid": "fc94bf601d1c626fc278497b6568a20f", "score": "0.6064837", "text": "@Override\r\n public void onAdLoaded(Ad ad) {\n\r\n }", "title": "" }, { "docid": "4b5171db50f0f4ebf478a99884d96dc3", "score": "0.60566473", "text": "public void error(String strerror){\n Vibrator vibrator = (Vibrator)this.getSystemService(Context.VIBRATOR_SERVICE);\n vibrator.vibrate(200);\n\n Context context = this.getApplicationContext();\n Toast toast1 = Toast.makeText(context,\"Error: \"+strerror, Toast.LENGTH_SHORT);\n toast1.show();\n }", "title": "" }, { "docid": "f0078352fc7e4be12e87832091335faa", "score": "0.6044424", "text": "@Override\n public void onErrorResponse(VolleyError error) {\n Toast.makeText(getActivity(), error.getMessage(), Toast.LENGTH_LONG).show();\n\n }", "title": "" }, { "docid": "f0078352fc7e4be12e87832091335faa", "score": "0.6044424", "text": "@Override\n public void onErrorResponse(VolleyError error) {\n Toast.makeText(getActivity(), error.getMessage(), Toast.LENGTH_LONG).show();\n\n }", "title": "" }, { "docid": "0d32f6a423242a48122e93ec16170820", "score": "0.60440093", "text": "@Override\n public void onFailure(@NonNull Exception exception) {\n progressDialog.dismiss();\n\n //and displaying error message\n Toast.makeText(getApplicationContext(), exception.getMessage(), Toast.LENGTH_LONG).show();\n }", "title": "" }, { "docid": "899b454b0a89c5f41e1b83b79dbb3e9e", "score": "0.60359716", "text": "@Override\n public void onFailure(Exception error) {\n Toast.makeText(getActivity(), \"ERROR: \" + error.getMessage(), Toast.LENGTH_LONG).show();\n }", "title": "" }, { "docid": "4e713f054f2f25798be9afd8f33de4da", "score": "0.6035499", "text": "@Override\n public void onFailure(@NonNull Exception e) {\n pd.dismiss();\n //get mostrar error messagem\n Toast.makeText(MainActivity.this, e.getMessage(), Toast.LENGTH_SHORT).show();\n }", "title": "" }, { "docid": "d65197272f9e5d52aa01535ce7ab4ce2", "score": "0.60321987", "text": "@Override\n\t public void onFailedReceiveAd() {\n\t MMLog.i(\"横幅广告请求失败\");\n\t Log.i(\"Alimama\",\"YXC Alimama 横幅广告请求失败\");\n\t }", "title": "" }, { "docid": "7964aa9e994b828add3ca8bfd9576921", "score": "0.6030542", "text": "@Override\n\t\t\t\t\t\tpublic void onError(DialogError e) {\n\t\t\t\t\t\t\tToast.makeText(getApplicationContext(), \"onError in FB Auhorise\", Toast.LENGTH_SHORT).show();\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}", "title": "" }, { "docid": "7964aa9e994b828add3ca8bfd9576921", "score": "0.6030542", "text": "@Override\n\t\t\t\t\t\tpublic void onError(DialogError e) {\n\t\t\t\t\t\t\tToast.makeText(getApplicationContext(), \"onError in FB Auhorise\", Toast.LENGTH_SHORT).show();\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}", "title": "" }, { "docid": "8091b1c93f6892b2d1f3a06b2a833244", "score": "0.6023786", "text": "@Override\n public void onErrorResponse(VolleyError error) {\n loading.dismiss();\n LogManager.printError(getClass(),error.getMessage());\n //Showing toast\n //Toast.makeText(MainActivity.this, error.getMessage().toString(), Toast.LENGTH_LONG).show();\n }", "title": "" }, { "docid": "379547dfdb3dc7dfbf930389ff0a6d9c", "score": "0.6020574", "text": "@Override\n public void onFailure(@NonNull Exception e) {\n dialog.dismiss();\n //Display err toast msg\n Toast.makeText(getApplicationContext(), e.getMessage(), Toast.LENGTH_SHORT).show();\n }", "title": "" }, { "docid": "d3af1eb8299e2a882121412341c1c8dc", "score": "0.6012874", "text": "@Override\n public void onErrorResponse(VolleyError error) {\n Toast.makeText(getApplicationContext(), error.getMessage(), Toast.LENGTH_SHORT).show();\n }", "title": "" }, { "docid": "d3af1eb8299e2a882121412341c1c8dc", "score": "0.6012874", "text": "@Override\n public void onErrorResponse(VolleyError error) {\n Toast.makeText(getApplicationContext(), error.getMessage(), Toast.LENGTH_SHORT).show();\n }", "title": "" }, { "docid": "d3af1eb8299e2a882121412341c1c8dc", "score": "0.6012874", "text": "@Override\n public void onErrorResponse(VolleyError error) {\n Toast.makeText(getApplicationContext(), error.getMessage(), Toast.LENGTH_SHORT).show();\n }", "title": "" }, { "docid": "e66dd1012aa42cf66cb13cec27b48f62", "score": "0.601272", "text": "@Override\n\t\t\tpublic void onFail(String errorCode, String errorMsg) {\n\t\t\t\ttoastShort(errorMsg);\n\t\t\t}", "title": "" }, { "docid": "a53b8477f0f0ff5dd666c816a0554ad8", "score": "0.6010096", "text": "@Override\n public void run() {\n Toast.makeText(context, \"Hi ha hagut un error inesperat al desar les dades.\", Toast.LENGTH_LONG).show();\n }", "title": "" }, { "docid": "0253c110b87019b5f220bac6a85c0083", "score": "0.60001695", "text": "@Override\n public void onRewardedAdFailedToLoad(int errorCode) {\n }", "title": "" }, { "docid": "366de2a8ea7a91e53db08eef54557b5c", "score": "0.5999535", "text": "@Override\n public void onAdLoaded() {\n if (interstitialAd.isLoaded()) {\n //interstitialAd.show();\n } else {\n Log.d(\"TAG\", \"The interstitial wasn't loaded yet.\");\n }\n }", "title": "" }, { "docid": "64dba7780224a1e9dba1cd14e02d9ea0", "score": "0.59989715", "text": "@SuppressWarnings(\"unused\")\n\tprivate void showErrorDialog(final int errorCode) {\n\n // Get the error dialog from Google Play services\n Dialog errorDialog = GooglePlayServicesUtil.getErrorDialog(\n errorCode,\n this,\n LocationUtils.CONNECTION_FAILURE_RESOLUTION_REQUEST);\n\n // If Google Play services can provide an error dialog\n if (errorDialog != null) {\n\n \tLog.d(TAG,\"errorDialog\");\n \t\n }\n }", "title": "" }, { "docid": "07216c7e358cb15bfe1c6ed674ce4885", "score": "0.59955007", "text": "@Override\n public void onFailure(@NonNull Exception e) {\n Toast.makeText(getContext(), e.getMessage(), Toast.LENGTH_SHORT).show();\n display();\n }", "title": "" }, { "docid": "c84f13cc3339cdb0cabbc579ae444885", "score": "0.5994663", "text": "@Override\n public void onFailure(String message) {\n Toast.makeText(this, message, Toast.LENGTH_SHORT).show();\n }", "title": "" }, { "docid": "37a77ec6f2bf0c360207f7443e9588de", "score": "0.5994532", "text": "@Override\n public void onFailure(@NonNull Exception e) {\n dialog.dismiss();\n //Display err toast msg\n Toast.makeText(getApplicationContext(), e.getMessage(), Toast.LENGTH_SHORT).show();\n }", "title": "" }, { "docid": "7806faf1653992c3581eda9a0bc9ba4e", "score": "0.5978972", "text": "@Override\n\t\t\tpublic void onError(FacebookException error) {\n\t\t\t\tToast.makeText(getApplicationContext(),\"Error\", Toast.LENGTH_LONG).show();\n\t\t\t\t\n\t\t\t}", "title": "" } ]
5bdaf8929c75e9446e17d6f1aff8a630
// STRING is for future expansion // WARNING: Any new PageType need to be added to AtsDslProposalProvider for content assist PageType: "Working" | "Completed" | "Cancelled" | PAGE_TYPE_NAME;
[ { "docid": "da7ec426366168a5bc90cb7f48307c7e", "score": "0.0", "text": "@Override\n public ParserRule getRule() {\n return rule;\n }", "title": "" } ]
[ { "docid": "016a300a22a3c4d9e070f3bcbbe912ed", "score": "0.5339061", "text": "org.jetbrains.wip.protocol.page.ResourceType type();", "title": "" }, { "docid": "141158f06fd18f543593a7829e5d476e", "score": "0.5300887", "text": "@Override\n public Class<String> getType() {\n return String.class;\n }", "title": "" }, { "docid": "7376737bb78e6390662326e5940eb72e", "score": "0.5250222", "text": "@Override\n public Type<?> getType()\n {\n return Type.STRINGS;\n }", "title": "" }, { "docid": "e56ac3689490c273733338d4f0e4fb9b", "score": "0.51686144", "text": "public interface RetrievalJobType\n{\n\t//#CM721255\n\t/**\n\t * Picking Work division (Order)\n\t */\n\tpublic static final String RETRIEVAL_JOB_TYPE_ORDER = \"1\";\n\t\n\t//#CM721256\n\t/**\n\t * Picking Work division (Item)\n\t */\n\tpublic static final String RETRIEVAL_JOB_TYPE_ITEM = \"2\";\n\t\n\t\n}", "title": "" }, { "docid": "c9cbbc56be3091f66e8ca5c332c3cf96", "score": "0.50929385", "text": "public void setPaginationType(java.lang.String paginationType) {\n this.paginationType = paginationType;\n }", "title": "" }, { "docid": "a225c17e0e687f400b05c82ceecac2ee", "score": "0.49747673", "text": "PASchedulerProperties(String str, PropertyType type) {\n this.key = str;\n this.type = type;\n }", "title": "" }, { "docid": "776625dbd691d8c6282423cfd62280cf", "score": "0.49500433", "text": "@Override\n\tpublic void setType(String type) {\n\t}", "title": "" }, { "docid": "8df11755d103a7918868707e865a677d", "score": "0.49078023", "text": "public void setType(String type) { this.type = type; }", "title": "" }, { "docid": "0906fa8bd6fa6a28d664da2d5d0a19b0", "score": "0.4907321", "text": "@ApiModelProperty(example = \"[\\\"B\\\",\\\"I\\\"]\", value = \"Type of bankruptcy: - B: Business - I: Individual \")\n \n @Size(max=1) public String getType() {\n return type;\n }", "title": "" }, { "docid": "cd57dc84f07122a58582c8347dec2d90", "score": "0.48716885", "text": "public void setType (String newValue) {\n\t\t_Type = newValue;\n\t}", "title": "" }, { "docid": "a90243d53487b0f6c70c4ab75fff4d5a", "score": "0.48687708", "text": "public void setType(String type)\n/* */ {\n/* 154 */ this.type = type;\n/* */ }", "title": "" }, { "docid": "0ab4016a90fcca82c19ffa8b0222d17d", "score": "0.48669282", "text": "public final void rule__Type__StringAssignment_0_1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // InternalAgreeParser.g:27713:1: ( ( ruleprimTypes ) )\n // InternalAgreeParser.g:27714:1: ( ruleprimTypes )\n {\n // InternalAgreeParser.g:27714:1: ( ruleprimTypes )\n // InternalAgreeParser.g:27715:1: ruleprimTypes\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getTypeAccess().getStringPrimTypesParserRuleCall_0_1_0()); \n }\n pushFollow(FollowSets000.FOLLOW_2);\n ruleprimTypes();\n\n state._fsp--;\n if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getTypeAccess().getStringPrimTypesParserRuleCall_0_1_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "75f0ae0b1d6135ab839358fdce2a0191", "score": "0.48414743", "text": "public void setType(java.lang.String type) {\r\n this.type = type;\r\n }", "title": "" }, { "docid": "75f0ae0b1d6135ab839358fdce2a0191", "score": "0.48414743", "text": "public void setType(java.lang.String type) {\r\n this.type = type;\r\n }", "title": "" }, { "docid": "f1dde5853da51337f03bf3be8a92b213", "score": "0.48286334", "text": "public void setType(String aType) {\n type = aType;\n }", "title": "" }, { "docid": "3733fd96b836aa25f70a190fcfa5caac", "score": "0.48222503", "text": "public int getType() {\n\t\treturn PropertyType.STRING;\r\n\t}", "title": "" }, { "docid": "75f68217d148960ecabbc313c1ed3439", "score": "0.482047", "text": "@Override\r\n\t\tpublic String getType() {\r\n\t\t\treturn TYPE;\r\n\t\t}", "title": "" }, { "docid": "84cae3b0db34e9bb7b15b75961a2df89", "score": "0.48090002", "text": "public void getType(String type){\n \n this.type = type;\n \n }", "title": "" }, { "docid": "e47976633b2d4dabfa36b511bcaca363", "score": "0.4786895", "text": "public static void setType(String type){\n TYPE = type;\n }", "title": "" }, { "docid": "2114de6755da6ffbc90859576a8ebc4f", "score": "0.47778136", "text": "public String getType() { return type; }", "title": "" }, { "docid": "2114de6755da6ffbc90859576a8ebc4f", "score": "0.47778136", "text": "public String getType() { return type; }", "title": "" }, { "docid": "6f13bff0d90764f53214ce9ddc782750", "score": "0.47688758", "text": "public void setType(String type){\n this.type = type;\n }", "title": "" }, { "docid": "579bd0f61b902c62bdc7823b2c2835a5", "score": "0.47564337", "text": "@Override\n public boolean isString() {\n return type == TYPE_STRING;\n }", "title": "" }, { "docid": "49a5a839ada47e45c06a3629c14bf661", "score": "0.47545484", "text": "public void setType(java.lang.String type) {\n this.type = type;\n }", "title": "" }, { "docid": "49a5a839ada47e45c06a3629c14bf661", "score": "0.47545484", "text": "public void setType(java.lang.String type) {\n this.type = type;\n }", "title": "" }, { "docid": "49a5a839ada47e45c06a3629c14bf661", "score": "0.47545484", "text": "public void setType(java.lang.String type) {\n this.type = type;\n }", "title": "" }, { "docid": "49a5a839ada47e45c06a3629c14bf661", "score": "0.47545484", "text": "public void setType(java.lang.String type) {\n this.type = type;\n }", "title": "" }, { "docid": "49a5a839ada47e45c06a3629c14bf661", "score": "0.47545484", "text": "public void setType(java.lang.String type) {\n this.type = type;\n }", "title": "" }, { "docid": "49a5a839ada47e45c06a3629c14bf661", "score": "0.47545484", "text": "public void setType(java.lang.String type) {\n this.type = type;\n }", "title": "" }, { "docid": "ca5c3cfb5d1e533e50da1584cd3b6ca0", "score": "0.4750147", "text": "@Override\r\n public void setType(String type) {\r\n // TODO Auto-generated method stub\r\n this.type = type;\r\n }", "title": "" }, { "docid": "bab6712a266800dc9dbe33718421c368", "score": "0.47446263", "text": "public void setType(java.lang.String type) {\r\n\t\tthis.type = type;\r\n\t}", "title": "" }, { "docid": "358a1545cfe2281b7fd4584642517ae0", "score": "0.4742634", "text": "java.lang.String getType();", "title": "" }, { "docid": "358a1545cfe2281b7fd4584642517ae0", "score": "0.47419202", "text": "java.lang.String getType();", "title": "" }, { "docid": "358a1545cfe2281b7fd4584642517ae0", "score": "0.47419202", "text": "java.lang.String getType();", "title": "" }, { "docid": "358a1545cfe2281b7fd4584642517ae0", "score": "0.47419202", "text": "java.lang.String getType();", "title": "" }, { "docid": "358a1545cfe2281b7fd4584642517ae0", "score": "0.47419202", "text": "java.lang.String getType();", "title": "" }, { "docid": "358a1545cfe2281b7fd4584642517ae0", "score": "0.47419202", "text": "java.lang.String getType();", "title": "" }, { "docid": "358a1545cfe2281b7fd4584642517ae0", "score": "0.47419202", "text": "java.lang.String getType();", "title": "" }, { "docid": "358a1545cfe2281b7fd4584642517ae0", "score": "0.47419202", "text": "java.lang.String getType();", "title": "" }, { "docid": "358a1545cfe2281b7fd4584642517ae0", "score": "0.47419202", "text": "java.lang.String getType();", "title": "" }, { "docid": "358a1545cfe2281b7fd4584642517ae0", "score": "0.47419202", "text": "java.lang.String getType();", "title": "" }, { "docid": "358a1545cfe2281b7fd4584642517ae0", "score": "0.47419202", "text": "java.lang.String getType();", "title": "" }, { "docid": "6a525203b3e968e6b8329590aaaf46db", "score": "0.47366253", "text": "@DISPID(1009) //= 0x3f1. The runtime will prefer the VTID if present\n @VTID(20)\n void type(\n java.lang.String p);", "title": "" }, { "docid": "12ee53a6541a3f389d4c3125f0f0f762", "score": "0.47352824", "text": "public void setType(String type){\n this.type = StructureParser.cppify(type);\n }", "title": "" }, { "docid": "3dbf10d2178de721aec20cb4d1fe962b", "score": "0.47304443", "text": "public void setAssignmentType(final String value) {\n this.assignmentType = value;\n }", "title": "" }, { "docid": "035af272878b46f950fd673ea4cbaf17", "score": "0.47296754", "text": "public String stringType ()\n {\n return StringTypeVarchar;\n }", "title": "" }, { "docid": "b43d014015049aa93d75813c93f7bbde", "score": "0.47209728", "text": "public PropertyType getType() {\n return StaticPropertyType.STRING;\n }", "title": "" }, { "docid": "b43d014015049aa93d75813c93f7bbde", "score": "0.47209728", "text": "public PropertyType getType() {\n return StaticPropertyType.STRING;\n }", "title": "" }, { "docid": "b43d014015049aa93d75813c93f7bbde", "score": "0.47209728", "text": "public PropertyType getType() {\n return StaticPropertyType.STRING;\n }", "title": "" }, { "docid": "e57605d4c774785572fb2b47571ac3e4", "score": "0.46978804", "text": "public static TypingMessage.types stringAsType(String str){\n\t\tif(str.equals(\"NOTHING\"))\n\t\t\treturn types.NOTHING;\n\t\tif(str.equals(\"TYPING\"))\n\t\t\treturn types.TYPING;\n\t\tif(str.equals(\"ENTERED\"))\n\t\t\treturn types.ENTERED;\n\t\treturn null;\n\t}", "title": "" }, { "docid": "a14af329ca135774cc0855e8a6d8c12e", "score": "0.4689929", "text": "void setValue(gov.nih.nlm.ncbi.www.SeqFeatDataDocument.SeqFeatData.PsecStr.Value.Enum value);", "title": "" }, { "docid": "7cee9aa7798145a81a508cc423253038", "score": "0.46897018", "text": "public String typeAsString(){\n\t\tif(type == types.NOTHING)\n\t\t\treturn \"NOTHING\";\n\t\tif(type == types.TYPING)\n\t\t\treturn \"TYPING\";\n\t\tif(type == types.ENTERED)\n\t\t\treturn \"ENTERED\";\n\t\treturn null;\n\t}", "title": "" }, { "docid": "d9c7a4854893e9a8f59e96600011444b", "score": "0.4683854", "text": "private void setType(String type) {\n EditorImpact.log.info(\"The type Of the impact ::::\" + type);\n /*\n * P = Positive\n * N = Negative\n */\n if (type.equals(\"P\")) {\n this.type = type;\n Font font = new java.awt.Font(\"Tahoma\", Font.BOLD, 18);\n this.labTitle.setFont(font);\n this.labTitle.setText(\"Positive Impact\");\n } else if (type.equals(\"N\")) {\n this.type = type;\n Font font = new java.awt.Font(\"Tahoma\", Font.BOLD, 18);\n this.labTitle.setFont(font);\n this.labTitle.setText(\"Negative Impact\");\n } else {\n /* invalid type */\n }\n }", "title": "" }, { "docid": "c03bee6ad696bdb50e3e3ec3018ce4f5", "score": "0.4680405", "text": "public void setType(java.lang.String type) {\n\t\tthis.type = type;\n\t}", "title": "" }, { "docid": "820f144ea7f9293410897deacc7fb48e", "score": "0.46793815", "text": "public void setType(String type) {\n this.type = type;\n }", "title": "" }, { "docid": "04d8109cdfc84e1549adf17b8191f261", "score": "0.46659335", "text": "public static Result passPageStr() {\n\t\tString str = request().body().asJson().get(\"pageString\").toString();\n\t\tString name = request().body().asJson().get(\"name\").toString();\n\t\tString purpose = request().body().asJson().get(\"purpose\").toString();\n\t\tString url = request().body().asJson().get(\"url\").toString();\n\n\t\tSystem.out.println(\"page string: \" + str);\n\t\tSystem.out.println(\"climate service name: \" + name);\n\n\t\tObjectNode jsonData = Json.newObject();\n\t\tjsonData.put(\"pageString\", str);\n\n\t\t// POST Climate Service JSON data to CMU 9020 backend\n\t\t// One copy in backend and one copy in frontend\n\t\tJsonNode response = RESTfulCalls.postAPI(Constants.URL_HOST\n\t\t\t\t+ Constants.CMU_BACKEND_PORT\n\t\t\t\t+ Constants.SAVE_CLIMATE_SERVICE_PAGE, jsonData);\n\t\t\n\t\t\n\t\tSystem.out.println(\"WARNING!!!!!!\");\n\t\t// save page in front-end\n\t\tsavePage(str, name, purpose, url);\n\n\t\t// flash the response message\n\t\tApplication.flashMsg(response);\n\t\treturn ok(\"Climate Service Page has been saved succussfully!\");\n\t}", "title": "" }, { "docid": "be5a9184b338a021f0a68279e7ad6ad9", "score": "0.4662351", "text": "public void setType(String value) {\r\n\t\ttype = value;\r\n\t\tif (isLoadedPlanning(value) == false) {\r\n\t\t\ttry {\r\n\t\t\t\tconstruirePlanning(value, firstDay);\r\n\t\t\t} catch (Throwable e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t\tloadedPlannings().addObject(value);\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "d9f111353278806cebd6aedc2f718f60", "score": "0.46612075", "text": "public int getType() {\n\t\treturn AttributeDefinition.STRING;\n\t}", "title": "" }, { "docid": "9373dad003e4df0575178522a4b66b40", "score": "0.4660077", "text": "private void setType(String type) {\n this.type = type;\n }", "title": "" }, { "docid": "f4698aefb823f0fba52631a27b2ed9fb", "score": "0.46584275", "text": "@Override\n public String getType() {\n return type;\n }", "title": "" }, { "docid": "2733e62b7ef75f4aa91174d4b4351cf8", "score": "0.46572065", "text": "void setType(String type) {\n this.type = type;\n }", "title": "" }, { "docid": "621cdc50c1d633fb0cd7811b440f3408", "score": "0.4655717", "text": "@Override\n public void setType(String type) {\n this.type = type;\n }", "title": "" }, { "docid": "cef01b2c308485a070685c955df66005", "score": "0.46501732", "text": "abstract String getType();", "title": "" }, { "docid": "8116ca7589df35e0dc18b4c1ea4e570e", "score": "0.46482787", "text": "public java.lang.String getPaginationType() {\n return paginationType;\n }", "title": "" }, { "docid": "19c2ab5fb66028292356256fc538715f", "score": "0.4640174", "text": "public void setType(String type)\r\n {\r\n this.type = type;\r\n }", "title": "" }, { "docid": "8fedbd09c2ac8fa6369c6a47070111d0", "score": "0.46373332", "text": "public void setType(String type)\n {\n this.type = type;\n }", "title": "" }, { "docid": "3995281bb8cd8fa57120b4da83f4c863", "score": "0.46372977", "text": "@Override\n public void setType(String type) {\n\n }", "title": "" }, { "docid": "a103516be3cba23c413381e7747a1559", "score": "0.4630656", "text": "@Given(\"user clicks on {string} option\")\n public void user_clicks_on_option(String string) {\n \n }", "title": "" }, { "docid": "253bd99cb71d8e148111baccf9c5376c", "score": "0.46184546", "text": "public void setType(String type);", "title": "" }, { "docid": "fdcf20a710aa44841323d8d24e32ba07", "score": "0.46161908", "text": "public void setDay_type_string(String day_type_string) {\n this.day_type_string = day_type_string;\n }", "title": "" }, { "docid": "ebc09588be08857ec44108a4b5636f1e", "score": "0.46153864", "text": "public void setType(String type) {\n this.type = type;\n }", "title": "" }, { "docid": "eea3830d05c38eb2fea75ae635fc61b2", "score": "0.46056938", "text": "public void setActType(java.lang.String newActType) {\n\tactType = newActType;\n}", "title": "" }, { "docid": "ed73003731da2ffb707e7b75eaafff1f", "score": "0.4603729", "text": "public static String judgeStrType(String orginStr) {\n\n // Set the default string type to html_text type\n String strType = ConstantUtil.STRING_TYPE_HTML_TEXT;\n\n /*\n * Set the input string type to html_text type if the input string is\n * null or null string\n */\n if (orginStr == null || orginStr.trim().isEmpty()) {\n return strType;\n }\n\n if (JacksonUtil.isJsonType(orginStr)) { // judge if the input string is\n // json type\n strType = ConstantUtil.STRING_TYPE_JSON;\n } else if (isXmlType(orginStr)) { // judge if the input string is xml\n // type\n strType = ConstantUtil.STRING_TYPE_XML;\n }\n\n return strType;\n\n }", "title": "" }, { "docid": "35dacf115edc89c9d073a5c2bb628190", "score": "0.46019623", "text": "void setType(String type);", "title": "" }, { "docid": "83ee347b312d54a9c606988aa839a821", "score": "0.45970708", "text": "public String type() { return type; }", "title": "" }, { "docid": "43d336b36a48a3ad8d187d4f6d114938", "score": "0.45898467", "text": "public static String getType() {return TYPE;}", "title": "" }, { "docid": "4bb8fff657fd16ff744ef3bb91720cb0", "score": "0.45857695", "text": "public void setType(String type)\r\n\t{\r\n\t\tthis.type = type;\r\n\t}", "title": "" }, { "docid": "126380080272b72a0684fa5bc0142e0f", "score": "0.45764428", "text": "public void setType(String type) {\r\n this.type = type;\r\n }", "title": "" }, { "docid": "126380080272b72a0684fa5bc0142e0f", "score": "0.45764428", "text": "public void setType(String type) {\r\n this.type = type;\r\n }", "title": "" }, { "docid": "126380080272b72a0684fa5bc0142e0f", "score": "0.45764428", "text": "public void setType(String type) {\r\n this.type = type;\r\n }", "title": "" }, { "docid": "b6fcd7d5c9bae5492fbe2a97440bb8ed", "score": "0.4569931", "text": "public void setType(final String typeIn)\n {\n\n this.type = typeIn;\n\n }", "title": "" }, { "docid": "0e2c35e2653fcd25b91128d531e8b6c1", "score": "0.45650187", "text": "@Override\n\tpublic String getType() {\n\t\treturn \"prb\";\n\t}", "title": "" }, { "docid": "2c040af73b7c98f105b0aa5d75daa947", "score": "0.45611677", "text": "public void setType(String type)\n {\n this.type = type;\n }", "title": "" }, { "docid": "51082e497607c1a72f855acf67ebff77", "score": "0.45576355", "text": "public abstract String getPageDescription();", "title": "" }, { "docid": "ded208f120b2c058758c67fd3be14270", "score": "0.45572355", "text": "public void setType(String value) {\n type = value;\n }", "title": "" }, { "docid": "765a0855cf34ba80ef59ddb6eeb20667", "score": "0.45534003", "text": "public void setType(String type) \n\t{\n\t\tthis.type = type;\n\t}", "title": "" }, { "docid": "65c87ccd8927b438e20ba313b651760f", "score": "0.4545196", "text": "public void setTransactionType(String depositString) {}", "title": "" }, { "docid": "7febe900d9e379027a5e92be45e4789d", "score": "0.45433503", "text": "String getType();", "title": "" }, { "docid": "7febe900d9e379027a5e92be45e4789d", "score": "0.45433503", "text": "String getType();", "title": "" }, { "docid": "7febe900d9e379027a5e92be45e4789d", "score": "0.45433503", "text": "String getType();", "title": "" }, { "docid": "7febe900d9e379027a5e92be45e4789d", "score": "0.45433503", "text": "String getType();", "title": "" }, { "docid": "7febe900d9e379027a5e92be45e4789d", "score": "0.45433503", "text": "String getType();", "title": "" }, { "docid": "7febe900d9e379027a5e92be45e4789d", "score": "0.45433503", "text": "String getType();", "title": "" }, { "docid": "7febe900d9e379027a5e92be45e4789d", "score": "0.45433503", "text": "String getType();", "title": "" }, { "docid": "7febe900d9e379027a5e92be45e4789d", "score": "0.45433503", "text": "String getType();", "title": "" }, { "docid": "7febe900d9e379027a5e92be45e4789d", "score": "0.45433503", "text": "String getType();", "title": "" }, { "docid": "7febe900d9e379027a5e92be45e4789d", "score": "0.45433503", "text": "String getType();", "title": "" }, { "docid": "7febe900d9e379027a5e92be45e4789d", "score": "0.45433503", "text": "String getType();", "title": "" }, { "docid": "7febe900d9e379027a5e92be45e4789d", "score": "0.45433503", "text": "String getType();", "title": "" }, { "docid": "7febe900d9e379027a5e92be45e4789d", "score": "0.45433503", "text": "String getType();", "title": "" }, { "docid": "7febe900d9e379027a5e92be45e4789d", "score": "0.45433503", "text": "String getType();", "title": "" } ]
b61a38a54b4c8fe8f48aa57e983b4112
Validate that the building isn't empty and exists
[ { "docid": "ca29af95e19aa0dc2016ac2d0c94587e", "score": "0.6892019", "text": "protected void validateBuilding(Long buildingId) {\n if (buildingId == null) {\n rejectValue(\"building\", \"building.empty\");\n }\n else if (buildingRepository.findBuildingById(buildingId) == null) {\n rejectValue(\"building\", \"building.unknown\");\n }\n }", "title": "" } ]
[ { "docid": "60f973b6e38951a8e13deb62d4cf0992", "score": "0.65288764", "text": "public boolean isBuildsEmpty(Job<?, ?> job) {\n \treturn getBuilds(job).isEmpty();\r\n }", "title": "" }, { "docid": "17d335ce4d19daec61c5a7fb50eb1df4", "score": "0.6296692", "text": "public boolean isFillInTheBlank();", "title": "" }, { "docid": "66b69742b059c8313127ab641236f88e", "score": "0.62665397", "text": "public abstract boolean hasBuilding();", "title": "" }, { "docid": "c52173fef597233eae4aaa1a9a6d13dc", "score": "0.6020365", "text": "private boolean areFieldsEmpty() {\n return landmarkAddress.getText().toString().equals(\"\")\n || startDate.getText().toString().equals(\"\")\n || startTime.getText().toString().equals(\"\")\n || endDate.getText().toString().equals(\"\")\n || endTime.getText().toString().equals(\"\");\n }", "title": "" }, { "docid": "de142e895629da8fadd60d384b3d3750", "score": "0.6004251", "text": "boolean hasBuilding(int posn) {\n assert 0 <= posn && posn < 6 : \"Invalid position!\";\n return _adjBuildings[posn] != null;\n }", "title": "" }, { "docid": "67eeca4c6da48714b6eece272f825647", "score": "0.5956631", "text": "public void checkBuild(Building building, Builder player, boolean builtOn) {\n if (!builtOn) {\n if (player.balance - building.COST >= 0) {\n build(building, player);\n }\n }\n }", "title": "" }, { "docid": "bcc5a9087a9965e31701b23422a50938", "score": "0.5949882", "text": "private void checkNotEmpty() {\n\t\tif (this.isEmpty()) {\n\t\t\tthrow new EmptyListError();\n\t\t}\n\t}", "title": "" }, { "docid": "b261b78761bc83f3bc6f44d18faaffc2", "score": "0.59263706", "text": "void ensureEmpty();", "title": "" }, { "docid": "04926ad6efe003683ae4acd57b594725", "score": "0.59134555", "text": "boolean isFullTheAllTexBox(){\n String LN = modelCodeIdText.getText().toString();\n String FN = numberOfSeatsEditText.getText().toString();\n String CI = modelNameEditText.getText().toString();\n String TL = motorVolumeEditText.getText().toString();\n String CC = numberOfSeatsEditText.getText().toString();\n if(LN.isEmpty()|| FN.isEmpty() || CI.isEmpty() || TL.isEmpty() || CC.isEmpty()){\n return false;\n }\n return true;\n\n }", "title": "" }, { "docid": "0b3089865131e5b060e548d6a740fe00", "score": "0.5889646", "text": "protected boolean isValid() {\n String idVal = id.getValue();\n String labelValue=label.getValue();\n return idVal != null && idVal.trim().length() > 0 && labelValue != null && labelValue.trim().length() > 0;\n }", "title": "" }, { "docid": "b963c781c2884cc02780b2fc560da711", "score": "0.5886553", "text": "private boolean validateComposite() {\n\t\tboolean isValid = true;\n\n\t\tString customer = cbCustomer.getText();\n\t\tString station = cbStation.getText();\n\t\tString qType = cbType.getText();\n\t\tif (null == station || station.trim().length() == 0){\n\t\t\tAdminComposite.display(\"Please Select Station\", STATUS_SUCCESS, SUCCESS_FONT_COLOR);\n\t\t\treturn false;\n\t\t} else if (null == customer || customer.trim().length() == 0){\n\t\t\tAdminComposite.display(\"Please Select Customer\", STATUS_SUCCESS, SUCCESS_FONT_COLOR);\n\t\t\treturn false;\n\t\t} else if (null == qType || qType.trim().length() == 0){\n\t\t\tAdminComposite.display(\"Please Select Quotation Type\", STATUS_SUCCESS, SUCCESS_FONT_COLOR);\n\t\t\treturn false;\n\t\t}\t\t\t\n\n\t\t//Method to validate Quotation Values\n\t\tisValid = composite.validateQuotationValues();\n\t\t\n\t\treturn isValid;\n\t}", "title": "" }, { "docid": "24f51cb10ca2ca0a6e41e8364badcf3d", "score": "0.58429044", "text": "@Override\n public boolean isValid() {\n return getComponent().getAggregatorName().getText() != null\n && getComponent().getAggregatorName().getText().length() > 0;\n }", "title": "" }, { "docid": "0421ff3ff98fe6118d53b83ae60013ce", "score": "0.5826742", "text": "private boolean check_nulls(){\n if (!VehicleName.getText().isEmpty() && !Distance_Front_1axis.getText().isEmpty() && !Distance_1axis_2axis.getText().isEmpty() && !Distance_lastaxis_back.getText().isEmpty() &&\n !Height_1axis.getText().isEmpty() && !Velocity.getText().isEmpty() && !Time_to_previous_car.getText().isEmpty()) {\n return true;\n }\n else\n return false;\n }", "title": "" }, { "docid": "3f82154d15792b33b80b1cdca44e0fcd", "score": "0.580822", "text": "public boolean isFilled() {\n return(!this.getText().trim().equals(\"\"));\n }", "title": "" }, { "docid": "54677339ab8d72e65b7b51c50b81c8ab", "score": "0.5782247", "text": "protected void roomIsValid(String room) {\n if (StringUtils.isBlank(room)) {\n rejectValue(\"room\", \"room.empty\");\n }\n }", "title": "" }, { "docid": "961c5dd0ac509444dba13f45a90140c8", "score": "0.5757619", "text": "private void checkFillInTheBlankQuestion() {\n final Matcher matcher = FILL_IN_THE_BLANK_PATTERN.matcher(question.getText());\n if (!matcher.find()) {\n addFieldError(\"question.fillInTheBlank\", getText(\"validation.noBlank\"));\n }\n if (question.getFormattedQuestionText().equals(\"[]\")) {\n addFieldError(\"question.fillInTheBlank\", getText(\"validation.noText\"));\n }\n }", "title": "" }, { "docid": "b30ba202aa434b55f9f7ea187e61333a", "score": "0.57522744", "text": "public boolean checkFull() {\n\t\treturn (countEmptyBoxes() == 0);\n\t}", "title": "" }, { "docid": "8634026d246d7bf5b5fbf02195fb3ca7", "score": "0.57403713", "text": "public void checkIntegrity() throws MalformedXMLException {\r\n\r\n\t\tRoom room = values().stream().filter(r->!r.isComplete()).findAny().orElse(null);\r\n\t\t\t\r\n\t\tif(room != null)\r\n\t\t\tthrow new MalformedXMLException(String.format(InternationalisationManager.im.getMessage(\"rm.badXML\"),\r\n\t\t\t\t\troom.getRawName(), room.getExits().size(), System.lineSeparator()));\r\n\t}", "title": "" }, { "docid": "d6fa86d8a1a5166d8f7c2c6c644018f4", "score": "0.57222944", "text": "private boolean checkFieldsAreNotEmpty() {\r\n boolean noEmpty = true;\r\n if (recipeName.getText().toString().isEmpty()) {\r\n recipeName.setError(\"Please enter Recipe name\");\r\n noEmpty = false;\r\n }\r\n\r\n if (selectedRecipeCategory.equals(Utils.RECIPE_CATEGORY)) {\r\n Toast.makeText(getApplicationContext(), \"Select Recipe Category and Type\",\r\n Toast.LENGTH_LONG).show();\r\n noEmpty = false;\r\n }\r\n\r\n if (selectedRecipeType.equals(Utils.RECIPE_TYPE)) {\r\n Toast.makeText(getApplicationContext(), \"Select Recipe Category and Type\",\r\n Toast.LENGTH_LONG).show();\r\n noEmpty = false;\r\n }\r\n\r\n if (recipeIngredients.isEmpty()) {\r\n Toast.makeText(getApplicationContext(), \"Add ingredients\",\r\n Toast.LENGTH_LONG).show();\r\n noEmpty = false;\r\n }\r\n\r\n if (recipeInstructions.getText().toString().isEmpty()) {\r\n recipeInstructions.setError(\"Please enter Instructions\");\r\n noEmpty = false;\r\n }\r\n return noEmpty;\r\n }", "title": "" }, { "docid": "e238a1abc54c44d402320aa26ca62f18", "score": "0.5721388", "text": "boolean BoatEmpty();", "title": "" }, { "docid": "0a974ca86c4db56b226e29c8e3247e2e", "score": "0.5716028", "text": "private static boolean checkEmpty(StringTree toTest){\n toTest.makeEmpty();\n return toTest.size() == 0;\n }", "title": "" }, { "docid": "fe0d011f9c8cdff78b6916de341f72f0", "score": "0.56994945", "text": "@Override\n public boolean validate() {\n return Boolean.FALSE.equals(logsToLight.getLogsToLightArray().isEmpty())\n && Inventory.contains(FiremakingConstants.TINDERBOX);\n }", "title": "" }, { "docid": "a4fb4e470f674e057ebfa2dc59bea840", "score": "0.5683812", "text": "private boolean checkNodes() {\n return checkFields() &&\n teamsComboBox.getValue() != null &&\n startDatePicker.getValue() != null &&\n endDatePicker.getValue() != null &&\n !descriptionTextArea.getText().equals(\"\");\n }", "title": "" }, { "docid": "0d0b5609afb0c3d0c5b8362793fb4bf2", "score": "0.56779915", "text": "public boolean includesBlank() {\n return includesBlank;\n }", "title": "" }, { "docid": "4763f6ba0e5de1c74e09ade0a37c0af6", "score": "0.5674741", "text": "protected boolean isValid() {\n\t\tboolean isValid = true;\n\n\t\tStringBuilder errors = new StringBuilder();\n\n\t\tif (this.date == null) {\n\t\t\terrors.append(\"\\ndate is null!\"); //$NON-NLS-1$\n\t\t\tisValid = false;\n\t\t}\n\t\tif (this.pathMergeScript == null) {\n\t\t\terrors.append(\"\\npathMergeScript is null!\"); //$NON-NLS-1$\n\t\t\tisValid = false;\n\t\t}\n\t\tif (this.repositoryName == null) {\n\t\t\terrors.append(\"\\nrepositoryName is null!\"); //$NON-NLS-1$\n\t\t\tisValid = false;\n\t\t}\n\t\tif (this.revisionStart < 1) {\n\t\t\terrors.append(\"\\nrevisionStart is smaller 1!\"); //$NON-NLS-1$\n\t\t\tisValid = false;\n\t\t}\n\t\tif (this.revisionEnd < 1) {\n\t\t\terrors.append(\"\\nrevisionEnd is smaller 1!\"); //$NON-NLS-1$\n\t\t\tisValid = false;\n\t\t}\n\t\tif (this.status == null) {\n\t\t\terrors.append(\"\\nstatus is null!\"); //$NON-NLS-1$\n\t\t\tisValid = false;\n\t\t}\n\t\tif (this.urlSource == null) {\n\t\t\terrors.append(\"\\nurlSource is null!\"); //$NON-NLS-1$\n\t\t\tisValid = false;\n\t\t}\n\t\tif (this.urlTarget == null) {\n\t\t\terrors.append(\"\\nurlTarget is null!\"); //$NON-NLS-1$\n\t\t\tisValid = false;\n\t\t}\n\n\t\tif (LOGGER.isLoggable(Level.WARNING) && errors.length() > 0) {\n\t\t\tLOGGER.warning(String.format(\"Errors found during validation of mergeUnit=%s:%s\", this.toString(), //$NON-NLS-1$\n\t\t\t\t\terrors.toString()));\n\t\t}\n\n\t\treturn isValid;\n\t}", "title": "" }, { "docid": "75f6cefcba65e759d84820effc4a8189", "score": "0.5670221", "text": "public boolean valid() {\r\n\r\n\t\treturn super.valid() &&\r\n\t\t\t\tthis.getBaseMeasure().valid() &&\r\n\t\t\t\tthis.getAggregationFunction()!=null && !this.getAggregationFunction().isEmpty();\r\n\t}", "title": "" }, { "docid": "8befee2c6268ad84ccd1f2561c47bc1b", "score": "0.5667011", "text": "public boolean validateData(){\n if(mPhone_Number.getText().length() == 11\n && mName.getText().length() != 0\n && mBazu.getText().length() != 0\n && mBazu.getText().length() != 0\n && mBazu.getText().length() != 0\n && mBazu.getText().length() != 0\n && mBazu.getText().length() != 0\n && mBazu.getText().length() != 0\n && mBazu.getText().length() != 0\n && mBazu.getText().length() != 0\n && mBazu.getText().length() != 0\n && mChaati.getText().length()!= 0){\n return true;\n }\n\n return false;\n }", "title": "" }, { "docid": "a7a53c14f7435e19592214a1aa1d8b8f", "score": "0.56517905", "text": "@Test\r\n\tpublic void shouldBeValidAndEmpty() \r\n\t{\r\n\t\t//first reset the game to remove any anomalies\r\n\t\ttetrisObject.resetGame();\r\n\t\t//adding a piece to the board\r\n\t\ttetrisObject.board.addPiece((TileType.TypeI), 1, 2, 1);\r\n\t\t//checking to see if adding a different piece to the board is possible (which it should be\r\n\t\t//since we only added one differing location piece).\r\n\t\tassertEquals(true, tetrisObject.board.isValidAndEmpty((TileType.TypeI), 4, 5, 1));\r\n\t}", "title": "" }, { "docid": "8309ec120c525248c4bdc9357e07863a", "score": "0.56499904", "text": "public boolean is_empty();", "title": "" }, { "docid": "076a66dabd647850d6efb3286eaa3434", "score": "0.56462014", "text": "public boolean valid() {\n\t\treturn criteria != null && criteria.size() > 0 && (delete || (results != null && results.size() > 0));\n\t}", "title": "" }, { "docid": "fef3e9060c865dc124b6c678aff7d4b0", "score": "0.56318116", "text": "private boolean checkBuild(PlayerMove move, int playerID){\n //Get the played value and check if its reserved, deny if it is\n int playedValue = players[playerID].getHand().peekCard(move.getHandCardIndex()).getValue();\n if(players[playerID].isReservedValue(playedValue)){\n players[playerID].setRejectionReason(\"Tried to use a card that a build sums to\");\n return false;\n }\n\n //If no selected cards, reject as impossible\n Vector<Integer> selected = move.getTableCardIndices();\n if (selected.size() == 0) {\n players[playerID].setRejectionReason(\"Did not select any cards to build with\");\n return false;\n }\n\n //Get the sum\n int sum = playedValue;\n for (int i = 0; i < selected.size(); i++) {\n sum += table.peekCard(selected.get(i)).getValue();\n }\n\n //If exceed's ace high value, always invalid\n if(sum > 14){\n players[playerID].setRejectionReason(\"Selected cards sum over 14\");\n return false;\n }\n\n\n //If hand contains value, its valid\n boolean moveValidity = players[playerID].doesHandContain(sum);\n\n if(!moveValidity){\n players[playerID].setRejectionReason(\"Build sum to\" + Integer.toString(sum)\n + \" which is not a value in the hand\");\n }\n return moveValidity;\n\n }", "title": "" }, { "docid": "f84f82cda414d453427d8bc31e1393ef", "score": "0.5628232", "text": "private void isEmptyFieldsRule() throws RuleException {\n\t\tif(register.getTxtTransactionId().getText()== null || register.getTxtAmounTransaction().getText()==null || \r\n\t\t\tregister.getTxtTransactionId().getText().isEmpty() || register.getTxtAmounTransaction().getText().isEmpty()) {\r\n\t\t\tthrow new RuleException(\"All fields must be filled\");\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "1850a8d9e10f800c411659b722807b1e", "score": "0.56125283", "text": "public boolean buildRooms(int num) {\n //Makes sure parameter is valid\n if (num <= 0) {\n return false;\n }\n \n //Increase the capacity of the Vector\n rooms.ensureCapacity(rooms.size() + num);\n for (int i = 0; i < num; i++) {\n rooms.add(null);\n }\n //report success\n return true;\n }", "title": "" }, { "docid": "c65090a0524d2e1127f7705eae80c682", "score": "0.56124216", "text": "public boolean validatePartialSolution() {\r\n return this.areBulbsValid() && this.areWallsValid();\r\n }", "title": "" }, { "docid": "a7b7e0a6d4e372528915aa20427c493f", "score": "0.5609789", "text": "public boolean isNotEmptyMerchants() { return isNotNullMerchants() && !getMerchants().isEmpty(); }", "title": "" }, { "docid": "00f60e3a5e673b211d874a8395113047", "score": "0.5598846", "text": "private boolean addIsEmpty() {\n foodNameOut = foodName.getText().toString();\n infoOut = info.getText().toString();\n foodTypeOut = foodType.getSelectedItem().toString();\n riskPickerOut = riskPicker.getValue();\n\n\n switch (allergiesType.getCheckedRadioButtonId()) {\n case R.id.GradioB:\n if (foodName.getText().toString().trim().isEmpty() || info.getText().toString().trim().isEmpty()|| glutenGrams.getText().toString().isEmpty()||problemFood.getText().toString().trim().isEmpty()) {\n return true;\n } else {\n return false;\n }\n case R.id.DradioB:\n if (foodName.getText().toString().trim().isEmpty() || info.getText().toString().trim().isEmpty()|| dairyML.getText().toString().isEmpty()) {\n return true;\n } else {\n return false;\n }\n case R.id.PradioB:\n if (foodName.getText().toString().trim().isEmpty() || info.getText().toString().trim().isEmpty()|| peanutsTrace.getText().toString().isEmpty()) {\n return true;\n } else {\n return false;\n }\n default:\n return true;\n\n }\n }", "title": "" }, { "docid": "b9d1b81a927b11644b5aa552668c9939", "score": "0.5597372", "text": "protected boolean isEmptyInputValid(){\r\n\t\treturn false;\r\n\t}", "title": "" }, { "docid": "bdb8e67db648ac6b0f10977f8dc15254", "score": "0.55852306", "text": "public boolean isValid() {\n return directory != null && directory != null && customer != null && contact != null\n && !description.isBlank() && !customer.isBlank() && !customer.isBlank();\n }", "title": "" }, { "docid": "e7bb5921da3bebdd8e2e93a4113cb8c3", "score": "0.5571975", "text": "public boolean validate() {\r\n return maintenancePickupId > 0\r\n && deliveryId > 0\r\n && tokenId > 0\r\n && dateOpen != null\r\n && dateClose != null;\r\n }", "title": "" }, { "docid": "d6d049bc9a003d9d325f6e4ea57102a2", "score": "0.55658126", "text": "boolean checkCompletedForm(String[] infoArg) {\n // iterate the info array to check for empty fields\n for (String info: infoArg) {\n //TODO set error message here based on info position\n if (info.isEmpty()) return false;\n }\n return true;\n }", "title": "" }, { "docid": "038e2e56397fd12f5d15729b152dd1e5", "score": "0.5562804", "text": "@Transient\n\tboolean isValid() {\n\t\treturn (id != null && baselayer != null && !baselayer.isEmpty()\n\t\t\t\t&& scale > 0.0 && bbox != null && bbox.length == 4\n\t\t\t\t&& center != null && center.length == 2);// &&\n\t\t// items != null);\n\t}", "title": "" }, { "docid": "284214d2f60aca55a822fb03397300ee", "score": "0.55460346", "text": "public boolean notEmpty() { return size > 0; }", "title": "" }, { "docid": "383a570dc8d38193ceffc0080bd1f92d", "score": "0.55409783", "text": "private boolean areFieldsFilled(){\n\n boolean isOkToSave = false;\n\n //Get the details of product from text fields\n String nameStr = productName.getText().toString().trim();\n String tpStr = productTP.getText().toString().trim();\n String quantityStr = productQuantity.getText().toString().trim();\n\n //Check If Any field is empty, if so Toast a message to Warn the user\n if(TextUtils.isEmpty(quantityStr)){\n Toast.makeText(this, \"Product require a Quantity\", Toast.LENGTH_SHORT).show();\n }\n if(TextUtils.isEmpty(tpStr)){\n Toast.makeText(this, \"Product require a TP\", Toast.LENGTH_SHORT).show();\n }\n if(TextUtils.isEmpty(nameStr)){\n Toast.makeText(this, \"Product require a Name\", Toast.LENGTH_SHORT).show();\n }\n\n boolean isNameFilled = !TextUtils.isEmpty(nameStr);\n boolean isTPFilled = !TextUtils.isEmpty(tpStr);\n boolean isQuantityFilled = !TextUtils.isEmpty(quantityStr);\n\n\n if(isNameFilled && isTPFilled && isQuantityFilled){\n isOkToSave = true;\n }\n\n return isOkToSave;\n }", "title": "" }, { "docid": "dd140f0614bb059f7e2affd32eb3e38a", "score": "0.553663", "text": "public boolean isNotEmpty() {\n return !isEmpty();\n }", "title": "" }, { "docid": "3fa788f34b29bf7db06ddee65b77c51c", "score": "0.5529286", "text": "private void validateBlank() {\n if(titleField.getText().trim().isBlank() || titleField.getLength() == 0){\n hasErrors=true;\n System.out.println(\"Title\");\n }\n if(descriptionField.getText().trim().isBlank() || descriptionField.getLength() == 0){\n hasErrors=true;\n System.out.println(\"Desc\");\n }\n if(typeField.getText().trim().isBlank() || typeField.getLength() == 0){\n hasErrors=true;\n System.out.println(\"Type\");\n }\n if(locationField.getText().trim().isBlank() || locationField.getLength() == 0){\n hasErrors=true;\n System.out.println(\"Location\");\n }\n if(contactCombo.getSelectionModel().getSelectedItem() == null ){\n hasErrors = true;\n System.out.println(\"Contact\");\n }\n if(customerIdTextField.getText().isBlank() || customerIdTextField.getLength() == 0){\n hasErrors = true;\n System.out.println(\"Customer\");\n }\n if(userIdTextField.getText().isBlank() || userIdTextField.getLength() == 0){\n hasErrors = true;\n System.out.println(\"User\");\n }\n if(startTimeComboBox.getSelectionModel().isEmpty()){\n hasErrors = true;\n System.out.println(\"Start\");\n }\n if(endTimeComboBox.getSelectionModel().isEmpty()){\n hasErrors = true;\n System.out.println(\"End\");\n }\n if(startDatePicker.getValue() == null){\n hasErrors = true;\n System.out.println(\"Datepicker\");\n }\n\n if(hasErrors) {\n Alert alert = new Alert(Alert.AlertType.WARNING);\n alert.setTitle(\"Blank fields\");\n alert.setHeaderText(\"No fields can be blank\");\n alert.setContentText(\"Please fill out the form\");\n alert.showAndWait();\n }\n }", "title": "" }, { "docid": "4d1d44288feb81e55006042f30ed8ac1", "score": "0.5488214", "text": "private void checkIfMakeReservationGuestIsEmpty(String value) {\n\t\tif (value.length() > 0) {\n\t\t\tcheckMakeReservationGuest = true;\n\t\t} else {\n\t\t\tcheckMakeReservationGuest = false;\n\t\t}\n\t}", "title": "" }, { "docid": "5333cd05739ef3657b72e6bb277803ab", "score": "0.5487193", "text": "public boolean isBlank(){\n return value.matches(\"^(\\s)$\") || value == \"\" || value == null;\n }", "title": "" }, { "docid": "3f9c06fe9c6b6c7138ce47f42ded91b1", "score": "0.54868233", "text": "private boolean checkIfAttributeInputFieldsAreValid(){\n boolean isValid = true;\n \n for(int i = 0; i < attributeVbox.getChildren().size(); i++){\n if( attributeVbox.getChildren().get(i) instanceof HBox ){\n HBox hbox = (HBox) attributeVbox.getChildren().get(i);\n for(int j = 0; j < hbox.getChildren().size(); j++){ \n \n if(hbox.getChildren().get(j) instanceof TextField){\n TextField text = (TextField) hbox.getChildren().get(j);\n if(text.getText() == null || text.getText().length() == 0){\n isValid = false; \n break;\n }\n }\n \n if(hbox.getChildren().get(j) instanceof ComboBox){\n ComboBox combo = (ComboBox) hbox.getChildren().get(j);\n if(combo.getValue() == null){\n isValid = false;\n break;\n }\n }\n }\n }\n if(!isValid) break;\n } \n\n return isValid;\n }", "title": "" }, { "docid": "26ed4584086416eb7e28bb5573a0bebd", "score": "0.54824895", "text": "private boolean isFormValid()\n {\n return (\n fieldWeek.getText().length() != 0 &&\n comboBoxActivity.getValue() != null &&\n fieldPoints.getText().length() != 0 &&\n datePicker.getValue() != null\n );\n }", "title": "" }, { "docid": "e8504a8cddfa12bc6312d304bc750920", "score": "0.5480941", "text": "boolean isEMPTY();", "title": "" }, { "docid": "9a99ac97da09bf245348b40c4f240d31", "score": "0.54771554", "text": "public boolean isEmpty() {\n\t\treturn (Utils.isStringEmpty(licenceRef) && Utils.isStringEmpty(licenceLineNo) &&\r\n\t\t\t\tUtils.isStringEmpty(licenceStatus) && Utils.isStringEmpty(licenceQuantity));\r\n\t}", "title": "" }, { "docid": "74f35a205b931d4aa3e1ec59e1888c6b", "score": "0.5474399", "text": "@Override\n public boolean validate(Room room) {\n return true;\n }", "title": "" }, { "docid": "76137a65517e64582234c8dc619df753", "score": "0.5471291", "text": "private void checkLength() {\n if (isEmpty()) {\n throw new IndexOutOfBoundsException(OUT_OF_BOUNDS);\n }\n }", "title": "" }, { "docid": "5f91512fa2a66dfa987c7254b5db584f", "score": "0.5452413", "text": "private boolean isEmpty() {\n\t\t\t\treturn false;\n\t\t\t}", "title": "" }, { "docid": "701fc65b10f828aa81dba1cc7ae8ba7c", "score": "0.54452276", "text": "public boolean emptyCheck()\n\t{\n\t\treturn order.emptyCheck();\n\t}", "title": "" }, { "docid": "90d91ec4b530aaac1572e86da8c6a073", "score": "0.5445088", "text": "public boolean canBuild() {\n\t\treturn canBuild && noEnemies() && steps > 0 && hasWorkers();\n\t}", "title": "" }, { "docid": "6026521de54107e0bf84adf2dc167f89", "score": "0.5443496", "text": "public boolean validateNewDogData(Calendar dob, String name, String breed, String serviceType)\n {\n \tboolean allFieldsFull = !name.equals(\"\") && !breed.equals(\"\") && ! serviceType.equals(\"\") && dob != null;\n \tif (!allFieldsFull) Toast.makeText(this, \"Please fill all fields\", Toast.LENGTH_LONG).show();\n \treturn allFieldsFull;\n }", "title": "" }, { "docid": "f9cb87119242dc04b49ccac9d0b888fd", "score": "0.5443136", "text": "private boolean checkBlank() {\n\t\tswitch(data[currentIndex]) {\n\t\t\n\t\tcase ' ':\n\t\t\treturn true;\n\t\t\t\n\t\tcase '\\t':\n\t\t\treturn true;\n\t\t\t\n\t\tcase '\\r':\n\t\t\treturn true;\n\t\t\t\n\t\tcase '\\n':\n\t\t\treturn true;\n\t\t\t\n\t\t\t\n\t\tdefault:\n\t\t\treturn false;\n\t\t}\n\t}", "title": "" }, { "docid": "9c8afd85a34464831c466e005998a7ce", "score": "0.5442421", "text": "private boolean isInputValid() {\n \n String errorMessage = \"\";\n \n /*userStory.setUsID(Integer.parseInt(usIDField.getText()));\n \tuserStory.setUsTitle(usTitleField.getText());\n \tuserStory.setUsRole(usRoleField.getText());\n \tuserStory.setUsDescription(usDescriptionField.getText());\n \tuserStory.setUsReason(usReasonField.getText());\n \tuserStory.setUsCriteria(usCriteriaField.getText());\n \tuserStory.setUsElaboration(usElaborationField.getText());\n \tuserStory.setUsCreatedBy(usCreatedByField.getText());\n \tuserStory.setUsAssignedTo(usAssignedToField.getText());\n \tuserStory.setUsRequirementType(usRequirementTypeField.getText());\n \tuserStory.setUsEstimatedTime(Integer.parseInt((String) usEstimCbox.getValue()));\n \tuserStory.setUsStatus((String) usStatusCbox.getValue());\n \tuserStory.setUsParentID(Integer.parseInt((String) usParentCbox.getValue()));\n \tuserStory.setUsPriority((String) usPriorityCbox.getValue());*/\n \n if (usIDField.getText() == null || usIDField.getText().length() == 0) {\n errorMessage += \"No valid id!\\n\"; \n } else {\n // try to parse the postal code into an int\n try {\n Integer.parseInt(usIDField.getText());\n } catch (NumberFormatException e) {\n errorMessage += \"No valid id (must be an integer)!\\n\"; \n }\n }\n \n if (usTitleField.getText() == null || usTitleField.getText().length() == 0) {\n errorMessage += \"No valid title!\\n\"; \n }\n \n if (usRoleField.getText() == null || usRoleField.getText().length() == 0) {\n errorMessage += \"No valid role!\\n\"; \n }\n \n if (usDescriptionField.getText() == null || usDescriptionField.getText().length() == 0) {\n errorMessage += \"No valid description!\\n\"; \n }\n\n if (usReasonField.getText() == null || usReasonField.getText().length() == 0) {\n errorMessage += \"No valid reason!\\n\"; \n }\n\n if (usCriteriaField.getText() == null || usCriteriaField.getText().length() == 0) {\n errorMessage += \"No valid priority!\\n\"; \n }\n\n if (usElaborationField.getText() == null || usElaborationField.getText().length() == 0) {\n errorMessage += \"No valid elaboration!\\n\"; \n }\n \n if (usAssignedToField.getText() == null || usAssignedToField.getText().length() == 0) {\n errorMessage += \"No valid elaboration!\\n\"; \n }\n \n if (usRequirementTypeField.getText() == null || usRequirementTypeField.getText().length() == 0) {\n errorMessage += \"No valid elaboration!\\n\"; \n }\n \n if (usEstimCbox.getValue() == null) {\n errorMessage += \"No valid id!\\n\"; \n } else {\n // try to parse the postal code into an int\n try {\n Integer.parseInt((String) usEstimCbox.getValue());\n } catch (NumberFormatException e) {\n errorMessage += \"No valid estimated time (must be an integer)!\\n\"; \n }\n }\n \n if (usStatusCbox.getValue() == null) {\n errorMessage += \"No valid status!\\n\"; \n }\n \n /*if (usParentCbox.getValue() == null) {\n errorMessage += \"No valid id!\\n\"; \n } else {\n // try to parse the postal code into an int\n try {\n Integer.parseInt((String) usParentCbox.getValue());\n } catch (NumberFormatException e) {\n errorMessage += \"No valid estimated time (must be an integer)!\\n\"; \n }\n }*/\n \n /* if (usPriorityCbox.getValue() == null) {\n errorMessage += \"No valid priority!\\n\"; \n }*/\n\n if (errorMessage.length() == 0) {\n return true;\n } else {\n // Show the error message\n Dialogs.showErrorDialog(dialogStage, errorMessage,\n \"Please correct invalid fields\", \"Invalid Fields\");\n return false;\n }\n \n }", "title": "" }, { "docid": "7a7e70380615f344fd4220ce7ea4a4be", "score": "0.5440364", "text": "private boolean isValidBuildId(String id) {\n return id.matches(\"\\\\d+\") || StringBuildId.fromString(id) != null;\n }", "title": "" }, { "docid": "850083b0f6816c1d314e3f0afcda3af2", "score": "0.5432777", "text": "@Override\n\tpublic boolean isEmpty() {\n\t\treturn (this.name == null || this.name.equals(\"\") || this.meter == null\n\t\t\t\t|| this.author == null || this.author.equals(\"\")\n\t\t\t\t|| this.stanzas == null || this.defaultTune == null);\n\t}", "title": "" }, { "docid": "7bb765c29c87d4e04cc2223c4fa193d9", "score": "0.54123825", "text": "private boolean validateFields(final Street s, final String x, final String y, final String houseNumber) {\n boolean valid;\n valid = true;\n if (s == null) {\n sendMessage(\"Ulica nije izabrana.\", MainController.MessageType.ERROR);\n valid = false;\n }\n if (x.isEmpty() || y.isEmpty()) {\n sendMessage(\"Koordinate nisu definisane.\", MainController.MessageType.ERROR);\n valid = false;\n }\n if (houseNumber.isEmpty()) {\n sendMessage(\"Broj nije odabran.\", MainController.MessageType.ERROR);\n valid = false;\n }\n return valid;\n }", "title": "" }, { "docid": "91546afc40f3f9ae32549e99be4f2c45", "score": "0.54041404", "text": "public boolean isValid () {\n return validateData(toString()).size() == 0;\n }", "title": "" }, { "docid": "a7256c2634d36bf506ca16eb6325210d", "score": "0.5402701", "text": "private Boolean inputFieldsAreEmpty(String uName, String pWord) {\n\n Boolean areEmpty = false;\n\n if (TextUtils.isEmpty(uName) || TextUtils.isEmpty(pWord)) {\n areEmpty = true;\n }\n\n return areEmpty;\n }", "title": "" }, { "docid": "0ee51866368a78da575a5b7fb4380274", "score": "0.5398048", "text": "public boolean validarDadosVO(VOIsoMenssagem voIso) {\n\t\treturn (voIso.getBits().isEmpty() || (voIso.getPackager() == null || voIso.getPackager().trim().length() == 0));\n\t\t\t\t\n\t}", "title": "" }, { "docid": "bcab9b507ab39a8331049f8b238ed2fb", "score": "0.53894496", "text": "public boolean canBuild(BuildingType building) {\n\t\tboolean positionFree = forest.getPosition(position).buildingAllowed(\n\t\t\t\towner);\n\t\tboolean ownerCanBuild = owner.canBuild(building);\n\t\treturn positionFree && ownerCanBuild && canBuild();\n\t}", "title": "" }, { "docid": "09d994e099484a55dec6f5739390a2dc", "score": "0.53880435", "text": "private void checkConstructions() {\n Preconditions.checkState(colonyFields.size() == 8,\n String.format(\"Incorrect colony filed number '%s'\", colonyFields.size()));\n Map<ConstructionType, Long> l1 = constructions.stream()\n .collect(Collectors.groupingBy(Construction::getType, Collectors.counting()));\n l1.forEach((constructionType, count) -> {\n if (count > 1) {\n throw new IllegalStateException(String\n .format(\"Construction type '%s' is duplicated\", constructionType.name()));\n }\n });\n\n final Map<GoodsType, Long> l2 = constructions.stream()\n .filter(construction -> construction.getType().getProductionPerTurn().isPresent())\n .collect(\n Collectors\n .groupingBy(\n construction -> construction.getType()\n .getProductionPerTurn().get().getType(),\n Collectors.counting()));\n l2.forEach((goodsType, count) -> {\n if (count != 1) {\n throw new IllegalStateException(\n String.format(\"Good type type '%s' is prodecen in more than one building\",\n goodsType.name()));\n }\n });\n\n constructions.forEach(constructio -> {\n if (constructio.getType().getUpgradeTo().isPresent()) {\n final ConstructionType upgradeTo = constructio.getType().getUpgradeTo().get();\n constructions.stream().filter(cc -> cc.getType().equals(upgradeTo)).findAny()\n .ifPresent(cc -> {\n throw new IllegalStateException(String.format(\n \"There is building type '%s' and it's upgrade '%s'\",\n constructio.getType(), cc));\n });\n }\n });\n }", "title": "" }, { "docid": "438d2b014d76c92be1b74dad9d35ae13", "score": "0.5382411", "text": "@Test\r\n\tpublic void shouldNotBeValidAndEmpty()\r\n\t{\n\t\ttetrisObject.resetGame();\r\n\t\t//adding a piece to the board\r\n\t\ttetrisObject.board.addPiece((TileType.TypeI), 2, 3, 1);\r\n\t\t//checking to see if the piece we just added to the board makes the isValidAndEmpty function return false\r\n\t\tassertEquals(false, tetrisObject.board.isValidAndEmpty((TileType.TypeI), 2, 3, 1));\r\n\t}", "title": "" }, { "docid": "77b03607f7f838d38d19acac9a440b39", "score": "0.5374749", "text": "@Test\n\tpublic void testIfSpaceValidHasNoPiece() {\n\t\tassertTrue(space.isValid(), \"Expected true\");\n\t}", "title": "" }, { "docid": "3a7441b1059fb4fcfcbaccccab40f62d", "score": "0.53732556", "text": "protected boolean validateNature(InternalBuilder builder, String builderId) throws CoreException {\n \t\tString nature = builder.getNatureId();\n \t\tif (nature == null)\n \t\t\treturn true;\n \t\tIProject project = builder.getProject();\n \t\tif (!project.hasNature(nature)) {\n \t\t\t//remove this builder from the build spec\n \t\t\tremoveBuilders(project, builderId);\n \t\t\treturn false;\n \t\t}\n \t\treturn project.isNatureEnabled(nature);\n \t}", "title": "" }, { "docid": "7c028c17d8f51da7c42e6e58b53236e0", "score": "0.5371585", "text": "public boolean isEmpty() {\r\n if(text != null) {\r\n return false;\r\n }\r\n if(!elements.isEmpty()) {\r\n return false;\r\n }\r\n if(!attributes.isEmpty()) {\r\n return false;\r\n }\r\n return !isComposite();\r\n }", "title": "" }, { "docid": "2898b0425dc66ce3e933c70b1c2ca2a5", "score": "0.53651714", "text": "public boolean validate(String room) {\r\n\t\tif (room.length() != ROOM_LENGTH) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\tif (Character.isLetter(room.charAt(0)) == false) {\r\n\t\t\treturn false; // room must start with a letter\r\n\t\t}\r\n\t\tfor (int i = 1; i < ROOM_LENGTH; i++) {\r\n\t\t\tif (Character.isDigit(room.charAt(i)) == false) {\r\n\t\t\t\treturn false; // room must start with a letter\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t// all ok - store the info\r\n\t\tbuilding = room.charAt(0);\r\n\t\tfloor = room.charAt(1);\r\n\t\tlocationOnFloor = room.substring(2);\r\n\t\t\r\n\t\treturn true;\r\n\t}", "title": "" }, { "docid": "96849763f6bcd536f4f190440058c56c", "score": "0.5354695", "text": "private boolean isValidPlan() {\n\t\treturn !(planName.getText().toString().equals(\"\")\n\t\t\t\t|| travelerNum.getText().toString().equals(\"\")\n\t\t\t\t|| Days.getText().toString().equals(\"\")\n\t\t\t\t|| budget.getText().toString().equals(\"\"));\n\t}", "title": "" }, { "docid": "c2f0f6eeb35ab3acf8fb8aa923287f5d", "score": "0.5347484", "text": "public boolean inputDataIsEmpty() {\r\n // Not selected language or not filled other data fields\r\n if (languageId <= 0) {\r\n return true;\r\n }\r\n else {\r\n return (Double.isNaN(motherBody) && Double.isNaN(added) &&\r\n Double.isNaN(modified) && Double.isNaN(total) &&\r\n Double.isNaN(reused) && Double.isNaN(generated));\r\n }\r\n }", "title": "" }, { "docid": "223559e47dce45ecc53f156f716c1bb7", "score": "0.53450173", "text": "private boolean validateFields(){\n if (((EditText) findViewById(R.id.add_place_name)).getText().toString().equals(\"\")){\n return false;\n } else if (((EditText) findViewById(R.id.add_place_address)).getText().toString().equals(\"\")){\n return false;\n } else if (((EditText) findViewById(R.id.add_place_lat)).getText().toString().equals(\"\")){\n return false;\n } else if (((EditText) findViewById(R.id.add_place_lng)).getText().toString().equals(\"\")){\n return false;\n } else if (((EditText) findViewById(R.id.add_place_lat)).getText().toString().equals(\"\")){\n return false;\n } else if (((Spinner) findViewById(R.id.add_place_type)).getSelectedItemPosition() == 0){\n return false;\n }\n return true;\n }", "title": "" }, { "docid": "c6f4080a814ece582daae96afea02e88", "score": "0.53446716", "text": "@Override\n\tprotected boolean isValid() {\n\t\treturn super.isValid()\n\t\t\t\t&& this.type != null\n\t\t\t\t&& this.description != null\n\t\t\t\t&& this.eventParameters != null && this.eventParameters != Collections.EMPTY_SET\n\t\t\t\t&& this.eventSourceIds != null && this.eventSourceIds != Collections.EMPTY_SET;\n\t}", "title": "" }, { "docid": "e587b20a22a4b3a0efea3f033ae39772", "score": "0.5337693", "text": "public boolean isABuilding() {\n return type().isBuilding() || type().isAddon();\n }", "title": "" }, { "docid": "a49d2103781a2e336fe9fcc223ebc87a", "score": "0.53345406", "text": "private boolean isFieldFilled()\r\n{\r\n\tfor(int i = 0; i < buttonField.length; i++)\r\n\t\tfor(int j = 0; j < buttonField[i].length; j++)\r\n\t\t\tif(buttonField[i][j].hasValue() == false)\r\n\t\t\t\treturn false;\r\n\t\r\n\treturn true;\r\n}", "title": "" }, { "docid": "23d2f189fcf35fc076afaefd961b0350", "score": "0.53308403", "text": "public boolean checkExpression(){\n \t\t\n \t\tif (expression.trim().isEmpty()){\n \t\t\treturn false;\n \t\t}\n \t\t\n \t\t// Define the available variables as 0\n \t\tfor (FlightDataType type : getBranch().getTypes()){\n \t\t\tbuilder.withVariable(type.getSymbol(), 0.0);\n \t\t}\n \t\t\n \t\tfor (String symb : getAllSymbols()){\n \t\t\tbuilder.withVariable(symb, 0.0);\n \t\t}\n \t\t\n \t\t// Try to build\n \t\ttry {\n \t\t\tbuilder.build();\n \t\t} catch (Exception e) {\n \t\t\tlog.user(\"Custom expression invalid : \" + e.toString());\n \t\t\treturn false;\n \t\t}\n \t\t\n \t\t// Otherwise, all OK\n \t\treturn true;\n \t}", "title": "" }, { "docid": "c0c8170cb48b89c9cb33d52cd06498f2", "score": "0.5325576", "text": "@Override\n\tpublic boolean checkValid() {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "c0c8170cb48b89c9cb33d52cd06498f2", "score": "0.5325576", "text": "@Override\n\tpublic boolean checkValid() {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "aff7e28d906f1b4edb905d22b4163d14", "score": "0.53252876", "text": "public boolean isEmpty(){\n return value == null || value == \"\";\n }", "title": "" }, { "docid": "2426eac355e3b278495afba916f72c2a", "score": "0.5324748", "text": "private boolean anyGroupsEmpty() {\n for (Map<String, Set<StringProperty>> group : container.getSubProperties()) {\n if (groupEmpty(group)) {\n return true;\n }\n }\n return false;\n }", "title": "" }, { "docid": "1d7dcb33b0c300da27b9e850dad871f9", "score": "0.5323538", "text": "public boolean checkRequired()\n {\n boolean isMissing = false;\n \n if( stepNumber == 0 )//Going from step zero to step one\n {\n String missing = \"\";\n if( sourceJList.isSelectionEmpty() )\n { isMissing = true; missing += \"Source Type\\n\"; }\n \n// if( projNameField.getText().equals(\"\") );\n// { isMissing = true; missing += \"Project Name\\n\"; }\n \n// if( destRadioGroup.isSelected(null) )\n// { isMissing = true; missing += \"Destination\\n\"; }\n \n if(isMissing)\n { JOptionPane.showMessageDialog(null, \n \"Error in: checkRequired, stepNumber \" + stepNumber + \n \"\\n The following fields are empty:\\n\" + missing);\n }\n }\n \n return isMissing;\n }", "title": "" }, { "docid": "91ef3809199a8584bc0e05361452d17b", "score": "0.5321054", "text": "@Override public boolean isEmpty() {\n return unifier().isEmpty() && disequalities().isEmpty();\n }", "title": "" }, { "docid": "2dea1dd38d7ed5a238209b96a5db699f", "score": "0.53190863", "text": "private boolean searchForEmpty() {\n\t\tcurrentid++;\n\t\twhile (isValidRecord()) {\n\t\t\tif ((getFlags() & INUSE) == 0)\n\t\t\t\treturn true;\n\t\t\tcurrentid++;\n\t\t}\n\t\treturn false;\n\t}", "title": "" }, { "docid": "d551a12d7a24530507f676816d60cfbd", "score": "0.53135186", "text": "private boolean checkFields(String startLoc){\n boolean fieldNotEmpty = true;\n if (startLoc.length() == 0){\n fieldNotEmpty = false;\n mStartLoc.setError(\"Please give a start location\");\n mStartLoc.requestFocus();\n }\n return fieldNotEmpty;\n }", "title": "" }, { "docid": "426bb3c551ee07b8772669c4ca99f02d", "score": "0.53125423", "text": "static boolean buildingFromScratch(DdlVersionBean ddlVersionBean) {\n int buildingFromVersion = ddlVersionBean.getBuildingFromVersion();\n if (buildingFromVersion <= 0) {\n return true;\n }\n return false;\n }", "title": "" }, { "docid": "426bb3c551ee07b8772669c4ca99f02d", "score": "0.53125423", "text": "static boolean buildingFromScratch(DdlVersionBean ddlVersionBean) {\n int buildingFromVersion = ddlVersionBean.getBuildingFromVersion();\n if (buildingFromVersion <= 0) {\n return true;\n }\n return false;\n }", "title": "" }, { "docid": "524b4a5d7339b45cc9eaa661fb7ee45c", "score": "0.5310157", "text": "abstract boolean isDataEmpty();", "title": "" }, { "docid": "ad36facc33bfd601a26cf1725a552c62", "score": "0.53085166", "text": "public boolean isBlank(){\n\t\treturn toString().charAt(0)==' ' || toString().charAt(0)=='#';\n\t}", "title": "" }, { "docid": "b47a787bd06297ad9a62749f9a371332", "score": "0.53051996", "text": "private void isValueEmpty(){\n if(gold == null) {\n gold = \"0\";\n } else if(silber == null){\n silber = \"0\";\n } else if(palladium == null){\n palladium = \"0\";\n } else if(platin == null){\n platin = \"0\";\n } else if(rhodium == null){\n rhodium = \"0\";\n } else if(goldMark == null){\n goldMark = \"0\";\n } else if(goldMunze == null){\n goldMunze = \"150\";\n } else if(silberMark == null){\n silberMark = \"0\";\n } else if(palladiumMunze == null){\n palladiumMunze = \"0\";\n } else if(platinMunze == null){\n platinMunze = \"0\";\n }\n }", "title": "" }, { "docid": "92ae08db81b0745f8fccc8e78b64fa6c", "score": "0.53049237", "text": "private boolean checkData() {\n String nameString = nameEditText.getText().toString().trim();\n String supplierString = supplierEditText.getText().toString().trim();\n String priceString = priceEditText.getText().toString().trim();\n String quantityString = quantityEditText.getText().toString().trim();\n String supplierPhoneNumberString = phoneNumberEditText.getText().toString().trim();\n\n if (TextUtils.isEmpty(nameString)) nameEditText.setError(\"Name required\");\n\n if (TextUtils.isEmpty(supplierPhoneNumberString))\n phoneNumberEditText.setError(\"Phone number required\");\n\n if (TextUtils.isEmpty(quantityString)) quantityEditText.setError(\"Quantity required\");\n\n if (TextUtils.isEmpty(priceString)) priceEditText.setError(\"Price required\");\n\n if (TextUtils.isEmpty(supplierString)) supplierEditText.setError(\"Supplier required\");\n\n return (TextUtils.isEmpty(nameString)\n || TextUtils.isEmpty(supplierPhoneNumberString)\n || TextUtils.isEmpty(quantityString)\n || TextUtils.isEmpty(priceString)\n || TextUtils.isEmpty(supplierString));\n\n }", "title": "" }, { "docid": "750cbc40d48f540e5a2ff5b4ebf5e5f8", "score": "0.5299483", "text": "@Override\r\n\tpublic boolean isEmpty() {\n\t\tif (getRoot() == null) {\r\n\t\t\treturn true;\r\n\t\t\t// ist die Wurzel null ist der Baum leer\r\n\t\t} else {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "1272e6f11cf7cff29f4e08a80be6d92f", "score": "0.52947664", "text": "private boolean checkNotNull() {\n return jlbMapn.getText() != null && !jlbMapn.getText().equalsIgnoreCase(\"\") ;\n// &&txmacl.getText() != null && !txmacl.getText().equalsIgnoreCase(\"\")\n// &&txmasp.getText() != null && !txmasp.getText().equalsIgnoreCase(\"\");\n \n }", "title": "" }, { "docid": "2a401c7c9ca1ab08a0b0e55fdecc39ba", "score": "0.5290223", "text": "@Override\n\tpublic boolean isEmpty() {\n\t\treturn isEmpty(0)&&isEmpty(1)?true:false;\n\t}", "title": "" }, { "docid": "a86e04b7713fec3961e6959e15efbb44", "score": "0.5287534", "text": "public boolean IsEmpty() {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "fd0775dd578c99f3db865b724480bae4", "score": "0.52867717", "text": "@Override\n public boolean validate() {\n int mob = bot.getMonster().getIndex();\n return Bank.isOpen() && mob!=74 && mob!=55 && mob!=25 && mob!=89 && mob!=31 && mob!=30 && mob!=27;\n }", "title": "" }, { "docid": "1eec152c38d0ea55fbc4ecef261c0458", "score": "0.52836186", "text": "@Test\n public void productShouldNotHaveBlankNameAttribute() {\n product.setName(\"\");\n violations = validator.validate(product);\n Assert.assertFalse(violations.isEmpty());\n }", "title": "" }, { "docid": "55ece9117c96efbb6725498ddf281bfb", "score": "0.5279358", "text": "private boolean checkFull() {\n\t\tfor(int i=0; i<COLUMNS; i++) {\n\t\t\tif(this.m_gameGrid[0][i] == ' ') {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "title": "" } ]
11cdaffa1de810ab7dbd05b9f473c732
List obj = searchItem(newText);
[ { "docid": "75afbe881fc0de8a786beddde285918e", "score": "0.60929966", "text": "@Override\n public boolean onQueryTextChange(String newText) {\n Log.e(TAG, \"query start ---------\");\n String name = newText.trim();\n List<ResultInfo> obj = searchItemThree(name);\n String[] hello = name.split(\" \");\n initListView(obj, hello);\n Log.e(TAG, \"query end ---------\");\n return false;\n }", "title": "" } ]
[ { "docid": "f17ac68ed1fe490d5099ad7f534f41ce", "score": "0.65955025", "text": "Vector<Person> searchPerson(String text);", "title": "" }, { "docid": "6138749dcc62cf3e52067cc233c9b8c7", "score": "0.6300094", "text": "List searchPersoninfo(Personinfo personinfo);", "title": "" }, { "docid": "cf60edb703b8daf58de96e0e49106d0d", "score": "0.62290984", "text": "public abstract List getDetailsSearch(String searchString);", "title": "" }, { "docid": "df4b33ff15f0fc69902896574fe8e9d8", "score": "0.61929405", "text": "Vector<Movie> searchMovie(String text);", "title": "" }, { "docid": "8ad78377a72f9c9d2c0fdf4730641579", "score": "0.6064504", "text": "public void doSearch();", "title": "" }, { "docid": "7c11bd03e97793b96fef89375567848b", "score": "0.60121083", "text": "List<Church> search(String searchTerm);", "title": "" }, { "docid": "d854484ecda640ba58231e254c5022f3", "score": "0.5981557", "text": "public String mSearchItem(String mSearch){\n\n int index = mTodoList.indexOf(mSearch);\n\n if (index < 0){\n return null;\n } else {\n return mTodoList.get(index);\n }\n\n }", "title": "" }, { "docid": "964f70b9b6a8125eb1d21a11b5f19a75", "score": "0.59724075", "text": "public java.util.List<ModelElementSearch> search (String info, String searchString, int mode, ModelElementsCollection list);", "title": "" }, { "docid": "1df45b32b584e68c582f5007b3cf1603", "score": "0.594023", "text": "List<Student> search(String keyword);", "title": "" }, { "docid": "b1bb7eec52a6a41c38a9eb704a062b7e", "score": "0.59273094", "text": "public void filter(String text){\n ArrayList<Result> temp = new ArrayList();\n for(Result r: results){\n //or use .equal(text) with you want equal match\n //use .toLowerCase() for better matches\n if(r.getTitle().toLowerCase().contains(text.toLowerCase())){\n temp.add(r);\n }\n }\n //update recyclerview\n adapter.updateList(temp);\n textView_results.setText(getString(R.string.results, Integer.toString(adapter.getItemCount())));\n }", "title": "" }, { "docid": "f64d6807a707ee608133897870f19ded", "score": "0.5902207", "text": "int search(Object o);", "title": "" }, { "docid": "1bbda220be03b518f1d5e6c510d062a5", "score": "0.58984524", "text": "public List<Item> searchItems(String userId, double lat, double lon, String term);", "title": "" }, { "docid": "38e2bf12568d1e98a9e50f3cc61b3283", "score": "0.5892024", "text": "public static void searchWomanCloth(){\n\n }", "title": "" }, { "docid": "f1199b0077efee15a2341b6ca1840435", "score": "0.5887041", "text": "private void addFindByPartial() {\r\n\t\teditText.addTextChangedListener(new TextWatcher() {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void onTextChanged(CharSequence s, int start, int before,\r\n\t\t\t\t\tint count) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\tString text = editText.getText().toString();\r\n\r\n\t\t\t\tproductList = sCT.getProductListByPartial(text);\r\n\t\t\t\tadapter = new MyAdapter();\r\n\t\t\t\tlist_item.setAdapter(adapter);\r\n\t\t\t}\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void beforeTextChanged(CharSequence s, int start, int count,\r\n\t\t\t\t\tint after) {}\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void afterTextChanged(Editable s) {}\r\n\t\t});\r\n\t}", "title": "" }, { "docid": "c39a1e1dd7c833b35992f7be9813d26c", "score": "0.5884801", "text": "private void filter(String text) {\n filterdNames = new ArrayList<>();\n //looping through existing elements\n for (Job s : jobList) {\n\n //if the existing elements contains the search input\n if (s.getSellerName().toLowerCase().contains(text.toLowerCase())||s.getSellerAddress().toLowerCase().contains(text.toLowerCase())\n ||s.getSellerPhone().toLowerCase().contains(text.toLowerCase())||s.getReceiverName().toLowerCase().contains(text.toLowerCase())\n ||s.getReceiverAddress().toLowerCase().contains(text.toLowerCase())||s.getReceiverPhone().toLowerCase().contains(text.toLowerCase())\n ||String.valueOf(s.getOrderID()).toLowerCase().contains(text.toLowerCase())||String.valueOf(s.getFoodName()).toLowerCase().contains(text.toLowerCase()))\n {\n //adding the element to filtered list\n filterdNames.add(s);\n }\n }\n\n //calling a method of the adapter class and passing the filtered list\n adapter.filterList(filterdNames);\n }", "title": "" }, { "docid": "413cfbab33de232a07b8b8ae561c4a2e", "score": "0.5866784", "text": "protected abstract List<String> getSuggestions(String text);", "title": "" }, { "docid": "90a3be1907b807d756ca3d379c65153f", "score": "0.58557093", "text": "public void enterSearch();", "title": "" }, { "docid": "8da1b3907ee39c81a410bf3c432ca6ea", "score": "0.5827116", "text": "Vector<Group> searchGroup(String text);", "title": "" }, { "docid": "3371bf7e9c407cdcfcf9f41e6b6b0f88", "score": "0.579861", "text": "public List<Employee> search(Object key);", "title": "" }, { "docid": "3ba99128c03598517ff5267e44f0ccfa", "score": "0.57863724", "text": "public void updateList(String newVal) {\n // Break out all of the parts of the search text\n // by splitting on white space\n String[] parts = newVal.toLowerCase().split(\" \");\n \n // Filter out the entries that don't contain the entered text\n ArrayList<String> subentries = new ArrayList();\n Map<String, Double> presort = ImageTermFactory.getRelevantURLs(index, parts[0]);\n List<Entry<String, Double>> sorted = new LinkedList<>(presort.entrySet());\n sorted.sort((a, b) -> {\n double test = b.getValue() - a.getValue();\n if (test < 0) {\n return -1;\n } else if (test > 0) {\n return 1;\n } else {\n return 0;\n }\n });\n for (Entry<String, Double> e : sorted) {\n subentries.add(e.getKey());\n }\n entries = subentries;\n }", "title": "" }, { "docid": "5619d95858f7d9743a3e20901879a5c8", "score": "0.57753366", "text": "private void filter(String text) {\n ArrayList<String> filterdNames = new ArrayList<>();\n\n //looping through existing elements\n for (String s : nameList) {\n //if the existing elements contains the search input\n if (s.toLowerCase().contains(text.toLowerCase())) {\n //adding the element to filtered list\n filterdNames.add(s);\n }\n }\n\n //calling a method of the adapter class and passing the filtered list\n adapter.filterList(filterdNames);\n }", "title": "" }, { "docid": "f7e9cc3bf6dd52988742a7496e1a188d", "score": "0.5761467", "text": "public ArrayList<SearchResult> createSearchResult(String searchText) {\n\t\tArrayList<SearchResult> SearchResults = new ArrayList<SearchResult>();\n\n\t\tString jsonText;\n\n\t\ttry {\n\t\t\tString url = buildURL(searchText);\n\t\t\t// System.out.println(\"The URL we are going to fetch is: \" + url);\n\t\t\tjsonText = getJSONStringFromURL(url);\n\t\t\tif (jsonText.length() <= 0) {\n\t\t\t\tSystem.out.println(\"No data from server\");\n\t\t\t\treturn null;\n\t\t\t}\n\t\t\tJSONParser parser = new JSONParser();\n\t\t\tObject obj = parser.parse(jsonText);\n\t\t\tJSONArray jsonObjects = (JSONArray) obj;\n\t\t\tfor (int i = 0; i < jsonObjects.size(); i++) {\n\t\t\t\tJSONObject jsonObject = (JSONObject) jsonObjects.get(i);\n\t\t\t\tif (isShared(jsonObject) == false)\n\t\t\t\t\tcontinue;\n\t\t\t\tSearchResult searchResult = new SearchResult();\n\t\t\t\tsearchResult.setTitle(jsonObject.get(\"title\").toString());\n\t\t\t\tsearchResult.setSnippet(jsonObject.get(\"snippet\").toString());\n\t\t\t\tsearchResult.setType(jsonObject.get(\"type\").toString());\n\t\t\t\tsearchResult.setUser(jsonObject.get(\"user\").toString());\n\t\t\t\tsearchResult.setCreated(new Date(Long.parseLong(jsonObject.get(\"created\").toString())));\n\t\t\t\tsearchResult.setLanguage(jsonObject.get(\"language\").toString());\n\t\t\t\tsearchResult.setLink(new URL(jsonObject.get(\"link\").toString()));\n\t\t\t\tjsonObject = (JSONObject) jsonObject.get(\"node\");\n\t\t\t\tsearchResult.setNode(Integer.parseInt(jsonObject.get(\"nid\").toString()));\n\n\t\t\t\tObject creatorObject = jsonObject.get(\"field_creator\");\n\t\t\t\tString creator = \"\";\n\t\t\t\tif (creatorObject instanceof JSONObject) {\n\t\t\t\t\tJSONObject jsonCreatorObject = (JSONObject) creatorObject;\n\t\t\t\t\tJSONArray creatorObjectArray = (JSONArray) jsonCreatorObject.get(\"und\");\n\t\t\t\t\tif (creatorObjectArray.size() > 0) {\n\t\t\t\t\t\tcreator = ((JSONObject) ((JSONObject) creatorObjectArray.get(0)).get(\"user\")).get(\"name\")\n\t\t\t\t\t\t\t.toString();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tsearchResult.setCreator(creator);\n\n\t\t\t\tObject submittorObject = jsonObject.get(\"field_submittor\");\n\t\t\t\tString submittor = \"\";\n\t\t\t\tif (submittorObject instanceof JSONObject) {\n\t\t\t\t\tJSONObject jsonSubmittorObject = (JSONObject) submittorObject;\n\t\t\t\t\tJSONArray submittorObjectArray = (JSONArray) jsonSubmittorObject.get(\"und\");\n\t\t\t\t\tif (submittorObjectArray.size() > 0) {\n\t\t\t\t\t\tsubmittor = ((JSONObject) ((JSONObject) submittorObjectArray.get(0)).get(\"user\")).get(\"name\")\n\t\t\t\t\t\t\t.toString();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tsearchResult.setSubmittor(submittor);\n\n\t\t\t\tObject object = jsonObject.get(\"body\");\n\t\t\t\tString description = \"\";\n\t\t\t\tif (object instanceof JSONObject) {\n\t\t\t\t\tjsonObject = (JSONObject) object;\n\t\t\t\t\tJSONArray jsonUND = (JSONArray) jsonObject.get(\"und\");\n\t\t\t\t\tjsonObject = (JSONObject) jsonUND.get(0);\n\t\t\t\t\tdescription = jsonObject.get(\"value\").toString();\n\t\t\t\t}\n\t\t\t\tsearchResult.setDescription(description);\n\n\t\t\t\tjsonObject = (JSONObject) jsonObjects.get(i);\n\t\t\t\tjsonObject = (JSONObject) jsonObject.get(\"node\");\n\t\t\t\tobject = jsonObject.get(\"field_could_path\");\n\t\t\t\tString folderPath = \"\";\n\t\t\t\tif (object instanceof JSONObject) {\n\t\t\t\t\tjsonObject = (JSONObject) object;\n\t\t\t\t\tJSONArray jsonUND = (JSONArray) jsonObject.get(\"und\");\n\t\t\t\t\tjsonObject = (JSONObject) jsonUND.get(0);\n\t\t\t\t\tfolderPath = jsonObject.get(\"value\").toString();\n\t\t\t\t}\n\t\t\t\tsearchResult.setFolderPath(folderPath);\n\t\t\t\tSearchResults.add(searchResult);\n\t\t\t}\n\t\t}\n\t\tcatch (IOException e) {\n\t\t\te.printStackTrace();\n\n\t\t}\n\t\tcatch (org.json.simple.parser.ParseException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\treturn SearchResults;\n\t}", "title": "" }, { "docid": "dbd61afc81a6cd72e8a6a39afcece9f4", "score": "0.5710972", "text": "private void searchFoods() {\n // If FoodList is empty, create new list\n if(FoodList.getInstance().getFoods().size() == 0){\n FileReader reader = new FileReader();\n InputStream myFile = Objects.requireNonNull(getActivity()).getResources().openRawResource(MYFILE);\n List<Food> ruokalista = reader.readFile(myFile);\n FoodList.getInstance().addFoods(ruokalista);\n }\n\n // Food you want to find\n EditText findText = Objects.requireNonNull(getActivity()).findViewById(R.id.ptFind);\n String haku = findText.getText().toString();\n String[] hakusanat = haku.split(\" \");\n\n // Find specific foods in list\n copy = new ArrayList<>();\n for (int i = 0; i < FoodList.getInstance().getFoods().size(); i++) {\n int arvo = 0;\n for (String s : hakusanat) {\n if (FoodList.getInstance().getFoods().get(i).getName().toLowerCase().contains(s.toLowerCase())) {\n arvo++;\n }\n }\n if (arvo == hakusanat.length) {\n copy.add(FoodList.getInstance().getFoods().get(i));\n }\n }\n\n // Set listView of foods\n lvFoods.setAdapter(new ArrayAdapter<>(getActivity(),\n R.layout.food_list_layout,\n copy));\n }", "title": "" }, { "docid": "9bf568cc79132540e6a48805d0b92b31", "score": "0.5708179", "text": "public static ArrayList<Item> searchItem(POSSystem main) {\n ArrayList<Item> foundItems = new ArrayList<>();\n if (main.itemList.isEmpty()) {\n showMessage(\"Error\", Alert.AlertType.ERROR, \"There are no item in the inventory\");\n } else {\n TextInputDialog input = new TextInputDialog();\n input.setTitle(\"Input Dialog\");\n input.setHeaderText(null);\n input.setContentText(\"Enter items ID or name\");\n Optional<String> itemInfo = input.showAndWait();\n if (itemInfo.isPresent() && !itemInfo.get().isEmpty()) {\n for (Item item : main.itemList) {\n if (item.getItemName().toLowerCase().contains(itemInfo.get().toLowerCase())\n || item.getItemId().contains(itemInfo.get())) {\n foundItems.add(item);\n }\n }\n }\n }\n return foundItems;\n }", "title": "" }, { "docid": "ba6c2f3ec805e69911324b1d7377af2c", "score": "0.5703291", "text": "List<ArticleHit> search(SearchQuery query);", "title": "" }, { "docid": "3606ed3936288cd9b84c2b35b0d890bf", "score": "0.5696691", "text": "List<String> autoComplete(String argument);", "title": "" }, { "docid": "a10d079f8444c0932a1cf96e4a8a2d24", "score": "0.56881213", "text": "private void searchMealList() {\n mealRepository.searchListOfAvailableMealFromQuery(resFromEditText.getValue(), response -> {\n ArrayList<Meal> tabOfMeal = new ArrayList<>();\n try {\n JSONArray jsonArray = response.getJSONArray(\"results\");\n //Search element by element on the JsonObject\n for (int i = 0; i < jsonArray.length(); i++) {\n JSONObject jsonObject = jsonArray.getJSONObject(i);\n Meal meal = new Meal(jsonObject.getString(\"id\"),\n jsonObject.getString(\"title\"),\n jsonObject.getString(\"image\"));\n tabOfMeal.add(meal);\n }\n } catch (JSONException e) {\n e.printStackTrace();\n }\n updateUISearch(tabOfMeal);\n });\n }", "title": "" }, { "docid": "362b0a76d441dfb35bde880d6981b07f", "score": "0.5687449", "text": "private void setListSearch(String s) {\n mOfficeView.setAfterSearch(true);\n if (!isDownloadOffLine()) {\n try {\n Log.d(TAG, s);\n switch (mOfficeView.getLookupScreen()) {\n case LOOKUP_COMING:\n setListViewLookUp(s, LOOKUP_COMING);\n break;\n case LOOKUP_SENT:\n setListViewLookUp(s, LOOKUP_SENT);\n break;\n case LOOKUP_INTERNAL:\n setListViewLookUp(s, LOOKUP_INTERNAL);\n break;\n default:\n GsonDocument mGsonDocument = getGson().fromJson(s, GsonDocument.class);\n List<GsonDocument.DataBean> mArray = mGsonDocument.getData();\n for (int i = 0; i < mArray.size(); i++) {\n GsonDocument.DataBean object = mArray.get(i);\n mSqLite.QueryData(CREATE_TABLE + \" \" + \" M\" + getOnlyNumerics(String.valueOf(object.getLabelCode())) + SQLLITE_DOCUMENT_LIST);\n arrDocument.add(object);\n }\n if (mOfficeView.getPositionPage() > 1) {\n adapterSearch.notifyDataSetChanged();\n } else {\n adapterSearch = new DocumentAdapter(context, arrDocument);\n mOfficeView.setListDoc(adapterSearch);\n }\n mOfficeView.setCheckShowListSearch(true);\n break;\n }\n } catch (Exception e) {\n ShowErrorToast(context);\n e.printStackTrace();\n } finally {\n mOfficeView.setActionBarIcon(R.drawable.menu_icon_slider);\n }\n }\n }", "title": "" }, { "docid": "fba0cd810c484c76a278a243e4b609cd", "score": "0.56709343", "text": "private void addFindByPartial() {\r\n\t\teditText.addTextChangedListener(new TextWatcher() {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void afterTextChanged(Editable arg0) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\tString text = editText.getText().toString();\r\n\t\t\t\tproductList = sCT.getProductListByPartial(text);\r\n\t\t\t\tlistview.setAdapter(new ProductAdapter(productList,\r\n\t\t\t\t\t\tTab_Product_Activity.this));\r\n\r\n\t\t\t}\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void beforeTextChanged(CharSequence arg0, int arg1,\r\n\t\t\t\t\tint arg2, int arg3) {}\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void onTextChanged(CharSequence arg0, int arg1, int arg2,\r\n\t\t\t\t\tint arg3) {}\r\n\r\n\t\t});\r\n\t}", "title": "" }, { "docid": "da83221faf04e14078350cf4a1a7c5b7", "score": "0.5669617", "text": "public void List2() {\n System.out.println(\"\");\n System.out.print(\"|ID\");\n sp1(\"ID\");\n System.out.print(\"|Name\");\n sp1(\"Name\");\n System.out.print(\"|Price\");\n sp1(\"Name\");\n System.out.print(\"|Amount\");\n sp1(\"Price\");\n System.out.print(\"|\");\n System.out.println(\"\");\n SearchByName();\n System.out.println(\"\");\n }", "title": "" }, { "docid": "a490b41ebc1d01be3a0c7d8584c6baa2", "score": "0.5666614", "text": "List<Amount> search(String query);", "title": "" }, { "docid": "16a9ed2c14ee230d4ea32f522984557e", "score": "0.5654164", "text": "public static void searchManCloth(){\n\n }", "title": "" }, { "docid": "7e7bd43d097a5972f053ed476f222527", "score": "0.5652417", "text": "@Override\n public void search() {\n }", "title": "" }, { "docid": "8d74c0070d51c6afc90a73a846f6a320", "score": "0.56510705", "text": "List<T> find();", "title": "" }, { "docid": "c444bfc9a95f1b2f7e8ecc8f251c6f65", "score": "0.56496584", "text": "private void filter(String text) {\n ArrayList<String> filterdNames = new ArrayList<>();\n\n //looping through existing elements\n for (String s : names) {\n //if the existing elements contains the search input\n if (s.toLowerCase().contains(text.toLowerCase())) {\n //adding the element to filtered list\n filterdNames.add(s);\n }\n }\n\n //calling a method of the adapter class and passing the filtered list\n adapter.filterList(filterdNames);\n }", "title": "" }, { "docid": "293f90300a130d35ee697458d0b18193", "score": "0.564744", "text": "public List<Customer> searchEmployee(String criteria) throws Exception;", "title": "" }, { "docid": "edd8ba1fd2258cd712ff5ce540af73e4", "score": "0.5630797", "text": "List find(SkillModelItem skillModelItem);", "title": "" }, { "docid": "49684c42a203bd1e8eea2297f19e1206", "score": "0.56239194", "text": "public void SerarchItemList(String search) {\n\t\tList<ItemBbs> itemList = itemBbsService.AdminSearch(search);\n\t\t\n\t\tif(itemList.isEmpty()) {\n\t\t\tJOptionPane.showMessageDialog(null, \"검색 결과가 없습니다.\");\n\t\t\titemList = itemBbsService.getAllItemBbs();\n\t\t}\n\t\tnew AdminItemList(itemList);\n\t\t\n\t}", "title": "" }, { "docid": "e5dc5ceb2b3bb2ce2ad271b2374b3fd5", "score": "0.56231105", "text": "@Override\n\tpublic Collection searchObjectList(String type, Object obj) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "eacd9ef75db3f95addbe30e6d7311dea", "score": "0.5619013", "text": "private void doSearch(String queryStr){\n }", "title": "" }, { "docid": "9b71844b7cb6489b05c0261d526bf63a", "score": "0.5607083", "text": "public abstract ArrayList<Toy> searchToysbyName(String toyName);", "title": "" }, { "docid": "3d7592270624c8d66e5621b902b924b5", "score": "0.5594928", "text": "List<T> findList();", "title": "" }, { "docid": "de262230469bb926f2c6bfa89c56dae7", "score": "0.55869925", "text": "public static void main(String[] args) {\n List<String> list = new ArrayList<>();\n search(list);\n }", "title": "" }, { "docid": "b89543ac5e4d0378b50a8c036dd29800", "score": "0.55775374", "text": "public void search(){\r\n try {\r\n long beforeTime = System.nanoTime();\r\n currentList = autoCompleter.allThatBeginWith(textField.getText());\r\n timeLabel.setText(format(System.nanoTime() - beforeTime));\r\n textArea.setText(print());\r\n matchesLabel.setText(\"\" + currentList.size());\r\n\r\n } catch (IllegalStateException ise) {\r\n Alert alert = new Alert(Alert.AlertType.ERROR);\r\n alert.setTitle(\"Error Dialog\");\r\n alert.setHeaderText(\"File Error\");\r\n alert.setContentText(ise.getMessage());\r\n alert.showAndWait();\r\n }\r\n }", "title": "" }, { "docid": "b21f528a3c0e2064443051bbd9b4ae55", "score": "0.5570621", "text": "private void search()\n\t\t{\n\t\t\tString search = searchTF.getText();\n\t\t\tDefaultListModel<Item> searchList = new DefaultListModel<Item>();\n\t\t\tfor (int i = 0; i < masterList.size(); i++)\n\t\t\t{\n\t\t\t\tString name = masterList.get(i).getName().toLowerCase();\n\t\t\t\tif (name.contains(search.toLowerCase()))\n\t\t\t\t\tsearchList.addElement(masterList.get(i));\n\t\t\t}\n\t\t\tString[][] searchData = new String[searchList.size()][2];\n\t\t\tfor (int i = 0; i < searchList.size(); i++)\n\t\t\t{\n\t\t\t\tsearchData[i][0] = searchList.get(i).getName();\n\t\t\t\tsearchData[i][1] = searchList.get(i).getItemType();\n\t\t\t}\n\t\t\tString[] columns = new String[2];\n\t\t\tcolumns[0] = \"Item Name\";\n\t\t\tcolumns[1] = \"Item Type\";\n\t\t\tmainJTable.setModel(new DefaultTableModel(searchData, new String[] {\n\t\t\t\t\t\"Item Name\", \"Item Type\"}) {\n\t\t\t\tboolean[] columnEditables = new boolean[] {\n\t\t\t\t\tfalse, false\n\t\t\t\t};\n\t\t\t\tpublic boolean isCellEditable(int row, int column) {\n\t\t\t\t\treturn columnEditables[column];\n\t\t\t\t}\n\t\t\t});\n\t\t}", "title": "" }, { "docid": "50aa866fce7b16f56aa6772d9b4516aa", "score": "0.55635166", "text": "List<BoardModel> searchArticle(String type, String keyword, int startArticleNum, int endArticleNum);", "title": "" }, { "docid": "80144f284808a35261b9c0bfe909114a", "score": "0.55628717", "text": "private void search() {\n String searchString = searchTextField.getText().toLowerCase();\n cardListView.setItems(cardManager.getCards(card -> card.getName().toLowerCase().contains(searchString) || card.getNumber().toLowerCase().endsWith(searchString)));\n }", "title": "" }, { "docid": "61b60cf2904e998227414f4359b2554a", "score": "0.55583674", "text": "@Test\n public void testSearchAddressBook_partSearchText() throws IOException {\n ArrayList<AddressBookEntry> expectedList = new ArrayList<AddressBookEntry>();\n List<AddressBookEntry> actualList;\n expectedList.add(normalEntry);\n \n normalEntryAddressBook.saveAddressListToFile(\"mycontact.txt\");\n actualList = normalEntryAddressBook.searchAddressBook(\"mycontact.txt\",\"jo\",EntryAttribute.NAME);\n assertEquals(expectedList, actualList); \n }", "title": "" }, { "docid": "ce3562a52651d60114c621cf28f51f20", "score": "0.5535483", "text": "public void search_item() throws InvalidArgumentException, DataNotFoundException\n\t{\n\t\t//Find all the books/periodicals (optionally add paramenters to find_items for searching)\n\t\tHashtable params = new Hashtable();\n\t\tparams.put(\"title\",\"asdf\");\n\n\t\tArrayList<Item> items = Database.find_items(params);\n\n\t\tfor(int i=0; i<items.size(); i++)\n\t\t{\n\t\t\tSystem.out.println(items.get(i));\n\n\t\t\tfor(int j=0; j<items.get(i).getCopies().size(); j++)\n\t\t\t{\n\t\t\t\tCopy copy = items.get(i).getCopies().get(j);\n\t\t\t\tSystem.out.println(\"\\t \"+copy);\n\t\t\t}\n\t\t}\t\t\n\t}", "title": "" }, { "docid": "f405f0270398144a2b2409c700c37e69", "score": "0.5525912", "text": "private List<Article> searchArticles() {\n List<Article> returnList = new ArrayList<>();\n for (Article article : completeArticleList) {\n String[] wordsToSearch = headlineSearchInput.split(\" \"); //splitting the search box input upon space to search for individual words\n for (String word : wordsToSearch) { //for each word to search\n String headlineToSearch = article.headline.toLowerCase();\n if (headlineToSearch.contains(word)) {\n returnList.add(article);\n }\n }\n }\n return returnList;\n }", "title": "" }, { "docid": "5e6bc7536786fbe6f4076c0068a19d88", "score": "0.55079615", "text": "public List<Contact> searchContact(Integer userId, String text);", "title": "" }, { "docid": "a0868b24864e36683d511f685ce853ad", "score": "0.55072", "text": "@Override\n\tpublic List<Product> search(String str) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "fae74b21a84cabb14394dfebfbd2f347", "score": "0.55050415", "text": "public String search(Searchable<T> searchable);", "title": "" }, { "docid": "0381d09e57ecab0cc752d7a6b1708a8c", "score": "0.5498909", "text": "private void search(){\n \tsearchField.textProperty().addListener((observable, oldValue, newValue) -> {\n \tif (!newValue.isEmpty()){\n\t\t movementsTable.setItems(FXCollections.observableArrayList(movementsController.searchMovements(newValue)));\n \t}else movementsTable.setItems(movementsController.getMovements());\n });\n }", "title": "" }, { "docid": "bf6ec957498b7cdcefbd892d9a1b70b9", "score": "0.5497967", "text": "List find(SkillModelItem skillModelItem, List studentList);", "title": "" }, { "docid": "4af7bb98e9c2c6ed1fa01e95cc2e622d", "score": "0.54947656", "text": "public Object[] searchItem(String name) {\n mSearchList.clear();\n int set_for_list = 0;\n for (int i = 0; i < list.size(); i++) {\n int index = list.get(i).get(\"title\").toString().indexOf(name);\n // 存在匹配的数据\n if (index != -1) {\n /*switch (setting) {\n case 0:\n String temp = list.get(i).get(\"num\").toString();\n int num = Integer.parseInt(temp);\n pos[set_for_list] = num;\n set_for_list++;\n mSearchList.add(list.get(i));\n\n break;\n case 1:\n\n if (list.get(i).get(\"cate_ID\").toString().equals(\"1\")) {\n pos[set_for_list] = i;\n set_for_list++;\n mSearchList.add(list.get(i));\n }\n break;\n case 2:\n if (list.get(i).get(\"cate_ID\").toString().equals(\"2\")) {\n pos[set_for_list] = i;\n set_for_list++;\n mSearchList.add(list.get(i));\n }\n break;\n case 3:\n if (list.get(i).get(\"cate_ID\").toString().equals(\"3\")) {\n pos[set_for_list] = i;\n set_for_list++;\n mSearchList.add(list.get(i));\n }\n break;\n case 4:\n if (list.get(i).get(\"cate_ID\").toString().equals(\"4\")) {\n pos[set_for_list] = i;\n set_for_list++;\n mSearchList.add(list.get(i));\n }\n break;\n case 5:\n if (list.get(i).get(\"cate_ID\").toString().equals(\"5\")) {\n pos[set_for_list] = i;\n set_for_list++;\n mSearchList.add(list.get(i));\n }\n break;\n case 6:\n if (list.get(i).get(\"cate_ID\").toString().equals(\"6\")) {\n pos[set_for_list] = i;\n set_for_list++;\n mSearchList.add(list.get(i));\n }\n break;\n\n }*/\n // pos[set_for_list] = i;\n\n // set_for_list++;\n String temp = list.get(i).get(\"num\").toString();\n int num = Integer.parseInt(temp);\n pos[set_for_list] = num;\n set_for_list++;\n mSearchList.add(list.get(i));\n }\n }\n setSimpleAdapter2();\n return mSearchList.toArray();\n }", "title": "" }, { "docid": "65bed7b65c8d287098b7d3ca2d189cbf", "score": "0.54889107", "text": "@Override\n public void afterTextChanged(Editable arg0) {\n\n try {\n String text = etSearch.getText().toString().toLowerCase(Locale.getDefault());\n int textlength = etSearch.getText().length();\n\n addPlaceListAdapter.filter(text, textlength);\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "4eadcdfee78a12efa79a3e79d0806370", "score": "0.5488466", "text": "List<ProductBean> getSearchItem(String word) {\n\t\treturn sql.selectList(\"getSearchItem\", word);\n\t}", "title": "" }, { "docid": "e96566b7beb7beb57b90b14e735574b3", "score": "0.5483451", "text": "private void searchInLivres(String search) {\n if (!search.equals(\"\")) {\n try {\n StringTokenizer st = new StringTokenizer(search, \" \");\n if (st.countTokens() != 0) {\n List<String> list = new ArrayList<>();\n for (int i = 0; i < st.countTokens() + 1; i++) {\n list.add(st.nextToken());\n }\n List<Livre> byMotsClefs = livreMetierService.getByMotsClefs(list);\n Vector<Livre> vector = new Vector<>(byMotsClefs);\n jListLivre.setListData(vector);\n }\n } catch (Exception ex) {\n Logger.getLogger(AddEmprunt.class.getName()).log(Level.SEVERE, null, ex);\n jLabelStatut.setText(\"<html><body><font color='red'>\" + ex.getMessage() + \"</font></body></html>\");\n }\n }\n }", "title": "" }, { "docid": "8a589b84a31082083fc6a4c11d06b873", "score": "0.5479784", "text": "public List<Proyecto> searchProyectos2(String estado);", "title": "" }, { "docid": "9b841d044b7142ef12a9d724e156a48b", "score": "0.54667604", "text": "private void cmdSearch()\r\n\t{\n\t\t\r\n\t}", "title": "" }, { "docid": "66b4b23987527e3feec07d6e9cf0aecd", "score": "0.5464299", "text": "@Override\n public void onPoiItemSearched(PoiItem arg0, int arg1) {\n\n }", "title": "" }, { "docid": "96924d0b01d2e183a7a24d7431f229e0", "score": "0.5457993", "text": "private void search(String str) {\n\n mylist.clear();\n\n// for(int i = 0 ; i<str.length();i++){\n// if(str.charAt(i) == '+' || str.charAt(i) == '-') { place = str.substring(i+1);\n// break;}\n//\n// }\n//\n// // place.toLowerCase().trim();\n\n\n AdapterClass adapterClass = new AdapterClass(DonorSearchActivity.this, mylist, DonorSearchActivity.this);\n for (Dnr_Healper object : dnr_list) {\n if (object.getBloodGroup().toLowerCase().contains(str.toLowerCase()) || object.getHomeDistrict().toLowerCase().contains(str.toLowerCase())) {\n mylist.add(object);\n\n }\n }\n\n adapterClass.notifyDataSetChanged();\n Collections.sort(mylist, new Sorter());\n\n recyclerView.setLayoutManager(new LinearLayoutManager(DonorSearchActivity.this));\n\n Log.d(TAG, \"search: \");\n\n recyclerView.setAdapter(adapterClass);\n\n\n }", "title": "" }, { "docid": "a88806a0d1de9ff19de28f0c09a78cb4", "score": "0.5448573", "text": "List<IYelpRestaurant> restaurantSearch(String name, String location);", "title": "" }, { "docid": "27400921883ef27a70f99fd00d05596d", "score": "0.5448486", "text": "public void filter(String text) {\n ArrayList<BasicInfo> superherofilterlist = new ArrayList<>();\n\n for (BasicInfo hero : basicInfoArrayList) {\n\n if (hero.getName().toLowerCase().contains(text.toLowerCase())) {\n superherofilterlist.add(hero);\n }\n }\n if (superherofilterlist.isEmpty()) {\n closeKeyboard();\n Toast.makeText(this, \"No Data Found..\", Toast.LENGTH_SHORT).show();\n\n } else {\n recyclerView_adapter.filterList(superherofilterlist);\n\n }\n\n\n }", "title": "" }, { "docid": "013390a9e9678905cf0355c20edf74da", "score": "0.5447941", "text": "@Override\n public void onSearchConfirmed(CharSequence text) {\n recyclerView.setAdapter(getFoodListAdapter(text.toString(),\"Name\"));\n\n }", "title": "" }, { "docid": "5afaaca4a1d3ec2c241f36c1880d3d58", "score": "0.5445183", "text": "private static void searchName(String name) {\n\n for (String[] string : telefonbook){\n if (string[0].trim().equalsIgnoreCase(name.trim())){\n addToResultList(string);\n }\n }\n\n }", "title": "" }, { "docid": "1eaa4b87dce1ea340b226954a27d77e1", "score": "0.5443982", "text": "public String doSearch() {\n TypedQuery<Item> typedQuery = em.createNamedQuery(Item.SEARCH, Item.class);\n typedQuery.setParameter(\"keyword\", \"%\" + keyword.toUpperCase() + \"%\");\n items = typedQuery.getResultList();\n return null;\n }", "title": "" }, { "docid": "0e817ab23ec12ea65f8e5d382689ed63", "score": "0.5434888", "text": "private ArrayList<String> fuzzy_search(String word){\n ArrayList<String> result = new ArrayList<String>();\n result.add(word);\n// for(WordEntry we: result_set){\n// result.add(we.name);\n// }\n// return result;\n return result;\n }", "title": "" }, { "docid": "408345bb7bc281cf3048b4a95d723e68", "score": "0.54297036", "text": "public void Search(){\n\n\n if (list1.size() == 0) {\n JOptionPane.showMessageDialog(null, \"List is empty.\");\n }\n\n else {\n int times = Integer.parseInt(JOptionPane.showInputDialog(\"How many students you want to search:\"));\n for (int i = 0; i < times; i++) {\n String id = JOptionPane.showInputDialog(\"Enter the ID you want to search:\");\n for (int s = 0; s < list1.size(); s++) {\n String currId = list1.get(s).getID();\n String CurrInfo = list1.get(s).toString();\n if (currId.compareToIgnoreCase(id) == 0) {\n JOptionPane.showMessageDialog(null, \" Student Found!. \");\n JOptionPane.showMessageDialog(null, \" This is the Info of Student you searched for:\\n\" + CurrInfo);\n }\n\n }\n }\n }\n /*else if (add.IDPresent(add.textField2.getText())==false){\n\n JOptionPane.showMessageDialog(null, \" Student not Found!. \");\n\n }*/\n\n\n }", "title": "" }, { "docid": "fd3408b20327dd09ea408ca86458511f", "score": "0.5429541", "text": "List<ModelItem> findByNameLike(String name);", "title": "" }, { "docid": "e7e1961cfbf91c22a9f1efc74ba3a920", "score": "0.5419067", "text": "public abstract List<T> search(String key) throws DaoException;", "title": "" }, { "docid": "009d816326d8b217570437ca6890eb6b", "score": "0.5417013", "text": "public List< Series > searchShows( String search );", "title": "" }, { "docid": "e5a37941f795e149a929c394e07f50a0", "score": "0.54153347", "text": "private void find() {\n\n }", "title": "" }, { "docid": "f23cd5402021874f1d4c7066dbc65d24", "score": "0.5412742", "text": "public void searchItemName (String value) \n\t{\n\t\t/* Checks first if the list is empty, if positive will inform. */\n\t\tif (isEmpty()) \n\t\t{\n\t\t\tSystem.out.println(\"The list is empty.\");\n\t\t} \n\t\telse \n\t\t{\n\t\t\t/* Iterate through the list starting at first position until it is null. */\n\t\t\tfor (Node index = first; index!=null; index = index.next) \n\t\t\t{\n\t\t\t\t/* Test if the description of the current Item contains the String \n\t\t\t\t * value received from method parameter. */\n\t\t\t\tif (index.data.getName().contains(value)) \n\t\t\t\t\t\n\t\t\t\t{\n\t\t\t\t\t/* If the Item description contains the string value informed then\n\t\t\t\t\t * it will print on the console the Item information. */\n\t\t\t\t\tSystem.out.println(index.toString());\n\t\t\t\t}\n\n\t\t\t}\n\t\t}\n\n\t}", "title": "" }, { "docid": "10633e5de9b891084089a607ed26241d", "score": "0.54093426", "text": "private void addVariableTextToList(ElectricObject eObj, String search, boolean caseSensitive,\n \t\t\tboolean regExp, Pattern p, CodeExpression.Code codeRestr, TextDescriptor.Unit unitRestr)\n \t\t{\n \t\t\tfor(Iterator<Variable> it = eObj.getParametersAndVariables(); it.hasNext(); )\n \t\t\t{\n \t\t\t\tVariable var = it.next();\n \t\t\t\tif (!var.isDisplay()) continue;\n \t\t\t\tObject obj = var.getObject();\n \t\t\t\tif (obj instanceof String || obj instanceof CodeExpression)\n \t\t\t\t{\n \t\t\t\t\tfindAllMatches(eObj, var.getKey(), -1, obj.toString(), search, caseSensitive, regExp, p, codeRestr, unitRestr);\n \t\t\t\t} else if (obj instanceof String[])\n \t\t\t\t{\n \t\t\t\t\tString [] strings = (String [])obj;\n \t\t\t\t\tfor(int i=0; i<strings.length; i++)\n \t\t\t\t\t{\n \t\t\t\t\t\tfindAllMatches(eObj, var.getKey(), i, strings[i], search, caseSensitive, regExp, p, codeRestr, unitRestr);\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t}\n \t\t}", "title": "" }, { "docid": "e0b4a207acf66bed9bd86042428c0d1a", "score": "0.54061466", "text": "public static ObservableList<Product> search(String query){\n if (query.trim().isEmpty()) return Inventory.getAllProducts();\n\n ObservableList<Product> tempString = searchStringValue(query);\n ObservableList<Product> tempInteger = searchIntValue(query);\n tempString.addAll(tempInteger);\n return tempString;\n }", "title": "" }, { "docid": "5e921fb6cfd0c8f173f13165e848b8f3", "score": "0.5404167", "text": "@Override\n\tpublic void onPoiItemSearched(PoiItem arg0, int arg1) {\n\n\t}", "title": "" }, { "docid": "40ef7356759c3acda3725886fb116cde", "score": "0.5401016", "text": "@Override\n public Object getItem(int arg0) {\n return searchBeanList.get(arg0);\n }", "title": "" }, { "docid": "c7dc421ee0b78d23b826f218a94d23d3", "score": "0.53984284", "text": "@Override\n\t\t\tpublic void onSearch(String text) {\n\t\t\t\tLog.w(\"test3\",\"search:\"+text+\":\");\n\t\t\t\t//search(text);\n\t\t\t}", "title": "" }, { "docid": "653bd7ef1cf070b5764fa9c047cca47b", "score": "0.53968537", "text": "public List<Eetakemon> searchApproach(String aprox){\n List<Eetakemon> list2 = Collections.list(mostrarLista());\n List<Eetakemon> encontrado = new ArrayList<Eetakemon>();\n for (int i=0; i<list2.size();i++){\n if (list2.get(i).getNombre().contains(aprox)){\n encontrado.add(list2.get(i));\n }\n }\n return encontrado;\n }", "title": "" }, { "docid": "f3aa67b42deca7d540988a90b2f2d9f8", "score": "0.53854626", "text": "private void filter(String text) {\n ArrayList<DataModel> filteredList = new ArrayList<>();\n\n for (DataModel item : mExampleList) {\n if (item.getRecipe_name().toLowerCase().contains(text.toLowerCase())) {\n filteredList.add(item);\n }\n }\n\n mAdapter.filterList(filteredList);\n }", "title": "" }, { "docid": "93d2ee4c1fb5f4c849ee93cc825ac337", "score": "0.5376663", "text": "@Test\n public void testSearchItemByType() throws Exception {\n /* System.out.println(\"searchItemByType\");\n List<String> typeList = new ArrayList();\n typeList.add(\"SIM\");\n typeList.add(\"TAR\");\n typeList.add(\"LEM\");\n \n User user = new User();\n user.setCodEmail(\"1\");\n \n ItemDAO instance = new ItemDAO();\n \n ArrayList<Item> result = instance.searchItemByType(typeList, user);\n \n result.forEach((item) -> {\n System.out.println(\"Seq: \" +item.getSeqItem() +\" Name: \" +item.getNameItem());\n });\n \n assertEquals(false, result.isEmpty());*/\n }", "title": "" }, { "docid": "947f0a705b02c660597de2e46a473dc2", "score": "0.5373358", "text": "private static void test1()\n {\n System.out.println(\"Creating puzzle from words entered by user\\n\");\n ArrayList<String> fruit = new ArrayList<String>(Arrays.asList(\"Orange\", \"Pineapple\",\"Apple\", \"Melon\", \"Peach\", \"Kiwi\", \"Plum\", \"Grape\",\"Rasperry\",\"Strawberry\"));\n //WordSearchPuzzle puzzle1 = new WordSearchPuzzle(fruit); \n //puzzle1.getWordSearchList();\n System.out.println();\n }", "title": "" }, { "docid": "f17d0becac49d3d7f0aae70105d41ff3", "score": "0.5359346", "text": "@Override\n public LightningResultsPanel search(final String text) {\n clickSearchBox();\n setSearchBox(text);\n clickSearchBox();\n return new LightningResultsPanel();\n }", "title": "" }, { "docid": "bfd8623df72767b0208ac0e6fc4b404d", "score": "0.5352276", "text": "@Override\n public void afterTextChanged(Editable arg0) {\n String text = editsearch.getText().toString().toLowerCase(Locale.getDefault());\n adapter.filter(text);\n }", "title": "" }, { "docid": "bfd8623df72767b0208ac0e6fc4b404d", "score": "0.5352276", "text": "@Override\n public void afterTextChanged(Editable arg0) {\n String text = editsearch.getText().toString().toLowerCase(Locale.getDefault());\n adapter.filter(text);\n }", "title": "" }, { "docid": "bfd8623df72767b0208ac0e6fc4b404d", "score": "0.5352276", "text": "@Override\n public void afterTextChanged(Editable arg0) {\n String text = editsearch.getText().toString().toLowerCase(Locale.getDefault());\n adapter.filter(text);\n }", "title": "" }, { "docid": "227f62b56bffbaee57f23cd0e06d2b8c", "score": "0.53481835", "text": "@Override\n\tpublic List<TbItem> search(String title) {\n\t\t\n\t\t\n\t\tHighlightQuery query = new SimpleHighlightQuery();\n\n\t\t// 加入需要显示的高亮字段\n\t\tHighlightOptions highlightOptions = new HighlightOptions().addField(\"title\");\n\t\t// 设置高亮前缀\n\t\thighlightOptions.setSimplePrefix(\"<em style='color:red'>\");\n\t\t// 设置高亮后缀\n\t\thighlightOptions.setSimplePostfix(\"</em>\");\n\t\t// 设置高亮\n\t\tquery.setHighlightOptions(highlightOptions);\n\t\t\n\t\t// 根据条件查询数据\n\t\tCriteria criteria = new Criteria(\"title\").is(title);\n\t\tquery.addCriteria(criteria);\n\t\t\n\t\tHighlightPage<TbItem> page = solrTemplate.queryForHighlightPage(query, TbItem.class);\n\t\tfor(HighlightEntry<TbItem> h : page.getHighlighted()){\n\t\t\t// 获取item对象\n\t\t\tTbItem tbItem = h.getEntity();\n\t\t\tif(h.getHighlights().size() > 0 && h.getHighlights().get(0).getSnipplets().size() > 0){\n\t\t\t\t// 设置高亮属性\n\t\t\t\ttbItem.setTitle(h.getHighlights().get(0).getSnipplets().get(0));\n\t\t\t}\n\t\t}\n\t\tList<TbItem> list = page.getContent();\n\t\treturn list;\n\t}", "title": "" }, { "docid": "c75fec8a96dfce3d7d20ff7019b2f0bf", "score": "0.5332844", "text": "public List<T> search(String query) {\n \t\tLinkedList<T> items = new LinkedList<T>();\n \t\t\n \t\tString sql = \"SELECT \"+getTableName()+\".* FROM \" + getSearchTable() + \" WHERE \"+getSearchableColumns().get(0)+\" LIKE ?\";\n \n \t\tSystem.out.println(sql);\n \t\t\n \t\tfor (String queryPart : Arrays.asList(query.split(\" \"))) {\n \t\t\tConnection conn = null;\n \t\t\t\n \t\t\ttry {\n \t\t\t\tconn = dataSource.getConnection();\n \t\t\t\tPreparedStatement ps = conn.prepareStatement(sql);\n \t\t\t\n \t\t\t\tps.setString(1, \"%\" + queryPart + \"%\");\n \n \t\t\t\tResultSet rs = ps.executeQuery();\n \t\t\t\n \t\t\t\twhile (rs.next()) {\n \t\t\t\t\tT item = parseResultSetRow(rs);\n \t\t\t\t\t\n \t\t\t\t\tT toMod = null;\n \t\t\t\t\tboolean itemNotFound = true;\n \t\t\t\t\tfor (T i : items) {\n \t\t\t\t\t\tif (getId(i) == getId(item)) {\n \t\t\t\t\t\t\ttoMod = i; // Because modifying while iterating does\n \t\t\t\t\t\t\t\t\t\t// stupid things...\n \t\t\t\t\t\t\titemNotFound = false;\n \t\t\t\t\t\t}\n \t\t\t\t\t}\n \n \t\t\t\t\tif (itemNotFound)\n \t\t\t\t\t\titems.add(item);\n \t\t\t\t\t\n \t\t\t\t\telse {\n \t\t\t\t\t\titems.remove(toMod);\n \t\t\t\t\t\titems.addFirst(toMod);\n \t\t\t\t\t}\n \t\t\t\t}\n \n \t\t\t\trs.close();\n \t\t\t\tps.close();\n \t\t\t\tconn.close();\n \t\t\t} catch (SQLException e) {\n \t\t\t\tthrow new RuntimeException(e);\n \t\t\t} finally {\n \t\t\t\tif (conn != null) {\n \t\t\t\t\ttry {\n \t\t\t\t\t\tconn.close();\n \t\t\t\t\t} catch (SQLException e) {\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t}\n \t\t}\n\t\t\n \t\treturn items;\n \t}", "title": "" }, { "docid": "a59d4d84a1dffd5ca9a8b213daba7ea8", "score": "0.53197306", "text": "public Car searchCarByModelNumber(String text) {\n //throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n \n for(Car car: carList){\n if(car.getModelNumber().equals(text)){\n return car;\n }\n }\n return null;\n }", "title": "" }, { "docid": "854cf2055129ae3dece47224591f0d99", "score": "0.53181314", "text": "public Media search(ArrayList<Media> aMedias, String aMediaName);", "title": "" }, { "docid": "e2b635cbe3ccf7979d5a35050a8425b8", "score": "0.5315667", "text": "@Test\n public void testSuccessfulSearch() {\n String searchItem = \"самокат\";\n homePage.enterSearchParameter(searchItem);\n var searchPage = homePage.clickSearch();\n searchPage.scrollToItems();\n var searchedItems = searchPage.getSearchedItemNames();\n assertFalse(searchedItems.isEmpty());\n for (WebElement searchedItem: searchedItems) {\n assertTrue(searchedItem.getText().toLowerCase().contains(searchItem),\n \"Item that does not contain \\\"\" + searchItem + \"\\\" in it's name was found: \" + searchedItem.getText() + \" /\");\n }\n\n }", "title": "" }, { "docid": "91e41c28ec70f7bf70051aca8423cc52", "score": "0.5309316", "text": "@Test\n\tpublic void test_search() {\n\t\tSimpleList l = new SimpleList();\n\t\tl.add(1);\n\t\tl.add(2);\n\t\tl.add(3);\n\t\tassertEquals(l.search(2), 1);\n\t}", "title": "" }, { "docid": "8ae3277b43648744485df1fb53d6a9b8", "score": "0.5306498", "text": "public void searchItemDescription (String value) \n\t{\n\t\t/* Checks first if the list is empty, if positive will inform. */\n\t\tif (isEmpty()) \n\t\t{\n\t\t\tSystem.out.println(\"The list is empty.\");\n\t\t} \n\t\telse \n\t\t{\n\t\t\t/* Iterate through the list starting at first position until it is null. */\n\t\t\tfor (Node index = first; index!=null; index = index.next) \n\t\t\t{\n\t\t\t\t/* Test if the description of the current Item contains the String \n\t\t\t\t * value received from method parameter. */\n\t\t\t\tif (index.data.getDescription().contains(value)) \n\t\t\t\t\t\n\t\t\t\t{\n\t\t\t\t\t/* If the Item description contains the string value informed then\n\t\t\t\t\t * it will print on the console the Item information. */\n\t\t\t\t\tSystem.out.println(index.toString());\n\t\t\t\t}\n\n\t\t\t}\n\t\t}\n\n\t}", "title": "" }, { "docid": "724457b872bd53ad27b836ac0d2bb7a2", "score": "0.5302096", "text": "@Override\n public void afterTextChanged(Editable arg0) {\n String text = editsearch.getText().toString().toLowerCase(Locale.getDefault());\n adapter.filter(text);\n }", "title": "" }, { "docid": "724457b872bd53ad27b836ac0d2bb7a2", "score": "0.5302096", "text": "@Override\n public void afterTextChanged(Editable arg0) {\n String text = editsearch.getText().toString().toLowerCase(Locale.getDefault());\n adapter.filter(text);\n }", "title": "" }, { "docid": "ea65642dc2705e1b5c0a5b8368b4c481", "score": "0.53012234", "text": "ArrayList<girl> find()\r\n { sort();\r\n for(int i = 0;i < b.size() ;i++ )\r\n { girl g1 ;\r\n int index = bsearch(b.get(i).name,0,c.size());\r\n if(index != -1)\r\n { g1 = c.get(index).g1;\r\n g.add(g1);\r\n \r\n }\r\n else\r\n { g1 = new girl(\"-1\",-1,-1,-1,\"-1\");\r\n g.add(g1);\r\n \r\n }\r\n \r\n }\r\n return g;\r\n \r\n }", "title": "" }, { "docid": "40d44507c0526b05e49a6d8fb9789943", "score": "0.5299626", "text": "public static ArrayList<University> search(String wantedSchool,\n String wantedState, String wantedLocation, String wantedControl, Integer lowWantedNumber, Integer highWantedNumber,\n Double lowPercentFemales, Double highPercentFemales, Double lowSATVerbal, Double highSATVerbal, Double lowSATMath,\n Double highSATMath, Double lowExpenses, Double highExpenses, Double lowFinAid, Double highFinAid,\n Integer lowNumApplicants, Integer highNumApplicants, Double lowAdmitted, Double highAdmitted,\n Double lowEnrolled, Double highEnrolled, Integer lowAcademicScale, Integer highAcademicScale,\n Integer lowSocialScale, Integer highSocialScale, Integer lowQualityScale,\n Integer highQualityScale, ArrayList<String> emphasesList) throws Exception{\n updatingList = new ArrayList<University>();\n listBeforeMethod = DatabaseController.getAllUniversities();\n searchWantedSchools(wantedSchool);\n searchWantedState(wantedState);\n searchWantedLocation(wantedLocation);\n searchWantedControl(wantedControl);\n searchWantedNumberOfStudents(lowWantedNumber, highWantedNumber);\n searchWantedPercentFemales(lowPercentFemales, highPercentFemales);\n searchWantedSATVerbal(lowSATVerbal, highSATVerbal);\n searchWantedSATMath(lowSATMath, highSATMath);\n searchWantedExpenses(lowExpenses, highExpenses);\n searchWantedPercentFinancialAid(lowFinAid, highFinAid);\n searchWantedNumberOfApplicants(lowNumApplicants, highNumApplicants);\n searchWantedPercentAdmitted(lowAdmitted, highAdmitted);\n searchWantedPercentEnrolled(lowEnrolled, highEnrolled);\n searchWantedAcademicsScale(lowAcademicScale, highAcademicScale);\n searchWantedSocialScale(lowSocialScale, highSocialScale);\n searchWantedQualityOfLifeScale(lowQualityScale, highQualityScale);\n searchWantedEmpheses(emphasesList);\n\n /*\n * refinedSearch(wantedSchool, wantedState, wantedLocation,\n * wantedControl, lowWantedNumber, highWantedNumber, lowPercentFemales,\n * highPercentFemales, lowSATVerbal, highSATVerbal, lowSATMath,\n * highSATMath, lowExpenses, highExpenses, lowFinAid, highFinAid,\n * lowNumApplicants, highNumApplicants, lowAdmitted, highAdmitted,\n * lowEnrolled, highEnrolled, lowAcademicScale, highAcademicScale,\n * lowSocialScale, highSocialScale, lowQualityScale, highQualityScale,\n * emphasesList);\n */\n\n return listBeforeMethod;\n }", "title": "" }, { "docid": "afcd5ae6878400d09e5620da5a9e1893", "score": "0.5298164", "text": "List<E> autoComplete(E entity);", "title": "" } ]
b8fb44a1b219d9b5fcdbef593639f6bb
Returns a set of EventConfig created.
[ { "docid": "0a31afacf37c5fd143e7c370c27b0fd8", "score": "0.6013689", "text": "public abstract Set<EventConfig> exportEvents(EventBuilderFactory eventBuilderFactory) throws IOException;", "title": "" } ]
[ { "docid": "e9073498b23f84c51b2d8f2d7725b469", "score": "0.6648876", "text": "public EventSetDescriptor[] getEventSetDescriptors () {\n return events;\n }", "title": "" }, { "docid": "9eb2ebfece62e7c21fff1ef63a55d0ef", "score": "0.6453997", "text": "public java.util.List<Event> getEvents() {\n if (events == null) {\n events = new com.amazonaws.internal.ListWithAutoConstructFlag<Event>();\n events.setAutoConstruct(true);\n }\n return events;\n }", "title": "" }, { "docid": "61817d45d9605561f27aadb6556f7cd9", "score": "0.6370194", "text": "public static Map<String, Event> getEventList() {\n return EventList;\n }", "title": "" }, { "docid": "5ad6668e8becb2da59fcf10e69eb1ce5", "score": "0.63080907", "text": "public synchronized Collection<Event> getEvents() {\r\n\t\t// prevent concurrent modification - clone the values before returning\r\n\t\t// them.\r\n\t\treturn Collections.<Event> unmodifiableCollection(new ArrayList<Event>(events.values()));\r\n\t}", "title": "" }, { "docid": "872f1b21f670be68a7b223f2a6debd2b", "score": "0.6284651", "text": "public Map getAllEvents() {\n return eventInfo;\r\n }", "title": "" }, { "docid": "811ac8708bcbd8faad9cfd14a9a88ce9", "score": "0.6259947", "text": "public List<Event> getEvents(){\r\n\t\treturn events;\r\n\t}", "title": "" }, { "docid": "ba67bfbc21a70e08f93e00abfeaaab0b", "score": "0.62295306", "text": "Map<String, Event> getAllEvents();", "title": "" }, { "docid": "c49ec640c1aca6d29a46eaa0c271c10b", "score": "0.61672795", "text": "public List<ParameterEvent> getEvents() {\n return events;\n }", "title": "" }, { "docid": "46df76f7eccf1f69107768714e1f3415", "score": "0.61331", "text": "public List<Event> getEvents() {\r\n return events;\r\n }", "title": "" }, { "docid": "674d035a1a500bb1a868e4d85c13c96b", "score": "0.60856605", "text": "public ImmutableMap<String, Object> getConfigObjects() {\n return configObjects;\n }", "title": "" }, { "docid": "78eb105986fa10eb6120bba0d7bbfae6", "score": "0.60843426", "text": "@Override\n public Collection<EventDefinition> getEvents() {\n Collection<EventDefinition> join = new ArrayList();\n if (this.getSpecificEventDefinitionCollection() != null && this.getSpecificEventDefinitionCollection().size() > 0) {\n join.addAll(this.getSpecificEventDefinitionCollection());\n }\n join.addAll(this.getGenericEventDefinitionCollection());\n return join;\n }", "title": "" }, { "docid": "dee52dcbf245f757b3feca16d7a48fa7", "score": "0.60804343", "text": "public List<Object> getEvents() {\n List<Object> finalList = new ArrayList<>();\n this.pluginEvents.entrySet().stream().map(Map.Entry::getValue).forEach(finalList::addAll);\n return finalList;\n }", "title": "" }, { "docid": "428d7d4857cfbd3fc1a3280e7f9d05fa", "score": "0.6056679", "text": "public Iterable<Class<? extends Event>> getEventTypes() {\n return config.getEventTypes();\n }", "title": "" }, { "docid": "29f31704c5aa571be5f25f988960ab79", "score": "0.60397494", "text": "public List<ACDG> getConfigs()\n {\n\n return this.configs;\n }", "title": "" }, { "docid": "9f40d79ca9523d9c5e09ef50d55436c6", "score": "0.6003316", "text": "public List<Event> getEvents() {\n\t\treturn events;\n\t}", "title": "" }, { "docid": "9269269429d677ee4800535114769508", "score": "0.6001956", "text": "public ArrayList<Event> getEvents() {\n return events;\n }", "title": "" }, { "docid": "4af9290475d56969125852e3e1e61ace", "score": "0.599758", "text": "java.util.List<com.papaizaa.streaming_example.generated_pb.Events.Event>\n getEventsList();", "title": "" }, { "docid": "46fccd59f3f47a5f3dec9333c8f5175f", "score": "0.5983013", "text": "List<Event> getEvents();", "title": "" }, { "docid": "1784a9d021fe1cc441ebe581d38c7da4", "score": "0.59574795", "text": "public Map<String, List<String>> getConfig() {\n\t\treturn config;\n\t}", "title": "" }, { "docid": "5d86275f2e88fd3e4527c1ec9a2a1cac", "score": "0.5942705", "text": "public ExceptionConfig[] findExceptionConfigs() {\n ExceptionConfig[] results = new ExceptionConfig[exceptions.size()];\n\n return ((ExceptionConfig[]) exceptions.values().toArray(results));\n }", "title": "" }, { "docid": "32f4adc56f258ab55cf35afd0f7c0499", "score": "0.5925687", "text": "public java.util.List<HoursOfOperationConfig> getConfig() {\n return config;\n }", "title": "" }, { "docid": "eb61d00c8536b4fff0c312396fd3eb8f", "score": "0.59044427", "text": "public synchronized List<BroadcastEvent> getEvents() {\r\n\t\tList<BroadcastEvent> oldEvents = events;\r\n\t\tevents = new ArrayList<BroadcastEvent>();\r\n\t\treturn oldEvents;\r\n\t}", "title": "" }, { "docid": "a63b066cf98be4e5008413e4bdc08297", "score": "0.5892174", "text": "@SuppressWarnings(\"unchecked\")\n public List<SaxEvent> recallSafeConfiguration() {\n return (List<SaxEvent>) context.getObject(SAFE_JORAN_CONFIGURATION);\n }", "title": "" }, { "docid": "cb8e1e6c27e6052876d72d7f94d4b26c", "score": "0.58844554", "text": "public java.util.List<com.papaizaa.streaming_example.generated_pb.Events.Event> getEventsList() {\n if (eventsBuilder_ == null) {\n return java.util.Collections.unmodifiableList(events_);\n } else {\n return eventsBuilder_.getMessageList();\n }\n }", "title": "" }, { "docid": "8cd0b4a2695b0efb7f4ef1c767b94b07", "score": "0.58829135", "text": "public ArrayList<Event> getEvents() {\r\n\t\treturn this.events;\r\n\t}", "title": "" }, { "docid": "1d0bd1370004b8389ce03518eb110500", "score": "0.5867125", "text": "public java.util.List<? extends com.papaizaa.streaming_example.generated_pb.Events.EventOrBuilder>\n getEventsOrBuilderList() {\n if (eventsBuilder_ != null) {\n return eventsBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(events_);\n }\n }", "title": "" }, { "docid": "1fe19bb9b15de1bde13e66bec12d7c97", "score": "0.58596087", "text": "public Event[] getEvents() {\r\n\t\tEvent e[] = new Event[events.size()];\r\n\t\tfor (int i = 0; i < e.length; i++)\r\n\t\t\te[i] = (Event) events.get(i);\r\n\t\treturn e;\r\n\t}", "title": "" }, { "docid": "0d51c12fd9d5e863199b17759748ac80", "score": "0.5830545", "text": "public Set<Config> loadConfigs();", "title": "" }, { "docid": "13f29a1232417c9f671cebcdf22001b5", "score": "0.5817662", "text": "public java.util.List<wishful_framework.Messages.Event> getInEventsList() {\n if (inEventsBuilder_ == null) {\n return java.util.Collections.unmodifiableList(inEvents_);\n } else {\n return inEventsBuilder_.getMessageList();\n }\n }", "title": "" }, { "docid": "2ae758b772cb5d8175cef1ab6324b22d", "score": "0.5801902", "text": "public List<Event> events() {\n return this.innerProperties() == null ? null : this.innerProperties().events();\n }", "title": "" }, { "docid": "9202249b85cc515a9aab4e9447b52c30", "score": "0.57930225", "text": "public LinkedList<Event> getEvents() {\n return events;\n }", "title": "" }, { "docid": "38270f49996432ccd799fcb23cd432de", "score": "0.57920206", "text": "public java.util.List<? extends wishful_framework.Messages.EventOrBuilder> \n getInEventsOrBuilderList() {\n if (inEventsBuilder_ != null) {\n return inEventsBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(inEvents_);\n }\n }", "title": "" }, { "docid": "9122ba795d23557f8249cd8e79065ec0", "score": "0.57863957", "text": "private void readConfig() {\n\t\tFileConfiguration c = this.getConfig();\n\t\tConfig.eventChance = c.getInt(\"Events.Global.EventChance\");\n\t\tConfig.eventRepeatDelay = c.getInt(\"Events.Global.EventRepeatDelay\");\n\n\t\tConfig.meteoriteBroadcast = c.getBoolean(\"Events.Meteorite.Broadcast\");\n\t\tif(c.getBoolean(\"Events.Meteorite.Enabled\")) Config.availableEvents.add(MeteoriteEvent.class);\n\t\tif(LocationType.valueOf(c.getString(\"Events.Meteorite.LocationType\")) != null) Config.meteoriteLocationType = LocationType.valueOf(c.getString(\"Events.Meteorite.LocationType\"));\n\n\t\tConfig.earthquakeBroadcast = c.getBoolean(\"Events.Earthquake.Broadcast\");\n\t\tif(c.getBoolean(\"Events.Earthquake.Enabled\")) Config.availableEvents.add(EarthquakeEvent.class);\n\t\tif(LocationType.valueOf(c.getString(\"Events.Earthquake.LocationType\")) != null) Config.earthquakeLocationType = LocationType.valueOf(c.getString(\"Events.Earthquake.LocationType\"));\n\n\t\tConfig.hailstormBroadcast = c.getBoolean(\"Events.Hailstorm.Broadcast\");\n\t\tif(c.getBoolean(\"Events.Hailstorm.Enabled\")) Config.availableEvents.add(HailstormEvent.class);\n\t\tif(LocationType.valueOf(c.getString(\"Events.Hailstorm.LocationType\")) != null) Config.hailstormLocationType = LocationType.valueOf(c.getString(\"Events.Hailstorm.LocationType\"));\n\n\t\tConfig.grbBroadcast = c.getBoolean(\"Events.GRB.Broadcast\");\n\t\tif(c.getBoolean(\"Events.GRB.Enabled\")) Config.availableEvents.add(GRBEvent.class);\n\t\tif(LocationType.valueOf(c.getString(\"Events.GRB.LocationType\")) != null) Config.grbLocationType = LocationType.valueOf(c.getString(\"Events.GRB.LocationType\"));\n\t\t\n\t\tif(c.isList(\"Events.Global.Worlds\")) {\n\t\t\tfor(String s : c.getStringList(\"Events.Global.Worlds\")) {\n\t\t\t\tWorld w = Bukkit.getWorld(s);\n\t\t\t\tif(w != null) {\n\t\t\t\t\tConfig.availableWorlds.add(w);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tif(Config.availableWorlds.size() == 0) Config.availableWorlds.add(Bukkit.getWorlds().get(0));\n\t}", "title": "" }, { "docid": "ca76e0748ff46776614877125000f541", "score": "0.5770633", "text": "public List<Consumer<T>> getEventConsumers() {\n return eventConsumers;\n }", "title": "" }, { "docid": "d93e5dce20b738561295ea5faa284210", "score": "0.576385", "text": "public ArrayList<Event> getAllEvents() {\n\t\treturn new ArrayList<>(allEvents);\n\t}", "title": "" }, { "docid": "ed27528cc0ac029184600462787a6b81", "score": "0.5737174", "text": "public EventSetDescriptor[] getEventSetDescriptors() {\n/* 75 */ return null;\n/* */ }", "title": "" }, { "docid": "507b89def46fdf8d957cb5aab5f5b042", "score": "0.5708826", "text": "private Collection getConfigurationCollection() {\n\t\treturn getConfigurationMap().values();\n//\t\tif (configList == null) {\n//\t\t\tconfigList = new ArrayList();\n//\t\t}\n//\t\treturn configList;\n\t}", "title": "" }, { "docid": "8a6e2132417756d39ff4367755072de3", "score": "0.56904495", "text": "public java.util.List<com.papaizaa.streaming_example.generated_pb.Events.Event> getEventsList() {\n return events_;\n }", "title": "" }, { "docid": "a5f8e47b3d5d8e0ae6c1568bed5516ab", "score": "0.56761515", "text": "java.util.List<? extends com.papaizaa.streaming_example.generated_pb.Events.EventOrBuilder>\n getEventsOrBuilderList();", "title": "" }, { "docid": "2f4e626e37299257eb7183baa5af6ce5", "score": "0.56638813", "text": "public java.util.List<com.papaizaa.streaming_example.generated_pb.Events.Event.Builder>\n getEventsBuilderList() {\n return getEventsFieldBuilder().getBuilderList();\n }", "title": "" }, { "docid": "685504a33be952c7a7071c74aacd0053", "score": "0.56460935", "text": "public java.util.List<Event35> getEvents() {\n return events;\n }", "title": "" }, { "docid": "85b09797ba186547b4fe8770352b02b2", "score": "0.56292677", "text": "public java.util.List<Event35> getEvents() {\n return events;\n }", "title": "" }, { "docid": "a38d2d12442f131d32101ae42888eac9", "score": "0.56002295", "text": "public List<Event> getFutureEvents() {\n List<Event> events = new ArrayList<Event>();\n\n try {\n // Execute SQL\n String sql = SELECT_ALL_ATTRIBUTES + \" WHERE e.`end_date_time` > NOW() ORDER BY e.`start_date_time`\";\n Statement statement = connection.createStatement();\n ResultSet results = statement.executeQuery(sql);\n\n // Store results in List of Events\n while (results.next()) {\n Event event = new Event();\n setAttributes(event, results);\n events.add(event);\n }\n\n } catch (SQLException e) {\n e.printStackTrace();\n } catch (IllegalArgumentException e) {\n e.printStackTrace();\n }\n return events;\n }", "title": "" }, { "docid": "4019c8ccf359cefbe0df9bdc89942118", "score": "0.55918455", "text": "public java.util.List<wishful_framework.Messages.Event> getInEventsList() {\n return inEvents_;\n }", "title": "" }, { "docid": "6cf40840eaed0ad6a9ed62964b4bd3d7", "score": "0.5587627", "text": "public Slot[] configProps()\n {\n ArrayList acc = new ArrayList(slots.length);\n for (int i=0; i<slots.length; ++i)\n if (slots[i].isConfig()) acc.add(slots[i]);\n return (Slot[])acc.toArray(new Slot[acc.size()]);\n }", "title": "" }, { "docid": "77076c74eb56caba6378a93e3d224f5f", "score": "0.55819887", "text": "public Vector getConfigurations() {\r\n String clientInfos[] = client.getClientInfos();\r\n Vector configs = new Vector();\r\n for (int i=0; i<clientInfos.length; i++) {\r\n configs.addElement(clientInfos[i]);\r\n }\r\n return configs;\r\n }", "title": "" }, { "docid": "3af51a636279bf63b52dfb8c91842195", "score": "0.5572105", "text": "public List<Event> allEvents() {\n return eventRepository.findAll();\n }", "title": "" }, { "docid": "a7aab44b26459a960cd9504ec8462d37", "score": "0.5549407", "text": "public java.util.List<wishful_framework.Messages.Event.Builder> \n getInEventsBuilderList() {\n return getInEventsFieldBuilder().getBuilderList();\n }", "title": "" }, { "docid": "85ed02e29accf375d2db7175567900f2", "score": "0.5547861", "text": "public List<Event> allEvents() {\n \treturn eventRepo.findAll();\n }", "title": "" }, { "docid": "13b721cdc2d34874f422cdeb94ddba77", "score": "0.5534108", "text": "public java.util.List<AttributeConfig> getAttributeConfigs() {\n return attributeConfigs;\n }", "title": "" }, { "docid": "50f7a67fe9c4d217d9cbf3a987588bdf", "score": "0.5522612", "text": "public\t\t\tPath\t\t\t\t\t\tgetAllEventsPath()\t\t\t\t\t{ return allEventsPath; }", "title": "" }, { "docid": "509fa877c50ac37d169082dc22654856", "score": "0.5504788", "text": "public ArrayList<String> getEvents();", "title": "" }, { "docid": "bd9f8f3c0a38308cf9c8175b77dde54c", "score": "0.5486764", "text": "java.util.List<wishful_framework.Messages.Event> \n getInEventsList();", "title": "" }, { "docid": "c1fe824b9aaf7e1b2c7c251cbcb7644a", "score": "0.5482782", "text": "public ArrayList<Event> getFutureEvents(){\n\n\t\tArrayList<Event> output = new ArrayList<>();\n\t\tfor (Event event: allEvents){\n\t\t\tif (event.checkStartAfter(LocalDateTime.now()) ){ output.add(event);\t}\n\t\t}\n\n\t\treturn output;\n\t}", "title": "" }, { "docid": "f367f115454c6e804c3fc8afe06cb8e0", "score": "0.54727995", "text": "public java.util.List<? extends wishful_framework.Messages.EventOrBuilder> \n getInEventsOrBuilderList() {\n return inEvents_;\n }", "title": "" }, { "docid": "9cc7b09972477a150e0cae2f73449b62", "score": "0.54684967", "text": "List<Event> listAvailableEvents();", "title": "" }, { "docid": "9a80d6328edceaa63f3ea9b049e3c772", "score": "0.5468189", "text": "Set<ServiceDiscoveryConfig> getAll();", "title": "" }, { "docid": "7bed87149c0527a38ab30670dd3a7f60", "score": "0.5454996", "text": "Set<CommandConfigFactoryDTO> getCommandConfigFactories();", "title": "" }, { "docid": "9ded748741dea46ac2233bab5fc5eb65", "score": "0.54499245", "text": "public List<EventModel> getAllEvent()\n {\n return (List<EventModel>) Datastore.query((new EventModelMeta())).asList();\n }", "title": "" }, { "docid": "f024dfdc3327f93c6f8a9ef0ed859646", "score": "0.5448809", "text": "public java.util.List<? extends com.papaizaa.streaming_example.generated_pb.Events.EventOrBuilder>\n getEventsOrBuilderList() {\n return events_;\n }", "title": "" }, { "docid": "f50edcb2e18a0e243f518a8d6c56a189", "score": "0.5436246", "text": "public byte[] getConfig() {\n return config;\n }", "title": "" }, { "docid": "f37a75c7927fb39f3c6a7599f752e657", "score": "0.5430457", "text": "public static List<Event> getEvents() {\n\t\tbeginTransaction();\n\t\t//List<Event> rows = EventDAO.getRows();\n\t\tcloseTransaction();\n\n\t\treturn null;\n\t}", "title": "" }, { "docid": "42a464637c19a013e696efe88c401048", "score": "0.54253954", "text": "default public String[] getEventKeys() {\n return new String [] {};\n }", "title": "" }, { "docid": "fea1cdeec1f058b0d7511967ccf575fe", "score": "0.54075754", "text": "public List<Event> getAllEvents() {\n List<Event> events = new ArrayList<Event>();\n\n try {\n // Execute SQL statement - no parameters, so no need to prepare\n String sql = SELECT_ALL_ATTRIBUTES;\n Statement statement = connection.createStatement();\n ResultSet results = statement.executeQuery(sql);\n\n // Store results in List of Events\n while (results.next()) {\n Event event = new Event();\n setAttributes(event, results);\n events.add(event);\n }\n\n } catch (SQLException e) {\n e.printStackTrace();\n } catch (IllegalArgumentException e) {\n e.printStackTrace();\n }\n return events;\n }", "title": "" }, { "docid": "8f092c4c5bb92a75142049b45852830b", "score": "0.5405261", "text": "public java.util.List<JobEventDetails> getEvents() {\n return events;\n }", "title": "" }, { "docid": "07de9d7c6285e3cfe41eb1417aa14105", "score": "0.54004174", "text": "java.util.List<? extends wishful_framework.Messages.EventOrBuilder> \n getInEventsOrBuilderList();", "title": "" }, { "docid": "3f5ac5818b85cbefc8baec8bd965aff2", "score": "0.5397774", "text": "List<Event> listAllEvents();", "title": "" }, { "docid": "d4b9ade857df7a1e5d5145a9a3ed6adb", "score": "0.5387396", "text": "protected abstract ArrayList<E> getInitialEvents();", "title": "" }, { "docid": "082fd96c8f04a4f996fe274ed06a1af4", "score": "0.53851813", "text": "public interface EventExporter {\n\n\t/**\n\t * Returns a set of EventConfig created.\n\t * \n\t * @param eventBuilderFactory Factory used when creating EventConfig objects.\n\t * \n\t * @return Set of events created.\n\t * \n\t * @throws IOException if exception occurs.\n\t **/\n public abstract Set<EventConfig> exportEvents(EventBuilderFactory eventBuilderFactory) throws IOException;\n\n}", "title": "" }, { "docid": "764635312a115c458e49bf38c4e5771f", "score": "0.5384289", "text": "public List<String> getConfigParams() {\n return configParams;\n }", "title": "" }, { "docid": "5b6ee31b5bd8e20851a453d7f5fdea35", "score": "0.5352684", "text": "public Configurations configurations() {\n if (this.configurations == null) {\n this.configurations = new ConfigurationsImpl(clientObject.getConfigurations(), this);\n }\n return configurations;\n }", "title": "" }, { "docid": "bcce1469e6ec88b619657ba36a9c6740", "score": "0.5352612", "text": "@Parameters\n\tpublic static Collection<Node[]> data() {\n\t\tList<Node[]> configElements = new ArrayList<Node[]>();\n\t\txmlPlatformConfigs = new XMLPlatformConfigurations(getConfigFileName());\n\t\tNodeList xmlConfigList = xmlPlatformConfigs.getElementsByTagName(\"config\");\n\t\tif (xmlConfigList != null) {\n\t\t\tfor (int xmlConfigNum = 0; xmlConfigNum < xmlConfigList.getLength(); xmlConfigNum++) {\n\t\t\t\tNode[] n = (Node[])Array.newInstance(Node.class, 1);\n\t\t\t\tn[0] = xmlConfigList.item(xmlConfigNum);\n\t\t\t\tconfigElements.add(n);\n\t\t\t}\n\t\t}\n\t\treturn configElements;\n\t}", "title": "" }, { "docid": "010094e28c015283f3ee6f3198733857", "score": "0.53501624", "text": "public static Properties getConfig() {\n Properties config = new Properties();\n config.put(StreamsConfig.APPLICATION_ID_CONFIG, KafkaStreamsConfig.APPLICATION_ID);\n config.put(StreamsConfig.BOOTSTRAP_SERVERS_CONFIG, KafkaStreamsConfig.BOOTSTRAP_SERVERS);\n config.put(ConsumerConfig.AUTO_OFFSET_RESET_CONFIG, KafkaStreamsConfig.AUTO_OFFSET_RESET);\n config.put(StreamsConfig.DEFAULT_KEY_SERDE_CLASS_CONFIG, Serdes.String().getClass());\n config.put(StreamsConfig.DEFAULT_VALUE_SERDE_CLASS_CONFIG, ObjectSerde.TransactionSerde.class);\n\n // Disable the cache to demonstrate all the \"steps\" involved in the transformation - not recommended in prod\n config.put(StreamsConfig.CACHE_MAX_BYTES_BUFFERING_CONFIG, KafkaStreamsConfig.CACHE_DISABLED);\n\n // Enable \"exactly once\" behaviour\n config.put(StreamsConfig.PROCESSING_GUARANTEE_CONFIG, StreamsConfig.EXACTLY_ONCE);\n\n return config;\n }", "title": "" }, { "docid": "415644dce085cd92939eb1ae573466ac", "score": "0.5334059", "text": "public List<Evento> getEventos() {\r\n\t\treturn eventos;\r\n\t}", "title": "" }, { "docid": "37c412676af9353e9a9c99222b3ba76b", "score": "0.53337616", "text": "public String getEvents()\n {\n }", "title": "" }, { "docid": "1100d8a69a708b9669232671f3b325bf", "score": "0.5315634", "text": "public ConfigComposite getConfig() {\n\t\t\n\t\treturn config;\n\t}", "title": "" }, { "docid": "d22eac98d480ce65ded5a368aef633a3", "score": "0.52978164", "text": "public Collection<GISConfiguration> getALL()\r\n {\n return gisConfigurationStore.getALL();\r\n }", "title": "" }, { "docid": "97dabe0a69cf2e13c50699fbeaac9468", "score": "0.52971506", "text": "public List<ASVConfig> getPathConfigs() {\n List<ASVConfig> pathConfigs = new ArrayList<>();\n pathConfigs.add(startConfig);\n\n List<Point2D> pointsOnPath = allPointsOnPath(startConfig.getASVPositions().get(0), nextPoint);\n\n for (int i = 0; i < pointsOnPath.size(); i++) {\n pathConfigs.addAll(oneStepConfigs(pathConfigs.get(pathConfigs.size()-1), pointsOnPath.get(i)));\n }\n\n return pathConfigs;\n }", "title": "" }, { "docid": "4076823fa05db47283c8c41ffda49001", "score": "0.5295514", "text": "public ArrayList<String> removeEvents() {\n\t\tArrayList<String> temp = new ArrayList<String>();\n\t\ttemp.addAll(events);\n\t\tevents.removeAll(events);\n\t\treturn temp;\n\t}", "title": "" }, { "docid": "f397949f48ae33e1b6f74a8350bb4edc", "score": "0.52708906", "text": "public static List<Event> findAll() {\n\t\treturn getPersistence().findAll();\n\t}", "title": "" }, { "docid": "da1eee2a072c11512d193ce27bcede87", "score": "0.5266764", "text": "public com.sforce.soap.enterprise.QueryResult getEvents() {\n return events;\n }", "title": "" }, { "docid": "54267dfb51e3b823b466da4d6b79633b", "score": "0.5265038", "text": "List<RuleEvent> generateEvents();", "title": "" }, { "docid": "269594380d67ddbb20d718bb8fc442ff", "score": "0.525877", "text": "public List<Configuration> getConfigurations() {\r\n\t\tList<Configuration> configurations = new ArrayList<>();\r\n\t\tconfigurations.add(getConfigurationStateMedium());\r\n\t\treturn configurations;\r\n\t}", "title": "" }, { "docid": "3fdbdd7801c1cda0a6055837c23c5453", "score": "0.52572054", "text": "public List<LogEvent> consumeEvents() {\n\t\tsynchronized (events) {\n\t\t\tList<LogEvent> result = getEvents();\n\t\t\tclear();\n\t\t\treturn result;\n\t\t}\n\t}", "title": "" }, { "docid": "b1459b684e05f259dfbbcb82dfc7db02", "score": "0.5253813", "text": "ArrayList<Object> getEventData();", "title": "" }, { "docid": "1dfe191450a00137371a6cca63c616f7", "score": "0.52516127", "text": "public List<ConfigurationDescriptor> getConfigDescriptors() throws LibusbException{\r\n\t\tif(configDesc == null){\r\n\t\t\tconfigDesc = new ArrayList<ConfigurationDescriptor>();\r\n\t\t}\r\n\t\tfor(int i = 0; i < getNofConfigurations(); i++){\r\n\t\t\tif(configDesc.size()-1 < i ){\r\n\t\t\t\tconfigDesc.add(i, new ConfigurationDescriptor(device, i));\r\n\t\t\t\tSystem.out.println(\"Config \" + i + \" added.\");\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\tconfigDesc.set(i, new ConfigurationDescriptor(device, i));\r\n//\t\t\t\tSystem.out.println(\"Config \" + i + \" updated.\");\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn configDesc;\r\n\t}", "title": "" }, { "docid": "809aa4c8f68507de1c2e64cd9fa683fe", "score": "0.52505064", "text": "public java.util.List<wishful_framework.Messages.Event> getOutEventsList() {\n if (outEventsBuilder_ == null) {\n return java.util.Collections.unmodifiableList(outEvents_);\n } else {\n return outEventsBuilder_.getMessageList();\n }\n }", "title": "" }, { "docid": "5822525e179dcbaadbd9a5ef0d25f8c7", "score": "0.5245905", "text": "public synchronized ChannelConfiguration[] getChannelConfigurations() {\n Cache cache = ServiceLocator.findService(CacheManager.class).getCache();\n ClientSingleElementCacheKey key = new ClientSingleElementCacheKey();\n if (cache == null) {\n return cacheProv.load(key);\n }\n return cache.get(key, cacheProv);\n }", "title": "" }, { "docid": "b91e4028f004bd5edbaaca1fac0c3e7e", "score": "0.52414197", "text": "public List<EventBlock> getEventBlock () {\n\t\treturn eb;\n\t}", "title": "" }, { "docid": "6c21152f1ccfb9d4fb4f389c276e001f", "score": "0.5224911", "text": "public List<IEventWriter> getWriterEvents();", "title": "" }, { "docid": "1cd03dff1ea0e9d597c2eb5f96d0c3d3", "score": "0.5217961", "text": "public EventType [] getEventsOfInterest();", "title": "" }, { "docid": "70f1dc239b9343d769ffa6dea770819a", "score": "0.5213209", "text": "public List<Runnable> getEventsCopy() {\r\n checkThread();\r\n return Collections.unmodifiableList(new LinkedList<Runnable>(events));\r\n }", "title": "" }, { "docid": "e61830de69d70d73f9202765ecb07489", "score": "0.5210432", "text": "@java.lang.Override\n public yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfigSet5_0_enterpriseOrBuilder getConfigOrBuilder() {\n return getConfig();\n }", "title": "" }, { "docid": "c16f777210c6a06dda7ad95ea7149b41", "score": "0.52100515", "text": "@Override\n public List<Map<String, String>> taskConfigs(int maxTasks) {\n\n log.info(\"Setting task configurations for {} workers.\", maxTasks);\n final List<Map<String, String>> configs = new ArrayList<>(maxTasks);\n for (int i = 0; i < maxTasks; ++i) {\n HashMap<String, String> taskConfig = new HashMap<>();\n connectorConfig.addConfigsToMap(taskConfig);\n configs.add(taskConfig);\n }\n return configs;\n }", "title": "" }, { "docid": "f51910502299a277c8cca0e8a16fbbc8", "score": "0.5201306", "text": "public wishful_framework.Messages.EventOrBuilder getInEventsOrBuilder(\n int index) {\n return inEvents_.get(index);\n }", "title": "" }, { "docid": "035b91f41ad8cdf2310ea4ddab546a4e", "score": "0.52005297", "text": "public void setEvents(List<IEventWriter> events);", "title": "" }, { "docid": "6e0775b2f87b0e89bece3b4ea82a252b", "score": "0.51992714", "text": "@Generated\n public List<EventModel> getEvents() {\n if (events == null) {\n __throwIfDetached();\n EventModelDao targetDao = daoSession.getEventModelDao();\n List<EventModel> eventsNew = targetDao._queryDisciplineModel_Events(idLink);\n synchronized (this) {\n if(events == null) {\n events = eventsNew;\n }\n }\n }\n return events;\n }", "title": "" }, { "docid": "1cdd9e8bd784675f0dc989de8725ac88", "score": "0.5198543", "text": "public ArrayList<getEvents> getCustomEvents() {\n\t\ttry {\n\t\t\tqb = new QueryBuilder();\n\t\t\tgson = new Gson();\n\n\t\t\tResultSet rs = qb.selectFrom(\"events\")\n\t\t\t\t\t.where(\"customevent\", \"=\", \"1\").ExecuteQuery();\n\t\t\tArrayList<getEvents> eventList = new ArrayList<getEvents>();\n\t\t\twhile (rs.next()) {\n\t\t\t\tgetEvents cusevent = new getEvents();\n\t\t\t\tcusevent.setId(rs.getString(\"id\"));\n\t\t\t\tcusevent.setType(rs.getString(\"type\"));\n\t\t\t\tcusevent.setLocation(rs.getString(\"location\"));\n\t\t\t\tcusevent.setStart(rs.getString(\"start\"));\n\t\t\t\tcusevent.setEnd(rs.getString(\"end\"));\n\t\t\t\tcusevent.setCreatedby(rs.getString(\"createdby\"));\n\t\t\t\tcusevent.setCustomevent(rs.getString(\"customevent\"));\n\t\t\t\teventList.add(cusevent);\n\t\t\t}\n\t\t\trs.close();\n\t\t\treturn eventList;\n\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn null;\n\t}", "title": "" }, { "docid": "0eb0ae010d2c9fc3b1044fe637380cce", "score": "0.5198521", "text": "public List<SOAClientConfig> getClientConfigs() {\r\n\t\t\treturn clientConfigs;\r\n\t\t}", "title": "" }, { "docid": "4044f8a81defac9bde63e99e75d09342", "score": "0.51960427", "text": "public List<PluginsConfig> getConfigs() {\n if (pluginsConfigs == null) {\n try {\n pluginsConfigs = loadConfigs();\n } catch (Exception e) {\n logger.error(\"Could not load the configuration: \", e);\n throw new PluginsSystemException(e);\n }\n }\n return pluginsConfigs;\n }", "title": "" } ]
f7c811f7e4ca9ad0a6214173c04e486a
Specifies action when the disarming button will be pressed (stay)
[ { "docid": "6cf3a73af56c5005874b2eaa0b170fd8", "score": "0.0", "text": "public void handleEvent(CancelEvent event) {\r\n\r\n\t}", "title": "" } ]
[ { "docid": "ef0f16a930f78a7743d4a1a9b9d779bb", "score": "0.62677073", "text": "public void disable(){\n pawnbutton.setOnAction(null); \n\t}", "title": "" }, { "docid": "001198c5694370ea1d6ff60087ed54d5", "score": "0.6206623", "text": "public void actionPerformed(ActionEvent c) {\n\t\t\tDanceoff.startGame();\n\t\t}", "title": "" }, { "docid": "edfc6dfc50ef01bd535e7f7974dade2d", "score": "0.61696637", "text": "@Override\n public boolean onActionDown(MotionEvent event) {\n return false;\n }", "title": "" }, { "docid": "de56912b64b795cfe63a4d619ddbfe95", "score": "0.6141942", "text": "public void resetAction();", "title": "" }, { "docid": "de56912b64b795cfe63a4d619ddbfe95", "score": "0.6141942", "text": "public void resetAction();", "title": "" }, { "docid": "597d2825c380fbf17bb97c2842aeecfc", "score": "0.61242265", "text": "@Override\r\n\t\t\tpublic void actionFinish() {\n\t\t\t\tisInDing = false;\r\n\t\t\t\tsetAction(CatAction.Move.getName());\r\n\t\t\t}", "title": "" }, { "docid": "597d2825c380fbf17bb97c2842aeecfc", "score": "0.61242265", "text": "@Override\r\n\t\t\tpublic void actionFinish() {\n\t\t\t\tisInDing = false;\r\n\t\t\t\tsetAction(CatAction.Move.getName());\r\n\t\t\t}", "title": "" }, { "docid": "c1f5da0dc934ec5efacb7c1ce59984fd", "score": "0.6122724", "text": "public void pressButton() throws MachineWarning{\n throw new MachineWarning(\"Invalid Action as in empty state\");\n }", "title": "" }, { "docid": "2f84d93548272da57de921b735425a6d", "score": "0.61210835", "text": "public void stop() {\n clientLeaveButton.setOnAction(null);\n clientSendButton.setOnAction(null);\n }", "title": "" }, { "docid": "57dff4c3ab3eed1c6afd1217bbfbc93c", "score": "0.6082417", "text": "public void actionPerformed(ActionEvent a) {\n\t\t\tDanceoff.displayInstructions();\n\t\t}", "title": "" }, { "docid": "33a0bca0758f95a2c3dcf6065805d9f2", "score": "0.60599715", "text": "public boolean makeAction(){\n tickClock-=1;\n if(tickClock==0){\n this.deactivate();\n return true;\n }\n return false;\n }", "title": "" }, { "docid": "98145cd28901cd182d42ad12e4bbc641", "score": "0.6011745", "text": "public void liftDown() {\n lift.setPower(0.8); // start the lift\n \n //wait while the button hasn't been pressed and the program hasn't been stopped\n while(!touch.isPressed() && !isStopRequested) {\n \n }\n lift.setPower(0); // stop the lift\n }", "title": "" }, { "docid": "db941f5840638f28651ce17b85edc0c3", "score": "0.5942465", "text": "@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\n\t\tJButton buttonPressed = (JButton) e.getSource();\n\t\tif (!moleButton.equals(buttonPressed)) {\n\t\t\tspeak(\"Your a waste of oxygen!\");\n\n\t\t} else {\n\t\t\tdestroy();\n\t\t\twhack++;\n\t\t}\n\t\tif(whack == 10) {\n\t\t\tendGame(time, whack);\n\t\t}\n\t}", "title": "" }, { "docid": "2c6dee739bed06c0d1d8914842a88e9f", "score": "0.5898639", "text": "public void alarm() {\n removeGameState(\"StartGame\");\n }", "title": "" }, { "docid": "e155f5265f1e64f5e3dfca2060ffc612", "score": "0.58934164", "text": "@Override\n public void actionPerformed(ActionEvent e) {\n String ac = e.getActionCommand();\n if (ac.equals(\"reset\")) { setSim(sim); }\n }", "title": "" }, { "docid": "f8685f01bdcc3b8fdc1791f26ac53a08", "score": "0.5890304", "text": "@Override\n public boolean isActionDecrementedFromPlayer() {\n return true;\n }", "title": "" }, { "docid": "e1a0c640679992a987a49f6b6673d993", "score": "0.58460116", "text": "@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\t\tMain.getGameBoard().getPhaseIndicator().EndTurn();\n\t}", "title": "" }, { "docid": "7995103fa2a13d63d09ffc575a2448d5", "score": "0.5841511", "text": "void disableActionButtons();", "title": "" }, { "docid": "7ee0238cc81bade8ad4c11110b37a2a3", "score": "0.583725", "text": "@Override\n\t\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\t\tplayerDiMenu.delMonster(playerDiMenu.listMonster.get(iterasi));\n\t\t\t\t\t\t\tplayerDiMenu.defaultMonster=null;\n\t\t\t\t\t\t\tGV.player = playerDiMenu;\n\t\t\t\t\t\t}", "title": "" }, { "docid": "ab42122b17fa9634b373fd9a10a795fc", "score": "0.5834629", "text": "public void actionPerformed(ActionEvent e) {\n newSim.swapCard(Sim.menuPan);\n }", "title": "" }, { "docid": "b4c22390a3439e1b4f396310f19eb163", "score": "0.58291495", "text": "@Override\n\tpublic void excute() {\n\t\tmTv.turnOff();\n\t}", "title": "" }, { "docid": "af1626732688197c9d413aac667f73ba", "score": "0.58262396", "text": "public void turnLightOff() {\n\t\tthis.inAction = false;\n\t}", "title": "" }, { "docid": "bbb6cb54f1a2f2039c7390a189d9adad", "score": "0.5816963", "text": "public void resetActions();", "title": "" }, { "docid": "5b60144b0b8bed5803fbb7c4c3ed777d", "score": "0.5812742", "text": "public void handleNewAttack(){\n boardView.getAttackButton().setEnabled(false);\n }", "title": "" }, { "docid": "8f20c971870d5c32f0e557c3a61c8aeb", "score": "0.5812367", "text": "@Override\n\t\tpublic void onClick(View arg0) {\n\t\t\tmydismiss.mDismiss(true);\n\t\t}", "title": "" }, { "docid": "abc7d5815e7a2e6de1e348357947e23e", "score": "0.5768919", "text": "void onDismiss(boolean gameFound);", "title": "" }, { "docid": "62619f98515fe1f472ae5fe1f348f304", "score": "0.5768009", "text": "@Override\r\n\tpublic void novo(ActionEvent actionEvent) {\n\t\t\r\n\t}", "title": "" }, { "docid": "3016136079e4f4cc60b86dbf2d9897bb", "score": "0.5746796", "text": "@Override\n\tpublic void clickAction(int x, int y) {\n\t\tResources.getInstance().clickButton.play();\n\t\tScreenManager.getInstance().getGameScreen().getGameStatus().unpause(); \n\t}", "title": "" }, { "docid": "bf68fe57c42023c007f9ee2ce5e3a0a3", "score": "0.5740665", "text": "@Override\n\tpublic Action chooseAction() {\n\t\tthis.bidsManager.ourTurnHasArrived();\n\t\treturn super.chooseAction();\n\t}", "title": "" }, { "docid": "9a4fbb7bc0776b894b47b04985ec0e4e", "score": "0.5725787", "text": "public void clickActionResend() {\n\t\tactionResend.click();\n\t}", "title": "" }, { "docid": "02d1ae2010ecb4b7b44954747d1ce0fb", "score": "0.57154596", "text": "public void actionPerformed(ActionEvent e) {\n\t\t\t\tSystem.exit(NORMAL);\r\n\t\t\t}", "title": "" }, { "docid": "3e384d8da405724b7e9e65821b00a847", "score": "0.5713698", "text": "@Override\n public boolean buttonDown(Controller controller, int buttonCode) {\n return false;\n }", "title": "" }, { "docid": "ce73754bc4e7b346e2bf3a4131146750", "score": "0.57128435", "text": "public void turnOff(Activity activity);", "title": "" }, { "docid": "1a95875e343f63532c418f002a24df1c", "score": "0.57110804", "text": "void onIgnoreAction();", "title": "" }, { "docid": "97eec0bf75b95311bd947e738df9a831", "score": "0.5710737", "text": "public void onClickStop(View view)\n {\n is_running = false;\n }", "title": "" }, { "docid": "cdde3f7081c6520c4ba83f6a86eae50e", "score": "0.57041335", "text": "@Override\r\n\tpublic void unhoveredAction() {\n\t\t\r\n\t}", "title": "" }, { "docid": "c318cbae8a7ccf518e257e6a2fc6c98c", "score": "0.5701817", "text": "private void NormalAction( ActionEvent event ) \r\n\t { \r\n\t\t Normal.setEnabled(false); //disables Normal Button\r\n\t\t Day.setVisible(true); //Shows the date\r\n\t\t Name.setVisible(false); //Hides name of patient, or label\r\n\t\t Info.setVisible(false); //hides info and info2\r\n\t\t Info2.setVisible(false);\r\n\t\t Date dNow = new Date( );\r\n\t SimpleDateFormat ft = \r\n\t new SimpleDateFormat (\"hh:mm a zzz\"); \r\n\t\t Time.setVisible(true); //shows the time\r\n\t\t Time.setText(ft.format(dNow)); //this actually writes the current time\r\n\t\t Temp.setVisible(true); //shows the temperature label\r\n\t\t XRay.setEnabled(true); //enables XRay button\r\n\t\t Suggestion.setVisible(false); //Hides suggestion label and XRay Synop\r\n\t\t XraySynop.setVisible(false);\r\n\t\t Medical.setEnabled(true); //Enables Medical button\r\n\t\t Modes.setBackground(new Color(50,50,150)); //Change colors of both lenses\r\n\t\t Lens2.setBackground(new Color(50,50,150));\r\n\t }", "title": "" }, { "docid": "c251df16c5d5b7124fc843ab70599f90", "score": "0.5691826", "text": "void cancelAction(){\n action = null;\n setPartOfBody(null);\n comment = \"\";\n successful = 0;\n if(getColorOfCard() != null && getColorOfCard().equals(ColorOfCard.CZERWONA)){\n player = null;\n }\n if(action instanceof Swap){\n player = null;\n reservePlayer = null;\n }\n colorOfCard = null;\n successOfShot = null;\n }", "title": "" }, { "docid": "d1eb63b17d4fea1baa1c76cde5e51104", "score": "0.56827015", "text": "StateAction getStay();", "title": "" }, { "docid": "60e0c3bbb1fc455af492bf6944e10946", "score": "0.5681275", "text": "@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\td.setVisible(false);\r\n\t\t\t}", "title": "" }, { "docid": "53742ecdcb46f4d0181110a72786390a", "score": "0.5665923", "text": "@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tcancleButtonActionPerformed();\n\t\t\t}", "title": "" }, { "docid": "eab320a6d36c505530b4ac1fcb5300c9", "score": "0.56469786", "text": "@Override\n public void actionPerformed(ActionEvent e) {\n /* Remove the screen from display. */\n if (e.getActionCommand().equals(\"OK\")) {\n displayScr.setVisible(false);\n }\n }", "title": "" }, { "docid": "7a5f805ad8d5f2436f10486510eccf5f", "score": "0.5637459", "text": "public void action()\r\n\t{\n\t\tsuppress = false; //when to stop the action method.\r\n\t\tLCD.clear();\r\n\t\tLCD.drawString(\"hit wall\",0, 0); // printing hitwall on the screen\r\n\t\tpilot.stop(); // robot stops moving\r\n\t\tButton.waitForAnyPress(); // waiting for button being pressed \r\n\t\tSystem.exit(0);\t// program exit\r\n\t}", "title": "" }, { "docid": "5805e33b0a47fdae296d7c9b6c76e097", "score": "0.56372046", "text": "public void hideAction()\r\n\t{\r\n\t\tStage stage = (Stage) main_btn_hide.getScene().getWindow();\r\n\t\tstage.setIconified(true);\r\n\t}", "title": "" }, { "docid": "5d67ea488b2d16e04b84fb7783af39fb", "score": "0.56265795", "text": "@Override\n\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\tsv=\"Dream\";\n\t\t}", "title": "" }, { "docid": "10cc8a578bdca573fbc7a7a6484c3abf", "score": "0.5616122", "text": "@Override\n\tpublic void handleActionDown(int eventX, int eventY) {\n\t\t\n\t}", "title": "" }, { "docid": "9556ec3941f96d13bb42af98b4cf7e2d", "score": "0.5610133", "text": "@Override\r\n\tpublic void action() {\n\t\t_suppressed = false;\r\n\r\n\t \r\n\t LCD.drawString(\"Avoid \",0,1);\r\n\t \r\n\t BumperCar.pilot.travel(-10, false );\r\n\t BumperCar.show(BumperCar.poseProvider.getPose());\r\n\t \r\n\t while (!_suppressed && BumperCar.pilot.isMoving())\r\n\t {\r\n\t \tThread.yield(); //don't exit till suppressed\r\n\t }\r\n\t \r\n \tBumperCar.pilot.rotate(180, false);\r\n \tBumperCar.show(BumperCar.poseProvider.getPose());\r\n \tflag = false;\r\n\r\n \t\r\n\t while (!_suppressed && BumperCar.pilot.isMoving())\r\n\t {\r\n\t \tThread.yield(); //don't exit till suppressed\r\n\t }\r\n\t\t\r\n\t BumperCar.pilot.stop();\r\n\t}", "title": "" }, { "docid": "52fd3f3b2a0f45218a90384b3656e763", "score": "0.5609254", "text": "public void onClickAbort();", "title": "" }, { "docid": "af605296677c51588d5d58ba455ef6ee", "score": "0.5598297", "text": "@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\t\tif(e.getSource() == easyBtn) {\n\t\t\t//EASY MODE\n\t\t\tthis.dispose();\n\t\t\tnew GameView(10);\n\t\t} else if (e.getSource() == mediumBtn) {\n\t\t\t//MEDIUM MODE\n\t\t\tthis.dispose();\n\t\t\tnew GameView(15);\n\t\t} else if (e.getSource() == hardBtn) {\n\t\t\t//HARD MODE\n\t\t\tthis.dispose();\n\t\t\tnew GameView(20);\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "27c89e99391bb0a29048c6fdd195c18c", "score": "0.5598024", "text": "@Override\n\tpublic void actionPerformed(ActionEvent ev) {\n\t\tCytoPanelState curState = desktop.getCytoPanel(position).getState();\n\n\t\tif (curState == CytoPanelState.HIDE)\n\t\t\tdesktop.getCytoPanel(position).setState(CytoPanelState.DOCK);\n\t\telse\n\t\t\tdesktop.getCytoPanel(position).setState(CytoPanelState.HIDE);\n\t}", "title": "" }, { "docid": "abe086170da5c707c5a1459bc3b2aa8c", "score": "0.5585608", "text": "public void actionPerformed(ActionEvent e) {\n\t\t\t\tint toggleValue = getToggleValues();\n\t\t\t\tkacPC.depositInstruction(toggleValue);\n\t\t\t}", "title": "" }, { "docid": "dbe2168f996ef4175dfffab0af3e231b", "score": "0.5583178", "text": "@Override\n public void actionPerformed(ActionEvent e) { // Turn the action performed into a variable for usage\n System.exit(0); // Shutdown the porogram\n }", "title": "" }, { "docid": "60a851d6d46937caeb985fac7dc9e760", "score": "0.5568091", "text": "public abstract void actionReleased(InputEventInfo ev);", "title": "" }, { "docid": "96c1bfc86e065bb0c3ef9ee0b9030f44", "score": "0.5562978", "text": "public void setAction(int value) {\n this.action = value;\n }", "title": "" }, { "docid": "fbcf3f8c7d4bd2bb5b797c6a9f0baf69", "score": "0.55564874", "text": "@Override\n public void basicActionPlayed(){\n Action.TAKE_RESOURCE.enabled = false;\n Action.BUY_CARD.enabled = false;\n Action.ACTIVATE_PRODUCTION.enabled = false;\n }", "title": "" }, { "docid": "c7c0d8ba4277150e4ce754cef8f7d859", "score": "0.55564684", "text": "public void onClickReset(View view)\n {\n is_running = false;\n sec = 0;\n }", "title": "" }, { "docid": "194982a40bf8b69663ef8b4292b05dcc", "score": "0.5547039", "text": "void revokeAction(final long action) {\r\n _action = ~(~(_action) | action);\r\n }", "title": "" }, { "docid": "2e885164e2da58868d8518d76934a2cd", "score": "0.55464506", "text": "void disarm(String alarmType,String pin);", "title": "" }, { "docid": "12fb447659021d7bcb1253fcad965746", "score": "0.55460995", "text": "@Override\n\tpublic void resetActions() {\n\t\t\n\t}", "title": "" }, { "docid": "ad3a675be9f1f6e3d11d8785b3614c55", "score": "0.55433196", "text": "public void action() {\n onColour = !onColour; // we either moved onto colour, or off of colour so update state appropriately\n if (onColour && onColourAction!=null) {\n onColourAction.action();\n suppressAction = onColourAction;\n }\n else if (!onColour && offColourAction!=null) {\n offColourAction.action();\n suppressAction = offColourAction;\n }\n }", "title": "" }, { "docid": "d14cd1acb967acf7f6691e9c3bab9229", "score": "0.5541052", "text": "public void commandAction(Command c, Displayable d)\n {\n parent.instructionsBack();\n }", "title": "" }, { "docid": "162218877d841f4c246f34d68d75fe61", "score": "0.55397624", "text": "@Override\n public boolean onActionMove(MotionEvent event) {\n return false;\n }", "title": "" }, { "docid": "d8673468077dfdca4a72bb4f13e0cd1e", "score": "0.55367404", "text": "@Override\n\t\t\tpublic void handle(ActionEvent arg0) {\n\t\t\t\tString signal = \"unblock card please\";\n \t JMS.sendQueueMessage(\"block\", signal);\n\n\n\t\t\t}", "title": "" }, { "docid": "d7182354e38bd24be664375fb3c02eef", "score": "0.5526712", "text": "@Override\n\tpublic void turnOff() {\n\t\t\n\t}", "title": "" }, { "docid": "724e43d1cc3f9fd53c8f96771f46c675", "score": "0.5514921", "text": "@Override\r\n\t\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\t\tout.println(\"ANSWER QUESTION D\");\r\n\t\t\t\t}", "title": "" }, { "docid": "36fd4750dad1201665df8572aead0f03", "score": "0.55106336", "text": "public void confirmProduction(ActionEvent actionEvent) {\n actionEvent.consume();\n Platform.runLater(()->setChoice(1));\n }", "title": "" }, { "docid": "527526e4714ee40e0afbcd44042226a8", "score": "0.5509218", "text": "@Override\n\tpublic void actionPerformed(ActionEvent arg0) {\n\t\tString a=arg0.getActionCommand();\n\t\tswitch(a){\n\t\tcase \"Eliminar\":\n\t\t\tpa.eliminar(num);\n\t\t\tbreak;\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "163bfd943e0d0b6341818752c800161c", "score": "0.5498224", "text": "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tendButtonClicked();\n\t\t\t\troll_btn.enable();\n\t\t\t\tboard.deselectLastTile();\n\t\t\t}", "title": "" }, { "docid": "e42e04e06e475df89e09ccc4c3a24707", "score": "0.54926455", "text": "@Override\n\t\t\tpublic void turnOff() {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "b4af1ad3f8ac81c5a0c1499956b08544", "score": "0.5489324", "text": "@FXML protected void handleStopAction(ActionEvent event) {\n\n organizeMyMusic.stopPlaying();\n nowPlaying.setText(\"Now Playing:\");\n }", "title": "" }, { "docid": "66eb41187901576794e5b4b020887118", "score": "0.5486233", "text": "@Override\n public void clicked(com.badlogic.gdx.scenes.scene2d.InputEvent event, float x, float y) {\n Sounds.play(ID.BUTTON);\n if (GameObj.state == GameObj.ACTIVE) {\n GameObj.get().gamePause();\n gamePause();\n }\n }", "title": "" }, { "docid": "3f65edf90218d00c9c0c8bfdd95d571f", "score": "0.5478875", "text": "@Override\n\tpublic void performAction() {\n\t\tif(performedAction==Action.delete)\n\t\t{\n\t\tremoveGift();\n\t\t}\n\t\telse if (performedAction==Action.comment)\n\t\t{\n\t\tsetComment(isInappropriate, isObscene);\n\t\t}\n\t}", "title": "" }, { "docid": "b1860ea251649d00596ad64cc19f0ec8", "score": "0.5478635", "text": "@Override\n\tpublic void healthisbad() {\n\t\tmac.setState(mac.getDown());\n\t\tSystem.out.print(\"You are in Down state\");\n\t}", "title": "" }, { "docid": "b690813c31789072ff4eb4cbfed3164b", "score": "0.5476022", "text": "public void stay(){\n\t\tif(isPowered()){\n\t\t\t\tsystemStatus = 8;\n\t\t\t\tMainDemo.sensorController.disableAllSensors();\n\t\t\t\tMainDemo.alarmController.powerOff();\n\t\t\t\t\n\t\t\t\tsetDisplayAway(false);\n\t\t\t\tsetArmedLED(false);\n\t\t\t\tif(isReady){\n\t\t\t\t\tsetDisplayStay(true);\n\t\t\t\t\tsetDisplayNotReady(false);\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tsetDisplayStay(false);\n\t\t\t\t\tsetDisplayNotReady(true);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tsetDisplayShortMessage1(\"Stay\");\n\t\t\t\tsetDisplayShortMessage2(\"\");\n\t\t}\n\t}", "title": "" }, { "docid": "a51d166347c46d3b6e568f8ce09ffab2", "score": "0.54740685", "text": "@Override\n public boolean onActionPointerDown(MotionEvent event) {\n return false;\n }", "title": "" }, { "docid": "7956dcf14cc9f8c66946cb05eace30a9", "score": "0.5473338", "text": "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\ttry {\n\t\t\t\t\tmBleService.stopBTbgService();\n\t\t\t\t} catch (BLEServiceExcpetion e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tchangeButtonState(mBleService.isRunningService());\n\t\t\t}", "title": "" }, { "docid": "1d923f39d6440026263b7bc815aded7d", "score": "0.5467962", "text": "public void conveyorOff(){\n this.conveyor.set(0);\n }", "title": "" }, { "docid": "de7853a62cd44870081559ef54e4dc67", "score": "0.5464868", "text": "@Override\n public boolean onActionUp(MotionEvent event) {\n return false;\n }", "title": "" }, { "docid": "14e711256aa61cf7ead7caf9c43bec6b", "score": "0.5461395", "text": "@Override\r\n\t\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\t\t setVisible(false); \r\n\t\t\t\t}", "title": "" }, { "docid": "8be7ebbf9bbcdbfb21fbc7d310339930", "score": "0.5455682", "text": "@Override\r\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tsetcountoff_off();\r\n\t\t\t}", "title": "" }, { "docid": "4fdebc68023816644353e9807d44736d", "score": "0.545325", "text": "private void negButton() {\n\t\tnegButt.setOnMouseClicked(e -> {\n\t\t\tsub.negative();\n\t\t\tnewImage();\n\n\t\t});\n\t}", "title": "" }, { "docid": "c629e92696606e78ef1c369f348ced77", "score": "0.54527736", "text": "public void resetPendingAction() {\n this.mPendingAction = 0;\n }", "title": "" }, { "docid": "f39ecc23eba91c9997cf4a07052bc14a", "score": "0.5452555", "text": "public void resetActionConfirmed() {\r\n this.actionConfirmed = false;\r\n }", "title": "" }, { "docid": "105293323dbd20d16aa4387112f2c4fc", "score": "0.5452195", "text": "public void keyReleased(KeyEvent e) {\n\n action = false; //Presiono flecha arriba\n\n }", "title": "" }, { "docid": "9375c1c0ca3c6b9354e4bc7e7583ecae", "score": "0.5449997", "text": "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tfinish();\n\t\t\t\toverridePendingTransition(R.anim.slide_stay,R.anim.slide_out);\n\t\t\t}", "title": "" }, { "docid": "d85cb51fad91767943a334f3e2591729", "score": "0.5446395", "text": "public void rightSoftButtonPressed(String label) {\n //System.out.println(\"Dilaog.rightSoftButtonPressed(): \" + label);\n \tif (label == null) return;\n \t// If listener doesn't handle it, treat it as a \"BACK\" press.\n \t// (A \"no\" could mean either: take a particular action and go back,\n \t// or else take no action and go back... it's up to the listener...\n \t// if the listener doesn't handle, we assume it's just a \"back\").\n \tif (!listener.handleEvent(new Event(this, Event.ITEM_DESELECTED, rightSoft))) {\n\t\t\tif (label.equals(Community.CANCEL) || label.equals(Community.BACK)\n\t\t\t\t\t|| label.equals(Community.NO)) \n\t\t\t{\n\t \t\tcommunity.switchToView( Community.BACK);\n\t\t\t}\n \t}\n }", "title": "" }, { "docid": "dc7ad97bd91bada624fb7e8a450c9486", "score": "0.54442453", "text": "public void closeClickAction() {\n paneBehind.effectProperty().setValue(Utils.getEmptyEffect());\n fireEvent(new KorEvents.PingerEvent(KorEvents.PingerEvent.EXIT));\n stage.close();\n }", "title": "" }, { "docid": "b4c92d5a39172d1c3ca1bf43cbf31eed", "score": "0.54441667", "text": "@Override\n protected void exitState() {\n setSafeModeAlarm();\n }", "title": "" }, { "docid": "b4c92d5a39172d1c3ca1bf43cbf31eed", "score": "0.54441667", "text": "@Override\n protected void exitState() {\n setSafeModeAlarm();\n }", "title": "" }, { "docid": "069bcdb2f8518dd7f0ef7ef23c0afb27", "score": "0.54406077", "text": "@Override\n public void onPress() {\n if (!toggled) {\n enable();\n } else if (!Hydon.SETTINGS.HELD_PERSPECTIVE) {\n disable();\n }\n }", "title": "" }, { "docid": "a38dbaa8472f1afa308342dd87ab9387", "score": "0.54402894", "text": "@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tif(!spatk2.isSelected()) {\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tdoDamageTo(false, Integer.parseInt(enemyATKPW.getText()));\r\n\t\t\t\t\t}catch (NumberFormatException e) {\r\n\t\t\t\t\t\tJOptionPane.showMessageDialog(null, enemyATKPW.getText()+\" is not a number\", \"Dumbass\", JOptionPane.ERROR_MESSAGE);\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t}else {\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\r\n\t\t\t\t\tdoSpecialDamageTo(false, Integer.parseInt(enemyATKPW.getText()));\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t}catch (NumberFormatException e) {\r\n\t\t\t\t\t\tJOptionPane.showMessageDialog(null, enemyATKPW.getText()+\" is not a number\", \"Dumbass\", JOptionPane.ERROR_MESSAGE);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}", "title": "" }, { "docid": "e13a649614ab4b6f1b0903798c24834e", "score": "0.54359746", "text": "public void doStop() {\r\n btnStart.setText(\"Start\"); \r\n btnStart.setStyle(\"-fx-background-color: #00ff00\");\r\n btnChoose.setDisable(false);\r\n tfDirectory.setDisable(false);\r\n }", "title": "" }, { "docid": "0bf552d451a10349cf2f4be09301c46c", "score": "0.5431499", "text": "public void resetButton(java.awt.event.ActionEvent evt) {\n setStartStop(false);\n if (steppable != null) steppable.reset();\n\n visualizationPanel.repaint();\n }", "title": "" }, { "docid": "1e9e220755526770aa27cf28873c4a96", "score": "0.54304993", "text": "@Override\n public void onClick(View v){\n finish();\n overridePendingTransition(R.anim.no_change, R.anim.slide_down);\n }", "title": "" }, { "docid": "711c2c213c4958ab84354524c1bb5fc9", "score": "0.542036", "text": "public void remouteAction(ActionEvent event) throws IOException {\n }", "title": "" }, { "docid": "e5e5c36bec938948884cc91fbf6ae709", "score": "0.54134", "text": "@Override\n public void onClick(View v) {\n Snackbar.make(layoutRoot, R.string.are_you_sure, Snackbar.LENGTH_LONG).setAction(R.string.yes,\n new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n gameView.clearGameArea();\n startTime();\n }\n }).show();\n }", "title": "" }, { "docid": "157fab6c5fd093b63aaa8923d5610b79", "score": "0.54121727", "text": "@Override\n\tpublic void onClick(View arg0) {\n\t\tsuper.onClick(arg0);\n\t\targ0.setEnabled(false);\n\t\tUIHelper.jump(WelActivity.this, MainActivity.class);\n\t\tfinish();\n\t}", "title": "" }, { "docid": "291f9d8f3f3d45c3bf88c37514653aa7", "score": "0.5412052", "text": "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tSystem.exit(0);\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "373894acc106397bb0569a0cd9e9ca1a", "score": "0.54086447", "text": "@Override\n\t\tpublic void actionPerformed(ActionEvent e) {\n\n\t\t\tSystem.exit(0);\t\n\t\t}", "title": "" }, { "docid": "9169b99e0bc5ec7c0666243a41a98eda", "score": "0.5407488", "text": "public void clicked() {\n\t\tisOn = !isOn;\n\t\tif (!isOn) {\n\t\t\tsetImage(1);\n\t\t\tkeys.removeAll(keys);\n\t\t\tsetText(\"OFF\");\n\t\t} else\n\t\t\tsetText(\"\");\n\t\t\tsetImage(0);\n\t}", "title": "" }, { "docid": "a5bb470453cdc4d4d689ea1d2ad02d0c", "score": "0.5406505", "text": "@Override\r\n\tpublic void delete(ActionEvent ev) {\n\t\t\r\n\t}", "title": "" } ]
25197b4cf814864ecd440f23b9149cb3
TODO Autogenerated method stub
[ { "docid": "3611e7f66b8704c6c7c6c1610a8b48bc", "score": "0.0", "text": "@Override\n\tpublic void afterScript(String script, WebDriver driver) {\n\t\t\n\t}", "title": "" } ]
[ { "docid": "ef1b6c3f597a66c59960d73eadee6f25", "score": "0.6904447", "text": "private void apparence()\n\t\t{\n\n\t\t}", "title": "" }, { "docid": "4862518dedb9e169c3cc620e5ebe04c5", "score": "0.6696056", "text": "@Override\r\n\tpublic void atura() {\n\t\t\r\n\t}", "title": "" }, { "docid": "651ef6275f1a33ed6582a1599cab78d2", "score": "0.66211534", "text": "@Override\n\tpublic void bekle() {\n\t\t\n\t}", "title": "" }, { "docid": "0b5b11f4251ace8b3d0f5ead186f7beb", "score": "0.65677965", "text": "@Override\n\tpublic void comer() {\n\t\t\n\t}", "title": "" }, { "docid": "0b5b11f4251ace8b3d0f5ead186f7beb", "score": "0.65677965", "text": "@Override\n\tpublic void comer() {\n\t\t\n\t}", "title": "" }, { "docid": "c56ced5e9768caa7a88a0e86dc1d02eb", "score": "0.6557507", "text": "@Override\n\tpublic void pintate() {\n\t\t\n\t}", "title": "" }, { "docid": "534c466f09845319b9edaf959a891c09", "score": "0.6546559", "text": "@Override\r\n\tpublic void debriyaj() {\n\t\t\r\n\t}", "title": "" }, { "docid": "c2f383f280f298416bf45e72c374ecfa", "score": "0.64127725", "text": "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "title": "" }, { "docid": "b62a7c8e0bb1090171742c543bf4b253", "score": "0.63762105", "text": "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "title": "" }, { "docid": "b4d7f671f527efc3e048a88ada2fe816", "score": "0.6362821", "text": "@Override\n\tpublic void 말한다() {\n\t\t\n\t}", "title": "" }, { "docid": "b4d7f671f527efc3e048a88ada2fe816", "score": "0.6362821", "text": "@Override\n\tpublic void 말한다() {\n\t\t\n\t}", "title": "" }, { "docid": "b4d7f671f527efc3e048a88ada2fe816", "score": "0.6362821", "text": "@Override\n\tpublic void 말한다() {\n\t\t\n\t}", "title": "" }, { "docid": "b4d7f671f527efc3e048a88ada2fe816", "score": "0.6362821", "text": "@Override\n\tpublic void 말한다() {\n\t\t\n\t}", "title": "" }, { "docid": "df89b968807fade64158ed6c7401bc7a", "score": "0.62550694", "text": "@Override\r\n\tpublic void afficher() {\n\t\t\r\n\t}", "title": "" }, { "docid": "761f5db0b07474bff2090f23a6693efb", "score": "0.6211042", "text": "private void Prodto() {\n\n\t}", "title": "" }, { "docid": "74578344538dd194907dffc0406cacac", "score": "0.6166714", "text": "@Override\n public void suicide() {\n \n }", "title": "" }, { "docid": "10ead2e988bf977cb8edb2bacf974891", "score": "0.61546874", "text": "@Override\n\tprotected void init() {\n\t\t\n\t}", "title": "" }, { "docid": "a2392cc71aaf87bc730f13f37ecdb439", "score": "0.6153736", "text": "private void apparence()\r\n\t\t{\r\n\t\t//Rien\r\n\t\t}", "title": "" }, { "docid": "db51ad8e6f15ad35a767d84e1e1eda68", "score": "0.61275035", "text": "@Override\n\t\t\tpublic void cry() {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "23f3a7415a3f7463e8a1124d06cf4cf2", "score": "0.609125", "text": "@Override\n\tpublic void valide() {\n\t\t\n\t}", "title": "" }, { "docid": "e24a2515146ce17481b567e14f6d3258", "score": "0.6075012", "text": "public void retrievecart() {\n\t\t\t\r\n\t\t}", "title": "" }, { "docid": "fba36b6a112c0dbc3dd5aa61fe730a40", "score": "0.60609394", "text": "@Override\n\tpublic void subir() {\n\t\t\n\t}", "title": "" }, { "docid": "5c8e848472fb111129ff96ea7e3eea3d", "score": "0.605578", "text": "@Override\n public void pintar() {\n \n }", "title": "" }, { "docid": "280c1f1bfe3582788f566eafe40085dd", "score": "0.60448366", "text": "@Override\n \tpublic void init() {\n \t\t\n \t}", "title": "" }, { "docid": "5f1811a241e41ead4415ec767e77c63d", "score": "0.6023245", "text": "@Override\n\tprotected void init() {\n\n\t}", "title": "" }, { "docid": "2ba22ff158b6e941041f9460eddd0944", "score": "0.5991409", "text": "@Override\n public void operation() {\n \n }", "title": "" }, { "docid": "afc2a2ef708681a23da24526386fa543", "score": "0.5979341", "text": "@Override\r\n\tpublic void demo4() {\n\t\t\r\n\t}", "title": "" }, { "docid": "951638c11e887c3f81bcc83306f4e413", "score": "0.5957303", "text": "@Override\r\n\tpublic void trunon() {\n\r\n\t}", "title": "" }, { "docid": "03a6fa2a6dc40f30e9f67797ea87ac0e", "score": "0.5950196", "text": "@Override\n\tvoid generate() {\n\t\t\n\t}", "title": "" }, { "docid": "86b315eabc97abef1ea325b454b16656", "score": "0.5934478", "text": "@Override\n\tpublic void veneno() {\n\t\t\n\t}", "title": "" }, { "docid": "4f4340003331db95a2feee0084056a02", "score": "0.59033096", "text": "@Override\n\tprotected void inicializar() {\n\n\t}", "title": "" }, { "docid": "28237d6ae20e1aa35aaca12e05c950c9", "score": "0.5902906", "text": "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "title": "" }, { "docid": "77f859c241fd5e1d997f67c3b890833e", "score": "0.5886342", "text": "@Override\n\tpublic void dormir() {\n\t\t\n\t}", "title": "" }, { "docid": "c16fc3362f80f1c0559c76bf68be5792", "score": "0.58815277", "text": "@Override\n\tpublic void affiche() {\n\t\t\n\t}", "title": "" }, { "docid": "a6c80a6456cfc74acaa16a2f9c3063c5", "score": "0.5881057", "text": "@Override\n\t\n\tprotected void initialize() {\n\t\t\n\t}", "title": "" }, { "docid": "bf75e876384ccbd3516440064d914edb", "score": "0.585407", "text": "@Override\r\n\t\t\tpublic void process() {\n\t\t\t\t\r\n\t\t\t}", "title": "" }, { "docid": "22f2421f5b9cc11d1699c42857b4dfe9", "score": "0.5850562", "text": "protected void mo1582st() {\n }", "title": "" }, { "docid": "7d4da85943fb6a6ba61dac3c9ae538b3", "score": "0.58336115", "text": "@Override\n\tpublic void morir() {\n\t\t\n\t}", "title": "" }, { "docid": "d07c1f5c9d405e36c1ebf9e7e586652e", "score": "0.5830177", "text": "private Solution() {\n /** Not using this function**/\n }", "title": "" }, { "docid": "fab6f4103beb4667b90da1eb3672a4fa", "score": "0.5821835", "text": "@Override\n\tprotected void update() {\n\n\t}", "title": "" }, { "docid": "2be71c02c2e214eecbe2c8bd5dfe8cb0", "score": "0.58195674", "text": "@Override\n\tpublic void fortify() {\n\t\t\n\t}", "title": "" }, { "docid": "4112f041d618773e927eaf69a897467b", "score": "0.5817743", "text": "@Override\r\n\tpublic void tempup() {\n\t\t\r\n\t}", "title": "" }, { "docid": "d1236089c8974701d0acd37b2cad6d5b", "score": "0.5809914", "text": "@Override\n\tpublic void init(){\n\t\t\n\t}", "title": "" }, { "docid": "8d9539007d174aa71cae3fdbfe4952c6", "score": "0.5801801", "text": "@Override \n\tpublic void init() {\n\t}", "title": "" }, { "docid": "5783648f118108797828ca2085091ef9", "score": "0.5793788", "text": "@Override\n protected void initialize() {\n \n }", "title": "" }, { "docid": "bcd5f0b16beb225527894894dcaf774f", "score": "0.5789414", "text": "@Override\n\tprotected void update() {\n\t\t\n\t}", "title": "" }, { "docid": "5243b8d363dba36edfd9e64eb96cc9d5", "score": "0.57880706", "text": "@Override\n public int getStatus() {\n return 0;\n }", "title": "" }, { "docid": "b096eae650ba80789eb6446d859169a3", "score": "0.5776792", "text": "protected void mo1586sx() {\n }", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "17cb0676e79dae45623dcbdd6cf2af58", "score": "0.5773822", "text": "@Override\n\tpublic void update() {\n\t\t// TODO Auto-generated method stub\n\n\t}", "title": "" }, { "docid": "849edaa5bbcc7511e16697ad05c01712", "score": "0.57732296", "text": "@Override\n\tpublic void avanzar() {\n\t\t\n\t}", "title": "" }, { "docid": "6c897821a3b00faa6e582b1c5bd5b3c6", "score": "0.57677484", "text": "@Override\r\n\tpublic void direksiyon() {\n\t\t\r\n\t}", "title": "" }, { "docid": "518a761521ca9f5cb8a8055b32b72cda", "score": "0.57596046", "text": "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "title": "" }, { "docid": "81ea0647fff57e17ec5107049b4dbf8b", "score": "0.57594514", "text": "@Override\n public int size() {\n return 1;\n }", "title": "" }, { "docid": "535ccad74dc29933b6b48fea680ba27c", "score": "0.5755988", "text": "@Override\r\n\tpublic void operacion() {\n\t\t\r\n\t}", "title": "" }, { "docid": "1985dddb6264adc2fb069a687b25f36b", "score": "0.57541007", "text": "@Override\n\tpublic void groom() {\n\t\t\n\t}", "title": "" }, { "docid": "33572cd017818797318a53dbacbc00b9", "score": "0.57530975", "text": "@Override\r\n\t\t\tpublic void initialize() {\n\t\t\t\t\r\n\t\t\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.575025", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.575025", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.575025", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.575025", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.575025", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.575025", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.575025", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "a8b768dae1b52549249069e4d6a9253f", "score": "0.57492036", "text": "@Override\n public int getType() {\n return 0;\n }", "title": "" }, { "docid": "b6c53604ad2f38e9cacf958a442de4cf", "score": "0.57409", "text": "@Override\n\tprotected void initAfterData() {\n\n\t}", "title": "" }, { "docid": "734b1972ec29b58535c294e3962d017d", "score": "0.5736822", "text": "@Override\n\tpublic void generar() {\n\t\t\n\t}", "title": "" }, { "docid": "4f5334e4c63e1b16e38cf957e8576a25", "score": "0.5735921", "text": "@Override\n\tpublic void getHaned() {\n\t\t\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57337177", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57337177", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "a7ae27b45bb1a02a96ba4232264be825", "score": "0.57315516", "text": "@Override\n\tpublic void embarcar() {\n\t\t\n\t}", "title": "" }, { "docid": "c6e40448cb261fef3ee1fc3a1f5373f0", "score": "0.57304126", "text": "@Override\n\tpublic void operation() {\n\t\t\n\t}", "title": "" }, { "docid": "a937c607590931387a357d03c3b0eef4", "score": "0.5715831", "text": "@Override\n\tprotected void initialize() {\n\n\t}", "title": "" }, { "docid": "a937c607590931387a357d03c3b0eef4", "score": "0.5715831", "text": "@Override\n\tprotected void initialize() {\n\n\t}", "title": "" }, { "docid": "a937c607590931387a357d03c3b0eef4", "score": "0.5715831", "text": "@Override\n\tprotected void initialize() {\n\n\t}", "title": "" }, { "docid": "ba3ff1d644c6b502f46e78f3112e984c", "score": "0.57151", "text": "@Override\r\n\tpublic void toss() \r\n\t{\n\t\t\r\n\t}", "title": "" }, { "docid": "a1a79ff63f3eb784a0134fc70f7de913", "score": "0.57141805", "text": "@Override\n\tpublic void initdata() {\n\n\t}", "title": "" }, { "docid": "20aa3abef3af4ea8bcf5e834227be04c", "score": "0.57137775", "text": "@Override\n\tpublic void Pessoa() {\n\t\t\n\t}", "title": "" }, { "docid": "6894ea3aa25d3dee3c3dd8331b9a9cdd", "score": "0.57120746", "text": "@Override\n\t public int correr() {\n\t return 7;\n\t }", "title": "" }, { "docid": "d7405dbb7f385c28de1f97859172342b", "score": "0.5705621", "text": "@Override\n\tpublic void affiche() {\n\t}", "title": "" }, { "docid": "f9fa4d6203b441d4a00a824c3219ddb2", "score": "0.5704342", "text": "@Override\n\tprotected void doOperate() {\n\n\t}", "title": "" }, { "docid": "b2858312446172fa25a799c5367d2043", "score": "0.56896037", "text": "Smelting(){\r\n\r\n\t\t}", "title": "" }, { "docid": "2d9072b54f55f18557f92b99be58ec2f", "score": "0.56886935", "text": "@Override\r\n public String toString() {\n\treturn null;\r\n }", "title": "" }, { "docid": "9f7ae565c79188ee275e5778abe03250", "score": "0.56881124", "text": "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "title": "" }, { "docid": "9f7ae565c79188ee275e5778abe03250", "score": "0.56881124", "text": "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "title": "" }, { "docid": "af5603f291fb4fc9dd83e46e0602225b", "score": "0.56868714", "text": "@Override\r\n\tpublic void demo3() {\n\t\t\r\n\t}", "title": "" }, { "docid": "c937f9289f415cfdd7aefc5d621d0867", "score": "0.56740177", "text": "@Override\n protected void inicializar() {\n }", "title": "" }, { "docid": "e8efac2ee01f452014413fb75d28b3a6", "score": "0.5659524", "text": "@Override\r\n\tpublic void initState() {\r\n\t\t// TODO Auto-generated method stub\r\n\t\t\r\n\t}", "title": "" }, { "docid": "1857996533d34551ac38dd34ec5213a3", "score": "0.56573755", "text": "public void koniecReplikacie() {\n\t\t\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5655942", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5655942", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5655942", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5655942", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" } ]
c4b4a84f14a86325853bfb934cf626b5
Nastavi obrazok vypnuteho zvuku
[ { "docid": "0bb83eb412e1dab1f09d93496c37c226", "score": "0.0", "text": "public void obrazokVypnuty() {\r\n\t\tobrazok.setShape(new ImageShape(\"images\", \"sound-off.png\"));\r\n\t\tobrazok.stamp();\r\n\t}", "title": "" } ]
[ { "docid": "67a3604eb2acbe4d6322a1c80bc685b3", "score": "0.6919957", "text": "public void wypiszNazwe();", "title": "" }, { "docid": "7839d9b18f833d7ad1ccae8536c829da", "score": "0.6667176", "text": "@Override\r\n\tpublic void zielone_swiatlo() {\n\t\t\r\n\t}", "title": "" }, { "docid": "64c917d7400c8811c83645bb9f0a1c03", "score": "0.6593024", "text": "private Karta izberiPotezo() {\n if (this.pricneStih == this.polozaj) {\n // ko pri\"cnem \"stih, lahko odigram poljubno potezo\n return this.roka.izberiNakljucno(this.nakljucniGenerator);\n }\n\n // ugotovim, katera karta je bila v tem \"stihu odvr\"zena prva\n Karta prva = this.stih[this.pricneStih];\n int barvaPrve = prva.vrniBarvo();\n\n // izberem eno od kart ujemajo\"ce barve, \"ce jo imam\n MnozicaKart ujemajoce = this.roka.karteVBarvi(barvaPrve);\n if (!ujemajoce.jePrazna()) {\n return ujemajoce.izberiNakljucno(this.nakljucniGenerator);\n }\n\n // izberem enega od adutov, \"ce ga imam\n MnozicaKart aduti = this.roka.karteVBarvi(Konstante.BARVA_ADUTA);\n if (!aduti.jePrazna()) {\n return aduti.izberiNakljucno(this.nakljucniGenerator);\n }\n\n // nimam niti adutov, zato izberem poljubno karto\n return this.roka.izberiNakljucno(this.nakljucniGenerator);\n }", "title": "" }, { "docid": "86965b16d12c1d1c285d0b5806fe7e84", "score": "0.64792", "text": "protected void izracunajPorabo() {\n\t\t\tporaba = (2*(dokument.size()-ix) + beseda.length());\n\t\t}", "title": "" }, { "docid": "a1718a0736f3cfc0df84040b5fa3804c", "score": "0.64391387", "text": "public void ustawPrzeciwnika(Gracz przeciwnik) {\n this.przeciwnik = przeciwnik;\n }", "title": "" }, { "docid": "c8d4bb5c80fc4eb936ff30bcc866abaa", "score": "0.6319244", "text": "public void vratiPrikaz() {\n\t\t\tpredmeti = pomocni;\n\t\t}", "title": "" }, { "docid": "01362d900596c10cecc80a607cb60bbf", "score": "0.63070077", "text": "public boolean pridajPovolenuNavstevu() {\n if (this.pocetPovolenychNavstevZaMesiac + 1 > MAX_POCET_POVOLENYCH_NAVSTEV_ZA_MESIAC) {\n return false;\n }\n\n\n if (getStupenNebezpecenstva().equals(StupenNebezpecenstva.VYSOKY)) {\n return false;\n }\n\n this.pocetPovolenychNavstevZaMesiac += 1;\n return true;\n\n }", "title": "" }, { "docid": "a4f0287f1afeafc73fe12f0b694d30f1", "score": "0.6268303", "text": "void zacni(Noda zaciatok){\n\t\tmoznosti = zisti_moznosti(zaciatok);\n\t\tzoznam_cielov = new ArrayList<Noda>();\n\t\tfor (int i = 0; i < moznosti.size(); i++) {\n\t\t\tNoda nova = new Noda();\n\t\t\tnova = zaciatok.vytvor_Kopiu(zaciatok);\n\t\t\tnova.setKroky(new ArrayList<Character>());\n\t\t\tnova.zmen_Stav(nova, moznosti.get(i));\n\t\t\tnova.setPred_krok(moznosti.get(i));\n\t\t\trozmer.getTerc().put(nova.spravHash(nova.getStav()), 1);\n\t\t\tnova.getKroky().add(moznosti.get(i));\n\t\t\tzoznam_cielov.add(nova);\n\t\t}\n\t}", "title": "" }, { "docid": "0b1f51f2237b549f705a0b335c7d1c56", "score": "0.6216443", "text": "public void ubaciNaPocetak(int broj) {\n\t\tif(n == 0) throw new RuntimeException(\"Niz je prazan\");\n\t\telse if(niz.length == n) throw new RuntimeException(\"Niz je pun\");\n\t\t\n\t\telse {\n\t\t\t//idemo od nazad i pomeramo u levo\n\t\t\tniz[n++] = niz[n];\n\t\t\tfor(int i = n; i > 0 ; i--) {\n\t\t\t\tniz[i] = niz[i-1];\n\t\t\t}\n\t\t\tniz[0] = broj;\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "eb428640eba7a10238bc04992877fd08", "score": "0.6215698", "text": "public void prelejKyblik(Kyblik cilovy) {\n\n /* init cilovy */\n int cilovyKapacita = cilovy.getKapacita();\n int cilovyAktualne = cilovy.getAktualneVody();\n\n /* init zdrojovy */\n int kolikMuzemeZdrojovy = this.getAktualneVody();\n\n /* vypocitame novy stav cilovyho */\n int novyStavCilovy = cilovyAktualne + kolikMuzemeZdrojovy;\n if ( novyStavCilovy > cilovyKapacita ) novyStavCilovy = cilovyKapacita;\n\n /* vypocitame novy stav zdrojoveho */\n int kolikSeUlilo = novyStavCilovy - cilovyAktualne;\n int novyStavZdrojovy = kolikMuzemeZdrojovy - kolikSeUlilo;\n\n /* nastavime novy obsahy */\n this.setAktualneVody(novyStavZdrojovy);\n cilovy.setAktualneVody(novyStavCilovy);\n\n }", "title": "" }, { "docid": "1b33f221262b488cc252be1b95194874", "score": "0.6215652", "text": "public void przedstawSie() {\n System.out.println(\"Nazywam sie \" + \" \" + imie +\" \" + nazwisko);\n }", "title": "" }, { "docid": "9ce6ae8e5c705ca275c84f3a784c1341", "score": "0.62114465", "text": "void rozsir(){\n\t\tNoda novacik;\n\t\tArrayList<Noda> temp = new ArrayList<Noda>();\n\t\tfor (int i = 0; i < zoznam_cielov.size(); i++) {\n\t\t\tmoznosti = zisti_moznosti(zoznam_cielov.get(i));\n\t\t\t//System.out.println(\"Idem robit tento stav ma tolkoto moznosti\"+moznosti.size());\n\t\t\t//vypis(zoznam_cielov.get(i).getStav());\n\t\t\t//System.out.println(\"Posledny krok je \"+zoznam_cielov.get(i).getPred_krok());\n\t\t\tfor (int j = 0; j < moznosti.size(); j++) {\n\t\t\t\tif(neopakujuSa(moznosti.get(j),zoznam_cielov.get(i).getPred_krok())){\n\t\t\t\t\tnovacik = zoznam_cielov.get(i).vytvor_Kopiu(zoznam_cielov.get(i));\n\t\t\t\t\tnovacik.zmen_Stav(novacik, moznosti.get(j));\n\t\t\t\t\tnovacik.getKroky().add(moznosti.get(j));\n\t\t\t\t\tnovacik.setPred_krok(moznosti.get(j));\n\t\t\t\t\trozmer.getTerc().put(novacik.spravHash(novacik.getStav()), 1);\n\t\t\t\t\ttemp.add(novacik);\n\t\t\t\t\t//vypis(novacik.getStav());\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tzoznam_cielov = temp;\n\t}", "title": "" }, { "docid": "6fc36e2cd4b0b6c30b2de2d00fcc85c3", "score": "0.607241", "text": "public void zznP() {\n zzmR();\n this.zzadG.zznP();\n }", "title": "" }, { "docid": "b4a5dc40dd3b876709890fce3d7923a1", "score": "0.6048038", "text": "public DnevnikZahtjeva() {\n viewId = 0;\n pocetak = 0;\n stranicenje = 3;\n }", "title": "" }, { "docid": "40a41a107fa03a270a78b03d0bcf910d", "score": "0.6036965", "text": "private void ergebnisAuswerten() {\n\n\t}", "title": "" }, { "docid": "649cf495942581b8e2cfe3bee1c6f4c2", "score": "0.60283417", "text": "public String jakieZapotrzebowanie() {\r\n\t\treturn \"Zapotrzebowanie Odbiorcy: \" + zapotrzebowanie;\r\n\t}", "title": "" }, { "docid": "68b6430c47dcbc45a8ed02ea48b33d59", "score": "0.6025041", "text": "@Test\r\n\tpublic void testPobierzInterwencjePrzypisaneDoPojazdu()\r\n\t{\r\n\t\tPojazdManager.initDatabase();\r\n\t\tInterwencjaManager.initDatabase();\r\n\t\tInterwencjaHasPojazdManager.initDatabase();\r\n\t\t\r\n\t\tInterwencjaHasPojazdManager.skasujInterwencjaHasPojazd();\r\n\t\t\r\n\t\tInterwencjaManager.dodajInterwencja(interwencja_1);\r\n\t\tInterwencjaManager.dodajInterwencja(interwencja_2);\r\n\t\tPojazdManager.dodajPojazd(pojazd_1);\r\n\t\tPojazdManager.dodajPojazd(pojazd_2);\r\n\t\t\r\n\t\tassertTrue(InterwencjaHasPojazdManager.dodajPojazdDoInterwencji(interwencja_1,pojazd_1));\r\n\t\tassertTrue(InterwencjaHasPojazdManager.dodajPojazdDoInterwencji(interwencja_1,pojazd_2));\r\n\t\tassertTrue(InterwencjaHasPojazdManager.dodajPojazdDoInterwencji(interwencja_2,pojazd_1));\r\n\t\t\r\n\t\tassertEquals(2,InterwencjaHasPojazdManager.policzInterwencjeDoPojazdu(pojazd_1));\r\n\t}", "title": "" }, { "docid": "8a23e393bb8939a06493288cdf982f24", "score": "0.6013332", "text": "void ustalPromocja() {\n\t\tfor (Towar towar : this.listaZatowarowania.getTowary()) {\n\t\t\tSystem.out.println(\"podaj kwotę promocji dla \" + towar.nazwa + \" w sklepie \" + this.nazwaSklepu);\n\t\t\ttowar.setCenaPromocyjna(BigDecimal.valueOf(5));\n\t\t}\n\t}", "title": "" }, { "docid": "9f7f77d3b5a4b3f2d79b44b48382d1dc", "score": "0.6012681", "text": "public Draha getDrahaVPouzivani() {\n\n\t\t// vytvorim Mapu drah\n\t\tTreeMap<Integer, Draha> drahyTreeMap = new TreeMap<Integer, Draha>();\n\n\t\t// naplnim mapu drah z arraylistu drahoveho systemu. Jako klic pouziju magneticky sever dane drahy\n\t\tfor (Draha draha : drahy) {\n\t\t\tdrahyTreeMap.put(draha.getMagnetickySmer(), draha);\n\t\t}\t\n\t\t\n\t\t// Ted je potreba najit nejsevernejsi drahu a nastavit ji s klicem 0 i 360:\n\t\t// seradim arraylist podle magnetickeho severu\n\t\tCollections.sort(drahy, Draha.DrahaSmerComparator);\n\t\t// prvni potencialni draha smerujici na sever\n\t\tDraha moznaSeverni1 = drahy.get(0);\n\t\t// druha potencialni draha smerujici na sever\n\t\tDraha moznaSeverni2 = drahy.get(drahy.size()-1);\t\t\n\t\t\n\t\t// zjistitm ktera je ta nejseverneji natocena + naleju ji do mapy\n\t\tint c1 = Math.min(0-moznaSeverni1.getMagnetickySmer(), 360-moznaSeverni1.getMagnetickySmer());\t\t\n\t\tint c2 = Math.min(0-moznaSeverni2.getMagnetickySmer(), 360-moznaSeverni2.getMagnetickySmer());\n\t\t\n\t\tif(c1<c2) {\n\t\t\tdrahyTreeMap.put(0, moznaSeverni1);\n\t\t\tdrahyTreeMap.put(360, moznaSeverni1);\n\t\t}\n\t\telse {\n\t\t\tdrahyTreeMap.put(0, moznaSeverni2);\n\t\t\tdrahyTreeMap.put(360, moznaSeverni2);\n\t\t}\t\n\n\t\t// ted hledam v mape nejblizsi hodnotu ke klici\n\t\tint vyse= drahyTreeMap.ceilingKey(pocasi.getVitr().getSmer());\n\t\tint nize= drahyTreeMap.floorKey(pocasi.getVitr().getSmer());\n\n\t\tint nejblizsiKlic = pocasi.getVitr().getSmer() - nize > vyse - pocasi.getVitr().getSmer() ? vyse : nize;\n\n\t\t// z metody vracim drahu, ktera odpovida klici\n\t\treturn drahyTreeMap.get(nejblizsiKlic);\n\t}", "title": "" }, { "docid": "1f7c739c60312609373dd44bd81e22d6", "score": "0.6007878", "text": "public void dodajUcionicu(String boja) {\r\n Ucionica nova = new Ucionica(boja);\r\n if (poslednja == null) {\r\n nova.veza = prva;\r\n prva = nova;\r\n poslednja = nova;\r\n } \r\n else {\r\n poslednja.veza = nova;\r\n poslednja = nova;\r\n }\r\n br++;\r\n }", "title": "" }, { "docid": "c70bd57dc952a2d5b10e50f4d8b97208", "score": "0.5991392", "text": "@Override\n\tprotected void odswiezKontrolki() {\n\n\t}", "title": "" }, { "docid": "6d01e50ad77073937125bb5d0d9ebe61", "score": "0.5991199", "text": "private void poPotrebiPovecaj() {\n if (this.stElementov >= this.elementi.length) {\n // ustvari novo, ve\"cjo tabelo in vanjo skopiraj elemente iz stare\n // tabele\n Object[] stariElementi = this.elementi;\n this.elementi = new Object[2 * stariElementi.length];\n for (int i = 0; i < this.stElementov; i++) {\n this.elementi[i] = stariElementi[i];\n }\n }\n }", "title": "" }, { "docid": "3834d3447eef396b83c4ac5a756b9ffe", "score": "0.59863275", "text": "@Test\r\n\tpublic void testUsunPojazdZInterwencji()\r\n\t{\r\n\t\tPojazdManager.initDatabase();\r\n\t\tInterwencjaManager.initDatabase();\r\n\t\tInterwencjaHasPojazdManager.initDatabase();\r\n\t\t\r\n\t\tInterwencjaHasPojazdManager.skasujInterwencjaHasPojazd();\r\n\t\t\r\n\t\tInterwencjaManager.dodajInterwencja(interwencja_1);\r\n\t\tPojazdManager.dodajPojazd(pojazd_1);\r\n\t\t\r\n\t\tassertTrue(InterwencjaHasPojazdManager.dodajPojazdDoInterwencji(interwencja_1,pojazd_1));\r\n\t\tassertEquals(1,InterwencjaHasPojazdManager.policzInterwencjePojazdy());\r\n\t\tassertTrue(InterwencjaHasPojazdManager.usunPojazdZInterwencji(interwencja_1,pojazd_1));\r\n\t\tassertEquals(0,InterwencjaHasPojazdManager.policzInterwencjePojazdy());\r\n\t}", "title": "" }, { "docid": "31019bdbce1256d2d0847bc3ca0252d6", "score": "0.5980325", "text": "public void amosarPolbo( ){\n System.out.println(\"No almacen hay \"+polbo+\" kg de polbo\");\n }", "title": "" }, { "docid": "d141fd5f49ce5ab984211956a8a2f14f", "score": "0.59776443", "text": "void setZwrocony(){czyZwrocony=true;}", "title": "" }, { "docid": "2e3af6e40acd1a06b3b9966545bbe889", "score": "0.597719", "text": "public void jokaldiaEgin() {\r\n\t\tSystem.out.println(\" \");\r\n\t\tSystem.out.println(\"IA-ren txanda da.\");\r\n\t\tthis.azeriaErabiliDu = false;\r\n\t\tKarta k1 = null,k2 = null,k3 = null,k4 = null, baztertzekoKarta;\r\n\t\t//imprimatuEskua();\r\n\t\tif(!this.getKonbinazioak().konbinazioNormalikAhalDago(getEskukoKartak(),this.arrautzaKop, txandaZenbakia)) {\r\n\t\t\tIterator<Karta> itr = this.getEskukoKartak().getIteradorea();\r\n\t\t\twhile (itr.hasNext()) {\r\n\t\t\t\tk1 = itr.next();\r\n\t\t\t\tk2 = itr.next();\r\n\t\t\t\tk3 = itr.next();\r\n\t\t\t\tk4 = itr.next();\t\t\t\r\n\t\t\t}\r\n\t\t\tbaztertzekoKarta = zerBaztertuCPU(k1, k2, k3, k4);\r\n\t\t\tthis.getEskukoKartak().kenduKartaKartaz(baztertzekoKarta);\t\t\t\t\t\r\n\t\t\tthis.getEskukoKartak().gehituKarta(HasierakoBaraja.getNireHasierakoBaraja().banaketa());\r\n\t\t\t//imprimatuEskua();\r\n\t\t\tSystem.out.println(\"Makinak karta bat baztertu du eta beste bat hartu du.\");\r\n\t\t}else {\r\n\t\t\tif (Konbinazioak.getNireKonbinazioak().getKonbinazioMota() == 1) {//doble oilo\r\n\t\t\t\tthis.getEskukoKartak().kenduKartaKartaz(this.getEskukoKartak().baztertuKartaMotaJakinda(\"Oilo\"));\r\n\t\t\t\tthis.getEskukoKartak().kenduKartaKartaz(this.getEskukoKartak().baztertuKartaMotaJakinda(\"Oilo\"));\r\n\t\t\t\tthis.getEskukoKartak().gehituKarta(HasierakoBaraja.getNireHasierakoBaraja().banaketa());\r\n\t\t\t\tthis.getEskukoKartak().gehituKarta(HasierakoBaraja.getNireHasierakoBaraja().banaketa());\t\t\t\r\n\t\t\t\tthis.puntuak++;\r\n\t\t\t\tthis.arrautzaKop--;\r\n\t\t\t\t//imprimatuEskua();\r\n\t\t\t\tSystem.out.println(\"Makinak bi oilo erabili ditu arrautza bat txita bihurtzeko.\");\r\n\t\t\t\t\r\n\t\t\t}else if (Konbinazioak.getNireKonbinazioak().getKonbinazioMota() == 2) {//oilo oilar habia\r\n\t\t\t\tthis.getEskukoKartak().kenduKartaKartaz(this.getEskukoKartak().baztertuKartaMotaJakinda(\"Oilo\"));\r\n\t\t\t\tthis.getEskukoKartak().kenduKartaKartaz(this.getEskukoKartak().baztertuKartaMotaJakinda(\"Oilar\"));\r\n\t\t\t\tthis.getEskukoKartak().kenduKartaKartaz(this.getEskukoKartak().baztertuKartaMotaJakinda(\"Habia\"));\r\n\t\t\t\tthis.getEskukoKartak().gehituKarta(HasierakoBaraja.getNireHasierakoBaraja().banaketa());\r\n\t\t\t\tthis.getEskukoKartak().gehituKarta(HasierakoBaraja.getNireHasierakoBaraja().banaketa());\r\n\t\t\t\tthis.getEskukoKartak().gehituKarta(HasierakoBaraja.getNireHasierakoBaraja().banaketa());\r\n\t\t\t\tthis.getEskukoArrautzak().gehituArrautza(ListaArrautzaHartzeko.getNireListaArrautzaHartzeko().banaketa());\r\n\t\t\t\tthis.arrautzaKop++;\r\n\t\t\t\t//imprimatuEskua();\r\n\t\t\t\tSystem.out.println(\"Makinak oilo bat, oilar bat eta habia bat erabili ditu arrautza bat hartzeko.\");\r\n\t\t\t\t\r\n\t\t\t}else if (Konbinazioak.getNireKonbinazioak().getKonbinazioMota() == 3){//zorro\r\n\t\t\t\tthis.getEskukoKartak().kenduKartaKartaz(this.getEskukoKartak().baztertuKartaMotaJakinda(\"Azeria\"));\r\n\t\t\t\tthis.getEskukoKartak().gehituKarta(HasierakoBaraja.getNireHasierakoBaraja().banaketa());\t\t\t\t\t\r\n\t\t\t\tthis.azeriaErabiliDu = true;\r\n\t\t\t\tSystem.out.println(\"Makinak azeri bat erabili du zuri arrautza bat lapurtzeko.\");\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t}", "title": "" }, { "docid": "f54695a9fc697fce24d4223302a0a2be", "score": "0.59707075", "text": "public Vrah(int pocetPovolenychNavstevZaMesiac, String cisloVezna, int pocetRokovOdsudenia, StupenNebezpecenstva stupenNebezpecenstva, double zdravotnyStav) {\n super(cisloVezna, pocetRokovOdsudenia, stupenNebezpecenstva, zdravotnyStav);\n\n if (pocetPovolenychNavstevZaMesiac > MAX_POCET_POVOLENYCH_NAVSTEV_ZA_MESIAC) {\n throw new IllegalArgumentException(\"V konstruktore ste zadali vacsi pocet povolenych navstev ako je maximum\");\n }\n \n \n \n this.pocetPovolenychNavstevZaMesiac = pocetPovolenychNavstevZaMesiac;\n \n }", "title": "" }, { "docid": "df8ce3baf640e73476d118105fe17bc8", "score": "0.59586895", "text": "public void nachObenBewegen()\n {\n vertikalBewegen(-20);\n }", "title": "" }, { "docid": "8d4039d65aec94badcdfa78a0c6b4de9", "score": "0.5950983", "text": "public NevSzavazat()\n {\n }", "title": "" }, { "docid": "594d1cb9cc6c4f6807ab25ce030ca054", "score": "0.5947664", "text": "private static void vincitore()\r\n {\r\n partVinte = 1;\r\n partPerse = 0;\r\n }", "title": "" }, { "docid": "fe7963050ddcdbf51914098c2c19f1d0", "score": "0.59407926", "text": "@Test\r\n\tpublic void testSkasujWszystkieDodanePojazdy()\r\n\t{\r\n\t\tPojazdManager.initDatabase();\r\n\t\tInterwencjaManager.initDatabase();\r\n\t\tInterwencjaHasPojazdManager.initDatabase();\r\n\t\t\r\n\t\tInterwencjaHasPojazdManager.skasujInterwencjaHasPojazd();\r\n\t\t\r\n\t\tInterwencjaManager.dodajInterwencja(interwencja_1);\r\n\t\tInterwencjaManager.dodajInterwencja(interwencja_2);\r\n\t\tPojazdManager.dodajPojazd(pojazd_1);\r\n\t\tPojazdManager.dodajPojazd(pojazd_2);\r\n\t\t\r\n\t\tassertTrue(InterwencjaHasPojazdManager.dodajPojazdDoInterwencji(interwencja_1,pojazd_1));\r\n\t\tassertTrue(InterwencjaHasPojazdManager.dodajPojazdDoInterwencji(interwencja_1,pojazd_2));\r\n\t\tassertTrue(InterwencjaHasPojazdManager.dodajPojazdDoInterwencji(interwencja_2,pojazd_1));\r\n\t\tassertTrue(InterwencjaHasPojazdManager.dodajPojazdDoInterwencji(interwencja_2,pojazd_2));\r\n\t\t\r\n\t\tassertEquals(4,InterwencjaHasPojazdManager.policzInterwencjePojazdy());\r\n\t\t\r\n\t\tInterwencjaHasPojazdManager.skasujInterwencjaHasPojazd();\r\n\t\tassertEquals(0,InterwencjaHasPojazdManager.policzInterwencjePojazdy());\r\n\t}", "title": "" }, { "docid": "0a4da837d9b94e015aefb9f2e6a4e1c9", "score": "0.59380597", "text": "public void datuakEguneratu() {\n\r\n\t}", "title": "" }, { "docid": "fedc725e6258843a76ed84cd0d8f0028", "score": "0.59340966", "text": "private boolean peliVoitettu() {\n\t\tfor( Entry<Point,MiinaharavaRuutu> ruutu : this.napit.entrySet() ) {\n\t\t\tif( ! ruutu.getValue().tarkista() ) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "title": "" }, { "docid": "8ce18970e45e0de35f8d2d331f7d759d", "score": "0.59238213", "text": "public abstract zzeh zzcj();", "title": "" }, { "docid": "1a522cb9d5bc26608b89edd89e13802b", "score": "0.5910115", "text": "public Posameznik[] indeksiraj_uporabnike(Gospodinjstvo[] gospodinjstva){\n int st_clanov = 0;\n for(int i = 0; i<gospodinjstva.length; i++){\n st_clanov = st_clanov + gospodinjstva[i].getClanov();\n }\n System.out.println(st_clanov);\n posamezniki = new Posameznik[st_clanov];\n int id = 0;\n for(int i = 0; i<gospodinjstva.length; i++){\n for(int k = 0; k<gospodinjstva[i].getClani_gospodinjstva().length; k++){\n posamezniki[id] = gospodinjstva[i].getClani_gospodinjstva()[k];\n gospodinjstva[i].getClani_gospodinjstva()[k].setId(id);\n if (gospodinjstva[i].getClani_gospodinjstva()[k].isContact_tracing()){\n gospodinjstva[i].getClani_gospodinjstva()[k].setAplikacija_za_sledenje_stikom(new AplikacijaSS(id,this.streznik,gospodinjstva[i].getClani_gospodinjstva()[k]));\n }\n\n gospodinjstva[i].getClani_gospodinjstva()[k].setPogosti_stiki(new Random().ints(0, st_clanov).distinct().limit(20).toArray());\n id++;\n }\n }\n\n return posamezniki;\n\n }", "title": "" }, { "docid": "88e080e1414f35b0418d899951fae3ab", "score": "0.5895881", "text": "@Override\n public void pricetekStiha(int zacetnik) {\n this.pricneStih = zacetnik;\n this.stih[0] = null;\n this.stih[1] = null;\n this.stih[2] = null;\n this.stih[3] = null;\n }", "title": "" }, { "docid": "051a110a999d114c459717346063d154", "score": "0.58919126", "text": "public boolean spravneNaplnen() {\n return (this.aktualneVody == this.cilovyStav);\n }", "title": "" }, { "docid": "54acfd6e785ceb462ea175f96879d8bb", "score": "0.5884893", "text": "public Nowy_pracownik(Zamowienia zam) {\n this.zam = zam;\n initComponents();\n panel_pacownikow.setVisible(false);\n paneledycji.setVisible(false);\n model = (DefaultTableModel) tabelka_pracownikow.getModel();\n }", "title": "" }, { "docid": "7c042e13e702a1e08ae1fcbbb023d266", "score": "0.5883796", "text": "public boolean sprawdzCzyWygrana(){\n if(WYGRYWAJACA_SEKWENCJA.equals(String.valueOf(sprawdzanieOdpowiedzi)))\n return true;\n return false;\n }", "title": "" }, { "docid": "0436847b00ad538996490ed9d58fbe5a", "score": "0.5873706", "text": "public static void main(String[] args) {\n Pracownik janek = new Pracownik();\n janek.imie = \"Jan\";\n janek.nazwisko = \"Kowalski\";\n janek.wiek = 44;\n\n Pracownik karyna = new Pracownik();\n karyna.imie = \"Karyna\";\n karyna.nazwisko = \"Nowak\";\n karyna.wiek = 18;\n\n karyna.wiek=67;\n\n List<Pracownik> pracownicy = new ArrayList<>();\n pracownicy.add(janek);\n pracownicy.add(karyna);\n\n for (Pracownik p:pracownicy) {\n// System.out.println(p);\n p.pobierzDane();\n }\n\n System.out.println(pracownicy.get(1).getWiek());\n\n pracownicy.get(0).setNazwisko(\"Kos\");\n\n //ponizsze uwaza sie za nie najlepsze podejscie\n pracownicy.get(0).nazwisko = \"Jednak-Kloss\";\n\n pracownicy.get(0).setNazwisko(\"A\");\n \n for (Pracownik p:pracownicy) {\n// System.out.println(p);\n p.pobierzDane();\n }\n // stworzyc nowego pracownika parametryzowanym\n //konstruktorem i dodac do listy,\n //wypisac liste\n Pracownik konstruowanyPracownik =\n new Pracownik(\"Mis\",\"Uszatek\",123);\n pracownicy.add(konstruowanyPracownik);\n System.out.println(pracownicy);\n\n pracownicy.add(new Pracownik(\"Dodany\",\"WLocie\",10));\n System.out.println(pracownicy);\n\n Dyrektor dyrektor = new Dyrektor(\"Jarosław\",\"Mewiński\",99,\"PL\");\n\n pracownicy.add(dyrektor);\n System.out.println(pracownicy);\n\n /*List<Dyrektor> dyrektorzy = new ArrayList<>();\n dyrektorzy.add(karyna); tego nie da sie zrobic, bo pracownik nie jest dyrektorem\n\n */\n\n }", "title": "" }, { "docid": "b4eb120b3ab91a8c4ddf7704cd6fadda", "score": "0.5871711", "text": "public void dodaj_przejazd(Przejazd p){\n for(int i=0; i<p.getPrzystanki().size()-1; ++i){\n MyPair pair = new MyPair(p.getPrzystanki().get(i+1).getId(), 1);\n g.get( Math.toIntExact( p.getPrzystanki().get(i).getId() ) ).add( pair );\n }\n\n for(int i=0; i<p.getPrzystanki().size(); ++i){\n for(int j=0; j<p.getPrzystanki().get(i).getStacja().getPrzystanki().size(); ++j){\n if(p.getPrzystanki().get(i).getGodzinaPrzyjazdu().compareTo( p.getPrzystanki().get(i).getStacja().getPrzystanki().get(j).getGodzinaOdjazdu() ) < 0 ){\n MyPair pair = new MyPair(p.getPrzystanki().get(i).getStacja().getPrzystanki().get(j).getId(), 1);\n g.get( Math.toIntExact( p.getPrzystanki().get(i).getId() ) ).add( pair );\n } else if( p.getPrzystanki().get(i).getGodzinaOdjazdu().compareTo( p.getPrzystanki().get(i).getStacja().getPrzystanki().get(j).getGodzinaPrzyjazdu() ) > 0 ){\n MyPair pair = new MyPair(p.getPrzystanki().get(i).getId(), 1);\n g.get( Math.toIntExact( p.getPrzystanki().get(i).getStacja().getPrzystanki().get(j).getId() ) ).add( pair );\n }\n }\n }\n }", "title": "" }, { "docid": "d0c69667ce89b7378f89235434e4286c", "score": "0.58631325", "text": "@Override\n public void hasil(int kokoh, int kuncipj, int bahaya) {\n }", "title": "" }, { "docid": "458673f8d273daff4a4ae44ab7fbda35", "score": "0.5853109", "text": "public void Izvade (){\n System.out.println(\"Kaut ko izvadam\");\n }", "title": "" }, { "docid": "fb8e8f14f20f6e847c181bfdef0de451", "score": "0.58486015", "text": "public void amosarPatacas( ){\n System.out.println(\"No almacen hay \"+patacas+\" kg de patacas\");\n }", "title": "" }, { "docid": "24e4d8d16acf201ed939d9be077d0086", "score": "0.58425546", "text": "public void izpisiKontaktZaId() {\n \tboolean exists = false;\n \tSystem.out.println(\"Izpiši kontakt z ID:\");\n \tint id = izpisIntId();\n \tfor(Kontakt item : seznamKontaktov) {\n\t\t\tif(item.getId() == id) {\t\t\t\t\n\t\t\t\tSystem.out.println(item.toString());\n\t\t\t\texists = true;\n\t\t\t\tbreak;\n\t\t\t}\n \t}\n\t\tif(!exists) {System.out.println(\"ID \" + id + \" ne obstaja.\");}\n \t \t\n }", "title": "" }, { "docid": "be64cd6b12a3a5c1b3f4e5d79c637bfc", "score": "0.58353704", "text": "public static void ZbierzRosliny(Farmer farmer)\n {\n try {\n String wynik = \"Wypisz: \\n\";\n int opcjaWyboru;\n List<Roslina> roslinyDoZbioru = new ArrayList<Roslina>();\n\n\n int iterator = 0;\n for (Roslina roslina : farmer.Farma.Rosliny) {\n if (roslina.obecnytydzien == roslina.czasZbioru) {\n wynik += \"|\" + iterator + \"| \" + roslina.Wypisz()+\"\\n\";\n iterator++;\n roslinyDoZbioru.add(roslina);\n }\n }\n if(iterator==0)\n {\n System.out.println(\"Brak elementow do zebrania\");\n }\n else\n {\n\n mWypisywanie.WypisanieWyboru.szablon(wynik);\n opcjaWyboru = sc.nextInt();\n if(farmer.pieniadze>roslinyDoZbioru.get(opcjaWyboru).cenaZbioru)\n {\n farmer.Farma.ZebraneRosliny.add(roslinyDoZbioru.get(opcjaWyboru).Kopiuj());\n farmer.Farma.Rosliny.remove(roslinyDoZbioru.get(opcjaWyboru));\n System.out.println(\"Pomyslnie zebrano\");\n }\n else\n {\n System.out.println(\"Brak wystarczajacych funduszy\");\n }\n\n }\n }\n catch(Exception ex)\n {\n System.out.println(\"Bledne dane\");\n }\n\n }", "title": "" }, { "docid": "73f9f59a51b974d7883b514bee2ac864", "score": "0.58296436", "text": "public boolean irabaziKonprobaketa(){\n\t\t\r\n\t\tboolean irabazita=false;\r\n\t\tint kont=0;\r\n\t\tfor (int zutabe=0; zutabe < gelaxkaMatrizea.length; zutabe++){\r\n\t\t\tfor (int errenkada=0; errenkada < gelaxkaMatrizea[0].length; errenkada++){\r\n\t\t\t\tif (!gelaxkaMatrizea[zutabe][errenkada].getKlikatuta()){\r\n\t\t\t\t\tkont++;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (kont==minaKop){\r\n\t\t\tirabazita=true;\r\n\t\t}\r\n\t\treturn irabazita;\r\n\t}", "title": "" }, { "docid": "dc8bc34b12a700fbf249a1aa850c7a4a", "score": "0.5828425", "text": "@Override\n public void mesaiBilgisi() {\n \n }", "title": "" }, { "docid": "ee4b593f6443e4cf5e9e0e093c88fef8", "score": "0.5827193", "text": "public boolean sprawdzCzyPelna()\n {\n IMetodaPlansza metoda = new MetodaIteratorPionowy();\n IIteratorPlansza iterator = plansza.Pobierziterator(metoda);\n while(iterator.czyNastepny())\n {\n System.out.println(\"-\"+iterator.obecny()+\"- ITERATOR\");\n if(iterator.obecny()==factoryEmptyChar.getChar()|| iterator.obecny()==factoryNDchar.getChar() )\n {\n return false;\n }\n iterator.nastepny();\n }\n System.out.println(\"---\");\n return true;\n }", "title": "" }, { "docid": "54f654859cbece79f7c38c24729ec699", "score": "0.5822227", "text": "private Naves(){\n\t\tvidas = 10;//Se comienza el juego con diez vidas\n\t}", "title": "" }, { "docid": "f2f4d633df103ab9f38e3a6e4edb825f", "score": "0.5810794", "text": "public void pripoj(SietoveZariadenie roz) throws MaxPocetPripojeni {\n\t\tif (getPocetPripojeni() == 1) {\n\t\t\tthrow new MaxPocetPripojeni();\n\t\t}\n\t}", "title": "" }, { "docid": "58bf00f7e3bcc70979bd96e06c87f6ab", "score": "0.58042544", "text": "public static void WydarzeniaSprawdzanie() {\n\n\n losowyNumerWydarzenia = losowy.nextInt(19); // 19 to granica, wiec losuje od 0 - 18\n\n if (menuGlowneActivity.rok != 1331) {\n Wydarzenia.zlotoNaRok = Gracze.playerHuman.getMieszkancy() * 2; // surowce na rok\n Wydarzenia.mieszkancyNaRok = Gracze.playerHuman.getJedzenie() * 0.18;\n Wydarzenia.jedzienieNaRok = Gracze.playerHuman.getIloscChat() * 3 + Gracze.playerHuman.getIloscFolwarkow() * 7 + Gracze.playerHuman.getIloscDworow() * 20 + Gracze.playerHuman.getIloscPalacow() * 75;\n\n if (losowyNumerWydarzenia == 3 || losowyNumerWydarzenia == 4) {\n\n\n Wydarzenia.susza();\n\n\n surowceZaSurowce = Math.round(dolnaGranicaTargowisko + (gornaGranicaTargowisko - dolnaGranicaTargowisko) * losowy.nextDouble()); // znalezione w internecie - ma dawac losowy double z przedzialu.\n\n\n } else if (losowyNumerWydarzenia == 6 || losowyNumerWydarzenia == 7) {\n\n Wydarzenia.zaraza();\n\n surowceZaSurowce = Math.round(dolnaGranicaTargowisko + (gornaGranicaTargowisko - dolnaGranicaTargowisko) * losowy.nextDouble()); // znalezione w internecie - ma dawac losowy double z przedzialu.\n\n\n\n } else if (losowyNumerWydarzenia == 9 || losowyNumerWydarzenia == 10) {\n\n Wydarzenia.urodzaj();\n\n surowceZaSurowce = Math.round(dolnaGranicaTargowisko + (gornaGranicaTargowisko - dolnaGranicaTargowisko) * losowy.nextDouble()); // znalezione w internecie - ma dawac losowy double z przedzialu.\n\n\n\n } else {\n Wydarzenia.normalnyRok();\n\n surowceZaSurowce = Math.round(dolnaGranicaTargowisko + (gornaGranicaTargowisko - dolnaGranicaTargowisko) * losowy.nextDouble()); // znalezione w internecie - ma dawac losowy double z przedzialu.\n\n }\n }\n\n }", "title": "" }, { "docid": "104b96010b49ad4f2eae43f652d611c3", "score": "0.5799366", "text": "public static void noweJedzenie() {\n\t\tstart: while(true) {\n\t\t\tJedzenie.jedzenieX = losuj.nextInt(szerokosc);\n\t\t\tJedzenie.jedzenieY = losuj.nextInt(wysokosc);\n\n\t\t\tfor(Segment c : waz) {\n\t\t\t\tif(c.x == Jedzenie.jedzenieX && c.y == Jedzenie.jedzenieY) {\n\t\t\t\t\tcontinue start;\n\t\t\t\t}\n\t\t\t}\n\t\t\tJedzenie.kolorjedzenia = losuj.nextInt(5);\n\t\t\tpredkosc++;\n\t\t\tbreak;\n\t\t}\n\t}", "title": "" }, { "docid": "31a401b192ab85255b4f321efb91569f", "score": "0.57993484", "text": "private void asetaVihjeluvut() {\n\t\tfor( int y = 0; y < this.korkeus; y++ ) {\n\t\t\tfor ( int x = 0; x < this.leveys; x++ ) {\n\t\t\t\tPoint sijainti = new Point( x, y );\n\t\t\t\tint vihje = this.laskeNaapureidenMiinat( sijainti );\n\t\t\t\tthis.napit.get( sijainti ).asetaRuudunLuku( vihje );\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "6bf89e0b623ca293f7fa297da63fac07", "score": "0.5798281", "text": "public void wypiszInformacje();", "title": "" }, { "docid": "83c17378086426b4324c4ea8c160e29d", "score": "0.5791311", "text": "@Override\r\n\tpublic void provjeri() {\n\r\n\t}", "title": "" }, { "docid": "c4a500d4b50d6ef578c3e7a87abcf677", "score": "0.57825506", "text": "@Override\r\n\tpublic int tamanio() {\n\t\treturn 0;\r\n\t}", "title": "" }, { "docid": "7102c029caeaee051a19333926521bec", "score": "0.5779624", "text": "public void nachUntenBewegen()\n {\n vertikalBewegen(20);\n }", "title": "" }, { "docid": "7f667498bc99e515556d558f4bc5a419", "score": "0.5774891", "text": "public int getZFreieProvinzen(){\n\treturn Konstanten.PROVINZENANZAHL-meinSpielbrett.getZBesetzteProvinzen();\n}", "title": "" }, { "docid": "13d87378e835ab26ee55047a8111ed75", "score": "0.5773035", "text": "public static void ZasadzRosliny(Farmer farmer)\n {\n try {\n int opcjaWyboru;\n int iterator = 0;\n List<Roslina> roslinyDoPosadzenia = new ArrayList<Roslina>();\n int [] odpowiednikWszystkichRoslin = new int [farmer.Farma.Rosliny.size()];\n for(int i=0; i<farmer.Farma.Rosliny.size(); i++)\n {\n odpowiednikWszystkichRoslin[i] = -1;\n }\n if(farmer.Farma.Rosliny.size()!=0) {\n String wynik =\"Wybierz roline do zasadzenia:\\n\";\n for(int i=0; i<farmer.Farma.Rosliny.size(); i++)\n {\n if(!farmer.Farma.Rosliny.get(i).czyposadzona)\n {\n wynik += \"*\"+iterator+\"* \"+farmer.Farma.Rosliny.get(i).Wypisz()+\"\\n\";\n roslinyDoPosadzenia.add(farmer.Farma.Rosliny.get(i));\n odpowiednikWszystkichRoslin[iterator] =i;\n iterator++;\n }\n }\n mWypisywanie.WypisanieWyboru.szablon(wynik);\n opcjaWyboru = sc.nextInt();\n if(IloscZajetejZiemiUprawnej(farmer)<farmer.IloscZiemi &&\n farmer.tydzien>= roslinyDoPosadzenia.get(opcjaWyboru).okresOd && farmer.tydzien<= roslinyDoPosadzenia.get(opcjaWyboru).okresDo\n && roslinyDoPosadzenia.get(opcjaWyboru).cenaZbioru<farmer.pieniadze)\n {\n farmer.pieniadze -= roslinyDoPosadzenia.get(opcjaWyboru).kosztSadzenia;\n farmer.Farma.Rosliny.get(odpowiednikWszystkichRoslin[opcjaWyboru]).czyposadzona=true;\n System.out.println(\"Roslina zostala posadzona pomyslnie\");\n }\n else\n {\n System.out.println(\"Nie masz wystarczających zasobow\");\n }\n }\n else\n {\n System.out.println(\"Brak roslin do zaszadzenia\");\n }\n\n }\n catch (Exception ex)\n {\n System.out.println(\"Bledne dane\");\n }\n }", "title": "" }, { "docid": "90586632a4af36d51003a1554ebef902", "score": "0.57713956", "text": "public void mo24205Oz() {\n }", "title": "" }, { "docid": "2c4eb2f5721ae11a7afe0d5946842993", "score": "0.5770732", "text": "public Stroj_Nakljucko() {\n this.nakljucniGenerator = new Random();\n this.stih = new Karta[4];\n }", "title": "" }, { "docid": "d2ac1b97fc1426d18892093ec634d13b", "score": "0.57689923", "text": "@Override\n public int pobierzIdBudynku(int idPietra) {\n return 0;\n }", "title": "" }, { "docid": "6f28b858823f2e868517ee6030db6fc1", "score": "0.57683766", "text": "private Kontobewegung() {}", "title": "" }, { "docid": "38297e3bf85baac763250646f172f971", "score": "0.5763419", "text": "public char[] utworzSekwencjeZwrotna(int sprawdzanieDlugosciOdpowiedzi){\n sprawdzanieOdpowiedzi = new char[sprawdzanieDlugosciOdpowiedzi];\n for(int i = 0; i < sprawdzanieOdpowiedzi.length; i++){\n if(poprawnaLiteraIPozycja > 0){\n sprawdzanieOdpowiedzi[i] = 'B';\n poprawnaLiteraIPozycja--;\n }\n else{\n sprawdzanieOdpowiedzi[i] = 'b';\n porawnaTylkoLitera--;\n }\n }\n return sprawdzanieOdpowiedzi;\n }", "title": "" }, { "docid": "ab31c6b5df060f68a2abc27e669dff36", "score": "0.57618743", "text": "@Override\r\n\tpublic ObiektZId pobierzZFormatki(int id) throws Exception\r\n\t{\r\n\t\t/* Walidacja */\r\n\r\n\t\t/* narzut */\r\n\t\tint narzut = Walidator.parsujInteger(textNarzut.getText(), \"Narzut\");\r\n\r\n\t\t/* kredyt kupiecki */\r\n\t\tint kredytKupiecki = MojeUtils.utworzWartoscGrosze(\r\n\t\t\t\ttextKredytKupiecki.getText(), \"Kredyt kupiecki\");\r\n\r\n\t\tif (kredytKupiecki < 1000 * 100)\r\n\t\t\tthrow new UserShowException(\r\n\t\t\t\t\t\"Podano niepoprawny kredyt kupiecki (minimum 1000zł)\");\r\n\t\t/* nip */\r\n\t\tString nip = Walidator.walidujNIP(textNIP.getText());\r\n\t\t/* regon */\r\n\t\tString regon = Walidator.walidujRegon(textRegon.getText());\r\n\r\n\t\t/* numer konta bankowego */\r\n\t\tWalidator.walidujNrKonta(textNrKonta.getText());\r\n\t\t/* kod pocztowy */\r\n\t\tWalidator.walidujKodPocztowy(textKodPocztowy.getText());\r\n\t\treturn new Kontrachent(textNazwa.getText(), textMiasto.getText(),\r\n\t\t\t\ttextKodPocztowy.getText(), textUlica.getText(), narzut, true,\r\n\t\t\t\tnip, regon, textNrKonta.getText(), kredytKupiecki, id,\r\n\t\t\t\t/* długi walutowe */null, null, null, null,\r\n\t\t\t\t/* środki nierozliczone */null, null, null, null);\r\n\t}", "title": "" }, { "docid": "bdd9c8ca717bdd864c78b9d24f212544", "score": "0.5758549", "text": "public int getBrojGlasovaUzdrzani() {\n return brojGlasovaUzdrzani;\n }", "title": "" }, { "docid": "82c03b598a3af32e409642c8f5ba1f3b", "score": "0.57436126", "text": "public void DodajNoweTetromino() {\n aktualnaPozycja = new Pozycja(initialPozycja.x, initialPozycja.y);\n if (nastepneTetromino != null) {\n aktualneTetromino = nastepneTetromino;\n } else {\n aktualneTetromino = types[(int) Math.round(Math.random() * (types.length - 1))];\n\n }\n nastepneTetromino = types[(int) Math.round(Math.random() * (types.length - 1))];\n notifyObserver();\n }", "title": "" }, { "docid": "c6eba4b75fecc4a7af5826d2a584a7df", "score": "0.57431966", "text": "boolean getZwrocony(){return czyZwrocony;}", "title": "" }, { "docid": "2f49792620269e72f378d105b76771d4", "score": "0.5740695", "text": "@Override\n public void hasil(int SirkulasiUdara, int NilaiPencahayaan, int Kelembaban, int Suhu) {\n }", "title": "" }, { "docid": "c18c3127184f8abd7be145ddb9d4c3e6", "score": "0.57381696", "text": "@Override\r\n\tpublic void 온도내리기() {\n\t\t\r\n\t}", "title": "" }, { "docid": "a8fd9dde630b4d8bb14824a4416076b2", "score": "0.5736357", "text": "@Test\r\n\tpublic void testPobierzPojazdyNalezaceDoInterwencji()\r\n\t{\r\n\t\tPojazdManager.initDatabase();\r\n\t\tInterwencjaManager.initDatabase();\r\n\t\tInterwencjaHasPojazdManager.initDatabase();\r\n\t\t\r\n\t\tInterwencjaHasPojazdManager.skasujInterwencjaHasPojazd();\r\n\t\t\r\n\t\tInterwencjaManager.dodajInterwencja(interwencja_1);\r\n\t\tInterwencjaManager.dodajInterwencja(interwencja_2);\r\n\t\tPojazdManager.dodajPojazd(pojazd_1);\r\n\t\tPojazdManager.dodajPojazd(pojazd_2);\r\n\t\t\r\n\t\tassertTrue(InterwencjaHasPojazdManager.dodajPojazdDoInterwencji(interwencja_1,pojazd_1));\r\n\t\tassertTrue(InterwencjaHasPojazdManager.dodajPojazdDoInterwencji(interwencja_1,pojazd_2));\r\n\t\tassertTrue(InterwencjaHasPojazdManager.dodajPojazdDoInterwencji(interwencja_2,pojazd_1));\r\n\t\t\r\n\t\tassertEquals(2,InterwencjaHasPojazdManager.policzPojazdyNaInterwencji(interwencja_1));\r\n\t}", "title": "" }, { "docid": "e159d04c3c28b80696a90e7baad6c273", "score": "0.5733653", "text": "@Override\n public void novaPartija(int polozaj, MnozicaKart karte) {\n this.polozaj = polozaj;\n this.roka = karte;\n }", "title": "" }, { "docid": "affd9b6c660fe32e4dda73905f8d9b33", "score": "0.5728748", "text": "public ZinfoPaket() {\n this.proizvod = \"Nema Podataka\";\n this.brojPaketa = -1L;\n this.numOd = \"\";\n this.numDo = \"\";\n this.idPaket = null;\n this.idProizvod = null;\n }", "title": "" }, { "docid": "df638943d4e14abfc4d6c57de21b56a9", "score": "0.57109505", "text": "public void jatekVegeCheck(){\n\n int kar = j.getMezo().getKarakterek().indexOf(j.getMezo().getAktualis_karakter());\n if(j.jatekLep()){\n j.jatekVege();\n if(j.getMezo().isNyerte()){\n uzenet(\"JÁTÉK VÉGE : NYERTÉL\", 1);\n //valami jatekvege kep, a jatek helyett stb;\n }\n else{\n uzenet(\"JÁTÉK VÉGE : VESZTETTÉL\", 1);\n //valami jatekvege kep, a jatek helyett stb;\n }\n }\n else if(kar != j.getMezo().getKarakterek().indexOf(j.getMezo().getAktualis_karakter())){\n\n if(new Random().nextInt(5) == 1) {\n j.parancsfeldolgozas(\"hovihar 1\", j);\n uzenet(\"HÓVIHAR!\", 2);\n jatekVegeCheck();\n v.getJatekalatt().repaint();\n }\n uzenet(\"Következő játékos!\", 2);\n }\n }", "title": "" }, { "docid": "fffbeb108d7ff773919d86a75865cb9b", "score": "0.570151", "text": "private void usunPozycje(int index)\n {\n zamowieniaRepository.usunPozycje(index);\n }", "title": "" }, { "docid": "1c4565aad9285af7751991faae0fdfe9", "score": "0.56992245", "text": "public OrGubitakVo() {\r\n\t\tsuper();\r\n\t}", "title": "" }, { "docid": "6df5e78da1228a4d57be6d7f27a1db6e", "score": "0.56986296", "text": "@Override\n\tpublic int precioBoleto() {\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "9bb9f4544aa8aec31b7778a70ab8e878", "score": "0.56958133", "text": "public pasien() {\r\n //menuliskan methode kosong \r\n }", "title": "" }, { "docid": "500d434dd4a7236f3a5554bfc6068d23", "score": "0.5692013", "text": "public int getPocetPovolenychNavstevZaMesiac() {\n return this.pocetPovolenychNavstevZaMesiac;\n }", "title": "" }, { "docid": "79a702a1409937a9a2dd8f8167323190", "score": "0.56840134", "text": "@Override\n\tvoid promocja() {\n\n\t}", "title": "" }, { "docid": "aff4fc477235f6c23cf1167bbaf040d9", "score": "0.56673515", "text": "public void ispisiOpremu(String boja) {\r\n Ucionica tek = prva;\r\n while (tek != null && !tek.boja.equals(boja))\r\n tek = tek.veza;\r\n Oprema tekO = tek.oprema;\r\n while (tekO != null) {\r\n Svetovid.out.println(tekO);\r\n tekO = tekO.veza;\r\n }\r\n }", "title": "" }, { "docid": "f2af4231da0a42b13801f97def022fce", "score": "0.5657928", "text": "public void przesunPrawo() {\n int x, y;\n for (Spudlo pud : mAktywny) {\n x = pud.getX();\n y = pud.getY();\n\n pud.setLocation(x + 20, y);\n }\n }", "title": "" }, { "docid": "85f319145da63310d930bfce06f9bca1", "score": "0.56508905", "text": "public void zzkO() {\n }", "title": "" }, { "docid": "85f319145da63310d930bfce06f9bca1", "score": "0.56508905", "text": "public void zzkO() {\n }", "title": "" }, { "docid": "85f319145da63310d930bfce06f9bca1", "score": "0.56508905", "text": "public void zzkO() {\n }", "title": "" }, { "docid": "85f319145da63310d930bfce06f9bca1", "score": "0.56508905", "text": "public void zzkO() {\n }", "title": "" }, { "docid": "17fd6689f796149babd720ab054f8b58", "score": "0.56497204", "text": "@Override\n public String toString() {\n return \"Vrah : cislo vezna = \" + this.getCisloVezna() + \", pocet rokov odsudenia = \" + getPocetRokovOdsudenia() + \", stupen nebezpecenstva = \"\n + getStupenNebezpecenstva().getReprezentacia() + \", zdravotny stav = \" + getZdravotnyStav() + \"%, zdravotny stav po odpykani trestu = \" + getZdraviePoPrepusteni() + \"%, pocet povolenych navstev za mesiac = \"\n + this.pocetPovolenychNavstevZaMesiac + \".\";\n\n }", "title": "" }, { "docid": "797ea235e045334873a66af1b3906acc", "score": "0.56493443", "text": "void verkoopKaartje(double prijs) {\n\t\tkermisOmzet = kermisOmzet + prijs;\n\t\taantalKermisKaartjes = aantalKermisKaartjes + 1;\n\t\tomzet += prijs;\n\t\taantalKaartjesVerkocht ++;\n\t}", "title": "" }, { "docid": "acb1f3f75aba403108495f820caf0dd4", "score": "0.5649008", "text": "public void ucitajPitanja() throws Exception{\r\n\t\tSOUcitajPitanja.izvrsi(pitanja.getLaksa(), pitanja.getSrednja(), pitanja.getTeza());\r\n\t}", "title": "" }, { "docid": "bf09703c092038087f9f66ddc9f95b8e", "score": "0.56488377", "text": "@Test\n\tpublic void NieksztaltekReturnsValueWithoutChanges() {\n\t\tassertThat(test.Nieksztaltek(924), is(924));\n\t}", "title": "" }, { "docid": "e47f6ff1a45fc9e701cc2033a7f1e82f", "score": "0.56453013", "text": "public void sijoitaAlkuJaLoppu() { //sijoittaa portaat, josta pelaaja tuli luolan tähän kerrokseen\n Random rng = new Random();\n Huone aloitusHuone = this.sijoitetutHuoneet.get(0);\n Huone lopetusHuone = this.sijoitetutHuoneet.get(sijoitetutHuoneet.size() - 1);\n int aloitusX = aloitusHuone.getX() + rng.nextInt(aloitusHuone.getHuoneenLeveys());\n int aloitusY = aloitusHuone.getY() + rng.nextInt(aloitusHuone.getHuoneenLeveys());\n this.alkuPiste = new Koordinaatti(aloitusX, aloitusY);\n int lopetusX = lopetusHuone.getX() + rng.nextInt(lopetusHuone.getHuoneenLeveys());\n int lopetusY = lopetusHuone.getY() + rng.nextInt(lopetusHuone.getHuoneenLeveys());\n while (lopetusX == aloitusX && lopetusY == aloitusY) {\n lopetusX = lopetusHuone.getX() + rng.nextInt(lopetusHuone.getHuoneenLeveys());\n lopetusY = lopetusHuone.getY() + rng.nextInt(lopetusHuone.getHuoneenLeveys());\n }\n this.loppuPiste = new Koordinaatti(lopetusX, lopetusY);\n }", "title": "" }, { "docid": "282c617a45e07f231ce6c2211826a224", "score": "0.5644871", "text": "private void Izvade2 (){\n System.out.println(\"Kaut ko izvadam\");\n }", "title": "" }, { "docid": "36aaa6d21bb9189146413e060a244873", "score": "0.56447995", "text": "public boolean estVivant() {\n return point_de_vie <= 0;\n }", "title": "" }, { "docid": "c8740a9754d6b0f888d7359de1e3ae12", "score": "0.5638228", "text": "public static void PrzerobRoslineNaPasze(Farmer farmer)\n {\n try {\n if(farmer.Farma.ZebraneRosliny.size()!=0) {\n int opcjaWyboru;\n String wynik = \"Wybierz:\\n\";\n for (int i = 0; i < farmer.Farma.ZebraneRosliny.size(); i++) {\n wynik += \"|\" + i + \"| \" + farmer.Farma.ZebraneRosliny.get(i).Wypisz()+\"\\n\";\n }\n mWypisywanie.WypisanieWyboru.szablon(wynik);\n opcjaWyboru = sc.nextInt();\n if (IloscMiejscaWStodolach(farmer) > farmer.IloscStodola) {\n if (farmer.Farma.ZebraneRosliny.get(opcjaWyboru).wydajnosc + farmer.IloscStodola <= IloscMiejscaWStodolach(farmer)) {\n farmer.IloscStodola += farmer.Farma.ZebraneRosliny.get(opcjaWyboru).wydajnosc;\n farmer.Farma.ZebraneRosliny.remove(opcjaWyboru);\n System.out.println(\"Rosline \" + farmer.Farma.Rosliny.get(opcjaWyboru).nazwa + \" przerobiono na pasze\");\n\n } else {\n\n System.out.println(\"Zbyt malo miejsca w stodolach\");\n }\n } else {\n System.out.println(\"Zbyt malo miejsca w stodolach\");\n }\n }\n else\n {\n System.out.println(\"Brak roslin do przerobienia\");\n }\n }\n catch (Exception ex)\n {\n System.out.println(\"Pomyślnie przerobiono na paszę.\");\n }\n\n }", "title": "" }, { "docid": "ed08b905ccdd91a78f793e3c03a2a9be", "score": "0.5635501", "text": "public void zeraAposta (){\n this.valorPartida = ValoresPartida.REGULAR;\n }", "title": "" }, { "docid": "5dcae93b4eb368f6ae8ae20740df0259", "score": "0.5631306", "text": "@Test\r\n public void testGetNutzerPinnwand() throws Exception {\r\n System.out.println(\"getNutzerPinnwand\");\r\n SocialMediaLogicImpl verwaltung = null;\r\n Nutzer instance = new NutzerImpl();\r\n Pinnwand expResult = null;\r\n Pinnwand result = instance.getNutzerPinnwand(verwaltung);\r\n assertEquals(expResult, result);\r\n // TODO review the generated test code and remove the default call to fail.\r\n fail(\"The test case is a prototype.\");\r\n }", "title": "" }, { "docid": "c2717ada284ad92b5dca605fed25fee4", "score": "0.5626361", "text": "public void przesunLewo() {\n int x, y;\n for (Spudlo pud : mAktywny) {\n x = pud.getX();\n y = pud.getY();\n\n pud.setLocation(x - 20, y);\n }\n }", "title": "" }, { "docid": "bc24c576b7f7e46dc90edc7cd5d573cb", "score": "0.5618477", "text": "private boolean planszaPelna() {\n for (Gracz aplansza : plansza) {\n if (aplansza == null) {\n return false;\n }\n }\n return true;\n }", "title": "" }, { "docid": "338463a6977e6019ac11261d2ac457cb", "score": "0.56181735", "text": "public static void izbaciNedostizna(){\n odvojiDostiznaINedostizna();\r\n\r\n //izbaci funkcije s nedostiznim stanjima\r\n Set<String[]> zaMaknuti = new HashSet<>();\r\n for (Map.Entry<String[], String> entry : funkcijePrijelaza.entrySet()) {\r\n String[] iterat = entry.getKey();\r\n if(nedostiznaStanja.contains(iterat[0])) {\r\n zaMaknuti.add(iterat);\r\n }\r\n }\r\n for(String[] s : zaMaknuti){\r\n funkcijePrijelaza.remove(s);\r\n }\r\n\r\n //izbaci nedostizna stanja iz prihvatljivih stanja\r\n for(String s : nedostiznaStanja){\r\n if(prihvatljivaStanja.contains(s))\r\n prihvatljivaStanja.remove(s);\r\n }\r\n\r\n }", "title": "" }, { "docid": "65af72760ed772eb7590869c0a1ba073", "score": "0.5612325", "text": "public java.lang.String getP_IdZona(){\r\n return localP_IdZona;\r\n }", "title": "" } ]
d6d01eeb5a2268515ae8038724724dd2
TODO: Warning this method won't work in the case the id fields are not set
[ { "docid": "3a76a77ff73094002fb4ef937961be92", "score": "0.0", "text": "@Override\n public boolean equals(Object object) {\n if (!(object instanceof Usuario)) {\n return false;\n }\n Usuario other = (Usuario) object;\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\n return false;\n }\n return true;\n }", "title": "" } ]
[ { "docid": "aa83b06898e8aa259c35aa45339c0806", "score": "0.6838929", "text": "private Integer id() \t{ return id; }", "title": "" }, { "docid": "57c157d9d98d88367182b07788ed701c", "score": "0.67056817", "text": "public void setId(int id){ this.id = id; }", "title": "" }, { "docid": "002157ea208eb3ebb1c5a32a983f0805", "score": "0.6647658", "text": "public void setId(Integer id) { this.Id = id; }", "title": "" }, { "docid": "4c772edc3d390a03b4f5d702c909fb2a", "score": "0.66285956", "text": "public void setId(int id) {this.id = id; }", "title": "" }, { "docid": "9270084d9251fe0c7cc156727f5958a4", "score": "0.66177535", "text": "public int Id() { return id; }", "title": "" }, { "docid": "32f36428c868f1137f0240436002ed7e", "score": "0.6617212", "text": "@Override\n public long getId(){\n return id;\n }", "title": "" }, { "docid": "226e4edfcc3315033b343f250068aff0", "score": "0.6600489", "text": "private void clearId() {\n \n id_ = getDefaultInstance().getId();\n }", "title": "" }, { "docid": "0726e82f8e61c201289edfe685d77472", "score": "0.6574321", "text": "public int getId() { return id; }", "title": "" }, { "docid": "0726e82f8e61c201289edfe685d77472", "score": "0.6574321", "text": "public int getId() { return id; }", "title": "" }, { "docid": "0726e82f8e61c201289edfe685d77472", "score": "0.6574321", "text": "public int getId() { return id; }", "title": "" }, { "docid": "2760b6beed648d3ab0be90a6fbeecbda", "score": "0.65573174", "text": "public int getId() { return Id; }", "title": "" }, { "docid": "2760b6beed648d3ab0be90a6fbeecbda", "score": "0.65573174", "text": "public int getId() { return Id; }", "title": "" }, { "docid": "97c17037784dee24dc012ea36e40c8d4", "score": "0.6537124", "text": "public int getId() {return this.id;}", "title": "" }, { "docid": "1991be481f9f0b5852403121b14f0048", "score": "0.6528797", "text": "public int getId() { return this.id; }", "title": "" }, { "docid": "7dd4ff9e7ad063531a6986994bdb9c4b", "score": "0.6516951", "text": "public int getId() { return _id; }", "title": "" }, { "docid": "bbe67648c16a7b0bb11b2d1b39caa9e6", "score": "0.6473654", "text": "void setId(String id) {\n this.id = id;\n }", "title": "" }, { "docid": "f9e718289eb0e1bf4030a939a22638d1", "score": "0.6448223", "text": "public void setId(String _id){ this.mId = _id; }", "title": "" }, { "docid": "3dd475e795764fbd9a851bd16bc383c9", "score": "0.6434481", "text": "public int getId(){\r\n\t \r\n\t return id; //epistrofh xrwmatos paikth\r\n }", "title": "" }, { "docid": "3eb856b51e38df9ee7cda34fbfcb94bf", "score": "0.64185613", "text": "@Override\r\n public long getId() {\n return id;\r\n }", "title": "" }, { "docid": "7a90e6d5be4590c64229d83d68601b9c", "score": "0.6390846", "text": "@Override\n\t\t\tpublic long getId() {\n\t\t\t\treturn 0;\n\t\t\t}", "title": "" }, { "docid": "6b7063f5d3e36a5ba43d1dc760010e36", "score": "0.6380854", "text": "@Override\n\tprotected Serializable pkVal() {\n\t\treturn id;\n\t}", "title": "" }, { "docid": "0d00fa903bf8ecf3de2b4a25733bb7fe", "score": "0.6352626", "text": "@Override\n public void setId(String id)\n {\n \n }", "title": "" }, { "docid": "fe1428cc0cd9b02fc4353171cb2c8ed1", "score": "0.6337061", "text": "private void setMissingRecordElementIdToDTO() {\n Log.v(App.getTag(), \"set Missing RecordElement id\");\n IRecord record = activeRecordDTO.getRecord();\n TreeSet<IRecordElement> recordElements = record.getRecordElements();\n activeRecordDTO.setRecordElementId(recordElements.first().getId());\n }", "title": "" }, { "docid": "4c1fcbfc5fd65634915cb1cf2a513611", "score": "0.6333352", "text": "@Override\n public Long getId() {\n return id;\n }", "title": "" }, { "docid": "4c1fcbfc5fd65634915cb1cf2a513611", "score": "0.6333352", "text": "@Override\n public Long getId() {\n return id;\n }", "title": "" }, { "docid": "ede3c954a4274a2e3fcd0623c869ddf4", "score": "0.6326868", "text": "public void setId(Long id)\n/* */ {\n/* 81 */ this.id = id;\n/* */ }", "title": "" }, { "docid": "e98f77b86adbc07a9644a44238454882", "score": "0.6317204", "text": "@Override\n public int getID() {\n return 0;\n }", "title": "" }, { "docid": "5cdc5054829793fd072cdd2e12fa21e4", "score": "0.63072", "text": "private int getid() {\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "056f66ef4f9795874d5e1936cbd0e0b7", "score": "0.6304583", "text": "public int getId(){\n return id;\n }", "title": "" }, { "docid": "056f66ef4f9795874d5e1936cbd0e0b7", "score": "0.6304583", "text": "public int getId(){\n return id;\n }", "title": "" }, { "docid": "056f66ef4f9795874d5e1936cbd0e0b7", "score": "0.6304583", "text": "public int getId(){\n return id;\n }", "title": "" }, { "docid": "056f66ef4f9795874d5e1936cbd0e0b7", "score": "0.6304583", "text": "public int getId(){\n return id;\n }", "title": "" }, { "docid": "728cc36255888eaddb14a1a2de481795", "score": "0.6302827", "text": "public String getId(){\r\n\t return id;\r\n\t \r\n }", "title": "" }, { "docid": "e533363bedb4011d9461943d10b49132", "score": "0.6302294", "text": "@Override\n public int getId() {\n return id;\n }", "title": "" }, { "docid": "245b0696def79629d558a23717c93719", "score": "0.6301237", "text": "public void setId(int id) {\n this.id = id;\n }", "title": "" }, { "docid": "ac6f2c7517a653df454a573e4d8e5a41", "score": "0.6291357", "text": "public void setId(String id) {\n this.id = id;\n }", "title": "" }, { "docid": "f74d6b4345c2bd495ccce2ef5384261d", "score": "0.6281519", "text": "public void setID()\n {\n this.id=id;\n }", "title": "" }, { "docid": "4dc3c481987f186da3ecd9af1ea3c619", "score": "0.62710917", "text": "@Override\r\n\tpublic Long getId() {\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "4dc3c481987f186da3ecd9af1ea3c619", "score": "0.62710917", "text": "@Override\r\n\tpublic Long getId() {\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "e7143c96e21d1967509444bb7fd1ebc0", "score": "0.6264098", "text": "@Override\n\tpublic void setId(Long id) {\n\t\t\n\t}", "title": "" }, { "docid": "032e3ed4b48f955519b811e31f1c5eeb", "score": "0.6259253", "text": "public int getId() {\n return id;\n }", "title": "" }, { "docid": "2ae63bbca1706dc959388f14d9f0e7fb", "score": "0.6258224", "text": "@Override\r\n\tpublic long getId() {\r\n return id;\r\n }", "title": "" }, { "docid": "b77a07aa5e4ee805e80fe886c15e49a6", "score": "0.62544465", "text": "@Override\n\tpublic void setId(long id) {\n\t\t\n\t}", "title": "" }, { "docid": "b77a07aa5e4ee805e80fe886c15e49a6", "score": "0.62544465", "text": "@Override\n\tpublic void setId(long id) {\n\t\t\n\t}", "title": "" }, { "docid": "8939eb1880e19256d3541483b1c6b08e", "score": "0.62531084", "text": "public int getId() {\n/* 91 */ return this.id;\n/* */ }", "title": "" }, { "docid": "5590cadecac7bd902e0af012aa7e16b7", "score": "0.6240029", "text": "public Long getId()\n/* 64: */ {\n/* 65: 65 */ return this.id;\n/* 66: */ }", "title": "" }, { "docid": "beeff237f6270a0a447da3efd6bf73af", "score": "0.6238957", "text": "@Override\n\tpublic Long getId() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "beeff237f6270a0a447da3efd6bf73af", "score": "0.6238957", "text": "@Override\n\tpublic Long getId() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "beeff237f6270a0a447da3efd6bf73af", "score": "0.6238957", "text": "@Override\n\tpublic Long getId() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "beeff237f6270a0a447da3efd6bf73af", "score": "0.6238957", "text": "@Override\n\tpublic Long getId() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "e0a48d763c64445de504666cf016ba52", "score": "0.6218972", "text": "public void setId(String value) {\n this.id = value;\n }", "title": "" }, { "docid": "381f0466a30346df928f2b043b98c2fc", "score": "0.6218325", "text": "@Override\r\n\tpublic void setId(Long id) {\n\t\t\r\n\t}", "title": "" }, { "docid": "d46d4ed4a6f489dac760b94802802946", "score": "0.6218077", "text": "@Override\r\n public String getID() {\n return null;\r\n }", "title": "" }, { "docid": "605caa4cb7aea4133af9d212d98594d3", "score": "0.62081057", "text": "public void setId(java.lang.Integer id) { \n this.id = id; \n }", "title": "" }, { "docid": "a4e720bceb9e5efae7a75a1a7286ee05", "score": "0.6207391", "text": "@Override\n\tpublic void setId(Long id) {\n\n\t}", "title": "" }, { "docid": "a4e720bceb9e5efae7a75a1a7286ee05", "score": "0.6207391", "text": "@Override\n\tpublic void setId(Long id) {\n\n\t}", "title": "" }, { "docid": "4dc14279e5781a56ea012298ac5d096c", "score": "0.61954945", "text": "public int getId() {\n return this.id;\n }", "title": "" }, { "docid": "e5f1aadae01879f7a78ce1fc59d9d74d", "score": "0.6195045", "text": "public void setId(Long id)\n\t{\n this.id = id;\n }", "title": "" }, { "docid": "677a452f992ca7e99fad2aa57efa121c", "score": "0.6195007", "text": "public void setId(int id){\n \n this.id = id;\n }", "title": "" }, { "docid": "621071f79943825698650ccfad35847e", "score": "0.61895776", "text": "public int getID() {return id;}", "title": "" }, { "docid": "f7795cf4998791a21ecbf489352a6d84", "score": "0.6184292", "text": "public int getId ()\r\n {\r\n return id;\r\n }", "title": "" }, { "docid": "5edf1307046febf3a765eb76acea842a", "score": "0.6178515", "text": "public void setId(int id)\r\n/* 21: */ {\r\n/* 22:17 */ this.id = id;\r\n/* 23: */ }", "title": "" }, { "docid": "a14448e56a522fb0bd9231246bb15498", "score": "0.6172137", "text": "@Override\n public Long getId () {\n return this.id;\n }", "title": "" }, { "docid": "02198634b110a0a33a57483d12d9e461", "score": "0.6166131", "text": "@Override\n public Integer getId() {\n return id;\n }", "title": "" }, { "docid": "0a09374c965fe563eb58187ff970cd08", "score": "0.6163358", "text": "public void setId(String id)\n/* */ {\n/* 70 */ this.id = id;\n/* */ }", "title": "" }, { "docid": "d6b667dbfeb020db1213189c7fc37f76", "score": "0.61621445", "text": "@Override\r\n\tpublic Integer getId() {\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "ceac061e20adbbd4a4956dad1de713bb", "score": "0.6160736", "text": "public int getId()\r\n/* 16: */ {\r\n/* 17:14 */ return this.id;\r\n/* 18: */ }", "title": "" }, { "docid": "8d62e2f2483dfdffbad75710f4a0c910", "score": "0.6157781", "text": "@java.lang.Override\n public int getId() {\n return id_;\n }", "title": "" }, { "docid": "bb938c0a267ac6e2cb5e6b135cf1ed68", "score": "0.61556244", "text": "@Override\n public int getId() {\n return id;\n }", "title": "" }, { "docid": "c3831ea95cc36ed421cb6724cda18250", "score": "0.614877", "text": "public int getId() { return mId; }", "title": "" }, { "docid": "e4b3c8b937f853217075a8455d1a4d1f", "score": "0.61469203", "text": "@Override\n\t\t\tpublic String getId() {\n\t\t\t\treturn null;\n\t\t\t}", "title": "" }, { "docid": "519f45d8e6617dfda5352225f70bfa2a", "score": "0.61454654", "text": "public void setId(String id){\n this.id = id;\n }", "title": "" }, { "docid": "519f45d8e6617dfda5352225f70bfa2a", "score": "0.61454654", "text": "public void setId(String id){\n this.id = id;\n }", "title": "" }, { "docid": "79291a7cd4d84687a0aaf1ee5211e448", "score": "0.6138755", "text": "@Override\n\tpublic long getId() {\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "79291a7cd4d84687a0aaf1ee5211e448", "score": "0.6138755", "text": "@Override\n\tpublic long getId() {\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "79291a7cd4d84687a0aaf1ee5211e448", "score": "0.6138755", "text": "@Override\n\tpublic long getId() {\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "996066b2e6c565e05e81bd65347bbcb9", "score": "0.6129336", "text": "public void setId(Integer id)\r\n/* 35: */ {\r\n/* 36:28 */ this.id = id;\r\n/* 37: */ }", "title": "" }, { "docid": "59dd28bc955b3d3ae978ef98a374b9da", "score": "0.61268467", "text": "@Override\n public int idBySize() {\n\n return 0;\n }", "title": "" }, { "docid": "7e5cc7780710fc86d584ff1c16a2a511", "score": "0.61244243", "text": "@Override\r\n\tpublic void setId(Integer id) {\n\t\t\r\n\t}", "title": "" }, { "docid": "630c1b6fd8ea099eb6b353c7a8be617c", "score": "0.6123988", "text": "private Long getId() {\n\t\treturn this.id;\n\t}", "title": "" }, { "docid": "97027168c55595a1e6c98e90e5a3d803", "score": "0.6121322", "text": "@java.lang.Override\n public boolean hasId() {\n return valueCase_ == 6;\n }", "title": "" }, { "docid": "030cf92eb74b4c04ec17d9641c55e9f6", "score": "0.61173743", "text": "public void setId (long id) { mId = id; }", "title": "" }, { "docid": "39582328418ef17bc681c3034d104a0e", "score": "0.61053693", "text": "public void setId(int newid) { Id = newid; }", "title": "" }, { "docid": "02a8506fa83ff6b4043ce38ac9dd05ea", "score": "0.61047715", "text": "public void setId( Long id )\n {\n this.id = id ;\n }", "title": "" }, { "docid": "1bcd0e45b00c8f7a657f925bf2baa27f", "score": "0.61047363", "text": "public abstract Long id();", "title": "" }, { "docid": "29bbdd397d0e3c167d45f19bfb82641a", "score": "0.6104374", "text": "@Test\n\tpublic void testId() {\n\n\t\tect.setId(1);\n\t\tassertEquals(1, ect.getId());\n\t}", "title": "" }, { "docid": "7908160cc2eac2a18be46f09f71b7253", "score": "0.6103568", "text": "private void clearId() {\n \n id_ = 0;\n }", "title": "" }, { "docid": "f5b741ab3c1a96dbe84f01f92cdd4596", "score": "0.6101399", "text": "public void setId(Long id) \r\n {\r\n this.id = id;\r\n }", "title": "" }, { "docid": "5d6fa911a30e7dfa2752c95632b84740", "score": "0.60953933", "text": "protected AbstractIdentifiable() {\n this.id = null;\n }", "title": "" }, { "docid": "c5016bed5ab3f740d2ae457b7abd3567", "score": "0.60928154", "text": "@Override\n public int getId() {\n return 0;\n }", "title": "" }, { "docid": "0aed6097a305b41d8023bae2f7619fb1", "score": "0.60826623", "text": "@java.lang.Override\n public boolean hasId() {\n return valueCase_ == 6;\n }", "title": "" }, { "docid": "7500c6c62148a0ab937d56dff0c29786", "score": "0.6078981", "text": "@Override\n public void setId(int id) {\n this.id = id;\n }", "title": "" }, { "docid": "4c8f73c828e57e727bdc8c3ab141a4fa", "score": "0.6078959", "text": "int getId() {\n return id;\n }", "title": "" }, { "docid": "4c8f73c828e57e727bdc8c3ab141a4fa", "score": "0.6078959", "text": "int getId() {\n return id;\n }", "title": "" }, { "docid": "c437faabcd79788b4f4d3cfafcf17eed", "score": "0.6073983", "text": "public void setId(int id)\r\n {\r\n this.id = id;\r\n }", "title": "" }, { "docid": "0b69b024efceaee597550a18c5614e90", "score": "0.60691077", "text": "@Override\r\n\tpublic Object buscarPorId(int id) {\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "2212c3c40cfd381f1160e27c664be836", "score": "0.6064873", "text": "@Override\n\tpublic void set_Id(String id) {\n\t\t\n\t}", "title": "" }, { "docid": "d781136ba761071a3e6bafd7c6ef4c82", "score": "0.6063253", "text": "java.lang.String getId();", "title": "" }, { "docid": "d781136ba761071a3e6bafd7c6ef4c82", "score": "0.6060131", "text": "java.lang.String getId();", "title": "" }, { "docid": "d781136ba761071a3e6bafd7c6ef4c82", "score": "0.6060131", "text": "java.lang.String getId();", "title": "" }, { "docid": "d781136ba761071a3e6bafd7c6ef4c82", "score": "0.6060131", "text": "java.lang.String getId();", "title": "" } ]
3883a1c81ef32c51af81695ac616fed1
/ runs 20 iterations of sequential sum algorithm returns average time for the final 17 iterations
[ { "docid": "ba0b2f16f47d6c3a46cfb2c2d763b61d", "score": "0.67597693", "text": "static String runSequential(bundle b){\n float avgTime = 0;\n for(int i=0; i<20; i++){\n\t System.gc(); // garbage collector\n tick();\n treeUtils.sequentialSum(b, 0, bundle.getTrees().length);\n float time = tock();\n if(i>2)\n avgTime +=time;\n }\n return \"Average time (seconds) taken for sequential sum: \\n\" + Float.toString(avgTime/17)+\"\\n\";\n }", "title": "" } ]
[ { "docid": "516c81f8a94b93f4c6286371afc03730", "score": "0.6556968", "text": "public void calculateSum(){\n\t for(;multiplesOfThree<1000;){ // enumerate multiples of 3\n\t if((multiplesOfThree % 5) == 0){}else{ // do not include multiples of 5\n\t sum = sum + multiplesOfThree;\n\t }\n\t multiplesOfThree = multiplesOfThree + 3;\n\t }\n\t for(;multiplesOfFive<1000;){ // enumerate multiples of 5\n\t sum = sum + multiplesOfFive;\n\t multiplesOfFive = multiplesOfFive + 5;\n\t }\n\t}", "title": "" }, { "docid": "9184c7a7f5d2feb4566c51156b5ee872", "score": "0.6356529", "text": "private double calcSum() {\n double count = 0;\n for (double aData : data ) count += aData;\n sum = count;\n return sum();\n }", "title": "" }, { "docid": "4a2fb6dee5fc288a859154355c94efca", "score": "0.6220538", "text": "private void compute() {\n InputReader sc = null;\n try {\n sc = new InputReader(new FileInputStream(\"./resources/trainsandstatistics\"));\n } catch (FileNotFoundException ex) {\n throw new IllegalArgumentException(ex);\n }\n n = sc.nextInt();\n for (int i = 1; i < n; i++) {\n maxpos[i] = sc.nextInt();\n }\n update(n, n);\n ind[n] = n;\n\n for (int i = n - 1; i > 0; i--) {\n int nextpos = query(maxpos[i]);\n int nextind = ind[nextpos];\n ans[i] = (n - i) - (maxpos[i] - nextind);\n ans[i] += ans[nextind];\n ind[maxpos[i]] = i;\n update(i, maxpos[i]);\n }\n\n long result = 0;\n for (int i = n - 1; i > 0; --i) {\n result += ans[i];\n }\n System.out.print(result);\n }", "title": "" }, { "docid": "68845f0b47ed494d97b7cff09d4b9c1e", "score": "0.6148059", "text": "private static void analyzeTimeComplexity() {\n\t\tfor(int n = 0; n <= 20000; n += 1000) {\n\t\t\t\n\t\t\tint[] averagecase = new int[n];\n\t\t\taveragecase = generateAverageCase(n);\n\t\t\tlong averagestart = System.currentTimeMillis();\n\t\t\tkMergeSort(averagecase, n);\n\t\t\tlong averageend = System.currentTimeMillis();\n\t\t\tfloat averagetime;\n\t\t\taveragetime = averageend - averagestart;\n\t\t\tSystem.out.print(\" n=\" + n + \", \" + averagetime + \" \");\n\t\t\t\n\t\t\t\n\t\t\tint[] worstcase = new int[n];\n\t\t\tworstcase = generateWorstCase(n);\n\t\t\tlong worststart = System.currentTimeMillis();\n\t\t\tkMergeSort(worstcase, n);\n\t\t\tlong worstend = System.currentTimeMillis();\n\t\t\tfloat worsttime;\n\t\t\tworsttime = worstend - worststart;\n\t\t\tSystem.out.print(worsttime + \" \");\n\t\t\t\n\t\t\t\n\t\t\tint[] bestcase = new int[n];\n\t\t\tbestcase = generateBestCase(n);\n\t\t\tlong beststart = System.currentTimeMillis();\n\t\t\tkMergeSort(bestcase, n);\n\t\t\tlong bestend = System.currentTimeMillis();\n\t\t\tfloat besttime;\n\t\t\tbesttime = bestend -beststart;\n\t\t\tSystem.out.print(besttime + \"; \");\n\t\t}\n\n\t}", "title": "" }, { "docid": "a98f2e6b465b3933cd17a867448a91ee", "score": "0.6129651", "text": "public long[] testAdd() {\n long[] times = new long[iterations];\n for (int i = 0; i < iterations; i++) {\n times[i] = runAdd();\n }\n\n long[] results = new long[3];\n\n results[0] = findMin(times);\n results[1] = findMax(times);\n results[2] = LongStream.of(times).sum() / iterations;\n\n return results;\n\n }", "title": "" }, { "docid": "a36e31852aa9d0048b42d408d9285e54", "score": "0.6088917", "text": "public static void runtime(int n) {\n\t\t\n\t\tRandom rand = new Random();\n\t\tlong duration[] = new long[20];\n\t\tint [] tempw = new int[n];\n\t\tint [] tempv = new int[n];\n\t\tlong startime,endtime;\n\t\t\n\t\t\n\t\t\n\t\tint M = n*10;\n\t\tint loc =0;\n\t\t\n\t\tfor(int i=0;i<10;i++) {\n\t\t\tfor(int j=0;j<n;j++) {\n\t\t\t\ttempw[j] = rand.nextInt(20)+10;\n\t\t\t\ttempv[j] = rand.nextInt(40)+10;\n\t\t\t\t//System.out.println(tempw[j] + \", \" +tempv[j]);\n\t\t\t}//of fill arrays per run\n\t\t\t\n\t\t\t startime = System.nanoTime(); //starting the timer\n\t\t\t knapsackdp(tempw,tempv,M);\n\t\t\t endtime = System.nanoTime();\n\t\t\t\n\t\t\t duration[loc]= endtime -startime;\n\t\t\t loc++;\n\t\t\t \n\t\t\t startime = System.nanoTime(); //starting the timer\n\t\t\t knapsackga(tempw,tempv,M);\n\t\t\t endtime = System.nanoTime();\n\t\t\t\n\t\t\t duration[loc]= endtime-startime;\n\t\t\t \n\t\t\t \n\t\t\t loc++;\n\t\t\t\n\t\t}//of the ten iterations \n\t\t\n\t\tSystem.out.println(\" DP Ga\");\n\t\t\n\t\tfor(int i=0;i<duration.length;i++) {\n\t\t\tSystem.out.println(i+1+\" : \"+ duration[i]+\" \"+duration[i+1]);\n\t\t\ti++;\n\t\t}//of print duration table\n\t\t\n\t\t\n\t}", "title": "" }, { "docid": "18a0f9b16dcd3fbdc2deeaa5f368a617", "score": "0.6078406", "text": "public static void kadanesAlgo(int[] arr){\n int gMaxSum = -(int)1e8, runningSum = 0;\n for(int ele : arr){\n runningSum += ele;\n \n if(runningSum > gMaxSum) gMaxSum = runningSum;\n \n if(runningSum <= 0) runningSum = 0;\n }\n\n return gMaxSum;\n}", "title": "" }, { "docid": "3b77861c44bcf7310b9d48468aeb9e79", "score": "0.60159546", "text": "private void seqLoops () {\n \n start = System.nanoTime();\n \n for (int i = 0; i < outerLoop; i++) {\n for (int j = 0; j < innerLoop; j++) {\n seqCount += uselessWork(i, j);\n }\n }\n \n end = System.nanoTime(); \n \n}", "title": "" }, { "docid": "99412086a12c9181e65fb95dbdce2fb4", "score": "0.5971446", "text": "public static void main(String[] a) {\n int sum = 0;\n for (int i = 3; i < 10000000; i++) {\n if (i == factorialDigitSum(i))\n sum += i;\n }\n\n System.out.println(sum);\n }", "title": "" }, { "docid": "80261f2df53c0e1be7cb46bfb6c5d884", "score": "0.59236217", "text": "public static void main(String[] args) {\n\t\t\n\t\t\n\t\t\tlong time=0;\n\t\t\t\tfor(int i=0;i<10;i++){\n\t\ttime =time+testPerformanceLinkedList();\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"Average Linked List ::\"+(time/5));\n\t\t\t\ttime=0;\n\t\t\t\tfor(int i=0;i<10;i++)\n\t\t\t\t\ttime =time+testPerformanceClassicDoubleLinkStorage();\n\t\t\t\tSystem.out.println(\"Average Classic Double Link ::\"+(time/5));\n\t\t\t\ttime=0;\n\t\tfor(int i=0;i<10;i++)\n\t\t\ttime =time+testPerformanceClassicArrayList();\n\t\tSystem.out.println(\"Average Classic Array List ::\"+(time/5));\n\t\ttime=0;\n\t\tfor(int i=0;i<10;i++)\n\t\t\ttime =time+testPerformanceArrayList();\n\t\tSystem.out.println(\"Average Array List ::\"+(time/5));\n\n\n}", "title": "" }, { "docid": "0292214195d2b43fa2796d99c8bf345f", "score": "0.59101856", "text": "public void incSum(long estimatedTime) {\r\n\t\tsum += estimatedTime;\r\n\t}", "title": "" }, { "docid": "42e2ac51e8bdec9f57a381feb2c0b59b", "score": "0.59023887", "text": "private static void exercise10() {\r\n Stream<Double> source = Stream.generate(Math::random).limit(10);\r\n double average = source.reduce(new IntermediateResult(),\r\n IntermediateResult::accumulate,\r\n IntermediateResult::combine)\r\n .average();\r\n System.out.printf(\"Result: %f\\n\", average);\r\n /*\r\n * We can't compute the sum and divide by count because both operations are terminal\r\n */\r\n }", "title": "" }, { "docid": "7e3f5cd59647ea6b211015ae2f363b20", "score": "0.5883917", "text": "public void projectEuler21() {\n\n\t\tlong start = System.currentTimeMillis();\n\n\t\tint sum = 1;\n\t\tList<Integer> list = new ArrayList<Integer>();\n\t\tlist.add(0);\n\t\tlist.add(0);\n\n\t\tfor (int i = 2; i < 10000; i++) {\n\t\t\tfor (int j = 2; j < i; j++) {\n\t\t\t\tif (i % j == 0) {\n\t\t\t\t\tsum += j;\n\t\t\t\t}\n\t\t\t}\n\t\t\tlist.add(i, sum);\n\t\t\tsum = 1;\n\t\t}\n\n\t\tint amicableSum = 0;\n\n\t\tfor (int i = 2; i < 10000; i++) {\n\t\t\tfor (int j = i; j < 10000; j++) {\n\t\t\t\tif (list.get(i) == j && list.get(j) == i && i != j) {\n\t\t\t\t\tamicableSum += i + j;\n\t\t\t\t\t// System.out.println(i+\" \"+j);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(amicableSum);\n\n\t\tlong time = System.currentTimeMillis() - start;\n\t\tSystem.out.println(\"Time is : \" + time + \" ms\");\n\t}", "title": "" }, { "docid": "56abd0b81ac680613fa2384198f7082c", "score": "0.58692104", "text": "public static void main(String[] args) {\n int sum =0;\n for (int i = 0; i <= 100; i++) {\n sum+=i;\n }\n System.out.println(\"Sum using Imperative Approach: \"+sum);\n /*\n *\n * Declarative Style of programming - What Style of Programming\n * */\n int sum1 = IntStream.rangeClosed(0,100) // it splits the values\n .parallel()\n .sum();\n System.out.println(\"Declarative Style of programming\"+sum1);\n }", "title": "" }, { "docid": "c2fef6fac5825fb376b9eb14338c448d", "score": "0.58638084", "text": "public long aVeryBigSum(long[] ar) {\n return Arrays.stream(ar).parallel().sum();\n }", "title": "" }, { "docid": "c4fa65ad915e5bda602f5f504d32cfe7", "score": "0.58604765", "text": "public static void ex21() {\n System.out.println(\n LongStream.rangeClosed(1, LIMIT)\n .parallel()\n .sum()\n );\n }", "title": "" }, { "docid": "d41e93a20e025b61c5fd37013e881863", "score": "0.5829368", "text": "public static void ex18() {\n // )-: THIS CODE SHOWS WHY THIS IS A BAD IDEA! :-(\n long[] sum = { 0 };\n LongStream.rangeClosed(1, LIMIT)\n .parallel()\n .forEach(i -> sum[0] += i);\n System.out.println(sum[0]);\n }", "title": "" }, { "docid": "92ada79547bbe9e221442cb36ef25158", "score": "0.5807832", "text": "public static void main(String[] args) throws InterruptedException {\n\r\n int n = 3, q = 6;\r\n int[] a = {1, 3, 2};\r\n long[] left = {1, 1, 1, 2, 2, 3};\r\n long[] right = {1, 2, 3, 2, 3, 3};\r\n\r\n int sum;\r\n int leftValue, rightValue, prevLeftValue, max;\r\n\r\n String key;\r\n Map<String, Integer> hm = new HashMap<>();\r\n long startTime = System.nanoTime();\r\n for (int i = 0; i < q; i++) {\r\n sum = 0;\r\n leftValue = (int) left[i] - 1;\r\n rightValue = (int) right[i] - 1;\r\n if (leftValue == rightValue) {\r\n sum = a[leftValue];\r\n } else {\r\n prevLeftValue = leftValue;\r\n while (leftValue <= rightValue) {\r\n key = prevLeftValue + \"\" + leftValue;\r\n if (hm.isEmpty() || hm.get(key) == null) {\r\n max = a[prevLeftValue];\r\n for (int k = prevLeftValue + 1; k <= leftValue; k++) {\r\n if (max < a[k]) {\r\n max = a[k];\r\n }\r\n }\r\n hm.put(key, max);\r\n } else {\r\n System.out.println(\"asdas\");\r\n max = hm.get(key);\r\n }\r\n sum += max;\r\n if (leftValue == rightValue && prevLeftValue != rightValue) {\r\n ++prevLeftValue;\r\n leftValue = prevLeftValue;\r\n } else {\r\n leftValue++;\r\n }\r\n\r\n }\r\n }\r\n\r\n System.out.println(\"sum::\" + sum);\r\n }\r\n// scan.close();\r\n long endTime = System.nanoTime();\r\n System.out.println(\"time::\" + (endTime - startTime));\r\n }", "title": "" }, { "docid": "023a7984d94a9f10b47d4bc56d4df206", "score": "0.5806626", "text": "static long aVeryBigSum(int n, long[] ar) {\n long sum=0;\n for(int i=0;i<ar.length;i++){\n sum=sum+ar[i];\n }\n return sum;\n }", "title": "" }, { "docid": "e68a2019bf42f6f9b3de0d09025d5cdc", "score": "0.5804199", "text": "public static void main(String[] args) {\n\n System.out.println(\"ArrayList sum start: \" + System.currentTimeMillis());\n sum(makeList1(new ArrayList<>(), 10000));\n System.out.println(\"ArrayList sum stop: \" + System.currentTimeMillis());\n\n System.out.println(\"LinkedList sum start: \" + System.currentTimeMillis());\n sum(makeList1(new ArrayList<>(), 10000));\n System.out.println(\"LinkedList sum stop: \" + System.currentTimeMillis());\n\n }", "title": "" }, { "docid": "68f0b5e6521f767045b3fe83cbc46311", "score": "0.57886004", "text": "public static void ex20() {\n System.out.println(\n LongStream.rangeClosed(1, LIMIT)\n .parallel()\n .reduce(0, (long i, long j) -> i + j)\n );\n }", "title": "" }, { "docid": "9626528e8741d4ff69b5bdb20173c04d", "score": "0.57799083", "text": "public static long coinChangeIterativeEfficient(int []A, int sum) {\n long []DP = new long[sum+1]; //Sum\n DP[0]=1;\n\n// for(int i=1; i<=sum; i++) {\n// for (int x : A) {\n// if(x<=i){\n// DP[i] += DP[i-x];\n// }\n// }\n// }\n\n //Modified differentWaysToFindASum logic to consider coins first rather than sum.\n //This ensures, the coin is not repeated again.\n for(int x: A){\n for(int i=x; i<=sum; i++){\n DP[i] += DP[i-x];\n }\n }\n\n for(int i=0; i<=sum; i++){\n System.out.print(String.format(\"%10d\", DP[i]));\n }\n System.out.println();\n return DP[sum];\n }", "title": "" }, { "docid": "a7def4d909eb0f5b8fc51afc0a0f810e", "score": "0.5778233", "text": "public int totalIterations () { throw new RuntimeException(); }", "title": "" }, { "docid": "2471127911170d85a432aa446c53a504", "score": "0.57729405", "text": "private static void test(int n) {\n\t\tList<Integer> list = sort.generateList(n);\n\t\tlong[] results = new long[10];\n\t\tfor (int i = 0; i < 10; i++) {\n\t\t\tLong start = System.currentTimeMillis();\n\n\t\t\tsort.insertion(list);\n\n\t\t\tLong end = System.currentTimeMillis();\n\t\t\tresults[i] = end - start;\n\t\t}\n\t\tArrays.sort(results);\n\t\tlong sum = 0;\n\t\t// negeer kortste en langste running time.\n\t\tfor (int i = 1; i < results.length - 1; i++) {\n\t\t\tsum += results[i];\n\t\t}\n\t\tlong average = sum / 8;\n\t\tSystem.out.println(n+\", \"+average);\n\t}", "title": "" }, { "docid": "f800c5b2df20646733ba54e5fc295ae6", "score": "0.57683504", "text": "private static double getAverageRuntime(String[] args) {\n double totalTime = 0;\n for(int i=0; i<NUM_TESTS; i++) {\n long startTime = System.currentTimeMillis();\n WordCount.main(args);\n long endTime = System.currentTimeMillis();\n if(NUM_WARMUP <= i) { // Throw away first NUM_WARMUP runs to encounter JVM warmup\n totalTime += (endTime - startTime);\n }\n }\n return totalTime / (NUM_TESTS-NUM_WARMUP); \n }", "title": "" }, { "docid": "dcf58d40e888f01e8331f82d1029e759", "score": "0.57675374", "text": "private double total(double i, double j) throws Exception {\n\t\tdouble t = 0.0;\n\t\tdouble amplitude = 1.0;\n\t\tdouble freq = getFrequency();\n\n\t\tfor (int k = 0; k < _octaves; k++) {\n\t\t\tt += getValue(j * freq + getRandomSeed(), i * freq + getRandomSeed()) * amplitude;\n\t\t\tamplitude *= getPersistence();\n\t\t\tfreq *= 2;\n\t\t}\n\n\t\treturn t;\n\t}", "title": "" }, { "docid": "72d6f11d2ea1477e0caa3ff4d4032569", "score": "0.5761228", "text": "public static void ex15() {\n long sum = 0L;\n for (long i = 1; i <= LIMIT; i++) {\n sum += i;\n }\n System.out.println(sum);\n }", "title": "" }, { "docid": "6dab7d786be6c415f6e7a46011e5f45a", "score": "0.57533026", "text": "Double calculateEfficiencyForCandN(int numberOfIterations);", "title": "" }, { "docid": "15fc0109e9faf6bc20bfd240374ab0d0", "score": "0.5745995", "text": "public static void main(String[] args) throws IOException {\n long[] ar = {10,2,3,4,5,3}; \n long result = aVeryBigSum(6, ar);\n System.out.println(result);\n \n }", "title": "" }, { "docid": "eed1b34edb4de452eed52b3ae4a3d150", "score": "0.5744678", "text": "private static double sum() {\n validateNotNull(myTrials);\n double sum = 0.0;\n for (int i = 0; i < myTrials.length; i++) {\n sum += myTrials[i];\n }\n return sum;\n }", "title": "" }, { "docid": "a46c6e490fac0073e4f849c91670c3fa", "score": "0.5730634", "text": "public static void main(String[] args) {\r\n Scanner in = new Scanner(System.in);\r\n int T = in.nextInt();\r\n for(int i=0;i<T;i++){\r\n long N = in.nextLong();\r\n long sum = 0L;\r\n long p=0L;\r\n p = (N-1)/3;\r\n sum = (p*(p+1)*3)/2;\r\n \r\n p=(N-1)/5;\r\n sum = sum + (p*(p+1)*5)/2;\r\n \r\n p =(N-1)/15;\r\n sum = sum - (p*(p+1)*15)/2;\r\n System.out.println(sum);\r\n \r\n }\r\n }", "title": "" }, { "docid": "8fc04540472b2f71f4739de6cf9eb846", "score": "0.5721397", "text": "private static void runAlgorithms() {\r\n int[] arr;\r\n\r\n // seed generated by function currentTimeMillis\r\n long seed = System.currentTimeMillis();\r\n long start, end;\r\n\r\n //test for merge sort\r\n arr = generateArray(seed);\r\n start = System.nanoTime();\r\n arr = mergeSort(arr);\r\n end = System.nanoTime();\r\n double time1 = (((double) (end - start)) * (Math.pow(10, -9)));\r\n assert isSorted(arr);\r\n\r\n\r\n //test for insertionsort\r\n arr = generateArray(seed);\r\n start = System.nanoTime();\r\n insertionSort(arr);\r\n end = System.nanoTime();\r\n double time2 = (((double) (end - start)) * (Math.pow(10, -9)));\r\n assert isSorted(arr);\r\n\r\n System.out.printf(\"\\nTime taken for merge sort to sort %d elements took %f seconds\", N, time1);\r\n System.out.printf(\"\\nTime taken for insertion sort to sort %d elements took %f seconds\", N, time2);\r\n\r\n\r\n }", "title": "" }, { "docid": "ffecd1ce977e7ca4b0cf81b990bc7334", "score": "0.571895", "text": "public static void main(String[] args) {\n StdOut.print(\"Enter N\\n? \");\n N = StdIn.readInt();\n StdOut.print(\"Enter Repetitions \\n? \");\n REPETITIONS = StdIn.readInt();\n\n // To keep track of time\n long before, after;\n\n // So the for loop later can traverse through every Alg\n Alg algList[] = new Alg[4];\n algList[0] = Alg.QuickFind;\n algList[1] = Alg.QuickUnion;\n algList[2] = Alg.WeightedQuickUnion;\n algList[3] = Alg.PathCompressionWQU;\n\n System.out.println(\"\\nRunning...\\n\" + N + \" * \" + N + \" grid with \" + REPETITIONS + \" Repetitions\\n\");\n\n /*\n Uncomment the lines ~47 - 55 and comment the for each loop on lines ~58 - 70 to run specific UF algorithms\n */\n// Alg current_alg = Alg.PathCompressionWQU; // Change the specific algorithm here\n// before = System.nanoTime();\n// double total = 0;\n// for (int j = 0; j < REPETITIONS; j++) {\n// total += doThing(current_alg);\n// }\n// after = System.nanoTime();\n// System.out.println(current_alg + \"\\nAverage Percolation Probability: \" + total / REPETITIONS / (N * N));\n// System.out.println(\"Average Time Taken (microseconds): \" + (after - before) / REPETITIONS / 1000);\n\n // Does all three UF algorithms\n for (Alg current_alg : algList) {\n before = System.nanoTime();\n\n double total = 0;\n for (int j = 0; j < REPETITIONS; j++) {\n total += percolate(current_alg);\n }\n\n after = System.nanoTime();\n\n System.out.println(current_alg + \"\\nAverage Percolation Probability: \" + total / REPETITIONS / (N * N));\n System.out.println(\"Average Time Taken (microseconds): \" + (after - before) / REPETITIONS / 1000 + \"\\n\");\n }\n\n }", "title": "" }, { "docid": "8993f212602b221032a103bb68b22b4b", "score": "0.5699573", "text": "public static Map<Integer, Avg> dp(int t) {\n int max = t * (t + 1) / 2;\n BigInteger[] S = new BigInteger[max + 1]; // sums\n BigInteger[] C = new BigInteger[max + 1]; // counts\n\n BigInteger[] nextS = new BigInteger[max + 1];\n BigInteger[] nextC = new BigInteger[max + 1];\n\n for (int i = 0; i <= max; i++) {\n S[i] = BigInteger.ZERO;\n C[i] = BigInteger.ZERO;\n nextS[i] = BigInteger.ZERO;\n nextC[i] = BigInteger.ZERO;\n }\n\n S[1] = BigInteger.ONE;\n C[1] = BigInteger.ONE;\n for (int i = 2; i <= t; i++) {\n for (int j = 0; j <= i * (i + 1) / 2; j++) {\n int down = j + i;\n int up = j - i;\n BigInteger downS = getSum(S, down, t - 1);\n BigInteger downC = getCount(C, down, t - 1);\n\n BigInteger upS = getSum(S, up, t - 1);\n BigInteger upC = getCount(C, up, t - 1);\n\n nextS[j] = downS.subtract(downC).add(upS).add(upC);\n nextC[j] = upC.add(downC);\n }\n BigInteger[] tempS = S;\n S = nextS;\n nextS = tempS;\n\n BigInteger[] tempC = C;\n C = nextC;\n nextC = tempC;\n }\n\n HashMap<Integer, Avg> ans = new HashMap<>();\n for (int i = 0; i <= max; i++) {\n ans.put(i, new Avg(S[i], C[i]));\n ans.put(-i, new Avg(S[i].negate(), C[i]));\n }\n\n return ans;\n }", "title": "" }, { "docid": "9c94316a438a44ed8aaf20b351c7edac", "score": "0.5692413", "text": "private long runAdd() {\n heap.clear();\n\n long start = System.nanoTime();\n\n for (int i = 0; i < input.length; i++) {\n heap.add(input[i]);\n }\n\n long end = System.nanoTime();\n\n return end - start;\n }", "title": "" }, { "docid": "37cec3113c8a3f95b46edf06684396e9", "score": "0.5685148", "text": "@Override\n public Integer call() throws Exception {\n Integer sum=0;\n for(int i=0;i<1000000000;i++){\n sum+=i;\n }\n return sum;\n }", "title": "" }, { "docid": "25f79abc185beaaa07b1828baf0f191a", "score": "0.56663644", "text": "public static int sum(ArrayList<Process> array)\n\t{\n\t\tint i;\n\t\tint sum = 0;\n\t\t\n\t\tfor(i = 0; i < array.size(); ++i)\n\t\t{\n\t\t\tProcess p = array.get(i);\n\t\t\tsum += p.getBurstTime();\n\t\t}\n\n\t\treturn sum;\n\t}", "title": "" }, { "docid": "cd331ac5a6aea4bb0423674c3ee98c8e", "score": "0.56440836", "text": "public double run(int[][] sequences){\n\n HashSet<Range> pairs = new HashSet<>();\n AtomicInteger totalPairs = new AtomicInteger(0);\n AtomicInteger redundantPairs = new AtomicInteger(0);\n\n for (int[] sequence : sequences) {\n countPairs(sequence, totalPairs, redundantPairs, pairs);\n }\n\n return redundantPairs.get()/(double)totalPairs.get();\n\n }", "title": "" }, { "docid": "711ca25de053234793bb358b6c973d36", "score": "0.563156", "text": "private void updateAverageRuntime(){\r\n float sum = 0;\r\n\r\n for (Episode i: episodeList) {\r\n sum += i.getRuntime();\r\n\r\n }\r\n\r\n avgRuntime = sum/episodeList.size();\r\n }", "title": "" }, { "docid": "51f3da5e6dcb4e8b904b6a4b41616cb6", "score": "0.5626384", "text": "public void sum(){\n\t\tfor (int p = 0; p < n1; p ++){\n\t\t\tsum = sum + num.get(p);\n\t\t}\n\t\tSystem.out.println(\"sum \\t : \" + sum);\n\t\t\n\t}", "title": "" }, { "docid": "f17e2f9377163ef8cb8b42c149f4618d", "score": "0.56197274", "text": "public static long primeSummation() {\n\tlong ans = 0;\n\tfor (long i = 1; i <= 2000000; i++){\n\t if (isPrime(i)){\n\t\tans += i;\n\t }\n\t}\n\treturn ans;\n }", "title": "" }, { "docid": "b275b817606735ebf1ffb800cc1d3ded", "score": "0.5619281", "text": "public static void main(String[] args) {\n double[] avgSteps = new double[20]; //I am doing 20 runs, so 20 elements.\r\n double[] maxSteps = new double[20];\r\n Random num = new Random();\r\n \r\n System.out.println(\"Run # Avg Max Steps\");\r\n \r\n for (int i = 0; i<20; i++){ //i is run # \r\n int[] runSteps = new int[1000];\r\n for (int k = 0; k<1000; k++){ //Actual step simulation done 1k times.\r\n int distance = 0; //The distance from the starting point.\r\n int steps = 0;\r\n //Walking portion.\r\n while (Math.abs(distance) < 4){ //When the person reaches the edge which is 3.5 feet from him, stop. Also, the average appears to be the square of the constant. Weird.\r\n int randNum = num.nextInt(2);\r\n if (randNum == 0){\r\n distance--; //Decrement by one\r\n steps++;\r\n } else {\r\n distance++; //increment by one\r\n steps++;\r\n }\r\n }\r\n \r\n //If the steps he took this time is larger than the last recorded largest in the run, overwrite it.\r\n if (steps > maxSteps[i]){\r\n maxSteps[i] = steps;\r\n }\r\n //Write how many steps he took into an array. This also overwrites everything regardless, so I don't need to clear it.\r\n runSteps[k] = steps;\r\n \r\n }\r\n avgSteps[i] = averageArray(runSteps); //Average the array runSteps\r\n System.out.println(limitStringSize(\"Run #\" + (i+1), 10, false) + limitStringSize(avgSteps[i] + \"\", 10, false) + limitStringSize(maxSteps[i]+\"\",10,false));\r\n \r\n \r\n }\r\n }", "title": "" }, { "docid": "f5322daee63b7452e3b9aff01221c438", "score": "0.56085366", "text": "public long sum(int[] numbers);", "title": "" }, { "docid": "4132503b081c55b19df62213945f5a60", "score": "0.55944985", "text": "double findAverage() {\r\n counter = 0;\r\n //\r\n int sum = findAverage(testMe);\r\n //System.out.println(\"nodes: \" + counter + \" sum \" + sum + \" \" + sum/counter);\r\n return sum / (float) counter;\r\n }", "title": "" }, { "docid": "da41f48af8129baf3be1259b2f79b5cb", "score": "0.5588405", "text": "public static void ex19() {\n // THIS IS A LESS BAD IDEA:\n AtomicLong sum = new AtomicLong(0L);\n LongStream.rangeClosed(1, LIMIT)\n .parallel()\n .forEach(i -> sum.addAndGet(i));\n System.out.println(sum.get());\n }", "title": "" }, { "docid": "45d57d06d3817821dcec4602afeb25bf", "score": "0.5575227", "text": "public void calculateStatistics(double timeRan){\n double turnaroundTimeSum = 0;\n double waitingTimeSum = 0;\n double queue1WaitingTimeSum = 0;\n double queue2WaitingTimeSum = 0;\n double queue3WaitingTimeSum = 0;\n double queue4WaitingTimeSum = 0;\n double responseTimeSum = 0;\n ranProcessCount=0;\n double queue1Count=0;\n double queue2Count=0;\n double queue3Count=0;\n double queue4Count=0;\n for (OSProcess process : processes){\n if (process.isStarted()) {\n ranProcessCount++;\n process.calculateTurnaroundTime();\n process.calculateResponseTime();\n turnaroundTimeSum += process.getTurnaroundTime();\n waitingTimeSum += process.getWaitingTime();\n responseTimeSum += process.getResponseTime();\n if(process.getPriority()==1){\n queue1Count++;\n queue1WaitingTimeSum += process.getWaitingTime();\n } else if(process.getPriority()==2){\n queue2Count++;\n queue2WaitingTimeSum += process.getWaitingTime();\n } else if(process.getPriority()==3){\n queue3Count++;\n queue3WaitingTimeSum += process.getWaitingTime();\n } else if(process.getPriority()==4){\n queue4Count++;\n queue4WaitingTimeSum += process.getWaitingTime();\n }\n }\n }\n\n averageTurnaroundTime = turnaroundTimeSum/ranProcessCount;\n averageWaitingTime = waitingTimeSum/ranProcessCount;\n queue1AverageWaitingTime = queue1WaitingTimeSum/queue1Count;\n queue2AverageWaitingTime = queue2WaitingTimeSum/queue2Count;\n queue3AverageWaitingTime = queue3WaitingTimeSum/queue3Count;\n queue4AverageWaitingTime = queue4WaitingTimeSum/queue4Count;\n averageResponseTime = responseTimeSum/ranProcessCount;\n throughput = ranProcessCount/timeRan;\n queue1Throughput = queue1Count/timeRan;\n queue2Throughput = queue2Count/timeRan;\n queue3Throughput = queue3Count/timeRan;\n queue4Throughput = queue4Count/timeRan;\n\n }", "title": "" }, { "docid": "4acb697b56fc3c67f072c9db802b6dad", "score": "0.5562506", "text": "public static void main(String args[]) throws Exception {\n\n long timeStart = System.currentTimeMillis();\n\n File f = new File(\"easy20.txt\");\n Scanner sc = new Scanner(f);\n\n\n // parse for number items & total capacity\n int n = Integer.parseInt(sc.next());\n\n int[] idx = new int[n];\n int[] values = new int[n];\n int[] weights = new int[n];\n\n int idxidx = 0;\n int valuesidx = 0;\n int weightsidx = 0;\n\n // parsing for weight & value arrays\n for (int i = 0; i < n * 3; i++) {\n if (i % 3 == 0) {\n idx[idxidx++] = Integer.parseInt(sc.next());\n }\n else if (i % 3 == 1) {\n values[valuesidx++] = Integer.parseInt(sc.next());\n }\n else {\n weights[weightsidx++] = Integer.parseInt(sc.next());\n }\n }\n\n int cap = Integer.parseInt(sc.next());\n\n bruteForce(n, cap, idx, values, weights);\n\n long timeTotal = (System.currentTimeMillis() - timeStart);\n\n System.out.println(\"\\ntime: \" + timeTotal + \"ms\");\n\n }", "title": "" }, { "docid": "c6ee9a037689e36fdb9c76cca19dffcd", "score": "0.55623794", "text": "public static void main(String[] args) throws IOException {\n BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); // 快\n\n int n = Integer.parseInt(in.readLine());\n// int n = in.nextInt();\n String[] s = in.readLine().split(\" \");\n int[] list = new int[n];\n for (int i = 0; i < n; i++) {\n list[i] = Integer.parseInt(s[i]);\n }\n memo = new int[n];\n\n\n int max = 0;\n int distance = list.length;\n for (int i = 0; i < list.length; i++) {\n for (int j = i; j < list.length; j++) {\n boolean flag = false;\n\n int sum;\n if (i != j) {\n sum = method(list, j);\n } else {\n sum = list[i];\n memo[i] = sum;\n }\n\n if (sum > max) {\n max = sum;\n distance = j-i+1;\n } else if (sum == max) {\n if (j-i+1 < distance) {\n distance = j-i+1;\n } else {\n flag = true;\n }\n } else if (sum < max || flag) {\n continue;\n }\n }\n }\n System.out.println(distance);\n\n }", "title": "" }, { "docid": "e29ae6dfa81db0acbbeb4f85cd091827", "score": "0.5561701", "text": "static void linearFunction (int N) { \n\t\t\n\t\t// set start time\n\t\tdouble start = System.nanoTime() ; \n\t\t\n\t\t// for loop \n\t\tdouble sum = 0 ; \n\t\tfor (int i = 0 ; i <= N ; i++) {\n\t\t\tsum += i ; \n\t\t}\n\t\t\n\t\t// set end time \n\t\tdouble end = System.nanoTime() ; \n\t\t\n\t\t// print out total time it took program to run (converted from nanoseconds to milliseconds) \n\t\tSystem.out.println(\"The time it took the linear function to execute was \" + ((end - start)/1000000)) ;\n\t\n\t}", "title": "" }, { "docid": "7044327782fb2e82fb1636e0ad54dceb", "score": "0.5558453", "text": "public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int[] nums = new int[n];\n int total = 0;\n for(int i = 0; i < n; i++){\n nums[i] = sc.nextInt();\n total += nums[i];\n }\n int answer = total;\n int leftPos = 0;\n int rightPos = n - 1;\n while (leftPos <= rightPos) {\n answer += getTotal(nums, leftPos, rightPos);\n leftPos += 1;\n answer += getTotal(nums, leftPos, rightPos);\n rightPos -= 1;\n answer %= 1000;\n }\n System.out.println(answer);\n \n \n }", "title": "" }, { "docid": "4a5189186b7136365ee45b9b61562279", "score": "0.55570143", "text": "public void calculate() {\n\n SaddleSumDistribution hd;\n saddleSumTestMap = new HashMap();\n \n //System.out.print(mapSmallX.size());\n \n // Here the saddleSum first part should be computed, which uses all the scores\n // from the different participating elements.\n\n HashSet set = new HashSet(mapSmallX.keySet()); //Berechnung nur für Knoten aus mapSmallX notwendig\n Iterator iterator = set.iterator();\n Integer id;\n Integer smallXvalue;\n Integer smallNvalue;\n Integer bigXvalue;\n Integer bigNvalue;\n int currentProgress = 0;\n \n// System.out.println(mapSmallX);\n// System.out.println(mapSmallX.size());\n// System.out.println(mapWeightSum);\n// System.out.println(mapWeightSum.size());\n //System.out.println(mapSmallN.get(36342));\n \n \n iterateNewton();\n lugRice();\n //System.out.println(calcSaddlepoint(6099,260.0,1));\n //doYZ();\n /*try { \n \n while (iterator.hasNext()) { \n \n id = new Integer(iterator.next().toString());\n smallXvalue = new Integer(mapSmallX.get(id).toString());\n smallNvalue = new Integer(mapSmallN.get(id).toString());\n bigXvalue = new Integer(mapBigX.get(id).toString());\n bigNvalue = new Integer(mapBigN.get(id).toString());\n hd = new SaddleSumDistribution(smallXvalue.intValue(),\n bigXvalue.intValue(),\n smallNvalue.intValue(),\n bigNvalue.intValue());\n saddleSumTestMap.put(id, hd.calculateSaddleSumDistr());\n //System.out.println(saddleSumTestMap);\n // Calculate Percentage. This must be a value between 0..100.\n int percentComplete = (int) (((double) currentProgress / maxValue) * 100);\n\n // Estimate Time Remaining\n long timeRemaining = maxValue - currentProgress;\n\n // Update the Task Monitor.\n // This automatically updates the UI Component w/ progress bar.\n if (taskMonitor != null) {\n taskMonitor.setPercentCompleted(percentComplete);\n taskMonitor.setStatus(\"Calculating Hypergeometric P-value: \" + currentProgress + \" of \" + maxValue);\n taskMonitor.setEstimatedTimeRemaining(timeRemaining);\n }\n\n currentProgress++;\n\n if (interrupted) {\n throw new InterruptedException();\n }\n\n }\n //System.out.print(saddleSumTestMap);\n } catch (InterruptedException e) {\n taskMonitor.setException(e, \"Hypergeometric P-value calculation cancelled\");\n }*/\n }", "title": "" }, { "docid": "6f6686faf5e725dd9b375db237ca6119", "score": "0.5556566", "text": "public static void main(String[] args) {\n Scanner in = new Scanner(System.in);\n int n = in.nextInt();\n int m = in.nextInt();\n long max = -99;\n long[] intArray = new long[n];\n long[] amt = new long[m];\n int[] e1 = new int[m];\n int[] e2 = new int[m];\n\n for(int i=0;i<m;i++){\n e1[i] = in.nextInt();\n e2[i] = in.nextInt();\n amt[i] = in.nextLong();\n }\n\n long startTime = System.currentTimeMillis();\n for(int i=0;i<m;i++){\n\n if(amt[i]==(long)0)\n continue;\n for(int j=e1[i]-1;j<e2[i];j++)\n {\n intArray[j] += (long)amt[i];\n if(max < intArray[j])\n max = intArray[j];\n }\n }\n System.out.println(max);\n\n\n\n in.close();\n long endTime = System.currentTimeMillis();\n long totalTime = endTime - startTime;\n System.out.println(totalTime);\n }", "title": "" }, { "docid": "dc503f5bc6f62c473670783a10f52cba", "score": "0.5555222", "text": "public void computeTime() {\n\t\tArrays.sort(times);\n\t\tint len = times.length;\n\t\tSystem.out.println(\"Minimum time taken: \" + times[0] + \"ms\");\n\t\tSystem.out.println(\"Maximum time taken: \" + times[len - 1] + \"ms\");\n\t\tlong sum = 0;\n\t\tfor(long time: times) {\n\t\t\t sum += time;\n\t\t}\n\t\tlong average = sum/len;\n\t\tSystem.out.println(\"Average time taken: \" + average + \"ms\");\n\t}", "title": "" }, { "docid": "1a41b851b5167d0984844c455eb657e7", "score": "0.5546577", "text": "static String runParallel(bundle b){\n float avgTime = 0;\n for(int i=0; i<20; i++){\n\t System.gc(); // garbage collector\n tick();\n sum(b);\n float time = tock();\n if(i>2)\n avgTime +=time;\n }\n return Float.toString(avgTime/17)+\",\";\n }", "title": "" }, { "docid": "07f1c58ef826f3ad2ff1f13b08d7da01", "score": "0.55447555", "text": "public static void main(String[] args) throws InterruptedException, ExecutionException {\n\t\tInteger[] ar = {1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16};\n\t\tArrayList<Integer> ar1 = new ArrayList<Integer>();\n\t\tar1.addAll(Arrays.asList(ar));\n\t\t List<Future<Object>> resultList = null;\n\t\tExecutorService exec = Executors.newCachedThreadPool();\n\t\tSumCallable sm= new SumCallable(5);\n\t\tSumCallable sm2= new SumCallable(6);\n\t\tList<SumCallable> ls= new ArrayList<SumCallable>();\n\t\tls.add(sm);\n\t\tls.add(sm2);\n\t\tresultList=exec.invokeAll(ls);\n\n\t\tfor (Future<Object> future : resultList) {\n\t\t\tSystem.out.println(future.get());\n\t\t\tSystem.out.println(future.get().getClass());\n\t\t}\n\t List<Future<Integer>> futures = new ArrayList<Future<Integer>>();\n\t int count=0;\n\t \n\t for(int i=1,fromIndex=-4,toIndex=0;i<=4;i++) {\n\t\t count++;\n\t\t fromIndex+=4;\n\t\t toIndex+=4;\n\t\t List<Integer> ar2=ar1.subList(fromIndex, toIndex);\n\t\t futures.add(exec.submit(new Callable<Integer>() {\n\t\t\t\t@Override\n\t\t\t\tpublic Integer call() throws Exception {\n\t\t\t\t\tint sum1=0;\n\t\t\t\t\tSystem.out.println(\"Starting ...\");\n\t\t\t\t\tRandom random = new Random();\n\t\t\t\t\tint duration = random.nextInt(4000);\n\t\t\t\t\ttry {\n\t\t\t\t\t\t\n\t\t\t\t\t\tsum1=sum(ar2);\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\te.printStackTrace();\n\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println(Thread.currentThread().getName());\n\t\t\t\t\tSystem.out.println(\"finished ;\");\n\t\t\t\t\t//System.out.println(sum1);\n\t\t\t\t\treturn sum1;\n\t\t\t\t}\n\t\t\t}));\n\t }\n\t int totsum=0;\n\t for (Future<?> f : futures) {\n\t \t//totsum+=f.get()\n\t System.out.println(f.get()); // wait for a processor to complete\n\t System.out.println(f.get());\n\t }\n\t exec.shutdown();\n\t System.out.println(\"all items processed\");\n\t}", "title": "" }, { "docid": "fd63af774184639c5a2e3f518927095c", "score": "0.5539713", "text": "private double dit() {\n double\n sum = 0.0,\n avg = 0.0;\n\n for (int i = 0 ; i < Network.size() ; i++) {\n double n_neigs = ((NeighborProtocol) Network.get(i).getProtocol(this_pid)).getNeighbors().size();\n\n sum += n_neigs;\n }\n\n avg = sum / Network.size();\n d_dt.add(avg); // Add to history\n return avg;\n }", "title": "" }, { "docid": "27798d2a4805958db61d1fa2d7357f9f", "score": "0.55330914", "text": "static double sum(int n) \r\n { \r\n double i, s = 0.0; \r\n for (i = 1; i <= n; i++) \r\n s = s + 1/i; \r\n return s; \r\n }", "title": "" }, { "docid": "1be26b0c60b40dfaf593e1e26b71266b", "score": "0.5530085", "text": "public static void main(String[] args) throws IOException {\n\t\tBufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n\t\tN=Integer.parseInt(br.readLine());\n\t\tStringTokenizer st=new StringTokenizer(br.readLine());\n\t\tA=Integer.parseInt(st.nextToken());\n\t\tB=Integer.parseInt(st.nextToken());\n\t\ta=new int[2*A-1];\n\t\tb=new int[2*B-1];\n\t\tsumA=new HashMap<>();\n\t\tsumB=new HashMap<>();\n\t\tfor(int i=0;i<A;++i) {\n\t\t\tif(i==A-1) {\n\t\t\t\ta[i]=Integer.parseInt(br.readLine());\n\t\t\t}else {\n\t\t\t\tint tmp=Integer.parseInt(br.readLine());\n\t\t\t\ta[i]=tmp;\n\t\t\t\ta[i+A]=tmp;\n\t\t\t}\n\t\t}\n\t\tfor(int i=0;i<B;++i) {\n\t\t\tif(i==B-1) {\n\t\t\t\tb[i]=Integer.parseInt(br.readLine());\n\t\t\t}else {\n\t\t\t\tint tmp=Integer.parseInt(br.readLine());\n\t\t\t\tb[i]=tmp;\n\t\t\t\tb[i+B]=tmp;\n\t\t\t}\n\t\t}\n\t\tfor(int i=1;i<a.length;++i) {\n\t\t\ta[i]+=a[i-1];\n\t\t}\n\t\tfor(int i=1;i<b.length;++i) {\n\t\t\tb[i]+=b[i-1];\n\t\t}\n\t\tint idx=0;\n\t\tfor(int i=1;i<A;++i) {\n\t\t\tfor(int j=0;j<A;++j) {\n\t\t\t\tif(sumA.containsKey(a[j+i]-a[j])) {\n\t\t\t\t\tsumA.put(a[j+i]-a[j], sumA.get(a[j+i]-a[j])+1);\n\t\t\t\t}else {\n\t\t\t\t\tsumA.put(a[j+i]-a[j], 1);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tsumA.put(a[A-1], 1);\n\t\tsumA.put(0, 1);\n\t\tfor(int i=1;i<B;++i) {\n\t\t\tfor(int j=0;j<B;++j) {\n\t\t\t\tif(sumB.containsKey(b[j+i]-b[j])) {\n\t\t\t\t\tsumB.put(b[j+i]-b[j], sumB.get(b[j+i]-b[j])+1);\n\t\t\t\t}else {\n\t\t\t\t\tsumB.put(b[j+i]-b[j], 1);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tsumB.put(b[B-1], 1);\n\t\tsumB.put(0, 1);\n\t\tIterator<Integer> it=sumA.keySet().iterator();\n\t\twhile(it.hasNext()) {\n\t\t\tint aa=it.next();\n\t\t\tint bb=N-aa;\n\t\t\tif(sumB.containsKey(bb)) {\n\t\t\t\tans+=sumA.get(aa)*sumB.get(bb);\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(ans);\n\t}", "title": "" }, { "docid": "c3c52df61f80cc6b8d6854d140229656", "score": "0.5519716", "text": "public static void ex17() {\n // )-: DON'T DO THIS! THIS IS A BAD IDEA! :-(\n long[] sum = { 0 };\n LongStream.rangeClosed(1, LIMIT)\n .forEach(i -> sum[0] += i);\n System.out.println(sum[0]);\n }", "title": "" }, { "docid": "ef2d9cd392cda00e0a13b8ac9d119dfd", "score": "0.55109084", "text": "public static void main(String[] args) {\n\t\tint s=0;\r\n\t\tint a=0;\r\n\t\tint b=1;\r\n\t\tfor(int i=0;i<20;i++) {\r\n\t\t\tSystem.out.println(b);\r\n\t\t\tint c=a+b;\r\n\t\t\ta=b;\r\n\t\t\tb=c;\r\n\t\t\t\r\n\t\t\ts=s+b;\r\n\t\t}\r\n int avg=s/20;\r\n System.out.println(\"\\n\");\r\n System.out.println(avg);\r\n\t}", "title": "" }, { "docid": "36fc68cd29f95e197915874bc686155b", "score": "0.54976875", "text": "public static void main(String[] args) {\n\r\n\t\tScanner sc = new Scanner (System.in);\r\n\t\tint t= sc.nextInt();\r\n\t\tfor(int o =0;o<t;o++) {\r\n\t\t\tint n = sc.nextInt();\r\n\t\t\tint arr[] = new int[n];\r\n\t\t\tint sum = 0;\r\n\t\t\tfor(int i =0;i<n;i++) {\r\n\t\t\t\tarr[i] = sc.nextInt();\r\n\t\t\t\tsum += arr[i];\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tint arr2[] = new int[n];\r\n\t\t\tfor(int i =0;i<n;i++){\r\n\t\t\t\tarr2[i] = arr[i];\r\n\t\t\t}\r\n\t\t\tfor(int i = 1;i<n;i++) {\r\n\t\t\t\tif((arr[i] - arr2[i]) > 0) {\r\n\t\t\t\t\tif(arr2[i-1] < arr2[i]) {\r\n\t\t\t\t\t\tarr2[i] = arr2[i-1];\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tarr2[i-1] = arr2[i];\r\n\t\t\t\t\t}\r\n\t\t\t\t} else {\r\n\t\t\t\t\tif(arr2[i-1] < arr2[i]) {\r\n\t\t\t\t\t\tarr2[i] = arr2[i-1];\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tarr2[i] = arr2[i-1]/2;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t\r\n//\t\t\tArrays.sort(arr);\r\n//\t\t\tint temp2 = arr[n / 2];\r\n//\t\t\tint temp = sum / 2;\r\n//\t\t\ttemp /= n;\r\n//\t\t\tif(temp == 0) {\r\n//\t\t\t\ttemp++;\r\n//\t\t\t}\r\n//\t\t\tint arr1[] = new int[n];\r\n//\t\t\tfor(int i = 0;i<n;i++) {\r\n//\t\t\t\tarr1[i] = temp2;\r\n//\t\t\t}\r\n//\t\t\tfor(int i = 0;i<n;i++) {\r\n//\t\t\t\tSystem.out.print(arr1[i] + \" \");\r\n//\t\t\t}\r\n//\t\t\tSystem.out.println();\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t}", "title": "" }, { "docid": "8c0f161a57ec48d7484b0549a12f3af3", "score": "0.5495697", "text": "@Override\n\tpublic void run() {\n\t\t\n\t\tIntegerArithmeticTest();\n\t\tBranchingTest();\n\t\tArrayAccessTest();\n\t\t// (27 + 18) * workload + 20 * size \n\t}", "title": "" }, { "docid": "604247d5fd2fb873ca930db8652188e5", "score": "0.5490115", "text": "@Override\n protected Z computeNext() {\n final int n = size();\n final int m = n % mSect;\n final int q = n / mSect;\n if (n < mSect) {\n return n == (mSect - 1) ? Z.ONE : Z.ZERO;\n }\n Z sum = Z.ZERO;\n for (int j = 0; j <= m; ++j) {\n sum = sum.add(a(q + m - j).multiply(((j & 1) == 0) ? 1 : -1).multiply(Binomial.binomial(m, j)));\n }\n return sum;\n }", "title": "" }, { "docid": "9b4b80db89dd3168eca78145a6d22b2b", "score": "0.5489132", "text": "long calculate(){\n\t\tboolean found = false;\n\t\tint count = 0;\n\t\twhile (!found){\n\t\t\tcount+=2;\n\t\t\tif(divisibleAll(count, 20))\n\t\t\t\tfound = true;\n\t\t}\n\t\tmyAnswer = count;\n\t\treturn myAnswer;\n\t}", "title": "" }, { "docid": "eb1012d68fe70bf25dd457ce99938fb5", "score": "0.54815644", "text": "private static long sum(int i, int j, int[] a) {\n\n long s = 0;\n\n for(int k = i; k >= j; k --){\n s += a[k];\n }\n return s;\n }", "title": "" }, { "docid": "8c7635cefaa06a9a855230479dce9b89", "score": "0.54813695", "text": "public static void main(String[] args) {\nlong sum=0;\nint a=1,b=1,c=0;\nwhile(c<4000000)\n{\n\tif(c%2==0)\n\t\tsum+=c;\n\t//System.out.println(c);\n\tc=a+b;\n\ta=b;\n\tb=c;\n\t\n\t}\nSystem.out.println(sum);\n\t}", "title": "" }, { "docid": "97bb7f143dac10c38577110eb006ed34", "score": "0.54772717", "text": "public static void main(String[] args) {\n\t\tScanner in = new Scanner(System.in);\n\t\tint n = in.nextInt();\n\t\tint A[] = new int[n];\n\t\tint B[] = new int[n];\n\t\tfor(int i=0;i<n;i++)\n\t\t\tA[i] = in.nextInt();\n\t\tfor(int i=0;i<n;i++)\n\t\t\tB[i] = in.nextInt();\n\t\tlong count=0,currsumA=0,currsumB=0;\n\t\tint flag=0;\n\t\tfor(int i=0;i<n;i++){\n\t\t\tif(A[i]!=B[i]){\n\t\t\t\tcurrsumA = currsumA + A[i];\n\t\t\t\tcurrsumB = currsumB + B[i]; \n\t\t\t}\n\t\t\telse{\n\t\t\t\tif(currsumA>currsumB)\n\t\t\t\t\tcount = count + currsumA;\n\t\t\t\telse\n\t\t\t\t\tcount = count + currsumB;\n\t\t\t\tcurrsumA=A[i];\n\t\t\t\tcurrsumB=B[i];\n\t\t\t}\n\t\t}\n\t\tif(currsumA>currsumB)\n\t\t\tcount = count + currsumA;\n\t\telse\n\t\t\tcount = count + currsumB;\n\t\tSystem.out.println(count);\n\t\t/*if(A[0]>B[0]){\n\t\t\tcount=A[0];\n\t\t\tflag=1;\n\t\t}\n\t\telse{\n\t\t\tcount=B[0];\n\t\t\tflag=2;\n\t\t}\n\t\tfor(int i=1;i<n;i++){\n\t\t\tif(A[i]!=B[i]){\n\t\t\t\tif(flag==1)\n\t\t\t\t\tcount = count + A[i];\n\t\t\t\telse if(flag==2)\n\t\t\t\t\tcount = count + B[i];\n\t\t\t}\n\t\t\telse{\n\t\t\t\tif(i==n-1){\n\t\t\t\t\tcount = count + A[i];\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tif(A[i+1]>B[i+1]){\n\t\t\t\t\t\tflag=1;\n\t\t\t\t\t\tcount = count + A[i];\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\tflag=2;\n\t\t\t\t\t\tcount = count + B[i];\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\t\tSystem.out.println(count);*/\n }", "title": "" }, { "docid": "5f917345e62741e6beb55e8f7f5eef5e", "score": "0.5447307", "text": "public static double step13() {\n return TWEETS\n .stream()\n .parallel()\n .mapToInt(t -> t.getHashTags().size())\n .average()\n .orElse(0L);\n }", "title": "" }, { "docid": "f98f837bbdc0d85de7c9164b9fac167c", "score": "0.5442288", "text": "int sum(){\n\t\tint sum = 0;\n\t\tfor (int x = 0; x < mainArray.length; x++){\n\t\t\tsum += mainArray[x];\n\t\t}\n\t\treturn sum;\n\t}", "title": "" }, { "docid": "276a2edbdc41d2b3fa25834046e6c334", "score": "0.54350156", "text": "public static void main(String[] args) throws Exception {\n\t\tBufferedReader br = new BufferedReader(new FileReader(\"C:/workplace/gitrepo/algoworkshop/src/pretest2/sample_input.txt\"));\r\n//\t\tBufferedReader br = new BufferedReader(new FileReader(\"C:/workplace/algostudy/src/pretest2/sample_input2.txt\"));\r\n\t\t// 1. 테스트케이스 수\r\n\t\tint T = Integer.parseInt(br.readLine().trim());\r\n\t\t\r\n\t\tfor(int t=0 ; t<T ; t++) {\r\n\t\t\t\r\n\t\t\t// 2. 붕어빵기계수 : N, 발전기수 : M, 기간 : K\r\n\t\t\t// 1 <= N,M,K <= 100,000\r\n\t\t\tString[] rl = (br.readLine().trim()).split(\" \");\r\n\t\t\tint N = Integer.parseInt(rl[0]); // 붕어빵기계수\r\n\t\t\tint M = Integer.parseInt(rl[1]); // 발전기수\r\n\t\t\tint K = Integer.parseInt(rl[2]); // 기간\r\n\t\t\t\r\n\t\t\ton_cnt = 0;\r\n\t\t\tscore_sum = 0;\r\n\t\t\t//mg = new int[N][4]; // 기계별 연결된 발전기 및 필요 에너지\r\n\t\t\t\r\n\r\n\t\t\t\r\n\t\t\t// 3. 기간(K) 동안 일자별 전력공급 발전기 번호\r\n\t\t\tdayPlan = (br.readLine().trim()).split(\" \");\r\n\t\t\t\r\n\t\t\tal_gd = new ArrayList[M]; // 발전기별 에너지 공급일\r\n\t\t\tday_on_cnt = new int[K]; // 일별 On 되는 기계수\r\n\t\t\tint g = 0;\r\n\t\t\t\r\n\t\t\tfor(int i=0 ; i<K ; i++) {\r\n\t\t\t\t\r\n\t\t\t\tg = Integer.parseInt(dayPlan[i]); // 일자별 발전기\r\n\t\t\t\t\r\n\t\t\t\tif(al_gd[g-1] == null) {\r\n\t\t\t\t\tal_gd[g-1] = new ArrayList<Integer>();\r\n\t\t\t\t}\r\n\t\t\t\tal_gd[g-1].add(i+1); // 발전기에 에너지가 공급되는 일자 저장\r\n\t\t\t\t\r\n\t\t\t\tday_on_cnt[i] = 0;\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// 4. 붕어빵 기계에 연결된 발전기(3개) 및 필요한 에너지량(P)\t\r\n\t\t\tmg = new int[N][3];\r\n\t\t\tme_for_on = new int[N]; // 기계별 작동에 필요한 에너지량\r\n\t\t\tString[] tmp = new String[4];\r\n\t\t\tint turn_on_day;\r\n\t\t\tfor(int i=0 ; i<N ; i++) {\r\n\t\t\t\ttmp = (br.readLine().trim()).split(\" \");\r\n\t\t\t\tmg[i][0] = Integer.parseInt(tmp[0]); //연결된 발전기 #1\r\n\t\t\t\tmg[i][1] = Integer.parseInt(tmp[1]); //연결된 발전기 #2\r\n\t\t\t\tmg[i][2] = Integer.parseInt(tmp[2]); //연결된 발전기 #3\r\n\t\t\t\t\r\n\t\t\t\tme_for_on[i] = Integer.parseInt(tmp[3]); //필요한 에너지량\r\n\t\t\t\t\r\n\t\t\t\tturn_on_day = searchFirstOpDay(i);\r\n\t\t\t\t\r\n//\t\t\t\tSystem.out.println(\"*Machine\" + (i+1) + \" turn-on day : \" + turn_on_day);\r\n\t\t\t\t\r\n\t\t\t\tif(turn_on_day > 0) {\r\n\t\t\t\t\tday_on_cnt[turn_on_day-1]++; //해당 기계가 최초작동하는 일자를 구하여 기계수를 증가시킴\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tlong daily_score = 0;\r\n\t\t\tlong total_score = 0;\r\n\t\t\t\r\n\t\t\tint daily_on_cnt = 0;\r\n\t\t\tint total_on_cnt = 0;\r\n\t\t\t\r\n\t\t\tfor(int i=0 ; i<K ; i++) {\r\n\t\t\t\tdaily_on_cnt = day_on_cnt[i];\r\n\t\t\t\t\r\n\t\t\t\ttotal_on_cnt = total_on_cnt + daily_on_cnt;\r\n\t\t\t\t\r\n\t\t\t\tSystem.out.println(\"*DAY\" + (i+1) + \" turn-on machine cnt : \" + daily_on_cnt);\r\n\t\t\t\t\r\n//\t\t\t\tSystem.out.println(\"*DAY\" + (i+1) + \" total operating machine cnt : \" + total_on_cnt);\r\n\t\t\t\t\r\n\t\t\t\tdaily_score = total_on_cnt * (i+1);\r\n\t\t\t\t\r\n\t\t\t\ttotal_score = total_score + daily_score;\r\n\t\t\t}\r\n\r\n\t\t\t\r\n\t\t\tSystem.out.println(\"#\" + (t+1) + \" \" + total_score%DIV) ;\r\n\t\t\t\r\n\t\t} /* 테스트케이스 */\r\n\t\t\r\n\t\t\r\n\t}", "title": "" }, { "docid": "7e2bacbfd612d82fadb451d12211cfba", "score": "0.5429721", "text": "static void findCnt(long []arr, int n, long sum) { \n dp = new long[n+1][(int)sum+1]; \n\n for (int i = 0; i <= n; i++) { \n dp[i][0] = 1; \n }\n for (int j = 1; j <= sum; j++){\n dp[0][j] = 0; \n }\n for (int i = 1; i <= n; i++) {\n for (int j = 1; j <= sum; j++) {\n if (j >= arr[i-1]){\n dp[i][j] = dp[i-1][j] + dp[i-1][j-(int) arr[i-1]];\n } else {\n dp[i][j] = dp[i-1][j];\n }\n }\n } \n System.out.println(\"The total number of subests is: \" + dp[n][(int)sum]); \n }", "title": "" }, { "docid": "49bb02286b3c400a946c90a3054fbb3b", "score": "0.5429398", "text": "public static void main(String[] args) throws Exception {\n\t\tScanner scan = new Scanner(new File(\"algosrhythm.in\"));\n\t\tint a = scan.nextInt();\n\t\tscan.nextLine();\n\t\tfor (int ii = 0; ii < a; ii++) {\n\t\t\toutput = new ArrayList();\n\t\t\tint b = scan.nextInt();\n\t\t\tfindSum = b;\n\t\t\tnumb = new int[b + (b / 2) + 1 + (b / 3)];\n\t\t\t// System.out.println(b);\n\t\t\tfor (int ip = 0; ip < b; ip++) {\n\t\t\t\tnumb[ip] = 1;\n\t\t\t\t// numb[ip + (b * 2)] = 4;\n\t\t\t}\n\t\t\tfor (int ip = 0; ip < (b / 2) + 1; ip++) {\n\t\t\t\tnumb[b + ip] = 2;\n\t\t\t}\n\t\t\tfor (int ip = 0; ip < (b / 3); ip++) {\n\t\t\t\tnumb[(b + b / 2) + 1 + ip] = 4;\n\t\t\t}\n\t\t\t// System.out.println(Arrays.toString(numb));\n\t\t\t// fill used array to false before we start\n\t\t\tused = new boolean[numb.length];\n\t\t\tArrays.fill(used, false);\n\t\t\tfindSums(0, \"\");\n\t\t\tSystem.out.println(output.size());\n\t\t\t/*\n\t\t\t * for(String s : output){ System.out.println(s); }\n\t\t\t */\n\t\t\toutput.clear();\n\t\t}\n\t}", "title": "" }, { "docid": "3a4aa294f47a530236e0ef5c301c659a", "score": "0.54250395", "text": "public static void main(String[] args) {\n Scanner s=new Scanner(System.in);\n int T=s.nextInt();\n for(int m=0;m<T;m++)\n {\n int n=s.nextInt();\n int arr[]=new int[n];\n for(int i=0;i<n;i++)\n arr[i]=s.nextInt();\n \n int li=0;\n int ri=n-1;\n int lsum=arr[li];\n int rsum=arr[ri];\n while(li!=ri)\n {\n if(lsum<rsum)\n {\n lsum+=arr[++li];\n }\n else\n {\n rsum+=arr[--ri];\n }\n }\n System.out.println(lsum==rsum?\"YES\":\"NO\");\n \n \n }\n \n }", "title": "" }, { "docid": "d56463f62f174f3a8319c51d9fc39c49", "score": "0.5423906", "text": "public static int Test2() {\n int n = 36;\n float [] radius = new float [n];\nRandom r = new Random();\nfor (int i = 0; i< n ; i++) {\n radius[i] = r.nextFloat();\n}\nint sum = 0;\nfor (int ii= 0 ; ii< n; ii++){\n int k = 11*ii;\n int m = k + 5;\n sum += radius[ii] + m;\n}\n return sum;\n}", "title": "" }, { "docid": "cf4150930a7c775485cd02b4a0f8310d", "score": "0.54174066", "text": "public static void main(String[] args) {\r\n\t\tfinal int divNum = 1000000000;\r\n\t\tScanner scan = new Scanner(System.in);\r\n\t\tint N = scan.nextInt();\r\n\t\tlong d[][] = new long[N + 1][10];\r\n\t\t\r\n\t\tfor (int i = 1; i < 10; i++)\r\n\t\t\td[1][i] = 1;\r\n\t\tfor (int i = 2; i <= N; i++) {\r\n\t\t\td[i][0] = d[i - 1][1];\r\n\t\t\tfor (int j = 1; j < 9; j++)\r\n\t\t\t\td[i][j] = (d[i - 1][j - 1] + d[i - 1][j + 1]) % divNum;\r\n\t\t\td[i][9] = d[i - 1][8];\r\n\t\t}\r\n\t\t\r\n\t\tlong sum = 0;\r\n\t\tfor (int i = 0; i < 10; i++)\r\n\t\t\tsum = (sum + d[N][i]) % divNum;\r\n\t\t\r\n\t\tSystem.out.println(sum);\r\n\t\tscan.close();\r\n\t}", "title": "" }, { "docid": "fa5541f648357e0d8bef9d8ebac50024", "score": "0.5417402", "text": "public static void main (String[] args) throws InterruptedException {\n Scanner sc = new Scanner(System.in);\n System.out.println(\"Enter log size (you're gonna have to enter 2 ^ (logSize) elements ) :\");\n LOGSIZE = sc.nextInt(); \n SIZE = 1 << LOGSIZE;\n\n y = new int [LOGSIZE + 1] [SIZE + 1];\n z = new int [LOGSIZE + 1] [SIZE + 1];\n\n x = new int[SIZE+1]; /* x[0] is not used */ \n System.out.println(\"Enter list elements you want to apply prefix sum on \" + \"( they are \"+ SIZE + \" elements ) :\" );\n for (int i = 1; i <= SIZE; i++) x[i] = sc.nextInt(); \n \n s = new int[SIZE+1];\n barrier = new Barrier (SIZE) ;\n\n long t1 = new Date().getTime(); \n \n/* launch threads */\n for (int i = SIZE; i>1; i--)\n new Adder(i, y, z).start();\n \n Adder last = new Adder(1, y, z);\n last.start();\n \n/* wait for completion */\n last.join();\n System.out.println(\"Using PARALLEL PREFIX SUM the output list is : \");\n for (int i = 1; i <= SIZE; i++) System.out.print(s[i]+\" \"); \n System.out.println(\"\\nUsing Serial PREFIX SUM the output list is : \");\n serialPrefixSum(x);\n for (int i = 1; i <= SIZE; i++) System.out.print(x[i]+\" \"); \n\n\n \n \n // long t2 = new Date().getTime();\n // System.out.println (\"Elapsed time: \" + (t2 - t1) + \" msec\");\n\n }", "title": "" }, { "docid": "6bf548854d719c50964895877ad3199c", "score": "0.541597", "text": "static void runAll(bundle b, int dataSize) throws IOException{\n StringBuilder sb = new StringBuilder();\n sb.append(\"Test Results: Dataset Size \" + dataSize +\"\\n\");\n\n sb.append(runSequential(b)); // run sequential sum algorithm\n\n sb.append(\"Average time (seconds) taken for parallel sums with different sequential cutoffs (50 to 2000, steps of 25):\\n\");\n for(int s=50; s<=1000 ; s+=25) {\n Constants.setSequentialCutoff(s); // increment sequential cutoff by 25\n sb.append(runParallel(b)+\"\\n\"); // run parallel sum algorithm\n }\n System.out.println(\"Writing results to: testResults/...\");\n BufferedWriter bw = new BufferedWriter(new FileWriter(\"testResults/Data_Set_Size:_\"+Integer.toString(dataSize)));\n bw.write(sb.toString());\n bw.close();\n }", "title": "" }, { "docid": "bc84375cb49f180f309b37db78ce1f1c", "score": "0.5410877", "text": "@Override\n\t\t\tpublic void run() {\n\t\t\t\twhile(true){\n\t\t\t\t\tsynchronized (\"\") {\n\t\t\t\t\t\t\n\t\t\t\t\tsum=sum1+sum2+sum3+sum4;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"1-100总和:\"+sum);\n\t\t\t}", "title": "" }, { "docid": "6e567e8d2f68ba28f4673f5f30c9d3f4", "score": "0.5393127", "text": "int getNumIterations();", "title": "" }, { "docid": "75374513264c035259070802c10b8dc5", "score": "0.5385117", "text": "public void RTAcore_per_task(){\r\n\t\t//System.out.println(\"Starting RTA...\");\r\n\r\n\t\t//response time task n\r\n\t\tfor(int z=0;z<tasks.size();z++){\r\n\t\t\tdouble response=0;\r\n\t\t\tdouble response_n=tasks.get(z).processInstructions();\r\n\t\t\tdo{\r\n\t\t\t\tresponse=response_n;\r\n\t\t\t\tresponse_n=tasks.get(z).processInstructions();\r\n\t\t\t\tfor(int j=0;j<z;j++){\r\n\t\t\t\t\tint ceil=(int)Math.ceil(response / tasks.get(j).period);\r\n\t\t\t\t\tresponse_n+=(double)ceil*tasks.get(j).processInstructions();\r\n\t\t\t\t}\r\n\t\t\t}while(response_n>response);\r\n\t\t\ttasks.get(z).responseTime=response_n;\r\n\t\t}\r\n\t\t\r\n\t\t//System.out.println(\"RTA Finished\");\r\n\t}", "title": "" }, { "docid": "b2eeae7e2fc3b8738554e413790150cb", "score": "0.5379828", "text": "public static void main(String[] args)\n\t{\n\t\tlong startTime = System.currentTimeMillis();\n\n//\t\tint ct = 0;\n//\t\tfor ( int i = 1154; i < 1000000; i++ )\n//\t\t{\n//\t\t\tif ( i % 100000 == 0 )\n//\t\t\t\tSystem.out.println(i/10000 + \"% complete.\");\n//\t\t\tif ( solutions(i) == 10 )\n//\t\t\t\tct++;\n//\t\t}\n//\t\tSystem.out.println(ct);\n\t\t\n\t\t final int limit = 1000000;\n\t\t int[] sols = new int[limit];\n\t\t \n\t\t for (int p = 1; p < limit; p++)\n\t\t {\n\t\t int q = 1;\n\t\t while (p * q < limit)\n\t\t {\n\t\t \t//(3d-a)(a+d) = n\n\t\t \t// p = 3d - a\n\t\t \t// q = \td + a\n\t\t \t\n\t\t \t// d = (p+q)/4\n\t\t \t// a = (3q-p)/4\n\t\t if ( (p+q) % 4 == 0 && 3 * q > p && (3*q - p) % 4 == 0)\n\t\t sols[p * q] ++;\n\t\t q++;\n\t\t }\n\t\t }\n\t\t \n\t\t int count = 0;\n\t\t for (int i = 1; i < limit; i++)\n\t\t if (sols[i] == 10)\n\t\t count++;\n\t\t System.out.println(count);\n\t\t\n\t\t/**\n\t\t * 1444^2 - 1155^2 - 866^2 = 1155\n\t\t\t482^2 - 385^2 - 288^2 = 1155\n\t\t\t290^2 - 231^2 - 172^2 = 1155\n\t\t\t208^2 - 165^2 - 122^2 = 1155\n\t\t\t134^2 - 105^2 - 76^2 = 1155\n\t\t\t100^2 - 77^2 - 54^2 = 1155\n\t\t\t74^2 - 55^2 - 36^2 = 1155\n\t\t\t52^2 - 35^2 - 18^2 = 1155\n\t\t */\n\t\t//1444,1155,866 --> a = 866, d = 289, p = 1, q = 1155\n\t\t//482,385,288 --> a = 288, d = 97, p = 3, q = 385\n\t\t//290,231,172 --> a = 172, d = 59, p = 5, q = 231\n\t\t//208,165,122 --> a = 122, d = 43, p = 7, q = 165\n\t\t//134,105,76 --> a = 76, d = 29, p = 11, q = 105\n\t\t//100,77,54 --> a = 54, d = 23, p = 15, q = 77\n\t\t//74,55,36 --> a = 36, d = 19, p = 21, q = 55\n\t\t//52,35,18 --> a = 18, d = 17, p = 33, q = 35\n\t\t\n\t\t//50,33,16 --> a = 16, d = 17, p = 35, q = 33\n\t\t//40,21,2 --> a = 2, d = 19, p = 55, q = 21\n\n\t\tlong endTime = System.currentTimeMillis();\n\t\tSystem.out.println(\"The program took \" + (endTime - startTime) + \" ms to compile.\"); \n\n\t}", "title": "" }, { "docid": "b42b063def562b7de01a8ae37deb9c82", "score": "0.53797454", "text": "public void ComputeAverages(){\n for(int i = 0; i < transmissionInSizes.size(); i++){\n averageTransmissionInSize += transmissionInSizes.get(i);\n }\n averageTransmissionInSize /= transmissionInSizes.size();\n\n // Average Transmission Out Size\n for(int i = 0; i < transmissionOutSizes.size(); i++){\n averageTransmissionOutSize += transmissionOutSizes.get(i);\n }\n averageTransmissionOutSize /= transmissionOutSizes.size();\n\n // Average Transmission Time\n for(int i = 0; i < transmissionTimes.size(); i++){\n averageTransmissionTime += transmissionTimes.get(i);\n }\n averageTransmissionTime /= transmissionTimes.size();\n\n //Calculate Efficiency (chars/ms)\n for(int i = 0; i < efficiencies.size(); i++){\n averageEfficiency += efficiencies.get(i);\n }\n averageEfficiency /= efficiencies.size();\n\n\n }", "title": "" }, { "docid": "b92c3775ba77d3bbf3ccba2aaed17724", "score": "0.5374707", "text": "default long benchmark(int tests, int iterationsPerTest) {\n\t\tBigInteger sum = BigInteger.valueOf(0L);\n\n\t\tint testsCompleted = 0;\n\n\t\tbeforeStress();\n\t\twhile (testsCompleted++ < tests) {\n\t\t\tsum = sum.add(new BigInteger(Long.toString(stress(iterationsPerTest))));\n\t\t}\n\t\treturn sum.divide(new BigInteger(Integer.toString(tests))).longValue();\n\t}", "title": "" }, { "docid": "6402577fbfc18aadedb652dfa62c71fb", "score": "0.5373623", "text": "public void cal() {\n \tfor(int m=0;m<bagkg.size();m++) { amount.add(((bagkg.get(m)-1)*rate)); }\n // To calculate sum.\n \tfor (Double d : amount) { sum += d; }\n \tgunnie=20*bags;\n revaze=5*bags;\n sum=sum+gunnie+revaze;\n sum=twoDecimal(sum);\n sum=Math.round(sum);\n kolagaram=Math.round(precentage(per));\n sum=sum+kolagaram;\n totam=sum+vat+coolie+railway;\n }", "title": "" }, { "docid": "215af68c4b62822a19ffdab97bdd64b6", "score": "0.5371068", "text": "public static void main(String[] args) {\r\n\r\n System.out.println(\"Hello World!\");\r\n List<Integer> list = Arrays.asList(2, 3, 5, 7, 9);\r\n List<Integer> list2 = Arrays.asList(1, 2, 3, 5, 7, 9, 10, 11);\r\n ArrayList<Integer> newList = new ArrayList<Integer>(list2);\r\n //System.out.println(newList);\r\n //all_possible_subsets(newList);\r\n\r\n // 7 or (111)b, 7 >> 1 means Shift 7 or (111)b to the right by 1 into 3 or (11)b\r\n //System.out.println( Integer.toBinaryString(7 >> 1) );\r\n\r\n //all_possible_subsets(newList);\r\n\r\n //brute_force(newList, 20);\r\n\r\n // Boolean[][] myTable = dynamic_programming(newList, 20);\r\n //dp_recover(newList, 20, myTable);\r\n\r\n // List to keep the runtimes of each program\r\n ArrayList<Long> timeList = new ArrayList<>(50);\r\n \r\n //Driver(30, 1000, true);\r\n try { \r\n\r\n for(int x = 5; x <= 35; x++) \r\n {\r\n timeList.add(Driver(x, 1000000, false));\r\n System.gc();\r\n }\r\n\r\n } catch(Error e) {\r\n System.out.println(e);\r\n System.out.println(timeList);\r\n }\r\n\r\n \r\n System.out.println(timeList);\r\n \r\n //Driver(20, 1000, true);\r\n //Driver(100, 1000, false);\r\n //Driver(100, 1000, true);\r\n //clever_algorithm(newList, 20);\r\n \r\n\r\n }", "title": "" }, { "docid": "1506eae9513d21b09daf4d1d0393f6c5", "score": "0.5366487", "text": "private static void runCalculations()\n {\n // Create a random park time simulator\n BaseSyncOpSimulator syncOpSimulator = new SyncOpSimulLongOperation();\n\n // Execute the operation lot of times\n for(int i = 0; i < 200000; i++)\n {\n //marcamos el starttime antes de realizar executeOp()\n long startTime = System.nanoTime();\n \n syncOpSimulator.executeOp();\n\n //marca el endtime despues de finalizado el executeOp()\n \tlong endTime = System.nanoTime();\n \t//se guardan los datos del histograma\n histogram.recordValue((endTime - startTime) / 1000 );\n }\n\n // TODO Show min, max, mean and percentiles 99 and 99,9 with and without warm up\n System.out.println(\"\\npercentile 99.9: \" + histogram.getValueAtPercentile(99.9) + \"\\n\");\n System.out.println(\"percentile 99: \" + histogram.getValueAtPercentile(99) + \"\\n\");\n System.out.println(\"Media: \" + histogram.getMean() + \"\\n\");\n System.out.println(\"Minima: \" + histogram.getMinValue() + \"\\n\");\n System.out.println(\"Maxima: \" + histogram.getMaxValue() + \"\\n\");\n \n\n }", "title": "" }, { "docid": "b94f17b76d33733b011df8f6a494d8cc", "score": "0.5366057", "text": "abstract double getSum();", "title": "" }, { "docid": "052ab18246862f3141d99debede811bb", "score": "0.5350694", "text": "private static double calculateSum(double[] rainfall){\n\n double sum = 0;\n\n for(double element : rainfall){\n sum += element;\n }\n\n return sum;\n }", "title": "" }, { "docid": "1e9ece488b6f1aff5b0bcd4cb47d40be", "score": "0.53502107", "text": "public void projectEuler1(){\n\n\t\tlong start = System.currentTimeMillis();\n\t\tint sum = 0;\n\n\t\tfor(int i=3;i<1000;i++){\n\t\t\tif(i%3==0 || i%5==0){\n\t\t\t\tsum = sum + i;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(\"Sum is \"+sum);\n\n\t\tlong time = System.currentTimeMillis() - start;\n\t\tSystem.out.println(\"Time is : \" + time + \" ms\");\n\t}", "title": "" }, { "docid": "77a0138d9646dbf36471e51b02c36675", "score": "0.5348729", "text": "private static int calculateAverage(int[] temp){\n int runningSum = 0;\n\n for(int element : temp){\n runningSum += element;\n }\n\n return (runningSum / temp.length);\n }", "title": "" }, { "docid": "f16fe9158a8ce836e7f8b0a9fd94f054", "score": "0.53448004", "text": "synchronized public void run() {\n\t\tfor (int i = 0; i < arr.size(); i++) {\r\n\t\t\tsum = sum + arr.get(i);\r\n\t\t}\t\r\n\t\tThread.sleep(1000);\r\n\t\tSystem.out.println(\"Thread no.\"+t+\" has a total of:\"+sum);\r\n\t}", "title": "" }, { "docid": "d72d31d1519f71a2dcae09ab02cb205e", "score": "0.53418714", "text": "private static double testJava(int program, int trials) {\n\t\tdouble avg = 0;\n\t\tif (program == 1) {\n\t\t\tfor (int i = 0; i < trials; i++) {\n\t\t\t\tlong start = System.nanoTime();\n\t\t\t\tint a = 45;\n\t\t\t\ta *= 30;\n\t\t\t\tint b = 0;\n\t\t\t\tb += a;\n\t\t\t\tb += b;\n\t\t\t\ta = a;\n\t\t\t\ta = 40;\n\t\t\t\tb *= 2;\n\t\t\t\tSystem.out.print(\"a=\" + a);\n\t\t\t\tSystem.out.print(\"b=\" + b);\n\t\t\t\tlong end = System.nanoTime();\n\t\t\t\tavg += end-start;\n\t\t\t}\n\t\t} else if (program == 2) {\n\t\t\tfor (int i = 0; i < trials; i++ ) {\n\t\t\t\tlong start = System.nanoTime();\n\t\t\t\tint B = 10 ;\n\t\t\t\tint A = B ;\n\t\t\t\tint C = 30 ;\n\t\t\t\tint D = 14 ;\n\t\t\t\tint E = 101 ;\n\t\t\t\tE += C ;\n\t\t\t\tE += D ;\n\t\t\t\tA += E ;\n\t\t\t\tE += E ;\n\t\t\t\tSystem.out.print(\"A=\" + A);\n\t\t\t\tSystem.out.print(\"B=\" + B);\n\t\t\t\tSystem.out.print(\"C=\" + C);\n\t\t\t\tSystem.out.print(\"D=\" + D);\n\t\t\t\tSystem.out.print(\"E=\" + E);\n\t\t\t\tlong end = System.nanoTime();\n\t\t\t\tavg += end-start;\n\t\t\t}\n\t\t}\n\t\treturn (int)avg/trials/1000/(double)1000;\n\t}", "title": "" }, { "docid": "0c574b56dfb0747538517ab5a1efdc18", "score": "0.53293186", "text": "public double calculateTotalDistance(ArrayList<Node> nodes) {\n int lastNode = 0;\n double distance = 0;\n\n for (int i = 0; i < genSize; i++)\n {\n for (int d = 0; d < genSize; d++)\n {\n if(i==0 && genSequence[d]==i) {\n lastNode = d;\n }\n if (genSequence[d] == i)\n {\n distance += nodes.get(lastNode).distanceTo(nodes.get(d));\n lastNode = d;\n }\n }\n }\n return distance;\n }", "title": "" }, { "docid": "83212fd891d7dce1ec88397f20286163", "score": "0.53206635", "text": "public static void main(String[] args) {\n\t\tint sum=0;\r\n\t\tfor(int i=0;i<1000;i++)\r\n\t\t{\r\n\t\t\tif(i>40 && i<250 &&i%5==0)\r\n\t\t\t{\r\n\t\t\t\tsum=sum+i;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t\tSystem.out.println(sum);\r\n\t}", "title": "" }, { "docid": "395406abb8a03113ed2d3611218fa15c", "score": "0.5306937", "text": "private ArrayList<Double> calculateMeanGaitCycle(){\n ArrayList<Double> meanGaitCycle = new ArrayList<Double>();\n\n for(int i = 0; i < gaitSequence.get(0).size(); i++){\n ArrayList<Double> correspondingPoints = new ArrayList<>();\n\n for(int j = 0; j < gaitSequence.size(); j++){\n correspondingPoints.add(gaitSequence.get(j).get(i));\n }\n\n meanGaitCycle.add(getMean(correspondingPoints));\n }\n\n return meanGaitCycle;\n }", "title": "" }, { "docid": "8622b00ebdaa7c3fbc522af8c119b51f", "score": "0.5306673", "text": "@org.junit.Test\n public void basicTestFunction3() {\n String function = null;\n MtasFunctionParser p;\n MtasFunctionParserFunction pf;\n long[] argsQ = null;\n long[] argsD = null;\n try {\n for (int i = 0; i < 1000; i++) {\n int n = getN(0, 10);\n int d = getN(0, 3);\n int i1 = generator.nextInt(100) - 50;\n int o0 = generator.nextInt(4);\n int k1 = generator.nextInt(10);\n int o1 = generator.nextInt(4);\n int k2 = generator.nextInt(10);\n int o2 = generator.nextInt(4);\n int k3 = generator.nextInt(10);\n int o3 = generator.nextInt(4);\n int k4 = generator.nextInt(10);\n int o4 = generator.nextInt(4);\n int k5 = generator.nextInt(10);\n int o5 = generator.nextInt(4);\n int k6 = generator.nextInt(3);\n int o6 = generator.nextInt(4);\n function = i1 + \" \" + getOperator(o0) + \" $q\" + k1 + \" \"\n + getOperator(o1) + \" $q\" + k2 + \" \" + getOperator(o2) + \" $q\" + k3\n + \" \" + getOperator(o3) + \" $q\" + k4 + \" \" + getOperator(o4) + \" $q\"\n + k5 + \" \" + getOperator(o5) + \" $n \" + getOperator(o6) + \" $q\"\n + k6;\n p = new MtasFunctionParser(\n new BufferedReader(new StringReader(function)));\n pf = p.parse();\n int l = 10 + generator.nextInt(20);\n argsQ = getArgsQ(l, -10, 10);\n argsD = getArgsQ(l, 2,8);\n Object answer = null;\n try {\n answer = compute(o0, i1, argsQ[k1]);\n answer = answer instanceof Double\n ? compute(o1, (double) answer, argsQ[k2])\n : compute(o1, (int) answer, argsQ[k2]);\n answer = answer instanceof Double\n ? compute(o2, (double) answer, argsQ[k3])\n : compute(o2, (int) answer, argsQ[k3]);\n answer = answer instanceof Double\n ? compute(o3, (double) answer, argsQ[k4])\n : compute(o3, (int) answer, argsQ[k4]);\n answer = answer instanceof Double\n ? compute(o4, (double) answer, argsQ[k5])\n : compute(o4, (int) answer, argsQ[k5]);\n answer = answer instanceof Double ? compute(o5, (double) answer, n)\n : compute(o5, (int) answer, n);\n answer = answer instanceof Double\n ? compute(o6, (double) answer, argsQ[k6])\n : compute(o6, (int) answer, argsQ[k6]);\n if (answer instanceof Double) {\n testFunction(pf, argsQ,argsD, n, d,\n new MtasFunctionParserFunctionResponseDouble((double) answer,\n true));\n } else {\n testFunction(pf, argsQ,argsD, n, d,\n new MtasFunctionParserFunctionResponseLong((int) answer, true));\n }\n } catch (IOException | IllegalArgumentException e) {\n if (answer != null && answer instanceof Double) {\n testFunction(pf, argsQ,argsD, n, d,\n new MtasFunctionParserFunctionResponseDouble((double) answer,\n false));\n } else {\n testFunction(pf, argsQ,argsD, n, d,\n new MtasFunctionParserFunctionResponseDouble((int) 0, false));\n }\n }\n }\n } catch (ParseException e) {\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "4ee353af866d1c1bf869672603d52e15", "score": "0.529172", "text": "double Iteration (){\n double energy=0;\n numReassigns=1;\n for (Cluster c:clusters){\n numReassigns += c.reassignPoints(clusters);\n }\n for (Cluster e:clusters){\n e.calculateCentroid();\n }\n for (Cluster d:clusters){\n energy += d.getEnergy();\n }\n return energy;\n }", "title": "" }, { "docid": "a1f50de6f6e7b2d3835b003004395208", "score": "0.5289514", "text": "private void computeAverage() {\n\n\t\t// create vector for storing the node ids of elements\n\t\tVector<int[]> ids = new Vector<int[]>();\n\n\t\t// store node id arrays of every element in a vector\n\t\t// loop over elements\n\t\tfor (int i = 0; i < structure_.getNumberOfElements(); i++) {\n\n\t\t\t// get element\n\t\t\tElement e = structure_.getElement(i);\n\n\t\t\t// two dimensional elements\n\t\t\tif (e.getDimension() == ElementLibrary.twoDimensional_) {\n\n\t\t\t\t// get two dimensional element\n\t\t\t\tElement2D e2D = (Element2D) e;\n\n\t\t\t\t// get nodes of element\n\t\t\t\tNode[] nodes = e2D.getNodes();\n\n\t\t\t\t// initialize ids of nodes\n\t\t\t\tint[] nodeIds = new int[nodes.length];\n\n\t\t\t\t// loop over nodes of element\n\t\t\t\tfor (int j = 0; j < nodeIds.length; j++)\n\t\t\t\t\tnodeIds[j] = structure_.indexOfNode(nodes[j]);\n\n\t\t\t\t// set element node ids to ids vector\n\t\t\t\tids.add(nodeIds);\n\t\t\t}\n\t\t}\n\n\t\t// compute and set mean values for each node\n\t\t// initialize node ids and node values vectors\n\t\tVector<Integer> nodeIds = new Vector<Integer>();\n\t\tVector<Double> nodeValues = new Vector<Double>();\n\n\t\t// loop over nodes\n\t\tfor (int i = 0; i < structure_.getNumberOfNodes(); i++) {\n\n\t\t\t// loop over elements\n\t\t\tint k = 0;\n\t\t\tfor (int j = 0; j < ids.size(); j++) {\n\n\t\t\t\t// get the index of node in the element\n\t\t\t\tint index = MathUtil.indexOf(ids.get(j), i);\n\n\t\t\t\t// set value if contains\n\t\t\t\tif (index != -1) {\n\n\t\t\t\t\t// increase capacity if necessary\n\t\t\t\t\tif (i >= nodeValues.size())\n\t\t\t\t\t\tnodeValues.setSize(i + 1);\n\n\t\t\t\t\t// set value\n\t\t\t\t\tDouble val = nodeValues.get(i);\n\t\t\t\t\tif (val != null)\n\t\t\t\t\t\tnodeValues.set(i, val + values_.get(j)[index]);\n\t\t\t\t\telse\n\t\t\t\t\t\tnodeValues.set(i, values_.get(j)[index]);\n\t\t\t\t\tk++;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// compute mean value\n\t\t\tif (k > 0) {\n\t\t\t\tnodeIds.add(i);\n\t\t\t\tnodeValues.set(i, nodeValues.get(i) / k);\n\t\t\t}\n\t\t}\n\n\t\t// set the mean values to elements\n\t\t// loop over node ids\n\t\tfor (int i = 0; i < nodeIds.size(); i++) {\n\n\t\t\t// loop over element node ids\n\t\t\tfor (int j = 0; j < ids.size(); j++) {\n\n\t\t\t\t// check if node is contained\n\t\t\t\tint index = MathUtil.indexOf(ids.get(j), nodeIds.get(i));\n\t\t\t\tif (index != -1)\n\t\t\t\t\tvalues_.get(j)[index] = nodeValues.get(nodeIds.get(i));\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "9c33fd9562b73ea662801437f650b14e", "score": "0.5287921", "text": "public void averageMetrics()\n\t{\n\t\tDecimalFormat df = new DecimalFormat(\"#.##\");\n\n\t\tint totalResponseTime = 0;\n\t\tint totalTurnAroundTime = 0;\n\t\tint totalWaitingTime = 0;\n\t\n\t\tArrayList<Process> completed = cpu.scheduler.completed;\n\t\tint len = completed.size();\n\t\t//System.out.println(\"len=\" + len);\n\t\tfor(int i = 0; i < len; i++)\n\t\t{\n\t\t\tProcess p = completed.get(i);\n\t\t\tp.calculateMetrics();\n\t\t\t//System.out.println(\"p = \" + p.pid + \", responsetime = \" + p.responseTime + \n\t\t\t//\t\t\", turnaround = \" + p.turnAroundTime + \", waittime = \" + p.waitingTime);\n\t\t\ttotalResponseTime += p.responseTime;\n\t\t\ttotalTurnAroundTime += p.turnAroundTime;\n\t\t\ttotalWaitingTime += p.waitingTime;\n\t\t}\n\t\t\n\t\tdouble avgResponseTime = (totalResponseTime / len);\n\t\tdouble avgTurnAroundTime = (totalTurnAroundTime / len);\n\t\tdouble avgWaitingTime = (totalWaitingTime / len);\n\t\t\n\t\tSystem.out.println(\"--- Statistics ---\");\n\t\tSystem.out.println();\n\t\tSystem.out.println(\"Total CPU Time:\\t\\t\\t\" + CPU.getCPUTime());\n\t\tSystem.out.println(\"Average Wait time:\\t\\t\" + df.format(avgWaitingTime));\n\t\tSystem.out.println(\"Average Turnaround time:\\t\" + df.format(avgTurnAroundTime));\n\t\tSystem.out.println(\"Average Response time:\\t\\t\" + df.format(avgResponseTime));\n\t\t\n\t}", "title": "" }, { "docid": "3ea065ad0a722c9a6e4472e7a34a4f42", "score": "0.5285496", "text": "public static ArrayList<Integer> performance(Integer[] tamil, Integer[] english, Integer[] maths, Integer[] science,\r\n Integer[] social) {\n \r\n ArrayList<Integer> performanceArrList=new ArrayList<>(20);\r\n if(tamil.length>0 && tamil!=null && english.length>0 && english!=null &&\r\n maths.length>0 && maths!=null && science.length>0 && science!=null && social.length>0 && social!=null)\r\n {\r\n int ttotal=0,tavg=0;\r\n Arrays.sort(tamil);\r\n Arrays.sort(english);\r\n Arrays.sort(maths);\r\n Arrays.sort(science);\r\n Arrays.sort(social);\r\n int passingMarks=35;\r\n int tCount=0;\r\n for(int i=0;i<tamil.length;i++)\r\n {\r\n ttotal=ttotal+tamil[i];\r\n if(tamil[i]<passingMarks){\r\n tCount=+tCount;\r\n tCount++;\r\n }\r\n }\r\n tavg=ttotal/tamil.length;\r\n performanceArrList.add(0,tavg);\r\n \r\n int etotal=0,eavg=0,eCount=0;\r\n for(int i=0;i<english.length;i++)\r\n {\r\n etotal=etotal+english[i];\r\n if(english[i]<passingMarks)\r\n {\r\n \teCount=+eCount;\r\n \t eCount++;\r\n }\r\n }\r\n eavg=etotal/english.length;\r\n performanceArrList.add(1,eavg);\r\n \r\n int mtotal=0,mavg=0,mCount=0;\r\n for(int i=0;i<maths.length;i++)\r\n {\r\n mtotal=mtotal+maths[i];\r\n if(maths[i]<passingMarks)\r\n {\r\n \tmCount=+mCount;\r\n \t mCount++;\r\n }\r\n }\r\n mavg=mtotal/maths.length;\r\n performanceArrList.add(2,mavg);\r\n \r\n int stotal=0,savg=0,sCount=0;\r\n for(int i=0;i<science.length;i++)\r\n {\r\n stotal=stotal+science[i];\r\n if(science[i]<passingMarks)\r\n {\r\n \tsCount=+sCount;\r\n \t sCount++;\r\n }\r\n }\r\n savg=stotal/science.length;\r\n performanceArrList.add(3,savg);\r\n \r\n int sstotal=0,ssavg=0,ssCount=0;\r\n for(int i=0;i<social.length;i++)\r\n {\r\n sstotal=sstotal+social[i];\r\n if(social[i]<passingMarks)\r\n {\r\n \tssCount=+ssCount;\r\n \t ssCount++;\r\n }\r\n }\r\n ssavg=sstotal/social.length;\r\n performanceArrList.add(4,ssavg);\r\n performanceArrList.add(5,(tamil[tamil.length-1]));\r\n performanceArrList.add(6,(english[english.length-1]));\r\n performanceArrList.add(7,(maths[maths.length-1]));\r\n performanceArrList.add(8,(science[science.length-1]));\r\n performanceArrList.add(9,(social[social.length-1]));\r\n \r\n performanceArrList.add(10,tamil[0]);\r\n performanceArrList.add(11,english[0]);\r\n performanceArrList.add(12,maths[0]);\r\n performanceArrList.add(13,science[0]);\r\n performanceArrList.add(14,social[0]);\r\n \r\n performanceArrList.add(15,tCount);\r\n performanceArrList.add(16,eCount);\r\n performanceArrList.add(17,mCount);\r\n performanceArrList.add(18,sCount);\r\n performanceArrList.add(19,ssCount);\r\n }\r\n \r\n return performanceArrList;\r\n }", "title": "" } ]
a9c218d1c5a5a6ebc7c661535dedf246
Logs a status object to the Eclipse error log.
[ { "docid": "8ed5374e50c8eb5ff568a9b6eeff71e1", "score": "0.65758586", "text": "public static void log(final IStatus status)\n {\n PreferencesPlugin.getDefault().getLog().log(status);\n }", "title": "" } ]
[ { "docid": "d701215af4f83c86d710e8392499020d", "score": "0.6771174", "text": "public static void log(IStatus status) {\n\t\tgetDefault().getLog().log(status);\n\t}", "title": "" }, { "docid": "e072dabe1b0e1cc36f6d0647bff468f7", "score": "0.66481537", "text": "public static void log(IStatus status) {\n getDefault().getLog().log(status);\n }", "title": "" }, { "docid": "5c63879978d7476910d8fb6323516a89", "score": "0.6222018", "text": "public void error(Object object) {\n outputLog(Level.ERROR, object);\n }", "title": "" }, { "docid": "b45cb93caf210c298eb1977ddd0ddd69", "score": "0.59495175", "text": "public static void log(Throwable e) {\n //$NON-NLS-1$\n log(new Status(IStatus.ERROR, getUniqueIdentifier(), IJavaDebugUIConstants.INTERNAL_ERROR, \"Internal Error\", e));\n }", "title": "" }, { "docid": "8ba3a55543c01fb05ff22e2d7a321cf4", "score": "0.59055984", "text": "@Override\n public void onError(Status status) {\n Log.i(\"\", \"An error occurred: \" + status);\n }", "title": "" }, { "docid": "8ba3a55543c01fb05ff22e2d7a321cf4", "score": "0.59055984", "text": "@Override\n public void onError(Status status) {\n Log.i(\"\", \"An error occurred: \" + status);\n }", "title": "" }, { "docid": "dd7273cce6b8c591aa0aab5c68600611", "score": "0.58674276", "text": "@Override\n public void onError(Status status) {\n Log.i(\"dkjfhkjdfh\", \"An error occurred: \" + status);\n }", "title": "" }, { "docid": "ea60aa3035f051a0644aa2fd4b3b40c4", "score": "0.5864047", "text": "public void logStatus(String status, Exception e) throws DfException, DmRepositoryException {\r\n // update the extractor_events table that this event was extracted if success\r\n StringBuffer dql = new StringBuffer();\r\n\r\n // update the c_event_log for this collection\r\n logConcentraEvent(dql, status);\r\n\r\n }", "title": "" }, { "docid": "d50305b40c59283a3427d3a11da9212f", "score": "0.5863317", "text": "public static void log(Throwable e) {\n\t\tlog(new Status(IStatus.ERROR, PLUGIN_ID, INTERNAL_ERROR, \"Sintaks Internal Error\", e));\n\t}", "title": "" }, { "docid": "8f9a23f76ee1c74831e48e37127b271e", "score": "0.58249414", "text": "public void logError(String message);", "title": "" }, { "docid": "d585beedd7340fa0d5ef8ef667cfe771", "score": "0.5812372", "text": "@Override\n public void onError(Status status) {\n Log.i(\"msg\", \"An error occurred: \" + status);\n }", "title": "" }, { "docid": "95109743541ed0df6b72d65b9755afa5", "score": "0.57549655", "text": "void logError(String message);", "title": "" }, { "docid": "0c66af65bba4b303bf3bd506e62fd2d3", "score": "0.5700886", "text": "private void error() {\n\t\t\n\t\tstatus = ERROR;\n\t\tstateChanged();\n\t}", "title": "" }, { "docid": "8f297075509b3c2f8f7f8184c431cfe3", "score": "0.56991965", "text": "@Override\n public void onError(Status status) {\n Log.i(TAG, \"An error occurred: \" + status);\n }", "title": "" }, { "docid": "8f297075509b3c2f8f7f8184c431cfe3", "score": "0.56991965", "text": "@Override\n public void onError(Status status) {\n Log.i(TAG, \"An error occurred: \" + status);\n }", "title": "" }, { "docid": "8f297075509b3c2f8f7f8184c431cfe3", "score": "0.56991965", "text": "@Override\n public void onError(Status status) {\n Log.i(TAG, \"An error occurred: \" + status);\n }", "title": "" }, { "docid": "8f297075509b3c2f8f7f8184c431cfe3", "score": "0.56991965", "text": "@Override\n public void onError(Status status) {\n Log.i(TAG, \"An error occurred: \" + status);\n }", "title": "" }, { "docid": "8f297075509b3c2f8f7f8184c431cfe3", "score": "0.56991965", "text": "@Override\n public void onError(Status status) {\n Log.i(TAG, \"An error occurred: \" + status);\n }", "title": "" }, { "docid": "8f297075509b3c2f8f7f8184c431cfe3", "score": "0.56991965", "text": "@Override\n public void onError(Status status) {\n Log.i(TAG, \"An error occurred: \" + status);\n }", "title": "" }, { "docid": "8f297075509b3c2f8f7f8184c431cfe3", "score": "0.56991965", "text": "@Override\n public void onError(Status status) {\n Log.i(TAG, \"An error occurred: \" + status);\n }", "title": "" }, { "docid": "8f297075509b3c2f8f7f8184c431cfe3", "score": "0.56991965", "text": "@Override\n public void onError(Status status) {\n Log.i(TAG, \"An error occurred: \" + status);\n }", "title": "" }, { "docid": "4c64117d346afe0db2903e389e8ebef5", "score": "0.56718963", "text": "@Override\n public void onError(Status status) {\n Log.i(\"****\", \"An error occurred: \" + status);\n }", "title": "" }, { "docid": "4c64117d346afe0db2903e389e8ebef5", "score": "0.56718963", "text": "@Override\n public void onError(Status status) {\n Log.i(\"****\", \"An error occurred: \" + status);\n }", "title": "" }, { "docid": "83b1b1c1fd86f2e63c1371299bb91237", "score": "0.56435186", "text": "StatusLogger getStatusLogger();", "title": "" }, { "docid": "fae519fb93da24488e9802b6c40bf06d", "score": "0.5629795", "text": "@Override\n public void onError(Status status) {\n Log.i(\"TAG\", \"An error occurred: \" + status);\n }", "title": "" }, { "docid": "5816237471573573d6e231760389eb41", "score": "0.5622413", "text": "@Override\r\n public void onError(Status status) {\n Log.i(TAG, \"An error occurred: \" + status);\r\n }", "title": "" }, { "docid": "681d3e20b58e5aa88f177a07c3a17df8", "score": "0.5613575", "text": "@Override\r\n public void onError(Status status) {\n Log.i(TAG, \"An error occurred: \" + status);\r\n\r\n }", "title": "" }, { "docid": "4373203beb3d52c6f6435ebc7aac54eb", "score": "0.5609434", "text": "public void error(Object message) {\n/* 124 */ log(Level.SEVERE, String.valueOf(message), null);\n/* */ }", "title": "" }, { "docid": "ee68ee1c491663a7069f2cf8a06be3bf", "score": "0.55673045", "text": "public void setErrorLog(String log);", "title": "" }, { "docid": "64496043e2a5241be60dbec642667c21", "score": "0.5540858", "text": "public void error(Object message, Throwable exception) {\n/* 135 */ log(Level.SEVERE, String.valueOf(message), exception);\n/* */ }", "title": "" }, { "docid": "047645c935957fd730a73603a332abe1", "score": "0.5528182", "text": "private void display( final String message, final IStatus status )\n {\n if ( Thread.currentThread() == Display.getDefault().getThread() )\n {\n ErrorDialog.openError( Display.getDefault().getActiveShell(),\n Messages.getString( \"ExceptionHandler.Error\" ), message, status ); //$NON-NLS-1$\n }\n else\n {\n Runnable runnable = () -> \n ErrorDialog.openError( Display.getDefault().getActiveShell(), Messages\n .getString( \"ExceptionHandler.Error\" ), message, status ); //$NON-NLS-1$\n \n Display.getDefault().asyncExec( runnable );\n }\n\n ConnectionCorePlugin.getDefault().getLog().log( status );\n }", "title": "" }, { "docid": "338e162554dc0f1c9456b48ddb6322e7", "score": "0.55239964", "text": "@Override\n public void onError(Status status) {\n }", "title": "" }, { "docid": "04ab6f58084da0f7de6115db3b1ed731", "score": "0.5515463", "text": "public void error(Object obj) {\n LOGGER.warn(\"error([obj]) : Error Class {}\", obj.getClass());\n LOGGER.warn(\"error([obj]) : Error received {}\", obj);\n\n }", "title": "" }, { "docid": "b432d3ae04c271de61a3063489d3d4b7", "score": "0.5503784", "text": "@Override\n public void onError(Status status) {\n }", "title": "" }, { "docid": "b432d3ae04c271de61a3063489d3d4b7", "score": "0.5503784", "text": "@Override\n public void onError(Status status) {\n }", "title": "" }, { "docid": "9d05bf60bc7d50837b4dccfc7a9504ba", "score": "0.5497379", "text": "public void error(Object message) {\n getLogger().error(message);\n }", "title": "" }, { "docid": "d013bf531259d075ca2c1f2deabae669", "score": "0.54735595", "text": "void logError(String message, Exception e);", "title": "" }, { "docid": "3b1646578b65af9095c185a5243f1d1e", "score": "0.54729784", "text": "private void showErrorDialogWithLogging(Exception e) {\r\n \t\tStatus status = new Status(IStatus.ERROR, Activator.PLUGIN_ID, e.getMessage(), e);\r\n \t\tErrorUtils.showErrorWithLogging(status);\r\n \t}", "title": "" }, { "docid": "7173e8e43eea06a9b9b43289d22d58b0", "score": "0.54497117", "text": "@Override\n public void onError(Status status) {\n Log.i(\"BOOBS\", \"An error occurred: \" + status);\n }", "title": "" }, { "docid": "ee894ee7b412914ba8149874f71c21f9", "score": "0.544936", "text": "public final void error(Object message, Throwable t)\n/* */ {\n/* 383 */ if (isLevelEnabled(5)) {\n/* 384 */ log(5, message, t);\n/* */ }\n/* */ }", "title": "" }, { "docid": "c3a9418c2f45cfb68d1dd5069f52ffbb", "score": "0.5409875", "text": "@Override\n\tpublic void error(Object message) {\n\t\tthis.log(Level.ERROR, (String) message);\n\t}", "title": "" }, { "docid": "f6194c2683da5dfde8f8f92a8740450b", "score": "0.54035646", "text": "@Override\n public void fail(String status, String msg, Object object) {\n\n }", "title": "" }, { "docid": "c6657d18d7aa309535621706198b6df0", "score": "0.53883123", "text": "public final void error(Object message)\n/* */ {\n/* 363 */ if (isLevelEnabled(5)) {\n/* 364 */ log(5, message, null);\n/* */ }\n/* */ }", "title": "" }, { "docid": "b6035d2101146b8e436cbfab6e2cbb34", "score": "0.53859097", "text": "public static void error(String message, Throwable e) {\r\n getDefault().getLog().log(new Status(IStatus.ERROR, getId(), 0, message == null ? \"\" : message, e)); //$NON-NLS-1$\r\n }", "title": "" }, { "docid": "59d6ec6d45a45cb3df494d2a5b1e17de", "score": "0.53784764", "text": "@Override\r\n public void onError(Status status) {\n Log.i(\"Place\", \"An error occurred: \" + status);\r\n }", "title": "" }, { "docid": "59d6ec6d45a45cb3df494d2a5b1e17de", "score": "0.53784764", "text": "@Override\r\n public void onError(Status status) {\n Log.i(\"Place\", \"An error occurred: \" + status);\r\n }", "title": "" }, { "docid": "ec5c5eac9a05dccd760918fe6e63b4ac", "score": "0.5373992", "text": "public static void log( String message, Throwable t ) {\n int status = t instanceof Exception || message != null ? IStatus.ERROR : IStatus.WARNING;\n getDefault().getLog().log(new Status(status, ID, IStatus.OK, message, t));\n }", "title": "" }, { "docid": "467b92b4e04f9088ab1cb4dcb56e875b", "score": "0.5370267", "text": "public ErrorInfo(IStatus status, Job job) {\n errorStatus = status;\n this.job = job;\n timestamp = System.currentTimeMillis();\n }", "title": "" }, { "docid": "94763ef306756efd88ee5a5845ce8342", "score": "0.5350575", "text": "void reportStatus(LucasStatus status);", "title": "" }, { "docid": "7378c1362453d1badc67801fe195259b", "score": "0.5347663", "text": "public void log(ProjectError error) {\n log(error, true);\n }", "title": "" }, { "docid": "788e2b94710f29254cf48c6beeb39f17", "score": "0.5325076", "text": "public void errorLog(String str) {\n System.err.println(getLocalName() + \": \" + str);\n }", "title": "" }, { "docid": "a0f45502f44b1733b2030abecf89787e", "score": "0.53228515", "text": "protected void reportStatusAndAction(Status status) throws Exception {\n Strategy.Status sstatus = new Strategy.Status(status.getSymbol());\n persistStatus(sstatus);\n }", "title": "" }, { "docid": "40160563354a6fdf0bb23550af5a3c77", "score": "0.53163105", "text": "@Override\n\tpublic void logError(String log) {\n\t}", "title": "" }, { "docid": "7a89d51b392d72b0e9369ee3243a8125", "score": "0.5290181", "text": "public static void error(String message, Throwable e) {\n\t\tStatus status;\n\t\tif (e == null) {\n\t\t\tstatus = new Status(IStatus.ERROR, plugin.getBundle()\n\t\t\t\t.getSymbolicName(), message);\n\t\t} else {\n\t\t\tstatus = new Status(IStatus.ERROR, plugin.getBundle()\n\t\t\t\t.getSymbolicName(), IStatus.ERROR, message\n\t\t\t\t+ \"(\" + e.getStackTrace()[0].getClassName() + \")\", e); //$NON-NLS-1$//$NON-NLS-2$\n\t\t}\n\t\tplugin.getLog().log(status);\n\t}", "title": "" }, { "docid": "a7c15ba218c1006e73b11bc2e194d186", "score": "0.52751654", "text": "public static void logErrorMessage(String message) {\n log(new Status(IStatus.ERROR, getUniqueIdentifier(), IJavaDebugUIConstants.INTERNAL_ERROR, message, null));\n }", "title": "" }, { "docid": "a64f815d560ae4cbd000cb72b7538e80", "score": "0.5272427", "text": "public static void errorDialog(String message, Throwable t) {\n IStatus status = new Status(IStatus.ERROR, getUniqueIdentifier(), IJavaDebugUIConstants.INTERNAL_ERROR, message, t);\n statusDialog(status);\n }", "title": "" }, { "docid": "730b4f2e2b8610f07836dc4a8955f030", "score": "0.5265336", "text": "private void reportStatus(CoreException e) {\n reportStatus(e.getStatus());\n }", "title": "" }, { "docid": "388c2743bfa2e3106255ece982e984b8", "score": "0.5242517", "text": "private void setErrorLevel() {\n\t setDetailErrors(true);\r\n\t}", "title": "" }, { "docid": "8f3bc753f0eed155d11a7d47e369d488", "score": "0.52334213", "text": "@Override public void error(Exception e)\n {\n e.printStackTrace ();\n }", "title": "" }, { "docid": "0065a0256a3d81359a4f75895e15cc79", "score": "0.5223015", "text": "public String getErrorLog();", "title": "" }, { "docid": "8a08802062dbdfd89f1ec23505e6fc2e", "score": "0.52153385", "text": "public void error(Object msg, Throwable t);", "title": "" }, { "docid": "335c7be74a377fd828148998b1412f31", "score": "0.520854", "text": "@Override\n public void onError(Status status) {\n Log.e(\"Error_Place\", \"An error occurred: \" + status);\n }", "title": "" }, { "docid": "3c30fd9902a697880331cc7212c6971e", "score": "0.51862323", "text": "public void sendError(HttpResponseStatus status) {\n\n this.status = status;\n\n setHttpResponse(new DefaultFullHttpResponse(HTTP_1_1, status, Unpooled.copiedBuffer(status.toString(), CharsetUtil.UTF_8)));\n header(CONTENT_TYPE, CONTENT_TYPE_TEXT);\n\n writeFlush(true);\n }", "title": "" }, { "docid": "5534a6f12c6bf57bf4b7bbf454117547", "score": "0.518547", "text": "public void onError(int status, String message, Exception exception) {}", "title": "" }, { "docid": "1768b26e9eda026e26531614d0c9d3a1", "score": "0.5172906", "text": "public void error(Object message, Throwable t) {\r\n getLogger().log(FQCN, Level.ERROR, message, t);\r\n }", "title": "" }, { "docid": "3d68e9a8750c750e1aa864647b1ca3b3", "score": "0.5172899", "text": "public static void logError(String name, String action, String reason) {\n\t\tSystem.out.println(String.format(\"[ERROR] %s tried to %s and failed, %s.\", name, action, reason));\n\t}", "title": "" }, { "docid": "56f201c54feb134f52f2ede73f1df1b3", "score": "0.51650614", "text": "@Override\n public void onError(Status status) {\n Log.i(\"GMapsScreen\", \"An error occurred: \" + status);\n }", "title": "" }, { "docid": "56f201c54feb134f52f2ede73f1df1b3", "score": "0.51650614", "text": "@Override\n public void onError(Status status) {\n Log.i(\"GMapsScreen\", \"An error occurred: \" + status);\n }", "title": "" }, { "docid": "2f33d7ba52786270d7da10dfb192ca84", "score": "0.5164157", "text": "public void sendError(int status)\n throws IOException {\n sendError(status, null);\n }", "title": "" }, { "docid": "9574225b6ebccf28a8437f2c9e31aaa2", "score": "0.5159322", "text": "public void error(String text) {\n\t\tlogger.error(text);\n\t}", "title": "" }, { "docid": "534f2f87dc2e6f7d0bcd6929dc1fe09a", "score": "0.5156334", "text": "public void handleException( IStatus status )\n {\n display( null, status );\n }", "title": "" }, { "docid": "7ae4049629f597483f2c36a259f3d9eb", "score": "0.51376534", "text": "public static void error(String e) {\n if (verboseLevel.compareTo(Level.ERROR) >= 0)\n System.err.println(e);\n }", "title": "" }, { "docid": "e469b2e17b2d5301dae993a6f6f89c21", "score": "0.51367366", "text": "@Override\n public void error(int id, int errorCode, String errorMsg)\n {\n System.err.println (\"error: \" + id + \",\" + errorCode + \",\" + errorMsg);\n }", "title": "" }, { "docid": "704de8776806e429ac46b29a75e41f7b", "score": "0.51305926", "text": "public static void errorDialog(Shell shell, String title, String message, Throwable t) {\n IStatus status;\n if (t instanceof CoreException) {\n status = ((CoreException) t).getStatus();\n // don't show both in the dialog\n if (status != null && message.equals(status.getMessage())) {\n message = null;\n }\n } else {\n //$NON-NLS-1$\n status = new Status(IStatus.ERROR, getUniqueIdentifier(), IDebugUIConstants.INTERNAL_ERROR, \"Error within Debug UI: \", t);\n log(status);\n }\n ErrorDialog.openError(shell, title, message, status);\n }", "title": "" }, { "docid": "9d2cdb61f1ec141e877ab3bd496afe42", "score": "0.5129657", "text": "@Override\n\tpublic void error(Object message, Throwable t) {\n\t\t\n\t}", "title": "" }, { "docid": "d5efaa0aedbc7b5bc6968c14a57bc096", "score": "0.5123198", "text": "public void error(final Object msg) {\n\t\tlogger.error(msg);\n\t}", "title": "" }, { "docid": "45388f8a76c819d067efe577e77c6476", "score": "0.512189", "text": "public void debug(Object msg, Throwable t);", "title": "" }, { "docid": "6d8f069c28b949a2da81d2bd3961f03f", "score": "0.5121637", "text": "private void log(Exception e) {\n e.printStackTrace();\n }", "title": "" }, { "docid": "043359bb520d573fb9498c883cf46a73", "score": "0.51207745", "text": "public AbstractException(HttpStatus status) {\n super(status);\n message = \"Error Occured\";\n }", "title": "" }, { "docid": "a5372d0b3e47ca1f66612e75d6fae7f5", "score": "0.51176", "text": "private void error()\n {\n status = ERROR;\n// tableModel.databaseupdate(this);\n stateChanged();\n }", "title": "" }, { "docid": "91cb708fb45a3856fe9d27050df7cc88", "score": "0.51172054", "text": "@Override\n public void error(String msg) {\n System.err.println(\"ERROR: \"+msg); \n }", "title": "" }, { "docid": "6eda8c1a0c99b613d73e3dcc16623803", "score": "0.511241", "text": "@Override\n public void onError(Status status) {\n Toast.makeText(this,\n getString(R.string.failure_place_selection, status.getStatusMessage()),\n Toast.LENGTH_SHORT).show();\n }", "title": "" }, { "docid": "76b3b5bd840a7e7303867cdb9a715ce7", "score": "0.51050216", "text": "@Override\n\t\t\tpublic void onError(Throwable t) {\n\t\t\t\tt.printStackTrace();\n\t\t\t}", "title": "" }, { "docid": "6aecd23fe54f56218c9e4015bb203c90", "score": "0.51007694", "text": "private static FrameworkLogEntry getLog(IStatus status) {\r\n\t\tThrowable t = status.getException();\r\n\t\tArrayList<FrameworkLogEntry> childlist = new ArrayList<>();\r\n\r\n\t\tint stackCode = t instanceof CoreException ? 1 : 0;\r\n\t\t// ensure a substatus inside a CoreException is properly logged\r\n\t\tif (stackCode == 1) {\r\n\t\t\tIStatus coreStatus = ((CoreException) t).getStatus();\r\n\t\t\tif (coreStatus != null) {\r\n\t\t\t\tchildlist.add(getLog(coreStatus));\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif (status.isMultiStatus()) {\r\n\t\t\tIStatus[] children = status.getChildren();\r\n\t\t\tfor (IStatus element : children) {\r\n\t\t\t\tchildlist.add(getLog(element));\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tFrameworkLogEntry[] children = childlist.isEmpty() ? null\r\n\t\t\t\t: childlist.toArray(new FrameworkLogEntry[childlist.size()]);\r\n\r\n\t\treturn new FrameworkLogEntry(status.getPlugin(), status.getSeverity(), status.getCode(),\r\n\t\t\t\tstatus.getMessage(), stackCode, t, children);\r\n\t}", "title": "" }, { "docid": "540587cb5b3eefb4e874f7d37ac22620", "score": "0.5099784", "text": "public void error(Object message) {\r\n getLogger().log(FQCN, Level.ERROR, message, null);\r\n }", "title": "" }, { "docid": "e9bbfb204d280d88162dae584ea3229d", "score": "0.5099256", "text": "protected void error(String errorMessage){\n logger.error(errorMessage);\n psError.println(errorMessage);\n }", "title": "" }, { "docid": "d0de9d6084f799b1b82a9fa727e64de9", "score": "0.5092363", "text": "public void setErrorStatus(Map<String, String> errorStatus) {\r\n this.errorStatus = errorStatus;\r\n }", "title": "" }, { "docid": "db26dcfbe0a88f2f3e7b972c35cdfe4d", "score": "0.50830394", "text": "public void err(String msg){\n System.err.println(getTime() + \": \" + msg);\n }", "title": "" }, { "docid": "c2be40a0867ea4b03db043421e6e64fa", "score": "0.5078015", "text": "public void setErrorStatus(String txt) {\n status_text.setForeground(Color.red);\n status_text.setText(\" \"+txt);\n }", "title": "" }, { "docid": "cab8ea7b6276f3455311e81609360330", "score": "0.50763625", "text": "@Override\n public void onError(Throwable throwable) {\n logger.error(throwable);\n }", "title": "" }, { "docid": "57d9aeefd241ed535dcfa774f7c43f7d", "score": "0.5069058", "text": "private static void reportError(Exception e) {\n\t\tSystem.out.println(errorMessage);\n\t\tSystem.out.println(\"Error message: \"+e.getMessage());\n\t\tSystem.out.println(\"Stack trace: \");\n\t\te.printStackTrace();\n\t}", "title": "" }, { "docid": "4b254d9a07ad31f7a91e9d12002b9006", "score": "0.5057674", "text": "public void printStatus() {\r\n\t\tStatusPrinter.print(loggerContext);\r\n\t}", "title": "" }, { "docid": "6a6729ee913d04e07a30ca05ee1b1c52", "score": "0.50559056", "text": "public void reportError(String msg)\n {\n errorLogger.logError(msg, -1);\n System.out.println(msg);\n }", "title": "" }, { "docid": "06023bd831a11f973881acee2bdab222", "score": "0.50441897", "text": "private void auditlogger(Object aObject){\r\n\t\tif(verbose) System.out.print(String.valueOf(aObject));\r\n\t}", "title": "" }, { "docid": "3c6edbbc5546e355a8a4f328ac1de090", "score": "0.502618", "text": "public void error(Object pObject)\r\n {\r\n error(pObject, null);\r\n }", "title": "" }, { "docid": "b2785192929210c8d344355b25ea18b3", "score": "0.50225765", "text": "default void logError(String msg, Throwable error){\n\t\tLyeenPlugin.getLogger().error(\"[\" + getName() + \"] \" + msg, error);\n\t}", "title": "" }, { "docid": "73da4f98a4df3838d17bf1ae1c2ad85f", "score": "0.5022576", "text": "public void erro(String mensagem){\n\t\tlog.error(mensagem);\n\t}", "title": "" }, { "docid": "d61e2f2abc02080169be4b18c6124ef1", "score": "0.50211513", "text": "@Override\n public void onError(Status status) {\n // Log.e(TAG, \"onError: Status = \" + status.toString());\n\n Toast.makeText(this, \"Place selection failed: \" + status.getStatusMessage(),\n Toast.LENGTH_SHORT).show();\n }", "title": "" }, { "docid": "7fe445d1bf23abf07fbd77dcdb495ae5", "score": "0.50207555", "text": "@DebugLog\n @Override\n public void onError(Throwable error) {\n\n }", "title": "" }, { "docid": "7f11179caa3827a23697769233a0c14c", "score": "0.5008202", "text": "void reportError(JSError error, ErrorType errorType) {\n String location =\n error.sourceName == null || error.sourceName.length() == 0 ? \"\" :\n error.lineNumber == -1 ? \" (in \" + error.sourceName + \")\" :\n \" (line \" + error.lineNumber + \" of \" + error.sourceName + \")\";\n \n // Try to report errors using the OS if we're in watch mode, but only\n // show the popup in watch mode and only for the first error/warning\n if (flags.watchFiles && !alreadyShowedPopup) {\n showPopup(error.description + location, error.sourceName, error.lineNumber);\n alreadyShowedPopup = true;\n }\n \n // Always print stuff to the console\n String[] parts = error.description.split(\"\\n\", 2);\n if (errorType == ErrorType.ERROR) {\n Globals.redColor(); System.out.print(\"Error: \");\n } else {\n Globals.yellowColor(); System.out.print(\"Warning: \");\n }\n Globals.resetColor(); System.out.print(parts[0]);\n Globals.grayColor(); System.out.println(location);\n if (parts.length > 1) {\n System.out.println(parts[1]);\n }\n Globals.resetColor();\n }", "title": "" } ]
25197b4cf814864ecd440f23b9149cb3
TODO Autogenerated method stub
[ { "docid": "5f6ace8132e27a914d8a9326cefacf5e", "score": "0.0", "text": "@Override\n\tpublic CreditVo getPresentCreditInfo(int id) throws RemoteException {\n\t\tCreditPo po=creditservice.getCredit(id);\n\t\tCreditVo vo=new CreditVo();\n\t\tvo.setAction(po.getAction());\n\t\tvo.setCreditChange(po.getCreditChange());\n\t\tvo.setCreditResult(po.getCreditResult());\n\t\tvo.setOrderID(po.getOrderID());\n\t\tvo.setUserId(po.getUserID());\n\t\tvo.setTime(po.getTime());\n\t\treturn vo;\n\t}", "title": "" } ]
[ { "docid": "e5fa0eebc721dea67da872fd14413bc7", "score": "0.69744676", "text": "@Override\n\tpublic void formule() {\n\t\t\n\t}", "title": "" }, { "docid": "8b7f87c22e268a87686c66398c2c442b", "score": "0.6936331", "text": "@Override\r\n\t\t\tpublic void atras() {\n\t\t\t\t\r\n\t\t\t}", "title": "" }, { "docid": "1acc57d42c31dee937ac33ea6f2a5b0b", "score": "0.6836411", "text": "@Override\r\n\tpublic void comer() {\n\t\t\r\n\t}", "title": "" }, { "docid": "ec76ff8d70ced9d8135ad33b23353b4d", "score": "0.6624367", "text": "@Override\r\n\t\t\tpublic void adelante() {\n\t\t\t\t\r\n\t\t\t}", "title": "" }, { "docid": "82ab90ffadf9b8d43e60c8510a33beba", "score": "0.6623182", "text": "@Override\r\n\tpublic void morirse() {\n\t\t\r\n\t}", "title": "" }, { "docid": "e3110a393bd4b870b4055aa9ed6efd87", "score": "0.66015315", "text": "@Override\n\tpublic void attaquer() {\n\t\t\n\t}", "title": "" }, { "docid": "a5f7a321f63abee65f0b9008f270490e", "score": "0.6594605", "text": "@Override\n\t\t\tpublic void competir() {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "0b5b11f4251ace8b3d0f5ead186f7beb", "score": "0.65677965", "text": "@Override\n\tpublic void comer() {\n\t\t\n\t}", "title": "" }, { "docid": "0b5b11f4251ace8b3d0f5ead186f7beb", "score": "0.65677965", "text": "@Override\n\tpublic void comer() {\n\t\t\n\t}", "title": "" }, { "docid": "80d20df1cc75d8fa96c12c49a757fc43", "score": "0.65323734", "text": "@Override\n\tprotected void getExras() {\n\t\t\n\t}", "title": "" }, { "docid": "7756cbf76fd6363807e17834db326bbc", "score": "0.6501866", "text": "@Override\n\t\t\tpublic void avanzar() {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "bdceff0dc4130d850ab15d702b785449", "score": "0.63844895", "text": "@Override\n\tprotected void generate() {\n\t\t\n\t}", "title": "" }, { "docid": "14f6250e215aa66dcffb123fd6b7fd74", "score": "0.63381773", "text": "@Override\n\tpublic void entzünden() {\n\n\t}", "title": "" }, { "docid": "cd03efba12b5473dcc457b910fd92a0e", "score": "0.63222265", "text": "@Override\n\t\t\tpublic void sprout() {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "070e1adb9bfd59cb643407a2dabe9b7a", "score": "0.6291592", "text": "private void hinzufügen() {\n\t\t\r\n\t}", "title": "" }, { "docid": "469c90392fb12e4553574135278541f5", "score": "0.62385184", "text": "@Override\n\tpublic void attck() {\n\t\t\n\t}", "title": "" }, { "docid": "d3585587779dbdf33600e1670ca42099", "score": "0.6193195", "text": "@Override\n\tpublic void IngresoKromi() {\n\t}", "title": "" }, { "docid": "7c4f2f94b290de5507eb56a649c4fab9", "score": "0.61922914", "text": "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "title": "" }, { "docid": "10ead2e988bf977cb8edb2bacf974891", "score": "0.61546874", "text": "@Override\n\tprotected void init() {\n\t\t\n\t}", "title": "" }, { "docid": "093a096d6e96e05b160fe2406b1e8a2d", "score": "0.61053663", "text": "@Override\n\tpublic void parir() {\n\t\t\n\t}", "title": "" }, { "docid": "29cde3f10dab87cebafdd9412ef4b29f", "score": "0.6062187", "text": "@Override\r\n\tpublic void embala() {\n\t\t\r\n\t}", "title": "" }, { "docid": "7839d9b18f833d7ad1ccae8536c829da", "score": "0.60561824", "text": "@Override\r\n\tpublic void zielone_swiatlo() {\n\t\t\r\n\t}", "title": "" }, { "docid": "0cd47ce21776ffa50dd678180ffe94e5", "score": "0.6003824", "text": "public void ayak() {\n\t\t\r\n\t}", "title": "" }, { "docid": "c2c1f0ca9c7029b85142a2ab9536d708", "score": "0.5990595", "text": "@Override\n\tpublic void attaque() {\n\t\t\n\t}", "title": "" }, { "docid": "fa1a013b1df2f5f1062e1cc971135645", "score": "0.5987973", "text": "@Override\n\tpublic void mamar() {\n\t\t\n\t}", "title": "" }, { "docid": "70c63b539d1b6f883ad13008fbcaa6ce", "score": "0.59600407", "text": "@Override\n\tpublic void fiy(){\n\t\t\n\t}", "title": "" }, { "docid": "360bf42213adde0b962792c6cd6d8df7", "score": "0.5952374", "text": "@Override\r\n\t\tpublic void interg() {\n\t\t\t\r\n\t\t}", "title": "" }, { "docid": "6f1e0cfaa7350cf143896dace56978f5", "score": "0.59270483", "text": "@Override\n\tpublic void respirar() {\n\t\t\n\t}", "title": "" }, { "docid": "8b18fd12dbb5303a665e92c25393fb78", "score": "0.59239364", "text": "@Override\n\tprotected void initData() {\n\t\t\n\t}", "title": "" }, { "docid": "dd66e8668788d27519d44caeb83b0c44", "score": "0.5923557", "text": "@Override\r\n\tpublic void operation() {\n\t\t\r\n\t}", "title": "" }, { "docid": "28237d6ae20e1aa35aaca12e05c950c9", "score": "0.5902906", "text": "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "title": "" }, { "docid": "28237d6ae20e1aa35aaca12e05c950c9", "score": "0.5902906", "text": "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "title": "" }, { "docid": "9808ba3c113b79c3677f2c08c09e60a1", "score": "0.59020513", "text": "@Override\n\tpublic void resert() {\n\t\t\n\t}", "title": "" }, { "docid": "e05db3dd501cfaf4d9d1b128ca673f1b", "score": "0.58988667", "text": "@Override\n\tprotected void formRes() {\n\n\t}", "title": "" }, { "docid": "7f91c82c66ced12c5b193d3c89d68e4c", "score": "0.5883667", "text": "@Override\n\tprotected void init() {\n\t}", "title": "" }, { "docid": "ea6be29351b2f6d99af3992f4a8fbd45", "score": "0.58685964", "text": "public void afficherEntreprise(){\r\n\t\t\r\n\t}", "title": "" }, { "docid": "3177b2be45c490e407b98d647e109c0d", "score": "0.58572376", "text": "@Override\n protected void initData()\n {\n\t\n }", "title": "" }, { "docid": "eea1284dac4ca57b790a13dcd1ad6bff", "score": "0.58401465", "text": "@Override\n protected void ucitaj() {\n //only because of 'extands rule'\n }", "title": "" }, { "docid": "e57f005733f2eb8590150b3f4542b844", "score": "0.5810564", "text": "@Override\n\tprotected void getData() {\n\t\t\n\t}", "title": "" }, { "docid": "af70f420bd21981aa44db6516064224d", "score": "0.58060104", "text": "@Override\n\tpublic int berechnen() {\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "ce91051d32625345f2bf3562abbb93de", "score": "0.5794177", "text": "@Override\n\tprotected void inicializar() {\n\t}", "title": "" }, { "docid": "beee84210d56979d0068a8094fb2a5bd", "score": "0.5792378", "text": "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "title": "" }, { "docid": "94f32cdbe8afc400e05efbdb8d78c591", "score": "0.5788508", "text": "@Override\r\n\tpublic void borc_hesapla() {\n\t\t\r\n\t}", "title": "" }, { "docid": "54b1134554bc066c34ed30a72adb660c", "score": "0.57844025", "text": "@Override\n\tprotected void initData() {\n\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "aed26444304cfac4d695203c7d86e6c5", "score": "0.5769439", "text": "public void autTC05() {\r\n\r\n\t}", "title": "" }, { "docid": "9b56e05d631b1ea925ea2c139ee709ad", "score": "0.5763841", "text": "@Override\n\tpublic void adim7() {\n\n\t}", "title": "" }, { "docid": "5e6804b1ba880a8cc8a98006ca4ba35b", "score": "0.5761362", "text": "@Override\n public void init() {\n\n }", "title": "" }, { "docid": "518a761521ca9f5cb8a8055b32b72cda", "score": "0.57596046", "text": "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "title": "" }, { "docid": "a49b2d411619c6f2680e9b0e8c21a20f", "score": "0.57574755", "text": "private void erledigt() {\n\t\t\r\n\t}", "title": "" }, { "docid": "8aac1da26498753495658c2bb9044b21", "score": "0.5751961", "text": "@Override\n public int getOrder() {\n return 0;\n }", "title": "" }, { "docid": "2bbeae4f0e92c95ecc07204851be4769", "score": "0.57508", "text": "@Override\n\tpublic void nyalakan() {\n\t\t\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.575025", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.575025", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.575025", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.575025", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "8603393cbe27452fe30e396632c62eed", "score": "0.57415414", "text": "@Override\n\t\tpublic void postConstruct() {\n\t\t}", "title": "" }, { "docid": "37bf6e6ef01cf7dab163b5d3bedbc140", "score": "0.5740271", "text": "@Override\n\tpublic void som() {\n\t\t\n\t}", "title": "" }, { "docid": "92af0f4d75822a6723aebd9fcc92fafb", "score": "0.57394177", "text": "@Override\n protected void initData() {\n \n }", "title": "" }, { "docid": "c13e6a1b7c130afa9fb0f34225bea4ef", "score": "0.573645", "text": "protected void mo1555b() {\n }", "title": "" }, { "docid": "691b15fed469ddc176b9c9e6151dea65", "score": "0.5734636", "text": "@Override\n\tpublic void breathes()\n\t{\n\t\t\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57337177", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "0f7672ee5ac14b05f31da4e1e34d7b49", "score": "0.5725253", "text": "@Override\r\n\tpublic void test8() {\r\n\t\t// TODO Auto-generated method stub\r\n\t\t\r\n\t}", "title": "" }, { "docid": "a22a3abb4b9b5de4ed8c054da445e9b0", "score": "0.5724528", "text": "@Override\r\n\tpublic void jugar() {\n\r\n\t}", "title": "" }, { "docid": "7fd3ef4778cae98af386c2c7c0aa5995", "score": "0.57231057", "text": "@Override\r\n\tpublic void nmi() {\n\t\t\r\n\t}", "title": "" }, { "docid": "90a583a9686287e3374351dca59e3033", "score": "0.5721244", "text": "@Override\r\n\tpublic void abrir() {\n\r\n\t}", "title": "" }, { "docid": "d629c4ad6266d296b13a93bb0c7f8c66", "score": "0.57099986", "text": "@Override\r\n public void init()\r\n {\n\r\n }", "title": "" }, { "docid": "7aadbda143e84de0144f7a8dadde423d", "score": "0.5701067", "text": "@Override\n protected void initData() {\n\n }", "title": "" }, { "docid": "7aadbda143e84de0144f7a8dadde423d", "score": "0.5701067", "text": "@Override\n protected void initData() {\n\n }", "title": "" }, { "docid": "f375646c5bc224c29261414f3cb81b04", "score": "0.56984305", "text": "@Override\n public int qualiteRelation() {\n return 0;\n }", "title": "" }, { "docid": "5592333c90e75bae58a686b24b05d894", "score": "0.5693882", "text": "@Override\n public String toString() {\n return null;\n }", "title": "" }, { "docid": "b2858312446172fa25a799c5367d2043", "score": "0.56896037", "text": "Smelting(){\r\n\r\n\t\t}", "title": "" }, { "docid": "9f7ae565c79188ee275e5778abe03250", "score": "0.56881124", "text": "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "title": "" }, { "docid": "20b42a0c3fee6c140a112d40354f4298", "score": "0.5686577", "text": "@Override\r\n\tpublic void prepara() {\n\t\t\r\n\t}", "title": "" }, { "docid": "92b8246d78d46bf0f60b46e17e797540", "score": "0.5685193", "text": "@Override\n\tpublic void init () {\n\t}", "title": "" }, { "docid": "57f5caef4402cc8ce13e81561eaa9e43", "score": "0.56787807", "text": "@Override\r\n\tpublic void pickUp() {\n\t\t\r\n\t}", "title": "" }, { "docid": "152818b619dcfcd5190a2f48bc75fa5f", "score": "0.56757474", "text": "@Override\n\tpublic void adim6() {\n\n\t}", "title": "" }, { "docid": "b6c641fa6ba40a5b14cc33cb07aa0671", "score": "0.5669649", "text": "@Override\n\tprotected void initData() {\n\t}", "title": "" }, { "docid": "b6c641fa6ba40a5b14cc33cb07aa0671", "score": "0.5669649", "text": "@Override\n\tprotected void initData() {\n\t}", "title": "" }, { "docid": "131c7dcebe8ac7fd010381a03bd0f405", "score": "0.5667569", "text": "@Override\r\n\tprotected void initActb() {\n\t\t\r\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5655942", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5655942", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5655942", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5655942", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5655942", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5655942", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "6392764d7ff297c1a478fc1669944649", "score": "0.5653691", "text": "@Override\n\tpublic void gostar_de_carne() {\n\t\t\n\t}", "title": "" }, { "docid": "2b53548295a92f80cb7814e7e3ead131", "score": "0.56503963", "text": "@Override\n\tString frighten() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "18c7036dd108c40b7a27469d8b92687c", "score": "0.5642345", "text": "@Override\n\tpublic void onLoadComplete() {\n\t\t\n\t}", "title": "" }, { "docid": "7b36e2fb2a778b8c30924f6f30758db2", "score": "0.56388146", "text": "private static void buscarId() {\n\t\t\r\n\t}", "title": "" }, { "docid": "9bcd15a2298e73719d7c7326027b093b", "score": "0.56369984", "text": "@Override\n\tprotected void getData() {\n\n\t}", "title": "" } ]
bc3fbaf2d866c67cf97529973e150b71
Terminate the current compression run. Pending buffered data, if any, is compressed as a final block, and written out on the transport stream. If there is no pending buffered data, then an empty, final block is added. Either way, any remaining partial byte is padded with zeroes and written. The transport stream is NOT flushed.
[ { "docid": "5f4e314b24e41dae546d39d92c9e4cbd", "score": "0.6431885", "text": "public void terminate() throws IOException {\n prepareFlush();\n if (bufferPtr == 0) {\n writeEmptySH(true);\n } else {\n endBlock(true, bufferPtr);\n }\n if (outPtr > 0)\n writeBits(0, 8 - outPtr);\n sendBuffered();\n }", "title": "" } ]
[ { "docid": "32241d099a779692679044098775f770", "score": "0.6674728", "text": "private void completeCompression() {\n this.deflater.finish();\n this.compressedPayloadLen += this.deflater.deflate(this.compressedPacket, this.compressedPayloadLen,\n this.compressedPacket.length - this.compressedPayloadLen);\n }", "title": "" }, { "docid": "90f7416a89d99f6fbc34c344c8660d6d", "score": "0.6317871", "text": "public Status compress(ByteBuf in, ByteBuf out, boolean finish);", "title": "" }, { "docid": "d4c438798288df6cd49c212b27be74c8", "score": "0.62204593", "text": "public void endDecompression()\n {\n decompressor.end();\n decompressor = null;\n }", "title": "" }, { "docid": "70fbfcbc17bf7712a04f777bfa4848cb", "score": "0.6053198", "text": "@Override\n public void dispose() {\n compress.end();\n decompress.end();\n }", "title": "" }, { "docid": "a12b6db81fb773d28aa2bb572a12c5c3", "score": "0.5959442", "text": "public void finish() throws IOException {\n checkNotFinished();\n deflater.finish();\n while (!deflater.finished()) {\n deflate();\n }\n if ((compressedBytes >= MAXIMUM_DATA_SIZE) || (uncompressedBytes >= MAXIMUM_DATA_SIZE)) {\n throw new IOException(\"Too much data for ZIP entry.\");\n }\n }", "title": "" }, { "docid": "64ce0feeecf24db63fb7fef35e647b8b", "score": "0.5914459", "text": "void terminate() {\n try {\n this.objectOutputStream.flush();\n if (this.zipStream != null)\n this.zipStream.flush();\n this.fileOutputStream.flush();\n // this.objectOutputStream.close();\n // this.fileOutputStream.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "44b3129a612955cffd4566f320e6f14d", "score": "0.5891041", "text": "@Override\n protected void finalize() throws Throwable\n {\n try {\n if (decompressor != null)\n decompressor.end();\n } finally {\n super.finalize();\n }\n }", "title": "" }, { "docid": "a83f2a88d777bed27df0449403bb62e2", "score": "0.5782605", "text": "@Override\n public void onClose() throws IOException {\n // Round up to a 512-byte boundary and another 1024-bytes to indicate end of archive.\n write(new byte[1024 + 512 - (int) (getBytesWritten() % 512L)]);\n }", "title": "" }, { "docid": "437585d4d465feb127fadd532c811641", "score": "0.5768219", "text": "synchronized void close() {\n if (!isClosed()) {\n isLastFrameQueued = true;\n \n if (outputQueue.isEmpty()) {\n writeEmptyFin();\n return;\n }\n \n outputQueue.reserveSpace(ATOMIC_QUEUE_RECORD_SIZE);\n outputQueue.offer(TERMINATING_QUEUE_RECORD);\n \n if (outputQueue.size() == ATOMIC_QUEUE_RECORD_SIZE &&\n outputQueue.remove(TERMINATING_QUEUE_RECORD)) {\n writeEmptyFin();\n }\n }\n }", "title": "" }, { "docid": "6260d2b4946c32e76916e3b3e463d438", "score": "0.57402694", "text": "protected void end() {\r\n \tRobot.compressy.start();\r\n }", "title": "" }, { "docid": "e44b9be9ad62b72fbf49abdccc299c49", "score": "0.56721944", "text": "private void performDataFlush() {\n\t\tconnection.flushPendingCompressionPackages();\n\t}", "title": "" }, { "docid": "232c96c65c9f4187cf2e3d6f30b08f58", "score": "0.5601992", "text": "public void finish() {\n bytes = baos.toByteArray();\n baos = null;\n }", "title": "" }, { "docid": "3433351177739e7b5cd243b414ff3f6b", "score": "0.53110343", "text": "@Override\n public void close() throws IOException {\n if (this.closed) {\n return;\n }\n this.closed = true;\n this.obuffer = this.cipher.doFinal();\n try {\n this.flush();\n }\n catch (IOException iOException) {}\n this.out.close();\n return;\n catch (BadPaddingException | IllegalBlockSizeException generalSecurityException) {\n this.obuffer = null;\n throw new IOException(generalSecurityException);\n }\n }", "title": "" }, { "docid": "4106ec45999262a1055892bc250e6dc6", "score": "0.5285686", "text": "@Override\n public void onFinished()\n {\n try\n {\n _singlePartMIMEReader.drainPart();\n Assert.fail();\n }\n catch (SinglePartFinishedException singlePartFinishedException)\n {\n }\n\n _finishedData = ByteString.copy(_byteArrayOutputStream.toByteArray());\n }", "title": "" }, { "docid": "24f552d4bd08b98c7ab3026b65d3f54f", "score": "0.52726424", "text": "@Override\n public void close() {\n // Assert: if current != next, next cannot ever be resolved with a chunk that needs releasing\n Optional.ofNullable(current).ifPresent(it -> current.whenComplete(DataChunkInputStream::releaseChunk));\n current = null;\n bufferIndex = 0;\n }", "title": "" }, { "docid": "aa4eae1b0eb96741d24b2296dfebedad", "score": "0.5206017", "text": "@Override\n public int releaseBuffered(OutputStream out) throws IOException {\n return 0;\n }", "title": "" }, { "docid": "bb1876283a99e4b6993012abfbb04c9d", "score": "0.5174664", "text": "public void run()\r\n\t{\r\n\t\tSystem.out.println(\"Compressor thread started.\");\r\n\t\tcompress();\r\n\t}", "title": "" }, { "docid": "c42840c2ee9f0fd71da4f3920e74ef37", "score": "0.51475495", "text": "public void endBlock() {\n\t\tif (blockDepth > 0) {\n\t\t\tblockDepth--;\n\t\t}\n\t\tlastWrittenBlockDepth = -1;\n\t}", "title": "" }, { "docid": "fef659abec82cd5cd42e70b078aa668d", "score": "0.5127187", "text": "protected void end() {\n \tRobot.compressor.start();\n \tif(!wasCancl){\n \t\tif(state == LiftSubsystem.LiftStateConstants.HEADING_CUSTOM_STATE_UP){\n \t\tRobot.liftState--;\n \t}else{\n \t\tRobot.liftState++;\n \t}\n \t}\n \t\n// \tRobot.lift.mainLiftMotor.set(ControlMode.PercentOutput, 0);\n \tSmartDashboard.putBoolean(\"ran is fin\", true);\n \tSmartDashboard.putBoolean(\"did cancl\", wasCancl);\n\n }", "title": "" }, { "docid": "a8bbd88eba2329074a60514670eba086", "score": "0.51222354", "text": "public void close()\r\n/* 428: */ throws IOException\r\n/* 429: */ {\r\n/* 430: 660 */ if (this.state == States.STARTED) {\r\n/* 431: 661 */ finish();\r\n/* 432: */ }\r\n/* 433: 663 */ if (this.state != States.CLOSED)\r\n/* 434: */ {\r\n/* 435: 664 */ this.out.close();\r\n/* 436: 665 */ this.state = States.CLOSED;\r\n/* 437: */ }\r\n/* 438: */ }", "title": "" }, { "docid": "e9350df9eaba01a11c65237d2f946be0", "score": "0.5098889", "text": "void complete() throws IOException {\n if (size() < 4) { // 4: handshake message header size\n // internal_error alert will be triggered\n throw new RuntimeException(\"handshake message is not available\");\n }\n\n if (outputRecord != null) {\n if (!outputRecord.isClosed()) {\n outputRecord.encodeHandshake(buf, 0, count);\n } else {\n if (SSLLogger.isOn && SSLLogger.isOn(\"ssl\")) {\n SSLLogger.warning(\"outbound has closed, ignore outbound \" +\n \"handshake messages\", ByteBuffer.wrap(buf, 0, count));\n }\n }\n\n // reset the byte array output stream\n reset();\n } // otherwise, the handshake output stream is temporarily used only.\n }", "title": "" }, { "docid": "ddf25408d64c064da399d7a7d9032ef0", "score": "0.5079577", "text": "@Override\n public void flush(ByteArrayOutputStream out) {\n try {\n flushBlockBuffer(out);\n } catch (IOException e) {\n LOGGER.error(\"flush data to stream failed!\", e);\n }\n }", "title": "" }, { "docid": "58cb6311261dc9359910ebcf9bb84db6", "score": "0.50356674", "text": "@Override\n public void finish() throws IOException {\n File outputFile = new File(outputDir, PROTOBUF_META_NAME);\n if (buffer.size() > 0) {\n try (OutputStream outputStream = new FileOutputStream(outputFile)) {\n buffer.writeTo(outputStream);\n }\n } else if (outputFile.exists()) {\n // Delete stalled meta file.\n outputFile.delete();\n }\n }", "title": "" }, { "docid": "dbd1c3f17fc96b505a11f7d29b721d70", "score": "0.5015375", "text": "@Override\r\n\tpublic void stop() throws Exception {\r\n\t\t_dataOutputStream.flush();\r\n\t\t_dataOutputStream.close();\r\n\t\t\r\n\t}", "title": "" }, { "docid": "611b8352685d6b3abeedf952f8597779", "score": "0.50138026", "text": "public void finish() throws IOException\n {\n if (currentJarOutputStream != null)\n {\n // Close the previous ZIP entry, if any.\n closeEntry();\n\n // Finish the entire ZIP stream.\n currentJarOutputStream.finish();\n currentJarOutputStream = null;\n currentParentOutputStream = null;\n jarEntryNames.clear();\n }\n }", "title": "" }, { "docid": "1c9f77098ac4617d043a84a13a251ee0", "score": "0.49392253", "text": "@Override\n public void flush() throws IOException {\n writer.write(buffer, 0, fill);\n fill = 0;\n }", "title": "" }, { "docid": "f4609e1faf44ba712d1217d524a96248", "score": "0.49378982", "text": "public final static void compress(\n InputStream instream,\n OutputStream outstream,\n int blockSize,\n ProgressListener prog )\n {\n\n try\n {\n final BufferedOutputStream bos = new BufferedOutputStream( outstream );\n\n bos.write( 'B' );\n bos.write( 'Z' );\n\n final BufferedInputStream bis = new BufferedInputStream( instream );\n final CBZip2OutputStream bzos = new CBZip2OutputStream( bos );\n\n int ch = bis.read();\n\n while ( ch != -1 )\n {\n bzos.write( ch );\n ch = bis.read();\n\n }\n\n bzos.close();\n bos.flush();\n bos.close();\n outstream.flush();\n outstream.close();\n\n }\n catch ( IOException e )\n {\n e.printStackTrace();\n\n }\n\n // System.gc();\n }", "title": "" }, { "docid": "bdaaa4e16f4b59701933fdb06e083ebe", "score": "0.4923573", "text": "@Override\n public void messageFinished() {\n queue.offer(0);\n drain();\n }", "title": "" }, { "docid": "14f7969f49a11e72541dc6dd7bfd503d", "score": "0.48674536", "text": "public void close() throws IOException {\n\t\t\tif (m_state == ChunkConnectionAdapter.StreamState_CLOSE)\n\t\t\t\tthrow new IOException(\"Stream allready closed\");\n\t\t\tif (m_state == ChunkConnectionAdapter.StreamState_EOF)\n\t\t\t\tLogHolder\n\t\t\t\t\t\t.log(LogLevel.WARNING, LogType.TRANSPORT,\n\t\t\t\t\t\t\t\t\"Sync Warning. EOF State should be immediately transfert to CLOSE\");\n\t\t\t// try to send what is in the buffer\n\t\t\tm_state = ChunkConnectionAdapter.StreamState_EOF;\n\t\t\tflush();\n\t\t\t// and finally close\n\t\t\tm_state = ChunkConnectionAdapter.StreamState_CLOSE;\n\t\t\tm_writer.close();\n\t\t}", "title": "" }, { "docid": "26bf3f07ed659b7473deb6af83a7a888", "score": "0.48643744", "text": "public void close() {\n if (chunk != null) {\n tx.unpin(chunk);\n chunk = null;\n }\n }", "title": "" }, { "docid": "7ce35ade6d440d0f8a44d02135278041", "score": "0.48523477", "text": "@Override\n public void flush()\n {\n // only a streaming source can be flushed:\n // Only streaming sources process buffers:\n if( channelType != SoundSystemConfig.TYPE_STREAMING )\n return;\n \n // determine how many have been processed:\n int processed = AL10.alGetSourcei( ALSource.get( 0 ),\n AL10.AL_BUFFERS_QUEUED );\n // Check for errors:\n if( checkALError() )\n return;\n \n IntBuffer intBuffer = BufferUtils.createIntBuffer( 1 );\n while( processed > 0 )\n {\n try\n {\n AL10.alSourceUnqueueBuffers( ALSource.get( 0 ), intBuffer );\n }\n catch( Exception e )\n {\n return;\n }\n if( checkALError() )\n return;\n processed--;\n }\n }", "title": "" }, { "docid": "e62e5a28d3eae7ed8aa19c459421e767", "score": "0.48521104", "text": "protected void finalize()\n {\n try\n {\n in.close();\n out.close();\n client.close();\n server.close();\n }\n catch (IOException e)\n {\n System.out.println(\"Could not close.\");\n System.exit(-1);\n }\n }", "title": "" }, { "docid": "174eba1ad0ddcf981fe2ef7a3bd61373", "score": "0.48399737", "text": "public void stopOperations() {\n terminateSignal = true;\n processor.onComplete();\n // The stopped CompletableFuture is completed in onComplete or onError callback for the processor, so this will\n // return after all compaction calls are completed\n stopped.join();\n if (logFile != null) {\n Util.close(logFile);\n // Complete the file, this file should not be compacted\n completeFile(logFile.fileId, currentOffset, nextExpirationTime, false);\n logFile = null;\n }\n }", "title": "" }, { "docid": "6349e9de80869d8fee95748131be8e2a", "score": "0.4814044", "text": "@Override\n public void close() throws IOException {\n if (!finished) {\n finish();\n }\n out.close();\n }", "title": "" }, { "docid": "c12a6ef1a9e0fafcee4edc620e5a3d98", "score": "0.47958532", "text": "@Override\r\n\t\t\tpublic void onEndBuffering() {\n\t\t\t\t\r\n\t\t\t}", "title": "" }, { "docid": "b2a2d6ed18672b67a88e355b865324a6", "score": "0.47888783", "text": "@Override\n public void abort() {\n out.reset();\n }", "title": "" }, { "docid": "e910a1e319279fa4251bc1af0d8ce3d7", "score": "0.4788482", "text": "protected void finish() {\n\t\tconn.cancel(true);\n\t\t\n\t}", "title": "" }, { "docid": "155d7693111e4fe0cca926546b76d2b3", "score": "0.47824627", "text": "public void flush() {\n buffer.flushLocal();\n }", "title": "" }, { "docid": "8c33d002d65a7d8502ebd664b1148a68", "score": "0.47513232", "text": "public final void run()\r\n/* 976: */ {\r\n/* 977: */ try\r\n/* 978: */ {\r\n/* 979:917 */ if (this.size > 0)\r\n/* 980: */ {\r\n/* 981:918 */ ChannelOutboundBuffer buffer = this.ctx.channel.unsafe().outboundBuffer();\r\n/* 982:920 */ if (buffer != null) {\r\n/* 983:921 */ buffer.decrementPendingOutboundBytes(this.size);\r\n/* 984: */ }\r\n/* 985: */ }\r\n/* 986:924 */ write(this.ctx, this.msg, this.promise);\r\n/* 987: */ }\r\n/* 988: */ finally\r\n/* 989: */ {\r\n/* 990:927 */ this.ctx = null;\r\n/* 991:928 */ this.msg = null;\r\n/* 992:929 */ this.promise = null;\r\n/* 993: */ }\r\n/* 994: */ }", "title": "" }, { "docid": "9190da895704aa75bd06bc3f8d6b9609", "score": "0.47310644", "text": "public void close() {\n dropBuffer();\n \n try {\n lock.lockInterruptibly();\n } catch (InterruptedException ex) {\n throw new RuntimeException(ex);\n }\n \n packet = null;\n packetPool.dispose();\n \n lock.unlock();\n }", "title": "" }, { "docid": "2336d0343aee32f980ab9c4b57d090e2", "score": "0.46728122", "text": "public void flush()\n\t\t\tthrows IOException, RemoteException;", "title": "" }, { "docid": "750a7a177199c3cdda608f4bda759a47", "score": "0.46726176", "text": "public abstract void deCompress();", "title": "" }, { "docid": "4b0eacad353326d631150a03eef22eb3", "score": "0.46685", "text": "private void writeEmptyBuffer() {\n write(Unpooled.EMPTY_BUFFER);\n }", "title": "" }, { "docid": "93a8b5429dc4a9d51d17c1d04cc5b45a", "score": "0.46684963", "text": "protected void processBlock(byte[] paramArrayOfByte)\r\n/* 84: */ {\r\n/* 85:160 */ compress(paramArrayOfByte, false);\r\n/* 86: */ }", "title": "" }, { "docid": "b59edfa91dea164a268e6a6b1c52330b", "score": "0.4649587", "text": "public void flush() throws IOException {\n if (_buffer == null) {\n return;\n }\n int size = _buffer.len() + 4;\n _buffer.prepend((byte) (size & 0xFF));\n _buffer.prepend((byte) ((size >>> 8) & 0xFF));\n _buffer.prepend((byte) ((size >>> 16) & 0xFF));\n _buffer.prepend((byte) ((size >>> 24) & 0xFF));\n\n if (_command != '\\0') {\n _buffer.prepend((byte) _command);\n }\n _os.write(_buffer.toArray());\n _buffer = null;\n }", "title": "" }, { "docid": "c3c08b5992ab4f60326f21a0d43364f1", "score": "0.4641997", "text": "public void flushOutStream() {\n if (disconnected || getOutputStream().currentOffset == 0) {\n return;\n }\n int length = getOutputStream().currentOffset;\n byte[] copy = new byte[length];\n System.arraycopy(getOutputStream().buffer, 0, copy, 0, length);\n mySocketHandler.queueOutput(copy);\n getOutputStream().currentOffset = 0;\n }", "title": "" }, { "docid": "72c8a84ead9b4a483d1ed6553fa770d7", "score": "0.46411866", "text": "private void directFlushOutStream() throws java.io.IOException {\n mySocketHandler.getOutput().write(getOutputStream().buffer, 0, getOutputStream().currentOffset);\n //out.write(getOutputStream().buffer, 0, getOutputStream().currentOffset);\n getOutputStream().currentOffset = 0; // reset\n }", "title": "" }, { "docid": "c690d932b0dbfc14b3cbeb1b04036c45", "score": "0.46372554", "text": "public void close() throws IOException {\n inMemoryData = new byte[0];\n inMemoryDataPointer = 0;\n streamData.close();\n\n // if we were asked to do something after close is done, do it now\n if (onCloseAction != null) {\n onCloseAction.run();\n }\n }", "title": "" }, { "docid": "b82e7334288d304fd2d7489cefd39c03", "score": "0.46360117", "text": "public PacketBuilder finishSizedFrame() {\n\t\tint position = buffer().position();\n\t\tint length = position - frameSizes[frameSizePointer--];\n\t\tbuffer().put(position - length - 1, (byte) length);\n\t\treturn this;\n\t}", "title": "" }, { "docid": "62410dacc3b12ced1f2016b875dcacce", "score": "0.4633612", "text": "public static void av_buffer_default_free(Pointer<? > opaque, Pointer<Byte > data) {\n\t\tav_buffer_default_free(Pointer.getPeer(opaque), Pointer.getPeer(data));\n\t}", "title": "" }, { "docid": "c724e9d4976af8e4d4183e49c18f97be", "score": "0.46333882", "text": "public default Status compress(ByteBuffer in, ByteBuffer out) {\n return compress(Unpooled.wrappedBuffer(in), Unpooled.wrappedBuffer(out));\n }", "title": "" }, { "docid": "80dd81796c920e60ee662b9eea158c4b", "score": "0.46315116", "text": "@Override\n public void end() {\n // Empty on purpose, no cleanup required yet\n }", "title": "" }, { "docid": "55cf5607c2dd9d1b695786b6dbe704e5", "score": "0.46283856", "text": "public WriteBuilder compressFooter() {\n this.compressFooter = true;\n return this;\n }", "title": "" }, { "docid": "36b5fd9beb197c42ad160acc4932b09e", "score": "0.4627946", "text": "public JSONOutput finish() throws IOException {\n return finish(1);\n }", "title": "" }, { "docid": "da210737684a6fa2bbd84942b2420d59", "score": "0.46204135", "text": "@Override\n\t protected void cleanup(Context context) throws IOException, InterruptedException {\n\t\t\tif(realStart < 0) return;\n\t\t\t\n\t\t\tmeta.dataBlockOffset \t= realStart;\n\t\t\tinputSplitMeta.setStart(realStart);\n\t\t\t\n\t\t\tmeta.indexBlockOffset = -1;\t\t\t// determine later in reducer\n\t\t\tmeta.indexBlockLen = -1;\t\t\t\t// determine later in reducer\n\t\t\t// write intermidate result\n\t\t\tcontext.write(inputSplitMeta, inputSplitSummary);\n\t\t}", "title": "" }, { "docid": "ff9aed61d65f706674f78f291ecefb5a", "score": "0.46185338", "text": "public default Status compress(ByteBuf in, ByteBuf out) {\n return compress(in, out, false);\n }", "title": "" }, { "docid": "17b3d0498003018756e6f7612b8543e1", "score": "0.46176922", "text": "private void flushBuffer() {\n \toutputQueue.addAll(buffer);\n \tbuffer.clear(); \t\n }", "title": "" }, { "docid": "150c4055379704d193fe16a34ee513b2", "score": "0.4612101", "text": "public void done() {\n\t\t\n\t\tif (serverR != null) {\n\t\t\tserverR.done();\n\t\t}\n\t\t\n\t\ttransport.getWire().done();\n\t}", "title": "" }, { "docid": "336d215f09cef70096ee63d823d38385", "score": "0.4610534", "text": "public int flush()\n\n {\n\n if (stream==null||writePos==0)\n\n return 0;\n\n int ret=stream.writeBytes(wbuffer,0,writePos);\n\n writePos=0;\n\n writeAvailable=wbuffer.length;\n\n return ret;\n\n }", "title": "" }, { "docid": "690355d66fd0ce9e282866637da204cb", "score": "0.46082294", "text": "public void finish() throws IOException;", "title": "" }, { "docid": "42c16a0186be1cfa6d4b129d61b0846e", "score": "0.46075493", "text": "public JSONOutput finishAll() throws IOException {\n return finish(stack.size());\n }", "title": "" }, { "docid": "f82526b400cde6e4312016ab22bbdf9b", "score": "0.4601993", "text": "@Override\n protected void finalize() throws Throwable {\n flush();\n super.finalize();\n }", "title": "" }, { "docid": "4c7ae47ff6f0cedb1caaa36ed5fb3b41", "score": "0.45911267", "text": "public void send(byte[] packet, int packetLen, byte packetSequence) throws IOException {\n this.compressedSequenceId = packetSequence;\n\n // short-circuit send small packets without compression and return\n if (packetLen < MIN_COMPRESS_LEN) {\n writeCompressedHeader(packetLen + NativeConstants.HEADER_LENGTH, this.compressedSequenceId, 0);\n writeUncompressedHeader(packetLen, packetSequence);\n this.outputStream.write(packet, 0, packetLen);\n this.outputStream.flush();\n return;\n }\n\n if (packetLen + NativeConstants.HEADER_LENGTH > NativeConstants.MAX_PACKET_SIZE) {\n this.compressedPacket = new byte[NativeConstants.MAX_PACKET_SIZE];\n } else {\n this.compressedPacket = new byte[NativeConstants.HEADER_LENGTH + packetLen];\n }\n\n PacketSplitter packetSplitter = new PacketSplitter(packetLen);\n\n int unsentPayloadLen = 0;\n int unsentOffset = 0;\n // loop over constructing and sending compressed packets\n while (true) {\n this.compressedPayloadLen = 0;\n\n if (packetSplitter.nextPacket()) {\n // rest of previous packet\n if (unsentPayloadLen > 0) {\n addPayload(packet, unsentOffset, unsentPayloadLen);\n }\n\n // current packet\n int remaining = NativeConstants.MAX_PACKET_SIZE - unsentPayloadLen;\n // if remaining is 0 then we are sending a very huge packet such that are 4-byte header-size carryover from last packet accumulated to the size\n // of a whole packet itself. We don't handle this. Would require 4 million packet segments (64 gigs in one logical packet)\n int len = Math.min(remaining, NativeConstants.HEADER_LENGTH + packetSplitter.getPacketLen());\n int lenNoHdr = len - NativeConstants.HEADER_LENGTH;\n addUncompressedHeader(packetSequence, packetSplitter.getPacketLen());\n addPayload(packet, packetSplitter.getOffset(), lenNoHdr);\n\n completeCompression();\n // don't send payloads with incompressible data\n if (this.compressedPayloadLen >= len) {\n // combine the unsent and current packet in an uncompressed packet\n writeCompressedHeader(unsentPayloadLen + len, this.compressedSequenceId++, 0);\n this.outputStream.write(packet, unsentOffset, unsentPayloadLen);\n writeUncompressedHeader(lenNoHdr, packetSequence);\n this.outputStream.write(packet, packetSplitter.getOffset(), lenNoHdr);\n } else {\n sendCompressedPacket(len + unsentPayloadLen);\n }\n\n packetSequence++;\n unsentPayloadLen = packetSplitter.getPacketLen() - lenNoHdr;\n unsentOffset = packetSplitter.getOffset() + lenNoHdr;\n resetPacket();\n } else if (unsentPayloadLen > 0) {\n // no more packets, send remaining unsent data\n addPayload(packet, unsentOffset, unsentPayloadLen);\n completeCompression();\n if (this.compressedPayloadLen >= unsentPayloadLen) {\n writeCompressedHeader(unsentPayloadLen, this.compressedSequenceId, 0);\n this.outputStream.write(packet, unsentOffset, unsentPayloadLen);\n } else {\n sendCompressedPacket(unsentPayloadLen);\n }\n resetPacket();\n break;\n } else {\n // nothing left to send (only happens on boundaries)\n break;\n }\n }\n\n this.outputStream.flush();\n\n // release reference to (possibly large) compressed packet buffer\n this.compressedPacket = null;\n }", "title": "" }, { "docid": "6e9956b0b5d16291fdbcb5736bb1db72", "score": "0.45908487", "text": "@Override\n public synchronized void close() {\n // try to write everything queued / buffered\n for (BatchPoints points : batchQueue) {\n WriteResult result = tryToWrite(points);\n if (result.outcome != WriteResultOutcome.WRITTEN) {\n exceptionHandler.accept(points.getPoints(), result.throwable);\n }\n }\n }", "title": "" }, { "docid": "7d4edbe8333d96f9d58d133327f57205", "score": "0.45799378", "text": "public void setFullCompression() {\n if (stamper.isAppend())\n return;\n stamper.setFullCompression();\n }", "title": "" }, { "docid": "7783f382c423b0aa6ad0589ae0c9648b", "score": "0.45784503", "text": "public Status decompress(ByteBuf in, ByteBuf out) throws InvalidDataException;", "title": "" }, { "docid": "16d2b6f70940b45158de31b86e25625c", "score": "0.45779935", "text": "public void compress(final byte[] data) throws IOException {\n compress(data, 0, data.length);\n }", "title": "" }, { "docid": "63382cc02d33fce70cadfca4deaed6c4", "score": "0.4567669", "text": "public synchronized void flush() throws IOException\n\t{\n\t\tif ( count != 0 )\n\t\t{\n\t\t\twriteBuf( buf, 0, count );\n\t\t\tcount = 0;\n\t\t}\n\t}", "title": "" }, { "docid": "022dd8fdb42c227275ad7184c391b04f", "score": "0.45613104", "text": "private void maybeFlushData()\n\t\t{\n\t\t\tif(_mirrBuf.length() > _nextFlushPoint)\n\t\t\t{\n\t\t\t\t_wordDataBuffer.flush();\n\t\t\t\t_miscDataBuffer.flush();\n\t\t\t\t_extraDataBuffer.flush();\n\t\t\t\t_isMiscBuffer.flush();\n\t\t\t\t \n\t\t\t\t_nextFlushPoint += _charPerFlush;\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "dc18500c2aef8c844ba7433848d00d21", "score": "0.45347542", "text": "@Override\r\n\tpublic void finish() {\n\t\tsuper.finish();\r\n\t\tqueue.removeLast();\r\n\t}", "title": "" }, { "docid": "a6cac2411f6b4989204794294a7912a4", "score": "0.4531862", "text": "private void endBlock(boolean fin, int sbPtr) throws IOException {\n if (noOutput) {\n bufferPtr = 0;\n return;\n }\n\n int[] sb = buffer;\n\n int[] freqLit = new int[286];\n int[] freqDist = new int[30];\n\n /*\n * Do not forget the EOB symbol.\n */\n freqLit[256] = 1;\n\n /*\n * Get the uncompressed data length; also, gather frequencies.\n */\n int csU = 0;\n for (int i = 0; i < sbPtr; i++) {\n int val = sb[i];\n int sym = val & 0x1FF;\n freqLit[sym]++;\n if (sym < 256) {\n csU += 8;\n continue;\n }\n csU += 8 * (LENGTH[sym - 257] + ((val >>> 9) & 0x1F));\n int dist = (val >>> 14) & 0x1F;\n freqDist[dist]++;\n }\n\n /*\n * Adjust csU to account for the header bytes. Also, save the uncompressed data length (in bytes) in uDataLen.\n */\n int csUextra = 0;\n for (int t = 0; t < csU; t += 65535) {\n if (t == 0) {\n if (outPtr > 5) {\n csUextra = 48 - outPtr;\n } else {\n csUextra = 40 - outPtr;\n }\n } else {\n csUextra += 40;\n }\n }\n int uDataLen = (csU >>> 3);\n csU += csUextra;\n\n /*\n * Compute the dynamic Huffman codes and get the lengths for dynamic and fixed codes.\n */\n Huff huff = new Huff(freqLit, freqDist);\n int csD = huff.getDynamicBitLength();\n int csF = huff.getFixedBitLength();\n\n /*\n * We now have the bit lengths for uncompressed blocks (csU), fixed Huffman codes (csF) and dynamic Huffman\n * codes (csD). We use the smallest. On equality, we prefer uncompressed blocks over Huffman codes, and fixed\n * Huffman codes over dynamic Huffman codes.\n */\n if (csU <= csF && csU <= csD) {\n writeBits(fin ? 1 : 0, 3);\n if (outPtr > 0)\n writeBits(0, 8 - outPtr);\n writeBits(uDataLen | (~uDataLen << 16), 32);\n sendBuffered();\n out.write(ucBuffer, 0, uDataLen);\n } else if (csF <= csD) {\n /*\n * Fixed Huffman codes.\n */\n\n /*\n * Block header (3 bits).\n */\n writeBits(fin ? 3 : 2, 3);\n\n /*\n * Now, write out the data.\n */\n for (int i = 0; i < sbPtr; i++) {\n int val = buffer[i];\n int sym = val & 0x1FF;\n if (sym < 256) {\n writeBits(FIXED_LIT_CODE[sym], sym < 144 ? 8 : 9);\n continue;\n }\n\n writeBits(FIXED_LIT_CODE[sym], sym < 280 ? 7 : 8);\n int eLenNum = LENGTH_ENUM[sym - 257];\n if (eLenNum > 0)\n writeBits((val >>> 9) & 0x1F, eLenNum);\n int dist = (val >>> 14) & 0x1F;\n writeBits(FIXED_DIST_CODE[dist], 5);\n int eDistNum = DIST_ENUM[dist];\n if (eDistNum > 0)\n writeBits(val >>> 19, eDistNum);\n }\n\n /*\n * Write out the EOB.\n */\n writeBits(FIXED_LIT_CODE[256], 7);\n } else {\n /*\n * Dynamic Huffman codes.\n */\n int[] litCode = huff.getLitCode();\n int[] litCodeLen = huff.getLitCodeLen();\n int[] distCode = huff.getDistCode();\n int[] distCodeLen = huff.getDistCodeLen();\n int[] compTrees = huff.getCompTrees();\n int compTreesLen = compTrees.length;\n int[] ctCode = huff.getCTCode();\n int[] ctCodeLen = huff.getCTCodeLen();\n int[] permCT = huff.getPermCT();\n int permCTLen = permCT.length;\n\n /*\n * Block header (3 bits).\n */\n writeBits(fin ? 5 : 4, 3);\n\n /*\n * The tree lengths.\n */\n writeBits(litCode.length - 257, 5);\n writeBits(distCode.length - 1, 5);\n writeBits(permCTLen - 4, 4);\n\n /*\n * The CT tree.\n */\n for (int i = 0; i < permCTLen; i++)\n writeBits(permCT[i], 3);\n\n /*\n * The two compressed trees.\n */\n for (int i = 0; i < compTreesLen; i++) {\n int v = compTrees[i];\n int s = v & 0x1F;\n writeBits(ctCode[s], ctCodeLen[s]);\n int ebits;\n switch (s) {\n case 16:\n ebits = 2;\n break;\n case 17:\n ebits = 3;\n break;\n case 18:\n ebits = 7;\n break;\n default:\n continue;\n }\n writeBits((v >>> 5), ebits);\n }\n\n /*\n * Now, write out the data.\n */\n for (int i = 0; i < sbPtr; i++) {\n int val = buffer[i];\n int sym = val & 0x1FF;\n writeBits(litCode[sym], litCodeLen[sym]);\n if (sym < 256)\n continue;\n int eLenNum = LENGTH_ENUM[sym - 257];\n if (eLenNum > 0)\n writeBits((val >>> 9) & 0x1F, eLenNum);\n int dist = (val >>> 14) & 0x1F;\n writeBits(distCode[dist], distCodeLen[dist]);\n int eDistNum = DIST_ENUM[dist];\n if (eDistNum > 0)\n writeBits(val >>> 19, eDistNum);\n }\n\n /*\n * Write out the EOB.\n */\n writeBits(litCode[256], litCodeLen[256]);\n }\n\n sendBuffered();\n bufferPtr = 0;\n\n /*\n * Adjust ucBuffer[]. Some data has been processed, but some may remain (at most 258 bytes, corresponding to the\n * currently matched sequence). We must take care: the buffer is circular. We use the fact that the buffer is\n * more than twice as large than the maximum amout of data we move around.\n */\n int uLen = ucBuffer.length;\n int uRealLen = ucBufferPtr;\n while (uRealLen < uDataLen)\n uRealLen += uLen;\n if (uDataLen < uRealLen) {\n int tm = uRealLen - uDataLen;\n\n /* DEBUG */\n if (tm > 258)\n throw new Error(\"too much data: \" + tm);\n\n if (tm <= ucBufferPtr) {\n System.arraycopy(ucBuffer, ucBufferPtr - tm, ucBuffer, 0, tm);\n } else {\n int fpl = tm - ucBufferPtr;\n System.arraycopy(ucBuffer, 0, ucBuffer, fpl, ucBufferPtr);\n System.arraycopy(ucBuffer, uLen - fpl, ucBuffer, 0, fpl);\n }\n }\n ucBufferPtr = uRealLen - uDataLen;\n }", "title": "" }, { "docid": "a8a990cde146651a4e53ef2e11a59c27", "score": "0.45317137", "text": "protected void end() {\n\t\tarmature.stop();\n\t}", "title": "" }, { "docid": "8d21f9e6e76f27f73dbc89da037bc83d", "score": "0.45279717", "text": "private void chunk() {\n if (partial != null && partial.size() >= CHUNK_SIZE) {\n flush();\n }\n }", "title": "" }, { "docid": "c821de6162593e4ea9a33743944c0677", "score": "0.45264256", "text": "public void end() {\n finished = true;\n }", "title": "" }, { "docid": "bdbb90f7b275dd861309749712d81214", "score": "0.4523005", "text": "@Override\n public void close() {\n try {\n switch (strategy) {\n case SORTED_PARTIAL_REDUCE:\n sortAndCombine();\n break;\n case HASHED_PARTIAL_REDUCE:\n reduceFacade.emit();\n break;\n }\n } catch (Exception ex2) {\n throw new ExceptionInChainedStubException(taskName, ex2);\n }\n\n outputCollector.close();\n dispose(false);\n }", "title": "" }, { "docid": "07cf16e90f2e565cd3e8aecf15ffc33f", "score": "0.4518134", "text": "public synchronized void endWrite() {\n\t\tthis.numWriters--;\n\t\tnotifyAll();\n\t}", "title": "" }, { "docid": "1d7ff15b62c5481f83800498b4251d2c", "score": "0.45142686", "text": "private void doFlushThroughResponseChain(byte[] data, int off, int len, boolean doClose) {\n\t\t\ttry {\n\t\t\t\tif (data.length > 0) {\n\t\t\t\t\tif (_pushletLogger.isDebugEnabled()) {\n\t\t\t\t\t\tString log = alcatel.tess.hometop.gateways.utils.Utils.dumpByteArray(\n\t\t\t\t\t\t\t\t\"PushletOutputStream: flushing data len=\" + len + \"\\n\", data, off, len, 1024);\n\t\t\t\t\t\t_pushletLogger.debug(log);\n\t\t\t\t\t}\n\t\t\t\t\tMuxHeaderV0 hdr = new MuxHeaderV0();\n\t\t\t\t\thdr.set(getSessionId(), getSockId(), PUSHLET_FLG_RESP);\n\n\t\t\t\t\t_utils.getAgent().muxData(connection, hdr, data, off, len);\n\t\t\t\t}\n\n\t\t\t\tif (doClose) {\n\t\t\t\t\tif (clientClosed) {\n\t\t\t\t\t\tif (_pushletLogger.isDebugEnabled()) {\n\t\t\t\t\t\t\t_pushletLogger.debug(\"PushletOutputStream.doFlush0/Close: client already closed socket\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\treturn; // The client closed its socket, and the request was aborted.\n\t\t\t\t\t}\n\n\t\t\t\t\tif (serverClosed) {\n\t\t\t\t\t\tif (_pushletLogger.isDebugEnabled()) {\n\t\t\t\t\t\t\t_pushletLogger.debug(\"PushletOutputStream.doFlush0/Close: socket already closed (timeout)\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\treturn; // The http stack closed the client socket because of a socket\n\t\t\t\t\t\t// inactivity\n\t\t\t\t\t\t// timeout.\n\t\t\t\t\t}\n\n\t\t\t\t\tif (_pushletLogger.isDebugEnabled()) {\n\t\t\t\t\t\t_pushletLogger.debug(\"PushletOutputStream: closing\");\n\t\t\t\t\t}\n\t\t\t\t\tMuxHeaderV0 hdr = new MuxHeaderV0();\n\t\t\t\t\thdr.set(getSessionId(), getSockId(), PUSHLET_FLG_SRVCLOSE);\n\t\t\t\t\t_utils.getAgent().muxData(connection, hdr, null, 0, 0);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tcatch (Throwable t) {\n\t\t\t\t_pushletLogger.error(\"Exception while flushing pushlet outputstream\", t);\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "4c26f758a09ffb0939067a888541ed9f", "score": "0.4512824", "text": "@Override\n public void finish(OutputStream os) {\n }", "title": "" }, { "docid": "9cf26a413de1b0218495411619b8ea61", "score": "0.45101964", "text": "public void writeAfterFilter(byte[] b, int off, int len) {\n this.buffer.write(b, off, len);\n sendIfReady();\n }", "title": "" }, { "docid": "6fa43eb959549b63741f38ba20766f02", "score": "0.45016584", "text": "@WorkerThread\n public void signalEndOfInput() {\n inputStreamEnded = true;\n if (pendingFrames.isEmpty() && currentFrame == null) {\n externalTextureProcessor.signalEndOfCurrentInputStream();\n }\n }", "title": "" }, { "docid": "0d3d3ede3c33654f17eac9a49cf7c8b4", "score": "0.44930768", "text": "public void flush() throws IOException {\n\t\t\tbyte[] packet = new byte[m_writePos + 1];\n\n\t\t\t// Determinate the type of the packet\n\t\t\tif (m_state == ChunkConnectionAdapter.StreamState_EOF)\n\t\t\t\tpacket[0] = ChunkConnectionAdapter.EOF_PACKET;\n\t\t\telse\n\t\t\t\tpacket[0] = ChunkConnectionAdapter.DATA_PACKET;\n\n\t\t\t// build packet\n\t\t\tSystem.arraycopy(m_buffer, 0, packet, 1, m_writePos);\n\n\t\t\t// and send\n\t\t\ttry {\n\t\t\t\tm_writer.writeChunk(packet);\n\t\t\t} catch (ConnectionException e) {\n\t\t\t\tthrow new IOException(e.getMessage());\n\t\t\t}\n\t\t\tm_buffer = new byte[BUFFER_SIZE];\n\t\t\tm_writePos = 0;\n\n\t\t\tif (m_state == ChunkConnectionAdapter.StreamState_EOF)\n\t\t\t\tm_state = ChunkConnectionAdapter.StreamState_CLOSE;\n\t\t}", "title": "" }, { "docid": "9825a789cfa3ea81f897afb8b69a9bdb", "score": "0.449112", "text": "private void endAsset() throws IOException {\n closeEntry(outputStream);\n }", "title": "" }, { "docid": "3d426594453bec9e66bf6a812154e2c2", "score": "0.44880995", "text": "public PacketBuilder finishShortSizedFrame() {\n\t\tint position = buffer().position();\n\t\tint length = position - frameSizes[frameSizePointer--];\n\t\tbuffer().put(position - length - 2, (byte) (length >> 8));\n\t\tbuffer().put(position - length - 1, (byte) length);\n\t\treturn this;\n\t}", "title": "" }, { "docid": "6a6c1822ef04f4062b17966d0d3a1f66", "score": "0.4483053", "text": "public void close() {\n // do nothing as ChannelBuffer is always open\n }", "title": "" }, { "docid": "5e3f15955a40a7dcc94ecbef660bc79e", "score": "0.44829145", "text": "private void sendCompressedPacket(int uncompressedPayloadLen) throws IOException {\n writeCompressedHeader(this.compressedPayloadLen, this.compressedSequenceId++, uncompressedPayloadLen);\n\n // compressed payload\n this.outputStream.write(this.compressedPacket, 0, this.compressedPayloadLen);\n }", "title": "" }, { "docid": "f6e2c1e88d392b2372f169f43336b34e", "score": "0.44828302", "text": "private void invokeFlush()\r\n/* 738: */ {\r\n/* 739: */ try\r\n/* 740: */ {\r\n/* 741:688 */ ((ChannelOutboundHandler)handler()).flush(this);\r\n/* 742: */ }\r\n/* 743: */ catch (Throwable t)\r\n/* 744: */ {\r\n/* 745:690 */ notifyHandlerException(t);\r\n/* 746: */ }\r\n/* 747: */ }", "title": "" }, { "docid": "da50008773660006961211ecfed4d643", "score": "0.44822183", "text": "public void finish() throws IOException {\n httpRequestBodyWriter.write(boundaryPrefix + boundaryString + boundarySuffix);\r\n httpRequestBodyWriter.flush();\r\n\r\n // Close the streams\r\n outputStreamToRequestBody.close();\r\n httpRequestBodyWriter.close();\r\n }", "title": "" }, { "docid": "77eda0143980a5f7f2493e889dca1c4e", "score": "0.4482074", "text": "public void close() throws IOException {\n if (gzipEntry != null) {\n gzipEntry.close();\n gzipEntry = null;\n }\n if (out != null) {\n out.flush();\n out = null;\n }\n if (def != null) {\n def.end();\n def = null;\n }\n }", "title": "" }, { "docid": "fa1c49559edc051b05d72814b044469a", "score": "0.44768786", "text": "public void flush() throws IOException {\n targetOutputStream.flush();\n }", "title": "" }, { "docid": "f54897cc683de8c3d2be506b6a3ad253", "score": "0.4472256", "text": "protected void finish() {\n if(finishLock.tryAcquire()) {\n if(mjCt == 1 && zombieCt == 2) {\n mjCt = zombieCt = 0;\n mjLock.release();\n zombieLock.release(2);\n }\n finishLock.release();\n }\n }", "title": "" }, { "docid": "fd425792a9aac22d7d593c1ab3a00c2a", "score": "0.4471796", "text": "public void releaseOutputStream() throws IOException {\n/* 93 */ if (this.out != null) {\n/* 94 */ this.out.flush();\n/* */ }\n/* */ }", "title": "" }, { "docid": "a7dbcc24a6d394fff6d77b2fc90a1d9b", "score": "0.44681308", "text": "private void close() throws IOException {\r\n\t\t// close the literal output\r\n\t\tliteralOut.close();\r\n\t\t\r\n\t\t// close the compressor\r\n\t\tcompressedOut.close();\r\n\t\t\r\n\t\t// close the encrypted output\r\n\t\tencryptedOut.close();\r\n\t\t\r\n\t\t// close the armored output\r\n\t\tarmoredOutputStream.close();\r\n\t}", "title": "" }, { "docid": "c09287dca0a7ccf3458ef0b8304a00be", "score": "0.4467735", "text": "@Override\n public void close()\n {\n try\n {\n AL10.alSourceStop( ALSource.get( 0 ) );\n AL10.alGetError();\n }\n catch( Exception e )\n {}\n \n if( channelType == SoundSystemConfig.TYPE_STREAMING )\n flush();\n }", "title": "" }, { "docid": "1fc0d5cd356841cc447e0b3bebc4f92f", "score": "0.44661966", "text": "@Override\n public void flush() throws IOException {\n buffout.flush();\n }", "title": "" }, { "docid": "0b7fd1d863adadea4d13b9a3f1e1c83e", "score": "0.4463107", "text": "@Override\n public void flush() throws IOException {\n this.stagingFileOutputStream.flush();\n }", "title": "" }, { "docid": "215217010739ec25d0a5069ad8d9c992", "score": "0.44590008", "text": "public final void flush() throws IOException {\n/* 499 */ if (this.b) {\n/* 500 */ this.l.seek(this.c);\n/* 501 */ this.l.write(this.a, 0, this.e);\n/* 502 */ this.b = false;\n/* */ } \n/* */ }", "title": "" }, { "docid": "e344080a7e62ba98fed8a7c485c37384", "score": "0.44589046", "text": "@Override public void flush() throws IOException {\n if (stack.size() > 0) {\n w.flush();\n }\n }", "title": "" }, { "docid": "5656714ea14ea5d27dbe02a94e14e34b", "score": "0.4456095", "text": "private void sendBuffered() throws IOException {\n if (outBufPtr > 0) {\n out.write(outBuf, 0, outBufPtr);\n outBufPtr = 0;\n }\n }", "title": "" }, { "docid": "f0934a41a80caae94d12ed687c189e28", "score": "0.4443065", "text": "protected void finalize () {\n stop ();\n }", "title": "" }, { "docid": "eeefdbdf569dac23be550837769b1c41", "score": "0.44405863", "text": "private void prepareFlush() throws IOException {\n switch (seqLen) {\n case 0:\n break;\n case 1:\n buffer[bufferPtr++] = recentBytes & 0xFF;\n if (bufferPtr == buffer.length)\n endBlock(false, bufferPtr);\n break;\n case 2:\n buffer[bufferPtr++] = (recentBytes >>> 8) & 0xFF;\n if (bufferPtr == buffer.length)\n endBlock(false, bufferPtr);\n buffer[bufferPtr++] = recentBytes & 0xFF;\n if (bufferPtr == buffer.length)\n endBlock(false, bufferPtr);\n break;\n default:\n buffer[bufferPtr++] = makeCopySymbol(seqLen, seqDist);\n if (bufferPtr == buffer.length)\n endBlock(false, bufferPtr);\n break;\n }\n seqLen = 0;\n }", "title": "" } ]
c82f58764fe26b943a14f87c86a0fa38
Fires an appropriate ChatEvent.
[ { "docid": "44379df8016dbe8a71bcafb8d3ca46b3", "score": "0.0", "text": "protected boolean processWhisper(String username, String titles, int rating, int gameNumber,\r\n String message){\r\n if (titles == null)\r\n titles = \"\";\r\n\r\n listenerManager.fireChatEvent(\r\n new ChatEvent(this, \"whisper\", username, titles, rating, message, new Integer(gameNumber)));\r\n\r\n return true;\r\n }", "title": "" } ]
[ { "docid": "ffb851cde935dfd63eb117f48ab11237", "score": "0.6753888", "text": "public abstract void onTalk(ChatEvent event);", "title": "" }, { "docid": "9627b54ceac432e2d8762365b2c9dc1c", "score": "0.6612172", "text": "@Override\n\tpublic void onChatReceived(ChatEvent arg0) {\n\t\t\n\t}", "title": "" }, { "docid": "27fa71b3d38ef93530c797d784206b69", "score": "0.62817925", "text": "@EventHandler\n\tpublic void onPlayerChat(AsyncPlayerChatEvent e){\n\t\tlogAction(e.getPlayer(),AdvancedAFK.ACTION_CHAT);\t\t\n\t}", "title": "" }, { "docid": "94999526b76ba304c7f1eacb6c1f289c", "score": "0.6251191", "text": "void chatStarted(Chat chat);", "title": "" }, { "docid": "d8ef5966273b71976e122714ef91a765", "score": "0.6109032", "text": "@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tsendChatMessage();\r\n\t\t\t}", "title": "" }, { "docid": "9b752be80b97702d9772e12b028219f0", "score": "0.6040959", "text": "private void chatMessageSent(){\n\t\t\n\t\t//String message = panel.getChatField().getText();\n\t\t//TODO send this message to the server\n\t\t//panel.sendChatMessage();\n\t\t\n\t}", "title": "" }, { "docid": "a615f86f15c131610293ce17481162d0", "score": "0.6013601", "text": "@Override\n public void notify(ChatMessageEvent chatMessageEvent) {\n if (chatMessageEvent.getMessage().equalsIgnoreCase(\"You cook a piece of meat.\")) {\n beefCooked++;\n }\n if (chatMessageEvent.getMessage().equalsIgnoreCase(\"You accidentally burn the meat.\")) {\n beefBurned++;\n }\n }", "title": "" }, { "docid": "c7501153bbc093f7c8ad84172b1f954e", "score": "0.60015494", "text": "@IBackend\n @SubscribeEvent(receiveCanceled = true) // in case other mod is using it and cancels it\n public void onPlayerChat(ClientChatReceivedEvent event) {\n if (event == null || event.type != 0 || !hypixelUtils.onHypixel()) {\n return;\n }\n final String message = event.message.getUnformattedText();\n\n if (ServerType.getServerTypePattern().matcher(message).find()) {\n runCallbacks(ServerInstance.createInstance(message, Minecraft.getMinecraft(), hypixelUtils));\n }\n }", "title": "" }, { "docid": "6e86e9e1560dc6a1dd225fe06a8072e9", "score": "0.59900457", "text": "public void trigger() {\n\n\t\tMessage message = messageRepository.findOne(messageRepository.count() - 1);\n\t\tString chatMessage = message.getUser() + \" : \" + message.getMessage();\n\t\tthis.template.convertAndSend(\"/topic/message\", chatMessage);\n\t}", "title": "" }, { "docid": "7779f1824bfbd17a69c8ee6b60c9aaa9", "score": "0.59771854", "text": "@EventHandler\n\tpublic void onChat(AsyncPlayerChatEvent event) {\n\n\t\tPlayer player = event.getPlayer();\n\t\tString message = event.getMessage();\n\n\t\tif (this.allowteamchat) {\n\t\t\tif (!message.startsWith(\"!\")) {\n\t\t\t\tevent.setMessage(null);\n\t\t\t\tif (this.team.hasEntry(player.getDisplayName())) {\n\t\t\t\t\tfor (Player players : Bukkit.getOnlinePlayers()) {\n\t\t\t\t\t\tif (this.team.hasEntry(players.getDisplayName())) {\n\t\t\t\t\t\t\tplayers.sendMessage(\n\t\t\t\t\t\t\t\t\tthis.chatprefix + \" (Team) \" + player.getDisplayName() + \": \" + message);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tevent.setMessage(\n\t\t\t\t\t\tthis.chatprefix + \" \" + player.getDisplayName() + \": \" + message.replaceFirst(\"!\", \"\"));\n\t\t\t}\n\t\t}\n\n\t}", "title": "" }, { "docid": "7e1b64f54cd54a1de09cde6e3d816e1e", "score": "0.5748723", "text": "public void chatMessage(ChatMessage m) {\n if(isOpened()) {\n chatBox.receiveMsg(m.name + \": \" + m.message);\n }\n }", "title": "" }, { "docid": "08a770167d6b83ffdd4ae31d39fa8e58", "score": "0.57317394", "text": "private void fireMessageReceivedEvent(Contact contact, String message) {\n synchronized (listeners) {\n for (int i = 0; i < listeners.size(); i++) {\n ((IChatSessionListener) listeners.get(i)).messageReceived(contact, message);\n }\n }\n }", "title": "" }, { "docid": "b73ea1e65bdc9b1027c9c546adb59f22", "score": "0.57249165", "text": "@Override\r\n\t\t\tpublic void onChatDetails(Chat chat) {\n\t\t\t\t\r\n\t\t\t}", "title": "" }, { "docid": "6d071d616b82a21bb416881221cdc86c", "score": "0.5708895", "text": "void chatInvitationReceived(ChatInvitation chatInvitation);", "title": "" }, { "docid": "a8d439b362d1129a9128398aa1dfa2eb", "score": "0.56963444", "text": "public void onP2PChatCreated(P2PChat chat);", "title": "" }, { "docid": "e7da1d2b99b73b14a75a95cc5d44fe30", "score": "0.56960416", "text": "private void fireContactJoinedEvent(Contact contact) {\n synchronized (listeners) {\n for (int i = 0; i < listeners.size(); i++) {\n ((IChatSessionListener) listeners.get(i)).contactJoined(contact);\n }\n }\n }", "title": "" }, { "docid": "3664c61f6d099152ff0f093618f019a4", "score": "0.5630026", "text": "@Subscribe(threadMode = ThreadMode.MAIN)\n public void onEvent(final MessageAnalizedFromBotEvent messageAnalizedFromBotEvent) {\n if (messageAnalizedFromBotEvent.isTyping()) {\n dotsTextView.showAndPlay();\n } else if (messageAnalizedFromBotEvent.isCarrousell()) {\n ChatMessage message = new ChatMessage();\n message.setMe(false);\n message.setDate(DateFormat.getDateTimeInstance().format(new Date()));\n message.setElements(messageAnalizedFromBotEvent.getElements());\n\n addResponseFromBotToChat(message);\n } else {\n ChatMessage message = new ChatMessage();\n message.setMe(false);\n message.setDate(DateFormat.getDateTimeInstance().format(new Date()));\n message.setMessage(messageAnalizedFromBotEvent.getText());\n if (messageAnalizedFromBotEvent.isChoice()) {\n message.setAttachments(messageAnalizedFromBotEvent.getAttachments());\n }\n message.setMessage(messageAnalizedFromBotEvent.getText());\n\n addResponseFromBotToChat(message);\n }\n }", "title": "" }, { "docid": "b168d1a74adbaad0f113776601a87d61", "score": "0.56193686", "text": "private void updateChat(SelectionKey clientKey, UpdateChatsPacket chatInfo)\n {\n Chat chat;\n \n if (!this.chats.containsKey(chatInfo.getChatID()))\n {\n sendOperationResult(clientKey, chatInfo.getChatID(), OperationStatusPacket.FAIL, OperationStatusPacket.OP_CRUD);\n return;\n }\n \n chat = this.chats.get(chatInfo.getChatID());\n \n if (isChatNameTaken(chatInfo.getName()))\n {\n sendOperationResult(clientKey, chatInfo.getChatID(), OperationStatusPacket.FAIL, OperationStatusPacket.OP_CRUD);\n return;\n }\n \n try \n {\n chat.setName(chatInfo.getName());\n ChatDAOMySQLImpl.getInstance().update(chat);\n \n sendOperationResult(clientKey, chatInfo.getChatID(), OperationStatusPacket.SUCCESS, OperationStatusPacket.OP_CRUD);\n \n notifyUsersOfChatUpdate(clientKey, chat, UpdateChatsPacket.UPDATE);\n \n } catch (SQLException e) \n {\n System.err.println(\"ChatManager.updateChat: SQL exception thrown: \" + e.getMessage());\n sendOperationResult(clientKey, chatInfo.getChatID(), OperationStatusPacket.FAIL, OperationStatusPacket.OP_CRUD);\n }\n }", "title": "" }, { "docid": "5bc6dc0fd1b25d12490e8c1dad3cb2f5", "score": "0.5577251", "text": "private void fireEvent (String event) {\n fireEvent(event, null);\n }", "title": "" }, { "docid": "d39b729a6dbf569221c50b21e3b7f0e3", "score": "0.5569497", "text": "@Override\r\n\t\t\t\tpublic void handle(ActionEvent event) {\n\t\t\t\t\tint chatNum = availableChatsToJoin.get(chatName);\r\n\t\t\t\t\tif(chats.keySet().contains(chatNum)){\r\n\t\t\t\t\t\t//MyClient already has chatroom open\r\n\t\t\t\t\t\terrorNotification.setText(\"You have already joined \"+chatName);\r\n\t\t\t\t\t}else{\r\n\t\t\t\t\t\tStage st = new Stage();\r\n\t\t\t\t\t\tChatroom c = new Chatroom(st,availableChatsToJoin.get(chatName),chatName);\r\n\t\t\t\t\t\tst.show();\r\n\t\t\t\t\t\tchats.put(availableChatsToJoin.get(chatName),c); //adds and displays a new chatroom that can be referenced by it's key #\r\n\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\tdataOutStream.writeByte(7); //add me to the chatroom current list \r\n\t\t\t\t\t\t\tdataOutStream.writeByte(availableChatsToJoin.get(chatName));\r\n\t\t\t\t\t\t\tdataOutStream.writeUTF(myUsername);\r\n\t\t\t\t\t\t\tdataOutStream.flush();\r\n\t\t\t\t\t\t} catch (IOException e) {\r\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}", "title": "" }, { "docid": "60c9c360172d80e2546291010bce86b7", "score": "0.55451643", "text": "public void actionPerformed(ActionEvent event) {\r\n chatId = 0;\r\n try {\r\n chatId = Integer.parseInt(managerPanel.getOpenField());\r\n }catch (Exception e) {\r\n System.out.println(\"Not an Integer\");\r\n }\r\n\r\n if(chatId <= chats.size() && chatId > 0){ // Display chat information and adjust id number\r\n chatFrame.setMessages(chats.get(chatId - 1).getMessages());\r\n chatFrame.setChatId(chatId);\r\n managerPanel.setOpenError(\"\");\r\n chatFrame.repaint();\r\n chatFrame.revalidate();\r\n }else{\r\n managerPanel.setOpenError(\"Invalid chat id\");\r\n }\r\n }", "title": "" }, { "docid": "25cdc27b2732ad7b6911b9f034003b67", "score": "0.5543169", "text": "@Override\n public void chat(String data) {\n\n }", "title": "" }, { "docid": "da16d59da65137814ddc6634836f5803", "score": "0.5532145", "text": "void doChat() {\n TableLine line = getSelectedLine();\n if(line == null)\n return;\n if(!line.isChatEnabled())\n return;\n line.doChat();\n }", "title": "" }, { "docid": "6644c863cbb9bef9cbde7d576a46c425", "score": "0.5527755", "text": "public void sendChatMessage(String p_71165_1_) {\n\t\tfinal EventChatSent event = new EventChatSent(p_71165_1_);\n\t\tTeamBattleClient.getEventManager().call(event);\n\t\tevent.checkForCommands();\n\t\tif (event.isCancelled())\n\t\t\treturn;\n\t\tp_71165_1_ = event.getMessage();\n\t\tsendQueue.addToSendQueue(new C01PacketChatMessage(p_71165_1_));\n\t}", "title": "" }, { "docid": "2d9985076a7e44f1e908f7896b533680", "score": "0.55271196", "text": "@Override\n public void handle(ActionEvent event)\n {\n PlayerInterface player = Main.getGameController().player;\n if (player != null)\n {\n Stack<ChatHistory.ChatMessage> history = player.getChatHistory().getMessages();\n\n String conversation = \"\";\n for (ChatHistory.ChatMessage message : history)\n {\n //Some messages are null because of the set stack size.\n if (message != null)\n {\n conversation = conversation + message.getSender() + \":\" + message.getMessage() + \"\\n\";\n }\n }\n convo.setText(conversation);\n }\n }", "title": "" }, { "docid": "0bbf545ee2947bd84bbede8be98ef916", "score": "0.5506124", "text": "@Override\n\tpublic void onSendChatDone(byte arg0) {\n\t\t\n\t}", "title": "" }, { "docid": "fc0af9568730223a09eada60c84d68ab", "score": "0.54447776", "text": "public void chatMessageReceived(NetUser netUser, String message) {\n\t\t\n\t}", "title": "" }, { "docid": "13f46b75c503625c5478bb70154e5781", "score": "0.5437946", "text": "private void sendChatMessage () {\n String message = JOptionPane.showInputDialog(this.canvas, \"Nachricht\");\n\n if (message != null) {\n this.client.sendChatMessage(message);\n }\n }", "title": "" }, { "docid": "c751934ed6935e58b1a01759b2ff884a", "score": "0.5432482", "text": "@Override\n\tpublic void onPrivateChatReceived(final String sender, final String message) {\n\n\t\tLog.d(\"PrivateChat: \"+sender, message);\n\t\tif(message.contains(\"Fight with me\")){\n\t\tChatRoom.this.runOnUiThread(new Runnable() {\n\t\t\t public void run() {\n\t\t\t\t sa = ((SharingAtts)getApplication());\n\t\tAlertDialog.Builder alertDialogBuilder = new AlertDialog.Builder(\n\t\t\t\tChatRoom.this);\n \n\t\t\t// set title\n\t\t\talertDialogBuilder.setTitle(\"Challenge\");\n \n\t\t\t// set dialog message\n\t\t\talertDialogBuilder\n\t\t\t\t.setMessage(sender+\" challenged you for fight!\")\n\t\t\t\t.setCancelable(false)\n\t\t\t\t.setPositiveButton(\"Yes\",new DialogInterface.OnClickListener() {\n\t\t\t\t\tpublic void onClick(DialogInterface dialog,int id) {\n\t\t\t\t\t\t// if this button is clicked, close\n\t\t\t\t\t\t// current activity\n\t\t\t\t\t\tIntent i = new Intent(ChatRoom.this,ChatActivity.class);\n\t\t\t\t\t\ti.putExtra(\"challenged\", sender);\n\t\t\t\t\t\ti.putExtra(\"user\", user);\n\t\t\t\t\t\tstartActivity(i);\n\t\t\t\t\t\tremoveListeners();\n\t\t\t\t\t\tmyGame.sendPrivateChat(sender, \"LetsFight!\");\n\t\t\t\t\t\tChatRoom.this.finish();\n\t\t\t\t\t}\n\t\t\t\t })\n\t\t\t\t.setNegativeButton(\"No\",new DialogInterface.OnClickListener() {\n\t\t\t\t\tpublic void onClick(DialogInterface dialog,int id) {\n\t\t\t\t\t\t// if this button is clicked, just close\n\t\t\t\t\t\t// the dialog box and do nothing\n\t\t\t\t\t\tdialog.cancel();\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\talertDialogBuilder.create();\n\t\t\talertDialogBuilder.show();\n\t\t\t }\n\t\t\t});\n\t\t}else if(message.contains(\"LetsFight!\")){\n\t\t\tLog.d(\"Fight\", \"Challenge Accepted\");\n\t\t\tChatRoom.this.runOnUiThread(new Runnable() {\n\t\t\t\t public void run() {\n\t\t\t\t\t \tIntent i = new Intent(ChatRoom.this,ChatActivity.class);\n\t\t\t\t\t\ti.putExtra(\"challenged\", sender);\n\t\t\t\t\t\ti.putExtra(\"user\", user);\n\t\t\t\t\t\tstartActivity(i);\n\t\t\t\t\t\tremoveListeners();\n\t\t\t\t\t\tChatRoom.this.finish();\n\t\t\t\t }\n\t\t\t});\n\t\t}else{\n\t\t\tfinal Activity c;\n\t\t\tif(getParent()==null){\n\t\t\t\tc= ChatRoom.this;\n\t\t\t\tLog.d(\"Activity\",\"BattleTime\");\n\t\t\t\t\n\t\t\t\t//Log.d(\"Activity\", c.getTitle().toString()+\" getParent\");\n\t\t\t\t\n\t\t\t}else{\n\t\t\t\tc = getParent();\n\t\t\t\tLog.d(\"Activity\", c.getTitle().toString()+\" getParent\");\n\t\t\t}\t\n\t\t\t\n\t\t\tc.runOnUiThread(new Runnable(){\n\t\t\t\t\n\t\t\t\t@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\tsa = ((SharingAtts)getApplication());\n\t\t\t\t\tAlertDialog.Builder alertDialogBuilder = new AlertDialog.Builder(c); \n\t\t\t\t\tfinal EditText qChat = new EditText(c);\n\t\t\t\t\tqChat.setId(123);\n\t\t\t\t\t\n\t\t\t\t\t// set title\n\t\t\t\t\talertDialogBuilder.setTitle(sender+\" says:\");\n\t\t \n\t\t\t\t\t// set dialog message\n\t\t\t\t\talertDialogBuilder\n\t\t\t\t\t\t.setMessage(message)\n\t\t\t\t\t\t.setCancelable(false)\n\t\t\t\t\t\t.setPositiveButton(\"Chat\",new DialogInterface.OnClickListener() {\n\t\t\t\t\t\t\tpublic void onClick(DialogInterface dialog,int id) {\n\t\t\t\t\t\t\t\t// if this button is clicked, close\n\t\t\t\t\t\t\t\t// current activity\n\t\t\t\t\t\t\t\tIntent i = new Intent(c,ChatActivity.class);\n\t\t\t\t\t\t\t\ti.putExtra(\"challenged\", sender);\n\t\t\t\t\t\t\t\ti.putExtra(\"user\", user);\n\t\t\t\t\t\t\t\tstartActivity(i);\n\t\t\t\t\t\t\t\tremoveListeners();\n\t\t\t\t\t\t\t\tdialog.cancel();\n\t\t\t\t\t\t\t\tChatRoom.this.finish();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t })\n\t\t\t\t\t\t.setNegativeButton(\"No\",new DialogInterface.OnClickListener() {\n\t\t\t\t\t\t\tpublic void onClick(DialogInterface dialog,int id) {\n\t\t\t\t\t\t\t\t// if this button is clicked, just close\n\t\t\t\t\t\t\t\t// the dialog box and do nothing\n\t\t\t\t\t\t\t\tdialog.cancel();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t})\n\t\t\t\t\t\t.setNeutralButton(\"Quick Chat\",new DialogInterface.OnClickListener() {\n\t\t\t\t\t\t\tpublic void onClick(DialogInterface dialog,int id) {\n\t\t\t\t\t\t\t\t// if this button is clicked, just close\n\t\t\t\t\t\t\t\t// the dialog box and do nothing\n\t\t\t\t\t\t\t\t\tif(qChat.getText().toString()!=null){\n\t\t\t\t\t\t\t\t\t\tString msg = qChat.getText().toString();\n\t\t\t\t\t\t\t\t\t\tmyGame.sendPrivateChat(sender, msg);\n\t\t\t\t\t\t\t\t\t\tItemTest it = new ItemTest();\n\t\t\t\t\t\t\t\t\t\tcolNames = it.printData(\"chat\")[1];\n\t\t\t\t\t\t\t\t\t\tdbm = new DBManager(c, colNames,\"chat\",it.printData(\"chat\")[0]);\n\t\t\t\t\t\t\t\t\t\tdbm.openToWrite();\n\t\t\t\t\t\t\t\t\t\tdbm.cretTable();\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\tLog.d(\"content\", sa.name+\" \"+qChat.getText().toString()+\" \"+sender);\n\t\t\t\t\t\t\t\t\t\tmsg = msg.replace(\" \", \"?*\");\n\t\t\t\t\t\t\t\t\t\tdbm.insertQuery(sa.name+\" \"+msg+\" \"+sender, colNames.split(\" \")[1]+\" \"+colNames.split(\" \")[2]+\" \"+colNames.split(\" \")[3]);\n\t\t\t\t\t\t\t\t\t\tdbm.close();\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\tdialog.cancel();\n\t\t\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\t\t\tToast.makeText(c, \"Pls enter text\", Toast.LENGTH_SHORT).show();\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t})\n\t\t\t\t\t\t.setView(qChat);\n\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\talertDialogBuilder.create();\n\t\t\t\t\talertDialogBuilder.show();\n\t\t\t\t\tItemTest it = new ItemTest();\n\t\t\t\t\tcolNames = it.printData(\"chat\")[1];\n\t\t\t\t\tdbm = new DBManager(c, colNames,\"chat\",it.printData(\"chat\")[0]);\n\t\t\t\t\tdbm.openToWrite();\n\t\t\t\t\tdbm.cretTable();\n\t\t\t\t\tString message2 = message.replace(\" \", \"?*\");\n\t\t\t\t\tLog.d(\"insertQuery 492\", sender+\" \"+message2+\" \"+sa.name);\n\t\t\t\t\tdbm.insertQuery(sender+\" \"+message2+\" \"+sa.name, colNames.split(\" \")[1]+\" \"+colNames.split(\" \")[2]+\" \"+colNames.split(\" \")[3]);\n\t\t\t\t\tdbm.close();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t});\n\t\t\t\n\t\t}\n\t}", "title": "" }, { "docid": "0ea6872bbf78d9931e3b0943b2006b4c", "score": "0.538651", "text": "private void logEvent(String msg, EventType type, Event event) {\n IEventLogger logger = loggers.get(type);\n if (logger == null) {\n logger = defaultEventLogger;\n }\n String message = msg.replaceAll(client.getId(), client.getFullName() + ' ' + client.getGreeting());\n event.setMsg(message);\n logger.logEvent(event);\n }", "title": "" }, { "docid": "d3ed5b00550393b112e2725397537025", "score": "0.53746426", "text": "@Override\r\n\tpublic void receiveEvent(IRCEvent e) {\r\n\t\tif(e.getType() == Type.CONNECT_COMPLETE) {\t\t\r\n\t\t\tsession = e.getSession();\t\t\r\n\t\t}\r\n\t\t\r\n\t\telse if(e.getType() == Type.JOIN_COMPLETE) {\t\t\t\r\n\t\t\tJoinCompleteEvent jce = (JoinCompleteEvent)e;\t\t\t\t\t\t\t\t\t\t\t\t//Join complete event \r\n\t\t\tChannelView chan = new ChannelView(((JoinCompleteEvent)jce).getChannel(), windowbar);\t\t//creates new channelView window\r\n\t\t\tchan.setName(jce.getChannel().getName());\r\n\t Main.getLayout().DesktopPane.add(chan);\t\t\t\t\t\t\t\t\t\t\t\t\t\t//adds channelView to the main window\r\n\t chan.appendMsg(\"Now talking in \"+jce.getChannel().getName() + \"\\n\", true);\t\t\t\t\t//appending which channel we are in.\r\n\t chan.appendMsg(\"Topic of the day: \" + jce.getChannel().getTopic() + \"\\n\\n\", false); \t\t//set the topic\r\n\t chan.moveToFront();\t\t\r\n\t chan.input.requestFocus();\r\n\t chan.move(150, 50); \r\n\t chan.setVisible(true);\r\n\t this.channels.add(chan);\r\n\t windowbar.addNew(jce.getChannel().getName(), chan);\t\t\t\t\t\t\t\t\t\t\t//add to statusbar\r\n\t\t}\r\n\r\n\t\telse if(e.getType() == Type.CHANNEL_MESSAGE) {\r\n MessageEvent me = (MessageEvent)e;\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//message event\r\n Channel gc = me.getChannel();\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//getting the channel\r\n Enumeration<ChannelView> ce = this.channels.elements();\t\t\t\t\t\t\t\t\t\t//iterates through the ChannelList\r\n while (ce.hasMoreElements()) {\r\n ChannelView ne = (ChannelView) ce.nextElement();\r\n if (ne.isChannel(gc)) {\r\n \t\tne.appendMsg(\"<\"+me.getNick()+\"> \"+me.getMessage(), true);\t\t\t\t\t\t\t//say to channel\r\n break;\r\n }\r\n }\r\n }\r\n\t\telse if(e.getType() == Type.TOPIC) {\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//event for setting topic \r\n TopicEvent topic = (TopicEvent)e;\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//object to the Topic \r\n Channel gc = topic.getChannel();\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//getting the channel\r\n Enumeration<ChannelView> ce = this.channels.elements();\r\n while (ce.hasMoreElements()) {\r\n ChannelView ne = (ChannelView) ce.nextElement();\r\n if (ne.isChannel(gc)) {\r\n \t\tne.appendMsg(topic.getSetBy()+ \"has set the topic to \" +topic.getTopic(), false );\t//setting the topic\r\n break;\r\n }\r\n }\r\n }\r\n\t\r\n\t\telse if(e.getType() == Type.CHANNEL_LIST_EVENT) {\r\n\t\t\tChannelListEvent chanevt = (ChannelListEvent)e;\t\t\t\t\t\t\t\t\t\t\t\t//Cast to ChannelListEvent\r\n\t\t\tchanlist.addChannel(chanevt.getChannelName(), chanevt.getNumberOfUser());\t\t\t\t\t//add channel to the list\r\n\t\t\t\r\n\t\t}\r\n\t\telse if (e.getType() == Type.WHOIS_EVENT) {\t\t\t\t\t\t\t\t\t\t\t\t\t\t//event for Whois\r\n WhoisEvent whois = (WhoisEvent)e;\r\n appendMsg(\"Host: \"+whois.getHost()+\"\\nNick: \"+whois.getNick()+\"\\nUsername: \"+whois.getUser()+\"\\nRealname: \"+whois.getRealName(), false);\r\n \r\n\t\t\r\n\t\t}\r\n\t\telse if (e.getType() == Type.PRIVATE_MESSAGE) {\t\t\t\t\t\t\t\t\t\t\t\t\t//Private message \r\n\t\t\tMessageEvent pm = (MessageEvent)e;\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//message event\r\n\t\t\tString nick = ((MessageEvent)e).getNick();\t\t\t\t\t\t\t\t\t\t\t\t\t//getting the nick\r\n\t\t\tObject[] frames = Main.getLayout().DesktopPane.getAllFrames();\r\n\t\t\tfor(int i=0;i<frames.length;i++) {\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//iterates through the frames\r\n\t\t\t\tif(!(frames[i] instanceof PrivateMessageView))\t\t\t\t\t\t\t\t\t\t\t//already exists? \r\n\t\t\t\t\tcontinue;\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//no? Continue\r\n\t\t\t\tPrivateMessageView ob1 = (PrivateMessageView) frames[i];\r\n\t\t\t\tif(!(ob1.chattingWith(nick)))\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//Talking to the same person?\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\tthis.privateMessages.add(ob1);\r\n\t\t\t\tob1.appendMsg(\"<\"+pm.getNick()+\">\"+pm.getMessage(), true);\t\t\t\t\t\t\t\t//append message in the chat window \r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\tPrivateMessageView ob2 = new PrivateMessageView(e.getSession(), pm.getNick());\t\t\t\t//new privatemessage window\r\n\t\t\tthis.privateMessages.add(ob2);\r\n\t\t\tMain.getLayout().DesktopPane.add((Component)ob2);\r\n\t\t\tob2.appendMsg(\"<\"+pm.getNick()+\">\"+pm.getMessage(), true);\r\n\t\t\tob2.setVisible(true);\t\t\t\r\n\t\t}\r\n\t\r\n\t\telse if(e.getType() == Type.JOIN){\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//iterates through channels and adding the nick\r\n\t\t\tJoinEvent joinEvent = (JoinEvent)e;\r\n\t\t\tChannel gc = joinEvent.getChannel();\r\n Enumeration<ChannelView> ce = this.channels.elements();\r\n while (ce.hasMoreElements()) {\r\n ChannelView ne = (ChannelView) ce.nextElement();\r\n if (ne.isChannel(gc)) {\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//is the object a channel? \r\n \t ne.addnewUserToList(joinEvent.getNick());\t\t\t\t\t\t\t\t\t\t\t\t//add to nickname to the list\r\n \t break;\r\n }\r\n }\r\n\t\t}\r\n\t\r\n\t\telse if(e.getType() == Type.MODE_EVENT){\r\n\t\t\tModeEvent modeEvent = (ModeEvent)e;\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//casting the object\r\n\t\t\tChannel gc = modeEvent.getChannel();\t\t\t\t\t\t\t\t\t\t\t\t\t\t//getting the channel\r\n Enumeration<ChannelView> ce = this.channels.elements();\t\t\t\t\t\t\t\t\t\t\r\n while (ce.hasMoreElements()) {\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//iterates through elements\r\n ChannelView ne = (ChannelView) ce.nextElement();\t\t\t\t\t\t\t\t\t\t\t//nextElement?\r\n if (ne.isChannel(gc)) {\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//is channel?\r\n \t String tmp = modeEvent.getModeAdjustments().toString();\r\n \t appendMsg(tmp, false);\r\n \t if(tmp.charAt(1) == '+'){\t\t\r\n \t \tif(tmp.charAt(2) == 'o'|| tmp.charAt(2) == 'O' ){\t\t\t\t\t\t\t\t\t//is the user OPed? \r\n \t \t\tne.addMode(\"@\", tmp.substring(4, tmp.length()-1));\t\t\t\t\t\t\t\t//add the mode\r\n \t \t\tne.appendMsg(modeEvent.setBy() +\" has OP-ed \" + tmp.substring(4, tmp.length()-1) , false);\t//append to the chatwindow\r\n \t \t}\r\n \t \tif(tmp.charAt(2) == 'v'|| tmp.charAt(2) == 'V' ){\t\t\t\t\t\t\t\t\t//is the user Voiced? \r\n \t \t\tne.addMode(\"+\", tmp.substring(4, tmp.length()-1));\t\t\t\t\t\t\t\t//add the mode\r\n \t \t\tne.appendMsg(modeEvent.setBy() +\" has voiced \" + tmp.substring(4, tmp.length()-1) , false);\r\n\r\n \t \t}\r\n \t }\r\n \t if(tmp.charAt(1) == '-'){\r\n \t \t if(tmp.charAt(2) == 'o'|| tmp.charAt(2) == 'O' ){\t\t\t\t\t\t\t\t\t//deop and devoice the user\r\n \t \t\tne.removeMode(\"@\", tmp.substring(4, tmp.length()-1));\r\n \t \t\tne.appendMsg(modeEvent.setBy() +\" has DeOP-ed \" + tmp.substring(4, tmp.length()-1) , false);\r\n \t \t }\r\n \t \t if(tmp.charAt(2) == 'v'|| tmp.charAt(2) == 'V' ){\r\n \t \t\tne.removeMode(\"+\", tmp.substring(4, tmp.length()-1));\r\n \t \t\tne.appendMsg(modeEvent.setBy() +\" has de-voiced \" + tmp.substring(4, tmp.length()-1) , false);\r\n \t \t } \r\n \t }\r\n \t\t \r\n \t break;\r\n }\r\n }\r\n\t\t}\r\n\t\telse if(e.getType() == Type.NICK_CHANGE){\r\n\t\t\tNickChangeEvent nickChangeEvent = (NickChangeEvent)e;\t\t\t\t\t\t\t\t\t\t//casting the objects\r\n\t\t\tObject[] temp = nickChangeEvent.getSession().getChannels().toArray();\t\t\t\t\t\t//temporary Object-array\r\n Enumeration<ChannelView> ce = this.channels.elements();\r\n for(int i = 0; i < nickChangeEvent.getSession().getChannels().size(); i++) {\t\t\t\t//iterate through channels\r\n \tChannel gc = (Channel) temp[i]; \r\n \twhile (ce.hasMoreElements()) {\r\n \t\tChannelView ne = (ChannelView) ce.nextElement();\r\n \t\t\tne.changeNick(nickChangeEvent.getOldNick(),nickChangeEvent.getNewNick());\t\t//getting the gold nick and new Nick\r\n \t\t\tne.appendMsg(\"The user \"+nickChangeEvent.getOldNick()+ \" has changed his nick to \" \t\r\n \t\t\t\t\t\t + nickChangeEvent.getNewNick(), false);\r\n \t}\r\n\t\t\r\n }\r\n\t\t}\r\n\t\telse if(e.getType() == Type.QUIT){\r\n\t\t\tQuitEvent quitEvent = (QuitEvent)e;\r\n Enumeration<ChannelView> ce = this.channels.elements();\r\n\t\t\tfor (int i = 0; i <quitEvent.getChannelList().size(); i++){\t\t\t\t\t\t\t\t\t//iterate thorugh the channels\r\n\t\t\t\tChannel gc = quitEvent.getChannelList().get(i);\t\t\t\t\t\t\t\t\t\t\t//getting the i'th element in the channelList\t\r\n\t while (ce.hasMoreElements()) {\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//more elements?\r\n\t ChannelView ne = (ChannelView) ce.nextElement();\r\n\t if (ne.isChannel(gc)) {\r\n\t \t ne.removeUserFromList(quitEvent.getNick());\t\t\t\t\t\t\t\t\t\t//remove users from the list\r\n\t \t ne.appendMsg(\"The user \"+quitEvent.getNick() +\" has quited\", false);\t\t\t\t//append to the channel which user that quitted\r\n\t break;\r\n\t }\r\n }\r\n }\r\n\t\t}\t\r\n\t\telse if(e.getType() == Type.PART){\r\n\t\t\t\r\n\t\t\tPartEvent partEvent = (PartEvent)e;\r\n\t\t\tChannel gc = partEvent.getChannel();\r\n\t\t\tEnumeration<ChannelView> ce = this.channels.elements();\r\n\t while (ce.hasMoreElements()) {\r\n\t ChannelView ne = (ChannelView) ce.nextElement();\r\n\t if (ne.isChannel(gc)) {\r\n\t \tif( partEvent.getWho().equals(profil.getActualNick()) ){\t\t\t\t\t\t\t//get the nick to deside which user who quitted \r\n\t \t\tString temp = ne.channel.getName();\t\t\t\t\t\t\t\t\t\t\t\t//get the channelname\r\n\t \t\tne.part();\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//part from this channel\r\n\t \t\twindowbar.removeButton(temp);\t\t\t\t\t\t\t\t\t\t\t\t\t//remove from tabbedPane\r\n\t \t}\r\n\t \telse {\r\n\t \t\tne.removeUserFromList(partEvent.getWho());\r\n\t \t\tne.appendMsg(\"The user \"+partEvent.getWho() +\" has parted us\", false);\r\n\t \t}\t\r\n\t break;\r\n\t }\r\n\t }\r\n\t\t}\r\n\t\telse if(e.getType() == Type.ERROR){\r\n\t\t\tErrorEvent errorEvent = (ErrorEvent)e; \r\n\t\t}\r\n\t\t\r\n\t\telse {\r\n\t\t\tappendMsg(\"\\n\"+e.getType()+\":\"+e.getRawEventData(), true);\r\n\t\t}\r\n\t\t\r\n\t}", "title": "" }, { "docid": "f3aa55118168f9df466c160e9fbd1fb2", "score": "0.53670245", "text": "@Override\n public void actionPerformed(ActionEvent e) {\n\t// Since the only possible event is a carriage return in the text input field,\n\t// the text in the chat input field can now be sent to the server.\n\ttry {\n\t\t//Modify the message's format and create a JSON message\n\t\tString Message = m_GUI.getInput();\n\t\tString[] split = Message.split(\",\");\n\t\tString message = \"\";\n\t\tif(split.length>=2){\n\t\t\t\tmessage = split[1];\n\t\t\tfor (int i = 2;i < split.length; i++){\n\t\t\t\tmessage =message + \",\" + split[i];\n\t\t\t}\n\t\t}\n\t\tChatMessage msg = new ChatMessage(split[0],message,m_name);\n\t\tm_connection.sendChatMessage(msg);\n\t} catch (IOException e1) {\n\t\t// TODO Auto-generated catch block\n\t\te1.printStackTrace();\n\t}\n\tm_GUI.clearInput();\n }", "title": "" }, { "docid": "cd8922abce518d333cb9bcc08b13f1b3", "score": "0.5346829", "text": "public void received(Connection conn, Object o)\r\n\t\t\t{\r\n\t\t\t\tif (o instanceof UpdateNames)\r\n\t\t\t\t\t;//.setNames(((UpdateNames)o).names);\r\n\t\t\t\telse if (o instanceof ChatMessage)\r\n\t\t\t\t\tRender.addMessage(((ChatMessage)o).text);\r\n\t\t\t}", "title": "" }, { "docid": "26597ca24d2f1a8987079c4c7c4c2f4e", "score": "0.5336444", "text": "public interface ChatListener {\n\n public void processMessage(Chat chat);\n}", "title": "" }, { "docid": "2a536097adebd12b24d787cf0d828b56", "score": "0.5331969", "text": "@Override\n\tpublic void onEvent(String msg) {\n\t\tMyLogger.e(\"event\", msg);\n\t}", "title": "" }, { "docid": "f30184d3ca0fe7f04adcbb72904de3c1", "score": "0.53160024", "text": "public void actionPerformed(ActionEvent event) {\r\n boolean valid = true;\r\n String[] chatPeople = managerPanel.getParticipantNames().split(\" \");\r\n\r\n for(int i=0; i<chatPeople.length; i++) { //check if all names are of real users\r\n if(! (managerPanel.getOnlineNames().contains(chatPeople[i]) || managerPanel.getOfflineNames().contains(chatPeople[i]))){\r\n valid = false;\r\n break;\r\n }\r\n }\r\n if(valid){ // create a new chat and ad it to the display\r\n Arrays.sort(chatPeople);\r\n chats.add(new Chat(chats.size() + 1,chatPeople));\r\n managerPanel.setError(\"\");\r\n managerPanel.setParticipantNames(\"\");\r\n managerPanel.addChat(chats.get(chats.size() - 1));\r\n }else{\r\n managerPanel.setError(\"One or more incorrect usernames\");\r\n }\r\n }", "title": "" }, { "docid": "6cd06cc43a6414bba5b54114a3f4df5b", "score": "0.5298193", "text": "void onTyping(int user_id, int chat_id);", "title": "" }, { "docid": "bd3865607590fe592a1ae47566e83add", "score": "0.52967894", "text": "public BotSavedChatEvent(Bot bot, boolean autoChat, boolean randomChat, int chatDelay, ArrayList<String> chat)\n {\n super(bot);\n\n this.autoChat = autoChat;\n this.randomChat = randomChat;\n this.chatDelay = chatDelay;\n this.chat = chat;\n }", "title": "" }, { "docid": "df2faf2dc54b61f1debe952eeea548d9", "score": "0.52703905", "text": "@Override\n\tpublic void handleBeat(WorkMessage workMessage, Channel channel) {\n\t\tlogger.info(\"~~~~~~~~Candidate - Handle Beat Event\");\n\n\t\tint inComingTerm = workMessage.getLeader().getElectionId();\n\t\tint currentTerm = state.getElectionId();\n\n\t\tlogger.info(\"Candidate - New Term: \" + inComingTerm);\n\t\tlogger.info(\"Candidate - Current Term: \" + currentTerm);\n\n\t\tif (workMessage.getLeader().getElectionId() >= state.getElectionId()) {\n\t\t\tlogger.info(\n\t\t\t\t\"*****Heart Beat From Leader: \" + workMessage.getLeader().getLeaderId());\n\t\t\tstate.setElectionId(workMessage.getLeader().getElectionId());\n\t\t\tstate.setLeaderId(workMessage.getLeader().getLeaderId());\n\n\t\t\t// Cancel if there is any timer that is currently started...\n\t\t\ttimer.cancel();\n\n\t\t\t// Update the Leader Heart Beat in my Server State\n\t\t\tstate.setLeaderHeartBeatdt(System.currentTimeMillis());\n\n\t\t\t// Change the state to Follower..\n\t\t\tstate.setState(NodeStateEnum.FOLLOWER);\n\t\t}\n\t}", "title": "" }, { "docid": "ca9b0c03e639003b832a04c1349f3137", "score": "0.5263251", "text": "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tsendMessage();\n\t\t\t}", "title": "" }, { "docid": "c08676e1d22b9ed2ef5c07a6283feccd", "score": "0.526175", "text": "void fireEvent(Event gameEvent);", "title": "" }, { "docid": "f43f8783da03a89f621fcc51c83082ad", "score": "0.52499014", "text": "protected final void fireNewGame() {\n log.debug(\"fireNewGame()\");\n\n listener.onNewGame();\n }", "title": "" }, { "docid": "284b1c39d2b1e24aef2a531bc3e71afe", "score": "0.5231234", "text": "public interface OnSendChatMsgListener {\n\n void onChatMsg(String message);\n}", "title": "" }, { "docid": "40eec8db22d61332976350f82037cc3f", "score": "0.5229992", "text": "public void chatMessage(String nachricht) throws RemoteException {\n\t\t//Chatnachricht hinzufuegen\n\t\tthis.chat.add(nachricht);\n\t\t\n\t}", "title": "" }, { "docid": "6cbdb0529df883c70990adee4f95f799", "score": "0.5217829", "text": "void onSenderItemClicked(ChatMsg item);", "title": "" }, { "docid": "36e09f611fc6b3639fc382ac44350bf5", "score": "0.52052945", "text": "public void actionPerformed(ActionEvent e) {\r\n //Split at space into two args\r\n String[] inputArray = e.getActionCommand().split(\" \", 2);\r\n\r\n if(inputArray[0].equals(\"hello\")){\r\n cl.callHello(inputArray[1]);\r\n }else if(inputArray[0].equals(\"move\")){\r\n cl.callMove(inputArray[1].substring(0, 1));\r\n }else if(inputArray[0].equals(\"pickup\")){\r\n cl.callPickup();\r\n }else if (inputArray[0].equals(\"shout\")){\r\n cl.callShout(chatMsg.getText());\r\n chatMsg.setText(\"\");\r\n }else if(inputArray[0].equals(\"help\")){\r\n cl.callHelp();\r\n }else if(inputArray[0].equals(\"endturn\")){\r\n cl.callPlayerEndTurn();\r\n }\r\n\r\n //Press enter to send message across chat\r\n if(e.getSource() == chatMsg){\r\n cl.callShout(chatMsg.getText());\r\n chatMsg.setText(\"\");\r\n }\r\n }", "title": "" }, { "docid": "71764c14e6bbc2ca284152463510ad7c", "score": "0.519934", "text": "public void actionPerformed(ActionEvent event) {\n Room room;\n if (event.getActionCommand().equals(roomInfoItem.getLabel()))\n chatApplet.showRoom(chatApplet.getCurrentRoomId());\n else if (event.getActionCommand().equals(roomSettingsItem.getLabel()))\n chatApplet.editRoom(chatApplet.getCurrentRoomId());\n else if (event.getActionCommand().equals(userInfoItem.getLabel()))\n chatApplet.showUser(selectedUserId);\n else if (event.getActionCommand().equals(userSettingsItem.getLabel()))\n chatApplet.editUser(selectedUserId);\n else if (event.getActionCommand().equals(whisperItem.getLabel()))\n chatApplet.whisperToUser(selectedUserId);\n else if (event.getSource() == inviteUserMenu || event.getSource() == kickUserMenu) {\n room = chatApplet.getRoom(event.getActionCommand());\n if (room != null) {\n if (event.getSource() == inviteUserMenu) {\n room.inviteUser(chatApplet.getUser(selectedUserId).getName());\n }\n else {\n room.kickUser(chatApplet.getUser(selectedUserId).getName());\n }\n chatApplet.updateRoom(room, chatApplet.isConnected());\n }\n }\n }", "title": "" }, { "docid": "4c84862f94932c8154f993c39ab2dfd6", "score": "0.519656", "text": "public void onHaveMessage (HaveMessage msg);", "title": "" }, { "docid": "960bf362ccbf7f62c6304362aa262518", "score": "0.51855665", "text": "public static void fireEvent(Event e) {\r\n\t\t// Run this \"later\", so that it always runs in the application thread\r\n\t\tPlatform.runLater(new Runnable() {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void run() {\r\n\t\t\t\tArrayList<EventListener> toExec = listenerDirectory.get(e.getType());\r\n\t\t\t\t\r\n\t\t\t\t// If no listeners were found for that event type, swallow the event and do nada\r\n\t\t\t\tif ( toExec == null ) {\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t// If we're here, presumably we have things to execute. So let's do it!\r\n\t\t\t\tfor ( EventListener listener : toExec ) {\r\n\t\t\t\t\tlistener.onEvent(e);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t});\r\n\t\t\r\n\t\t// If this was a locally-generated event, also forward it to our Multi-Console peers\r\n\t\t// Don't do this, however, if the event matches certain types\r\n\t\tif ( e.getOriginator().equals(Prefs.loadString(Prefs.MC_IDENTITY)) && e.getType() != EventType.SPOT_REQUEST_LOAD && e.getType() != EventType.LIBRARY_LIST_UPDATED ) {\r\n\t\t\tMultiConsole.forwardEvent(e, null);\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "a68cbd5af36c51004e9e354e14719e98", "score": "0.5184392", "text": "public void callEvent(){\n \tBukkit.getServer().getPluginManager().callEvent(this);\n }", "title": "" }, { "docid": "10a11b3814756a14e198b13df897202b", "score": "0.516958", "text": "@Override\n\t\t\tpublic void callEnded() {\n\t\t\t\t// TODO Auto-generated method stub\n\n\t\t\t\tLog.d(\"INDUS\", \"Call Ended \");\n\n\t\t\t\tchat_box.setText(\"\");\n\t\t\t\tchat_box.setHint(\"Welcome to openclove\");\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "3a48dd5788d1fe79fd2790a17d4c1ef1", "score": "0.5169459", "text": "private void fireEvent(WebSocketEvent event) {\n for (WebSocketEventListener listener : eventListeners) {\n listener.onWebSocketEvent(event);\n }\n }", "title": "" }, { "docid": "fc220fc42ffd8324c57e6d7548539181", "score": "0.51670855", "text": "void fireContactAdded( ContactGroup parentGroup,\n ContactJabberImpl contact)\n {\n //bail out if no one's listening\n if(parentOperationSet == null){\n if (logger.isDebugEnabled())\n logger.debug(\"No presence op. set available. Bailing out.\");\n return;\n }\n\n // if we are already registered(roster != null) and we are currently\n // creating the contact list, presences maybe already received\n // before we have created the contacts, so lets check\n if(roster != null)\n {\n parentOperationSet.firePresenceStatusChanged(\n roster.getPresence(contact.getAddressAsJid().asBareJid()));\n }\n\n // dispatch\n parentOperationSet.fireSubscriptionEvent(contact, parentGroup,\n SubscriptionEvent.SUBSCRIPTION_CREATED);\n }", "title": "" }, { "docid": "51cffc70819acb63b590eb4e11beb6a2", "score": "0.5161242", "text": "private void setupChat() {\n }", "title": "" }, { "docid": "72f4b0bfd50a24cb544edc984c4de7d7", "score": "0.5155167", "text": "@FXML protected void addChat(ActionEvent event){\n sender = comboBox.getValue();\n lblTil.setText(sender);\n update(sender);\n }", "title": "" }, { "docid": "da015b3982269c1c032837c602062133", "score": "0.51394856", "text": "public void setChat() {\n\t\tthis.type = \"Chat\";\n\t\thideGame();\n\t}", "title": "" }, { "docid": "fb54953aab684418d7a76db07573db01", "score": "0.5139328", "text": "void onReceiverItemClicked(ChatMsg item);", "title": "" }, { "docid": "55385f5fcc364b5b82980415fd86e09b", "score": "0.5133776", "text": "public void addChat(String roomID, String userID, String msg) {\n }", "title": "" }, { "docid": "c2c7b0cae933332ae088b524f291aac4", "score": "0.5133551", "text": "private void _onAction(String sender, String action) {\n\t\tfor(ChatMessageFrame f : channelFrames.values()) {\n\t\t\tf.appendInformation(\"* \" + sender + \" \" + action);\n\t\t\tf.setIRCUsers(bot.getUsers(f.getChannel()));\n\t\t}\n\t\tfor(PMMessageFrame f : pmFrames.values())\n\t\t\tif(f.getBuddyNick().equals(sender))\n\t\t\t\tf.appendInformation(\"* \" + sender + \" \" + action);\n\t}", "title": "" }, { "docid": "d4207e3ccb6ec08213fa5805b454600f", "score": "0.51304686", "text": "private void runPlayerEvent(GameMessage msg) {\n\t\tint player = msg.intPart(2);\n\t\tswitch (msg.intPart(1)) {\n\t\t\tcase PlayerEvent.LEFTGAME: \n\t\t\t\tludo.removePlayer(ludo.getPlayerName(player));\n\t\t\t\tupdatePlayerNames();\n\t\t\t\tbreak;\n\t\t\tcase PlayerEvent.WON: \n\t\t\t\tsetWinner(player);\n\t\t\t\tbreak;\n\t\t\tcase PlayerEvent.PLAYING: \n\t\t\t\twaitForNextThrow(player); \n\t\t\t\tbreak;\n\t\t}\n\t}", "title": "" }, { "docid": "68083d5c9f6ec92f9b2bbb4e5b0c2507", "score": "0.51170707", "text": "public void onPieceMessage (PieceMessage msg);", "title": "" }, { "docid": "ed4ccabec43a2489519695f159de5b09", "score": "0.5116587", "text": "public void sendEvent(){\n\t\tcontroller.sendOfflineMessage(tfToUser.getText(), tpMessage.getText(), this.icon);\n\t\tthis.icon = null;\n\t\tframe.setVisible(false);\n\t}", "title": "" }, { "docid": "5050a137c4b25ee54f7b24fb7969c22d", "score": "0.51146203", "text": "@Override\n\t\tpublic void handleMessage(Message msg) {\n\t\t\tsuper.handleMessage(msg);\n\t\t\ttextChatLog.append(strMsg);\n\t\t}", "title": "" }, { "docid": "298ee1395ff8a96a7617b00e2636f3e1", "score": "0.51127326", "text": "@EventHandler\n public void onPlayerInteract(PlayerInteractEntityEvent event) {\n // final EntityType entityType = event.getRightClicked().getType();\n //\n // event.getPlayer().sendMessage(MessageFormat.format(\n // \"You interacted with a {0} it has an id of {1}\",\n // entityType.getName(),\n // entityType.getTypeId()));\n }", "title": "" }, { "docid": "c4b7eee8a30e0ca4058ccde909188529", "score": "0.51050967", "text": "private void sendToReact(String eventName, JSONObject messageJson) {\n sendEvent(this.getReactApplicationContext(), eventName, serializeMessage(messageJson));\n }", "title": "" }, { "docid": "450e5b04626e33326c3093cfbd67e03d", "score": "0.509616", "text": "@EventHandler // And remember that @EventHandler. You MUST have this on event listeners. \n\tpublic void playerHit(EntityDamageByEntityEvent e) //EntityDamageByEntityEvent is when an entity (player) hits another entity (cow) [Can be any entity, not just those 2]\n\t{\n\t\tif(e.getDamager() instanceof Player) //If the entity that did the hitting was a player\n\t\t{\n\t\t\tPlayer p = (Player) e.getDamager(); //Make a Player variable so we can reference the player easily. \n\t\t\tif(e.getEntity() instanceof Cow) //If the entity that took the damage was a cow\n\t\t\t{\n\t\t\t\tp.damage(2); //Damage the player by 2 (1 heart, accounts for half hearts)\n\t\t\t\tp.sendMessage(\"§cCows have feelings too!\"); //Send the player a message\n\t\t\t\tBukkit.getConsoleSender().sendMessage(\"§c\" + p.getName() + \" hit a cow.\" ); //Broadcast this to the console (not necessary) \n\t\t\t\t\n\t\t\t\tLocation l = e.getEntity().getLocation(); //Make a Location variable so we can reference the entity location easily.\n\t\t\t\tCow babyCow = (Cow) l.getWorld().spawnEntity(l, EntityType.COW); //Create a new entity to spawn at the location.\n\t\t\t\tbabyCow.setCustomName(\"§6Smol cow\"); //Setting the custom name attribute to the cow.\n\t\t\t\tbabyCow.setCustomNameVisible(true); //Sets the name to visible, that w\n\t\t\t\tbabyCow.setBaby(); //Sets the cow to a baby cow.\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "17181fa885d4c80e4e31af3cbd619ba2", "score": "0.5087361", "text": "void sendMessage(String chatId, String message);", "title": "" }, { "docid": "51d314592d088c2f6d010a8c32f46fe4", "score": "0.5076076", "text": "private void chatCUD(SelectionKey clientKey, UpdateChatsPacket received)\n {\n int type = received.getUpdate();\n\n switch (type)\n {\n case UpdateChatsPacket.CREATE:\n createChat(clientKey, received);\n break;\n case UpdateChatsPacket.UPDATE:\n if (isAdmin(clientKey, received.getChatID(), OperationStatusPacket.OP_CRUD))\n {\n updateChat(clientKey, received);\n }\n else\n {\n sendOperationResult(clientKey, -1, OperationStatusPacket.FAIL, OperationStatusPacket.OP_CRUD);\n }\n break;\n case UpdateChatsPacket.DELETE:\n if (isAdmin(clientKey,received.getChatID(), OperationStatusPacket.OP_CRUD))\n {\n deleteChat(clientKey, received);\n }\n else\n {\n sendOperationResult(clientKey, -1, OperationStatusPacket.FAIL, OperationStatusPacket.OP_CRUD);\n }\n break;\n }\n \n }", "title": "" }, { "docid": "b484c9d7b186c7a48fce3f57678e9c00", "score": "0.5074188", "text": "void saveChat(Chat.ChatMsg msg);", "title": "" }, { "docid": "b7677470bf2c8a9b4cd95f866a0da93b", "score": "0.5071195", "text": "public void handleOutgoingCall(final JingleSession session, ChatRoom chatRoom, final String jid) {\r\n this.chatRoom = chatRoom;\r\n cancelButton.setVisible(true);\r\n \r\n this.session = session;\r\n \r\n this.session.addStateListener(this);\r\n \r\n fileLabel.setText(jid);\r\n \r\n ContactList contactList = SparkManager.getWorkspace().getContactList();\r\n ContactItem contactItem = contactList.getContactItemByJID(jid);\r\n \r\n if (session instanceof IncomingJingleSession) {\r\n \r\n }\r\n else {\r\n titleLabel.setText(\"Outgoing Voice Chat To \" + contactItem.getNickname());\r\n }\r\n \r\n \r\n cancelButton.addMouseListener(new MouseAdapter() {\r\n public void mousePressed(MouseEvent e) {\r\n cancel();\r\n }\r\n \r\n public void mouseEntered(MouseEvent e) {\r\n cancelButton.setCursor(new Cursor(Cursor.HAND_CURSOR));\r\n }\r\n \r\n public void mouseExited(MouseEvent e) {\r\n cancelButton.setCursor(new Cursor(Cursor.DEFAULT_CURSOR));\r\n }\r\n });\r\n \r\n makeClickable(imageLabel);\r\n makeClickable(titleLabel);\r\n makeClickable(answerButton);\r\n }", "title": "" }, { "docid": "de0bbd10a5a9f162b4e32a5b42d9b18d", "score": "0.5068799", "text": "public void fireMessageEvent(String description, final MessageEventType eventType) {\n\n log.info(\"'{}' requires event type {}\", description, eventType);\n\n MessageEvents.fireMessageEvent(eventType);\n\n // Allow time for the event to propagate\n Uninterruptibles.sleepUninterruptibly(500, TimeUnit.MILLISECONDS);\n\n }", "title": "" }, { "docid": "8649a316a317363705d13aac7cbd2103", "score": "0.5066166", "text": "public void addChatMessage(IChatComponent component)\n {\n playerNetServerHandler.sendPacket(new S02PacketChat(component));\n }", "title": "" }, { "docid": "d46a4a876e71c21a02c6002f9343475f", "score": "0.5058767", "text": "@FXML\n private void chatBtnAction() {\n Platform.runLater(() -> {\n String message = this.chatField.getText();\n if (this.chatUser != null) {\n this.chatUser.sendChatMessage(message);\n }\n this.chatField.setText(\"\"); // setting the text field back\n });\n }", "title": "" }, { "docid": "c232904bd6cf0fbe5d31224016640793", "score": "0.50500655", "text": "private void updateChat(){\n final Handler handler = new Handler();\n Runnable runnable = new Runnable() {\n @Override\n public void run() {\n if(chat.getChatId()!=null)\n chatRemoteDAO.getChatRequestHandler(chat.getChatId());\n\n handler.postDelayed(this, 1000);\n }\n };\n handler.postDelayed(runnable, 3000);\n }", "title": "" }, { "docid": "388ba3fa993543c3579f526086f5a0d1", "score": "0.501665", "text": "public void receiveAttack(Coordinates coord) {\n try {\n if(this.getuserGrid().getSquareByCoordinate(coord).hasBoat) {\n // Find the boat that is at coord\n for (Boat boat : this.getBoats()) {\n if (boat.isAtCoordinates(coord)) {\n boat.inflictDamage();\n }\n }\n }\n // Mark on GUI that square has been shot\n this.getuserGrid().markSquare(coord);\n\n } catch (NullPointerException e) {\n // Potential issue with coordinates\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "a0655fb58659a0d533d9677a359104d3", "score": "0.5013189", "text": "public void receiveMessage(Message message){\r\n\t\t\r\n\t\tif(chats.containsKey(message.getSender())){\r\n\t\t\tchats.get(message.getSender()).receiveMessage(message.getSender(), (String) message.getData());\r\n\t\t}\r\n\t\telse{\r\n\t\t\tview.newChat(message);\r\n\t\t\tchats.get(message.getSender()).receiveMessage(message.getSender(), (String) message.getData());\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "f70ba0b911c31320db75ad88a1eab57e", "score": "0.5010218", "text": "public void onChokeMessage (ChokeMessage msg);", "title": "" }, { "docid": "6ea9ae7c6831d2bca5cde4a325a078ad", "score": "0.50034165", "text": "private void fireContactIsTypingEvent(Contact contact) {\n synchronized (listeners) {\n for (int i = 0; i < listeners.size(); i++) {\n ((IChatSessionListener) listeners.get(i)).contactIsTyping(contact);\n }\n }\n }", "title": "" }, { "docid": "fc1ead60026413ad80fb77c828edd320", "score": "0.49842644", "text": "public void handleEvent(Message event) {\n String message = event.getMessage();\n int messageType = event.getMessageType();\n String sender = event.getMessager();\n\n if(sender == null) // try looking up the sender's name by playerid\n sender = m_botAction.getPlayerName(event.getPlayerID());\n\n if(sender == null)\n sender = \"-\";\n\n // Message from the hubbot\n if(sender.equalsIgnoreCase(cfg_hubbot)) {\n if (message.startsWith(\"Maximum number of bots of this type \") || message.equals(\"Bot failed to log in.\")) {\n String arena = disableUnspawnedArena();\n m_botAction.sendChatMessage(2, \"Unable to spawn pubbot in arena '\" + arena + \"'.\");\n }\n }\n\n if ((messageType == Message.PRIVATE_MESSAGE || messageType == Message.REMOTE_PRIVATE_MESSAGE) && ((opList.isDeveloperExact(sender) && opList\n .isModerator(sender)) || opList.isSmod(sender)) && message.equalsIgnoreCase(\"!where\")) {\n Vector<String> botNames = new Vector<String>(pubbots.keySet());\n Collections.sort(botNames);\n\n for (int index = 0; index < botNames.size(); index++) {\n String name = botNames.get(index);\n String arena = pubbots.get(name);\n\n if (Tools.isAllDigits(arena)) {\n m_botAction.sendSmartPrivateMessage(sender, \" \" + name + \": (Public \" + arena + \")\");\n } else {\n m_botAction.sendSmartPrivateMessage(sender, \" \" + name + \": \" + arena);\n }\n }\n\n return;\n }\n\n // Chat commands\n if ((messageType == Message.CHAT_MESSAGE && (opList.isSmod(sender) || cfg_access.contains(sender.toLowerCase()))) || ((messageType == Message.PRIVATE_MESSAGE || messageType == Message.REMOTE_PRIVATE_MESSAGE) && ((opList.isDeveloperExact(sender) && opList.isModerator(sender)) || opList.isSmod(sender)))) {\n if (message.equalsIgnoreCase(\"!respawn\")) {\n m_botAction.sendChatMessage(\"Respawning pub bots.\");\n m_botAction.ipcTransmit(IPCCHANNEL, new IPCMessage(\"die\"));\n\n // Restart respawning pubbots after 10 seconds\n m_botAction.cancelTask(arenaListTask);\n arenaListTask = new ArenaListTask();\n m_botAction.scheduleTaskAtFixedRate(arenaListTask, 10000, CHECKARENALIST_DELAY);\n }\n\n if (message.equalsIgnoreCase(\"!allarenas\"))\n allArenas(sender);\n\n if (message.equalsIgnoreCase(\"!debug\")) {\n DEBUG = !DEBUG;\n\n if (!DEBUG)\n m_botAction.sendSmartPrivateMessage(\"WingZero\", \"Notify DISABLED\");\n else\n m_botAction.sendSmartPrivateMessage(\"WingZero\", \"Notify ENABLED\");\n }\n\n if (message.equalsIgnoreCase(\"!reloadconfig\")) {\n loadConfiguration();\n m_botAction.sendChatMessage(\"Configuration reloaded.\");\n }\n\n if (messageType == Message.CHAT_MESSAGE && message.equalsIgnoreCase(\"!where\")) {\n Vector<String> botNames = new Vector<String>(pubbots.keySet());\n Collections.sort(botNames);\n\n for (int index = 0; index < botNames.size(); index++) {\n String name = botNames.get(index);\n String arena = pubbots.get(name);\n\n if(Tools.isAllDigits(arena)) {\n m_botAction.sendChatMessage(\" \" + name + \": (Public \" + arena + \")\");\n } else {\n m_botAction.sendChatMessage(\" \" + name + \": \" + arena);\n }\n\n }\n }\n\n if (message.equalsIgnoreCase(\"!listmodules\")) {\n Vector<String> moduleNames = new Vector<String>(moduleHandler.getModuleNames());\n String moduleName;\n\n if (moduleNames.isEmpty())\n throw new RuntimeException(\"ERROR: There are no modules available to this bot.\");\n\n m_botAction.sendSmartPrivateMessage(sender, \"A * indicates a loaded module.\");\n\n for (int index = 0; index < moduleNames.size(); index++) {\n moduleName = moduleNames.get(index);\n\n if (moduleHandler.isLoaded(moduleName))\n moduleName.concat(\" *\");\n\n m_botAction.sendSmartPrivateMessage(sender, moduleName);\n }\n }\n\n if (message.equalsIgnoreCase(\"!off\")) {\n m_botAction.sendChatMessage(\"Disconnecting pubhub and pubbots...\");\n m_botAction.cancelTasks();\n\n m_botAction.ipcTransmit(IPCCHANNEL, new IPCMessage(\"die\"));\n moduleHandler.unloadAllModules();\n m_botAction.scheduleTask(logoffTask, LOG_OFF_DELAY);\n }\n\n if (message.equalsIgnoreCase(\"!help\")) {\n m_botAction.sendSmartPrivateMessage(sender, \"PUBHUB CHAT COMMANDS:\");\n m_botAction.sendSmartPrivateMessage(sender, \"!respawn - Respawns all PubBots.\");\n m_botAction.sendSmartPrivateMessage(sender, \"!where - Shows location of all PubBots.\");\n m_botAction.sendSmartPrivateMessage(sender, \"!listmodules - Gives a list of pub modules available.\");\n m_botAction.sendSmartPrivateMessage(sender, \"!reloadconfig - Reloads pubhub configuration from .cfg file.\");\n m_botAction.sendSmartPrivateMessage(sender, \"!off - Disconnects the pubhub and pubbots.\");\n }\n }\n\n // Messages from the *locate commands\n if(messageType == Message.ARENA_MESSAGE) {\n // Use a regular expression to determine if this arena message is the result of the *locate command\n // If yes, then the result of this regular expression can also be used to get the player and arena name\n // from the arena message.\n // The regular expression without java-specific escapes = (.+)\\s-\\s([#\\w\\d\\p{Z}]+)\n // Small explanation: [name] - [arena]\n\n Pattern p = Pattern.compile(\"(.+)\\\\s-\\\\s([#\\\\w\\\\d\\\\p{Z}]+)\");\n Matcher m = p.matcher(message);\n\n if(m.matches()) {\n String name = m.group(1);\n String arena = m.group(2);\n\n if(name != null && arena != null) {\n\n if(arena.startsWith(\"Public \")) {\n arena = arena.replaceAll(\"Public \", \"\");\n }\n\n if(pubbots.containsKey(name)) {\n pubbots.put(name, arena.toLowerCase());\n\n // let the pubbot know it's (new?) location\n m_botAction.ipcTransmit(IPCCHANNEL, new IPCMessage(\"location \" + arena, name));\n\n checkPubbots();\n }\n }\n\n }\n }\n\n moduleHandler.handleEvent(event);\n }", "title": "" }, { "docid": "9755e424b86b6bd5b353c614297b95fd", "score": "0.49841905", "text": "protected abstract void fireTrackerEvent(String label);", "title": "" }, { "docid": "5b77757e051f74c68ebfb131c7056c8f", "score": "0.49838448", "text": "public void fireEvent( String eventName, Object eventData ) {\n \t\tif (this.label != null) {\n \t\t\tEventManager.fireEvent(eventName, this.label, eventData);\n \t\t}\n \t\tEventManager.fireEvent(eventName, this, eventData);\n \t}", "title": "" }, { "docid": "279a0629d3da3faab10cefd2c3923b83", "score": "0.49784002", "text": "public void event(final String provider) {\n\n\t\tif (provider.equalsIgnoreCase(\"google\")\n\t\t\t\t|| provider.equalsIgnoreCase(\"yahoo\")) {\n\n\t\t\tadapter.getContactListAsync(new ContactDataListener());\n\n\t\t} else if (provider.equalsIgnoreCase(\"facebook\")) {\n\n\t\t\tStrictMode.ThreadPolicy policy = new StrictMode.ThreadPolicy.Builder()\n\t\t\t\t\t.permitAll().build();\n\t\t\tStrictMode.setThreadPolicy(policy);\n\n\t\t\tadapter.updateStory(\"Hey, I am using MiCar!\", \"MiCar\", \"\",\n\t\t\t\t\t\"MiCar book your cab\",\n\t\t\t\t\t\"http://micar.qa3.intelligrape.net/\",\n\t\t\t\t\t\"http://fbrell.com/f8.jpg\", new MessageListener());\n\n\t\t} else if (provider.equalsIgnoreCase(\"twitter\")) {\n\t\t\tadapter.updateStatus(\n\t\t\t\t\t\"Hey, I am using MiCar! \" + System.currentTimeMillis(),\n\t\t\t\t\tnew MessageListener(), false);\n\n\t\t}\n\n\t}", "title": "" }, { "docid": "f20fa19d249f95b16f5915c6a99a181d", "score": "0.49768448", "text": "void changeEvent(String str) {\n\t evnt.append(str);\n\t evnt.setCaretPosition(chatroom.getText().length() - 1);\n\t }", "title": "" }, { "docid": "77e0592fd664d9bf6410abdf0f824f29", "score": "0.49767172", "text": "@Test\n public void SendReceiveMessageTest() {\n // create a message\n String message = \"test only\";\n Chat chat = new Chat(null,null,null,null,message,1);\n doNothing().when(mChatRoomManager).sendMessageToFirebaseUser(chat);\n doNothing().when(mChatRoomManager).getMessageFromFirebaseUser();\n\n // send message\n mChatActivity.setMessage(message);\n mChatActivity.sendMessage();\n\n // verify message\n assertEquals(message,mChatActivity.getChat().message);\n }", "title": "" }, { "docid": "efdcba18c2a79a3d155be120df3b453a", "score": "0.49718347", "text": "public FancyMessage onClick(FancyClickEvent fce) {\n FancyMessageListener.chats.add(fce);\n return command(\"/BimmCore \" + fce.getUUID());\n }", "title": "" }, { "docid": "c0cbfa94d817077613cdd344601a9f7f", "score": "0.4968723", "text": "public void handleEvent(Event evt) {\n\t\t\t\tSystem.out.println(\"Greetings from the Square!\");\r\n\t\t\t}", "title": "" }, { "docid": "4985763bc35e3512d21fe94b8d22762e", "score": "0.49651074", "text": "public void onClick(DialogInterface dialog,int id) {\n\t\t\t\t\t\tIntent i = new Intent(ChatRoom.this,ChatActivity.class);\n\t\t\t\t\t\ti.putExtra(\"challenged\", sender);\n\t\t\t\t\t\ti.putExtra(\"user\", user);\n\t\t\t\t\t\tstartActivity(i);\n\t\t\t\t\t\tremoveListeners();\n\t\t\t\t\t\tmyGame.sendPrivateChat(sender, \"LetsFight!\");\n\t\t\t\t\t\tChatRoom.this.finish();\n\t\t\t\t\t}", "title": "" }, { "docid": "3bc215f35a4d0e868439ca9734001b0c", "score": "0.49646747", "text": "@Override\n public void onMessageSend(@NotNull ChatMessage message) {\n if(ChatBotHandler.checkInternetConnection()) {\n // Place a message in chat history UI.\n boolean sendMessage = message.getMessage() != null\n && !message.getMessage().isEmpty();\n if (sendMessage) {\n final String messageAsString = message.getMessage();\n\n // Add the message to the conversation history\n ContentValues values = new ContentValues();\n values.put(ChatBotHistoryContract.ChatBotHistoryEntry.COLUMN_NAME_USERTYPE, \"user\");\n values.put(ChatBotHistoryContract.ChatBotHistoryEntry.COLUMN_NAME_MESSAGE, messageAsString);\n values.put(ChatBotHistoryContract.ChatBotHistoryEntry.COLUMN_NAME_TIMESTAMP, System.currentTimeMillis());\n chatDbWriteable.insert(ChatBotHistoryContract.ChatBotHistoryEntry.TABLE_NAME, null, values);\n\n // Add message to convo history\n LinearLayout convoHistory = findViewById(R.id.chat_message_history);\n ChatMessageView view = new ChatMessageView(this, message);\n\n view.setClickable(true);\n view.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n ChatBotHandler.textToSpeech(messageAsString);\n }\n });\n convoHistory.addView(view);\n\n\n // TODO: Make this async\n // Get the message from the chat bot handler.\n final String response = ChatBotHandler.sendMessage(message.getMessage());\n ChatMessageView responseView = new ChatMessageView(this, new ChatMessage(response));\n\n responseView.setClickable(true);\n responseView.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n ChatBotHandler.textToSpeech(response);\n }\n });\n\n // Add the response to conversation history\n values = new ContentValues();\n values.put(ChatBotHistoryContract.ChatBotHistoryEntry.COLUMN_NAME_USERTYPE, \"bot\");\n values.put(ChatBotHistoryContract.ChatBotHistoryEntry.COLUMN_NAME_MESSAGE, response);\n values.put(ChatBotHistoryContract.ChatBotHistoryEntry.COLUMN_NAME_TIMESTAMP, System.currentTimeMillis());\n chatDbWriteable.insert(ChatBotHistoryContract.ChatBotHistoryEntry.TABLE_NAME, null, values);\n\n responseView.makeResponse();\n convoHistory.addView(responseView);\n }\n }\n }", "title": "" }, { "docid": "2e9aece5f242f35c72cbdff1d31bdd43", "score": "0.4956705", "text": "protected void onQueryChatHistory(String str) throws IOException {\n\t\tint patientID = 0;\n\t\tint doctorID = 0;\n\t\tList<Chat> chatHistory = chatm.findChatHistory(patientID, doctorID);\n\n\t\t// serialize chat history and send ack\n\n\t\tsendQueryChatHistoryAck(chatHistory);\n\t}", "title": "" }, { "docid": "6fe777b4b9656a67620d5d543ddb5057", "score": "0.4955386", "text": "@Override\n public void startEvent() {\n getContext().parent().tell(new StartMessage(), getSelf());\n }", "title": "" }, { "docid": "87c4f1cabb233e2be68d652fdd8b6415", "score": "0.49505576", "text": "public void receiveBattleEvent(BattleSummary summary){}", "title": "" }, { "docid": "9fdba0c1585b5567cde762f25e3834f5", "score": "0.4947209", "text": "public void setChatType(String chatType) {\n this.chatType = chatType;\n }", "title": "" }, { "docid": "69565c8e0a01f9b904229daa7748d23a", "score": "0.49398494", "text": "@Override\n public void handleMessage(Message msg) {\n switch (msg.what) {\n case 3:\n String Visit_result = msg.obj.toString();\n Visit(Visit_result);\n Chat_ListView.setAdapter(new VisitAdapter(getActivity(),VisitList));\n break;\n case 4:\n String result = msg.obj.toString();\n Chat(result);\n Chat_ListView.setAdapter(new ChatAdapter(getActivity(), ChatList));\n break;\n }\n\n }", "title": "" }, { "docid": "e60feffbe874e444fac2fc7aca6cbd53", "score": "0.49379385", "text": "private void noticeMessage(Chat arg0, Message arg1) {\n\t\tif (arg1.getBody() != null) {\n\n\t\t\tChatMessage m = new ChatMessage();\n\t\t\tm.setDate(new Date());\n\t\t\tm.setFrom(getIdName());\n\t\t\tm.setMessage(arg1.getBody());\n\t\t\taddToHistory(m);\n\t\t\tsetHasUnreadedMessage(true);\n\t\t\tthis.pushMessage();\n\n\t\t}\n\t}", "title": "" }, { "docid": "e9bdbbfd25531387a17e0bbb6698efde", "score": "0.4936804", "text": "private static void handleMessage(IoBuffer buffer) {\r\n\t\tString username = buffer.getString();\r\n\t\tString sender = buffer.getString();\r\n\t\tint type = buffer.get() & 0xFF;\r\n\t\tint icon = buffer.get() & 0xFF;\r\n\t\tString message = buffer.getString();\r\n\t\tPlayer player = Repository.getPlayerByName(username);\r\n\t\tif (player == null || !player.isActive()) {\r\n\t\t\t// System.err.println(\"Inactive player for message [name=\" +\r\n\t\t\t// username + \", player=\" + player + \", type=\" + type + \"]!\");\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tint opcode = MessageContext.SEND_MESSAGE;\r\n\t\tswitch (type) {\r\n\t\tcase 1:\r\n\t\t\topcode = MessageContext.RECIEVE_MESSAGE;\r\n\t\t\tbreak;\r\n\t\tcase 2:\r\n\t\t\topcode = MessageContext.CLAN_MESSAGE;\r\n\t\t\tbreak;\r\n\t\t}\r\n\t\tPacketRepository.send(CommunicationMessage.class, new MessageContext(player, sender, icon, opcode, message));\r\n\t}", "title": "" }, { "docid": "8d610b6ef7057d6fc8804acd1f911fc2", "score": "0.49344045", "text": "@SubscribeEvent\r\n\tpublic void SendMessageToPlayer(EntityJoinWorldEvent event) {\r\n\t\tif (!serverstarted)\r\n\t\t\treturn;\r\n\t\ttry {//1.13\r\n\t\t\tif (event.getEntity() instanceof net.minecraft.entity.player.EntityPlayer && !sent) {\r\n\t\t\t\tevent.getEntity().sendMessage((ITextComponent)new TextComponentString(\"Server Status:\"));\r\n\t\t\t\tevent.getEntity().sendMessage((ITextComponent)new TextComponentString(\"online-mode = \" + server.isServerInOnlineMode()));\r\n\t\t\t\tevent.getEntity().sendMessage((ITextComponent)new TextComponentString(\"spawn-animals = \" + server.getCanSpawnAnimals()));\r\n\t\t\t\tevent.getEntity().sendMessage((ITextComponent)new TextComponentString(\"spawn-npcs = \" + server.getCanSpawnNPCs()));\r\n\t\t\t\tevent.getEntity().sendMessage((ITextComponent)new TextComponentString(\"pvp = \" + server.isPVPEnabled()));\r\n\t\t\t\tevent.getEntity().sendMessage((ITextComponent)new TextComponentString(\"allow-flight = \" + server.isFlightAllowed()));\r\n\t\t\t\tevent.getEntity().sendMessage((ITextComponent)new TextComponentString(\"player-idle-timeout = \" + server.getMaxPlayerIdleMinutes()));\r\n\t\t\t\tevent.getEntity().sendMessage((ITextComponent)new TextComponentString(\"max-build-height = \" + server.getBuildLimit()));\r\n\t\t\t\tevent.getEntity().sendMessage((ITextComponent)new TextComponentString(\"motd = \" + server.getMOTD()));\r\n\t\t\t\tevent.getEntity().sendMessage((ITextComponent)new TextComponentString(\"max-players = \" + server.getMaxPlayers()));\r\n\t\t\t\tif (!server.getResourcePackUrl().isEmpty())\r\n\t\t\t\t\tevent.getEntity().sendMessage((ITextComponent)new TextComponentString(\"resource-pack = \" + server.getResourcePackUrl())); \r\n\t\t\t\tif (!server.getResourcePackHash().isEmpty())\r\n\t\t\t\t\tevent.getEntity().sendMessage((ITextComponent)new TextComponentString(\"resource-pack-sha1 = \" + server.getResourcePackHash())); \r\n\t\t\t\tint i = ServerProperties.getIntProperty(\"max-view-distance\", 0);\r\n\t\t\t\tif (i > 0)\r\n\t\t\t\t\tevent.getEntity().sendMessage((ITextComponent)new TextComponentString(\"max-view-distance = \" + i));\r\n\t\t\t\telse\r\n\t\t\t\t\tevent.getEntity().sendMessage((ITextComponent)new TextComponentString(\"max-view-distance = default\"));\r\n\t\t\t\tif (port>0 && port<=65535)\r\n\t\t\t\t\tevent.getEntity().sendMessage((ITextComponent)new TextComponentString(\"port = \" + port));\r\n\t\t\t\telse\r\n\t\t\t\t\tevent.getEntity().sendMessage((ITextComponent)new TextComponentString(\"port = random\"));\r\n\t\t\t\tevent.getEntity().sendMessage((ITextComponent)new TextComponentString(\"use /whitelist command control whitelist\"));\r\n\t\t\t\tevent.getEntity().sendMessage((ITextComponent)new TextComponentString(\"^ require allow-cheat on\"));\r\n\t\t\t\tsent = true;\r\n\t\t\t}\r\n\t\t} catch (Error E1) {\r\n\t\t\ttry {//1.14 - 1.15\r\n\t\t\t\tif (event.getEntity() instanceof net.minecraft.entity.player.PlayerEntity && !sent) {\r\n\t\t\t\t\tevent.getEntity().sendMessage((ITextComponent)new StringTextComponent(\"Server Status:\"));\r\n\t\t\t\t\tevent.getEntity().sendMessage((ITextComponent)new StringTextComponent(\"online-mode = \" + server.isServerInOnlineMode()));\r\n\t\t\t\t\tevent.getEntity().sendMessage((ITextComponent)new StringTextComponent(\"spawn-animals = \" + server.getCanSpawnAnimals()));\r\n\t\t\t\t\tevent.getEntity().sendMessage((ITextComponent)new StringTextComponent(\"spawn-npcs = \" + server.getCanSpawnNPCs()));\r\n\t\t\t\t\tevent.getEntity().sendMessage((ITextComponent)new StringTextComponent(\"pvp = \" + server.isPVPEnabled()));\r\n\t\t\t\t\tevent.getEntity().sendMessage((ITextComponent)new StringTextComponent(\"allow-flight = \" + server.isFlightAllowed()));\r\n\t\t\t\t\tevent.getEntity().sendMessage((ITextComponent)new StringTextComponent(\"player-idle-timeout = \" + server.getMaxPlayerIdleMinutes()));\r\n\t\t\t\t\tevent.getEntity().sendMessage((ITextComponent)new StringTextComponent(\"max-build-height = \" + server.getBuildLimit()));\r\n\t\t\t\t\tevent.getEntity().sendMessage((ITextComponent)new StringTextComponent(\"motd = \" + server.getMOTD()));\r\n\t\t\t\t\tevent.getEntity().sendMessage((ITextComponent)new StringTextComponent(\"max-players = \" + server.getMaxPlayers()));\r\n\t\t\t\tif (!server.getResourcePackUrl().isEmpty())\r\n\t\t\t\t\tevent.getEntity().sendMessage((ITextComponent)new StringTextComponent(\"resource-pack = \" + server.getResourcePackUrl())); \r\n\t\t\t\tif (!server.getResourcePackHash().isEmpty())\r\n\t\t\t\t\tevent.getEntity().sendMessage((ITextComponent)new StringTextComponent(\"resource-pack-sha1 = \" + server.getResourcePackHash())); \r\n\t\t\t\tint i = ServerProperties.getIntProperty(\"max-view-distance\", 0);\r\n\t\t\t\tif (i > 0)\r\n\t\t\t\t\tevent.getEntity().sendMessage((ITextComponent)new StringTextComponent(\"max-view-distance = \" + i));\r\n\t\t\t\telse\r\n\t\t\t\t\tevent.getEntity().sendMessage((ITextComponent)new StringTextComponent(\"max-view-distance = default\"));\r\n\t\t\t\tif (port>0 && port<=65535)\r\n\t\t\t\t\t event.getEntity().sendMessage((ITextComponent)new StringTextComponent(\"port = \" + port));\r\n\t\t\t\telse\r\n\t\t\t\t\t event.getEntity().sendMessage((ITextComponent)new StringTextComponent(\"port = random\"));\r\n\t\t\t\tevent.getEntity().sendMessage((ITextComponent)new StringTextComponent(\"use /whitelist command control whitelist\"));\r\n\t\t\t\tevent.getEntity().sendMessage((ITextComponent)new StringTextComponent(\"^ require allow-cheat on\"));\r\n\t\t\t\tsent = true;\r\n\t\t\t\t}\r\n\t\t\t} catch (Error E2) {\r\n\t\t\t\ttry {//1.16\r\n\t\t\t\t\tif (event.getEntity() instanceof net.minecraft.entity.player.PlayerEntity&&!sent) {\r\n\t\t\t\t\t\tevent.getEntity().func_145747_a((ITextComponent)new StringTextComponent(\"Server Status: \"),event.getEntity().getUniqueID());\r\n\t\t\t\t\t\tevent.getEntity().func_145747_a((ITextComponent)new StringTextComponent(\"online-mode = \" + server.isServerInOnlineMode()),event.getEntity().getUniqueID());\r\n\t\t\t\t\t\tevent.getEntity().func_145747_a((ITextComponent)new StringTextComponent(\"pvp = \" + server.isPVPEnabled()),event.getEntity().getUniqueID());\r\n\t\t\t\t\t\tevent.getEntity().func_145747_a((ITextComponent)new StringTextComponent(\"allow-flight = \" + server.isFlightAllowed()),event.getEntity().getUniqueID());\r\n\t\t\t\t\t\tevent.getEntity().func_145747_a((ITextComponent)new StringTextComponent(\"player-idle-timeout = \" + server.getMaxPlayerIdleMinutes()),event.getEntity().getUniqueID());\r\n\t\t\t\t\t\tevent.getEntity().func_145747_a((ITextComponent)new StringTextComponent(\"max-build-height = \" + server.getBuildLimit()),event.getEntity().getUniqueID());\r\n\t\t\t\t\t\tevent.getEntity().func_145747_a((ITextComponent)new StringTextComponent(\"motd = \" + server.getMOTD()),event.getEntity().getUniqueID());\r\n\t\t\t\t\t\tevent.getEntity().func_145747_a((ITextComponent)new StringTextComponent(\"max-players = \" + server.getMaxPlayers()),event.getEntity().getUniqueID());\r\n\t\t\t\t\t\tif (!server.getResourcePackUrl().isEmpty())\r\n\t\t\t\t\t\t\tevent.getEntity().func_145747_a((ITextComponent)new StringTextComponent(\"resource-pack = \" + server.getResourcePackUrl()),event.getEntity().getUniqueID()); \r\n\t\t\t\t\t\tif (!server.getResourcePackHash().isEmpty())\r\n\t\t\t\t\t\t\tevent.getEntity().func_145747_a((ITextComponent)new StringTextComponent(\"resource-pack-sha1 = \" + server.getResourcePackHash()),event.getEntity().getUniqueID()); \r\n\t\t\t\t\t\tint i = ServerProperties.getIntProperty(\"max-view-distance\", 0);\r\n\t\t\t\t\t\tif (i > 0)\r\n\t\t\t\t\t\t\tevent.getEntity().func_145747_a((ITextComponent)new StringTextComponent(\"max-view-distance = \" + i),event.getEntity().getUniqueID());\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t\tevent.getEntity().func_145747_a((ITextComponent)new StringTextComponent(\"max-view-distance = default\"),event.getEntity().getUniqueID());\r\n\t\t\t\t\t\tif (port>0 && port<=65535)\r\n\t\t\t\t\t\t\tevent.getEntity().func_145747_a((ITextComponent)new StringTextComponent(\"port = \" + port),event.getEntity().getUniqueID());\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t\tevent.getEntity().func_145747_a((ITextComponent)new StringTextComponent(\"port = random\"),event.getEntity().getUniqueID());\r\n\t\t\t\t\t\tevent.getEntity().func_145747_a((ITextComponent)new StringTextComponent(\"use /whitelist command control whitelist\"),event.getEntity().getUniqueID());\r\n\t\t\t\t\t\tevent.getEntity().func_145747_a((ITextComponent)new StringTextComponent(\"^ require allow-cheat on\"),event.getEntity().getUniqueID());\r\n\t\t\t\t\t\tsent = true;\r\n\t\t\t\t\t}\r\n\t\t\t\t} catch (Error E3) {\r\n\t\t\t\t\t/** Something went wrong */\r\n\t\t\t\t\tLOGGER.error(\"Error send message to player:\");\r\n\t\t\t\t\tE1.printStackTrace();\r\n\t\t\t\t\tLOGGER.error(\"Error 2:\");\r\n\t\t\t\t\tE2.printStackTrace();\r\n\t\t\t\t\tLOGGER.error(\"Error 3:\");\r\n\t\t\t\t\tE3.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "f5d371f8c59a1b4ed48f2674216a9d56", "score": "0.49280587", "text": "public void setChatID(String id){\n\t\tthis.chatID = id;\n\t}", "title": "" }, { "docid": "16b12364cfefb5e96adaa53b60126a6d", "score": "0.49277133", "text": "public void fireClickEvent(Canvas canvas, Player player, int x, int y) {\n if (contains(x, y)) {\n for (InteractListener listener : interactListeners) {\n listener.onClick(canvas, player, x, y);\n }\n }\n }", "title": "" }, { "docid": "9f72b172f7611c393998f62969b6c186", "score": "0.49230772", "text": "public void msgHereIsYourFood(){\n\t\tevent = AgentEvent.gotFood;\n\t\tstateChanged();\n\t}", "title": "" }, { "docid": "bf93b1be2134a0a946b358b87b7dea4b", "score": "0.4918995", "text": "public void actionPerformed(ActionEvent e) {\n\r\n\t\t\t\t\tString sender = m_clientStub.getMyself().getName();\r\n\t\t\t\t\tsendToServer(\"game#\"+sender+\"#gamestart\", m_clientStub.getMyself().getCurrentGroup());\r\n\t\t\t\t\t\r\n\t\t\t\t\t//버튼 비활성\r\n\t\t\t\t\t//m_clientStub.chat(strTarget, \"is ready to start.\");\r\n\t\t\t\t}", "title": "" }, { "docid": "0b3ae303fd4d4ba75fdae41cdf165015", "score": "0.49127755", "text": "@Override\n public void actionPerformed(ActionEvent e) {\n String str = text_sendmsg.getText();\n //空信息不发送\n if (str.isEmpty())\n return;\n //发送聊天信息\n sendMsg(\"chat\");\n sendMsg(str);\n //显示聊天信息\n text_getmsg.append(username + \": \" + str + \"\\n\");\n //清空输入框\n text_sendmsg.setText(\"\");\n }", "title": "" } ]
ac5bc926db2ba49f2ab7d788dcc492b7
para ver si dan los mismo
[ { "docid": "4547b911fd13706ba044dcca92c91680", "score": "0.5852873", "text": "private static void check1() {\n\t\tint cantPuntos = 2000;\n\t\tPunto[] arr = new Punto[cantPuntos];\n\t\tRandom random = new Random();\n\t\t\n\t\tdouble distanciaMinimaNaive = 0;\n\t\tdouble distanciaMinimaOrdX = 0;\n\t\tdouble distanciaMinimaOrdXY = 0;\n\t\n\t\twhile(true) { \n\t\t\tdo {\n\t\t\t\tfor(int i=0;i<cantPuntos;i++)\n\t\t\t\t\tarr[i] = new Punto(random.nextInt(MAX_VALUE + 1),random.nextInt(MAX_VALUE + 1));\n\t\t\t\t\n\t\t\t\tdistanciaMinimaNaive = Distancias.distanciaNaive(arr);\n\t\t\t\tdistanciaMinimaOrdX = Distancias.distanciaOrdX(arr);\n\t\t\t\tdistanciaMinimaOrdXY = Distancias.distanciaOrdXY(arr);\n\t\t\t}\n\t\t\twhile(distanciaMinimaNaive == distanciaMinimaOrdX && distanciaMinimaNaive == distanciaMinimaOrdXY );\n\t\t\tSystem.out.println(\"Distancia minima algoritmo naive: \" + distanciaMinimaNaive);\n\t\t\tSystem.out.println(\"Distancia minima ordenados por x: \" + distanciaMinimaOrdX);\n\t\t\tSystem.out.println(\"Distancia minima ordenados por x e y: \" + distanciaMinimaOrdXY + \"\\n\");\n\t\t}\n\t}", "title": "" } ]
[ { "docid": "c0e02683136264498442d65fd142038b", "score": "0.6656184", "text": "@Override\r\n\tpublic boolean tabuleiroCheio() {\r\n\t\treturn (ladoAmarelo.size() < 1 && ladoVermelho.size() < 1);\r\n\t}", "title": "" }, { "docid": "405ef503f3fe3c283f830586b8a86d6b", "score": "0.63592184", "text": "@Override\n\t\t\tpublic boolean finalizouColeta() {\n\t\t\t\treturn count!=0;\n\t\t\t}", "title": "" }, { "docid": "997e15ba1aa8e8387088340c1d16d8b9", "score": "0.6283241", "text": "public static void inventoi() {\r\n System.out.println(((Kaytava)sokkelo[monkijarivind][monkijasarind]).haeMonkija().toString());\r\n \r\n if (((Kaytava)sokkelo[monkijarivind][monkijasarind]).haeMonkija().varastonKoko() > 0) {\r\n ((Kaytava)sokkelo[monkijarivind][monkijasarind]).haeMonkija().tulostaLista();\r\n }\r\n }", "title": "" }, { "docid": "f0ddea928db4b1d1be09baab5780b1be", "score": "0.62804526", "text": "public boolean parada(){\n\t\tif(j1.getTamaño_mano() == 0 || j2.getTamaño_mano() == 0 || j3.getTamaño_mano() == 0 || j4.getTamaño_mano() == 0 || mazo.getTamaño_baraja() < 3){\n\t\t\treturn true;\n\t\t}\n\t\telse{\n\t\t\treturn false;\n\t\t}\n\t}", "title": "" }, { "docid": "442314f90986c36576aa78cc4a5a3077", "score": "0.6249779", "text": "public boolean Vacia(){\n return ultimo==null;\n }", "title": "" }, { "docid": "5840c0765390d4093f5f741a92678f26", "score": "0.61975235", "text": "public boolean estaVazia(){\r\n\t if (qtdeElementos == 0){\r\n\t return true;\r\n\t }\r\n\t return false;\r\n\t }", "title": "" }, { "docid": "fb357e87d5bbe860533816399fd42c2c", "score": "0.61963975", "text": "public boolean livre(){\n\r\n\t\tif(get(0).disponivel() && get(1).disponivel()) // so coloquei pros 2 nucleos que testei\r\n\r\n\t\t\treturn true;\r\n\t\telse\r\n\r\n\t\t\treturn false;\r\n\t}", "title": "" }, { "docid": "f359e2db5091e98b77f60fb621f1dc92", "score": "0.6177086", "text": "public boolean esVacia() { return talla == 0; }", "title": "" }, { "docid": "2484b8dbf0449cc96ff0dd521ade9e07", "score": "0.6150977", "text": "private static void ogrenciListelemeIslemi() {\n\t\tdosyaOkumaIslemi();\r\n\t}", "title": "" }, { "docid": "ad21cd20187ff25b7e8f35965bb44055", "score": "0.6070401", "text": "public boolean esVacia(){\n //COMPLETAR\n return this.talla == 0;\n }", "title": "" }, { "docid": "2574b4c22a773aa99ef785049ed739c6", "score": "0.60671544", "text": "public boolean tomt(){\r\n return counter==0;\r\n \r\n }", "title": "" }, { "docid": "547ce4844d6fc66f59d7b731be36d385", "score": "0.59848624", "text": "private void verSiNoEstaCercaDeUnNPC() {\r\n \tif (juego.getNPCs() != null) {\r\n boolean esPelea = false;\r\n\r\n Map<Integer, PaqueteDeNPC> npcs;\r\n npcs = new HashMap<Integer, PaqueteDeNPC>(juego.getNPCs());\r\n Map<Integer, PaqueteMovimiento> ubicacionNPCs;\r\n ubicacionNPCs = new HashMap<Integer, PaqueteMovimiento>(juego.getUbicacionNPCs());\r\n\r\n Iterator<Integer> it = ubicacionNPCs.keySet().iterator();\r\n int key;\r\n PaqueteMovimiento actual;\r\n\r\n while (it.hasNext()) {\r\n key = it.next();\r\n actual = ubicacionNPCs.get(key);\r\n if (actual != null) {\r\n if (actual.getPosX() - x < TOLERANCIA_DISTANCIA_NPC && actual.getPosX() - x > (-1)\r\n * TOLERANCIA_DISTANCIA_NPC && actual.getPosY() - y < TOLERANCIA_DISTANCIA_NPC\r\n && actual.getPosY() - y > (-1) * TOLERANCIA_DISTANCIA_NPC) {\r\n // iniciar pelea\r\n PaqueteBatalla pBatalla = new PaqueteBatalla();\r\n\r\n pBatalla.setId(juego.getPersonaje().getId());\r\n pBatalla.setIdEnemigo(key);\r\n\r\n juego.getPersonaje().setEstado(Estado.getEstadoBatallaNPC());\r\n Estado.setEstado(null);\r\n juego.setEstadoBatallaNPC(new EstadoBatallaNPC(juego, pBatalla));\r\n Estado.setEstado(juego.getEstadoBatallaNPC());\r\n\r\n esPelea = true;\r\n break;\r\n }\r\n }\r\n }\r\n }\r\n }", "title": "" }, { "docid": "2253e05c50a7b7c3a8cf708b8336f173", "score": "0.59822834", "text": "private void cadastra() {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "ef17866fa6fedf7232358cf86d005685", "score": "0.59703135", "text": "public boolean est_Vide(){\n\t\treturn niveau==0;\n\t}", "title": "" }, { "docid": "c1f7039edc8beb9b2d051728a498504d", "score": "0.59641474", "text": "private boolean begiratuSudokurikBadu() {\n\t\tif (erabiltzaile.getSudoku().getKasila(0, 0).getBalioZuzena()==0){\n\t\t\tlblSudokuGordeta.setText(\"Ez duzu sudokurik gordeta\");\n\t\t\treturn false;\n\t\t} else {\n\t\t\tlblSudokuGordeta.setText(\"Sudoku hau duzu amaitzeko\");\n\t\t\treturn true;\n\t\t}\n\t}", "title": "" }, { "docid": "98be2e1c717b059964f99067e48c9b99", "score": "0.59617114", "text": "default public boolean estVide(){\r\n\t\treturn this.taille() == 0;\r\n\t}", "title": "" }, { "docid": "892fa142b22f46a8de6498b6a2cd1ce8", "score": "0.5937594", "text": "public void VerificarTV(){\n //Si SeGano 3 veces los valores estaran vacios\n if (SeGano == 3){\n //Se llenara de nuevo\n LLenaLosArreglos();\n OrdenamientoAleatorio();\n //Reiniciara la varable de SeGano a 0\n SeGano = 0;\n }\n }", "title": "" }, { "docid": "8c839c68725b32fb0216575848ff5888", "score": "0.59348255", "text": "@Test\n\tpublic void duenioRevisaYEstaMal() {\n\ttrabajo.setCantidadHorasMaquina(35);\n\ttrabajo.setCantidadHorasCamion(0);\n\tduenio.revisarTrabajo(trabajo);\n\tint horas = duenio.getHorastrabajadas();\n\tassertEquals(5, horas);\n\t}", "title": "" }, { "docid": "2950f6d36623f682b23e3e5a872137dc", "score": "0.592688", "text": "boolean hayMisilesCrucerosInteligentes() {\n\t\treturn tieneCrucerosInteligentes;\n\t}", "title": "" }, { "docid": "c553e590b67f4cbe553e0a45187739aa", "score": "0.5918843", "text": "public boolean esEmpate() {\n return (tiros == 9);\n }", "title": "" }, { "docid": "2d2046201a5141bfc81e08c42ffd5b3a", "score": "0.58970755", "text": "public boolean siMostrar(){\n\t\treturn true;\n\t}", "title": "" }, { "docid": "5a838a15295b3d03a7c7b4b3bb3001f8", "score": "0.5887934", "text": "static public void MateMasAlumnos(){\r\n\t\t\tint valor=0;\r\n\t\t\tint indice=0;\r\n\t\t\tGuardarNombreCurso();\r\n\t\t\tGuardarAlumnosCurso();\r\n\t\t\tfor(int i=0;i<A.NC;i++){\r\n\t\t\t\tif(alumnosInsCurso[i]>valor){\r\n\t\t\t\t\tvalor=alumnosInsCurso[i];\r\n\t\t\t\t\tindice=i;\r\n\t\t\t\t}else{\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\t\t\t\t\r\n\t\t\t}\t\t\r\n\t\t\tSystem.out.println(\"El curso de \"+nombreCursoss[indice]+\" es el que tiene mas alumnos inscritos ya \"+\r\n\t\t\t\t\t\"que cuenta con \"+valor+\" alumnos inscritos.\");\r\n\t\t}", "title": "" }, { "docid": "594013df3755836d2d7e77935acfd6bb", "score": "0.58801985", "text": "public boolean mesDeNou(){\n\t\t\t\t\t\tint comp = 0;\n\t\t\t\t\t\tboolean okay = true;\n\t\t\t\t\t\tfor(int fil = 0; fil < taulell.length && okay; ++fil){\n\t\t\t\t\t\t\tfor (int i = 0; i < taulell[0].length && okay; ++i){\n\t\t\t\t\t\t\t\t\tif(!taulell[fil][i].esNegra()) ++comp;\n\t\t\t\t\t\t\t\t\telse comp = 0;\n\t\t\t\t\n\t\t\t\t\t\t\t\t\tif (comp > 9) okay = false;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tcomp = 0;\n\t\t\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\t\tcomp = 0;\n\t\t\t\t\t\tfor(int col = 0; col < taulell[0].length && okay; ++col){\n\t\t\t\t\t\t\tfor (int i =0; i < taulell.length && okay;i++){\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tif(!taulell[i][col].esNegra()) ++comp;\n\t\t\t\t\t\t\t\telse comp =0;\n\t\t\t\t\n\t\t\t\t\t\t\t\tif (comp > 9) okay = false;\n\t\t\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\tcomp = 0;\n\t\t\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\t\treturn okay;\n\t\t\t}", "title": "" }, { "docid": "cb00368a40e23b31b83a9f3a5c8900d9", "score": "0.5877849", "text": "public boolean marsaBasildimi(){\n \n if(mars == true){\n System.out.println(\"Marsa basildi . Araba Çalıştı\");\n return true;\n \n }\n else{\n System.out.println(\"Mars aktif olmadı ... ,Araba ÇAlışmadı .Marş'a basınız lütfen\");\n return false;\n }\n \n// if(koşul){\n// yapılacak işlemler...\n// }\n// else{\n// koşul sağlanmadıysa bunu yap!.\n// }\n// \n \n }", "title": "" }, { "docid": "2015626e0b637c11e219eec6ead0313d", "score": "0.58518165", "text": "private boolean buscarValoresNuevos() {\n\t\tboolean resuelto = true;\n\t\tfor (int i = 0; i < orden; i++) {\n\t\t\tresuelto = filas.get(i).buscarValoresNuevos() && resuelto;\n\t\t}\n\t\treturn resuelto;\n\t}", "title": "" }, { "docid": "35e83b1cc140639af05e96ce80c35ba4", "score": "0.58506733", "text": "public void verificarInvariante(){\r\n\t\t\r\n\t}", "title": "" }, { "docid": "c6b2e396ca9dcbb0e3f6bbb252df8bcd", "score": "0.5843323", "text": "public boolean estMalade(){\n return this.getEtats().equals(Etats.Malade);\n }", "title": "" }, { "docid": "d2be75d928214f35c32f31fd71d6dc74", "score": "0.5839446", "text": "@Override\n public boolean ehMeta() {\n int sequencia = 0;\n for (int i = 0; i < this.matriz.length; i++) {\n for (int j = 0; j < this.matriz.length; j++) {\n if (sequencia != matriz[i][j]) {\n return false; //nao esta na sequencia, ou seja, nao eh meta\n }\n sequencia++;\n }\n }\n return true;\n }", "title": "" }, { "docid": "c932f41a508a2dc88b38bf32432fb3d0", "score": "0.58297664", "text": "public void seMueve(){\n\t\tthis.pasosQuieta = 1;\n\t\tthis.pasosReprod--;\n\t}", "title": "" }, { "docid": "ba5f6a653c2d96e528c8acee5d919568", "score": "0.5827843", "text": "public boolean estaCheia(){\r\n\t if (qtdeElementos == tamanho - 1){\r\n\t return true;\r\n\t }\r\n\t return false;\r\n\t }", "title": "" }, { "docid": "70e7f00c06e4c48edb004d6237b666d3", "score": "0.58131665", "text": "private boolean comprobarTablas(){\r\n\tboolean tablas=true;\r\n\tint col=1;\r\n\t//comprobamos si la primera fila de las columnas esta vacia\r\n\twhile(tablas && col<=tablero.getAncho()){\r\n\t\tif(tablero.getCasilla(col,1)==Ficha.VACIA)\r\n\t\t\ttablas=false;\r\n\t col++;\r\n\t}\r\n\treturn tablas;\r\n}", "title": "" }, { "docid": "45c6a35918a69e255222764fa6740ac7", "score": "0.5806148", "text": "private static void checker() {\r\n for (int i = 0; i < INST.size()-1; i++) {\r\n if(INST.get(i).contains(\"CODOP= \")) // Si contiene la palabra CODOP\r\n if(numberCheck(INST.get(i))) // Si el metodo tiene un numero\r\n INST.set(i, \"CODOP= Error de CODOP\"); // Cambia el valor por un error del CODOP\r\n }\r\n for (int i = 0; i < INST.size()-1; i++) {\r\n if(INST.get(i).contains(\"ETIQUETA= \")) // Si contiene la palabra CODOP\r\n if(numberStartCheck(INST.get(i))) // Si el metodo tiene un numero\r\n INST.set(i, \"ETIQUETA= Error de Etiqueta\"); // Cambia el valor por un error del CODOP\r\n }\r\n }", "title": "" }, { "docid": "1fab0dc505065c3fcb4040836591bb50", "score": "0.57885045", "text": "public boolean esVacia(){\n return(this.cant==0);\n }", "title": "" }, { "docid": "e669a85fee90d81dc95c13fa3cc77a73", "score": "0.5784408", "text": "private void ucitajUslugeBoravka() {\n }", "title": "" }, { "docid": "f3a76aa436bd5fa750d542f58344ce09", "score": "0.5778272", "text": "private void checkPrelievo(int somma) {\n if (somma <= 0) {\n throw new IllegalArgumentException(\"somma versamento non valida: \" + somma);\n }\n if (saldo < somma) {\n throw new IllegalArgumentException(\"somma prelievo non disponibile: \" + somma);\n }\n }", "title": "" }, { "docid": "91405ad13e96aac9f13e75f10e6e1e79", "score": "0.5770833", "text": "public void allumerLesLumieres()\n\t\n\t{\n\t\tSystem.out.println(\"Les lumières de la ville de \"+nom+\" sont allumées\");\n\t}", "title": "" }, { "docid": "09ab6e4bde8e2f47f4280d1d1c17eb5b", "score": "0.5768056", "text": "private void inimetodo() {\n\t\n\tcreaceroverde();\n iniciaanimacionverde(cuboide.get(0).getx0(),cuboide.get(0).getz0());\n while( ceroyunoverd.get(24).acab()==0){\n \t System.out.print(\"\");\n } \n \n iniciaanimacionrojo();\n\n while( ceroyunorojo.get(24).acab()==0){\n \t System.out.print(\"\");\n } \n univTotal.removeBranchGraph(palabra1Branch2);\n cuboide.get(1).setacto();\n cuboide.get(1).inicia(); \n\n \n \n}", "title": "" }, { "docid": "7ddf084cda110feca9bbdabc930a5a3c", "score": "0.5756847", "text": "private void regolaFlagOrdinato() {\n /* variabili e costanti locali di lavoro */\n int quanteComande = 0;\n boolean flag = false;\n\n try { // prova ad eseguire il codice\n quanteComande = this.getQtaComande();\n if (quanteComande > 0) {\n flag = true;\n } else {\n flag = false;\n }// fine del blocco if-else\n\n /* aggiorna il flag ordinato del tavolo e se lo ha modificato\n * rinfresca la lista dei tavoli */\n if (this.setTavoloOrdinato(flag)) {\n this.refreshTavoli();\n }// fine del blocco if\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n } // fine del blocco try-catch\n }", "title": "" }, { "docid": "bcd4d99847e47b93a135384654aa113b", "score": "0.5755893", "text": "@Override\r\n boolean check() {\n int nbDeuxRoues = 0;\r\n for(Vehicule vehicule : vehicules){\r\n if(vehicule.estDeuxRoues()){\r\n ++nbDeuxRoues;\r\n }\r\n }\r\n return (nbDeuxRoues == 0 || nbDeuxRoues == vehicules.size()); // soit on a pas de deux roues soit tous les vehicules sont a deux rous\r\n }", "title": "" }, { "docid": "0793d0cb3985392f4d5395f47400b92b", "score": "0.5737611", "text": "private PaquetMilieu(){\r\n\r\n\t}", "title": "" }, { "docid": "f5d43011394889020a8fa0ec31e82292", "score": "0.5735506", "text": "public static void ispis() {\r\n System.out.println(\"RB\\tGen/Indeks\\tSMER\");\r\n int k = 0;\r\n for (Index i : indeksi) {\r\n if (i != null) {\r\n k++;\r\n System.out.println(k+\"\\t\"+ i); \r\n }\r\n }\r\n \r\n }", "title": "" }, { "docid": "5c939b171b83bd2006d01c7446a363b8", "score": "0.5731496", "text": "private void muutaLohko() {\t\r\n\t\tif (muutaLohkoTila == 0){\r\n\t\t\tfor (int i = 0 ; i < tekstikentat.length; i++) {\r\n\t\t\t\tif (i != 7) tekstikentat[i].setEditable(true);\r\n\t\t\t}\r\n\t\t\tmuutaLohkoTila = 1;\r\n\t\t}\r\n\t\telse {\r\n\t\t\tfor (int i = 0 ; i < tekstikentat.length; i++) {\r\n\t\t\t\tif (i != 7) tekstikentat[i].setEditable(false);\r\n\t\t\t}\r\n\t\t\tmuutaLohkoTila = 0;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "7d214ac35d0aad956df172629df00212", "score": "0.5726512", "text": "private static void check2() {\n\t\tint cantPuntos = (int) Math.pow(2, 20);\n\t\t\n\t\tPunto[] arr = new Punto[cantPuntos];\n\t\tRandom random = new Random();\n\t\t\n\t\tfor(int i=0;i<cantPuntos;i++)\n\t\t\tarr[i] = new Punto(random.nextInt(MAX_VALUE + 1),random.nextInt(MAX_VALUE + 1));\n\t\n\t\tlong startTime = System.currentTimeMillis();\n\t\tdouble distanciaMinimaOrdXY = Distancias.distanciaOrdXY(arr);\n\t\tlong endTime = System.currentTimeMillis();\n\t\tSystem.out.println(\"Distancia minima ordenados por x e y: \" + distanciaMinimaOrdXY + \" Tiempo: \" + (endTime-startTime));\n\t\t\n\t\tstartTime = System.currentTimeMillis();\n\t\tdouble distanciaMinimaOrdX = Distancias.distanciaOrdX(arr);\n\t\tendTime = System.currentTimeMillis();\n\t\tSystem.out.println(\"Distancia minima ordenados por x: \" + distanciaMinimaOrdX + \" Tiempo: \" + (endTime-startTime));\n\t\t\n\t\tif(cantPuntos == (int) Math.pow(2, 13)) {\n\t\t\tstartTime = System.currentTimeMillis();\n\t\t\tdouble distanciaMinimaNaive = Distancias.distanciaNaive(arr);\n\t\t\tendTime = System.currentTimeMillis();\n\t\t\tSystem.out.println(\"Distancia minima algoritmo naive: \" + distanciaMinimaNaive + \" Tiempo: \" + (endTime-startTime));\n\t\t}\n\t}", "title": "" }, { "docid": "4651269dd16fc350779bf443913b7663", "score": "0.57258403", "text": "public boolean listaVazia() {\n\t\treturn this.tiles.isEmpty();\r\n\t}", "title": "" }, { "docid": "fb01083cd10bdd01c65273dcac96f153", "score": "0.57161474", "text": "public boolean caratterizzazione()\r\n\t\t{\r\n\t\treturn true;\r\n\t\t}", "title": "" }, { "docid": "d7427b1a752b60eac0c1a2e677f5659e", "score": "0.5711524", "text": "public boolean esVacia(){\n return 0 == this.tamanho;\n }", "title": "" }, { "docid": "4d6cd39aa25a3eca05805e8fe78d013e", "score": "0.57113093", "text": "public boolean est_Libre(){\n\t\treturn nb_b==0;\n\t}", "title": "" }, { "docid": "4ba5f214f1f200087bee6c32cce31943", "score": "0.57088876", "text": "public boolean esMeta()\r\n\t{\r\n\t\r\n\t\tfor (int i=6;true;i--)\r\n\t\t{\r\n\t\t\t\r\n\t\t\tif(matriz[2][i].equals(\"A\")) return true;\r\n\r\n\t\t\r\n\t\t\t\r\n\t\t\tif(!matriz[2][i].equals(\"0\")) return false;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "86790c2801f8e257b9e80a157201aeef", "score": "0.5703316", "text": "private void continueSiCaseJouables() {\n int cpt = 0;\n for (int x = 0; x < this.plateau.largeur() ; x++)\n for (int y = 0; y < this.plateau.hauteur() ; y++)\n if (this.plateau.contenu(new PierreCoordonnees(x, y)) == Joueur.VIDE)\n cpt++;\n if (cpt == 0)\n this.visualiser.laPartieEstNulle();\n }", "title": "" }, { "docid": "444047b97c3c1517b3977c6e97fa58a0", "score": "0.57002693", "text": "@Override\n\tpublic boolean ColaVacia() {\n\t\treturn (indice == 0);\n\t}", "title": "" }, { "docid": "d0e16bf3e0cd6468b910c8975c7ecc38", "score": "0.5696135", "text": "public int ifCondition(){\n int matematicas, ciencias, fisica, quimica;\n //si es mayor a 60 aprobado, entre 60 a 70 D, entre 70 a 80 b y asi sucesivamente\n //si es mayor a 100 tirar error\n \n \n \n return 0;\n \n }", "title": "" }, { "docid": "f2f939a5724f7347583daacc54ff56bb", "score": "0.5695758", "text": "boolean isPersegi() {\n\t\treturn (this.brs == this.kol);\n\t}", "title": "" }, { "docid": "a4e23303a7d26fc35e698e7e9d841e9e", "score": "0.5686544", "text": "public boolean revisarEstadoMensajes(){\n\t\tint contador=0;\n\t\t//se recorren todos los mensajes de los clientes preguntando si estos ya han sido atendidos\n\t\tfor(int i=0;i<mensajes.length;i++){\n\t\t\tif(mensajes[i].getProcesado()){\n\t\t\t\tcontador++;\n\t\t\t}\n\t\t}\n\t\t// se compara la cantidad de mensajes atendidos con el total se mensajes\n\t\tif(contador==mensajes.length){\n\t\t\tatendido=true;\n\t\t}\n\t\treturn atendido;\n\t}", "title": "" }, { "docid": "8f76620d4af58c176463e32410ec6737", "score": "0.56861913", "text": "@Override\n\t\tpublic void Comportamiento() {\n\t\t\tSystem.out.println(\"Armando es un joven mas andariego, le gusta bastante mas las actividades sociales.\");\n\t\t\t\n\t\t}", "title": "" }, { "docid": "4e36cf5eb4a5cc52e331eb6a05a34133", "score": "0.568058", "text": "void liikuPohja() {\n while (!tormaaAlas()) {\n liikuAlas();\n }\n }", "title": "" }, { "docid": "269171affab1d56766659031dc86253f", "score": "0.5670817", "text": "public boolean sigueVivo(){\n if (this.vidasRestantes > 0){\n return true;\n }else{\n return false;\n }\n }", "title": "" }, { "docid": "107768cdd6b067f8aebf2222eb343ac9", "score": "0.5667533", "text": "boolean hasCountBadCms();", "title": "" }, { "docid": "c3abae87c1ea73082eb041fb6ce579c9", "score": "0.5658974", "text": "public void verMochila()\r\n {\r\n for (Item objeto : mochila) {\r\n System.out.println(objeto);\r\n }\r\n }", "title": "" }, { "docid": "cde1fa013b3249cf9cb541a451601574", "score": "0.5656588", "text": "public void visOversikt(){\n String oversikt = \"\";\n for(Map.Entry<String, Person> p : personliste.entrySet()){\n oversikt += p.getValue().visOversikt();\n }\n if(oversikt.equals(\"\")){\n System.out.println(\"Det er ingenting aa sjaa i oversikten\");\n }\n else{\n System.out.println(oversikt);\n }\n }", "title": "" }, { "docid": "c43d41f0e79d3399565f59726895f6d3", "score": "0.56541884", "text": "public static boolean ganaAChica(PlayerState mano, PlayerState postre) {\n\t\tSystem.out.println(\"Gana a chica: comparando estas manos.\");\n\t\tmano.printCartas();\n\t\tSystem.out.println(\"\\ncon esta:\");\n\t\tpostre.printCartas();\n\t\tif (mano.numeroPitos() > postre.numeroPitos()) {\n\t\t\tSystem.out.println(\"mano tiene más pitos que postre\");\n\t\t\treturn true;\n\t\t} else if (mano.numeroPitos() < postre.numeroPitos()) {\n\t\t\tSystem.out.println(\"mano tiene menos pitos que postre\");\t\t\t\n\t\t\treturn false;\n\t\t} else {\n\t\t\t// empatados a pitos. carta más baja.\n\t\t\t// creamos copia de ambas manos\n\t\t\tArrayList<Carta> copiaManoJugador1 = mano.getMano();\n\t\t\tSystem.out.println(\"En mano hay:\");\n\t\t\tSystem.out.println(copiaManoJugador1);\n\t\t\tArrayList<Carta> copiaManoJugador2 = postre.getMano();\n\t\t\t/* superfluo\n\t\t\t// eliminamos referencias a pitos de ambas manos\n\t\t\teliminarPitos(copiaManoJugador1);\n\t\t\teliminarPitos(copiaManoJugador2);\n\t\t\t*/\n\t\t\t\n\t\t\t// con lo que resta, vamos comparando la carta mas alta\n\n\t\t\twhile (!copiaManoJugador1.isEmpty() && !copiaManoJugador2.isEmpty() \n\t\t\t\t\t&& Jugadas.cartaMasBaja(copiaManoJugador1).valor() == Jugadas.cartaMasBaja(copiaManoJugador2).valor()) {\n\t\t\t\tcopiaManoJugador1.remove(Jugadas.cartaMasBaja(copiaManoJugador1));\n\t\t\t\tcopiaManoJugador2.remove(Jugadas.cartaMasBaja(copiaManoJugador2));\t\t\t\t\n\t\t\t}\n\n\t\t\t// ambas manos vacias == tenian misma jugada, por tanto gana la mano\n\t\t\t// TODO: revisar, esto no bien wei\n\t\t\tif (copiaManoJugador1.size()>0) {\n\t\t\t\tSystem.out.println(\"Valor de la carta más baja de mano es \" + cartaMasBaja(copiaManoJugador1).valor());\n\t\t\t}\n\t\t\tif (copiaManoJugador2.size()>0) {\n\t\t\t\tSystem.out.println(\"Valor de la carta más baja de postre es \" + cartaMasBaja(copiaManoJugador2).valor());\n\t\t\t}\t\t\t\n\t\t\tif ((copiaManoJugador1.size() == 0) && (copiaManoJugador2.size()==0)) {\n\t\t\t\tSystem.out.println(\"ambas manos vacias\");\n\t\t\t\treturn true;\n\t\t\t} else if (cartaMasBaja(copiaManoJugador1).valor() > cartaMasBaja(copiaManoJugador2).valor()){\n\t\t\t\tSystem.out.println(\"carta más baja de jugador 1 tiene mayor valor que carta mas baja de jugador 2\");\n\t\t\t\treturn false;\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"carta más baja de jugador 2 tiene mayor valor que carta mas baja de jugador 1\");\t\t\t\t\n\t\t\t\treturn true;\n\t\t\t}\t\n\t\t}\n\t}", "title": "" }, { "docid": "86734ef8e013207da1a688a95e66cff1", "score": "0.56535935", "text": "@Override\r\n\tpublic void affichersolde(long mt) {\n\t\tSystem.out.println(\"Le solde de ce compte a été obtenu après avoir soustrait le salaire et les agios:\"+\" \"+mt);\r\n\t}", "title": "" }, { "docid": "82ba360e43ab2d46ff0b52c7409edbbe", "score": "0.5650257", "text": "public void demarrer() {\r\n\t isEnMarche=true;\r\n\t System.out.println(this.getMarque()+\" vient d'être allumé\");\r\n }", "title": "" }, { "docid": "1fd15524925051276c20e11b99dd56ba", "score": "0.56452215", "text": "public void hayColision() {\n\t\tObjetivoEnemigo enemigoImpactado;\n\t\tfor (Proyectil bala : balas) {\n\t\t\tenemigoImpactado = bala.colisione(enemigos);\n\t\t\tif (enemigoImpactado != null) {\n\t\t\t\tenemigoImpactado.setDestruido(true);\n\t\t\t\t// Si impacto actualizo el puntaje y los enemigos impactados\n\t\t\t\tInteger actPuntaje = jugadorAct.getPuntaje();\n\t\t\t\tInteger nuevoPuntaje;\n\t\t\t\tnuevoPuntaje = actPuntaje + 20;\n\t\t\t\tjugadorAct.setPuntaje(nuevoPuntaje);\n\n\t\t\t\tInteger actBDest = juegoAct.getbDestruidos();\n\t\t\t\tInteger nuevoBDest;\n\t\t\t\tnuevoBDest = actBDest + 1;\n\t\t\t\tjuegoAct.setbDestruidos(nuevoBDest);\n\t\t\t}\n\n\t\t}\n\t}", "title": "" }, { "docid": "42fa919ffbef3287399afd9b077d4403", "score": "0.5643833", "text": "public int darTamano()\n\t{\n\t\treturn peliculas.size();\n\t}", "title": "" }, { "docid": "da80fa92a9240fd290d26bf3cd8bcab7", "score": "0.5634842", "text": "private boolean isUsaNuovo() {\n /* variabili e costanti locali di lavoro */\n boolean usa = false;\n Campo campoParente;\n CampoVideo campoVideo;\n\n try { // prova ad eseguire il codice\n campoParente = this.getCampoParente();\n campoVideo = campoParente.getCampoVideo();\n if (campoVideo != null) {\n usa = campoVideo.isUsaNuovo();\n }// fine del blocco if\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n }// fine del blocco try-catch\n\n /* valore di ritorno */\n return usa;\n\n }", "title": "" }, { "docid": "d1f414208f55a4bd0dc37f4cfee09007", "score": "0.5633953", "text": "private static boolean comprobarLimite() {\n\n\t\tif (Vehiculo.numVehiculos < Vehiculo.maxVehiculos) {\n\t\t\tJOptionPane.showMessageDialog(null,\"Capacidad Total: \"+Vehiculo.maxVehiculos\n\t\t\t+\"\\nVehiculos Antes de la Nueva Creacion: \"+Vehiculo.numVehiculos);\n\t\t\treturn true;\n\t\t} else {\n\t\t\tJOptionPane.showMessageDialog(null, \"No se pueden crear más coches, límite alcanzado\");\n\t\t\treturn false;\n\t\t}\n\t}", "title": "" }, { "docid": "be9beb6575fe261c64bc472c34129e8e", "score": "0.5630354", "text": "private void notificar() {\n\t}", "title": "" }, { "docid": "2e446de980a02ba85480d23a08a4d497", "score": "0.5627697", "text": "@Override\n\t\tpublic void Acciones() {\n\t\t\tSystem.out.println(\"El tio-abuelo \"+tioabuelo+\" se dedica mayormente a dirigir a la familia Sánchez y encaminarlas en el buen camino.\");\n\t\t}", "title": "" }, { "docid": "dfb72dbc76ab515eedb4f9f87bf2916e", "score": "0.56265455", "text": "public boolean esVacia() {\n\r\n\t\treturn tamanoCola==0;\r\n\t}", "title": "" }, { "docid": "bc8b0a722c3401be771ea5d8faf72e7e", "score": "0.56237334", "text": "public boolean estOccupe(){\r\n return (piece != null);\r\n }", "title": "" }, { "docid": "0eb50b60f965999060bc272df9fba81f", "score": "0.5617267", "text": "private void datosNoche() {\n textoLargoDia.setText(R.string.texto_fin_dia);\n // sumamos 1 dia\n dia++;\n //cambio de valores boolean\n noche = false;\n mañana = true;\n // actualizamos todos los datos de la BD\n Jugador.actualizarDia(dia, cursorJugador.getLong(0));\n cursorJugador = Jugador.getJugadorPorId(cursorJugador.getLong(0));\n cursorJugador.moveToFirst();\n\n }", "title": "" }, { "docid": "e8a4911894d14c2eb1911bdd839b5fcb", "score": "0.56147045", "text": "private void LaSabe(){\r\n System.out.println(\"ESCOJE: 1.YA SABES CUAL ES, 2.OTRA OPORTUNIDAD, 3.TE RINDES \");\r\n int v=Leer.leerint();\r\n if(v==1){\r\n \t v=VerficarSiSeLaSabe();\r\n \t if(v==1){\r\n \t System.out.println(\"LISTO ADIVINASTE\\n\");\r\n \t Adivino=true;\r\n }\r\n else\r\n \t System.out.println(\"NADA !! SIGUE INTENTANDO TE QUEDAN \"+(OPORTUNIDADES-VAN)+\" OPORTUNIDADES\\n\"); \r\n }\r\n else if(v==3){\r\n \t System.out.println(\"LA FRASE ERA: \"+FRASE);\r\n \t System.out.println(\"Y TE QUEDABAN \"+(OPORTUNIDADES-VAN)+\" OPORTUNIDADES, PERDEDOR!!\");\r\n \t SeRinde=true;\r\n }\r\n }", "title": "" }, { "docid": "64f9efeaaae2a8cd3cd644704c2b5155", "score": "0.56142104", "text": "public void muestraEstado()\n {\n float gramosTotales = gramosProteinasIngeridos + gramosCarbohidratosIngeridos +\n gramosGrasasIngeridos;\n if (gramosTotales != 0) {\n System.out.println(\"Nombre : \"+ nombrePersona);\n System.out.println(\"Gramos de proteínas ingeridos: \"+ gramosProteinasIngeridos + \n \"(\"+(gramosProteinasIngeridos*100)/gramosTotales +\"%)\");\n System.out.println(\"Gramoos de carbohidratos ingeridos: \"+ gramosCarbohidratosIngeridos + \n \"(\"+(gramosCarbohidratosIngeridos*100)/gramosTotales +\"%)\");\n System.out.println(\"Gramos de grasas ingeridos: \"+ gramosGrasasIngeridos + \n \"(\"+(gramosGrasasIngeridos*100)/gramosTotales +\"%)\");\n System.out.println(\"Calorías ingeridas: \" + caloriasIngeridas);\n }\n else {\n System.out.println(\"Nombre : \"+ nombrePersona);\n System.out.println(\"Gramos de proteínas ingeridos: \"+ gramosProteinasIngeridos);\n System.out.println(\"Gramoos de carbohidratos ingeridos: \"+ gramosCarbohidratosIngeridos);\n System.out.println(\"Gramos de grasas ingeridos: \"+ gramosGrasasIngeridos);\n System.out.println(\"Calorías ingeridas: \" + caloriasIngeridas);\n }\n }", "title": "" }, { "docid": "a5d5476780da2002b62fcd706b4ea447", "score": "0.5611021", "text": "@Override\r\n\tpublic boolean isDone() {\n\t\t\r\n\t\tif (this.aktualna > this.koniec)\r\n\t\t\treturn true;\r\n\t\t\r\n\t\treturn false;\r\n\t}", "title": "" }, { "docid": "08362830adcc9370df5c8f0e443a1ff5", "score": "0.5604168", "text": "@Test\n public void ihmiskehoToimii() {\n Gladiaattori g = hg.luoGladiaattori(new Areena(15, 15, new Pelitilanne()));\n for (Ruumiinosa o : g.getKeho().getRaajat().values()) {\n assertTrue(tarkistaRuumiinosa(o));\n }\n assertTrue(tarkistaRuumiinosa(g.getKeho().getKeskivartalo()));\n assertTrue(tarkistaRuumiinosa(g.getKeho().getPaa()));\n }", "title": "" }, { "docid": "84c31a2ef69ab848222bec1784b74e35", "score": "0.55978864", "text": "@Override\n public boolean skontroluj(Dochodca dochodca) {\n int x = dochodca.getX();\n int y = dochodca.getY();\n String s = \"Recepcny dobehol na [\"+x+\",\"+y+\"]\";\n //sanca 30 ku 70, ze sa dochodca schova\n if(Math.random() < 0.3) {\n if (rovnakeMiestoAkoNaposledy(x, y))\n s += \", dochodca sa pravdepodobne schoval\";\n else {\n recepcny.setPoslednaKontrolaX(x);\n recepcny.setPoslednaKontrolaY(y);\n s += \", nebol tu dochodca\";\n }\n recepcny.getStarobinec().vypisDoGUI(s);\n return false;\n }\n //dochodca prichyteny pri uteku\n else {\n recepcny.setPoslednaKontrolaX(x);\n recepcny.setPoslednaKontrolaY(y);\n //manazer.pokarhaj(dochodca);\n s += \", uteceny dochodca bude zavedeny k manazerovi\";\n recepcny.getStarobinec().vypisDoGUI(s);\n if(dochodca.getPocUteceni() < 1)\n recepcny.getNaPokarhanie().add(dochodca);\n //manazer.pokarhaj(dochodca);\n else\n recepcny.getNaVyhodenie().add(dochodca);\n //manazer.vyhod(dochodca);\n return true;\n }\n }", "title": "" }, { "docid": "e0a8ef923b5efa7df308da8e587806fc", "score": "0.5596441", "text": "public void impresionEstado()\n {\n //Se comparan los estados de las partes para obtener el modo del robot\n if(ala_L.isEstado() && ala_R.isEstado())\n {\n if(pierna_L.isEstado())\n {\n System.out.println(\"El modo de VARIABLE FIGHTER VALKYRIE es : G.E.R.W.A.L.K.\");\n }\n else\n {\n System.out.println(\"El modo de VARIABLE FIGHTER VALKYRIE es : FIGHTER\");\n }\n }\n else\n {\n System.out.println(\"El modo de VARIABLE FIGHTER VALKYRIE es : BATTROID\");\n }\n //Se imprime si esta estacionado\n if(cabina.isEstacionado())\n {\n System.out.println(\"Se encuentra detenido\");\n }\n //Impresion altura de vuelo\n if (cabina.getAltura() > 0) {\n System.out.println(\"Vuelo a :\" + cabina.getAltura() + \" metros\");\n } else {\n System.out.println(\"VARIABLE FIGHTER VALKYRIE se encuentra en tierra \");\n }\n\n //Se imprime la velocidad en caso de no se este en modo battroid\n if (!cabeza.isEstado())\n {\n System.out.println(\"Velocidad :\" + cabina.getVelocidad() + \" km/h\");\n }\n //Se imprime si existe una pista\n if (cabina.isEstacionado() && cabina.getVelocidad() == 0 && !cabeza.isEstado())\n {\n System.out.println(\"Existe una pista de \" + pista.getLongitud() + \" metros\");\n }\n //Se imprime en que brazo se encuentra el arma\n if ( ( pierna_L.isEstado() && pierna_R.isEstado() && ala_L.isEstado() && ala_R.isEstado() ) || ( cabeza.isEstado()) )\n {\n if (brazo_L.isEstado_arma()) {\n System.out.println(\"Arma en brazo izquierdo\");\n }\n else\n {\n System.out.println(\"Arma en brazo derecho\");\n }\n }\n }", "title": "" }, { "docid": "e84b201f8145d1ba5c78c058c818e8f9", "score": "0.55929184", "text": "public void opciones() {\r\n System.out.println(\"Bienvenido!\");\r\n System.out.println(\" ESTAS SON LAS OPCIONES DISPONIBLES \");\r\n System.out.println(\"1.- INGRESAR DATOS DE ALUMNOS\");\r\n System.out.println(\"2.- INGRESAR NOTAS\");\r\n System.out.println(\"3.- INGRESAR DATOS DEL PADRE Y LA MADRE\");\r\n System.out.println(\"4.- MOSTRAR DATOS ALMACENADOS\");\r\n\r\n }", "title": "" }, { "docid": "8a646bda9c5805c35eac2025bb96c113", "score": "0.55850315", "text": "@Override\n\t\tpublic void Psicologia() {\n\t\t\tSystem.out.println(\"La psicología de Isabella se basa en la seguridad en sí misma y la poca expresión que posee en cuanto sus sentimientos.\");\n\t\t}", "title": "" }, { "docid": "73ce2aef33a45d478b99faa986935579", "score": "0.55799663", "text": "public void MostrarOrdenados(){\r\n System.out.println(\"\\nLos numeros de mayor a menor son: \");\r\n \r\n //en este primer bloque se compara para buscar el numero mayor\r\n if(numero1>numero2&&numero1>numero3){\r\n System.out.println(numero1);\r\n }else if(numero2>numero1&&numero2>numero3){\r\n System.out.println(numero2);\r\n }else if(numero3>numero1&&numero3>numero2){\r\n System.out.println(numero3);\r\n }else if(numero1==numero2&&numero1>numero3){\r\n System.out.println(numero1 + \" y \" + numero2 + \" son iguales\");\r\n }else if(numero1==numero3&&numero1>numero2){\r\n System.out.println(numero1 + \" y \" + numero3 + \" son iguales\");\r\n }else if(numero2==numero3&&numero2>numero1){\r\n System.out.println(numero2 + \" y \" + numero3 + \" son iguales\");\r\n }\r\n \r\n //en este segundo bloque se compara para buscar el segundo numero mayor\r\n if(numero1>numero2&&numero1<numero3){\r\n System.out.println(numero1);\r\n }else if(numero1<numero2&&numero1>numero3){\r\n System.out.println(numero1);\r\n }else if(numero2>numero1&&numero2<numero3){\r\n System.out.println(numero2);\r\n }else if(numero2<numero1&&numero2>numero3){\r\n System.out.println(numero2);\r\n }else if(numero3>numero1&&numero3<numero2){\r\n System.out.println(numero3);\r\n }else if(numero3<numero1&&numero3>numero2){\r\n System.out.println(numero3);\r\n }else if(numero1==numero2&&numero1<numero3){\r\n System.out.println(numero1 + \" y \" + numero2 + \" son iguales\");\r\n }else if(numero1==numero3&&numero1<numero2){\r\n System.out.println(numero1 + \" y \" + numero3 + \" son iguales\");\r\n }else if(numero2==numero3&&numero2<numero1){\r\n System.out.println(numero2 + \" y \" + numero3 + \" son iguales\");\r\n }\r\n \r\n //en este tercer bloque se compara para buscar el numero menor\r\n if(numero1<numero2&&numero1<numero3){\r\n System.out.println(numero1);\r\n }else if(numero2<numero1&&numero2<numero3){\r\n System.out.println(numero2);\r\n }else if(numero3<numero1&&numero3<numero2){\r\n System.out.println(numero3);\r\n }\r\n \r\n if(numero1==numero2&&numero1==numero3&&numero2==numero3){\r\n System.out.println(numero1 + \", \" + numero2 + \" y \" + numero3 + \" son iguales\");\r\n }\r\n \r\n }", "title": "" }, { "docid": "ecdc0cd85f26b19334f28d98f7d22c12", "score": "0.5576123", "text": "public void isTouzhu() {\n\t}", "title": "" }, { "docid": "26308d0e087f5d705936cc4c898f5326", "score": "0.55728525", "text": "@Test\n public final void testBlocJoueurVide_testMauvais() {\n Jeton j = Jeton.JOUEUR;\n assertFalse(j.estReconnu(\"\"));\n assertEquals(\"Syntaxe du joueur incorrecte (syntaxe de la forme JALL, JN ou EN où N est un entier positif)\",j.getMessageErreur());\n }", "title": "" }, { "docid": "217307147c4d0437db596cdd6876718c", "score": "0.556921", "text": "private void verificarInvariante( )\n\t{ \n\t\tassert receptor != null : \"Canal inválido\";\n\t\tassert config != null : \"Conjunto de propiedades inválidas\";\n\t\tassert adminJugadores != null : \"El administrador de resultados no debería ser null\";\n\t\tassert encuentros != null : \"La lista de encuentros no debería ser null\"; \n\t\tassert preguntas !=null : \"Las preguntas no pueden ser nulas\";\n\t}", "title": "" }, { "docid": "4da6a0ee235630b4c226aff9aa9cfe98", "score": "0.556585", "text": "private boolean check() {\r\n // check that post(v) is consistent with post() \r\n\t\t int r = 0; \r\n\t\t for (int v : post()) {\t \r\n\t\t\t if (post(v) != r) {\t \r\n\t\t\t\t StdOut.println(\"post(v) and post() inconsistent\");\t \r\n\t\t\t\t return false;\t \r\n\t\t\t } \r\n\t\t\t r++; \r\n\t\t }\r\n\t // check that pre(v) is consistent with pre( \r\n\t\t r = 0;\t \r\n\t\t for (int v : pre()) { \r\n\t\t\t if (pre(v) != r) {\t \r\n\t\t\t\t StdOut.println(\"pre(v) and pre() inconsistent\");\t \r\n\t\t\t\t return false;\t \r\n\t\t\t } \r\n\t\t\t r++;\t \r\n\t\t }\r\n\t\t return true;\t \r\n\t }", "title": "" }, { "docid": "08b53bb26e5bb01fd2fefa5727af2423", "score": "0.5558578", "text": "boolean hasStato();", "title": "" }, { "docid": "f3aa9c95b153f219c4f01dd4cb6fa371", "score": "0.555633", "text": "private void eOFim() {\r\n\t\tif (Mapa.TOTAL_BOLINHAS == 0) {\r\n\t\t\tif((tocandoCorrendo) || (tocandoEstrelinha))\r\n\t\t\t\tcorrendo.stop();\r\n\t\t\tif(tocandoEstrelinha)\r\n\t\t\t\testrelinha.stop();\r\n\t\t\tJanela.fimDoJogo = true;\r\n\t\t\tmensagemDeVitoria();\r\n\t\t}\r\n\r\n\t}", "title": "" }, { "docid": "d56c189d01ec37fa368e06777acbf68e", "score": "0.5548664", "text": "private void muovi(Point punto) {\n\t\t// Se ho cliccato su una mossa valida\n\t\tif (modello.getMosseDisponibili().contains(punto)) {\n\t\t\tConfigurazione conf = modello.getConfigurazioneCorrente().creaCopia();\n\n\t\t\tif (conf.a(modello.getPuntoSelezionato()) instanceof Pedone || conf.a(punto) instanceof Pedina) {\n\t\t\t\t// Se viene mosso un pedone oppure viene effettuata una mangiata\n\t\t\t\tnumeroMosseSenzaMangiateSenzaPedone = 0;\n\t\t\t} else {\n\t\t\t\tnumeroMosseSenzaMangiateSenzaPedone++;\n\t\t\t}\n\t\t\t\n\t\t\t// Eseguo la mossa\n\t\t\tconf.setPosizione(punto,conf.a(modello.getPuntoSelezionato()));\n\t\t\tconf.setPosizione(modello.getPuntoSelezionato(), new NessunaPedina());\n\n\t\t\t// Se la mossa riguarda un pedone e questo giunge al lato\n\t\t\t// opposto della scacchiera, viene promosso!\n\t\t\tif ((turno == Modello.BIANCO && punto.x == 0 && conf.a(punto) instanceof Pedone) ||\n\t\t\t\t\t(turno == Modello.NERO && punto.x == 7 && conf.a(punto) instanceof Pedone)) {\n\t\t\t\trecuperaPedina(conf, punto);\n\t\t\t}\n\n\t\t\t// Memorizzo la nuova configurazione e cambio il turno\n\t\t\tturno = !turno;\n\t\t\tmodello.setConfigurazione(conf);\n\n\t\t\t// Controllo Scacco / ScaccoMatto\n\t\t\tRegoleScacco sc = new RegoleScacco();\n\t\t\tif (sc.isScaccoMatto(conf, turno)) {\n\t\t\t\tthis.partitaFinita();\n\t\t\t} else if (sc.isScacco(conf, !turno)) {\n\t\t\t\tvisualizzatore.scacco(turno);\n\t\t\t}\n\t\t\t\n\t\t\t// Controllo 50 mosse senza movimento pedone o senza mangiate\n\t\t\tif (numeroMosseSenzaMangiateSenzaPedone == 50) {\n\t\t\t\tthis.partitaPatta(\"50 mosse senza muovere un pedone oppure senza mangiate\");\n\t\t\t}\n\t\t\t\n\t\t\t// Controllo se in campo ci sono solo i due re\n\t\t\tif (soloReInCampo(conf)) {\n\t\t\t\tthis.partitaPatta(\"Sono rimasti solo i Re sulla scacchiera\");\n\t\t\t}\n\t\t}\n\t\t\n\t\tpedinaSelezionata = false;\t\t\n\t\tvisualizzatore.resettaBordiCelle(modello.getMosseDisponibili());\n\t\tvisualizzatore.resettaBordoCella(modello.getPuntoSelezionato());\n\t}", "title": "" }, { "docid": "f063377a92b0d98d0a3e9a724e26bee5", "score": "0.5546325", "text": "@Test\n public void agregarUnEjercitoEnUnPaisAumentaLaCantidadDeFichasEnUno(){\n assertEquals(0, argentina.cantidadEjercitos());\n argentina.agregarEjercito();\n assertEquals(1, argentina.cantidadEjercitos());\n }", "title": "" }, { "docid": "addb3b43157f6aa4b543f1da17ff47dc", "score": "0.5543524", "text": "public boolean voititPelin() {\n return this.sankari.getSijaintiX() == 0 && this.sankari.getSijaintiY() == 0\n && this.sankari.omistaaEsineen(\"karkkilaatikko\");\n }", "title": "" }, { "docid": "bc0a74f9602820ccd9908b7b05ed874b", "score": "0.5541608", "text": "public int hayGanador (Tablero t){\r\n \r\n int contadorMaquina = 0, contadorUsuario = 0;//inicializa contadores de puntaje \r\n for(int fila =5;fila>=0;--fila){\r\n for(int columna=0;columna<=6;++columna){\r\n if(t.getMatriz()[fila][columna].equals(\"0\")) continue;\r\n \r\n //Recorre la matriz hacia la derecha para ir verificando si hay iguales \r\n //Se va sumando a los contadores y agregando al registro para cuando alguno gano tener donde se formo la 4 en linea \r\n //Devuelve 1 si gano el usuario y 2 si gano la compu\r\n if(columna<=3){//Esto se da porque si la columna es 4,5,6 no se puede formar las 4 \r\n for(int k=0;k<4;++k){ \r\n if(t.getMatriz()[fila][columna+k].equals(\"2\")) {\r\n contadorMaquina++;\r\n registro2[k]=(String.valueOf(fila)+\",\"+String.valueOf(columna+k));\r\n }\r\n else if(t.getMatriz()[fila][columna+k].equals(\"1\")) {\r\n contadorUsuario++;\r\n registro1[k]=(String.valueOf(fila)+\",\"+String.valueOf(columna+k));\r\n }\r\n else break; \r\n }\r\n //Comparaciones para saber si alguno de los dos gano \r\n if(contadorMaquina==4){\r\n return 2;\r\n } else if (contadorUsuario==4){\r\n return 1;\r\n }\r\n contadorMaquina = 0; contadorUsuario = 0;\r\n } \r\n \r\n //Recorre la matriz hacia arriba para ir verificando si hay iguales \r\n //Se va sumando a los contadores y agregando al registro para cuando alguno gano tener donde se formo la 4 en linea \r\n //Devuelve 1 si gano el usuario y 2 si gano la compu\r\n if(fila>=3){//Si es menor que 3 no se puede formar el 4 en linea, no vale la pena validar\r\n for(int k=0;k<4;++k){\r\n \r\n if(t.getMatriz()[fila-k][columna].equals(\"2\")) {\r\n contadorMaquina++;\r\n registro2[k]=(String.valueOf(fila-k)+\",\"+String.valueOf(columna));//Va guardando en el registro \r\n }\r\n else if(t.getMatriz()[fila-k][columna].equals(\"1\")) {\r\n contadorUsuario++;\r\n registro1[k]=(String.valueOf(fila-k)+\",\"+String.valueOf(columna));\r\n }\r\n else break;\r\n }\r\n if(contadorMaquina==4){\r\n return 2;\r\n \r\n } else if (contadorUsuario==4){\r\n return 1;\r\n }\r\n contadorMaquina = 0; contadorUsuario = 0;\r\n } \r\n \r\n //Recorre la matriz hacia la diagonal arriba derecha para ir verificando si hay iguales \r\n //Se va sumando a los contadores y agregando al registro para cuando alguno gano tener donde se formo la 4 en linea \r\n //Devuelve 1 si gano el usuario y 2 si gano la compu\r\n if(columna<=3 && fila>= 3){\r\n for(int k=0;k<4;++k){\r\n if(t.getMatriz()[fila-k][columna+k].equals(\"2\")) {\r\n contadorMaquina++;\r\n registro2[k]=(String.valueOf(fila-k)+\",\"+String.valueOf(columna+k));\r\n }\r\n else if(t.getMatriz()[fila-k][columna+k].equals(\"1\")) {\r\n contadorUsuario++;\r\n registro1[k]=(String.valueOf(fila-k)+\",\"+String.valueOf(columna+k));\r\n }\r\n else break;\r\n }\r\n if(contadorMaquina==4){\r\n return 2;\r\n } else if (contadorUsuario==4){\r\n return 1;\r\n }\r\n contadorMaquina = 0; contadorUsuario = 0;\r\n }\r\n \r\n //Recorre la matriz hacia la diagonal izquierda para ir verificando si hay iguales \r\n //Se va sumando a los contadores y agregando al registro para cuando alguno gano tener donde se formo la 4 en linea \r\n //Devuelve 1 si gano el usuario y 2 si gano la compu\r\n if(columna>=3 && fila>=3){\r\n for(int k=0;k<4;++k){\r\n if(t.getMatriz()[fila-k][columna-k].equals(\"2\")) {\r\n registro2[k]=(String.valueOf(fila-k)+\",\"+String.valueOf(columna-k));\r\n contadorMaquina++;\r\n }\r\n else if(t.getMatriz()[fila-k][columna-k].equals(\"1\")) {\r\n contadorUsuario++;\r\n registro1[k]=(String.valueOf(fila-k)+\",\"+String.valueOf(columna-k));\r\n }\r\n else break;\r\n } \r\n if(contadorMaquina==4){\r\n return 2; \r\n }\r\n \r\n else if (contadorUsuario==4){\r\n return 1;\r\n }\r\n //Reiniciar contadores\r\n contadorMaquina = 0; contadorUsuario = 0;\r\n } \r\n }\r\n }\r\n \r\n //Valida si no hay empate\r\n for(int j=0;j<7;++j){\r\n if(t.getMatriz()[0][j].equals(\"0\"))return -1;\r\n }\r\n //El juego se empato\r\n return 0;\r\n }", "title": "" }, { "docid": "66e9929503332fb37239d81292b9ad8e", "score": "0.55415726", "text": "private boolean verificaCamposPreenchidos() {\n return !(txtSenha.getText().isEmpty() || txtUsuario.getText().isEmpty());\n }", "title": "" }, { "docid": "4c274a590e5dc65a088d7b369e0f9fd4", "score": "0.55398613", "text": "private boolean isExtra() {\n /* variabili e costanti locali di lavoro */\n boolean extra = false;\n int codiceRiga = 0;\n int codiceLink = 0;\n\n try { // prova ad eseguire il codice\n codiceRiga = this.getLista().getRecordSelezionato();\n\n codiceLink = moduloRMO.query().valoreInt(campoRMOlinkRMP, codiceRiga);\n\n extra = (codiceLink == 0 ? true : false);\n\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n } // fine del blocco try-catch\n\n /* valore di ritorno */\n return extra;\n }", "title": "" }, { "docid": "23e69e6fdacb297117a0f5cee328f5f3", "score": "0.5534452", "text": "public boolean submetodo(){\n\t\tsubcrono=new Crono();\n\t\tsubcrono.start();\n\t\t\n\t\tthis.lenght2 = 30;\n\t\tint i = 0;\n\t\twhile (i < lenght2 & !canceled) {\n\t\t\testado2 = \"Ejecutando Retardo Aleatorio \";\n\t\t\tcurrent2 = i;\n\t\t\ttry {\n\t\t\t\t//Un retardo aleatorio\n\t\t\t\tnew Thread().sleep(new Double(Math.random()*1000).longValue());\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\ti++;\n\t\t}\n\t\tboolean ok=this.otroMetodo();\n\t\treturn ok;\t\n\t}", "title": "" }, { "docid": "1cd9aa5b97e911b772cb0b1bbd35382e", "score": "0.553153", "text": "public boolean erTom()\n {\n return storrelse() == 0;\n }", "title": "" }, { "docid": "be669d3829b698c316619973e30eb728", "score": "0.553058", "text": "public void ryhmitaSitsaajat() {\n SetListat();\n for (Sitsaaja sitsaaja : sitsaajatPisteytettyna) {\n if (onkoSitsaajaJoPlassattu(sitsaaja)) continue;\n RyhmanSuosituinSitsaaja(sitsaaja);\n\n }\n }", "title": "" }, { "docid": "75bd68cba14a953373cbb16b9f8317e4", "score": "0.55296344", "text": "public boolean ajout_batiment_autorise(){\n\t\treturn type != Type.VOLCAN && nb_b == 0 && type != Type.VIDE;\n\t}", "title": "" }, { "docid": "81b81924de8d14b4b56887fb7b2c590c", "score": "0.5527596", "text": "@Override\n\t\tpublic void Acciones() {\n\t\t\tSystem.out.println(\"David Martínez es el hermano menor de Ricardo y considerado como uno de los tios de la familia, se dedica a ellos con mucho amor y sirve de soporte para el patriarcada y el padre.\");\n\t\t}", "title": "" }, { "docid": "6c9c48fbf000ba3100edb4f2f54ad3e9", "score": "0.5518545", "text": "public boolean ehVazioPilha() {\n\t\treturn (this.quantPratos == 0);\n\t}", "title": "" }, { "docid": "4adfb5fa45d514b59d0407c865487e3d", "score": "0.5516915", "text": "private boolean hayArchivoControl(List listMultiLoteSize) {\n\t\tlong sum=0;\n\t\tfor(int x=0;x<listMultiLoteSize.size();x++){\n\t\t\t long [] listaArchivosSize = (long[])listMultiLoteSize.get(x);\n\t\t\t for(int i=0; i< listaArchivosSize.length;i++){\n\t\t\t\t sum+=listaArchivosSize[i];\n\t\t\t }\n\t\t}\n\t\tlog.debug(\"hayArchivoControl \" + (sum>0?true:false));\n\t\treturn sum>0?true:false;\n\t}", "title": "" }, { "docid": "26fc37207846ecf1d54a0c29c64cc7af", "score": "0.551629", "text": "public boolean isUsaNonSpecificato() {\n /* variabili e costanti locali di lavoro */\n boolean usa = false;\n Campo campoParente;\n CampoVideo campoVideo;\n\n try { // prova ad eseguire il codice\n campoParente = this.getCampoParente();\n campoVideo = campoParente.getCampoVideo();\n if (campoVideo != null) {\n usa = campoVideo.isUsaNonSpecificato();\n }// fine del blocco if\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n }// fine del blocco try-catch\n\n /* valore di ritorno */\n return usa;\n }", "title": "" } ]
50813809115e7ab7e5c080c98e71e9c4
set off an event
[ { "docid": "2e08d01c92af322eddddbe428e278c07", "score": "0.0", "text": "public boolean freePearl(final PrisonPearl pp, String reason) {\n\t\tif (!prisonPearlEvent(pp, PrisonPearlEvent.Type.FREED)) {\n\t\t\treturn false;\n\t\t}\n\t\tstorage.removePearl(pp, reason); // delete the pearl first\n\n\t\tif (PrisonPearlConfig.getShouldEnableAltsManager()) {\n\t\t\t// unban alts and players if they are allowed to be; bukkit requires kicks be synchronous\n\t\t\tBukkit.getScheduler().runTask(PrisonPearlPlugin.getInstance(), new Runnable() {\n\n\t\t\t\t@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\tbanManager.checkBan(pp.getImprisonedId());\n\t\t\t\t\tbanManager.checkBanForAlts(pp.getImprisonedId());\n\t\t\t\t}\n\t\t\t\t\n\t\t\t});\n\t\t}\n\t\tMercuryManager.updateLocationToMercury(pp, PrisonPearlEvent.Type.FREED);\n\t\t\n\t\tPrisonPearlPlugin.getSummonManager().removeSummon(pp);\n\t\t\n\t\tPlayer player = pp.getImprisonedPlayer();\n\t\tupdateAttachment(player);\n\t\tif (player != null) {\n\t\t\tLocation currentLoc = player.getLocation();\n\t\t\tif (!player.isDead() && currentLoc.getWorld() == getImprisonWorld()) {\n\t\t\t\trespawnPlayerCorrectly(player, pp);\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t// Log the free'ing PrisonPearl event with coordinates.\n\t\tPlayer imprisoner = pp.getHolderPlayer();\n\t\tString playerLoc = player != null ? serializeLocation(player.getLocation()) : \"[???]\";\n\t\tString message = String.format(\"Something weird has happened with the pearl \" + pp.getImprisonedName() + \", were they maybe freed by pearl feeding?\");\n\t\t\n\t\tif (imprisoner != null && player != null) {\n\t\t\tString imprisonerLoc = serializeLocation(imprisoner.getLocation());\n\t\t\tmessage = String.format(\"%s [%s] was freed by %s [%s]\", \n\t\t\t\t\tplayer.getDisplayName(), playerLoc, imprisoner.getDisplayName(), imprisonerLoc);\n\t\t} \n\t\t\n\t\tif (imprisoner != null) { \n\t\t\t// immediately update pearl in inventory\n\t\t\tPlayerInventory pi = imprisoner.getInventory();\n\t\t\tInteger location = null;\n\t\t\tfor(Entry<Integer, ? extends ItemStack> i : pi.all(Material.ENDER_PEARL).entrySet()) {\n\t\t\t\tif (this.isItemStackPrisonPearl(pp, i.getValue())) {\n\t\t\t\t\tlocation = i.getKey();\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (location != null) {\n\t\t\t\tpi.clear(location);\n\t\t\t\tpi.addItem(new ItemStack(Material.ENDER_PEARL, 1));\n\t\t\t\timprisoner.updateInventory();\n\t\t\t}\n\t\t}\n\t\t\n\t\tPrisonPearlPlugin.log(message);\n\t\t\n\t\tif (player != null) {\n\t\t\tplayer.sendMessage(\"You've been freed!\");\n\t\t}\n\t\treturn true;\n\t}", "title": "" } ]
[ { "docid": "60682006232cee348e5e2d354765f0a1", "score": "0.7092655", "text": "@Override\n public void off() {\n }", "title": "" }, { "docid": "7fa0dcc694d136a0ec320fcaabb0a1dd", "score": "0.6888367", "text": "public void off() {\n\t\t\n\t}", "title": "" }, { "docid": "6aa778ca962630186a692d9657af3834", "score": "0.6856997", "text": "@Override\r\n\tpublic void off() {\n\t\t\r\n\t}", "title": "" }, { "docid": "5e47ed4e9f2f537bf1e829e217925028", "score": "0.6820923", "text": "public void setOffAction(Runnable offAction)\r\n\t{\r\n\t\tthis.offAction = offAction;\r\n\t}", "title": "" }, { "docid": "1bf041dce9748353844e3e6beb38d2f1", "score": "0.6557221", "text": "public void putOff(){\n this.state = false ;\n }", "title": "" }, { "docid": "c49832712c660ee1abca08c2ee7ff9da", "score": "0.64913934", "text": "public void onOffTrack() {\n\t\t\n\t\t// Write your logic here\n\t}", "title": "" }, { "docid": "dc7525432f8863733ea1a9e7aa3f8027", "score": "0.6385795", "text": "public void setEvent(Event event);", "title": "" }, { "docid": "d687a8116ccfb76c2eff136c47af1c22", "score": "0.6344411", "text": "private void btnOffActionPerformed(ActionEvent e) {\n setAutomaticStart(false);\n }", "title": "" }, { "docid": "e42e04e06e475df89e09ccc4c3a24707", "score": "0.62268007", "text": "@Override\n\t\t\tpublic void turnOff() {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "e42e04e06e475df89e09ccc4c3a24707", "score": "0.62268007", "text": "@Override\n\t\t\tpublic void turnOff() {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "6bb09e9ddc90cf4bfab92fd92101058b", "score": "0.6220954", "text": "public void turnOff() {\n isOff = true;\n }", "title": "" }, { "docid": "18ed6a0dfdc20998fb8312f567e97a14", "score": "0.619751", "text": "@Override\n\tpublic void takeOff() {\n\n\t}", "title": "" }, { "docid": "0ad1ef704a54f2c04fc1d6ec2c810b68", "score": "0.617081", "text": "@Override\n\tpublic void turnOff() {\n\n\t}", "title": "" }, { "docid": "d7182354e38bd24be664375fb3c02eef", "score": "0.61648077", "text": "@Override\n\tpublic void turnOff() {\n\t\t\n\t}", "title": "" }, { "docid": "a9c6888f2aae6c1985e8ccb085a768d6", "score": "0.61005515", "text": "public void onOff(View view) {\n\n\n }", "title": "" }, { "docid": "8230a582132fa00d5dc29669d4c39935", "score": "0.6100317", "text": "void clearEvents();", "title": "" }, { "docid": "df3b4572c33794a0edd32e6224449505", "score": "0.6094465", "text": "public void unsetOnmousedown()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_attribute(ONMOUSEDOWN$32);\n }\n }", "title": "" }, { "docid": "1cf66969914e36b475c83e626dc95cf9", "score": "0.6066808", "text": "@Override\r\n\tpublic void trunoff() {\n\r\n\t}", "title": "" }, { "docid": "a7adae88c58f8319a9610f2267e5af32", "score": "0.60546046", "text": "public void unsetOnmouseup()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_attribute(ONMOUSEUP$34);\n }\n }", "title": "" }, { "docid": "815a6737c60abbfed41c7bb9ef0ca79b", "score": "0.60402757", "text": "public void endEvent(){\r\n this.ongoing = false;\r\n }", "title": "" }, { "docid": "ac4ce375dee8f629e3b4a0f4e5445872", "score": "0.6038336", "text": "public void onDisable() {\n\t\tEventBus.getDefault().unregister(this);\n\t}", "title": "" }, { "docid": "5a25753add17fb78131396b8378208f1", "score": "0.60274786", "text": "public void onDisabled() {\n this.inputFormat = null;\n this.audioTrackNeedsConfigure = true;\n this.waitingForKeys = false;\n try {\n setSourceDrmSession(null);\n releaseDecoder();\n this.audioSink.reset();\n } finally {\n this.eventDispatcher.disabled(this.decoderCounters);\n }\n }", "title": "" }, { "docid": "b28a623df47adbd9a96b18f9930a22ac", "score": "0.6020845", "text": "@Generated(hash = 1830105409)\n public synchronized void resetEvents() {\n events = null;\n }", "title": "" }, { "docid": "c7f353cbe75197042977bcfb0be862bc", "score": "0.5964956", "text": "public void unsetIgnoreforevents()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n get_store().remove_attribute(IGNOREFOREVENTS$26);\r\n }\r\n }", "title": "" }, { "docid": "7601e6a49daf1f4367367b47b37e5ddd", "score": "0.5961887", "text": "@Override\n\tpublic void wearOff() {\n\n\t}", "title": "" }, { "docid": "a8cf4d0e46e95e4875efe86bfdcfc370", "score": "0.5960795", "text": "public void unsetOnclick()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_attribute(ONCLICK$28);\n }\n }", "title": "" }, { "docid": "9abdbc7375e1a8cf6826c772720a3829", "score": "0.5942074", "text": "protected void clearOutEvents() {\r\n\t}", "title": "" }, { "docid": "9abdbc7375e1a8cf6826c772720a3829", "score": "0.5942074", "text": "protected void clearOutEvents() {\r\n\t}", "title": "" }, { "docid": "8a7f82d5fa28243ad577b138a9e6ac5b", "score": "0.5924802", "text": "void unbind();", "title": "" }, { "docid": "02a0e1879e3bbeec8fd24ab513e5b669", "score": "0.59163433", "text": "public void off(){\n pin.low();\n System.out.println(\"Buzzer should be: OFF\");\n }", "title": "" }, { "docid": "841e93b3ee5de02bcfa2556c99ccff68", "score": "0.58899987", "text": "public void onDisable() { }", "title": "" }, { "docid": "1ad368c10f83b8a9947f5c61e466d0ac", "score": "0.5882796", "text": "public void setEvent(Event event) {\n this.event = event;\n }", "title": "" }, { "docid": "c2add6c63cd75fe9d05ab727f88cf101", "score": "0.58505034", "text": "public abstract void turnOff();", "title": "" }, { "docid": "adce9eec322085322b817d0e127161ea", "score": "0.5849053", "text": "public void unsetOnkeypress()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_attribute(ONKEYPRESS$42);\n }\n }", "title": "" }, { "docid": "214396e18da57c89e73b5511506cb290", "score": "0.5846459", "text": "public void unsetOnkeydown()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_attribute(ONKEYDOWN$44);\n }\n }", "title": "" }, { "docid": "ab349420b9c817f661ee0a6d7ca47d47", "score": "0.5832222", "text": "@Override\n\tpublic Boolean takeOff() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "b6c0c8af76527b3047faeb71040a4c5b", "score": "0.58258975", "text": "public void turnOff();", "title": "" }, { "docid": "071c2014d2048c2aa5444bfdd6c14073", "score": "0.58165115", "text": "public void setEvent(Event event) {\n this.event = event;\n }", "title": "" }, { "docid": "071c2014d2048c2aa5444bfdd6c14073", "score": "0.58165115", "text": "public void setEvent(Event event) {\n this.event = event;\n }", "title": "" }, { "docid": "071c2014d2048c2aa5444bfdd6c14073", "score": "0.58165115", "text": "public void setEvent(Event event) {\n this.event = event;\n }", "title": "" }, { "docid": "dc4f5d010eaa9dd82d75d06966df498c", "score": "0.58077806", "text": "public void setUseMauiOneEvent (boolean aMauiOneEvent);", "title": "" }, { "docid": "83ac6f22c8e2c3dd95df248a74eeecc6", "score": "0.58071136", "text": "private void handleNotifyScreenTurnedOff() {\n synchronized (this) {\n Log.d(\"KeyguardViewMediator\", \"handleNotifyScreenTurnedOff\");\n this.mDrawnCallback = null;\n }\n }", "title": "" }, { "docid": "179836bc3d7814499fe20a53a663e9dc", "score": "0.57986337", "text": "void resetPreventClickEvent() {\n\t\tpreventClickEvent = false;\n\t}", "title": "" }, { "docid": "cef5b1229fbf8b40ffb8d4311a692840", "score": "0.5793791", "text": "public void onDisable() {\n\t}", "title": "" }, { "docid": "cef5b1229fbf8b40ffb8d4311a692840", "score": "0.5793791", "text": "public void onDisable() {\n\t}", "title": "" }, { "docid": "dbe9b4e053b7d8a24f0a0a0c761d3d42", "score": "0.57923603", "text": "public void setDown() {}", "title": "" }, { "docid": "198afa1f6424582720fe4597691a18c7", "score": "0.57803345", "text": "public void onDisable() {\n }", "title": "" }, { "docid": "35a7189357d5b3a3e9726f50b9bb45d9", "score": "0.57779175", "text": "public void off() {\n\t\tisOn = false;\n\t\tampEnd = Properties.AMPLITUDE;\n\t\tfEnd = p.frameCount;\n\t\tsustain = Math.abs(ampStart-ampEnd)/(fEnd-fStart);\n\t}", "title": "" }, { "docid": "2626c3c72fc629218d63a0333a86817e", "score": "0.5775568", "text": "void onDisable();", "title": "" }, { "docid": "c84edd56d22c731a5b7e191a9153dd74", "score": "0.5774937", "text": "public abstract void setEnableEvents(boolean enable);", "title": "" }, { "docid": "fdfdddb3ce013b84f6a2144c63dd181f", "score": "0.5761529", "text": "public void onDisable();", "title": "" }, { "docid": "765a0e0612c86366e0528041aaa0401a", "score": "0.5760172", "text": "public void noteOff(){\n if(isOn){\n setScaleX(1);\n setScaleY(1);\n isOn = false;\n if(OptionsHolder.isEndNotesOnKeyRelease()){\n midiChannel.noteOff(getNotePlayed());\n }\n setBackground(new Background(new BackgroundFill(getOffColor(), PANE_RADII, null)));\n setEffect(new DropShadow(DS_RADII, getOffColor()));\n }\n }", "title": "" }, { "docid": "f6925273bb123e7dfb7c8ee096c7c8fb", "score": "0.57589763", "text": "protected void setOmniOff(Track track, int channel) throws InvalidMidiDataException {\n\t\tShortMessage mm = new ShortMessage();\n\t\tmm.setMessage(ShortMessage.CONTROL_CHANGE, channel, 0x7C, 0x00);\n\t\ttrack.add(new MidiEvent(mm, 0L));\t\t\t\n\t}", "title": "" }, { "docid": "177ca7f98d82c76e41966297f513394f", "score": "0.5755366", "text": "public void unsetOndblclick()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_attribute(ONDBLCLICK$30);\n }\n }", "title": "" }, { "docid": "4a53760920a07d0558cffbec21e5fbb0", "score": "0.5749967", "text": "public void unsetOnkeyup()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_attribute(ONKEYUP$46);\n }\n }", "title": "" }, { "docid": "bb3db29fc854a8b3c135e4d2bec8b071", "score": "0.5735723", "text": "public void reset() {\n jb.setText(offString); //wieder auf off setzen\n pushed=false;\n }", "title": "" }, { "docid": "a2562e1dbb22ed4d625fdad0d52f3d84", "score": "0.57353437", "text": "public void off() {\n\t\tled.setAllLeds((short)0, (short)0, (short)0);\n\t\tsetState(false);\n\t}", "title": "" }, { "docid": "353c086f86e9296d9fb7f70b621a03e2", "score": "0.5727058", "text": "public abstract void onDisabling();", "title": "" }, { "docid": "b148f9caf0da5876837533ac9432cddb", "score": "0.57244295", "text": "public void resetEventsPanel() {\n\t\teventTypeComboBox.setSelectedItem(Constants.NONE);\n\t\tactionList.clearSelection();\n\t}", "title": "" }, { "docid": "90319b71d65f4deb7f5ec1bce6f3af0e", "score": "0.5716615", "text": "public void off(String name) throws CallError, InterruptedException{\n if (isAsynchronous)\n service.call(\"off\", name);\n else\n service.call(\"off\", name).get();\n }", "title": "" }, { "docid": "85599b1d0eaae1934dd815f50ba4b648", "score": "0.57141286", "text": "public void setEvent(Event event) {\n\t\tthis.currentEvent = event;\n\t}", "title": "" }, { "docid": "56d07666e188d726b62b32ddb18957ac", "score": "0.5704799", "text": "public void onCancel() {\n\t\tunexpectedEvent();\n\t}", "title": "" }, { "docid": "c2e5c037e7af6fcad79c41a766e4b7ad", "score": "0.57045585", "text": "public void onDisable() {\r\n\t\r\n\t}", "title": "" }, { "docid": "0cb69313aed9539a3a815dbc14db51fc", "score": "0.56794304", "text": "public void onDisable() {\n\n }", "title": "" }, { "docid": "b2f146d819e664ebff19af07baa5cac1", "score": "0.56480724", "text": "protected void onDisable() {}", "title": "" }, { "docid": "46ce8ce89db817ccdfa50534daa8c0cd", "score": "0.5647662", "text": "@Override\n\tpublic void turnOff() {\n\t\tSystem.out.println(\"syntv : turn Off\");\n\t}", "title": "" }, { "docid": "23dba77d5831a94a6db920e07578240e", "score": "0.5629945", "text": "public void setOnDisabled(final EventHandler<PermissionEvent> e) {\n if(e == null) removeEventHandler(PermissionEvent.PERMISSION_DISABLED);\n else addEventHandler(PermissionEvent.PERMISSION_DISABLED, e);\n }", "title": "" }, { "docid": "6d51510e034baa4bd7c9f17536a8658f", "score": "0.56266993", "text": "void unsetTagOff();", "title": "" }, { "docid": "15d15c498eb356a8dfa7e995ec1ba291", "score": "0.5623884", "text": "public void removeEvent(Event e)\n {\n clock.removeEvent(e);\n }", "title": "" }, { "docid": "92f3d54aeaa56bdad37df1e84b6275c8", "score": "0.56063783", "text": "public void fireWhenDisabled(State s, int inum);", "title": "" }, { "docid": "370590012cac42a12ec6165c42ee34ec", "score": "0.56004095", "text": "public void TurnOffTV() {\r\n\t\tstate = false;\r\n\t}", "title": "" }, { "docid": "3daa099e917822473855a2a87454c03f", "score": "0.5599263", "text": "protected void mo3985b() {\n setOnClickListener(null);\n if (getVideoView() != null) {\n getVideoView().getEventBus().m6832b(this.f19229c, this.f19228b, this.f19227a);\n }\n super.mo3985b();\n }", "title": "" }, { "docid": "c2212f12c03ec2937c3e08763e75791c", "score": "0.5570488", "text": "private void offState() {\n for (Sensor sensor: Controller.getSensors()) {\n sensor.setStatus(Device.DEVICE_STATUS.DEACTIVATED);\n }\n for (Alarm alarm: Controller.getAlarms()) {\n alarm.setStatus(Device.DEVICE_STATUS.DEACTIVATED);\n }\n if(offButton.isSelected()) {\n alarmState.setText(\"Off\");\n\n\n }\n }", "title": "" }, { "docid": "1c2b31c9340dd872300b4287d441e256", "score": "0.55611515", "text": "@Override\n public void onStop() {\n super.onStop();\n EventRepository.get().updateEvent(event);\n }", "title": "" }, { "docid": "680004f7f0cf08bd4df7e8dbae716526", "score": "0.5556189", "text": "@Override\n public void fireWhenDisabled(State s, int inum)\n {\n // do nothing.\n }", "title": "" }, { "docid": "acbc2574ff6f0049bbdcc4c2518701da", "score": "0.55520153", "text": "public void setOnMouseUp(String onMouseUp);", "title": "" }, { "docid": "bdb5a6f9c49fe2d5ec6c7a77bcb02032", "score": "0.5550088", "text": "public void poweroff() {\r\n run = false;\r\n }", "title": "" }, { "docid": "b63140b5c653ceef32e25210c466eecd", "score": "0.55434895", "text": "public void untap() {\n\t\ttapped = false;\n\t}", "title": "" }, { "docid": "b35663c7bf9d14a4cdcd53a586b6746e", "score": "0.55388606", "text": "private void m6402b() {\n if (this.f6013b != null) {\n this.f6013b.cancel();\n this.f6013b.setTarget(null);\n this.f6013b = null;\n this.f6015d.clearAnimation();\n }\n }", "title": "" }, { "docid": "f673df2f17b7cc07eb9b9bf54d037c8a", "score": "0.55374974", "text": "public boolean removeEvent(MyEvent event);", "title": "" }, { "docid": "e5af47588e58a8ea10dce2948af5bf06", "score": "0.552694", "text": "public void unsetOnmouseout()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_attribute(ONMOUSEOUT$40);\n }\n }", "title": "" }, { "docid": "8950ccd5e1bbe9cd902c478e41edce73", "score": "0.5524966", "text": "protected void clearOutEvents() {\n\t\tsCITrafficLight.clearOutEvents();\n\t}", "title": "" }, { "docid": "071a44c513b77071aed1e35d0faaf8f4", "score": "0.5501136", "text": "public void pedalDown() {\r\n synthChannel.controlChange(MusicManager.PEDAL_ID, MusicManager.PEDAL_ON);\r\n }", "title": "" }, { "docid": "4880a407ae5abc9bbd2c6115f0cc7416", "score": "0.5465106", "text": "void setNodeDecrementEvent(InputEvent e);", "title": "" }, { "docid": "683ce09497bec432cef912eab7a0d9c8", "score": "0.5458429", "text": "public it.unipd.dstack.butterfly.consumer.avro.EventWithUserContact.Builder clearEvent() {\n event = null;\n eventBuilder = null;\n fieldSetFlags()[0] = false;\n return this;\n }", "title": "" }, { "docid": "72845acc80223b76663440880b4abf32", "score": "0.5455683", "text": "public void reset() { \n setRegistHandlerEnabled(false);\n setDateHandlerEnabled(false);\n setUnreadHandlerEnabled(false);\n setOutOfMUCHandlerEnabled(false);\n setOfflineMUCHandlerEnabled(false);\n setSecondDeviceHandlerEnabled(false);\n }", "title": "" }, { "docid": "824cd592c04a6c62677f134fcd28a086", "score": "0.54527646", "text": "public void off() {\n doubleSolenoid.set(Value.kOff);\n }", "title": "" }, { "docid": "9ac9a7f21e31dedddad687d7616313f4", "score": "0.54457384", "text": "@Override\n public void triggerEvent() {\n sendingControl.removeControlTarget(device_name);\n // Write your DynamicControl code above this line\n }", "title": "" }, { "docid": "96a7893c56b751da370ced603dd5e419", "score": "0.544551", "text": "void onEvent(Event e);", "title": "" }, { "docid": "1013887312ccd5f53feea0dd017f5e24", "score": "0.54452205", "text": "public void disableMouseEvents() {\n this.parent.unregisterMethod(\"mouseEvent\", this);\n }", "title": "" }, { "docid": "ff2ed216bee728d0ec4ee96a2ffda473", "score": "0.5434748", "text": "public void unmonitor(){\n if (getObservingModule() != null){\n getObservingModule().getMonitoredEvents().remove(this);\n }\n }", "title": "" }, { "docid": "3124e53c1057b29aac2aefae46d548e2", "score": "0.54315263", "text": "@Override\n\tpublic void swith_off_all() {\n\t}", "title": "" }, { "docid": "1de653ab934cbe35849018c32d7a6ba8", "score": "0.54314387", "text": "public void disable(){\n \tdrive(0,0,0,0);\n }", "title": "" }, { "docid": "32323428f35ea40235025bca76fd8f46", "score": "0.54288834", "text": "protected void resetTouch() {\n\n }", "title": "" }, { "docid": "cfd6d33e15188a8a9428d9963e0b09a2", "score": "0.5423139", "text": "public void onLeave() {\n\t\tunexpectedEvent();\n\t}", "title": "" }, { "docid": "4882e50f5f60bbb7fbd02fe65a58214e", "score": "0.54190886", "text": "public samples.clickstream.avro.ClickEvent.Builder clearEventType() {\n event_type = null;\n fieldSetFlags()[3] = false;\n return this;\n }", "title": "" }, { "docid": "77a0995d88d4763083dffdf3573b47bd", "score": "0.5417473", "text": "public void stopListening(){\n try {\n canOpen.getObjDict().getSubEntry(index,subindex).removeListener(this);\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "d4a9a198466ba64a58371f7acbd88c02", "score": "0.54105", "text": "public Builder clearEvent() {\n \n event_ = getDefaultInstance().getEvent();\n onChanged();\n return this;\n }", "title": "" }, { "docid": "65fc34e14675836e0ebe405817ed701b", "score": "0.5406278", "text": "private void WriteModeOff() {\n writeMode = false;\n nfcAdapter.disableForegroundDispatch(WriteActivity.this);\n }", "title": "" }, { "docid": "81c98cd465c285011057d7f4bf9d2c91", "score": "0.5406159", "text": "public void unsetOnmousemove()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_attribute(ONMOUSEMOVE$38);\n }\n }", "title": "" }, { "docid": "07745d496fed9482c72ce7c73df941aa", "score": "0.5401103", "text": "private void m5026b() {\n this.f3635a.mo4404b(this.f3636b);\n this.f3635a.setOnFlingListener(null);\n }", "title": "" } ]
f5e884bb1ad52d612814bcbd8f537015
string audio = 9;
[ { "docid": "6cc90c442076d5461f505f38fc49883f", "score": "0.49897608", "text": "com.google.protobuf.ByteString\n getAudioBytes();", "title": "" } ]
[ { "docid": "5a41e0b87409862d50c835a4592077fe", "score": "0.70729655", "text": "java.lang.String getAudio();", "title": "" }, { "docid": "5a41e0b87409862d50c835a4592077fe", "score": "0.70729655", "text": "java.lang.String getAudio();", "title": "" }, { "docid": "2cd0838e6d27bed10633418978d45b3e", "score": "0.6196997", "text": "public java.lang.String getAudio() {\n java.lang.Object ref = audio_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n audio_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "title": "" }, { "docid": "2cd0838e6d27bed10633418978d45b3e", "score": "0.6196997", "text": "public java.lang.String getAudio() {\n java.lang.Object ref = audio_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n audio_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "title": "" }, { "docid": "d9eba50e681a3a6020aa7e7245d7a6ee", "score": "0.61195946", "text": "public int getAudio() {\n return mAudio;\n }", "title": "" }, { "docid": "1d29480e2226f03934c1dd74236c717b", "score": "0.61161727", "text": "public java.lang.String getAudio() {\n java.lang.Object ref = audio_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n audio_ = s;\n return s;\n }\n }", "title": "" }, { "docid": "1d29480e2226f03934c1dd74236c717b", "score": "0.61160666", "text": "public java.lang.String getAudio() {\n java.lang.Object ref = audio_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n audio_ = s;\n return s;\n }\n }", "title": "" }, { "docid": "80b27b5a7f8e0f9caed806dc829afe25", "score": "0.5717456", "text": "public static String sound() {\n return \"Barks\";\n }", "title": "" }, { "docid": "1ccc6713ca4345ddeb1a916ede64687d", "score": "0.56287485", "text": "void mo15583a(String str);", "title": "" }, { "docid": "8acf22f62654b10871e2dddbde9682cc", "score": "0.56166595", "text": "public com.google.protobuf.ByteString\n getAudioBytes() {\n java.lang.Object ref = audio_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n audio_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "title": "" }, { "docid": "8acf22f62654b10871e2dddbde9682cc", "score": "0.56166595", "text": "public com.google.protobuf.ByteString\n getAudioBytes() {\n java.lang.Object ref = audio_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n audio_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "title": "" }, { "docid": "55def676e633230ada0469d5ce815e21", "score": "0.55905634", "text": "String getSoundFileName(String soundName);", "title": "" }, { "docid": "ec15d6d201ca8226b462bbcb79df93a4", "score": "0.5587044", "text": "public String getWaveNumber()\r\n {\r\n return \"\" + _waveNumber;\r\n }", "title": "" }, { "docid": "040a3dce0d2ece657c01bfd90b67a04b", "score": "0.5584195", "text": "public void playSound(Integer sound_loose) {\n }", "title": "" }, { "docid": "bb9cb2dc302f6db26cbddd0ee0fd8860", "score": "0.5559706", "text": "int getAudioFormat() {\n return getShortIndex(20);\n }", "title": "" }, { "docid": "f1de85e2c8c05f2fe927bba9e014f79a", "score": "0.55229306", "text": "public Builder setAudio(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n audio_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "f1de85e2c8c05f2fe927bba9e014f79a", "score": "0.55229306", "text": "public Builder setAudio(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n audio_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "ce715e2748e90fa845d4d4dca3e927e4", "score": "0.5512829", "text": "public void playClear(String string) {\n\t\tif (!myAssets.getSoundOn())\n\t\t\treturn;\n\t\t\n\t\tif (Integer.parseInt(string) == 1)\n\t\t\tclear1.play();\n\t\telse if (Integer.parseInt(string) == 2)\n\t\t\tclear2.play();\n\t\telse if (Integer.parseInt(string) == 3)\n\t\t\tclear3.play();\n\t\telse if (Integer.parseInt(string) == 4)\n\t\t\tclear4.play();\n\t}", "title": "" }, { "docid": "a5633ba02f6fe7b0059af28f8e08b4bd", "score": "0.5503426", "text": "void mo768a(String str);", "title": "" }, { "docid": "f3d3656912918aa42714e35ec2f02d39", "score": "0.55002505", "text": "public static AudioFile buildFromString(String data)\n\t{\n\t\t//parse the string and get the required data\n\t\t//We should get the body string from the saveToString method\n\t\t\n\t\tSystem.out.println(\"GENERATING AUDIO \" + data);\n\t\t\n\t\tAudioFile ret = new AudioFile();\n\t\t\n\t\treturn ret;\n\t}", "title": "" }, { "docid": "b374dc0bb3d5b4f53e82a12dbbade658", "score": "0.5497804", "text": "public com.google.protobuf.ByteString\n getAudioBytes() {\n java.lang.Object ref = audio_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n audio_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "title": "" }, { "docid": "b374dc0bb3d5b4f53e82a12dbbade658", "score": "0.54973894", "text": "public com.google.protobuf.ByteString\n getAudioBytes() {\n java.lang.Object ref = audio_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n audio_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "title": "" }, { "docid": "102603b90214e2032c13f4174de149cc", "score": "0.5485161", "text": "void mo9959qu(String str);", "title": "" }, { "docid": "a48aef5585bf0cb519840a2736ab2620", "score": "0.54385686", "text": "public String getAudioMimeType(){\r\n\t\t\r\n\t\treturn ResourceBundle.MIME_AUDIO_WAV ;\r\n\t}", "title": "" }, { "docid": "5df7d19e09109936abc7670f366fc764", "score": "0.5434484", "text": "int getAudioDuration();", "title": "" }, { "docid": "5df7d19e09109936abc7670f366fc764", "score": "0.5434484", "text": "int getAudioDuration();", "title": "" }, { "docid": "5df7d19e09109936abc7670f366fc764", "score": "0.5434288", "text": "int getAudioDuration();", "title": "" }, { "docid": "be667ffb6b11c0d687b85d87dc68f5b8", "score": "0.5389243", "text": "AudioConstants(int val) {\n this.value = val;\n }", "title": "" }, { "docid": "5ff275e285b7fa3d57fad47bc9cf28b3", "score": "0.5379621", "text": "public String getSound() {\n return sound;\n }", "title": "" }, { "docid": "3d72953a2eb8ec3551aaf01331a1afbc", "score": "0.53750545", "text": "public int getmAudioResId(){return mAudioResId;}", "title": "" }, { "docid": "16f84f0366a03b3daceebfa4a2a96e19", "score": "0.5347839", "text": "@Override\n\tpublic String getSound() {\n\t\treturn \"ka-chunk!\";\n\t}", "title": "" }, { "docid": "c6e608ec055be25e74f0b8bafc33ef68", "score": "0.5329662", "text": "void mo9368a(String str);", "title": "" }, { "docid": "9ed80f1a30d248490a012084c254e764", "score": "0.5325137", "text": "com.google.speech.logs.RecognizerLog.AudioEncodingType getAudioEncoding();", "title": "" }, { "docid": "4254b7255541fdf8545f43b35d5f156f", "score": "0.5307937", "text": "public String interact() {\n return sound;\n }", "title": "" }, { "docid": "4e41c8dd0d278aa0fe71879c6725acce", "score": "0.530775", "text": "String mo28609a(String str);", "title": "" }, { "docid": "458ddd8ecf131488b17f3e5b25f9185f", "score": "0.530096", "text": "void audio() throws CompilerException;", "title": "" }, { "docid": "8892fc7879b4ea84501eb8cdd92a5fae", "score": "0.52873844", "text": "public static Media getAudio(String name) {\r\n\t\treturn audio.get(name);\r\n\t}", "title": "" }, { "docid": "611b4f8c6c748c618111d83a270c501f", "score": "0.52872956", "text": "void mo15584b(String str);", "title": "" }, { "docid": "069c0f4d8f2afc77c29d7c82c4b8ae07", "score": "0.5282112", "text": "String mo17616Qw(String str);", "title": "" }, { "docid": "88290bb0230e22e7fab7371ef8bd92b8", "score": "0.52613306", "text": "public static void som(String som){\n //ponto.au bate.wav fimdejogo.wav\n try {\n InputStream in = new FileInputStream(som);\n AudioStream as = new AudioStream(in);\n AudioPlayer.player.start(as);\n } catch(IOException excepcao) {}\n }", "title": "" }, { "docid": "1dbd5018d2763ca679a6f60d60a61c96", "score": "0.52554405", "text": "public StringPlay() {\n }", "title": "" }, { "docid": "b8f60deba87cf6976047961f01352b6d", "score": "0.5251369", "text": "public int mo20376a(int i) {\n return this.f10149a.setAudioStreamType(i);\n }", "title": "" }, { "docid": "6682424fc59f3f17ebe294e78372455c", "score": "0.52458775", "text": "public String getSound() {\n\t\treturn sound;\n\t}", "title": "" }, { "docid": "e28dbba7772fd85ca92687a9c45d2801", "score": "0.52409786", "text": "void mo17148b(String str);", "title": "" }, { "docid": "58f9f207f40bae2bdac5a9826f04a2ec", "score": "0.52384657", "text": "int getSoundIndex();", "title": "" }, { "docid": "aef3646e62a10ef566976ea5a8adee1e", "score": "0.52204454", "text": "void mo112097a(int i, String str);", "title": "" }, { "docid": "510e493db860ead5ce4aecefc4054eb7", "score": "0.5211142", "text": "java.lang.String getAudioUrl();", "title": "" }, { "docid": "e0cd511f9120a7aece50281c70a2a821", "score": "0.52109796", "text": "void mo15842a(String str);", "title": "" }, { "docid": "510e493db860ead5ce4aecefc4054eb7", "score": "0.5210949", "text": "java.lang.String getAudioUrl();", "title": "" }, { "docid": "510e493db860ead5ce4aecefc4054eb7", "score": "0.5210949", "text": "java.lang.String getAudioUrl();", "title": "" }, { "docid": "2b9f00874bbeac6af9a0d58c76b5cd17", "score": "0.5198678", "text": "void mo9960qv(String str);", "title": "" }, { "docid": "af1750612c52c457fbf8600561eb6dc4", "score": "0.51929843", "text": "void mo17147a(String str);", "title": "" }, { "docid": "08e413735096adebe382fcda09f8ce42", "score": "0.5187538", "text": "@Override\n protected String produceSound(){\n return \"Miau\";\n }", "title": "" }, { "docid": "48eecf339b05528f2aeadc0a688f22e1", "score": "0.51837367", "text": "void play(Note n);", "title": "" }, { "docid": "dff3351ec3da8f155cca7db545c246e4", "score": "0.51831424", "text": "void mo19256a(String str);", "title": "" }, { "docid": "ca60bf281f77e1cbc2312f72270c5e4e", "score": "0.517392", "text": "void mo96758a(String str);", "title": "" }, { "docid": "65c6ea43ec0bfb6e619b9504fe1a18a7", "score": "0.5173038", "text": "public String play();", "title": "" }, { "docid": "8f2e53b6a5db6031a351ca8d691817f9", "score": "0.51706934", "text": "public int getAudioLayer();", "title": "" }, { "docid": "6e376df40b38565d37da42361f3619a1", "score": "0.5163603", "text": "public int getAudioResourceId() {\n return bAudioResourceId;\n }", "title": "" }, { "docid": "99def724ae28b10cbbf1838b4cdcc45e", "score": "0.51626295", "text": "public void sound() {\n\r\n\t}", "title": "" }, { "docid": "5880995604159cb19f9c7fca504ef4ff", "score": "0.51491296", "text": "public interface MediaPlayer {\n\n public void play(String audioType);\n}", "title": "" }, { "docid": "983a7d953ef66f6188b61b2560995df5", "score": "0.5141302", "text": "public static String UploadAudio(InputStream audio, int audioLength) throws Exception {\n CloudBlobContainer container = getContainer(1);\n\n container.createIfNotExists();\n\n String audioName = ufileName + \".mp4\";\n //String audioName = randomString(10) + \".mp4\";\n\n //Log.d(\"Media audio name\", \"audio file:\" + audioName);\n\n CloudBlockBlob imageBlob = container.getBlockBlobReference(audioName);\n imageBlob.upload(audio, audioLength);\n\n return audioName;\n }", "title": "" }, { "docid": "30f9d699d8cf332f078a3c49813bfbb9", "score": "0.51134753", "text": "void mo6158a(String str);", "title": "" }, { "docid": "9b9bde63f003e72834fb257c2d70f2d7", "score": "0.5103158", "text": "public static String UploadNotesAudio(InputStream audio, int audioLength) throws Exception {\n CloudBlobContainer container = getContainer(2);\n\n container.createIfNotExists();\n\n String audioName = fileNameGeneration() + \".mp4\";\n //String audioName = randomString(10) + \".mp4\";\n\n //Log.d(\"Media notes audio name\", \"audio file:\" + audioName);\n\n CloudBlockBlob imageBlob = container.getBlockBlobReference(audioName);\n imageBlob.upload(audio, audioLength);\n\n return audioName;\n }", "title": "" }, { "docid": "81b09536303f6bc721f356a556614cee", "score": "0.5101887", "text": "public void setWaveForm(WaveForm audio) {\n audioData = audio;\n }", "title": "" }, { "docid": "41d56d615d0b1d4177059e66424e4443", "score": "0.50912666", "text": "public void setAudio(AudioClip audioClip);", "title": "" }, { "docid": "7b598d02ff870fac161bd3f0d6e6b10f", "score": "0.5070708", "text": "C1617a mo17331a(String str);", "title": "" }, { "docid": "2288060e8cf3d3ab4dda4eed58aac635", "score": "0.5069933", "text": "void mo30203a(String str);", "title": "" }, { "docid": "1683305af9f3e08588df2bb89c1edb68", "score": "0.50580853", "text": "public int getSoundVolume();", "title": "" }, { "docid": "f1f0e2be0ddb73640a7bf1f80a935a07", "score": "0.5054497", "text": "void mo17333a(String str, C1617a aVar);", "title": "" }, { "docid": "e7ff1db3b22b01a6c9c12ef3a83d2728", "score": "0.5049471", "text": "public void mo4390a(int i, String str) {\n }", "title": "" }, { "docid": "fe5cddba92ce965abb9ba9fc625c3227", "score": "0.50483876", "text": "void mo15587d(String str);", "title": "" }, { "docid": "c14ed3fa01a3acd381fb3a4f1b4b39d6", "score": "0.5046583", "text": "String mo25133b();", "title": "" }, { "docid": "ce11a2bc983994528a6a38c11cd0a98c", "score": "0.50446767", "text": "public int getAudioSessionId();", "title": "" }, { "docid": "f0dbb8e5b1fed5ea747150d460afe3c7", "score": "0.50398207", "text": "void mo112100a(String str);", "title": "" }, { "docid": "386084ab73f9b9b2fd6b437117e3ab70", "score": "0.5034772", "text": "public abstract void sound();", "title": "" }, { "docid": "c3af980e8b3d5c9c60a2afe44845ced8", "score": "0.5034683", "text": "SetAudioVodOperation buildSetAudioVodOperation(String audioValue);", "title": "" }, { "docid": "099e596c3e54f6cb2bf2992ea835758f", "score": "0.50336003", "text": "void mo29386a(String str);", "title": "" }, { "docid": "01d77455cc8f97f5fe5b151dd4fb6784", "score": "0.5020911", "text": "public int getAudioResourceId() {\n return mAudioResourceId;\n }", "title": "" }, { "docid": "73c08d27327156f04ed24f023555c434", "score": "0.5018583", "text": "void mo12785a(String str);", "title": "" }, { "docid": "2ac48ac7802606931e8200939c1f2653", "score": "0.5014652", "text": "void mo2903a(String str, int i);", "title": "" }, { "docid": "ae70d2c8cf0112cb4624f3313604ba06", "score": "0.5013436", "text": "private void play_audio(int row, int column) {\t\t\r\n\t\tCell audiocell=sheet.getRow(row).getCell(column);\r\n\t\tif (audiocell==null || audiocell.getCellType()!=Cell.CELL_TYPE_STRING)\r\n\t\t\treturn;\r\n\t\ttry{\r\n\t\t FileInputStream fis = new FileInputStream(cur_audio_path+\"/\"+audiocell.toString()+\".mp3\");\r\n\t\t playMP3 = new Player(fis);\r\n\t\t playMP3.play();\r\n\t\t}\r\n\t\tcatch(Exception exc){\r\n\t\t\tconsole.clear();\r\n\t\t console.println(\"לא ניתן לנגן קובץ זה: \"+audiocell.getStringCellValue());\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "74f6ae2aeb0981caaa85a8f33541b259", "score": "0.5011425", "text": "@Override\n\tpublic String makeSound() {\n\t\treturn \"cluck!\";\n\t}", "title": "" }, { "docid": "21c3799fb7f4e96d19d385d048a5dca9", "score": "0.5007946", "text": "String getGameString();", "title": "" }, { "docid": "d352e7b579d4afd752000fb5e07bffe2", "score": "0.49953845", "text": "String mo17297a();", "title": "" }, { "docid": "3374eedaebcd0752ca43394b3f5c211f", "score": "0.49925157", "text": "void mo81327c(String str);", "title": "" }, { "docid": "8c505395cb6a1676b8f31b962a8da705", "score": "0.49894768", "text": "public int setAudioLayer(int audioLayer);", "title": "" }, { "docid": "fa487732afaa69d18015079c0e02f166", "score": "0.4983538", "text": "public String toString()\n {\n String output = \"Sound\";\n String fileName = getFileName();\n \n // if there is a file name then add that to the output\n if (fileName != null)\n output = output + \" file: \" + fileName;\n \n // add the length in frames\n output = output + \" number of samples: \" + getLengthInFrames();\n \n return output;\n }", "title": "" }, { "docid": "60264420748212354353ab38cc87ea97", "score": "0.4976744", "text": "void playGame(String game);", "title": "" }, { "docid": "fd37d60dff1fc4a3d1b8000ace80f783", "score": "0.4975967", "text": "C5710a mo6192h(C6750i c6750i, String str);", "title": "" }, { "docid": "c19c7dc16749f7780bf21f2a41d96c39", "score": "0.49711674", "text": "java.lang.String getTrackNumber();", "title": "" }, { "docid": "bb6a05228e968128316531340e208b8d", "score": "0.49638727", "text": "void mo10305a(int i, String str);", "title": "" }, { "docid": "1f97448f04ff72560b52457120371010", "score": "0.49615777", "text": "public GuitarString(double frequency) \n {\n this.N = (int) Math.round(RATE/frequency);\n buffer = new RingBuffer(N);\n for (int i=0;i<N ;i++ ) {\n buffer.enqueue(0); \n } \n }", "title": "" }, { "docid": "b103f5eb4fbffe16bc718dc99aed4659", "score": "0.4960884", "text": "int getAudioResourceId() {\n return mAudioResourceId;\n }", "title": "" }, { "docid": "3a42f829fea81ccf65455643ccce848c", "score": "0.49595404", "text": "public String ritornaPiano(int i){\r\n String piano;\r\n Integer piano1;\r\n piano1 = condominio_app[i].getPiano();\r\n piano = piano1.toString();\r\n \r\n return piano;\r\n }", "title": "" }, { "docid": "c86165739f0ad51ad67a502be959e3b9", "score": "0.4954427", "text": "String mo22432a();", "title": "" }, { "docid": "b103ca31d67950382be360cd98dac2b9", "score": "0.4948363", "text": "private AudioClip getAudioClip(Object documentBase, String string) {\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "d2ea396fa50457e0c9793fdc95f5a963", "score": "0.49462134", "text": "public String getName()\n {\n return \"Audio Level Effect\";\n }", "title": "" }, { "docid": "2f6aa7ff76ad019f0189caed01cfe72f", "score": "0.4943302", "text": "public static String haHa(int a){\n\t\treturn \"哈哈\";\n\t}", "title": "" } ]
f0a01798d7e6ace51488380c1c60e79d
Callbacks for class attributes (index = 2)
[ { "docid": "2392e081231360a616d7edae293c9025", "score": "0.4954534", "text": "private void receive_attributes_write(BGAPIPacket packet) {\n\t\tBGAPIPacketReader r = packet.getPayloadReader();\n\t\tint result = r.r_uint16();\n Iterator i = listeners.iterator();\n while(i.hasNext()) {\n ((BGAPIListener)(i.next())).receive_attributes_write(result);\n }\n\t\t//for(BGAPIListener l : listeners) l.receive_attributes_write(result);\n\t}", "title": "" } ]
[ { "docid": "c6b967b01039ad34c86a89bbd51c017f", "score": "0.6023397", "text": "@Override\n public void visitAttribute(Object attr) {\n }", "title": "" }, { "docid": "4d28737ecbeeb46bc064f0283dde7e54", "score": "0.59936255", "text": "Attribute () {}", "title": "" }, { "docid": "7d0c31bae287023334da462f7fd3cf1d", "score": "0.57102364", "text": "@Override\n\tpublic void visit(Attribute n) {\n\t\t\n\t}", "title": "" }, { "docid": "22bc092e297ca5b92ee3e68cea736dab", "score": "0.56640744", "text": "public void beginAttributes();", "title": "" }, { "docid": "3920509ef52d756a9f74c82581ecd3e6", "score": "0.56299245", "text": "protected void setAttrInvokeAccessor(int index, Object value, AttributeDefImpl attrDef) throws Exception {\r\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\r\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\r\n return;\r\n }\r\n super.setAttrInvokeAccessor(index, value, attrDef);\r\n }", "title": "" }, { "docid": "28b60a9bafcf1940f6b502f55037490f", "score": "0.5627929", "text": "protected void setAttrInvokeAccessor(int index, Object value, AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\n return;\n }\n super.setAttrInvokeAccessor(index, value, attrDef);\n }", "title": "" }, { "docid": "28b60a9bafcf1940f6b502f55037490f", "score": "0.5627929", "text": "protected void setAttrInvokeAccessor(int index, Object value, AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\n return;\n }\n super.setAttrInvokeAccessor(index, value, attrDef);\n }", "title": "" }, { "docid": "28b60a9bafcf1940f6b502f55037490f", "score": "0.5627929", "text": "protected void setAttrInvokeAccessor(int index, Object value, AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\n return;\n }\n super.setAttrInvokeAccessor(index, value, attrDef);\n }", "title": "" }, { "docid": "28b60a9bafcf1940f6b502f55037490f", "score": "0.5627929", "text": "protected void setAttrInvokeAccessor(int index, Object value, AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\n return;\n }\n super.setAttrInvokeAccessor(index, value, attrDef);\n }", "title": "" }, { "docid": "f614a99a350fcf3a0af63f99e359e000", "score": "0.55981725", "text": "protected void setAttrInvokeAccessor(int index, Object value,\r\n AttributeDefImpl attrDef) throws Exception {\r\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\r\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\r\n return;\r\n }\r\n super.setAttrInvokeAccessor(index, value, attrDef);\r\n }", "title": "" }, { "docid": "f614a99a350fcf3a0af63f99e359e000", "score": "0.55981725", "text": "protected void setAttrInvokeAccessor(int index, Object value,\r\n AttributeDefImpl attrDef) throws Exception {\r\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\r\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\r\n return;\r\n }\r\n super.setAttrInvokeAccessor(index, value, attrDef);\r\n }", "title": "" }, { "docid": "f614a99a350fcf3a0af63f99e359e000", "score": "0.55981725", "text": "protected void setAttrInvokeAccessor(int index, Object value,\r\n AttributeDefImpl attrDef) throws Exception {\r\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\r\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\r\n return;\r\n }\r\n super.setAttrInvokeAccessor(index, value, attrDef);\r\n }", "title": "" }, { "docid": "f614a99a350fcf3a0af63f99e359e000", "score": "0.55981725", "text": "protected void setAttrInvokeAccessor(int index, Object value,\r\n AttributeDefImpl attrDef) throws Exception {\r\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\r\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\r\n return;\r\n }\r\n super.setAttrInvokeAccessor(index, value, attrDef);\r\n }", "title": "" }, { "docid": "de0655806697c572c4345504d0cc7c7a", "score": "0.55900854", "text": "protected void setAttrInvokeAccessor(int index, Object value,\r\n AttributeDefImpl attrDef) throws Exception\r\n {\r\n if ((index >= AttributesEnum.firstIndex()) &&\r\n (index < AttributesEnum.count()))\r\n {\r\n AttributesEnum.staticValues()[index -\r\n AttributesEnum.firstIndex()].put(this, value);\r\n return;\r\n }\r\n super.setAttrInvokeAccessor(index, value, attrDef);\r\n }", "title": "" }, { "docid": "cf2fdbf269f98c50a66d45155ab5f995", "score": "0.5577037", "text": "protected void setAttrInvokeAccessor(int index, Object value,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\n return;\n }\n super.setAttrInvokeAccessor(index, value, attrDef);\n }", "title": "" }, { "docid": "cf2fdbf269f98c50a66d45155ab5f995", "score": "0.5577037", "text": "protected void setAttrInvokeAccessor(int index, Object value,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\n return;\n }\n super.setAttrInvokeAccessor(index, value, attrDef);\n }", "title": "" }, { "docid": "cf2fdbf269f98c50a66d45155ab5f995", "score": "0.5577037", "text": "protected void setAttrInvokeAccessor(int index, Object value,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\n return;\n }\n super.setAttrInvokeAccessor(index, value, attrDef);\n }", "title": "" }, { "docid": "cf2fdbf269f98c50a66d45155ab5f995", "score": "0.5577037", "text": "protected void setAttrInvokeAccessor(int index, Object value,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\n return;\n }\n super.setAttrInvokeAccessor(index, value, attrDef);\n }", "title": "" }, { "docid": "cf2fdbf269f98c50a66d45155ab5f995", "score": "0.5577037", "text": "protected void setAttrInvokeAccessor(int index, Object value,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\n return;\n }\n super.setAttrInvokeAccessor(index, value, attrDef);\n }", "title": "" }, { "docid": "cf2fdbf269f98c50a66d45155ab5f995", "score": "0.5577037", "text": "protected void setAttrInvokeAccessor(int index, Object value,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\n return;\n }\n super.setAttrInvokeAccessor(index, value, attrDef);\n }", "title": "" }, { "docid": "cf2fdbf269f98c50a66d45155ab5f995", "score": "0.5577037", "text": "protected void setAttrInvokeAccessor(int index, Object value,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\n return;\n }\n super.setAttrInvokeAccessor(index, value, attrDef);\n }", "title": "" }, { "docid": "cf2fdbf269f98c50a66d45155ab5f995", "score": "0.5577037", "text": "protected void setAttrInvokeAccessor(int index, Object value,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);\n return;\n }\n super.setAttrInvokeAccessor(index, value, attrDef);\n }", "title": "" }, { "docid": "fcfe65499efb1a7b588982584bf2b5db", "score": "0.55731845", "text": "@Override\n\tpublic void visit(MetaAttribute n) {\n\t\t\n\t}", "title": "" }, { "docid": "efc2dccd2160ca67f52948fab9f89065", "score": "0.5511434", "text": "protected void setAttrInvokeAccessor(int index, Object value, \n AttributeDefImpl attrDef) throws Exception {\n switch (index) {\n case DETAILID:\n setDetailId((Number)value);\n return;\n case TASKID:\n setTaskId((Number)value);\n return;\n case DETAILNUMBER:\n setDetailNumber((Number)value);\n return;\n case TARGETCLASSCODE:\n setTargetClassCode((String)value);\n return;\n case TARGETCLASSNAME:\n setTargetClassName((String)value);\n return;\n case PLANCONTROLCODE:\n setPlanControlCode((String)value);\n return;\n case PLANCONTROLNAME:\n setPlanControlName((String)value);\n return;\n case PLANCONTROLDESC:\n setPlanControlDesc((String)value);\n return;\n case ISDELIVERABLES:\n setIsDeliverables((String)value);\n return;\n case ISDELIVERABLEDIS:\n setIsDeliverableDis((String)value);\n return;\n case TARGETVALUE:\n setTargetValue((String)value);\n return;\n case PLANDATE:\n setPlanDate((Date)value);\n return;\n case APPROVEDATE:\n setApproveDate((Date)value);\n return;\n case DUTEPERSON:\n setDutePerson((Number)value);\n return;\n case DUTEPERSONNAME:\n setDutePersonName((String)value);\n return;\n case RESULT:\n setResult((String)value);\n return;\n case ISCONFIRM:\n setIsConfirm((String)value);\n return;\n case REMARK:\n setRemark((String)value);\n return;\n case CREATIONDATE:\n setCreationDate((Date)value);\n return;\n case CREATEDBY:\n setCreatedBy((Number)value);\n return;\n case LASTUPDATEDATE:\n setLastUpdateDate((Date)value);\n return;\n case LASTUPDATEDBY:\n setLastUpdatedBy((Number)value);\n return;\n case LASTUPDATELOGIN:\n setLastUpdateLogin((Number)value);\n return;\n case ATTRIBUTECATEGORY:\n setAttributeCategory((String)value);\n return;\n case ATTRIBUTE1:\n setAttribute1((String)value);\n return;\n case ATTRIBUTE2:\n setAttribute2((String)value);\n return;\n case ATTRIBUTE3:\n setAttribute3((String)value);\n return;\n case ATTRIBUTE4:\n setAttribute4((String)value);\n return;\n case ATTRIBUTE5:\n setAttribute5((String)value);\n return;\n default:\n super.setAttrInvokeAccessor(index, value, attrDef);\n return;\n }\n }", "title": "" }, { "docid": "2925557fd3efd5695b0670f2d7857deb", "score": "0.55069196", "text": "@Override\r\n public void visitAttribute(Attribute attr) {\n super.visitAttribute(attr);\r\n }", "title": "" }, { "docid": "f48e26aa32333154bb37c83a85e38102", "score": "0.5454724", "text": "public _example_attrib() {\n super();\n }", "title": "" }, { "docid": "12343875a5b67e4c95d7bd8781c0dd48", "score": "0.5451299", "text": "public Myclass()\n\t{\n\t\tx=5;// set the initial value for class attribute\n\t}", "title": "" }, { "docid": "f2418de7c486274b86c829369742fb15", "score": "0.5445963", "text": "protected void setAttrInvokeAccessor(int index, Object value,\n AttributeDefImpl attrDef) throws Exception {\n\n final AttributesEnum[] vals = AttributesEnum.staticValues();\n int enumIndex = index - AttributesEnum.firstIndex();\n if ((enumIndex >= 0) && (enumIndex < vals.length)) {\n switch (vals[enumIndex]) {\n case CompletedItems:\n setCompletedItems((Long)value);\n return;\n case TimeStampofCompletion:\n setTimeStampofCompletion((String)value);\n return;\n }\n }\n super.setAttrInvokeAccessor(index, value, attrDef);\n }", "title": "" }, { "docid": "70c30d2561b122fc4ba7f6f66cd06aba", "score": "0.5432728", "text": "public abstract String getattrprim(String attrName, int index);", "title": "" }, { "docid": "3172120179222a9ed975906e2f367454", "score": "0.5431381", "text": "public Object getAttribute ();", "title": "" }, { "docid": "159d7319397c140242eac9b4ac898342", "score": "0.5415122", "text": "protected void setAttrInvokeAccessor(int index, Object value,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= MyAssignmentsEmailVORowImpl.AttributesEnum.firstIndex()) && (index < MyAssignmentsEmailVORowImpl.AttributesEnum.count())) {\n MyAssignmentsEmailVORowImpl.AttributesEnum.staticValues()[index - MyAssignmentsEmailVORowImpl.AttributesEnum.firstIndex()].put(this, value);\n return;\n }\n super.setAttrInvokeAccessor(index, value, attrDef);\n }", "title": "" }, { "docid": "7cb8d98f805b189fd29a62ed61429c7c", "score": "0.5406342", "text": "private TypicalAttractions() {}", "title": "" }, { "docid": "8f57d1d71657c0e630e1b1400ad83c02", "score": "0.5392889", "text": "protected void setAttrInvokeAccessor(int index, Object value, \r\n AttributeDefImpl attrDef) throws Exception\r\n {\r\n switch (index)\r\n {\r\n case IDFREIGHT:\r\n setIdFreight((Number)value);\r\n return;\r\n case IDFOLIO:\r\n setIdFolio((Number)value);\r\n return;\r\n case IDSTRETCH:\r\n setIdStretch((Number)value);\r\n return;\r\n case IDFREIGHTCHAR:\r\n setIdFreightChar((String)value);\r\n return;\r\n case IDREQUEST:\r\n setIdRequest((Number)value);\r\n return;\r\n case USERATE:\r\n setUseRate((String)value);\r\n return;\r\n case IDSTATUS:\r\n setIdStatus((Number)value);\r\n return;\r\n case STATUS:\r\n setStatus((String)value);\r\n return;\r\n case IDCLASSIFICATION:\r\n setIdClassification((Number)value);\r\n return;\r\n case CLASSIFICATION:\r\n setClassification((String)value);\r\n return;\r\n case IDORIGIN:\r\n setIdOrigin((Number)value);\r\n return;\r\n case ORIGIN:\r\n setOrigin((String)value);\r\n return;\r\n case IDZONE:\r\n setIdZone((Number)value);\r\n return;\r\n case ZONEDESC:\r\n setZoneDesc((String)value);\r\n return;\r\n case IDDISTRIBUTION:\r\n setIdDistribution((Number)value);\r\n return;\r\n case DISTRIBUTIONCODE:\r\n setDistributionCode((String)value);\r\n return;\r\n case DISTRIBUTION:\r\n setDistribution((String)value);\r\n return;\r\n case IDDESTINATION:\r\n setIdDestination((Number)value);\r\n return;\r\n case DESTINATION:\r\n setDestination((String)value);\r\n return;\r\n case IDMEDIA:\r\n setIdMedia((Number)value);\r\n return;\r\n case MEDIA:\r\n setMedia((String)value);\r\n return;\r\n case IDMODE:\r\n setIdMode((Number)value);\r\n return;\r\n case MODECODE:\r\n setModeCode((String)value);\r\n return;\r\n case MODEDESC:\r\n setModeDesc((String)value);\r\n return;\r\n case IDPROVIDER:\r\n setIdProvider((Number)value);\r\n return;\r\n case PROVIDER:\r\n setProvider((String)value);\r\n return;\r\n case ETD:\r\n setEtd((Date)value);\r\n return;\r\n case ETDHOUR:\r\n setEtdHour((String)value);\r\n return;\r\n case ETA:\r\n setEta((Date)value);\r\n return;\r\n case ETAHOUR:\r\n setEtaHour((String)value);\r\n return;\r\n case ARRIVALDATE:\r\n setArrivalDate((Date)value);\r\n return;\r\n case ARRIVALTIME:\r\n setArrivalTime((String)value);\r\n return;\r\n case FREIGHTJOB:\r\n setFreightJob((String)value);\r\n return;\r\n case AWBBOL:\r\n setAwbBol((String)value);\r\n return;\r\n case FLIGHT:\r\n setFlight((String)value);\r\n return;\r\n case PEDIMENT:\r\n setPediment((String)value);\r\n return;\r\n case MULTIPLEDELIVERIESFLAG:\r\n setMultipleDeliveriesFlag((String)value);\r\n return;\r\n case NUMDELIVERIES:\r\n setNumDeliveries((Number)value);\r\n return;\r\n case INVOICESTATUS:\r\n setInvoiceStatus((String)value);\r\n return;\r\n case DOCUMENT1:\r\n setDocument1((String)value);\r\n return;\r\n case DOCUMENT2:\r\n setDocument2((String)value);\r\n return;\r\n case DOCUMENT3:\r\n setDocument3((String)value);\r\n return;\r\n case DOCUMENT4:\r\n setDocument4((String)value);\r\n return;\r\n case ATTRIBUTE1:\r\n setAttribute1((String)value);\r\n return;\r\n case ATTRIBUTE2:\r\n setAttribute2((String)value);\r\n return;\r\n case ATTRIBUTE3:\r\n setAttribute3((String)value);\r\n return;\r\n case ATTRIBUTE4:\r\n setAttribute4((String)value);\r\n return;\r\n case ATTRIBUTE5:\r\n setAttribute5((String)value);\r\n return;\r\n case ATTRIBUTE6:\r\n setAttribute6((String)value);\r\n return;\r\n case ATTRIBUTE7:\r\n setAttribute7((String)value);\r\n return;\r\n case ATTRIBUTE8:\r\n setAttribute8((String)value);\r\n return;\r\n case ATTRIBUTE9:\r\n setAttribute9((String)value);\r\n return;\r\n case ATTRIBUTE10:\r\n setAttribute10((String)value);\r\n return;\r\n case LASTUPDATEDATE:\r\n setLastUpdateDate((Date)value);\r\n return;\r\n case LASTUPDATEDBY:\r\n setLastUpdatedBy((Number)value);\r\n return;\r\n case CREATIONDATE:\r\n setCreationDate((Date)value);\r\n return;\r\n case CREATEDBY:\r\n setCreatedBy((Number)value);\r\n return;\r\n case LASTUPDATELOGIN:\r\n setLastUpdateLogin((Number)value);\r\n return;\r\n case DETAILFLAG:\r\n setDetailFlag((Boolean)value);\r\n return;\r\n case PRIORITY:\r\n setPriority((String)value);\r\n return;\r\n case PRIORITYCODE:\r\n setPriorityCode((String)value);\r\n return;\r\n case ISRECORDENABLED:\r\n setIsRecordEnabled((Boolean)value);\r\n return;\r\n case ISEDITENABLED:\r\n setIsEditEnabled((Boolean)value);\r\n return;\r\n default:\r\n super.setAttrInvokeAccessor(index, value, attrDef);\r\n return;\r\n }\r\n }", "title": "" }, { "docid": "24c8c429f295d0ed1b37b08249fd8afb", "score": "0.537216", "text": "protected abstract void bindAttributes();", "title": "" }, { "docid": "d9c92ffac63a0ca73c8dde3c479488ba", "score": "0.5371805", "text": "Attributes getAttributes();", "title": "" }, { "docid": "d62e5fa3e1cae71f7e08cc5a8fb1f2d6", "score": "0.53399885", "text": "public static void parseAttributeInfo(AttributeInfo attr, int genFileType, String className, String path,\r\n CachedFileHandle handle) {\r\n\r\n String attrString = \"\";\r\n\r\n String getterString = \"\";\r\n String getterImplString = \"\";\r\n\r\n String setterString = \"\";\r\n String setterImplString = \"\";\r\n\r\n String constructorString = \"\";\r\n String typeDefString = \"\";\r\n\r\n String toString = \"\";\r\n String hashCodeString = \"\";\r\n String equalsString = \"\";\r\n\r\n className = JavaIdentifierSyntax.getCaptialCase(className);\r\n\r\n try {\r\n /*\r\n * Get the attribute definition and save attributes to temporary\r\n * file.\r\n */\r\n\r\n boolean isList = attr.isListAttr();\r\n String attributeName = JavaIdentifierSyntax.getLowerCase(attr.getAttributeName());\r\n if (attr.isQualifiedName()) {\r\n attrString = JavaCodeSnippetGen.getJavaAttributeDefination(attr.getImportInfo().getPkgInfo(),\r\n attr.getImportInfo().getClassInfo(),\r\n attributeName, attr.isListAttr());\r\n } else {\r\n attrString = JavaCodeSnippetGen.getJavaAttributeDefination(null, attr.getImportInfo().getClassInfo(),\r\n attributeName, attr.isListAttr());\r\n }\r\n handle.setTempData(attrString + UtilConstants.NEW_LINE + UtilConstants.FOUR_SPACE_INDENTATION,\r\n TempDataStoreTypes.ATTRIBUTE, className,\r\n path);\r\n\r\n if ((genFileType & INTERFACE_MASK) != 0) {\r\n getterString = MethodsGenerator.getGetterString(attr);\r\n handle.setTempData(getterString + UtilConstants.NEW_LINE,\r\n TempDataStoreTypes.GETTER_METHODS,\r\n className,\r\n path);\r\n\r\n }\r\n\r\n if ((genFileType & BUILDER_INTERFACE_MASK) != 0) {\r\n setterString = MethodsGenerator.getSetterString(attr, className);\r\n handle.setTempData(setterString + UtilConstants.NEW_LINE,\r\n TempDataStoreTypes.SETTER_METHODS,\r\n className,\r\n path);\r\n }\r\n\r\n if ((genFileType & BUILDER_CLASS_MASK) != 0) {\r\n getterImplString = MethodsGenerator.getGetterForClass(attr);\r\n handle.setTempData(\r\n MethodsGenerator.getOverRideString() + getterImplString + UtilConstants.NEW_LINE,\r\n TempDataStoreTypes.GETTER_METHODS_IMPL, className,\r\n path);\r\n setterImplString = MethodsGenerator.getSetterForClass(attr, className);\r\n handle.setTempData(\r\n MethodsGenerator.getOverRideString() + setterImplString + UtilConstants.NEW_LINE,\r\n TempDataStoreTypes.SETTER_METHODS_IMPL, className,\r\n path);\r\n }\r\n\r\n if ((genFileType & IMPL_CLASS_MASK) != 0) {\r\n constructorString = MethodsGenerator.getConstructor(className, attr);\r\n handle.setTempData(constructorString, TempDataStoreTypes.CONSTRUCTOR, className,\r\n path);\r\n\r\n hashCodeString = MethodsGenerator.getHashCodeMethod(attr);\r\n handle.setTempData(hashCodeString + UtilConstants.NEW_LINE,\r\n TempDataStoreTypes.HASH_CODE,\r\n className,\r\n path);\r\n equalsString = MethodsGenerator.getEqualsMethod(attr);\r\n handle.setTempData(equalsString + UtilConstants.NEW_LINE,\r\n TempDataStoreTypes.EQUALS,\r\n className,\r\n path);\r\n\r\n toString = MethodsGenerator.getToStringMethod(attr);\r\n handle.setTempData(toString + UtilConstants.NEW_LINE,\r\n TempDataStoreTypes.TO_STRING,\r\n className,\r\n path);\r\n\r\n }\r\n\r\n if ((genFileType & GENERATE_TYPEDEF_CLASS) != 0) {\r\n\r\n if (attr.isQualifiedName()) {\r\n typeDefString = JavaCodeSnippetGen.getJavaAttributeDefination(attr.getImportInfo().getPkgInfo(),\r\n attr.getImportInfo().getClassInfo(),\r\n attributeName, attr.isListAttr()) + UtilConstants.NEW_LINE;\r\n } else {\r\n typeDefString = JavaCodeSnippetGen.getJavaAttributeDefination(null,\r\n attr.getImportInfo().getClassInfo(),\r\n attributeName, attr.isListAttr()) + UtilConstants.NEW_LINE;\r\n }\r\n\r\n typeDefString = typeDefString + UtilConstants.NEW_LINE + UtilConstants.FOUR_SPACE_INDENTATION\r\n + UtilConstants.JAVA_DOC_FIRST_LINE;\r\n\r\n typeDefString = typeDefString\r\n + MethodsGenerator.getDefaultConstructorString(className, UtilConstants.PRIVATE)\r\n + UtilConstants.NEW_LINE;\r\n\r\n typeDefString = typeDefString\r\n + JavaDocGen.getJavaDoc(JavaDocType.TYPE_DEF_CONSTRUCTOR, className, isList)\r\n + MethodsGenerator.getTypeDefConstructor(attr, className)\r\n + UtilConstants.NEW_LINE;\r\n\r\n typeDefString = typeDefString + JavaDocGen.getJavaDoc(JavaDocType.OF, className, isList)\r\n + MethodsGenerator.getOfMethod(className, attr) + UtilConstants.NEW_LINE;\r\n\r\n typeDefString = typeDefString + JavaDocGen.getJavaDoc(JavaDocType.GETTER, className, isList)\r\n + MethodsGenerator.getGetterForClass(attr) + UtilConstants.NEW_LINE;\r\n\r\n typeDefString = typeDefString + JavaDocGen.getJavaDoc(JavaDocType.TYPE_DEF_SETTER, className, isList)\r\n + MethodsGenerator.getSetterForTypeDefClass(attr)\r\n + UtilConstants.NEW_LINE;\r\n\r\n hashCodeString = MethodsGenerator.getHashCodeMethodOpen()\r\n + YangIoUtils.partString(\r\n MethodsGenerator.getHashCodeMethod(attr).replace(UtilConstants.NEW_LINE, \"\"));\r\n hashCodeString = MethodsGenerator.getHashCodeMethodClose(hashCodeString) + UtilConstants.NEW_LINE;\r\n\r\n equalsString = MethodsGenerator.getEqualsMethodOpen(className) + UtilConstants.NEW_LINE\r\n + MethodsGenerator.getEqualsMethod(attr);\r\n equalsString = MethodsGenerator.getEqualsMethodClose(equalsString) + UtilConstants.NEW_LINE;\r\n\r\n toString = MethodsGenerator.getToStringMethodOpen()\r\n + MethodsGenerator.getToStringMethod(attr) + UtilConstants.NEW_LINE\r\n + MethodsGenerator.getToStringMethodClose()\r\n + UtilConstants.NEW_LINE;\r\n typeDefString = typeDefString + hashCodeString + equalsString + toString;\r\n handle.setTempData(typeDefString, TempDataStoreTypes.TYPE_DEF, className,\r\n path);\r\n }\r\n } catch (IOException e) {\r\n log.info(\"Failed to set data for \" + attr.getAttributeName() + \" in temp data files.\");\r\n }\r\n\r\n }", "title": "" }, { "docid": "17bc4013e8964173d8ba90d1136ab982", "score": "0.53383493", "text": "public interface AttributeInfo {\n\n\tpublic int getInfo(final byte[] bytes, final int cursor);\n\n}", "title": "" }, { "docid": "2ff5eedf19a9708682b9847241467249", "score": "0.53214055", "text": "protected void setAttrInvokeAccessor(int index, Object value, \n AttributeDefImpl attrDef) throws Exception {\n switch (index) {\n case VCMEANING:\n setVcMeaning((String)value);\n return;\n case VCLOOKUPTYPE:\n setVcLookupType((String)value);\n return;\n case VCLOOKUPCODE:\n setVcLookupCode((String)value);\n return;\n case COMPILEDVALUEATTRIBUTES:\n setCompiledValueAttributes((String)value);\n return;\n case VCMEANINGXX:\n setVcMeaningxx((String)value);\n return;\n case ROWNUM:\n setRownum((Number)value);\n return;\n case RN:\n setRn((Number)value);\n return;\n default:\n super.setAttrInvokeAccessor(index, value, attrDef);\n return;\n }\n }", "title": "" }, { "docid": "2266989c1b8285f86e0b23788d0ef95a", "score": "0.5320928", "text": "AttrAss createAttrAss();", "title": "" }, { "docid": "0a2314ca3ddefe487d306e949f3e0652", "score": "0.5310322", "text": "public static void initializeClassAttributes() {\n\tAboraSupport.findAboraClass(IntegerUpOrder.class).setAttributes( new Set().add(\"CONCRETE\").add(\"COPY\").add(\"NOTATYPE\"));\n/*\n\nGenerated during transformation: AddMethod\n*/\n}", "title": "" }, { "docid": "5249c2dc18a4752b51928eb79a41c778", "score": "0.52613306", "text": "private RegisterAttributes attributes(Register reg) {\n return registerAttributes[reg.number];\n }", "title": "" }, { "docid": "5b054a28e529995b120de3fd7ee7f016", "score": "0.52146214", "text": "protected Object getAttrInvokeAccessor(int index,\r\n AttributeDefImpl attrDef) throws Exception {\r\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\r\n return AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].get(this);\r\n }\r\n return super.getAttrInvokeAccessor(index, attrDef);\r\n }", "title": "" }, { "docid": "5b054a28e529995b120de3fd7ee7f016", "score": "0.52146214", "text": "protected Object getAttrInvokeAccessor(int index,\r\n AttributeDefImpl attrDef) throws Exception {\r\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\r\n return AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].get(this);\r\n }\r\n return super.getAttrInvokeAccessor(index, attrDef);\r\n }", "title": "" }, { "docid": "5b054a28e529995b120de3fd7ee7f016", "score": "0.52146214", "text": "protected Object getAttrInvokeAccessor(int index,\r\n AttributeDefImpl attrDef) throws Exception {\r\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\r\n return AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].get(this);\r\n }\r\n return super.getAttrInvokeAccessor(index, attrDef);\r\n }", "title": "" }, { "docid": "5b054a28e529995b120de3fd7ee7f016", "score": "0.52146214", "text": "protected Object getAttrInvokeAccessor(int index,\r\n AttributeDefImpl attrDef) throws Exception {\r\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\r\n return AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].get(this);\r\n }\r\n return super.getAttrInvokeAccessor(index, attrDef);\r\n }", "title": "" }, { "docid": "29b497dc6a3f72ec5cfcccbcebe884b1", "score": "0.52121866", "text": "protected Object getAttrInvokeAccessor(int index, AttributeDefImpl attrDef) throws Exception {\r\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\r\n return AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].get(this);\r\n }\r\n return super.getAttrInvokeAccessor(index, attrDef);\r\n }", "title": "" }, { "docid": "557690ee831e093ad7f2ba1c628faa2a", "score": "0.52001244", "text": "protected Object getAttrInvokeAccessor(int index, AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n return AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].get(this);\n }\n return super.getAttrInvokeAccessor(index, attrDef);\n }", "title": "" }, { "docid": "557690ee831e093ad7f2ba1c628faa2a", "score": "0.52001244", "text": "protected Object getAttrInvokeAccessor(int index, AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n return AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].get(this);\n }\n return super.getAttrInvokeAccessor(index, attrDef);\n }", "title": "" }, { "docid": "557690ee831e093ad7f2ba1c628faa2a", "score": "0.52001244", "text": "protected Object getAttrInvokeAccessor(int index, AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n return AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].get(this);\n }\n return super.getAttrInvokeAccessor(index, attrDef);\n }", "title": "" }, { "docid": "557690ee831e093ad7f2ba1c628faa2a", "score": "0.52001244", "text": "protected Object getAttrInvokeAccessor(int index, AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n return AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].get(this);\n }\n return super.getAttrInvokeAccessor(index, attrDef);\n }", "title": "" }, { "docid": "a922c666569c3d3625d8831a516047ef", "score": "0.51926094", "text": "public interface AttributeClassCount {\n default boolean isDiscrete() {\n return getKind() == ArffAttributeType.ATTRIBUTE_KIND_INTEGER;\n }\n default boolean isContinuous() {\n return getKind() == ArffAttributeType.ATTRIBUTE_KIND_REAL;\n }\n\n char getKind();\n\n /** @return GiniIndex(giniIndex, threshold, this) :\n * the length of the returned array &gt;=1, and\n * currently up to 2.\n * the former is smaller index. */\n GiniIndex[] giniIndex(long nodeInstanceCount, int classes, boolean entropy);\n\n class AttributeIgnoreClassCount implements AttributeClassCount, Serializable {\n protected VfdtConfig config;\n\n static final long serialVersionUID = 1L;\n\n public AttributeIgnoreClassCount() {}\n\n public AttributeIgnoreClassCount(VfdtConfig config) {\n this.config = config;\n }\n\n @Override\n public char getKind() {\n return '?';\n }\n\n @Override\n public GiniIndex[] giniIndex(long nodeInstanceCount, int classes, boolean entropy) {\n return new GiniIndex[] {\n new GiniIndex(config.initGiniIndex, 0, this)\n };\n }\n }\n\n class GiniIndex implements Serializable {\n public double index;\n /** optional */\n public double threshold = 0;\n\n public AttributeClassCount sourceAttribute;\n\n static final long serialVersionUID = 1L;\n\n public GiniIndex() {}\n\n public GiniIndex(double index, double threshold, AttributeClassCount sourceAttribute) {\n this.index = index;\n this.threshold = threshold;\n this.sourceAttribute = sourceAttribute;\n }\n public void set(double index, double threshold) {\n this.index = index;\n this.threshold = threshold;\n }\n }\n\n\n}", "title": "" }, { "docid": "d38e2c00f3a068d322a2b0b740d4beda", "score": "0.51870537", "text": "protected Object getAttrInvokeAccessor(int index,\r\n AttributeDefImpl attrDef) throws Exception\r\n {\r\n if ((index >= AttributesEnum.firstIndex()) &&\r\n (index < AttributesEnum.count()))\r\n {\r\n return AttributesEnum.staticValues()[index -\r\n AttributesEnum.firstIndex()].get(this);\r\n }\r\n return super.getAttrInvokeAccessor(index, attrDef);\r\n }", "title": "" }, { "docid": "bf7a280b8d5765e53d1312a15addcf0c", "score": "0.51673454", "text": "public abstract double evaluateAttribute(int[] attributes, int[] classAttributes) throws Exception;", "title": "" }, { "docid": "bd29eec1d1934bb97599f758c0025c1c", "score": "0.51630473", "text": "protected Object getAttrInvokeAccessor(int index,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n return AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].get(this);\n }\n return super.getAttrInvokeAccessor(index, attrDef);\n }", "title": "" }, { "docid": "bd29eec1d1934bb97599f758c0025c1c", "score": "0.51630473", "text": "protected Object getAttrInvokeAccessor(int index,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n return AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].get(this);\n }\n return super.getAttrInvokeAccessor(index, attrDef);\n }", "title": "" }, { "docid": "bd29eec1d1934bb97599f758c0025c1c", "score": "0.51630473", "text": "protected Object getAttrInvokeAccessor(int index,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n return AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].get(this);\n }\n return super.getAttrInvokeAccessor(index, attrDef);\n }", "title": "" }, { "docid": "bd29eec1d1934bb97599f758c0025c1c", "score": "0.51630473", "text": "protected Object getAttrInvokeAccessor(int index,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n return AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].get(this);\n }\n return super.getAttrInvokeAccessor(index, attrDef);\n }", "title": "" }, { "docid": "bd29eec1d1934bb97599f758c0025c1c", "score": "0.51630473", "text": "protected Object getAttrInvokeAccessor(int index,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n return AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].get(this);\n }\n return super.getAttrInvokeAccessor(index, attrDef);\n }", "title": "" }, { "docid": "bd29eec1d1934bb97599f758c0025c1c", "score": "0.51630473", "text": "protected Object getAttrInvokeAccessor(int index,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n return AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].get(this);\n }\n return super.getAttrInvokeAccessor(index, attrDef);\n }", "title": "" }, { "docid": "bd29eec1d1934bb97599f758c0025c1c", "score": "0.51630473", "text": "protected Object getAttrInvokeAccessor(int index,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n return AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].get(this);\n }\n return super.getAttrInvokeAccessor(index, attrDef);\n }", "title": "" }, { "docid": "bd29eec1d1934bb97599f758c0025c1c", "score": "0.51630473", "text": "protected Object getAttrInvokeAccessor(int index,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {\n return AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].get(this);\n }\n return super.getAttrInvokeAccessor(index, attrDef);\n }", "title": "" }, { "docid": "d385560f3f83421aabd31fdcfa1720e7", "score": "0.5147548", "text": "public abstract IomObject getattrobj(String attrName, int index);", "title": "" }, { "docid": "265eda818490db144be1e46cbf698e28", "score": "0.5134122", "text": "private MetricTreeNode attr() {\n\t\t\t\tif( attr == null ) {\n\t\t\t\t\tattr = getAttributeNode( tree, result );\n\t\t\t\t}\n\t\t\t\treturn attr;\n\t\t\t}", "title": "" }, { "docid": "9dc42bec0a52f77d090318cac85540ff", "score": "0.51325226", "text": "public void _UserDefinedAttributes() {\n super._UserDefinedAttributes();\n }", "title": "" }, { "docid": "0f3eb720fb7bc91fdb9ac97978b561b7", "score": "0.5122542", "text": "public abstract ATTRIBUTE_ACCESSOR getAttributeAccessor();", "title": "" }, { "docid": "316ac15c31ad353156bce37683c89d32", "score": "0.5118609", "text": "protected Object getAttrInvokeAccessor(int index, \r\n AttributeDefImpl attrDef) throws Exception\r\n {\r\n switch (index)\r\n {\r\n case IDFREIGHT:\r\n return getIdFreight();\r\n case IDFOLIO:\r\n return getIdFolio();\r\n case IDSTRETCH:\r\n return getIdStretch();\r\n case IDFREIGHTCHAR:\r\n return getIdFreightChar();\r\n case IDREQUEST:\r\n return getIdRequest();\r\n case USERATE:\r\n return getUseRate();\r\n case IDSTATUS:\r\n return getIdStatus();\r\n case STATUS:\r\n return getStatus();\r\n case IDCLASSIFICATION:\r\n return getIdClassification();\r\n case CLASSIFICATION:\r\n return getClassification();\r\n case IDORIGIN:\r\n return getIdOrigin();\r\n case ORIGIN:\r\n return getOrigin();\r\n case IDZONE:\r\n return getIdZone();\r\n case ZONEDESC:\r\n return getZoneDesc();\r\n case IDDISTRIBUTION:\r\n return getIdDistribution();\r\n case DISTRIBUTIONCODE:\r\n return getDistributionCode();\r\n case DISTRIBUTION:\r\n return getDistribution();\r\n case IDDESTINATION:\r\n return getIdDestination();\r\n case DESTINATION:\r\n return getDestination();\r\n case IDMEDIA:\r\n return getIdMedia();\r\n case MEDIA:\r\n return getMedia();\r\n case IDMODE:\r\n return getIdMode();\r\n case MODECODE:\r\n return getModeCode();\r\n case MODEDESC:\r\n return getModeDesc();\r\n case IDPROVIDER:\r\n return getIdProvider();\r\n case PROVIDER:\r\n return getProvider();\r\n case ETD:\r\n return getEtd();\r\n case ETDHOUR:\r\n return getEtdHour();\r\n case ETA:\r\n return getEta();\r\n case ETAHOUR:\r\n return getEtaHour();\r\n case ARRIVALDATE:\r\n return getArrivalDate();\r\n case ARRIVALTIME:\r\n return getArrivalTime();\r\n case FREIGHTJOB:\r\n return getFreightJob();\r\n case AWBBOL:\r\n return getAwbBol();\r\n case FLIGHT:\r\n return getFlight();\r\n case PEDIMENT:\r\n return getPediment();\r\n case MULTIPLEDELIVERIESFLAG:\r\n return getMultipleDeliveriesFlag();\r\n case NUMDELIVERIES:\r\n return getNumDeliveries();\r\n case INVOICESTATUS:\r\n return getInvoiceStatus();\r\n case DOCUMENT1:\r\n return getDocument1();\r\n case DOCUMENT2:\r\n return getDocument2();\r\n case DOCUMENT3:\r\n return getDocument3();\r\n case DOCUMENT4:\r\n return getDocument4();\r\n case ATTRIBUTE1:\r\n return getAttribute1();\r\n case ATTRIBUTE2:\r\n return getAttribute2();\r\n case ATTRIBUTE3:\r\n return getAttribute3();\r\n case ATTRIBUTE4:\r\n return getAttribute4();\r\n case ATTRIBUTE5:\r\n return getAttribute5();\r\n case ATTRIBUTE6:\r\n return getAttribute6();\r\n case ATTRIBUTE7:\r\n return getAttribute7();\r\n case ATTRIBUTE8:\r\n return getAttribute8();\r\n case ATTRIBUTE9:\r\n return getAttribute9();\r\n case ATTRIBUTE10:\r\n return getAttribute10();\r\n case LASTUPDATEDATE:\r\n return getLastUpdateDate();\r\n case LASTUPDATEDBY:\r\n return getLastUpdatedBy();\r\n case CREATIONDATE:\r\n return getCreationDate();\r\n case CREATEDBY:\r\n return getCreatedBy();\r\n case LASTUPDATELOGIN:\r\n return getLastUpdateLogin();\r\n case DETAILFLAG:\r\n return getDetailFlag();\r\n case PRIORITY:\r\n return getPriority();\r\n case PRIORITYCODE:\r\n return getPriorityCode();\r\n case ISRECORDENABLED:\r\n return getIsRecordEnabled();\r\n case ISEDITENABLED:\r\n return getIsEditEnabled();\r\n default:\r\n return super.getAttrInvokeAccessor(index, attrDef);\r\n }\r\n }", "title": "" }, { "docid": "45e0d8edb290a1ff21f6b5d79f53b65c", "score": "0.5117042", "text": "private int asmClassMemberOffset(int offset) {\n\t\treturn 0;\r\n\t}", "title": "" }, { "docid": "a9790eda9716b5981016a15e8500d8ab", "score": "0.51062393", "text": "public abstract void setattrundefined(String attrName);", "title": "" }, { "docid": "da60facb48e78f9dbe330ed5ed098126", "score": "0.5097333", "text": "protected Object getAttrInvokeAccessor(int index, \n AttributeDefImpl attrDef) throws Exception {\n switch (index) {\n case DETAILID:\n return getDetailId();\n case TASKID:\n return getTaskId();\n case DETAILNUMBER:\n return getDetailNumber();\n case TARGETCLASSCODE:\n return getTargetClassCode();\n case TARGETCLASSNAME:\n return getTargetClassName();\n case PLANCONTROLCODE:\n return getPlanControlCode();\n case PLANCONTROLNAME:\n return getPlanControlName();\n case PLANCONTROLDESC:\n return getPlanControlDesc();\n case ISDELIVERABLES:\n return getIsDeliverables();\n case ISDELIVERABLEDIS:\n return getIsDeliverableDis();\n case TARGETVALUE:\n return getTargetValue();\n case PLANDATE:\n return getPlanDate();\n case APPROVEDATE:\n return getApproveDate();\n case DUTEPERSON:\n return getDutePerson();\n case DUTEPERSONNAME:\n return getDutePersonName();\n case RESULT:\n return getResult();\n case ISCONFIRM:\n return getIsConfirm();\n case REMARK:\n return getRemark();\n case CREATIONDATE:\n return getCreationDate();\n case CREATEDBY:\n return getCreatedBy();\n case LASTUPDATEDATE:\n return getLastUpdateDate();\n case LASTUPDATEDBY:\n return getLastUpdatedBy();\n case LASTUPDATELOGIN:\n return getLastUpdateLogin();\n case ATTRIBUTECATEGORY:\n return getAttributeCategory();\n case ATTRIBUTE1:\n return getAttribute1();\n case ATTRIBUTE2:\n return getAttribute2();\n case ATTRIBUTE3:\n return getAttribute3();\n case ATTRIBUTE4:\n return getAttribute4();\n case ATTRIBUTE5:\n return getAttribute5();\n default:\n return super.getAttrInvokeAccessor(index, attrDef);\n }\n }", "title": "" }, { "docid": "e68c629c951f4dbc0844257a02f7f03c", "score": "0.50785273", "text": "protected Object getAttrInvokeAccessor(int index,\n AttributeDefImpl attrDef) throws Exception {\n\n\n final AttributesEnum[] vals = AttributesEnum.staticValues();\n int enumIndex = index - AttributesEnum.firstIndex();\n if ((enumIndex >= 0) && (enumIndex < vals.length)) {\n switch (vals[enumIndex]) {\n case CompletedItems:\n return getCompletedItems();\n case TimeStampofCompletion:\n return getTimeStampofCompletion();\n }\n }\n return super.getAttrInvokeAccessor(index, attrDef);\n }", "title": "" }, { "docid": "598f1b259c25d30663a44c8fdc934503", "score": "0.50731385", "text": "@Override\n\tpublic void storeClassVariables() {\n\n\t}", "title": "" }, { "docid": "1b1c619e58aab8f933a990de377fdd26", "score": "0.5069745", "text": "protected void setAttrInvokeAccessor(int index, Object value, AttributeDefImpl attrDef) throws Exception\n {\n switch (index)\n {\n case IDEXPED:\n setIdexped((Number)value);\n return;\n case IDDOC:\n setIddoc((Number)value);\n return;\n case CREATEDBY:\n setCreatedby((String)value);\n return;\n case MODIFIEDBY:\n setModifiedby((String)value);\n return;\n case CREATEDON:\n setCreatedon((Date)value);\n return;\n case MODIFIEDON:\n setModifiedon((Date)value);\n return;\n default:\n super.setAttrInvokeAccessor(index, value, attrDef);\n return;\n }\n }", "title": "" }, { "docid": "460a69beb8f54383b131725cf3019e46", "score": "0.50660676", "text": "abstract AttributeSetter getAttributeSetter();", "title": "" }, { "docid": "d51a33bc84cde82d3d9b2601b12f7086", "score": "0.5061722", "text": "protected Object getAttrInvokeAccessor(int index,\n AttributeDefImpl attrDef) throws Exception {\n if ((index >= MyAssignmentsEmailVORowImpl.AttributesEnum.firstIndex()) && (index < MyAssignmentsEmailVORowImpl.AttributesEnum.count())) {\n return MyAssignmentsEmailVORowImpl.AttributesEnum.staticValues()[index - MyAssignmentsEmailVORowImpl.AttributesEnum.firstIndex()].get(this);\n }\n return super.getAttrInvokeAccessor(index, attrDef);\n }", "title": "" }, { "docid": "0c54cbda08f799360fff9a1d68aa5044", "score": "0.50601053", "text": "public abstract String getattrvalue(String attrName);", "title": "" }, { "docid": "2a550f8458794d16824f204804d00e1c", "score": "0.50582916", "text": "@Override\n public void visitClassContext(ClassContext classContext) {\n }", "title": "" }, { "docid": "5a7ea4a33b42c6a00aa9617366e0b261", "score": "0.50528616", "text": "public int getAttrition() {\n return attrition;\n }", "title": "" }, { "docid": "1ca2706b2e9834d596670187b526f935", "score": "0.50456846", "text": "public void setAttribute (Object attr);", "title": "" }, { "docid": "3f50b77ee3ae1fb4861c893c61e6785a", "score": "0.5041363", "text": "protected void setAttrInvokeAccessor(int index, Object value, \n AttributeDefImpl attrDef) throws Exception {\n switch (index) {\n case EDUSUB:\n setEdusub((String)value);\n return;\n case EDUSUBDESC:\n setEdusubDesc((String)value);\n return;\n default:\n super.setAttrInvokeAccessor(index, value, attrDef);\n return;\n }\n }", "title": "" }, { "docid": "3273d8d76d183d07e706f7ccf7b766fe", "score": "0.504085", "text": "private final void readAttributes() throws IOException, ClassFormatError {\n/* 219 */ int attributes_count = this.file.readUnsignedShort();\n/* 220 */ this.attributes = new Attribute[attributes_count];\n/* */ \n/* 222 */ for (int i = 0; i < attributes_count; i++) {\n/* 223 */ this.attributes[i] = Attribute.readAttribute(this.file, this.constant_pool);\n/* */ }\n/* */ }", "title": "" }, { "docid": "241a5c35f79786e58fcfc659661900b7", "score": "0.50269645", "text": "public abstract String getAttributeName();", "title": "" }, { "docid": "241a5c35f79786e58fcfc659661900b7", "score": "0.50269645", "text": "public abstract String getAttributeName();", "title": "" }, { "docid": "c148dc34b24cda06ef5086e957e7aa9f", "score": "0.50171477", "text": "protected Object getAttrInvokeAccessor(int index, \n AttributeDefImpl attrDef) throws Exception {\n switch (index) {\n case COSTCENTERFLEX:\n return getCostCenterFlex();\n case ENABLEDFLAG:\n return getEnabledFlag();\n case SUMMARYFLAG:\n return getSummaryFlag();\n case DESCRIPTION:\n return getDescription();\n case VCMEANING:\n return getVcMeaning();\n case VCLOOKUPTYPE:\n return getVcLookupType();\n case VCLOOKUPCODE:\n return getVcLookupCode();\n case COMPILEDVALUEATTRIBUTES:\n return getCompiledValueAttributes();\n case VCMEANINGXX:\n return getVcMeaningxx();\n case ROWNUM:\n return getRownum();\n case RN:\n return getRn();\n default:\n return super.getAttrInvokeAccessor(index, attrDef);\n }\n }", "title": "" }, { "docid": "48bdb1b3443fee486a4cd129642e8a6c", "score": "0.5014944", "text": "public ContinuousAttribute(String name, int index, float min, float max){\n\t/*ConitnuousAttribute è un metodo, che invoca il costruttore della classe madre\n\t * e avvalora i membri ed ha come input il nome dell'attributo \n\t * e l'dentificativo numerico */\n\tsuper(name,index); \n\tthis.max=max;\n\tthis.min=min;\n}", "title": "" }, { "docid": "3d20c1e6ee5abaca340f48bff21294c0", "score": "0.50107694", "text": "protected void setAttrInvokeAccessor(int index, Object value, \n AttributeDefImpl attrDef) throws Exception {\n switch (index) {\n case ROWNUM:\n setRownum((Number)value);\n return;\n case ROLEID:\n setRoleId((Number)value);\n return;\n case GROUPID:\n setGroupId((Number)value);\n return;\n case GROUPNAME:\n setGroupName((String)value);\n return;\n case ORGID:\n setOrgId((Number)value);\n return;\n case ORGNAME:\n setOrgName((String)value);\n return;\n case PERSONID:\n setPersonId((Number)value);\n return;\n case EMPNAME:\n setEmpName((String)value);\n return;\n case ROLECODE:\n setRoleCode((String)value);\n return;\n case ATTRIBUTE1:\n setAttribute1((String)value);\n return;\n case LASTUPDATEDATE:\n setLastUpdateDate((Date)value);\n return;\n case LASTUPDATEDBY:\n setLastUpdatedBy((Number)value);\n return;\n case LASTUPDATELOGIN:\n setLastUpdateLogin((Number)value);\n return;\n case CREATEDBY:\n setCreatedBy((Number)value);\n return;\n case CREATIONDATE:\n setCreationDate((Date)value);\n return;\n default:\n super.setAttrInvokeAccessor(index, value, attrDef);\n return;\n }\n }", "title": "" }, { "docid": "6277bbf02304c5893ed675f1dedcdd21", "score": "0.5009894", "text": "protected void setAttrInvokeAccessor(int index, Object value, \r\n AttributeDefImpl attrDef) throws Exception {\r\n switch (index) {\r\n case CTLCOURTESYTITLE:\r\n setCtlCourtesyTitle((String)value);\r\n return;\r\n case CTLDELETEYN:\r\n setCtlDeleteYn((String)value);\r\n return;\r\n default:\r\n super.setAttrInvokeAccessor(index, value, attrDef);\r\n return;\r\n }\r\n }", "title": "" }, { "docid": "26a37162254dc82e24377d119d695b8d", "score": "0.5008958", "text": "@Override\n protected List<Integer> getAttributesValues (final RegularTimePeriod inst)\n {\n final Millisecond v=(Millisecond) inst;\n final List<Integer> dl=SECOND.getAttributesValues(v.getSecond()),\n vl=new ArrayList<Integer>(dl.size() + 1);\n vl.addAll(dl);\n vl.add(Integer.valueOf((int) v.getMillisecond()));\n return vl;\n }", "title": "" }, { "docid": "c61731da5fdf2672af989817df27a75e", "score": "0.5000981", "text": "public void setAttrition(int attrition) {\n this.attrition = attrition;\n }", "title": "" }, { "docid": "1f3ca4f3abb5e7d5efae030c8c2bf097", "score": "0.49822792", "text": "public void evaluateAttributesClass(Node node){\n\t\t\r\n\t\tNodeList childNodes=node.getChildNodes(); //Obtiene los hijos de la clase\r\n\t\t\r\n\t\tint length=childNodes.getLength(); //Cantidad de Elementos (Atributos y Operaciones)\r\n\t\t\r\n\t\tfor (int i = 0; i < length; i++) {\r\n\t\t\r\n\t\t\tNode nodoAux=childNodes.item(i); //Similar al .get(i)\r\n\r\n\t\t\tif(nodoAux.getNodeType()==Node.ELEMENT_NODE && nodoAux.getNodeName().equals(getVariables().NODE_OPERATION_CLASS)) // Solo valida los \"listaAtributos\"\r\n\t\t\t{\r\n\t\t\t\t\r\n\t\t\t\tif (nodoAux.getAttributes().getNamedItem(getVariables().ATTRIBUTE_RETURN_OPERATION_CLASS) !=null ){\r\n\t\t\t\t\tString returnType = nodoAux.getAttributes().getNamedItem(getVariables().ATTRIBUTE_RETURN_OPERATION_CLASS).getNodeValue();\r\n\t\t\t\t\tString[] parts = returnType.split(\" \");\r\n\t\t\t\t\tif (parts.length > 1){\r\n\t\t\t\t\t\tcreateViolation(getWebSourceCode().getLineForNode(nodoAux), MESSAGE);\r\n\t\t\t\t\t}\t\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "55b898c5f488ade2fe02cf2dc1888a2e", "score": "0.4976139", "text": "public interface set_value_byaccessor_callback extends Callback {\n\t\tint apply(cef_v8value_t self, cef_string_utf16_t key, int settings, int attribute);\n\t}", "title": "" }, { "docid": "ebf555fe381cf03cfb1d613fac01588c", "score": "0.49759308", "text": "public abstract void setAttributeAccessor(ATTRIBUTE_ACCESSOR attributeAccessor);", "title": "" }, { "docid": "b22ab5af7dfd91ad755da1e391af2fde", "score": "0.4968789", "text": "public int getAttributeValue(){\r\n return attributeValue;\r\n }", "title": "" }, { "docid": "01ce12f37c7e1e59bfa37f2623170a1f", "score": "0.49673587", "text": "public void setClassAttributes(Attribute[] classAttributes) {\r\n\t\tthis.classAttributes = classAttributes;\r\n\t}", "title": "" }, { "docid": "3b43e78033799d9e8caea6304ddd5bcc", "score": "0.49551752", "text": "@Override public boolean attributeForClass(String var, Object val) {\n\t\tString[] vars = StringUtils.split(var, \".\");\n\t\tObject o = null;\n\t\tfor(String v : vars) {\n\t\t\tif(o == null)\n\t\t\t\to = attributeDesignDisplayPage(v, val);\n\t\t\telse if(o instanceof Cluster) {\n\t\t\t\tCluster cluster = (Cluster)o;\n\t\t\t\to = cluster.attributeForClass(v, val);\n\t\t\t}\n\t\t}\n\t\treturn o != null;\n\t}", "title": "" }, { "docid": "a3043360d6b3569f8e466c010a74b55f", "score": "0.49470532", "text": "@Override\r\n\t\t\t\tpublic void setAttribute(String arg0, Object arg1) {\n\t\t\t\t\t\r\n\t\t\t\t}", "title": "" }, { "docid": "e04fcf66a33017fdff41a71c09dcca9b", "score": "0.49415007", "text": "public InnerClassAttr() { //\r\n list = new ArrayList();\r\n }", "title": "" }, { "docid": "4aa09b1747a8e1585e313d1381f9c8e3", "score": "0.4936439", "text": "public int getAttributeNum(){\r\n return attributeCount;\r\n }", "title": "" }, { "docid": "da89561e057b39354c99d2748540a7b4", "score": "0.492839", "text": "public final EventAttribute getAttribute(final int i) {\n\treturn attributes[i];\n }", "title": "" }, { "docid": "59f5ce5c23043cdb74db8b529d727301", "score": "0.49121347", "text": "public interface AttributeAccess {\r\n\r\n /** Returns the attribute's value. */\r\n public Object getValue(Storable object);\r\n\r\n /** Sets the attribute's value. */\r\n public void setValue(Storable object, Object value);\r\n\r\n /** Returns true if the attribute can store <code>null</code> values. */\r\n public boolean allowsNullValue();\r\n\r\n /**\r\n * Creates a specific attribute access instances. AttributeAccess objects\r\n * are their own factories and this object makes new instances using the\r\n * specified <code>attributeName</code> and <code>objectClass</code>.\r\n */\r\n public AttributeAccess make(String attributeName, Class<?> objectClass);\r\n\r\n public static final AttributeAccess FIELD = new FieldAccess();\r\n public static final AttributeAccess METHOD = new MethodAccess();\r\n\r\n static class FieldAccess implements AttributeAccess {\r\n\r\n private Field field;\r\n\r\n private FieldAccess() {\r\n }\r\n\r\n private FieldAccess(String attributeName, Class<?> objectClass) {\r\n try {\r\n field = objectClass.getDeclaredField(attributeName);\r\n field.setAccessible(true);\r\n } catch (NoSuchFieldException e) {\r\n throw new InternalError(\"can't create accessor - no public field \" + attributeName);\r\n }\r\n }\r\n\r\n public AttributeAccess make(String attributeName, Class<?> objectClass) {\r\n return new FieldAccess(attributeName, objectClass);\r\n }\r\n\r\n public Object getValue(Storable object) {\r\n try {\r\n return field.get(object);\r\n } catch (IllegalAccessException e) {\r\n throw new InternalError(\"it's forbidden to read field \" + field.getName());\r\n }\r\n }\r\n\r\n public void setValue(Storable object, Object value) {\r\n try {\r\n field.set(object, value);\r\n } catch (IllegalAccessException e) {\r\n throw new InternalError(\"it's forbidden to write field \" + field.getName());\r\n }\r\n }\r\n\r\n public boolean allowsNullValue() {\r\n return !field.getType().isPrimitive();\r\n }\r\n }\r\n\r\n static class LesserFieldAccess extends FieldAccess {\r\n }\r\n\r\n static class MethodAccess implements AttributeAccess {\r\n\r\n private Method getter;\r\n private Method setter;\r\n\r\n private MethodAccess() {\r\n }\r\n\r\n private MethodAccess(String attributeName, Class<?> objectClass) {\r\n String name = capitalize(attributeName);\r\n try {\r\n getter = objectClass.getMethod(\"get\" + name, (Class<?>[]) null);\r\n } catch (NoSuchMethodException e) {\r\n try {\r\n getter = objectClass.getMethod(\"is\" + name, (Class<?>[]) null);\r\n } catch (NoSuchMethodException ee) {\r\n throw new InternalError(\"can't create accessor - no public getter method found for \" + attributeName);\r\n }\r\n }\r\n try {\r\n setter = objectClass.getMethod(\"set\" + name, new Class[]{ getter.getReturnType() });\r\n } catch (NoSuchMethodException e) {\r\n throw new InternalError(\"can't create accessor - no public setter method found for \" + attributeName);\r\n }\r\n }\r\n\r\n public AttributeAccess make(String attributeName, Class<?> objectClass) {\r\n return new MethodAccess(attributeName, objectClass);\r\n }\r\n\r\n public Object getValue(Storable data) {\r\n try {\r\n return getter.invoke(data, (Object[]) null);\r\n } catch (InvocationTargetException e) {\r\n throw new InternalError(\"exception while calling getter \" + getter.getName());\r\n } catch (IllegalAccessException e) {\r\n throw new InternalError(\"it's forbidden to call getter \" + getter.getName());\r\n }\r\n }\r\n\r\n public void setValue(Storable data, Object value) {\r\n try {\r\n setter.invoke(data, new Object[]{ value });\r\n } catch (InvocationTargetException e) {\r\n throw new InternalError(\"exception while calling setter \" + setter.getName());\r\n } catch (IllegalAccessException e) {\r\n throw new InternalError(\"it's forbidden to call setter \" + setter.getName());\r\n }\r\n }\r\n\r\n public boolean allowsNullValue() {\r\n return !getter.getReturnType().isPrimitive();\r\n }\r\n\r\n private String capitalize(String s) {\r\n return Character.toUpperCase(s.charAt(0)) + s.substring(1);\r\n }\r\n }\r\n}", "title": "" }, { "docid": "df74b4b7114f59dd7a099c840c0c9ab2", "score": "0.49107847", "text": "public UpAttribute() {\n\tfor(int i=0;i<NATTR;i++) attr.put(ATTRKey[i],new String());\n }", "title": "" } ]
cf6d121941105b201c5bd46109fa07dd
Returns product catalog which consists of product information
[ { "docid": "12e4cee3f0e77253473f5c84afc351ac", "score": "0.629042", "text": "Catalog getCatalog() throws RemoteException;", "title": "" } ]
[ { "docid": "06892f3e38a5fd10c84e793557ac56b3", "score": "0.716195", "text": "private ProductCatalog() {\n products.put(1, new ProductSpecification(1, \"low fat milk\",\n \"Its milk but less good\", 10));\n products.put(2, new ProductSpecification(2, \"butter\",\n \"Its milk but thicker and stuff, good on bread\", 10));\n products.put(3, new ProductSpecification(3, \"bread\",\n \"Not milk to be sure but ground up plants of some kind\", 10));\n products.put(3, new ProductSpecification(3,\"Apple\",\n \"Also not a milk but some kind of tree leaf\", 2));\n products.put(4, new ProductSpecification(4,\"Grapes\",\n \"Weird colored orb that grows off of dead looking strings\", 1));\n products.put(5, new ProductSpecification(5,\"Orange\",\n \"Another Weird Leaf not sure what the obsession with leafes is\", 2));\n products.put(6, new ProductSpecification(6, \"Celery\",\n \"Green stick, not very good or nourishing\", 1));\n products.put(7, new ProductSpecification(7, \"Chicken\",\n \"A very Tasty bird. I strongly recommend you try it with bread\", 7));\n products.put(8, new ProductSpecification(8, \"Steak\",\n \"Basically the juicy parts of a cow. Very Very good, do not eat it with sauce\", 10));\n products.put(9, new ProductSpecification(9, \"Burger\",\n \"Kinda like a stead that has been ground up then smashed back together\", 8));\n products.put(10, new ProductSpecification(10, \"Pork\",\n \"Dont pay any attention to the animal it comes from, Pork is amazing\", 8));\n }", "title": "" }, { "docid": "60b0db7fef73d0d0477bb255cefa9dd7", "score": "0.70566547", "text": "public Catalog getCatalog(){\n\t\treturn new Catalog(this);\n\t}", "title": "" }, { "docid": "44a4080c6d2109270d3be3a98e1317ee", "score": "0.69422877", "text": "protected IProductCatalogue getProductCatalogue() {\n return jpa.getProductCatalogue();\n }", "title": "" }, { "docid": "59db4cc1c262a3cade1e71c3d0da4b99", "score": "0.68821925", "text": "public Catalog getCatalog() {\r\n return this.catalog;\r\n }", "title": "" }, { "docid": "bf7db915d681065d7cfc8444326a3702", "score": "0.6698685", "text": "public void getProductInfo() {\n\t\tString name = getString(\"Enter product's name: \");\n\t\tIterator<Result> iterator = groceryStore.getProductInfo(name);\n\t\tResult result;\n\n\t\tif (!iterator.hasNext()) {\n\t\t\tSystem.out.println(\"Error: product does not exist\");\n\t\t} else {\n\t\t\twhile (iterator.hasNext()) {\n\t\t\t\t// print info for each result object\n\t\t\t\tresult = iterator.next();\n\t\t\t\tSystem.out.printf(\"Product: %s, ID: %s, Price: %.2f, Stock in hand: %d, reorder level: %d\\n\",\n\t\t\t\t\t\tresult.getProductName(), result.getProductId(), result.getProductCurrentPrice(),\n\t\t\t\t\t\tresult.getProductStockOnHand(), result.getProductReorderLevel());\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "ae71c573412eb3cc1fc39395a9319346", "score": "0.65906173", "text": "Collection<ProductDetails> getProductsRet();", "title": "" }, { "docid": "7cad360c9a65915eb0bb26e995e8d7f0", "score": "0.6544886", "text": "void printCatalog();", "title": "" }, { "docid": "5ae6ddf4f4077466d8da60cf96aa101d", "score": "0.65280926", "text": "@Override\n\tpublic java.lang.String getCatalogName() {\n\t\treturn _cjProduct.getCatalogName();\n\t}", "title": "" }, { "docid": "d5adcae4072e86ac86880f8c2ec7745d", "score": "0.65160716", "text": "public Catalog()\n {\n \n try {\n\t// RELCAT\n\trelCat = new RelCatalog(\"relcatalog\");\n\t\n\t// ATTRCAT\n\tattrCat = new AttrCatalog(\"attrcatalog\");\n\t\n\t// INDCAT\n\tindCat = new IndexCatalog(\"indexcatalog\");\n }\n catch (Exception e) {\n\tSystem.err.println (\"\"+e);\n }\n }", "title": "" }, { "docid": "b95b28ddd7a477ee15339d2e0df25dab", "score": "0.65055573", "text": "public java.lang.String getCatalogo();", "title": "" }, { "docid": "4124ef8f097aaee81df33d471ae717ed", "score": "0.6478672", "text": "public SafeProductIterator getProductList() {\n\t\tSafeProductIterator resultIterator = new SafeProductIterator(catalog.iterator());\n\n\t\treturn resultIterator;\n\t}", "title": "" }, { "docid": "30de6121b25d54ddd1c1e9ae1a9da38a", "score": "0.645435", "text": "private static Catalog inicializar() {\n\t\tStore store = new Store();\n\t\tstore.save();\n\n\t\tCatalog catalog = new Catalog();\n\t\tcatalog.addProduct(1, \"Coca-cola\", 3, true, \"cocaCola.png\", 2);\n\t\tcatalog.addProduct(2, \"Fanta\", 4, false, \"fanta.jpg\", 0);\n\t\tcatalog.addProduct(3, \"Sprite\", 5, false, \"sprite.png\", 3);\n\t\tcatalog.addProduct(4, \"Fioravanti\", 6, true, \"fioravanti.jpg\", 5);\n\t\tcatalog.addProduct(5, \"Inca Kola\", 7, false, \"incaKola.jpg\", 6);\n\t\tcatalog.addProduct(6, \"Nestea\", 3, false, \"nestea.jpg\", 0);\n\t\tcatalog.save();\n\n\t\treturn catalog;\n\n\t}", "title": "" }, { "docid": "b09ac59b2bf95e4b0b2fd2b0651d19de", "score": "0.6419247", "text": "void catalog();", "title": "" }, { "docid": "8ed8167c3a5ee1fac9dd43e195ff7226", "score": "0.6335839", "text": "public Catalog getCatalog() {\r\n return localCatalog;\r\n }", "title": "" }, { "docid": "8ed8167c3a5ee1fac9dd43e195ff7226", "score": "0.6335839", "text": "public Catalog getCatalog() {\r\n return localCatalog;\r\n }", "title": "" }, { "docid": "c7b04104d51e22282fd52fa8ae908ce7", "score": "0.63056266", "text": "String getCatalogSp();", "title": "" }, { "docid": "2819f24587c47eeda13b2d5fefb0dbbe", "score": "0.6296644", "text": "java.lang.String getCatalogName();", "title": "" }, { "docid": "1fd3424e2c549cfb08f9eadeabe914a7", "score": "0.62621117", "text": "String getProductDescription();", "title": "" }, { "docid": "6509765ecdae90f4d5b17099e4594402", "score": "0.6233436", "text": "public java.sql.ResultSet getCatalogs() throws java.sql.SQLException\r\n {\r\n java.sql.ResultSet RS = Conn.createStatement().executeQuery(\r\n \"SHOW DATABASES\");\r\n java.sql.ResultSetMetaData RSMD = RS.getMetaData();\r\n\r\n Field[] Fields = new Field[1];\r\n Fields[0] = new Field(\"\", \"TABLE_CAT\", RSMD.getColumnDisplaySize(1), 1, (short)0, 0);\r\n\r\n Vector Tuples = new Vector();\r\n\r\n while (RS.next()) {\r\n StringBuffer[] RowVal = new StringBuffer[1];\r\n RowVal[0] = new StringBuffer(RS.getString(1));\r\n Tuples.addElement(RowVal);\r\n }\r\n \r\n return new ResultSet(Fields, Tuples);\r\n }", "title": "" }, { "docid": "4787fa98171ab85092e1a47b6211eb95", "score": "0.6231563", "text": "public static ProductCatalog getInstance () {\n return ProductCatalog.instance;\n }", "title": "" }, { "docid": "4833a295bd905e3e69c0b619e57fe9d2", "score": "0.6199799", "text": "public List<Product> ViewProductionDetails();", "title": "" }, { "docid": "a9d7a728ee75375dd0dd14f502f5d303", "score": "0.6182506", "text": "public String getCatalogNumber();", "title": "" }, { "docid": "70e8e4ca75e0afca1669f0ab663e7c4d", "score": "0.6149736", "text": "public List<Catalog> getCatalogs()\n\t{\n\t\treturn this.getCatalogs(\"\", false);\n\t}", "title": "" }, { "docid": "f21fe89361fb6ece011900838c0e4fb3", "score": "0.6148388", "text": "ProductStore getProductStore();", "title": "" }, { "docid": "2d2f271c3b9223772245e56e3a48d36d", "score": "0.61415267", "text": "@GetMapping(\"/productById/{id}\")\n\tpublic List<ProductCatalog> findProductById(@PathVariable Integer id) {\n\t\treturn productCatalogRepo.findByid(id);\n\t}", "title": "" }, { "docid": "ba1e4176fdf1a39868e0bf379d3dd5b3", "score": "0.6096058", "text": "@Override\n\tpublic String toString() {\n\t\treturn \"Product [id=\" + id + \", name=\" + name + \", description=\" + description + \", childSkus=\" + childSkus\n\t\t\t\t+ \"]\";\n\t}", "title": "" }, { "docid": "616500d5a491a69653b00712c2918aaa", "score": "0.60910386", "text": "@Nonnull\n public com.microsoft.graph.requests.AccessPackageCatalogWithReferenceRequestBuilder catalog() {\n return new com.microsoft.graph.requests.AccessPackageCatalogWithReferenceRequestBuilder(getRequestUrlWithAdditionalSegment(\"catalog\"), getClient(), null);\n }", "title": "" }, { "docid": "7971011a58bfa25f637762e6151dd016", "score": "0.6089759", "text": "@Override\n public Collection<Product> getAllProducts() {\n List<Product> products = null;\n try{\n final String sql = \"SELECT * FROM PRODUCT_CATALOG\";\n products = jdbcTemplate.query(sql, new ProductRowMapper());\n } catch (Exception e){\n log.error(e.getMessage(), e);\n //throw e;\n }\n return products;\n }", "title": "" }, { "docid": "16dd4845356d1baa5b2a80a3597544ac", "score": "0.60870296", "text": "org.mrk.grpc.catalog.CatalogItem getCatalogItems(int index);", "title": "" }, { "docid": "ab5757931c1f94276ebfa3c454be6fa6", "score": "0.60808575", "text": "public String getCatalogName() {\n return catalogName;\n }", "title": "" }, { "docid": "b7597f95bfd6a00999cdd44fbbed96a8", "score": "0.6065037", "text": "public String getCatalogId() {\n return catalogId;\n }", "title": "" }, { "docid": "87c835c88082b05418f33e3598064719", "score": "0.6055131", "text": "Product getProduct();", "title": "" }, { "docid": "87c835c88082b05418f33e3598064719", "score": "0.6055131", "text": "Product getProduct();", "title": "" }, { "docid": "4806eb1c4f63b5ca5dc19122a054b084", "score": "0.6043961", "text": "@Override\r\n\tpublic Map<CategoryType, Set<Product>> getProducts() {\n\r\n\t\tMap<CategoryType, Set<Product>> products = new HashMap<CategoryType, Set<Product>>();\r\n\t\t//DB Implementation out of scope\r\n\t\t\r\n\t\treturn products;\r\n\t}", "title": "" }, { "docid": "bed8b1fb0696cb40ff50c9df58141cbc", "score": "0.60351723", "text": "Object getProduct();", "title": "" }, { "docid": "fe091cd22f9c163eb08527e6440a9c21", "score": "0.60127205", "text": "CatalogPackage getCatalogPackage();", "title": "" }, { "docid": "b313b13c3901163a495a9570461409cb", "score": "0.60109097", "text": "public Catalog() {\n\t\tthis.pieces = new LinkedList<Piece>();\n\t}", "title": "" }, { "docid": "0cf83deb7647a22eba2071c0f71cd870", "score": "0.5984817", "text": "@Override\r\n\tpublic List<Product> showProducts() {\n\t\treturn repo.showProducts();\r\n\t}", "title": "" }, { "docid": "ebdd667fdbd2601acffcf6cdc47a35aa", "score": "0.5975548", "text": "java.util.List<io.adetalhouet.order.system.product.grpc.Product> \n getProductsList();", "title": "" }, { "docid": "0a20dda70bb751e9ba4bb686e83959f7", "score": "0.59652805", "text": "public int getCatalogId() {\r\n return catalogId;\r\n }", "title": "" }, { "docid": "6cb8e83375d2baa5d54e9439d1ef6535", "score": "0.59632164", "text": "@Override\n\tpublic List<CardDetails> getProducts() {\n\t\treturn cardRepo.findAll();\n\t}", "title": "" }, { "docid": "743818c6b7baac4afe7b9a8e67c7f691", "score": "0.5958873", "text": "@Override\n\tpublic Map<String, Object> getAllProductos() {\n\t\treturn kpdao.getAllProductos();\n\t}", "title": "" }, { "docid": "88eb35ecbaa9a73c58fe0188ebfe3ecd", "score": "0.5957648", "text": "public List<String> getCatalogsName();", "title": "" }, { "docid": "d0cbc5fd3a9a3e608610006c13b7288f", "score": "0.59528005", "text": "public List<ProductDetails> getProductData() {\n\n\t\tJSONParser jsonParser = new JSONParser();\n\t\ttry {\n\t\t\tFile file = new File(\"/tmp/itemproductdetails.json\");\n\t\t\tif (!file.exists()) {\n\t\t\t\treturn null;\n\t\t\t}\n\t\t\tObject object = jsonParser.parse(new FileReader(\"/tmp/itemproductdetails.json\"));\n\t\t\tJSONObject jsonObject = (JSONObject) object;\n\t\t\tJSONArray product = (JSONArray) jsonObject.get(\"product\");\n\t\t\treturn createProductList(product);\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"exception\");\n\t\t}\n\t\treturn null;\n\t}", "title": "" }, { "docid": "49a1a945fad06de74430021a39f58acf", "score": "0.5951419", "text": "public de.epages.ws.catalog4.model.TGetInfo_Return[] getInfo(java.lang.String[] catalogs, java.lang.String[] attributes, java.lang.String[] languageCodes) throws java.rmi.RemoteException;", "title": "" }, { "docid": "9003a5c9f726e72b4b3f5d06c7139075", "score": "0.5950947", "text": "@Override\n\tpublic List<Product> showAllProduct() {\n\t\treturn myList;\n\t}", "title": "" }, { "docid": "8989b49d61255ed38eed84071d5e636e", "score": "0.5949135", "text": "public GBCatalog getCatalog(String catalog_name) throws GB_Exception{\n GBCatalog catalog = new GBCatalog(catalog_name, null);\n ArrayList<GBCatalogItem> items = new ArrayList<>();\n LOG.debug(\"Starting to charge catalog: \"+catalog_name);\n LOG.debug(\"Loading database catalog\");\n List item_db = loadCatalog(catalog_name);\n if(item_db == null){\n LOG.fatal(\"The catalog \"+catalog_name+\" cant loaded from data base.\");\n throw new GB_Exception(\"The catalog cant charge.\");\n }\n LOG.debug(\"The catalog container is assembling\");\n for(Object c: item_db){\n AdCatalogs cata_db = (AdCatalogs)c;\n LOG.debug(\"Put a item into catalog:\"+catalog_name+\", item id: \"+cata_db.getGbCatagogItemId()+\", the catalog item: \"+cata_db.getGbCatalogItem());\n GBCatalogItem item = new GBCatalogItem(cata_db.getGbCatagogItemId(), cata_db.getGbCatalogItem(), cata_db.getGbCatalogDescription());\n items.add(item);\n }\n if(items.isEmpty()){\n LOG.fatal(\"The catalog hasn´t items.\");\n throw new GB_Exception(\"The catalog is empty.\");\n }\n catalog.setItems(items);\n return catalog;\n }", "title": "" }, { "docid": "aa7900f14a461d06d94e2986e977bf74", "score": "0.5948396", "text": "@Override\r\n public String toString() {\r\n return getTitle() + \" (\" + getCatalogNumber() + \")\";\r\n }", "title": "" }, { "docid": "7f10fead8c3a65ad5f3b9d54958a141b", "score": "0.5945093", "text": "public static ProductCatalogDataBuilder of() {\n return new ProductCatalogDataBuilder();\n }", "title": "" }, { "docid": "4c8c5c91b92b0b70e3ea771b9dde4c2b", "score": "0.59424657", "text": "public String getProductInformation() {\n return productInformation;\n }", "title": "" }, { "docid": "bbff5b40739fae14545408910a3d9e60", "score": "0.5940896", "text": "io.adetalhouet.order.system.product.grpc.Product getProducts(int index);", "title": "" }, { "docid": "385cc271364ea9f3de32072dbf7090f0", "score": "0.59323573", "text": "public void printProductDetails()\n {\n for(Product product : stock){\n System.out.println(product.toString()); \n }\n }", "title": "" }, { "docid": "9c39ee81124528952f4bddca6ae2bf46", "score": "0.5927755", "text": "String getSupplierCatalogCode();", "title": "" }, { "docid": "a167f0f8a734f811fc8e68ef2e50610a", "score": "0.5923778", "text": "public String getCatalog () throws java.sql.SQLException\n {\n //checkForClosedConnection ();\n //throw new DriverNotCapableException (ErrorKey.driverNotCapable__catalogs__);\n return null;\n }", "title": "" }, { "docid": "bc174ef55071b1b08265a0104b2a12aa", "score": "0.5923523", "text": "public Olap4ldCatalog getCatalog() {\n return olap4jLevel.olap4jHierarchy.olap4jDimension.olap4jCube\n .olap4jSchema.olap4jCatalog;\n }", "title": "" }, { "docid": "d18222908410d1078e3c916d570d01d3", "score": "0.59223354", "text": "public List getProducts(Product product);", "title": "" }, { "docid": "e9b1c2ec03474ed0750b9eb250e4ae2b", "score": "0.59140766", "text": "public List<AmazonProduct> getShoppingItemsDetails() {\r\n try {\r\n Thread.sleep(2000);\r\n List<AmazonProduct> listAmazonProduct = new ArrayList<AmazonProduct>();\r\n for (int i = 2; i <= 6; i++) {\r\n String actProductContainerLocator =\r\n PRODUCT_CONTAINER.replace(\"[X]\", \"[\" + Integer.toString(i) + \"]\");\r\n\r\n amazonProduct.setLocatorProductName(actProductContainerLocator + PRODUCT_NAME_EXT);\r\n amazonProduct.setName(getProductName(actProductContainerLocator));\r\n amazonProduct.setStrPrice(getProductPrice(actProductContainerLocator));\r\n if ((amazonProduct.getStrPrice() != StrHlp.EMPTY_STRING)\r\n && (amazonProduct.getStrPrice() != null))\r\n amazonProduct\r\n .setPrice(Double.parseDouble((amazonProduct.getStrPrice().replace(\",\", \".\"))));\r\n listAmazonProduct.add(amazonProduct);\r\n }\r\n return listAmazonProduct;\r\n } catch (Exception e) {\r\n ErrorHandler.markTestCaseAsFailed(e);\r\n return null;\r\n }\r\n }", "title": "" }, { "docid": "54ee2ccd95dfc681a2ba542f6a2c14f7", "score": "0.59000474", "text": "public String getCatalogTerm() throws java.sql.SQLException \r\n {\r\n return \"catalog\";\r\n }", "title": "" }, { "docid": "c46ba29318ba7dd6811e618e402f0fa0", "score": "0.5872594", "text": "@Override\n\t\tpublic String getCatalog() throws SQLException {\n\t\t\treturn null;\n\t\t}", "title": "" }, { "docid": "741e7657d9fcdde38c782e6958a20457", "score": "0.5865224", "text": "public static void displayProducts() {\n try {\n Class.forName(jcbdDriver);\n conn = DriverManager.getConnection(dbUrl, user, pass);\n stmt = conn.createStatement();\n String sql = \"SELECT * FROM PRODUCT\";\n ResultSet rs = stmt.executeQuery(sql);\n /*\n A while loop is made to display the information line by line in an organized manner. After\n the data is displayed, the query is closed using stmt.close(). The connection is also\n closed using a similar function, conn.close().\n */\n while (rs.next()) {\n String productType = rs.getString(\"TYPE\");\n }\n // Close the connection\n stmt.close();\n conn.close();\n } catch (ClassNotFoundException | SQLException e) {\n e.printStackTrace();\n } // End of catch.\n }", "title": "" }, { "docid": "583dea3dee2a17cb61a1e3a306b38e40", "score": "0.58568853", "text": "java.lang.String getCatalogId();", "title": "" }, { "docid": "bdb721d300f193785e431f65f8524448", "score": "0.5852488", "text": "@Override\n\tpublic List<ProductInfo> findAll() {\n\t\treturn getAll(SqlUtils.sqlFindByProperty(\"product_info\"), new ProductMapper());\n\t}", "title": "" }, { "docid": "a0d36ac92efa0e6c8272f413fe4d96a8", "score": "0.5844743", "text": "Map<Category, List<Product>> readProducts() throws TransformerException;", "title": "" }, { "docid": "336f7a712ab5284996f4993ed015ffc2", "score": "0.5843804", "text": "DescribeProductsResult describeProducts(DescribeProductsRequest describeProductsRequest);", "title": "" }, { "docid": "722db982123bc5485c78c7d7880cf394", "score": "0.584096", "text": "public List<Product> getAllProducts();", "title": "" }, { "docid": "41f6f379b658ce3bf2c35f196a3e2497", "score": "0.5832107", "text": "Product[] getAllProducts();", "title": "" }, { "docid": "7c0f4505a7c7d935586f9e7473b48be8", "score": "0.58275497", "text": "@Test\n public void listCatalogItemsTest() throws ApiException {\n String marketplaceId = null;\n String query = null;\n String queryContextId = null;\n String sellerSKU = null;\n String UPC = null;\n String EAN = null;\n String ISBN = null;\n String JAN = null;\n ListCatalogItemsResponse response = api.listCatalogItems(marketplaceId, query, queryContextId, sellerSKU, UPC, EAN, ISBN, JAN);\n\n // TODO: test validations\n }", "title": "" }, { "docid": "1bf528b06e7195401014bd2509132527", "score": "0.5826031", "text": "public String printProduct() {\n\t\treturn \"\\n*************************\\nProduct ID = \" + getId() +\"\\nProduct name = \" + getName_product() + \"\\nFactory name = \" + getName_factory() + \"\\nPrice = \" + getPrice() + \"\\n\";\n\t}", "title": "" }, { "docid": "4bb7f79aecc75f1a6812915b68203ff2", "score": "0.5823679", "text": "java.util.List<org.mrk.grpc.catalog.CatalogItem> \n getCatalogItemsList();", "title": "" }, { "docid": "adcfabd335d917961fadbfa7e79361cd", "score": "0.58189386", "text": "@GET\n public List<Product> getProducts() {\n return ProductManager.getInstance().getProducts();\n }", "title": "" }, { "docid": "2e3e5980d26a76d0c6fc4afe5ecf871c", "score": "0.5808187", "text": "public String getCatalogNumber() {\n return catalogNumber;\n }", "title": "" }, { "docid": "c86e7e02460a8139ccb52bb8379c0e67", "score": "0.58038914", "text": "public void listProducts() {\n\t\tIterator<Result> iterator = groceryStore.getAllProducts();\n\t\tif (iterator.hasNext()) {\n\t\t\t// displays the header of the table\n\t\t\tSystem.out.println(\"\\n\" + String.format(\"%-10s\", \"Product ID\") + \" \"\n\t\t\t\t\t+ String.format(\"%-25s\", \"Product Name\") + \" \" + String.format(\"%-13s\", \"Current Price\") + \" \"\n\t\t\t\t\t+ String.format(\"%-13s\", \"Stock On Hand\") + \" \" + String.format(\"%-13s\", \"Reorder Level\"));\n\t\t\tSystem.out.println(\"-\".repeat(82));\n\t\t\t// for loop prints all products\n\t\t\tfor (Iterator<Result> counter = iterator; counter.hasNext();) {\n\t\t\t\tResult result = counter.next();\n\t\t\t\tSystem.out.println(String.format(\"%-10s\", result.getProductId()) + \" \"\n\t\t\t\t\t\t+ String.format(\"%-25s\", fittedString(result.getProductName(), 25)) + \" \"\n\t\t\t\t\t\t+ String.format(\"%13.2f\", result.getProductCurrentPrice()) + \" \"\n\t\t\t\t\t\t+ String.format(\"%13s\", result.getProductStockOnHand()) + \" \"\n\t\t\t\t\t\t+ String.format(\"%13s\", result.getProductReorderLevel()));\n\t\t\t}\n\t\t} else {\n\t\t\t// in case the product database is empty\n\t\t\tSystem.out.println(\"No products in the database.\");\n\t\t}\n\t}", "title": "" }, { "docid": "7ed8abd558e627d28593203037954a00", "score": "0.5800644", "text": "void showProductDetails()\r\n {\r\n System.out.println(\"ProductId is\" +pid);\r\n System.out.println(\"Price is\" +price);\r\n System.out.println(\"name is \" +name);\r\n System.out.println(\"brand is \" +brand);\r\n System.out.println(\"os is \" +os);\r\n System.out.println(\"ram is \" +ram);\r\n }", "title": "" }, { "docid": "f25e8266105d8d001978778a8881112a", "score": "0.57829213", "text": "@Override\n\tpublic product getProducts() {\n\t\tList<vegitables> _vegitables = _vegitableRepository.findAll();\n\t\tList<books> _books = _BooksRepository.findAll();\n\t\tList<mobiles> _mobiles = _mobilesRepository.findAll();\n\t\t_product.setVegitables(_vegitables);\n\t\t_product.setBooks(_books);\n\t\t_product.setMobiles(_mobiles);\n\t\treturn _product;\n\n\t}", "title": "" }, { "docid": "7ca21974151a34850020192ffa50ce79", "score": "0.5776311", "text": "public abstract java.util.Collection getProducto_servicio_st();", "title": "" }, { "docid": "a8188117a6cdefc0a3549eb1c6ecab90", "score": "0.5765893", "text": "public void list() {\n for (CatalogItem i : catalogList) {\n System.out.println(i);\n }\n }", "title": "" }, { "docid": "a2b8f538d70c22f4bc20b62b70d3fa1d", "score": "0.5763205", "text": "@Override\n public List<Product> viewProducts() {\n return productdao.getAllProducts();\n }", "title": "" }, { "docid": "103304f8254978f4bd5621a85f43861d", "score": "0.5761879", "text": "public static void products() {\n Product product1 = new Product(1, \"Apple\", 2.10);\n\n// product1.setProductId(1);\n// product1.setProductName(\"Apple\");\n// product1.setProductPrice(2.00);\n\n Products.add(product1);\n\n Product product2 = new Product(2, \"Banana\", 8.25);\n\n// product2.setProductId(2);\n// product2.setProductName(\"Banana\");\n// product2.setProductPrice(8.00);\n\n Products.add(product2);\n\n Product product3 = new Product(3, \"Pineapple\", 18.90);\n\n// product3.setProductId(3);\n// product3.setProductName(\"Pineapple\");\n// product3.setProductPrice(18.00);\n\n Products.add(product3);\n\n Product product4 = new Product(4, \"Orange\", 6.00);\n\n// product4.setProductId(4);\n// product4.setProductName(\"Orange\");\n// product4.setProductPrice(6.00);\n\n Products.add(product4);\n\n Product product5 = new Product(5, \"Cherry\", 11.30);\n\n// product5.setProductId(5);\n// product5.setProductName(\"Cherry\");\n// product5.setProductPrice(11.00);\n\n Products.add(product5);\n\n //printing the products\n System.out.println(\"==============\");\n System.out.println(\"PRODUCTS\");\n System.out.println(\"==============\");\n System.out.println(Products);\n System.out.println(\"==============\");\n }", "title": "" }, { "docid": "bd204f56ee55a4b777bdae13a8200802", "score": "0.5758702", "text": "public ArrayList<Product> viewProduct() {\n ArrayList<Product> pList = new ArrayList<Product>();\n\n String sql = \"SELECT * from product\";\n try {\n ResultSet rs = dbConnect.dbRead(sql);\n while (rs.next() && rs != null) {\n Product p = new Product();\n p.setProduct_name(rs.getString(\"Name\"));\n p.setProduct_author(rs.getString(\"Author\"));\n p.setProduct_price(rs.getString(\"Price\"));\n pList.add(p);\n\n\n }\n //dbConnect.dbClose();\n\n } catch (SQLException ex) {\n ex.printStackTrace();\n }\n return pList;\n\n }", "title": "" }, { "docid": "c1fdcd77b69b267194731b6aad5ac7ca", "score": "0.57549", "text": "public StringBuilder showProductsInCurrentCart() {\r\n StringBuilder sb = new StringBuilder();\r\n for(Product product:products ) {\r\n sb.append(product.getProductId());\r\n sb.append(\" \");\r\n sb.append(product.getProductName());\r\n sb.append(\" \");\r\n sb.append(product.getProductPrice());\r\n sb.append(\"$ \");\r\n sb.append(product.getProductSale()*100);\r\n sb.append(\"%\");\r\n sb.append(\"\\n\");\r\n\r\n }\r\n System.out.println();\r\n return sb;\r\n }", "title": "" }, { "docid": "cadf5968e36bf4da0af8cbcb89b2a714", "score": "0.57516134", "text": "public List<ProductCategory> getAllProductCategories();", "title": "" }, { "docid": "ff661e40ce522f607e43359f1693ec50", "score": "0.5749277", "text": "List<Product> getAllProducts();", "title": "" }, { "docid": "b8cf06993136552382bade59db5cf56f", "score": "0.57409376", "text": "public String getProduct(){\n\t\treturn product;\n\t}", "title": "" }, { "docid": "2d710ba2de41e2b5cd9fdb23fb17036f", "score": "0.5730069", "text": "public ArrayList<Product> allProducts() {\n ArrayList<Product> productList = new ArrayList<>();\n try {\n Statement stm = dbconn.createStatement();\n ResultSet res = stm.executeQuery(\"Select ProductID, ProductName from dbo.products\");\n while (res.next()){\n Product productObject = new Product(res.getInt(1),res.getString(2));\n productList.add(productObject);\n }\n }\n catch (SQLException e) {\n e.printStackTrace();\n }\n finally {\n if (dbconn!=null){\n try {\n dbconn.close();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }\n }\n return productList;\n }", "title": "" }, { "docid": "a4b2ac4bad80ad81b261da25b9abb28b", "score": "0.57197326", "text": "@Override\n\tpublic List getAllProduct() {\n\t\treturn proddao.getAllProduct();\n\t}", "title": "" }, { "docid": "5edff9cc261fec5803faaba7c23b00ae", "score": "0.5709468", "text": "private Cd getProductById(String cdid) {\r\n\t\tCDCatalogServiceProxy proxy = new CDCatalogServiceProxy();\r\n\r\n\t\tCd product = null;\r\n\t\ttry {\r\n\t\t\tproduct = proxy.getProductInfo(cdid);\r\n\t\t} catch (RemoteException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\tlogger.error(e.getMessage());\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t\treturn product;\r\n\t}", "title": "" }, { "docid": "c2b3ac563d1c626f8e630ecaf2173d71", "score": "0.57058704", "text": "public static ArrayList<Product> selectProducts() {\n ConnectionPool pool = ConnectionPool.getInstance();\n Connection connection = pool.getConnection();\n PreparedStatement ps = null;\n ResultSet rs = null;\n\n String query = \"SELECT * FROM Product\";\n try {\n ps = connection.prepareStatement(query);\n rs = ps.executeQuery();\n ArrayList<Product> products = new ArrayList<Product>();\n while (rs.next()) {\n Product p = new Product();\n p.setProductName(\"productName\");\n p.setProductCode(rs.getString(\"productCode\"));\n p.setProductDescription(rs.getString(\"productDescription\"));\n p.setPrice(rs.getDouble(\"price\"));\n products.add(p);\n }\n return products;\n } catch (SQLException e) {\n e.printStackTrace();\n return null;\n } finally {\n DBUtil.closeResultSet(rs);\n DBUtil.closePreparedStatement(ps);\n pool.freeConnection(connection);\n }\n }", "title": "" }, { "docid": "b11cdd2fbd91a1d27d87e9236171ce95", "score": "0.5705662", "text": "public List<Catalog> getCatalogsIncludingRoot()\n\t{\n\t\treturn this.getCatalogs(\"\", true);\n\t}", "title": "" }, { "docid": "49c47a65528b6959f7da7023b7f31af1", "score": "0.5702913", "text": "public void listarProductos() {\n\t\tProducto c = new Producto();\n\t\tc.setId(1);\n\t\tc.setNombre(\"madera\");\n\t\tc.setStock(30);\n\t\t\n\t\tthis.productos.add(c/*this.cli.getProdcuto1(\"cemento\"));\n\n\t\tthis.productos.add(this.cli.getProdcuto2(\"clavos\")*/);\n\t\t\n\t}", "title": "" }, { "docid": "223ccac1e1b9d638511ab5169c2d24cc", "score": "0.5696473", "text": "public String getProduct() {\n return product;\n }", "title": "" }, { "docid": "2a2ab1432263c1d260a9b32bdc8ea208", "score": "0.569082", "text": "public Collection<SimpleDataRepository.Product> getAllProducts() {\n return dataRepository.getProducts();\n }", "title": "" }, { "docid": "87a0bcce321427c1898dc8f74441458b", "score": "0.56854755", "text": "@Override\n public String toString() {\n return \"Product{\" + \"id=\" + id + \", price=\" + price + \", name=\" + name + \", description=\" + description + '}';\n }", "title": "" }, { "docid": "1cfffd53967c3653d17c71d87cbe652c", "score": "0.5683727", "text": "public String getProductDescription() {\n return productDescription;\n }", "title": "" }, { "docid": "0ee76065db539167702989d14a811737", "score": "0.5677318", "text": "public ProductDetails() {\n\t\tsuper();\n\t}", "title": "" }, { "docid": "89868a537702e8c3e874b608d4b15684", "score": "0.5676037", "text": "public ProductCatalogData build() {\n Objects.requireNonNull(published, ProductCatalogData.class + \": published is missing\");\n Objects.requireNonNull(current, ProductCatalogData.class + \": current is missing\");\n Objects.requireNonNull(staged, ProductCatalogData.class + \": staged is missing\");\n Objects.requireNonNull(hasStagedChanges, ProductCatalogData.class + \": hasStagedChanges is missing\");\n return new ProductCatalogDataImpl(published, current, staged, hasStagedChanges);\n }", "title": "" }, { "docid": "361b22211cd99a4160bc2d7d65c9de5b", "score": "0.5674328", "text": "public String getProductName();", "title": "" }, { "docid": "6d961dd6909c421329447e61bed91074", "score": "0.56741464", "text": "public void setCatalog(Catalog catalog) {\r\n this.catalog = catalog;\r\n }", "title": "" }, { "docid": "0af14d3b47fb037b44532bb3ddd84636", "score": "0.56713855", "text": "public void displayProducts(){\r\n \tfor(int i = 0; i < products.size(); i++) {\r\n \t\tSystem.out.println(products.get(i).toString() + \"\\n\");\r\n \t}\r\n\t}", "title": "" }, { "docid": "49315745e19d20a745a4b7b428617067", "score": "0.5668737", "text": "@Override\r\n\tpublic ArrayList<Product> getAllProductList() {\n\t\tArrayList<Product> productList=new ArrayList<>();\r\n\t\ttry(Connection conn=JdbcUtil.getInstance().getConnection();) {\r\n\t\t\tString sql=\"select * from product order by id desc\";\r\n\t\t\tPreparedStatement ps=conn.prepareStatement(sql);\r\n\t\t\tResultSet rs=ps.executeQuery();\r\n\t\t\twhile(rs.next()) {\r\n\t\t\t\tProduct product=new Product();\r\n\t\t\t\tproduct.setProductId(rs.getInt(1));\r\n\t\t\t\tproduct.setProductName(rs.getString(2));\r\n\t\t\t\tproduct.setProductPrice(rs.getDouble(3));\r\n\t\t\t\tproduct.setProductInventory(rs.getInt(4));\r\n\t\t\t\tproduct.setProductSeller(rs.getString(5));\r\n\t\t\t\tproduct.setProductDes(rs.getString(6));\r\n\t\t\t\tproductList.add(product);\t\r\n\t\t\t}\t\t\t\r\n\t\t} catch (SQLException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t\t\r\n\t\t}\t\t\r\n\t\treturn productList;\r\n\t}", "title": "" }, { "docid": "7416121ad16b4d2a5b2c86f6b7e797bd", "score": "0.56632817", "text": "private void getProduct(){\n String url = \"http://www.conforama.fr/decoration-textile/linge-de-lit/taie-d-oreiller-et-traversin/taie-d-oreiller-63x63-cm-anastasia/p/538393\";\n String xsl = \"xsl/conforama/product1.xsl\";\n System.out.println(craw.craw(url, xsl));\n }", "title": "" } ]
25197b4cf814864ecd440f23b9149cb3
TODO Autogenerated method stub
[ { "docid": "33c82161cecc5d66f996c95269d96f27", "score": "0.0", "text": "public static void main(String[] args) {\n\n\t}", "title": "" } ]
[ { "docid": "63a51b9825ac81396e1d7ad0b9f3ed82", "score": "0.6866318", "text": "@Override\n\tpublic void 군무() {\n\t\t\n\t}", "title": "" }, { "docid": "15ae679aae74424c73fde647cf4332f6", "score": "0.68461496", "text": "@Override\r\n\t\t\tpublic void hissetmek() {\n\r\n\t\t\t}", "title": "" }, { "docid": "76a80470fd21f5a9092c258ed3a8a632", "score": "0.68199706", "text": "private static void 로또번호리스트() {\n\t\t\r\n\t}", "title": "" }, { "docid": "bfad11e436c98998f434617a4d2907e5", "score": "0.6690517", "text": "@Override\r\n\tpublic void adharno() {\n\t\t\r\n\t}", "title": "" }, { "docid": "33d41636b65afa8267c9085dae3d1a2d", "score": "0.6679176", "text": "private void apparence() {\r\n\r\n\t}", "title": "" }, { "docid": "9969c2cd0a26f223be9eea348d1c6160", "score": "0.6571234", "text": "private static void 로또수동생성() {\n\t\t\r\n\t}", "title": "" }, { "docid": "0b5b11f4251ace8b3d0f5ead186f7beb", "score": "0.65677965", "text": "@Override\n\tpublic void comer() {\n\t\t\n\t}", "title": "" }, { "docid": "5f8d37aee09bc1e9959f768d6eb0183c", "score": "0.6481211", "text": "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "title": "" }, { "docid": "1dd3d9bdd67d8cc8bddfe021796a9286", "score": "0.6433148", "text": "@Override\n protected void lodate() {\n\n }", "title": "" }, { "docid": "b62655d47438ae6875a06d0702721dbc", "score": "0.6424808", "text": "@Override\r\n\t\t\tpublic void koklama() {\n\r\n\t\t\t}", "title": "" }, { "docid": "d92d5fe4c6efcfe66d53457e76817518", "score": "0.64108074", "text": "@Override\r\n\t\t\tprotected void init() {\n\t\t\t\t\r\n\t\t\t}", "title": "" }, { "docid": "5435fed6c0a9345524c30343d8ed9829", "score": "0.63912827", "text": "@Override\r\n\tpublic void entrenar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "dda3b5a5b8e9e69b6eec0807bf162606", "score": "0.63636446", "text": "@Override\r\n\tpublic void rozmnozovat() {\n\t\t\r\n\t}", "title": "" }, { "docid": "00075c50e26b18237953cd05ffd5428b", "score": "0.63032013", "text": "@Override\n\tpublic void beber() {\n\t\t\n\t}", "title": "" }, { "docid": "1f7c82e188acf30d59f88faf08cf24ac", "score": "0.623686", "text": "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "title": "" }, { "docid": "1f7c82e188acf30d59f88faf08cf24ac", "score": "0.623686", "text": "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "title": "" }, { "docid": "76e3d99118a00e74a082f6a955778f7d", "score": "0.62293875", "text": "Grensesnitt(){}", "title": "" }, { "docid": "61358eff9372995c8157b02d47a44a6a", "score": "0.6186996", "text": "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "title": "" }, { "docid": "bf8fefe7b85b49281edb456698bfd556", "score": "0.616781", "text": "@Override\r\n\tpublic void descansar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "10ead2e988bf977cb8edb2bacf974891", "score": "0.61546874", "text": "@Override\n\tprotected void init() {\n\t\t\n\t}", "title": "" }, { "docid": "10ead2e988bf977cb8edb2bacf974891", "score": "0.61546874", "text": "@Override\n\tprotected void init() {\n\t\t\n\t}", "title": "" }, { "docid": "c612bcadafd393d086f44fd19558a8be", "score": "0.61533993", "text": "@Override\r\n\tpublic void inicialize() {\n\t\t\r\n\t}", "title": "" }, { "docid": "106ce0ada7b978eeffda7ec9cccc29e2", "score": "0.61470556", "text": "public void дразнит() {\n\n\t}", "title": "" }, { "docid": "a6e9388ba580a030c48b527221f8e81a", "score": "0.6139653", "text": "@Override\n\tpublic void actuar() {\n\t\t\n\t}", "title": "" }, { "docid": "958663dc976180cba7b91b2a4ebcb522", "score": "0.61089844", "text": "@Override\n\tpublic void atualiza() {\n\n\t}", "title": "" }, { "docid": "2bd152bb33ecbe797b9818e175c5d4ec", "score": "0.6105675", "text": "public void mo55659a() {\n }", "title": "" }, { "docid": "42693116fba02f3f07be1ab752c6d9bc", "score": "0.6063955", "text": "@Override\r\n\tpublic void concentrarse() {\n\t\t\r\n\t}", "title": "" }, { "docid": "cce15f647f795017e06f2ca544477ccd", "score": "0.6063628", "text": "@Override\n\tpublic void chamCong() {\n\n\t}", "title": "" }, { "docid": "c95af00aee2fa41e8a03e3640ca30750", "score": "0.6041561", "text": "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "title": "" }, { "docid": "b7d3c2b49702a5ed673b243bf8d2b7c0", "score": "0.60215324", "text": "@Override\n\tprotected void funcionario() {\n\t\t\n\t}", "title": "" }, { "docid": "0d996fa345e18b74a73dce6394fc0b15", "score": "0.60198766", "text": "@Override\r\n\tpublic void sunricers() {\n\t\t\r\n\t}", "title": "" }, { "docid": "a6c2db17f79f35f8fc3b8e99eee9ab48", "score": "0.60124713", "text": "@Override\r\n\tprotected void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "27c725838f280928d869cc973588317c", "score": "0.6001773", "text": "@Override\r\n\tpublic void doSelfOpertion() {\n\t\t\r\n\t}", "title": "" }, { "docid": "f350fb57d7c81ec6d70f2643960940a8", "score": "0.5986621", "text": "@Override \r\n public void init() {\n \r\n }", "title": "" }, { "docid": "4f035da85a44bb830509e046190e6ee5", "score": "0.59682363", "text": "@Override\r\n\tpublic void rajastanroyals() {\n\t\t\r\n\t}", "title": "" }, { "docid": "a0486d5f3890f3b56ce5a39122c4bdd7", "score": "0.59527355", "text": "@Override\r\n\tvoid metodo4() {\n\t\t\r\n\t}", "title": "" }, { "docid": "c744960aa067b28111e99db9ddf6aeed", "score": "0.59477377", "text": "@Override\r\n\tpublic void fragancia() {\n\t\t\r\n\t}", "title": "" }, { "docid": "288fd3ee71b736e770bbef790831c263", "score": "0.59301406", "text": "User mo18615e();", "title": "" }, { "docid": "6f1e0cfaa7350cf143896dace56978f5", "score": "0.59270483", "text": "@Override\n\tpublic void respirar() {\n\t\t\n\t}", "title": "" }, { "docid": "8b18fd12dbb5303a665e92c25393fb78", "score": "0.59239364", "text": "@Override\n\tprotected void initData() {\n\t\t\n\t}", "title": "" }, { "docid": "9808ba3c113b79c3677f2c08c09e60a1", "score": "0.59020513", "text": "@Override\n\tpublic void resert() {\n\t\t\n\t}", "title": "" }, { "docid": "416a053368cfd700d9d09414458911cd", "score": "0.58986443", "text": "@Override\n\tpublic void assamblyOfControlhead() {\n\t\t\n\t\t\n\t\t\n\t\n\n\t}", "title": "" }, { "docid": "c9b74342d0ae0e22bc7119b60588c66a", "score": "0.5897873", "text": "@Override\n\t\t\tpublic int getType() {\n\t\t\t\treturn 0;\n\t\t\t}", "title": "" }, { "docid": "c9b74342d0ae0e22bc7119b60588c66a", "score": "0.5897873", "text": "@Override\n\t\t\tpublic int getType() {\n\t\t\t\treturn 0;\n\t\t\t}", "title": "" }, { "docid": "77d32d2a2070d9c3117ff146ac04f114", "score": "0.5891585", "text": "@Override\r\n\tpublic void climaChuvoso() {\n\r\n\t}", "title": "" }, { "docid": "77f859c241fd5e1d997f67c3b890833e", "score": "0.5886342", "text": "@Override\n\tpublic void dormir() {\n\t\t\n\t}", "title": "" }, { "docid": "40577cf33330bd70c08bc8e310b4436d", "score": "0.58706117", "text": "@Override\n\tpublic void falar() {\n\n\t}", "title": "" }, { "docid": "79c707f3d28263fcc89902b0527d5c14", "score": "0.58528596", "text": "public void mo736a() {\n }", "title": "" }, { "docid": "42c3f8e63385f8e328b6828c1f7243d4", "score": "0.584987", "text": "@Override\r\n\t\tpublic void method_4() {\n\t\t\t\r\n\t\t}", "title": "" }, { "docid": "60e50abec8df6d4d5a80de13ba750171", "score": "0.5842782", "text": "@Override\r\n\tpublic void retour() {\n\t\t\r\n\t}", "title": "" }, { "docid": "debc6b4612a5fe9f0680a6bff73f25e6", "score": "0.58388203", "text": "@Override\r\n\t\tpublic void emettreSon() {\n\t\t\t\r\n\t\t}", "title": "" }, { "docid": "d56c498b25d1ea77dc09f49efcf80f6c", "score": "0.58347356", "text": "@Override\r\n\tpublic void aumentaFatorAcidade() {\n\r\n\t}", "title": "" }, { "docid": "a5d63cf5eb472d80fba18b0149c96501", "score": "0.5825308", "text": "@Override\n\tpublic void memberSecession() {\n\t\t\n\t}", "title": "" }, { "docid": "f4f7bcdf27874d7a17a80f57f8df43e0", "score": "0.5822819", "text": "public void mo10744d() {\n }", "title": "" }, { "docid": "d45e7311f809d3019d7382af887cb3cf", "score": "0.5799729", "text": "@Override\r\n\tpublic void dehlidervels() {\n\t\t\r\n\t}", "title": "" }, { "docid": "ce91051d32625345f2bf3562abbb93de", "score": "0.5794177", "text": "@Override\n\tprotected void inicializar() {\n\t}", "title": "" }, { "docid": "89b37f5fcca98bdfa7c243fc99d06675", "score": "0.5790634", "text": "@Override\r\n\tpublic void reanudar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "54b1134554bc066c34ed30a72adb660c", "score": "0.57844025", "text": "@Override\n\tprotected void initData() {\n\n\t}", "title": "" }, { "docid": "54b1134554bc066c34ed30a72adb660c", "score": "0.57844025", "text": "@Override\n\tprotected void initData() {\n\n\t}", "title": "" }, { "docid": "54b1134554bc066c34ed30a72adb660c", "score": "0.57844025", "text": "@Override\n\tprotected void initData() {\n\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "4a3a3aeaffc4b367a8aa8488e4b59610", "score": "0.57720804", "text": "public void mo10856b() {\n }", "title": "" }, { "docid": "1c10afc999966d89d84d1fb549910281", "score": "0.5770528", "text": "@Override \n\t\tprotected void parse() {\t\t\t\n\t\t}", "title": "" }, { "docid": "a46afb3a57efda28ee1b37c4a9b1960f", "score": "0.57642525", "text": "private void getEx() {\n\r\n\t}", "title": "" }, { "docid": "5e6804b1ba880a8cc8a98006ca4ba35b", "score": "0.5761362", "text": "@Override\n public void init() {\n\n }", "title": "" }, { "docid": "518a761521ca9f5cb8a8055b32b72cda", "score": "0.57596046", "text": "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "title": "" }, { "docid": "518a761521ca9f5cb8a8055b32b72cda", "score": "0.57596046", "text": "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "title": "" }, { "docid": "518a761521ca9f5cb8a8055b32b72cda", "score": "0.57596046", "text": "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "title": "" }, { "docid": "b95bbed498007dfeba9b078798c02e53", "score": "0.5754483", "text": "@Override\r\n\tpublic void exibir() {\n\t\t\r\n\t}", "title": "" }, { "docid": "03b93c6668ea7af171bbcdb3af74bb4a", "score": "0.57524616", "text": "@Override\n public void bicar() {\n }", "title": "" }, { "docid": "b2cde12cf50e0ec60f909684878e936c", "score": "0.57514966", "text": "@Override\n\tpublic void wykonajZamknij() {\n\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.575025", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57337177", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57337177", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "a53d232dac89259f961cbc93762f65b2", "score": "0.5731746", "text": "@Override\r\n\t\t\tvoid n() {\n\t\t\t\t\r\n\t\t\t}", "title": "" }, { "docid": "cf193ee51fc2ac8c94c94264e19ff99c", "score": "0.57304704", "text": "@Override\n public boolean cannibale() {\n return false;\n }", "title": "" }, { "docid": "cf193ee51fc2ac8c94c94264e19ff99c", "score": "0.57304704", "text": "@Override\n public boolean cannibale() {\n return false;\n }", "title": "" }, { "docid": "3b072172b17a5e5ab0081f24545795f2", "score": "0.57235396", "text": "public void przymocowac() {\n\t\t\n\t}", "title": "" }, { "docid": "17e507b0166d99f88c8237ad30d967b7", "score": "0.5716563", "text": "public void zamowic() {\n\t\t\n\t}", "title": "" }, { "docid": "a937c607590931387a357d03c3b0eef4", "score": "0.5715831", "text": "@Override\n\tprotected void initialize() {\n\n\t}", "title": "" }, { "docid": "a937c607590931387a357d03c3b0eef4", "score": "0.5715831", "text": "@Override\n\tprotected void initialize() {\n\n\t}", "title": "" }, { "docid": "7bbf3f0011f317b7faa88562e06495b7", "score": "0.5714223", "text": "@Override\r\n public void reculer() {\n }", "title": "" }, { "docid": "1ba6f6b334c51461b3fe944110e91ef5", "score": "0.5707728", "text": "@Override\n\tpublic void comerHojas() {\n\t\t\n\t}", "title": "" }, { "docid": "39132efb6b42f8ec625d96ff6226d80b", "score": "0.56991017", "text": "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "title": "" }, { "docid": "2d9072b54f55f18557f92b99be58ec2f", "score": "0.56886935", "text": "@Override\r\n public String toString() {\n\treturn null;\r\n }", "title": "" }, { "docid": "0ca16e78cddd3c7d9de74c662606bbac", "score": "0.5686997", "text": "public void mo4570b() {\n }", "title": "" }, { "docid": "359579516b65b36ff8c4344d8363a3ed", "score": "0.5686103", "text": "@Override\r\n\tprotected void initData() {\n\t}", "title": "" }, { "docid": "09488e6c7d4190869b37b126a578249f", "score": "0.56821704", "text": "@Override\r\n\t/**\r\n\t * \r\n\t */\r\n\tpublic int size() {\n\t\treturn 0;\r\n\t}", "title": "" }, { "docid": "b6c641fa6ba40a5b14cc33cb07aa0671", "score": "0.5669649", "text": "@Override\n\tprotected void initData() {\n\t}", "title": "" }, { "docid": "b6c641fa6ba40a5b14cc33cb07aa0671", "score": "0.5669649", "text": "@Override\n\tprotected void initData() {\n\t}", "title": "" }, { "docid": "001227e6b58a587f9eb4f77b15fc3588", "score": "0.5668976", "text": "@Override\n\tprotected void local() {\n\t\t\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5655942", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5655942", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" } ]
9690ea4fdbf5122e95e7585987512d57
Sets whether we're building a name for inclusion in a certificate
[ { "docid": "86a8833e502b20bfb74ca4c7c24d9d8a", "score": "0.62392336", "text": "public EndpointBuilder certificateName() {\n this.certificateName = true;\n return this;\n }", "title": "" } ]
[ { "docid": "ca3ef8da8f7ff176602d4fd1ddbeb0dd", "score": "0.60538894", "text": "public void setAppendName( boolean b ) { appendName = b; }", "title": "" }, { "docid": "70d094805f0af7c22c471b5231bceb02", "score": "0.588005", "text": "public void setTrueName(String value) {\n setAttributeInternal(TRUENAME, value);\n }", "title": "" }, { "docid": "44fa73d58e828a25fb3bb784ac519a6a", "score": "0.57400143", "text": "public void setRequirecert(boolean param){\r\n \r\n this.localRequirecert=param;\r\n \r\n\r\n }", "title": "" }, { "docid": "442372a7857f91fbd9575fb62b8c1178", "score": "0.56638926", "text": "void nameEnted(String name, boolean b);", "title": "" }, { "docid": "5b3c39866760222e7a1bbb08379b3841", "score": "0.56563634", "text": "public boolean is_set_name() {\n return this.name != null;\n }", "title": "" }, { "docid": "5b3c39866760222e7a1bbb08379b3841", "score": "0.56563634", "text": "public boolean is_set_name() {\n return this.name != null;\n }", "title": "" }, { "docid": "5b3c39866760222e7a1bbb08379b3841", "score": "0.56563634", "text": "public boolean is_set_name() {\n return this.name != null;\n }", "title": "" }, { "docid": "5b3c39866760222e7a1bbb08379b3841", "score": "0.56563634", "text": "public boolean is_set_name() {\n return this.name != null;\n }", "title": "" }, { "docid": "5b3c39866760222e7a1bbb08379b3841", "score": "0.56563634", "text": "public boolean is_set_name() {\n return this.name != null;\n }", "title": "" }, { "docid": "5b3c39866760222e7a1bbb08379b3841", "score": "0.56563634", "text": "public boolean is_set_name() {\n return this.name != null;\n }", "title": "" }, { "docid": "5b3c39866760222e7a1bbb08379b3841", "score": "0.56563634", "text": "public boolean is_set_name() {\n return this.name != null;\n }", "title": "" }, { "docid": "5b3c39866760222e7a1bbb08379b3841", "score": "0.56563634", "text": "public boolean is_set_name() {\n return this.name != null;\n }", "title": "" }, { "docid": "5b3c39866760222e7a1bbb08379b3841", "score": "0.56563634", "text": "public boolean is_set_name() {\n return this.name != null;\n }", "title": "" }, { "docid": "5b3c39866760222e7a1bbb08379b3841", "score": "0.56563634", "text": "public boolean is_set_name() {\n return this.name != null;\n }", "title": "" }, { "docid": "bf23784ee4eff08a4e179dcc9d4c277d", "score": "0.56064177", "text": "private void setName(String name)\n {\n setAttribute(AttributeNames.RFC7643.NAME, name);\n }", "title": "" }, { "docid": "8c17c63f94290bb0af354ee36dfa302f", "score": "0.5562245", "text": "public void setTrueName(java.lang.String param) {\r\n\r\n\t\t\tif (param != null) {\r\n\t\t\t\t// update the setting tracker\r\n\t\t\t\tlocalTrueNameTracker = true;\r\n\t\t\t} else {\r\n\t\t\t\tlocalTrueNameTracker = true;\r\n\r\n\t\t\t}\r\n\r\n\t\t\tthis.localTrueName = param;\r\n\r\n\t\t}", "title": "" }, { "docid": "a00e67780671bd700b8606a7cff4196e", "score": "0.55414885", "text": "public Boolean validateCertificateName() {\n return this.validateCertificateName;\n }", "title": "" }, { "docid": "deb076f1226b7e6132b2a8b64573b9eb", "score": "0.55408996", "text": "public void setSUBJECTName(Object ifsubjectnameexist) {\n\t\t\n\t}", "title": "" }, { "docid": "e7eaef2d7334493a1b9a980a6f591001", "score": "0.55356103", "text": "default CryptoComponentBuilder certificateName(\n java.lang.String certificateName) {\n doSetProperty(\"certificateName\", certificateName);\n return this;\n }", "title": "" }, { "docid": "552c954736ab21ea12545bd5b5c1eb18", "score": "0.5523508", "text": "public void setAddingNames(final boolean newValue) {\n addingNames = newValue;\n }", "title": "" }, { "docid": "10e8404484fc1d68af7a5b2237da1fe7", "score": "0.5507765", "text": "public final void setName(final String nameToSet) {\r\n this.name = nameToSet;\r\n }", "title": "" }, { "docid": "9ef0647db7c3b8186b82eec5afa80add", "score": "0.54776776", "text": "public void setSignername(java.lang.String param){\r\n localSignernameTracker = param != null;\r\n \r\n this.localSignername=param;\r\n \r\n\r\n }", "title": "" }, { "docid": "9ef0647db7c3b8186b82eec5afa80add", "score": "0.54776776", "text": "public void setSignername(java.lang.String param){\r\n localSignernameTracker = param != null;\r\n \r\n this.localSignername=param;\r\n \r\n\r\n }", "title": "" }, { "docid": "4db1ae56d99629d225a69756fa135969", "score": "0.54474103", "text": "public void setConsignorName(String arg)\n\t{\n\t\twConsignorName = arg;\n\t}", "title": "" }, { "docid": "405fbf4d4ac382fd3f8db60eb993c204", "score": "0.5443487", "text": "public boolean isSetCnName() {\n return this.cnName != null;\n }", "title": "" }, { "docid": "d8262e7e3b9037e67276182754df551f", "score": "0.5416189", "text": "public void setName(String name) {\n this.name$seted = true;\n super.setName(name);\n }", "title": "" }, { "docid": "c5e4173239cfaf5017338f1b48fa6ed4", "score": "0.5408853", "text": "@JsonIgnore\n public boolean isNameSet() {\n return isSet.contains(\"name\");\n }", "title": "" }, { "docid": "9bebdf0f8dcd6686f27d1e1727108e71", "score": "0.5406839", "text": "public void setConsignorName(String arg)\n\t{\n\t\tsetValue(CONSIGNORNAME, arg);\n\t}", "title": "" }, { "docid": "9bebdf0f8dcd6686f27d1e1727108e71", "score": "0.5406839", "text": "public void setConsignorName(String arg)\n\t{\n\t\tsetValue(CONSIGNORNAME, arg);\n\t}", "title": "" }, { "docid": "59030cdd34d6586fd7c3104f46a11934", "score": "0.5388094", "text": "final public void setName(String name)\n {\n setProperty(NAME_KEY, (name));\n }", "title": "" }, { "docid": "3cbc2f554029d65207cb6457ffb0abac", "score": "0.5373776", "text": "@Override\n public void setName(String name) {\n super.setName(name);\n this.nameSet = true;\n }", "title": "" }, { "docid": "8e1b8b712d1d0c1f930fc29571694779", "score": "0.5370869", "text": "boolean isSetBuildingName();", "title": "" }, { "docid": "0832c6ff4c6a16766460930f57e2c6e6", "score": "0.5355905", "text": "public void setNameCN(String nameCN) {\n this.nameCN = nameCN;\n }", "title": "" }, { "docid": "2c9ce861717ce92d86fe4d1097d3624b", "score": "0.534417", "text": "public void setName(String canName)\n {\n name = canName.toUpperCase();\n }", "title": "" }, { "docid": "4f3704418cb0bb471f302c954a854959", "score": "0.53354657", "text": "public boolean isSetName() {\n return this.name != null;\n }", "title": "" }, { "docid": "4f3704418cb0bb471f302c954a854959", "score": "0.53354657", "text": "public boolean isSetName() {\n return this.name != null;\n }", "title": "" }, { "docid": "4f3704418cb0bb471f302c954a854959", "score": "0.53354657", "text": "public boolean isSetName() {\n return this.name != null;\n }", "title": "" }, { "docid": "4f3704418cb0bb471f302c954a854959", "score": "0.53354657", "text": "public boolean isSetName() {\n return this.name != null;\n }", "title": "" }, { "docid": "4f3704418cb0bb471f302c954a854959", "score": "0.53354657", "text": "public boolean isSetName() {\n return this.name != null;\n }", "title": "" }, { "docid": "4f3704418cb0bb471f302c954a854959", "score": "0.53354657", "text": "public boolean isSetName() {\n return this.name != null;\n }", "title": "" }, { "docid": "4f3704418cb0bb471f302c954a854959", "score": "0.53354657", "text": "public boolean isSetName() {\n return this.name != null;\n }", "title": "" }, { "docid": "5eb9b8625710a73aa211f4bde88cc211", "score": "0.53170633", "text": "public void setCanChangeCaseName(java.lang.Boolean _canChangeCaseName)\n {\n canChangeCaseName = _canChangeCaseName;\n }", "title": "" }, { "docid": "1f47fe18525baefa4834c6cee553391f", "score": "0.53035116", "text": "public boolean isName$seted() {\n return name$seted;\n }", "title": "" }, { "docid": "9cda9c986eb8b4533d806aa381ae4abd", "score": "0.5302809", "text": "public synchronized void setName(String name) {\n this.name = name;\n checkRep();\n }", "title": "" }, { "docid": "94eb422c36bae9b31d628fd3d9aa81fb", "score": "0.5301266", "text": "public void setCertificateformname(String certificateformname) {\n this.certificateformname = certificateformname;\n }", "title": "" }, { "docid": "7a06734318deefeaa50a9b939c77a50f", "score": "0.5299644", "text": "public boolean isSetName() {\r\n return this.name != null;\r\n }", "title": "" }, { "docid": "00d8a88f17ee883abd1e329ef33a5b2a", "score": "0.5299067", "text": "public boolean isSetName() {\n return this.name != null;\n }", "title": "" }, { "docid": "9eb9a675965d47e52436587888f76b62", "score": "0.528782", "text": "public org.LNDCDC_NCS_TCS.SHOWS.apache.nifi.LNDCDC_NCS_TCS_SHOWS.Builder setNAME(java.lang.CharSequence value) {\n validate(fields()[4], value);\n this.NAME = value;\n fieldSetFlags()[4] = true;\n return this;\n }", "title": "" }, { "docid": "e7f978a86b46356a1e7bc9aeebe323be", "score": "0.5281088", "text": "@RdfProperty(\"http://www.coadunation.net/schema/rdf/1.0/service#IPName\")\n public void setName(String name) {\n this.name = name;\n setIdValue();\n }", "title": "" }, { "docid": "b70afb725828affb878937abc82d7993", "score": "0.52687913", "text": "public void setRealNameAuthentication(Boolean realNameAuthentication) {\n this.realNameAuthentication = realNameAuthentication;\n }", "title": "" }, { "docid": "9729610828fca2cf905499574c51db9b", "score": "0.5242012", "text": "public Authorize setName(java.lang.String name) {\n if (!getSuppressPatternChecks()) {\n com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(),\n \"Parameter name must conform to the pattern \" +\n \"^users/[^/]+/environments/[^/]+$\");\n }\n this.name = name;\n return this;\n }", "title": "" }, { "docid": "3031c3494dac1605d166ba63ce14bb89", "score": "0.52399", "text": "private void setName(String name) {\n\t\tthis.name = name;\n\t}", "title": "" }, { "docid": "a313a4471b3a98b7c5f827f6414e9571", "score": "0.5239103", "text": "void enableStorageUnitName(boolean value);", "title": "" }, { "docid": "b791e9c53ac547102c357b006a52d13d", "score": "0.5238758", "text": "private void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}", "title": "" }, { "docid": "9d82bd6e8b565e5e397c71a210e5f315", "score": "0.5229016", "text": "private void setName(\n java.lang.String value) {\n value.getClass();\n bitField0_ |= 0x00000010;\n name_ = value;\n }", "title": "" }, { "docid": "1efe2ca4a1e9fa909207d24531e34caa", "score": "0.5228449", "text": "public void setName(String n){\n if (n.isEmpty()){}\n else name = n;\n }", "title": "" }, { "docid": "ccdbf013dcea473f9de727545213107f", "score": "0.52100855", "text": "public void setCertID(java.lang.String param){\r\n localCertIDTracker = param != null;\r\n \r\n this.localCertID=param;\r\n \r\n\r\n }", "title": "" }, { "docid": "ccdbf013dcea473f9de727545213107f", "score": "0.52100855", "text": "public void setCertID(java.lang.String param){\r\n localCertIDTracker = param != null;\r\n \r\n this.localCertID=param;\r\n \r\n\r\n }", "title": "" }, { "docid": "0c79a05ae6c14f55816ee14beb0d7e2e", "score": "0.52065367", "text": "public void setKitName(String name) throws IllegalArgumentException {\n if (name == null || name.equals(\"\")) {\n throw new IllegalArgumentException(\"Invalid kit name\");\n }\n kitName = name;\n }", "title": "" }, { "docid": "3ba995b716810f7d060fd13fed1900f2", "score": "0.5204507", "text": "public void setName(String value) { this.name = value; }", "title": "" }, { "docid": "d5582644d3fe100f6889648f7aa80f2f", "score": "0.52016795", "text": "public void setName(String name) {\n\t\tif (!name.isEmpty() && name.length()<6) {\n\t\tthis.name = name;\n\t\t}\t\n\t}", "title": "" }, { "docid": "8d66ff8c34bf086b1c8bde38412ec29b", "score": "0.51995194", "text": "public void setName(String name) {\n\t\tstore.put(ProtocolConstants.KEY_NAME, name);\n\t}", "title": "" }, { "docid": "6ca934eba655292cffcb5771683ad9f4", "score": "0.5198156", "text": "public Builder setName(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00002000;\n name_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "59e08ccc79f4c8a1d08fb52fae6a44ac", "score": "0.51971006", "text": "private void setName(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n name_ = value;\n }", "title": "" }, { "docid": "540c1e326629826f6a6a5520e01c3f5d", "score": "0.5197066", "text": "public void setName(String set_name)\r\n\t{\r\n\t\tthis.name=set_name;\r\n\t}", "title": "" }, { "docid": "a036248363dc29370d1952c253ebd61a", "score": "0.5196843", "text": "public void setCompName(String value) {\n setAttributeInternal(COMPNAME, value);\n }", "title": "" }, { "docid": "6188296678464032725f9d51bed77a09", "score": "0.518075", "text": "interface WithCertificateCommonNames {\n /**\n * Specifies the certificateCommonNames property: Describes a list of server certificates referenced by\n * common name that are used to secure the cluster..\n *\n * @param certificateCommonNames Describes a list of server certificates referenced by common name that are\n * used to secure the cluster.\n * @return the next definition stage.\n */\n WithCreate withCertificateCommonNames(ServerCertificateCommonNames certificateCommonNames);\n }", "title": "" }, { "docid": "9f627a049d4e292b53fe89bd527b7127", "score": "0.5173431", "text": "public void setNamecn(String namecn) {\n this.namecn = namecn;\n }", "title": "" }, { "docid": "f5a8a1eefd950707b8dd72dff102613e", "score": "0.51724005", "text": "public boolean isSetName() {\n return this.Name != null;\n }", "title": "" }, { "docid": "b2d2be4d6c89905b56209de7a4dcda2a", "score": "0.51703054", "text": "private void setName(String name) {\n this.name = name;\n }", "title": "" }, { "docid": "79b729f4ac4c28a36b5f0d47cb3c71aa", "score": "0.5167984", "text": "void setIssuerName(String value);", "title": "" }, { "docid": "7aed4bf974e223ea748fb36b06ff46df", "score": "0.51625884", "text": "boolean isSet(final String name);", "title": "" }, { "docid": "e78529aba868be4043a12b0adeec90dc", "score": "0.5160248", "text": "public void setName(String name) {\r\n if (name.trim().length() >= 3) {\r\n this.name = name.trim();\r\n } else {\r\n this.name = \"No Name\";\r\n }\r\n }", "title": "" }, { "docid": "2fff999b57f70b4d050ff86ac8abbf8a", "score": "0.51589876", "text": "private void setName(String name){this.name = name;}", "title": "" }, { "docid": "a0e94135813be7188fc46535d49dbac3", "score": "0.5140202", "text": "public boolean isSetName()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().find_attribute_user(NAME$18) != null;\n }\n }", "title": "" }, { "docid": "35ad3857e163cde683ff45037e073474", "score": "0.513435", "text": "public Builder setIfName(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n ifName_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "ad8ec973960af1939f43d5599eaf9404", "score": "0.5133097", "text": "public void setName(java.lang.CharSequence value) {\n this.name = value;\n }", "title": "" }, { "docid": "ad8ec973960af1939f43d5599eaf9404", "score": "0.5133097", "text": "public void setName(java.lang.CharSequence value) {\n this.name = value;\n }", "title": "" }, { "docid": "7499c508a728fe557ea52bfb54740e40", "score": "0.5130691", "text": "@Override\n\tpublic boolean isNameRequired() {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "ded91521e42634b8014450ddda9525ba", "score": "0.51275796", "text": "public void setPartyName(java.lang.String value);", "title": "" }, { "docid": "d0caaa44533d828ae9a9eb042a6e60b2", "score": "0.5124087", "text": "public Builder setName(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000002;\n name_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "d0caaa44533d828ae9a9eb042a6e60b2", "score": "0.51237583", "text": "public Builder setName(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000002;\n name_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "d0caaa44533d828ae9a9eb042a6e60b2", "score": "0.5123172", "text": "public Builder setName(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000002;\n name_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "d0caaa44533d828ae9a9eb042a6e60b2", "score": "0.5123172", "text": "public Builder setName(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000002;\n name_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "d0caaa44533d828ae9a9eb042a6e60b2", "score": "0.5123172", "text": "public Builder setName(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000002;\n name_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "d0caaa44533d828ae9a9eb042a6e60b2", "score": "0.5123172", "text": "public Builder setName(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000002;\n name_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "d0caaa44533d828ae9a9eb042a6e60b2", "score": "0.5123172", "text": "public Builder setName(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000002;\n name_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "d0caaa44533d828ae9a9eb042a6e60b2", "score": "0.5123172", "text": "public Builder setName(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000002;\n name_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "0e6d69a5c9d37aaeaa47008f998b5cce", "score": "0.5121459", "text": "boolean isSetName();", "title": "" }, { "docid": "e11537e0a6096740f674b62bf6b71ae1", "score": "0.51203203", "text": "public boolean isSetName()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().find_attribute_user(NAME$2) != null;\n }\n }", "title": "" }, { "docid": "293b1d1c987b30159baa8f564624cf11", "score": "0.5120044", "text": "public boolean isSetCompanyLegalName() {\n return companyLegalName != null;\n }", "title": "" }, { "docid": "d5f8eafe93fd7c28c1bb8a269a46861e", "score": "0.5117522", "text": "Builder addAlternateName(String value);", "title": "" }, { "docid": "4a358c2d760b1c7def4c7291286ef299", "score": "0.5116749", "text": "public void setName(final String name) {\n if (StringUtils.hasText(name)) {\n this.name = name;\n }\n }", "title": "" }, { "docid": "ffac5959e865351e762915009e1612a9", "score": "0.5115348", "text": "public PrintGroup setName(String name) {\n return genClient.setOther(name, CacheKey.name);\n }", "title": "" }, { "docid": "ac215702524286821d6c5bf12bdd9320", "score": "0.5114819", "text": "public synchronized void setName(String nameVar){\n this.userName = nameVar;\n }", "title": "" }, { "docid": "4e34aa1156725be0e3e79f4181a94b9b", "score": "0.50991684", "text": "public void setName(CharSequence value) {\n this.name = value;\n }", "title": "" }, { "docid": "f77564e0e5e890eb2cb16fd05f17fdae", "score": "0.509782", "text": "public OauthClientsRecord setName(String value) {\n set(2, value);\n return this;\n }", "title": "" }, { "docid": "8eac46575e0adf51aeeed129594126a6", "score": "0.5090101", "text": "public Builder addSubjectAltName(\n io.envoyproxy.envoy.data.accesslog.v3.TLSProperties.CertificateProperties.SubjectAltName.Builder builderForValue) {\n if (subjectAltNameBuilder_ == null) {\n ensureSubjectAltNameIsMutable();\n subjectAltName_.add(builderForValue.build());\n onChanged();\n } else {\n subjectAltNameBuilder_.addMessage(builderForValue.build());\n }\n return this;\n }", "title": "" }, { "docid": "2f678394d626e827dcb0922a57779198", "score": "0.5085606", "text": "public void setName(String n) {name = n;}", "title": "" }, { "docid": "13a787ee8e07fe041ac91c8212c4d44f", "score": "0.5084652", "text": "public void setName(String name){\n \tthis.name = name;\n }", "title": "" } ]
6b02e1ea55d0692890b021a7d3cac19b
Deletes all files and subdirectories under dir. Returns true if all deletions were successful. If a deletion fails, the method stops attempting to delete and returns false.
[ { "docid": "7132f407ed6bbae3c20b81a0b943bf93", "score": "0.7367439", "text": "public static boolean deleteDir(File dir) {\n if (dir.isDirectory()) {\n String[] children = dir.list();\n for (int i=0; i<children.length; i++) {\n boolean success = deleteDir(new File(dir, children[i]));\n if (!success) {\n return false;\n }\n }\n }\n // The directory is now empty so delete it\n return dir.delete();\n}", "title": "" } ]
[ { "docid": "8858aea0e666213e3b3cf0d65e31654c", "score": "0.76688164", "text": "private static boolean deleteDirectory(File dir) {\n if (dir.isDirectory()) {\n File[] children = dir.listFiles();\n for (int i = 0; i < children.length; i++) {\n boolean success = deleteDirectory(children[i]);\n if (!success) {\n return false;\n }\n }\n }\n return dir.delete();\n }", "title": "" }, { "docid": "912729b43303da29fa4762b0c317598e", "score": "0.7562392", "text": "public static boolean deleteDir(java.io.File dir) {\r\n\r\n\t\tif (dir == null || dir.isDirectory() == false) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\tfor (String filename : dir.list()) {\r\n\t\t\tboolean success = false;\r\n\t\t\tFile f = new File(dir, filename);\r\n\t\t\tif (f.isDirectory()) {\r\n\t\t\t\tsuccess = deleteDir(f);\r\n\t\t\t} else {\r\n\t\t\t\tsuccess = f.delete();\r\n\t\t\t}\r\n\t\t\tif (!success) {\r\n\t\t\t\treturn success;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn dir.delete();\r\n\t}", "title": "" }, { "docid": "a392ef621adab92201c21901db6a7409", "score": "0.7523575", "text": "private boolean deleteDir(File dir) {\r\n if (dir.isDirectory()) {\r\n String[] children = dir.list();\r\n for (int i=0; i < children.length; i++) {\r\n boolean success = deleteDir(new File(dir, children[i]));\r\n if (!success) {\r\n return false;\r\n }\r\n }\r\n }\r\n \r\n // The directory is now empty so delete it\r\n return dir.delete();\r\n }", "title": "" }, { "docid": "c0ad0450526613c807eaf2ac1342d552", "score": "0.7355617", "text": "public static boolean deleteDir(File dir) {\n if (dir.isDirectory()) {\n String[] children = dir.list();\n for (int i=0; i<children.length; i++) {\n boolean success = deleteDir(new File(dir, children[i]));\n if (!success) {\n return false;\n }\n }\n }\n \n return dir.delete();\n\t}", "title": "" }, { "docid": "51cf7977611b0f00ab59119de67779c5", "score": "0.7331663", "text": "public static boolean deleteDir(File dir) {\n\t if (dir.isDirectory()) {\n\t String[] children = dir.list();\n\t for (int i=0; i<children.length; i++) {\n\t boolean success = deleteDir(new File(dir, children[i]));\n\t if (!success) {\n\t return false;\n\t }\n\t }\n\t }\n\n\t // The directory is now empty so delete it\n\t return dir.delete();\n\t}", "title": "" }, { "docid": "b1aabde23fb3f0fb2622ed0e76128646", "score": "0.7324792", "text": "public static boolean deleteDir(File dir) {\n if (dir.isDirectory()) {\n String[] children = dir.list();\n for (int i=0; i<children.length; i++) {\n boolean success = deleteDir(new File(dir, children[i]));\n if (!success) {\n return false;\n }\n }\n }\n \n // The directory is now empty so delete it\n return dir.delete();\n }", "title": "" }, { "docid": "8479786f6ece7fe07b19caa92232d33b", "score": "0.72833383", "text": "public static boolean deleteDirectory(File dir) {\n if (dir.isDirectory()) {\n String[] children = dir.list();\n for (int i = 0; i < children.length; i++) {\n boolean success = deleteDirectory(new File(dir, children[i]));\n if (!success) {\n return false;\n }\n }\n }\n // The directory is now empty so delete it\n return dir.delete();\n }", "title": "" }, { "docid": "8d970321d7b368dbead3100411188727", "score": "0.72550505", "text": "public static boolean deleteDir(File dir) {\n if (dir.isDirectory()) {\n String[] children = dir.list();\n for (int i=0; i<children.length; i++) {\n boolean success = deleteDir(new File(dir, children[i]));\n if (!success) {\n return false;\n }\n }\n }\n // The directory is now empty so delete it\n return dir.delete();\n }", "title": "" }, { "docid": "45bc0b1bf64f160adb87cfe9d897433d", "score": "0.72451913", "text": "public static boolean deleteDir(File dir) {\n if (dir != null && dir.isDirectory()) {\n String[] children = dir.list();\n if (children != null) {\n for (int i = 0; i < children.length; i++) {\n boolean success = deleteDir(new File(dir, children[i]));\n if (!success) {\n return false;\n }\n }\n }\n }\n\n return dir.delete();\n }", "title": "" }, { "docid": "9a3a7c154a3716e03fab4588e85aa894", "score": "0.70621866", "text": "public static boolean deleteDirectoryRecursively(File dir)\n\t{\n\t\tif (!dir.exists())\n\t\t\treturn true;\n\t\tif (dir.isDirectory()) {\n\t\t\tFile[] content = dir.listFiles();\n\t\t\tfor (int i = 0; i < content.length; ++i) {\n\t\t\t\tFile f = content[i];\n\t\t\t\tif (f.isDirectory())\n\t\t\t\t\tdeleteDirectoryRecursively(f);\n\t\t\t\telse\n\t\t\t\t\ttry {\n\t\t\t\t\t\tf.delete();\n\t\t\t\t\t} catch(SecurityException e) {\n\t\t\t\t\t\t// ignore according to docs.\n\t\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\ttry {\n\t\t\treturn dir.delete();\n\t\t} catch(SecurityException e) {\n\t\t\treturn false;\n\t\t}\n\t}", "title": "" }, { "docid": "a5a2f9aa41127af4f755c7a6c29f9c00", "score": "0.696607", "text": "public static boolean deleteDir(String dir) {\r\n\t\tFile f = new File(dir);\r\n\t\tif (f.exists() && f.isDirectory()) {\r\n\t\t\treturn deleteDir(f);\r\n\t\t} else {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "2159978d2252ceea2ba63114c1dbfe30", "score": "0.69428563", "text": "public static boolean deleteDir(File dir) {\n if (dir != null && dir.isDirectory()) {\n MyApp.log(TAG + \"--\" + LOG_TAG, \"In delete cache function\");\n String[] children = dir.list();\n for (int i = 0; i < children.length; i++) {\n boolean success = deleteDir(new File(dir, children[i]));\n if (!success) {\n return false;\n }\n }\n return dir.delete();\n } else if (dir != null && dir.isFile()) {\n return dir.delete();\n } else {\n return false;\n }\n }", "title": "" }, { "docid": "856f3fdad9ef894ce282a6490103419c", "score": "0.69427377", "text": "private final void deleteDir(File dir) {\n // Check the disk state. It may be false according to the transaction log but\n // it doesn't matter because directories are lazily created.\n String[] children = dir.list();\n // children may be null if dir doesn't exist any more.\n if (children != null && children.length == 0) {\n dir.delete();\n if (dir.getAbsolutePath().length() > this.dir.getAbsolutePath().length()) {\n deleteDir(dir.getParentFile());\n }\n }\n }", "title": "" }, { "docid": "a8648d0ad2f1d517ca155d3f9ac26dbb", "score": "0.68343914", "text": "private static boolean deleteDirectory(final File directory)\n {\n if (directory.exists() && directory.isDirectory())\n {\n for (final String child : directory.list())\n {\n final boolean success = deleteDirectory(new File(directory, child));\n if (!success)\n {\n return false;\n }\n }\n }\n\n // The directory is now empty so delete it\n return directory.delete();\n }", "title": "" }, { "docid": "477f587dd2648a103df9037d96876418", "score": "0.67701334", "text": "public static boolean deleteDirectory(File directory) {\n\t\tboolean success = true;\n\n\t\tif (directory.exists()) {\n\n\t\t\t// delete contents\n\t\t\tFile[] files = directory.listFiles();\n\t\t\tfor (File f : files) {\n\t\t\t\tif (f.isDirectory()) {\n\t\t\t\t\tsuccess = success && deleteDirectory(f);\n\t\t\t\t} else {\n\t\t\t\t\tsuccess = success && f.delete();\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// delete directory itself\n\t\t\tsuccess = success && directory.delete();\n\t\t}\n\n\t\treturn success;\n\t}", "title": "" }, { "docid": "31b61a71a305ba3d1824a485a69745a4", "score": "0.6737077", "text": "public static boolean removeDirectory(File dir) {\n File[] flist = dir.listFiles();\n for (int i = 0; i < flist.length; i++) {\n if (flist[i].isDirectory()) {\n if (0 == flist[i].listFiles().length) {\n if (!flist[i].delete()) {\n error += \"Can't remove \" + flist[i].getAbsolutePath()\n + \"\\n\";\n return false;\n }\n } else {\n if (!removeDirectory(flist[i])) {\n return false;\n }\n }\n } else {\n if (!flist[i].delete()) {\n error += \"Can't remove \" + flist[i].getAbsolutePath()\n + \"\\n\";\n return false;\n }\n }\n\n }\n return dir.delete();\n }", "title": "" }, { "docid": "d2e9291eb0b49e33089bb0f13698c91e", "score": "0.66476345", "text": "public boolean deleteDirectory(File directory) {\n\t\tif (directory.exists()) {\n\t\t\tFile[] files = directory.listFiles();\n\t\t\tif (null != files) {\n\t\t\t\tfor (int i = 0; i < files.length; i++) {\n\t\t\t\t\tif (files[i].isDirectory()) {\n\t\t\t\t\t\tdeleteDirectory(files[i]);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tfiles[i].delete();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn (directory.delete());\n\t}", "title": "" }, { "docid": "d2184dee156de4d25ddf32788c7904a4", "score": "0.6579211", "text": "public static boolean deleteDirectory(File targetDir)\n \t{\n \t\tboolean succeeded = true;\n \n \t\tif (targetDir.exists())\n \t\t{\n \t\t\tFile[] dirFiles = targetDir.listFiles();\n \t\t\tfor (int i = 0; i < dirFiles.length; i++)\n \t\t\t{\n \t\t\t\tFile dirFile = dirFiles[i];\n \t\t\t\tif (dirFile.isDirectory())\n \t\t\t\t{\n \t\t\t\t\tsucceeded = succeeded && deleteDirectory(dirFile);\n \t\t\t\t\tsucceeded = succeeded && dirFile.delete();\n \t\t\t\t}\n \t\t\t\telse\n \t\t\t\t{\n \t\t\t\t\tdirFile.delete();\n \t\t\t\t}\n \t\t\t}\n \t\t\tsucceeded = succeeded && targetDir.delete();\n \t\t}\n \t\treturn succeeded;\n \t}", "title": "" }, { "docid": "e4f8ffa5a5b0231a83fae06dac90480f", "score": "0.65494204", "text": "public static boolean deleteDirectoryAndFiles(String path){\n if(path == null)\n return false;\n boolean ret = true;\n File file = new File(path);\n if(file.isDirectory()){\n String[] childList = file.list();\n for(String child : childList) {\n if (!deleteDirectoryAndFiles(path + File.separator + child)) {\n ret = false;\n }\n }\n //directory delete here\n if(!file.delete()){\n ret = false;\n Log.i(TAG, \"deleteDirectoryAndFiles: directory failed \" + path);\n }else{\n Log.i(TAG, \"deleteDirectoryAndFiles: directory successfully \" + path);\n }\n }\n //normal file delete here\n else if(!file.delete()){\n ret = false;\n Log.i(TAG, \"deleteDirectoryAndFiles: normal file failed \" + path);\n }\n else Log.i(TAG, \"deleteDirectoryAndFiles: normal file successfully \" + path);\n return ret;\n }", "title": "" }, { "docid": "e5e93584c32b0a041ffcf64462ea553c", "score": "0.65459865", "text": "public static boolean deleteFilesFromDirectory(File directory) {\n\t\tif (directory.exists()) {\n\t\t\tfor (File f : directory.listFiles()) {\n\t\t\t\tif (f.isFile()) {\n\t\t\t\t\tif (!f.delete()) {\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "title": "" }, { "docid": "41f7fa796c371a0eec947c2305a06d0a", "score": "0.64928234", "text": "private static void cleanDirectory(File dir) {\n File[] files = dir.listFiles();\n if (files != null && files.length > 0) {\n for (File file : files) {\n delete(file);\n }\n }\n }", "title": "" }, { "docid": "1f26faeb6b094cf3acc3797ae34e8298", "score": "0.64782894", "text": "public static void deleteDir(File dir) {\r\n assert dir.isDirectory();\r\n for (File f : dir.listFiles()) {\r\n if (f.isDirectory()) {\r\n deleteDir(f);\r\n } else {\r\n f.delete();\r\n }\r\n }\r\n dir.delete();\r\n }", "title": "" }, { "docid": "c2c473bea48b8bf0c4033397934ea914", "score": "0.6417106", "text": "public static boolean deleteDirectory(File path) {\r\n\tboolean deleted = false;\r\n\tif (path.exists()) {\r\n\t File[] files = path.listFiles();\r\n\t for (int i = 0; i < files.length; i++) {\r\n\t\t deleted = files[i].delete();\r\n\t }\r\n\t}\r\n\treturn deleted;\r\n }", "title": "" }, { "docid": "8144db6650800c65617d455be1af5fd7", "score": "0.6412326", "text": "public static boolean deleteDirectory(File file) {\n boolean success = false;\n\n if (file.exists()) {\n if (file.isDirectory()) {\n File[] files = file.listFiles();\n\n for (File subFile : files) {\n if (subFile.isDirectory())\n deleteDirectory(subFile);\n\n else\n subFile.delete();\n }\n }\n\n success = file.delete();\n }\n\n return success;\n }", "title": "" }, { "docid": "3bfc60fa5425e08a95810983c3ca35a9", "score": "0.6410291", "text": "public static boolean deleteDir(File file) {\r\n File[] contents = file.listFiles();\r\n if (contents != null) {\r\n for (File f : contents) {\r\n deleteDir(f);\r\n }\r\n }\r\n file.delete();\r\n\r\n return file.delete();\r\n }", "title": "" }, { "docid": "6c5206f3dde175bbb5d49b20f44c753c", "score": "0.6299306", "text": "private static void cleanDirectory(File directory) {\n File[] files = directory.listFiles();\n\n if (files != null) {\n for (File f : files) {\n\n if (f.isDirectory()) {\n cleanDirectory(f);\n\n } else {\n boolean delete = f.delete();\n if (!delete) {\n throw new UnsupportedOperationException();\n }\n }\n }\n }\n\n boolean delete = directory.delete();\n if (!delete) {\n throw new UnsupportedOperationException();\n }\n }", "title": "" }, { "docid": "a251112a3dd173574a21b68af241952c", "score": "0.62879723", "text": "public static boolean delete(File file) {\n if (file.isDirectory()) {\n String[] children = file.list();\n for (int i = 0; i < children.length; i++) {\n boolean success = delete(new File(file, children[i]));\n if (!success) {\n return false;\n }\n }\n }\n\n // The directory is now empty so delete it\n return file.delete();\n }", "title": "" }, { "docid": "525d9afe620c4b519dc8cdd3c0acd116", "score": "0.62297136", "text": "protected void deleteDir( final File dir )\r\n {\r\n final Delete task = (Delete) getProject().createTask( \"delete\" );\r\n task.setTaskName( getTaskName() );\r\n task.setDir( dir );\r\n task.init();\r\n task.execute();\r\n }", "title": "" }, { "docid": "ee01dba48bcf7a424ffe7a576058f8d9", "score": "0.62127525", "text": "public static boolean delete(File file) {\r\n\r\n\t\t// bail out quickly\r\n\t\tif (file == null)\r\n\t\t\treturn false;\r\n\r\n\t\t// recursively delete children file\r\n\t\tboolean success = true;\r\n\r\n\t\tif (file.isDirectory()) {\r\n\t\t\tString[] children = file.list();\r\n\t\t\tfor (int i = 0; i < children.length; i++) {\r\n\t\t\t\tsuccess &= delete(new File(file, children[i]));\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// The directory is now empty so delete it\r\n\t\treturn (success &= file.delete());\r\n\t}", "title": "" }, { "docid": "dbae008ddefa04379f44a7d1f8d94b0b", "score": "0.6203047", "text": "void purgeDirectory(File dir) {\n if (nested) {\n return;\n }\n for (File file: dir.listFiles()) {\n if (file.isDirectory())\n purgeDirectory(file);\n file.delete();\n }\n }", "title": "" }, { "docid": "8ee15b1cb3ccee428fdecdb74148d323", "score": "0.619329", "text": "private static boolean delete(File folder)\n\t{\n\t\t// delete folder's contents\n\t\tif (folder.isDirectory())\n\t\t{\t\t\t\n\t\t\tfor (File a : folder.listFiles())\n\t\t\t\tdelete(a);\n\t\t}\n\t\t\n\t\treturn folder.delete();\n\t}", "title": "" }, { "docid": "8abdee3b4ea9a109268de92aa02fcc28", "score": "0.618444", "text": "public static boolean delete(File f) {\n if (f.isDirectory()) {\n for (File child : f.listFiles()) {\n if (!delete(child)) {\n return(false);\n }\n }\n }\n\n return(f.delete());\n }", "title": "" }, { "docid": "54842a926320929c96da0dbbe9a1e448", "score": "0.61660045", "text": "public static void rmdir(File dir) {\n\t\tFile[] contents = dir.listFiles();\n\t\tif(contents != null) {\n\t\t\tfor(File i: contents) {\n\t\t\t\tif(i.isDirectory()) {\n\t\t\t\t\trmdir(i);\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\ti.delete();\n\t\t\t}\n\t\t}\n\t\tdir.delete();\n\t}", "title": "" }, { "docid": "e3578227d557520709ff726270be6b32", "score": "0.6132142", "text": "public static void deleteDirectory(File dir)\n\t\tthrows IOException\n\t{\n\t\tFiles.walk(dir.toPath())\n\t\t\t .map(Path::toFile)\n\t\t\t .sorted(Comparator.reverseOrder())\n\t\t\t .forEach(File::delete);\n\t}", "title": "" }, { "docid": "07d0d747bc9cfefde06c4ef7c8ec7122", "score": "0.6067865", "text": "public static boolean deleteAll(File file) {\n\t\tboolean b = true;\n\t\tif (file.exists()) {\n\t\t\tif (file.isDirectory()) {\n\t\t\t\ttry {\n\t\t\t\t\tFile[] files = file.listFiles();\n\t\t\t\t\tfor (int i=0; i<files.length; i++) b &= deleteAll(files[i]);\n\t\t\t\t}\n\t\t\t\tcatch (Exception e) { return false; }\n\t\t\t}\n\t\t\tb &= file.delete();\n\t\t}\n\t\treturn b;\n\t}", "title": "" }, { "docid": "197a9c33791713f1a92a17e87bb1b8b0", "score": "0.60111797", "text": "public static void deleteDirectorys(String directoryPath) {\n boolean result = false;\n File file = new File(directoryPath);\n if (!file.exists())\n return;\n if (file.isFile()) {\n file.delete();\n } else if (file.isDirectory()) {\n File[] files = file.listFiles();\n for (File fileToDelete : files) {\n deleteDirectorys(directoryPath + \"/\" + fileToDelete.getName());\n }\n file.delete();\n }\n }", "title": "" }, { "docid": "03d026a299d8b4886155726390d23de9", "score": "0.6006396", "text": "private boolean deleteRecursive(File path) {\n\t\tif (!path.exists())\n\t\t\treturn false;\n\t\tboolean ret = true;\n\t\tif (path.isDirectory()) {\n\t\t\tfor (File f : path.listFiles()) {\n\t\t\t\tret = ret && deleteRecursive(f);\n\t\t\t}\n\t\t}\n\t\treturn ret && path.delete();\n\t}", "title": "" }, { "docid": "056b9c57afcd4982632ef04ca1e094a8", "score": "0.6000211", "text": "private void deleteDirectory(File directory) {\n\t\tFile[] files = directory.listFiles();\n\t\tfor (int x = 0; x < files.length; x++) {\n\t\t\tif (files[x].isDirectory()) {\n\t\t\t\tdeleteDirectory(files[x]);\n\t\t\t}\n\t\t\tfiles[x].delete();\n\t\t}\n\t}", "title": "" }, { "docid": "e5a7aa2d02293c1137541ac625af2744", "score": "0.59403926", "text": "private void deleteDir(String destDir) {\r\n File destDirFile = new File(destDir);\r\n String[] children = destDirFile.list();\r\n if (children.length == 0) {\r\n destDirFile.delete();\r\n }\r\n }", "title": "" }, { "docid": "26038f6ba18274ac98ca505669fa2f19", "score": "0.5920178", "text": "@Test\n\tpublic void testDeleteDirectory() {\n\t\tSystem.out.println(\"deleteDirectory\");\n\t\tFile directory = null;\n\t\tboolean expResult = false;\n\t\tboolean result = WorkingDirectory.deleteDirectory(directory);\n\t\tassertEquals(expResult, result);\n\t}", "title": "" }, { "docid": "b59b5c228bb979c644913cd85a1ff458", "score": "0.5869042", "text": "public static void deleteDirectory(File directory) {\n if (directory.isDirectory()) {\n File[] files = directory.listFiles();\n for (File file : files) {\n if (file.isDirectory()) {\n deleteDirectory(file);\n } else {\n file.delete();\n }\n }\n } \n directory.delete();\n }", "title": "" }, { "docid": "0b602b11b9ac3dbfab9a0df7832fad58", "score": "0.58398384", "text": "public boolean delete(java.io.File file) {\n java.io.File[] files = file.listFiles();\n for (int i = 0; i < files.length; i++) {\n if (files[i].isFile()) {\n files[i].delete();\n } else if (files[i].isDirectory()) {\n if (!files[i].delete()) {\n delete(files[i]);\n }\n }\n }\n deleteDirectory(file);\n return file.delete();\n }", "title": "" }, { "docid": "0b602b11b9ac3dbfab9a0df7832fad58", "score": "0.58398384", "text": "public boolean delete(java.io.File file) {\n java.io.File[] files = file.listFiles();\n for (int i = 0; i < files.length; i++) {\n if (files[i].isFile()) {\n files[i].delete();\n } else if (files[i].isDirectory()) {\n if (!files[i].delete()) {\n delete(files[i]);\n }\n }\n }\n deleteDirectory(file);\n return file.delete();\n }", "title": "" }, { "docid": "ee67ec722d0c2e7ce1877e5289ee3599", "score": "0.58192325", "text": "private static void deleteDirectory(File directoryToBeDeleted) throws IOException {\n File[] allContents = directoryToBeDeleted.listFiles();\n if (allContents != null) {\n for (File file : allContents) {\n deleteDirectory(file);\n }\n }\n if (directoryToBeDeleted.exists()) {\n boolean deleteResult = directoryToBeDeleted.delete();\n if (!deleteResult) {\n throw new IOException(\"[ResultWriter.deleteDirectory] Failed to delete given directory: \" + directoryToBeDeleted.getAbsolutePath());\n }\n }\n\n }", "title": "" }, { "docid": "cd3ea3d341cb428f9aedc42ea3461e66", "score": "0.5784183", "text": "private static boolean deleteTree(final File f) {\n\tif (f.delete()) {\n\t return true;\n\t}\n\tif (f.isDirectory()) {\n\t for (final File sf : f.listFiles()) try {\n\t\tif (!sf.delete() && sf.getAbsolutePath().equals(sf.getCanonicalPath())) {\n\t\t deleteTree(sf);\n\t\t}\n\t } catch (IOException ignore) {}\n\t return f.delete();\n\t} else {\n\t return false;\n\t}\n }", "title": "" }, { "docid": "dab0630ad5caabe05714db4695dfdb2f", "score": "0.57339835", "text": "public static void clearDir(File dir)\n \t{\n \t\tif (dir.isDirectory())\n \t\t{\n \t\t\tString[] children = dir.list();\n \t\t\tfor (int i = 0; i < children.length; i++)\n \t\t\t{\n \t\t\t\tnew File(dir, children[i]).delete();\n \t\t\t}\n \t\t}\n \t}", "title": "" }, { "docid": "a3cb7c7cc10330787f896ec2ac7ddbfa", "score": "0.5712631", "text": "public void delete_directory() {\n\n\t\tFile directory = new File(\"ahha_results\");\n\n\t if(directory.exists()){\n\t File[] files = directory.listFiles();\n\t if(null!=files){\n\t for(int i=0; i<files.length; i++) {\n\t files[i].delete();\n\t }\n\t }\n\t }\n\t \n\t}", "title": "" }, { "docid": "d7f500027cb26ed666245a01eeed8bd2", "score": "0.57018423", "text": "public static void deleteFileInDirectory(File directory){\n File[] files = directory.listFiles();\n for(File f : files){\n deleteFile(f);\n }\n }", "title": "" }, { "docid": "5fb3e264842c6aae9033002d6de2323d", "score": "0.5691013", "text": "private static boolean recursiveDelete(File f) throws IOException {\n\t\tboolean success = true;\n\t\tif (f != null && f.exists()) {\n\t\t\tif (f.isDirectory()) {\n\t\t\t\tFile[] fs = f.listFiles();\n\t\t\t\tfor (int i = 0; i < fs.length; i++) {\n\t\t\t\t\tsuccess &= recursiveDelete(fs[i]);\n\t\t\t\t}\n\t\t\t}\n\t\t\tsuccess &= f.delete();\n\t\t}\n\t\treturn success;\n\t}", "title": "" }, { "docid": "dc35e7150b4e372261f76e9ec3d31649", "score": "0.5619463", "text": "public static boolean deleteTree( File root ) {\n\n if ( root == null || !root.exists() ) {\n //we did not delete anything but its actually gone so why not \n return true;\n }\n if ( !root.isDirectory() ) {\n //we work only on directories\n return false;\n }\n try {\n String rootPath = root.getCanonicalPath();\n File[] fl = root.listFiles();\n for (int i = 0; i < fl.length; i++) {\n if ( fl[i].getName().equals( \".\" ) || fl[i].getName().equals( \"..\" ) )\n continue;\n if ( fl[i].isFile() ) {\n if ( !fl[i].delete() ) {\n //we failed on this one \n return false;\n }\n }\n else {\n /*\n We are looking at a directory now.\n On linux and the Mac this could be a symbolic link to\n a dir outside this tree. We check this and stop\n if following the link would kick us out of the \n currnet directory tree.\n */\n String dirPath = fl[i].getCanonicalPath();\n if ( !dirPath.startsWith( rootPath ) ) {\n /*\n This is a symbolic link pointing \n to a directory which is not a subdir\n of the current one\n */\n return false;\n }\n //recurse into directory\n if ( !deleteTree( fl[i] ) ) {\n //something went wrong one dir down\n return false;\n }\n }\n }\n }\n catch (IOException ioe) {\n System.out.println( ioe );\n return false;\n }\n return root.delete();\n }", "title": "" }, { "docid": "1b389112ac06c6babf3eb5de2a2abc87", "score": "0.5563291", "text": "public static boolean \r\n\tdeleteDirectory\r\n\t(File target) {\r\n\t\t\r\n\t\tif(target.exists()) {\r\n\t\t\t//\r\n\t\t\tFile[] files = target.listFiles();\r\n\t\t\t\r\n\t\t\t//\r\n\t\t\tfor (int i = 0; i < files.length; i++) {\r\n\t\t\t\tif (files[i].isDirectory()) {\r\n\t\t\t\t\t\r\n\t\t\t\t\tdeleteDirectory(files[i]);\r\n\t\t\t\t\t\r\n\t\t\t\t} else {//if (files[i].isDirectory())\r\n\t\t\t\t\t\r\n\t\t\t\t\tString path = files[i].getAbsolutePath();\r\n\t\t\t\t\t\r\n\t\t\t\t\tfiles[i].delete();\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t}//if (files[i].isDirectory())\r\n\t\t\t\t\r\n\t\t\t}//for (int i = 0; i < files.length; i++)\r\n\t\t\t\r\n\t\t}//if(target.exists())\r\n\t\t\r\n\t\treturn (target.delete());\r\n\t}", "title": "" }, { "docid": "1bd226cafdcc3c3a85c0824d9912763a", "score": "0.55432117", "text": "private void removeDir(File dir) throws IOException {\n if(dir.exists() && dir.isDirectory()) {\n FileUtils.deleteDirectory(dir);\n }\n }", "title": "" }, { "docid": "55152552c94e7cada5be11151a3f7816", "score": "0.55217654", "text": "public static void deleteDirectory(File directoryToBeDeleted) {\n\t File[] allContents = directoryToBeDeleted.listFiles();\n\t if (allContents != null) {\n\t for (File file : allContents) {\n\t deleteDirectory(file);\n\t }\n\t }\n\t directoryToBeDeleted.delete();\n\t}", "title": "" }, { "docid": "dfa50fde85994ac19ae862189088147c", "score": "0.5502582", "text": "private static void cleanDirectoryOnExit(File directory) throws IOException {\n if (!directory.exists()) {\n String message = directory + \" does not exist\";\n throw new IllegalArgumentException(message);\n }\n\n if (!directory.isDirectory()) {\n String message = directory + \" is not a directory\";\n throw new IllegalArgumentException(message);\n }\n\n File[] files = directory.listFiles();\n if (files == null) { // null if security restricted\n throw new IOException(\"Failed to list contents of \" + directory);\n }\n\n IOException exception = null;\n for (File file : files) {\n try {\n forceDeleteOnExit(file);\n } catch (IOException ioe) {\n exception = ioe;\n }\n }\n\n if (null != exception) {\n throw exception;\n }\n }", "title": "" }, { "docid": "179247aa37e11e2bc15b3a554e74dc7a", "score": "0.5492522", "text": "public boolean delete(final boolean purge, final boolean recursive) {\n\t\treturn delete(purge, recursive, true);\n\t}", "title": "" }, { "docid": "7943854755da657d1aa85efa570ac3a8", "score": "0.5472869", "text": "private void deleteDirectory(java.io.File file) {\n java.io.File[] filed = file.listFiles();\n for (int i = 0; i < filed.length; i++) {\n \tif(filed[i].isDirectory()) {\n \tdeleteDirectory(filed[i]);\n }\n filed[i].delete();\n }\n }", "title": "" }, { "docid": "7943854755da657d1aa85efa570ac3a8", "score": "0.5472869", "text": "private void deleteDirectory(java.io.File file) {\n java.io.File[] filed = file.listFiles();\n for (int i = 0; i < filed.length; i++) {\n \tif(filed[i].isDirectory()) {\n \tdeleteDirectory(filed[i]);\n }\n filed[i].delete();\n }\n }", "title": "" }, { "docid": "6987a90b29c20a142f34d61555cef4f7", "score": "0.54537064", "text": "public static void deleteDir(File file) \r\n {\r\n File[] contents = file.listFiles();\r\n if (contents != null) \r\n {\r\n for (File f : contents) \r\n {\r\n deleteDir(f);\r\n }\r\n }\r\n file.delete();\r\n }", "title": "" }, { "docid": "719c1e13e0bfab07562afa42910c828b", "score": "0.54489434", "text": "public static boolean deleteFile(String path) {\n if (StringUtils.isBlank(path)) {\n return true;\n }\n\n File file = new File(path);\n if (!file.exists()) {\n return true;\n }\n if (file.isFile()) {\n return file.delete();\n }\n if (!file.isDirectory()) {\n return false;\n }\n for (File f : file.listFiles()) {\n if (f.isFile()) {\n f.delete();\n } else if (f.isDirectory()) {\n deleteFile(f.getAbsolutePath());\n }\n }\n return file.delete();\n }", "title": "" }, { "docid": "caac17cd189f59fda7623d3e4412bd3f", "score": "0.5429793", "text": "private static void recursiveDelete(File d) throws IOException {\n\t\tif (d.isDirectory()) {\n\t\t\tfor (File f : d.listFiles()) {\n\t\t\t\trecursiveDelete(f);\n\t\t\t}\n\t\t}\n\t\tif (!d.delete()) {\n\t\t\tthrow new IOException(\"Failed to delete file \" + d.getPath());\n\t\t}\n\t}", "title": "" }, { "docid": "55d97f2da98af4527e41ebfc97fe8793", "score": "0.5413025", "text": "public boolean del(IRODSFile file, DavisSession davisSession) {\r\n \tboolean result=true;\r\n\t\t\t//iRODS does support recursive deletion now\r\n/*\t\t\tif (inTrash) { // But not in trash for now\r\n\t\t \tif (file.isDirectory()){\r\n\t\t \t\tLog.log(Log.DEBUG, \"(del)entering dir \"+file.getAbsolutePath());\r\n\t\t \t\tString[] fileList=file.list();\r\n\t\t \t\tLog.log(Log.DEBUG, \"(del)entering dir has children number: \"+fileList.length);\r\n\t\t \t\tif (fileList.length>0){\r\n\t\t \t\tfor (int i=0;i<fileList.length;i++){\r\n\t\t \t\t\tLog.log(Log.DEBUG, \"(del)entering child \"+fileList[i]);\r\n\t\t \t\t\tresult = result & del(new IRODSFile( (IRODSFile)file,fileList[i]),davisSession);\r\n\t\t \t\t}\r\n\t\t \t\t}\r\n\t\t \t}\r\n\t\t\t\tLog.log(Log.DEBUG, \"deleting \"+file.getAbsolutePath()+\" forcefully\");\r\n\t\t\t\tresult = result & ((IRODSFile)file).delete(true); \r\n\t\t\t} else */{\r\n\t\t\tLog.log(Log.DEBUG, \"deleting - force:\"+inTrash);\r\n\t\t\ttry {\r\n\t\t\t\tif (inTrash) \r\n\t\t\t\t\tresult = result & file.deleteWithForceOption();\r\n\t\t\t\telse\r\n\t\t\t\t\tresult = result & file.delete();\r\n\t\t\t} catch (RuntimeException e) { // Catch jargon bugs\r\n\t\t\t\tLog.log(Log.WARNING,\"Jargon threw a RuntimeException during delete: \"+e);\r\n\t\t\t\tresult = false;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (!result) Log.log(Log.WARNING,\"Failed to delete file: \"+file);\r\n \treturn result; \t\r\n }", "title": "" }, { "docid": "d4da10e5e956b2136a617c20675cc1c6", "score": "0.54112864", "text": "static private void recursiveRemoveEmptyDirs (File directory, FileSystemView fsView) {\n File files[] = fsView.getFiles(directory, false);\n if (files.length==0) { directory.delete(); return; }\n for (int i = 0; i < files.length; i++) {\n if (files[i].isDirectory()) recursiveRemoveEmptyDirs (files[i], fsView);\n }\n // Check again\n files = fsView.getFiles(directory, false);\n if (files.length==0) directory.delete();\n}", "title": "" }, { "docid": "cae9a1d0a48b29dc91d48e7840916e21", "score": "0.53888005", "text": "public static void deleteDirectory(File dirPath) {\n\n\t\tif(!dirPath.exists()) {\n\t\t\treturn;\n\t\t}\n\n\t\tfor (String filePath : dirPath.list()) {\n\t\t\tFile file = new File(dirPath, filePath);\n\t\t\tif (file.isDirectory())\n\t\t\t\t\n\t\t\t\tdeleteDirectory(file);\n\t\t\tfile.delete();\n\t\t}\n\t}", "title": "" }, { "docid": "c754d4853df6b1bf29bab9c3d82bd5e2", "score": "0.5387313", "text": "public Boolean removeAllFiles(){\r\n\t\ttry {\r\n\t\t\tFileUtils.cleanDirectory(new File(getFullPath()));\r\n\t\t} catch (IOException e) {\r\n\t\t\tlogger.log(Level.ERROR, e);\r\n\t\t\treturn false;\r\n\t\t} \r\n\t\treturn true;\r\n\t}", "title": "" }, { "docid": "b8002fb77d55771bbb545443da5a7587", "score": "0.53840595", "text": "public static boolean deleteQuietly(File file) {\n if (file == null) {\n return false;\n }\n try {\n if (file.isDirectory()) {\n cleanDirectory(file);\n }\n } catch (Exception ignored) {\n }\n\n try {\n return file.delete();\n } catch (Exception ignored) {\n return false;\n }\n }", "title": "" }, { "docid": "71204034f0af9f1516950b1662d91df8", "score": "0.53808486", "text": "public void deleteFolder(String directory) {\n try {\n deleteFolderStatement.setString(1, directory);\n deleteFolderStatement.executeUpdate();\n\n } catch (SQLException e) {\n System.out.println(\"Folder deletion failed: \" + e.getMessage());\n }\n }", "title": "" }, { "docid": "50d058f2138244b9f1a40e3341281a16", "score": "0.5373337", "text": "private int clearCacheFolder(File dir, long numDays) { \r\n\t int deletedFiles = 0; \r\n\t if (dir!= null && dir.isDirectory()) { \r\n\t try { \r\n\t for (File child:dir.listFiles()) { \r\n\t if (child.isDirectory()) { \r\n\t deletedFiles += clearCacheFolder(child, numDays); \r\n\t } \r\n\t if (child.lastModified() < numDays) { \r\n\t if (child.delete()) { \r\n\t deletedFiles++; \r\n\t } \r\n\t } \r\n\t } \r\n\t } catch(Exception e) { \r\n\t e.printStackTrace(); \r\n\t } \r\n\t } \r\n\t return deletedFiles; \r\n\t}", "title": "" }, { "docid": "b9b0cfb73cbb5e10078cf6fa519f06e1", "score": "0.5372438", "text": "private void deleteDir(File file) throws IOException{\n\t\tif(file.exists()){\n\t\t\tif(file.isDirectory()){\n\t\t\t\tFile[] files = file.listFiles();\n\t\t\t\tfor (int i = 0; i < files.length; i++) {\n\t\t\t\t\tdeleteDir(files[i]);\n\t\t\t\t}\n\t\t\t\tFiles.delete(file.toPath());\n\t\t\t}else\n\t\t\t\tFiles.delete(file.toPath());\n\t\t}\n\t}", "title": "" }, { "docid": "07dab521252816d4341a96d818288533", "score": "0.5369344", "text": "public void directoryFound(File directory) {\n\t\tif(directory.exists()==false) return;\n\t\t\n\t\t// Delete up tree\n\t\tFile[] files = directory.listFiles();\n\t\tfor(File file: files) {\n\t\t\tif(file.isDirectory()) {\n\t\t\t\tdirectoryFound(file);\n\t\t\t}\n\t\t}\n\n\t\t//Delete page.html etc. if only files as this is generated as a change in error due to timestamp\n\t\tboolean hasNonGeneratedFile = false;\n\t\tfor(File file: files) {\n\t\t\tString fileName = file.getName();\n\t\t\tif(fileName.equals(\"page.html\") || fileName.equals(\"page.html.fragment\") || file.isDirectory() ) {\n\t\t\t\tcontinue;\n\t\t\t} else {\n\t\t\t\thasNonGeneratedFile=true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tif(hasNonGeneratedFile) {\n\t\t\treturn;\n\t\t} else {\n\t\t\tfor(File file: files) {\n\t\t\t\tString fileName = file.getName();\n\t\t\t\tif(fileName.equals(\"page.html\") || fileName.equals(\"page.html.fragment\") ) {\n\t\t\t\t\tSystem.out.println(\"Deleting generated file \"+file);\n\t\t\t\t\tboolean result = file.delete();\n\t\t\t\t\tif(result==false) {\n\t\t\t\t\t\tSystem.out.println(\"FAILED to delete file \"+file);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tif(directory.listFiles().length==0) {\n\t\t\tSystem.out.println(\"deleting empty directory \"+directory);\n\t\t\tboolean result = directory.delete();\n\t\t\tif(result==false) {\n\t\t\t\tSystem.out.println(\"FAILED to delete empty directory \"+directory);\n\t\t\t}\n\t\t} else {\n\t\t\tSystem.out.println(\"NOT deleting directory \"+directory);\n\t\t}\n\t}", "title": "" }, { "docid": "5d095a689885ba750834e90d74632753", "score": "0.53632176", "text": "public static void purgeDirectoryRecursively(File directory)\r\n\t\t\tthrows IOException {\r\n\t\tFile[] files = directory.listFiles();\r\n\t\tfor (File file : files) {\r\n\t\t\tif (file.isDirectory()) {\r\n\t\t\t\tpurgeDirectoryRecursively(file);\r\n\t\t\t} else {\r\n\t\t\t\tdeleteFile(file);\r\n\t\t\t}\r\n\t\t}\r\n\t\tdeleteFile(directory);\r\n\t}", "title": "" }, { "docid": "0573d69bb40cede33b99bd084a433248", "score": "0.53590494", "text": "private int recursiveDelete(DMTFile file) {\n\n\t\t\tif (file.isDirectory()){\n\t\t\t\tDMTFile[] childs = ftpService.listFiles(file.getPath());\n\t\t\t\tif (null != childs){\n\t\t\t\t\tfor (DMTFile childFile : childs) {\n\t\t\t\t\t\tif (childFile.isDirectory()) {\n\t\t\t\t\t\t\tint result = recursiveDelete(childFile);\n\t\t\t\t\t\t\tif (result > 0) {\n\t\t\t\t\t\t\t\treturn result;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tboolean childDeletedOK = ftpService.deleteFile(childFile);\n\t\t\t\t\t\t\tif (!childDeletedOK) {\n\t\t\t\t\t\t\t\terrorFile = childFile;\n\t\t\t\t\t\t\t\treturn err_deleting_child_file;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tboolean deletedOK = false;\n\t\t\tif (file.isDirectory()){\n\t\t\t\tdeletedOK = ftpService.deleteDirectory(file);\n\t\t\t} else {\n\t\t\t\t//it's a file\t\t\t\n\t\t\t\tdeletedOK = ftpService.deleteFile(file);\n\t\t\t}\n\t\t\tif (!deletedOK) {\n\t\t\t\terrorFile = file;\n\t\t\t\treturn file.isDirectory() ? err_deleting_folder : err_deleting_file;\n\t\t\t}\n\n\t\t\treturn success;\n\t\t}", "title": "" }, { "docid": "bf303ea43298a934f05723d5a129b78c", "score": "0.53536725", "text": "public FSReturnVals deleteDir(String src, String dirname) {\n\t\tif (!dirExists(src)) {\n\t\t\treturn FSReturnVals.SrcDirNotExistent;\n\t\t}\n\n\t\t// see if dest dir exists\n\t\tif (!dirExists(src + dirname + \"/\")) {\n\t\t\treturn FSReturnVals.DestDirNotExistent;\n\t\t}\n\n\t\t// see if dest dir has children\n\t\t// only time target dir not empty is if size of list returned from util fn\n\t\t// is greater than 1\n\t\tSet<String> descendants = findImmediateNamespaceDescendants(src + dirname + \"/\");\n\t\tif (descendants.size() > 0) {\n\t\t\treturn FSReturnVals.DirNotEmpty;\n\t\t}\n\n\t\t// delete dest dir\n\t\tnamespace.remove(src + dirname + \"/\");\n\t\t\n\t\t// success\n\t\treturn FSReturnVals.Success;\n\t}", "title": "" }, { "docid": "5762ef977d3d833491027253d8a29ff8", "score": "0.5350992", "text": "public static boolean deleteDirectory(String sPath) {\n\t\tsynchronized (SYNC) {\n\t\t\tBoolean flag = false;\n\t\t\ttry {\n\t\t\t\tif(sPath != null && !\"\".equals(sPath)) {\n\t\t\t\t\tsPath = Security.cleanXss(sPath); //외부 입력값 필터링 \n\t\t\t\t}\n\t\t\t\tif (!sPath.endsWith(File.separator)) {\n\t\t\t\t\tsPath = sPath + File.separator;\n\t\t\t\t}\n\t\t\t\tFile dirFile = new File(sPath);\n\t\t\t\tif (!dirFile.exists() || !dirFile.isDirectory()) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t\tFile[] files = dirFile.listFiles();\n\t\t\t\tif (files != null && files.length > 0) {\n\t\t\t\t\tfor (int i = 0; i < files.length; i++) {\n\t\t\t\t\t\tif (files[i].isFile()) {\n\t\t\t\t\t\t\tflag = deleteFile(files[i].getAbsolutePath());\n\t\t\t\t\t\t\tif (!flag)\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t} \n//\t\t\t\t\t\telse {\n//\t\t\t\t\t\t\tflag = deleteDirectory(files[i].getAbsolutePath());\n//\t\t\t\t\t\t\tif (!flag)\n//\t\t\t\t\t\t\t\tbreak;\n//\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (!flag)\n\t\t\t\t\treturn false;\n\t\t\t\tflag = dirFile.delete();\n\t\t\t} catch (NullPointerException e) {\n\t\t\t\tlogger.error(e);\n\t\t\t\tflag = false;\n\t\t\t} finally {\n\t\t\t\treturn flag;\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "408d6a23df2cc18da826eb5f17f044e8", "score": "0.53402984", "text": "public static int clearCacheFolder(File dir, long numDays) {\n int deletedFiles = 0;\n if (dir != null && dir.isDirectory()) {\n try {\n for (File child : dir.listFiles()) {\n if (child.isDirectory()) {\n deletedFiles += clearCacheFolder(child, numDays);\n }\n if (child.lastModified() < numDays) {\n if (child.delete()) {\n deletedFiles++;\n }\n }\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n return deletedFiles;\n }", "title": "" }, { "docid": "0db4bd34f2e320e24d44aaa1234a8f3a", "score": "0.5327283", "text": "private static void deleteDirectoryOnExit(File directory) throws IOException {\n if (!directory.exists()) {\n return;\n }\n\n directory.deleteOnExit();\n if (!isSymlink(directory)) {\n cleanDirectoryOnExit(directory);\n }\n }", "title": "" }, { "docid": "417c821c7a03d7d3af4ec4d23ee35f49", "score": "0.5305042", "text": "public static void cleanDirectory(File directory) throws IOException {\n if (!directory.exists()) {\n String message = directory + \" does not exist\";\n throw new IllegalArgumentException(message);\n }\n\n if (!directory.isDirectory()) {\n String message = directory + \" is not a directory\";\n throw new IllegalArgumentException(message);\n }\n\n File[] files = directory.listFiles();\n if (files == null) { // null if security restricted\n throw new IOException(\"Failed to list contents of \" + directory);\n }\n\n IOException exception = null;\n for (File file : files) {\n try {\n forceDelete(file);\n } catch (IOException ioe) {\n exception = ioe;\n }\n }\n\n if (null != exception) {\n throw exception;\n }\n }", "title": "" }, { "docid": "82e61c66681acdad516662067f5b8bdb", "score": "0.5295794", "text": "public static void deleteFolder(File folder) {\n\t File[] files = folder.listFiles();\n\t if(files!=null) { //some JVMs return null for empty dirs\n\t for(File f: files) {\n\t if(f.isDirectory()) {\n\t deleteFolder(f);\n\t } else {\n\t f.delete();\n\t }\n\t }\n\t }\n\t folder.delete();\n\t}", "title": "" }, { "docid": "9d7ee37d910d7b1d07a222750b5726b3", "score": "0.52736354", "text": "public static void deleteDirectory(File directory) throws IOException {\n if (!directory.exists()) {\n return;\n }\n\n if (!isSymlink(directory)) {\n cleanDirectory(directory);\n }\n\n if (!directory.delete()) {\n String message =\n \"Unable to delete directory \" + directory + \".\";\n throw new IOException(message);\n }\n }", "title": "" }, { "docid": "12c98f6928db7645e14ece065ce959a3", "score": "0.524836", "text": "public void deleteDirectory(DocumentDirectoryFQN dirFQN) {\n\t\tdocs().deleteFolder(auth(), dirFQN);\n\t}", "title": "" }, { "docid": "622f530fe96f14999daa272667e431e2", "score": "0.5241877", "text": "private void clearTestDirectory() throws IOException {\n for (File file : testDirectory.toFile().listFiles()) {\n if (file.isDirectory()) {\n FileUtils.deleteDirectory(file.toPath());\n } else {\n file.delete();\n }\n }\n }", "title": "" }, { "docid": "9da8254275039c5039207fc93bc3a1e4", "score": "0.5237189", "text": "private static void deleteUtils (File folder) {\n\n for (File f : Objects.requireNonNull(folder.listFiles())) {\n if (f.isDirectory()) {\n deleteUtils(f);\n f.delete();\n } else {\n if (f.getPath().endsWith(\".pack\")){\n gitRepo.getRepository().close();\n }\n if (f.delete()) {\n System.out.println(f.getPath() + \": deleted\");\n } else {\n System.err.println(f.getPath() + \": NOT deleted\");\n }\n }\n }\n System.out.println();\n }", "title": "" }, { "docid": "4c2ef8a8c41ba73de6e2c2d7d250ed81", "score": "0.5231595", "text": "public static void recursiveDelete(File root) {\n if (root == null) {\n return;\n }\n\n if (root.isDirectory()) {\n File[] files = root.listFiles();\n if (files != null) {\n for (int i = 0; i < files.length; i++) {\n File file = files[i];\n if (file.isDirectory()) {\n recursiveDelete(file);\n } else {\n file.delete();\n }\n }\n }\n }\n root.delete();\n }", "title": "" }, { "docid": "cdf9e99685c05c5288a82e71ca7b2759", "score": "0.52104574", "text": "private void cleanup() {\n File tmpdir = new File(System.getProperty(\"java.io.tmpdir\"));\n File[] restoreDirs = tmpdir.listFiles(file -> file.getName().contains(RESTORE_TEMP_DIR_PREFIX));\n if (restoreDirs != null) {\n for (File file : restoreDirs) {\n try {\n FileUtils.deleteDirectory(file);\n log.info(\"removed temporary backup directory {}\", file.getAbsolutePath());\n } catch (IOException e) {\n log.error(\"failed to delete the temporary backup directory {}\", file.getAbsolutePath());\n }\n }\n }\n }", "title": "" }, { "docid": "58461e743b77f6d0ff8c32543621d9f8", "score": "0.51955837", "text": "private static boolean RemoveAllFiles(String pstrDirectory) {\r\n try {\r\n File flFolder = new File(pstrDirectory);\r\n File[] arrflAllFiles = flFolder.listFiles(); \r\n for (int i = 0; i < arrflAllFiles.length; i++) {\r\n if (arrflAllFiles[i].isFile()) {\r\n Files.delete(arrflAllFiles[i].toPath());\r\n } \r\n }\r\n return true;\r\n } catch (IOException ex) {\r\n System.err.println(ex);\r\n }\r\n return false;\r\n }", "title": "" }, { "docid": "c73d9efd1169fd5781252e196d70c810", "score": "0.5194673", "text": "private void cleanDirectory(final File folder, final String...ignores) throws IOException {\n\t\tFile[] files = folder.listFiles(createIngoreFilter(ignores));\n\t\tif (files.length > 0) {\n\t\t\tlogger.info(\"Cleaning folder: \"+folder.getAbsolutePath());\n\t\t\tfor (File file : files) {\n\t\t\t\tif (!FileUtils.isSymlink(file)) {\n\t\t\t\t\t// if file is symlink, do not recurse, only delete the link.\n\t\t\t\t\tfile.delete();\n\t\t\t\t} else {\n\t\t\t\t\tFileUtils.forceDelete(file);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "0d5446a6f3b1b51c08a1022d311c3e23", "score": "0.5175311", "text": "private static void recursiveDelete(File file) {\n if (!file.exists())\n return;\n \n //if directory, go inside and call recursively\n if (file.isDirectory()) {\n for (File f : file.listFiles()) {\n //call recursively\n recursiveDelete(f);\n }\n }\n //call delete to delete files and empty directory\n file.delete();\n }", "title": "" }, { "docid": "ae4e3a53ea61edfb5bfa0154a0e1decc", "score": "0.5162983", "text": "public void deleteContent(Directory directory) throws IOException {\n }", "title": "" }, { "docid": "2610c3c74aeb1469d0f3d2c867adedc5", "score": "0.5158058", "text": "public static void forceDelete(Path path) {\n if (Files.isDirectory(path)) {\n try {\n Files.walkFileTree(path, new SimpleFileVisitor<Path>() {\n\n @Override\n public FileVisitResult visitFile(Path file, BasicFileAttributes attrs) throws IOException {\n try {\n Files.delete(file);\n } catch (IOException e) {\n logger.debug(\"Could not delete file: {}\", e.getMessage());\n }\n return CONTINUE;\n }\n\n @Override\n public FileVisitResult postVisitDirectory(Path dir, IOException exc) {\n if (exc == null) {\n try {\n Files.delete(dir);\n } catch (Exception e) {\n logger.debug(\"Could not delete dir: {}\", e.getMessage());\n }\n return CONTINUE;\n } else {\n logger.debug(\"Could not delete file: {}\", exc.getMessage());\n return CONTINUE;\n }\n }\n });\n } catch (IOException e) {\n logger.debug(\"Could not delete dir: {}\", e.getMessage());\n }\n } else {\n try {\n Files.delete(path);\n } catch (IOException e) {\n logger.debug(\"Could not delete file: {}\", e.getMessage());\n }\n }\n }", "title": "" }, { "docid": "a8bbb71ff12b742bc94082fb96604bf1", "score": "0.5133414", "text": "@Override\r\n\t\tpublic void delete() throws IOException {\n\t\t\tif ((Boolean)getAttributes().get(ATTR_DIR)) {\r\n\t\t\t\tthrow new IOException(\"Can't delete directories in the REST file system\");\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t}", "title": "" }, { "docid": "d329846be5fae760f88818fc918d47ae", "score": "0.51013744", "text": "public boolean cleanDirectory(File aDirectoryToClear) {\n\t\ttry {\n\t\t\tFileUtils.cleanDirectory(aDirectoryToClear);\n\t\t} catch (Exception e) {\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "title": "" }, { "docid": "4d1920b045287e0d742c583f32a67883", "score": "0.5053973", "text": "public static boolean deleteFolder(File folderToDelete, boolean deleteActualFolder) {\n\t\tFile[] list = folderToDelete.listFiles();\n\t\tboolean isDeleted = false;\n\n\t\t/*\n\t\t * if deleteActualFolder is set to false, we just delete all of the\n\t\t * items in the folder, but not the folder itself\n\t\t */\n\t\ttry {\n\t\t\tfor (File item : list) {\n\t\t\t\tisDeleted = item.delete();\n\t\t\t}\n\t\t} catch (SecurityException err) {\n\t\t\terr.printStackTrace();\n\t\t}\n\n\t\t/*\n\t\t * if deleteActualFolder is set to true, we delete the folder along with\n\t\t * all of the files in it\n\t\t */\n\t\tif (deleteActualFolder) {\n\t\t\tisDeleted = folderToDelete.delete();\n\t\t}\n\n\t\treturn isDeleted;\n\t}", "title": "" }, { "docid": "7289ab33ca2b560e68295151f9a41956", "score": "0.5023274", "text": "public static boolean deleteFile(File file) {\n//\t\tif(SystemUtils.isSDCardMounted()) {\n if (!file.exists()) {\n return true;\n }\n try {\n if (file.isFile()) {\n file.delete();\n } else if (file.isDirectory()) {\n File files[] = file.listFiles();\n for (int i = 0; i < files.length; i++) {\n deleteFile(files[i]);\n }\n file.delete();\n }\n } catch (Exception e) {\n e.printStackTrace();\n return false;\n }\n return true;\n//\t\t} else return false;\n }", "title": "" }, { "docid": "ec456f4f6fa266a2a9550d13055bb61b", "score": "0.50228935", "text": "private void clearFolder(File folder) {\n\t\tFile[] files = folder.listFiles();\n\t\tif(files!=null) { //some JVMs return null for empty dirs\n\t\t\tfor(File f: files) {\n\t\t\t\tif(f.isDirectory()) {\n\t\t\t\t\tclearFolder(f);\n\t\t\t\t\tf.delete();\n\t\t\t\t} else {\n\t\t\t\t\tf.delete();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "c1d61b3ff8738edb771c4a63db02d709", "score": "0.50218636", "text": "@Override\n protected boolean deleteCheckedFiles()\n {\n boolean success = false;\n ArrayList<String> files = getCheckedFiles();\n \n if (files.size() > 0)\n {\n String fileName = \"\";\n \n try\n {\n for (String f : files)\n {\n fileName = f;\n mgr.deleteFile(appManagementDir + f, false);\n \n // handle the odex as well\n if (handleOdex && f.endsWith(\".apk\"))\n {\n String odexName = f.replace(\".apk\", \".odex\");\n \n if (mgr.fileExists(appManagementDir + odexName))\n {\n mgr.deleteFile(appManagementDir + odexName, true);\n }\n }\n }\n \n success = true;\n }\n catch (Exception exc)\n {\n String message = \"Exception thrown while deleting \" + \n fileName + \":\\n\" + exc.getMessage();\n \n AlertDialog dialog = new AlertDialog.Builder(this).create();\n dialog.setMessage(message);\n dialog.setButton(\n AlertDialog.BUTTON_POSITIVE,\n \"Ok\", \n (DialogInterface.OnClickListener)null);\n \n dialog.show();\n }\n finally\n {\n createFileList();\n }\n }\n \n return success;\n }", "title": "" }, { "docid": "f3da7242a9365fb70ba5181ea381c29a", "score": "0.5012704", "text": "public static boolean deleteFile( File file)\n {\n if( !file.exists())\n return false;\n\n // some OS such as Windows can have problem doing delete IO operations so we may\n // need to\n // retry a couple of times to let it work\n boolean deleted= false;\n int count= 0;\n while( !deleted&& count< 3)\n {\n logger.debug( \"Retrying attempt {} to delete file: {}\", count, file);\n\n deleted= file.delete();\n if( !deleted&& count> 0)\n {\n try\n {\n Thread.sleep( 1000);\n }\n catch( InterruptedException e)\n {\n // ignore\n }\n }\n count++;\n }\n\n if( logger.isDebugEnabled()&& count> 0)\n logger.debug( \"Tried {} to delete file: {} with result: {}\", new Object[]{ count, file, deleted });\n return deleted;\n }", "title": "" }, { "docid": "a698ccc55eeab710d3a494d1fdb41218", "score": "0.50096077", "text": "public void deleteAll()\n {\n itsBackupFilesDao.deleteAll(getApplication());\n }", "title": "" }, { "docid": "a90a7feaa2895b159006cdf0a8c309db", "score": "0.4977242", "text": "protected boolean deleteFile(String key) {\r\n\t\treturn deleteAll(files.get(key));\r\n\t}", "title": "" }, { "docid": "2f070d4a601742407580c596b15ec59a", "score": "0.49728772", "text": "public static void removeDir(File file) {\n if (file == null) {\n return;\n }\n if (file.isDirectory()) {\n File[] files = file.listFiles();\n for(File f : files) {\n removeDir(f);\n }\n }\n if (!file.delete()) {\n \tif (_logger.isLoggable(Level.FINE)) {\n \t\t_logger.log(Level.FINE, _strings.get(\"failureInFileDeletion\", file.getAbsolutePath()));\n \t}\n }\n }", "title": "" }, { "docid": "7682287267ade3484207690e739d6382", "score": "0.4967725", "text": "public static boolean isDirectoryEmpty(final File dir) {\r\n Assertor.that(dir).isNotNull().orElseThrow(ERROR_PARAM_NULL);\r\n\r\n if (dir.isDirectory()) {\r\n File[] files = dir.listFiles();\r\n if (files == null || files.length == 0) {\r\n return true;\r\n }\r\n }\r\n return false;\r\n }", "title": "" }, { "docid": "944387008b8c6f7d0d615ca467e00797", "score": "0.49377543", "text": "private void delete(DirectoryEntry entry, DeleteMode deleteMode, JimfsPath pathForException) throws IOException {\n/* 476 */ Directory parent = entry.directory();\n/* 477 */ File file = entry.file();\n/* */ \n/* 479 */ checkDeletable(file, deleteMode, pathForException);\n/* 480 */ parent.unlink(entry.name());\n/* 481 */ parent.updateModifiedTime();\n/* */ \n/* 483 */ file.deleted();\n/* */ }", "title": "" } ]
dc7f17728da411d9add7e00ac68401bb
When this comment was updated last time.
[ { "docid": "c3145275cb1903a384ddbf47beba8038", "score": "0.0", "text": "public Date updatedAt() throws IOException {\n try {\n return new Github.Time(\n this.jsn.text(\"updated_at\")\n ).date();\n } catch (final ParseException ex) {\n throw new IOException(ex);\n }\n }", "title": "" } ]
[ { "docid": "4a8e560fe1b80921ebd035f98a32615f", "score": "0.76720524", "text": "public Date getLast_updated_time() {\n\t\treturn last_updated_time;\n\t}", "title": "" }, { "docid": "88a823a0bf9e39c1afd01d3244fc648c", "score": "0.7524448", "text": "public String getDateLastUpdated() {\n return _lastUpdated;\n }", "title": "" }, { "docid": "41447154004aa8149662a17c88fd80e6", "score": "0.73674923", "text": "public Date getLastUpdatedTime() {\n return lastUpdatedTime;\n }", "title": "" }, { "docid": "41447154004aa8149662a17c88fd80e6", "score": "0.73674923", "text": "public Date getLastUpdatedTime() {\n return lastUpdatedTime;\n }", "title": "" }, { "docid": "ce9dcc4ac3c60a281ab80d881887146b", "score": "0.7328479", "text": "public String getLastUpdatedTime() {\n return this.lastUpdatedTime;\n }", "title": "" }, { "docid": "a744be8b85ef9da4ea7838898e65483b", "score": "0.7312008", "text": "public Date getCommentTime() {\n\t\treturn commentTime;\n\t}", "title": "" }, { "docid": "26c6fe9f3713bad29569ad67435d298a", "score": "0.73003083", "text": "public String getUpdatedTime() {\n return updatedTime;\n }", "title": "" }, { "docid": "572fc11f62dbfdfc4228872218fcf9ce", "score": "0.7295795", "text": "public Date getUpdatedTime() {\n return updatedTime;\n }", "title": "" }, { "docid": "f97e2461c358de48f5ffed6e419a9c8b", "score": "0.7239134", "text": "public Date getLastUpdated() {\n return lastUpdated;\n }", "title": "" }, { "docid": "f97e2461c358de48f5ffed6e419a9c8b", "score": "0.7239134", "text": "public Date getLastUpdated() {\n return lastUpdated;\n }", "title": "" }, { "docid": "0373787f2362c05c0c6bcc560a19eba1", "score": "0.7165315", "text": "public String getCommentTime() {\n return this.commentTime;\n }", "title": "" }, { "docid": "9a438c941c50abbf5cb125f5cdd751ac", "score": "0.7146108", "text": "public Date getUpdate_time() {\n return update_time;\n }", "title": "" }, { "docid": "9a438c941c50abbf5cb125f5cdd751ac", "score": "0.7146108", "text": "public Date getUpdate_time() {\n return update_time;\n }", "title": "" }, { "docid": "410de5ee47c25361abdd12290552034c", "score": "0.71359193", "text": "public Date getUpdatedOn() {\n return updatedOn;\n }", "title": "" }, { "docid": "17e14dbedb18c9224fb9e9e9b647c1e1", "score": "0.713239", "text": "public Date getUpdatedTime() {\r\n return StringUtils.toDate(updatedTime);\r\n }", "title": "" }, { "docid": "2d5458edcde145032afdd74f12888ea9", "score": "0.7131868", "text": "public Date getLastUpdated() {\n return this.lastUpdated;\n }", "title": "" }, { "docid": "20a9e5994ccea651c17a830d2edb4eec", "score": "0.71000385", "text": "public Date getLastUpdate() {\n return lastUpdate;\n }", "title": "" }, { "docid": "20a9e5994ccea651c17a830d2edb4eec", "score": "0.71000385", "text": "public Date getLastUpdate() {\n return lastUpdate;\n }", "title": "" }, { "docid": "7b7799a7f63c9efbbd6707024607e916", "score": "0.70927423", "text": "public Date getUpdated_at() {\n return updated_at;\n }", "title": "" }, { "docid": "7b7799a7f63c9efbbd6707024607e916", "score": "0.70927423", "text": "public Date getUpdated_at() {\n return updated_at;\n }", "title": "" }, { "docid": "20f504892eb1018bf1c1bccb78a9690e", "score": "0.7078465", "text": "public String getLastUpdateBy() {\n return lastUpdateBy;\n }", "title": "" }, { "docid": "58b820c8ecad671536c75e06cf81c924", "score": "0.7070443", "text": "public java.util.Date getLastUpdatedTime() {\n return this.lastUpdatedTime;\n }", "title": "" }, { "docid": "ba002f966d9fa7049bd022f2327b88b3", "score": "0.7068916", "text": "public Date getTimeUpdate() {\n return timeUpdate;\n }", "title": "" }, { "docid": "ba002f966d9fa7049bd022f2327b88b3", "score": "0.7068916", "text": "public Date getTimeUpdate() {\n return timeUpdate;\n }", "title": "" }, { "docid": "009f778c77c9bfbd333c16854a406c42", "score": "0.70528984", "text": "Date getUpdated();", "title": "" }, { "docid": "76f49c0c7a16a3ec28465af304b86326", "score": "0.7040849", "text": "public Timestamp getLastUpdateDate() {\r\n return (Timestamp)getAttributeInternal(LASTUPDATEDATE);\r\n }", "title": "" }, { "docid": "ff3c9ab90128c485071889c45767a063", "score": "0.7034001", "text": "public String getDateUpdated() {\n return dateUpdated;\n }", "title": "" }, { "docid": "13b14751d69065b4d3357d983ece594f", "score": "0.70235074", "text": "public java.lang.String getUpdatedTime() {\n return localUpdatedTime;\n }", "title": "" }, { "docid": "c8668408d4b74845f302c92d2b518b01", "score": "0.7022279", "text": "public Date getCommentCreateTime() {\r\n return commentCreateTime;\r\n }", "title": "" }, { "docid": "43466b0411942dc1e5976bac90308856", "score": "0.70211846", "text": "public Long getUpdateDatetime() {\n return updateDatetime;\n }", "title": "" }, { "docid": "1305b8f44404aa14731b50f0baa344cf", "score": "0.70139027", "text": "public String getLastUpdateBy(){\n return this.lastUpdatedBy.get();\n }", "title": "" }, { "docid": "dbac7fdda4a2154791d5c4f04f877de5", "score": "0.6995714", "text": "public Date getUpdatedat()\r\n/* 85: */ {\r\n/* 86: 76 */ return this.updatedat;\r\n/* 87: */ }", "title": "" }, { "docid": "f2c56e3b83b37a0a45bd3cad94f60c82", "score": "0.699305", "text": "public Date getCommentCreateTime() {\n return commentCreateTime;\n }", "title": "" }, { "docid": "66df7b32191a3a4c173f87eadb7b293c", "score": "0.6991463", "text": "public Date getLastUpdateDate() {\n return (Date)getAttributeInternal(LASTUPDATEDATE);\n }", "title": "" }, { "docid": "66df7b32191a3a4c173f87eadb7b293c", "score": "0.6991463", "text": "public Date getLastUpdateDate() {\n return (Date)getAttributeInternal(LASTUPDATEDATE);\n }", "title": "" }, { "docid": "66df7b32191a3a4c173f87eadb7b293c", "score": "0.6991463", "text": "public Date getLastUpdateDate() {\n return (Date)getAttributeInternal(LASTUPDATEDATE);\n }", "title": "" }, { "docid": "beaba532f1db992b2b398910121fc3dc", "score": "0.69870925", "text": "public Date getLastUpdatedDate() {\n return lastUpdatedDate;\n }", "title": "" }, { "docid": "cb2644190ab5f88ba2a17db8b1b8a78b", "score": "0.6984882", "text": "public Date getLastUpdateDate() {\r\n return (Date)getAttributeInternal(LASTUPDATEDATE);\r\n }", "title": "" }, { "docid": "4f9dc3a533fa7fff8280fbd550a0eea1", "score": "0.6978841", "text": "public long getTimestampLastUpdate( ) \n {\n return _lTimestampLastUpdate;\n }", "title": "" }, { "docid": "e9f9158243b96d740c66bd21e139be9d", "score": "0.69718313", "text": "public Date getUpdatetime() {\r\n return updatetime;\r\n }", "title": "" }, { "docid": "e9f9158243b96d740c66bd21e139be9d", "score": "0.69718313", "text": "public Date getUpdatetime() {\r\n return updatetime;\r\n }", "title": "" }, { "docid": "e9f9158243b96d740c66bd21e139be9d", "score": "0.69718313", "text": "public Date getUpdatetime() {\r\n return updatetime;\r\n }", "title": "" }, { "docid": "f7b635c5195763d64b675a36b3c2dec9", "score": "0.69648314", "text": "public OffsetDateTime lastUpdatedTime() {\n return this.innerProperties() == null ? null : this.innerProperties().lastUpdatedTime();\n }", "title": "" }, { "docid": "d71e3ed159ac7a725865b96b160d5a50", "score": "0.69617105", "text": "public Timestamp getLastUpdatedDate() {\n return (Timestamp) getAttributeInternal(LASTUPDATEDDATE);\n }", "title": "" }, { "docid": "fea1175b660340cb10936e01e20919b4", "score": "0.6960727", "text": "public Date getUpdated() {\r\n return updated;\r\n }", "title": "" }, { "docid": "fea1175b660340cb10936e01e20919b4", "score": "0.6960727", "text": "public Date getUpdated() {\r\n return updated;\r\n }", "title": "" }, { "docid": "09af85d3c368949ae2cfb28e2de0908c", "score": "0.69573754", "text": "public Timestamp getLastUpdatedDate() {\r\n return (Timestamp) getAttributeInternal(LASTUPDATEDDATE);\r\n }", "title": "" }, { "docid": "95a4cd45ba65fbf129194cf39c8867ab", "score": "0.69456935", "text": "@Override\n public DateTime getLastModifiedDate() {\n return lastUpdated;\n }", "title": "" }, { "docid": "342ac710816a308258591f98792a13f1", "score": "0.6932552", "text": "public Date getLastUpdatedDate() {\n return (Date)getAttributeInternal(LASTUPDATEDDATE);\n }", "title": "" }, { "docid": "342ac710816a308258591f98792a13f1", "score": "0.6932552", "text": "public Date getLastUpdatedDate() {\n return (Date)getAttributeInternal(LASTUPDATEDDATE);\n }", "title": "" }, { "docid": "342ac710816a308258591f98792a13f1", "score": "0.6932552", "text": "public Date getLastUpdatedDate() {\n return (Date)getAttributeInternal(LASTUPDATEDDATE);\n }", "title": "" }, { "docid": "1225f49abf3420f490f38c62bd5a8d6d", "score": "0.69304806", "text": "public Date getUpdatetime() {\n return updatetime;\n }", "title": "" }, { "docid": "1225f49abf3420f490f38c62bd5a8d6d", "score": "0.69304806", "text": "public Date getUpdatetime() {\n return updatetime;\n }", "title": "" }, { "docid": "1225f49abf3420f490f38c62bd5a8d6d", "score": "0.69304806", "text": "public Date getUpdatetime() {\n return updatetime;\n }", "title": "" }, { "docid": "1225f49abf3420f490f38c62bd5a8d6d", "score": "0.69304806", "text": "public Date getUpdatetime() {\n return updatetime;\n }", "title": "" }, { "docid": "1225f49abf3420f490f38c62bd5a8d6d", "score": "0.69304806", "text": "public Date getUpdatetime() {\n return updatetime;\n }", "title": "" }, { "docid": "c2f35f28cf6d07f8daac55f92f779b69", "score": "0.69302666", "text": "Date getUpdatedDate();", "title": "" }, { "docid": "9a85e7c01a953029b10de05b8dd5c7d0", "score": "0.692919", "text": "public Date getDateUpdated() \n\t{\n\t\treturn dateUpdated;\n\t}", "title": "" }, { "docid": "c956442ff21a013b5e2c346cd531c223", "score": "0.692703", "text": "public Date getUpdated() {\r\n\t\treturn updated;\r\n\t}", "title": "" }, { "docid": "e699a12c9eb48e59e3a57d02041029b9", "score": "0.6926803", "text": "public String getLastUpdatedTimestamp() {\n return this.lastUpdatedTimestamp;\n }", "title": "" }, { "docid": "c2b1a010a74cb67b82dc432c7ba0410d", "score": "0.6919128", "text": "public Date getLastUpdated() {\n if (lastUpdated == null) {\n // feeds are sorted by pubtime, so first might not be last updated\n List<WeblogEntryCommentWrapper> items = getItems();\n if (getItems() != null && !getItems().isEmpty()) {\n Timestamp newest = (getItems().get(0)).getPostTime();\n for (WeblogEntryCommentWrapper c : items) {\n if (c.getPostTime().after(newest)) {\n newest = c.getPostTime();\n }\n }\n lastUpdated = new Date(newest.getTime());\n } else {\n // no update so we assume it's brand new\n lastUpdated = new Date();\n }\n }\n return lastUpdated;\n }", "title": "" }, { "docid": "d02f393515256ee21afabaef9f0e38e6", "score": "0.69169986", "text": "public Date getUpdated() {\n return updated;\n }", "title": "" }, { "docid": "90bb85b040d7150d0e7fd4f280486a79", "score": "0.6916918", "text": "public static String getCurrentTime()\n {\n SimpleDateFormat sdf = new SimpleDateFormat(LAST_VISITED_DATE_FORMAT);\n String currentDate = sdf.format(new Date());\n return \"Last updated at \"+currentDate;\n\n }", "title": "" }, { "docid": "dec3f5852b6be27230f398afd4386329", "score": "0.69113255", "text": "public Date getUpdatetime() {\n\t\treturn updatetime;\n\t}", "title": "" }, { "docid": "dec3f5852b6be27230f398afd4386329", "score": "0.69113255", "text": "public Date getUpdatetime() {\n\t\treturn updatetime;\n\t}", "title": "" }, { "docid": "3604ee8955289d7f9d38d10b809d11aa", "score": "0.69075125", "text": "public Timestamp getWmsLastUpdateDate() {\r\n return (Timestamp) getAttributeInternal(WMSLASTUPDATEDATE);\r\n }", "title": "" }, { "docid": "ce801bd28fa98d3932b36c68c48e4c15", "score": "0.6905556", "text": "public Date getUPDATED_DATE();", "title": "" }, { "docid": "40a85e056ce704a28f627607e1c021a8", "score": "0.6898065", "text": "String timeModified();", "title": "" }, { "docid": "3105d7653e99efded65381a6fdae24fe", "score": "0.689418", "text": "public Long getLastUpdateTime() {\r\n return this.lastUpdate.getTime();\r\n }", "title": "" }, { "docid": "4a79ec99a038a281616fcebde0bfcb0b", "score": "0.6887248", "text": "public Date getUpdateDatetime() {\n\t\treturn updateDatetime;\n\t}", "title": "" }, { "docid": "23154f46dcc35c5cf0b4af8c82211078", "score": "0.68822575", "text": "public Date getLastUpdateDate() {\n return lastUpdateDate;\n }", "title": "" }, { "docid": "8d0f019ed90e7b8b6dc24e76ce8e266a", "score": "0.68750656", "text": "public Date getUpdateTime() {\r\n return updateTime;\r\n }", "title": "" }, { "docid": "8d0f019ed90e7b8b6dc24e76ce8e266a", "score": "0.68750656", "text": "public Date getUpdateTime() {\r\n return updateTime;\r\n }", "title": "" }, { "docid": "8d0f019ed90e7b8b6dc24e76ce8e266a", "score": "0.68750656", "text": "public Date getUpdateTime() {\r\n return updateTime;\r\n }", "title": "" }, { "docid": "8d0f019ed90e7b8b6dc24e76ce8e266a", "score": "0.68750656", "text": "public Date getUpdateTime() {\r\n return updateTime;\r\n }", "title": "" }, { "docid": "8d0f019ed90e7b8b6dc24e76ce8e266a", "score": "0.68750656", "text": "public Date getUpdateTime() {\r\n return updateTime;\r\n }", "title": "" }, { "docid": "346fac9fbbb70241d5a975f034d4ca0f", "score": "0.6867977", "text": "public Date getUpdateDatetime() {\n return updateDatetime;\n }", "title": "" }, { "docid": "346fac9fbbb70241d5a975f034d4ca0f", "score": "0.6867977", "text": "public Date getUpdateDatetime() {\n return updateDatetime;\n }", "title": "" }, { "docid": "48ca5c9f2d5dc5e44ea482c6c67de3e2", "score": "0.68676525", "text": "public Date getUpdateTime() {\r\n\t\treturn updateTime;\r\n\t}", "title": "" }, { "docid": "63dca0fc0d377fa7430e4290a318e5a6", "score": "0.68558717", "text": "public Date getDateUpdated() {\n\t\treturn parseDate(this.getProperty(\"date_updated\"));\n\t}", "title": "" }, { "docid": "7dda5e6d3bfe223c5225415c966be2f8", "score": "0.68432045", "text": "public String getUpdateTime() {\r\n return updateTime;\r\n }", "title": "" }, { "docid": "7dda5e6d3bfe223c5225415c966be2f8", "score": "0.68432045", "text": "public String getUpdateTime() {\r\n return updateTime;\r\n }", "title": "" }, { "docid": "7dda5e6d3bfe223c5225415c966be2f8", "score": "0.68432045", "text": "public String getUpdateTime() {\r\n return updateTime;\r\n }", "title": "" }, { "docid": "f01e4466be5e8a873da4fcec964b7de6", "score": "0.68407637", "text": "public Date getLastUpdateDate()\n\t{\n\t\treturn (Date)getValue(InstockPlan.LASTUPDATEDATE);\n\t}", "title": "" }, { "docid": "edab32a1eb6e9e68aedc8b4fd5d9ef59", "score": "0.6833911", "text": "public Date getUpdateAt() {\n return updateAt;\n }", "title": "" }, { "docid": "edab32a1eb6e9e68aedc8b4fd5d9ef59", "score": "0.6833911", "text": "public Date getUpdateAt() {\n return updateAt;\n }", "title": "" }, { "docid": "977f02a3e8a1826c5723aba24f0fa78a", "score": "0.6829446", "text": "public Date getUpdateTime() {\n\t\treturn updateTime;\n\t}", "title": "" }, { "docid": "977f02a3e8a1826c5723aba24f0fa78a", "score": "0.6829446", "text": "public Date getUpdateTime() {\n\t\treturn updateTime;\n\t}", "title": "" }, { "docid": "977f02a3e8a1826c5723aba24f0fa78a", "score": "0.6829446", "text": "public Date getUpdateTime() {\n\t\treturn updateTime;\n\t}", "title": "" }, { "docid": "977f02a3e8a1826c5723aba24f0fa78a", "score": "0.6829446", "text": "public Date getUpdateTime() {\n\t\treturn updateTime;\n\t}", "title": "" }, { "docid": "977f02a3e8a1826c5723aba24f0fa78a", "score": "0.6829446", "text": "public Date getUpdateTime() {\n\t\treturn updateTime;\n\t}", "title": "" }, { "docid": "977f02a3e8a1826c5723aba24f0fa78a", "score": "0.6829446", "text": "public Date getUpdateTime() {\n\t\treturn updateTime;\n\t}", "title": "" }, { "docid": "977f02a3e8a1826c5723aba24f0fa78a", "score": "0.6829446", "text": "public Date getUpdateTime() {\n\t\treturn updateTime;\n\t}", "title": "" }, { "docid": "fe886931c73fe52780fd52dfd0967c00", "score": "0.68286985", "text": "public java.util.Date getTsLastUpdate()\r\n {\r\n return this._tsLastUpdate;\r\n }", "title": "" }, { "docid": "0e77eb99f36d9a39c42b2d688e2ad19e", "score": "0.6821136", "text": "public Date getUpdateTime() {\n return updateTime;\n }", "title": "" }, { "docid": "0e77eb99f36d9a39c42b2d688e2ad19e", "score": "0.6821136", "text": "public Date getUpdateTime() {\n return updateTime;\n }", "title": "" }, { "docid": "0e77eb99f36d9a39c42b2d688e2ad19e", "score": "0.6821136", "text": "public Date getUpdateTime() {\n return updateTime;\n }", "title": "" }, { "docid": "0e77eb99f36d9a39c42b2d688e2ad19e", "score": "0.6821136", "text": "public Date getUpdateTime() {\n return updateTime;\n }", "title": "" }, { "docid": "0e77eb99f36d9a39c42b2d688e2ad19e", "score": "0.6821136", "text": "public Date getUpdateTime() {\n return updateTime;\n }", "title": "" }, { "docid": "0e77eb99f36d9a39c42b2d688e2ad19e", "score": "0.6821136", "text": "public Date getUpdateTime() {\n return updateTime;\n }", "title": "" }, { "docid": "0e77eb99f36d9a39c42b2d688e2ad19e", "score": "0.6821136", "text": "public Date getUpdateTime() {\n return updateTime;\n }", "title": "" } ]
eca63ee389c8ec078f1d19912b6cb2c8
displays all binary places under binary number through animation
[ { "docid": "9e1abaef886da0ad3285aa56456055cc", "score": "0.66550004", "text": "public void displayBinaryPlaces(Graphics m)\n {\n \tm.setColor(Controller.textColor);\n \tm.setFont(textFont);\n \tm.drawString(thirtyTwosPlace, place32X, placesY);\n \tm.drawString(place, place32Xoverflow, placesYoverflow);\n \tm.drawString(sixteensPlace, place16X, placesY);\n \tm.drawString(place, place16Xoverflow, placesYoverflow);\n \tm.drawString(eightsPlace, place8X, placesY);\n \tm.drawString(foursPlace, place4X, placesY);\n \tm.drawString(twosPlace, place2X, placesY);\n \tm.drawString(onesPlace, place1X, placesY);\n }", "title": "" } ]
[ { "docid": "abf91dbbac7ef98647c63e984e832558", "score": "0.6963356", "text": "public void displayBinaryNums(Graphics m)\n {\n \tm.setColor(Controller.textColor);\n\t\tm.setFont(displayFont);\n \tm.drawString(binaryOne, binary1X, displayNumY);\n \tm.drawString(binaryZero, binary2X, displayNumY);\n \tm.drawString(binaryOne, binary3X, displayNumY);\n \tm.drawString(binaryOne, binary4X, displayNumY);\n \tm.drawString(binaryZero, binary5X, displayNumY);\n \tm.drawString(binaryOne, binary6X, displayNumY);\n }", "title": "" }, { "docid": "59d0d1d589ee0d2462c0146b0ed3cfb1", "score": "0.6357154", "text": "private void bin() {\n if (!starting_zero)\n display.setText(stripFormats(binConverted.getText()));\n // disables unnecessary buttons\n letter_a.setEnabled(false);\n letter_b.setEnabled(false);\n letter_c.setEnabled(false);\n letter_d.setEnabled(false);\n letter_e.setEnabled(false);\n letter_f.setEnabled(false);\n nine.setEnabled(false);\n eight.setEnabled(false);\n seven.setEnabled(false);\n six.setEnabled(false);\n five.setEnabled(false);\n four.setEnabled(false);\n three.setEnabled(false);\n two.setEnabled(false);\n }", "title": "" }, { "docid": "f2fd71de3a870222a3c053c7e9a7b907", "score": "0.6345661", "text": "private void drawNumbers(Graphics g) {\n for (int i = 0; i <= this.beatsFloor(); i++) {\n g.drawString(String.valueOf(i * BEATS), i * BEATS * SQUARE + SQUARE * 2,\n TOPOFFSET - SQUARE / 2);\n }\n }", "title": "" }, { "docid": "c60832cf92035d8f4f558dec170df6af", "score": "0.6040808", "text": "public void displayAnimationStage1(Graphics g)\n {\n \tg.setColor(Color.red);\n \tg.drawRect(binary1X, rectY, rectWidth, rectHeight);\n\n \tg.setColor(Controller.textColor);\n \tg.setFont(textFont);\n \tg.drawString(thirtyTwoMultiplication, multip32X, multiplicationY);\n \t\n \tg.setColor(Controller.buttonPanelColor);\n \tg.setFont(subheadFont);\n \tg.drawString(thirtyTwoMultiplicationAnswer, multip32answerX, multiplicationAnswerY);\n\n }", "title": "" }, { "docid": "b8581ed454b447c64ce29a79dadb08b8", "score": "0.59328574", "text": "public void draw() {\n String num;\r\n StdDraw.setXscale(0, N);\r\n StdDraw.setYscale(0, N);\r\n \r\n for (int j = 0; j < N; j++) {\r\n for (int i = 0; i < N; i++) {\r\n num = Integer.toString(grid[i][j]);\r\n StdDraw.text(j, N - i, num);\r\n \r\n }\r\n }\r\n \r\n \r\n }", "title": "" }, { "docid": "1395fe1d4836a7966b6a6edac42528cc", "score": "0.5916238", "text": "public void displayAnimationStage5(Graphics g)\n {\n \tg.setColor(Color.red);\n \tg.drawRect(binary5X, rectY, rectWidth, rectHeight);\n \t\n \tg.setColor(Controller.textColor);\n \tg.setFont(textFont);\n \t\n \tg.drawString(thirtyTwoMultiplication, multip32X, multiplicationY);\n \tg.drawString(sixteenMultiplication, multip16X, multiplicationY);\n \tg.drawString(eightMultiplication, multip8X, multiplicationY);\n \tg.drawString(fourMultiplication, multip4X, multiplicationY);\n \tg.drawString(twoMultiplication, multip2X, multiplicationY);\n\n \t\n \tg.setColor(Controller.buttonPanelColor);\n \tg.setFont(subheadFont);\n \tg.drawString(thirtyTwoMultiplicationAnswer, multip32answerX, multiplicationAnswerY);\n \tg.drawString(sixteenMultiplicationAnswer, multip16answerX, multiplicationAnswerY);\n \tg.drawString(eightMultiplicationAnswer, multip8answerX, multiplicationAnswerY);\n \tg.drawString(fourMultiplicationAnswer, multip4answerX, multiplicationAnswerY);\n \tg.drawString(twoMultiplicationAnswer, multip2answerX, multiplicationAnswerY);\n \t\n }", "title": "" }, { "docid": "2772f1d342b4bc4f140933142a05d1be", "score": "0.5812853", "text": "public void displayAnimationStage2(Graphics g)\n {\n \tg.setColor(Color.red);\n \tg.drawRect(binary2X, rectY, rectWidth, rectHeight);\n\n \t\n \tg.setColor(Controller.textColor);\n \tg.setFont(textFont);\n \t\n \tg.drawString(thirtyTwoMultiplication, multip32X, multiplicationY);\n \tg.drawString(sixteenMultiplication, multip16X, multiplicationY);\n\n\n \tg.setColor(Controller.buttonPanelColor);\n \tg.setFont(subheadFont);\n \tg.drawString(thirtyTwoMultiplicationAnswer, multip32answerX, multiplicationAnswerY);\n \tg.drawString(sixteenMultiplicationAnswer, multip16answerX, multiplicationAnswerY);\n \t\n }", "title": "" }, { "docid": "e38d074ec14fe93f1140d07cdcedcda0", "score": "0.578848", "text": "private void oct() {\n if (!starting_zero)\n display.setText(stripFormats(octConverted.getText()));\n // disables unnecessary buttons\n letter_a.setEnabled(false);\n letter_b.setEnabled(false);\n letter_c.setEnabled(false);\n letter_d.setEnabled(false);\n letter_e.setEnabled(false);\n letter_f.setEnabled(false);\n nine.setEnabled(false);\n eight.setEnabled(false);\n seven.setEnabled(true);\n six.setEnabled(true);\n five.setEnabled(true);\n four.setEnabled(true);\n three.setEnabled(true);\n two.setEnabled(true);\n }", "title": "" }, { "docid": "cd3bb61d53e73f5614143d6bccb2e149", "score": "0.574658", "text": "public void updateNumber(int text)\n\t{\n\t\tif (text != 0)\n\t\t{\n\t\t\tthis.setText(Integer.toString(text));\n\n\t\t\t// each number allocated a different colour similar to original minesweeper\n\t\t\t\n\t\t\tswitch (text)\n\t\t\t{\n\t\t\t\tcase 1:\n\t\t\t\t\tthis.setTextColor(Color.BLUE);\n\t\t\t\t\tbreak;\n\t\t\t\tcase 2:\n\t\t\t\t\tthis.setTextColor(Color.GREEN);\n\t\t\t\t\tbreak;\n\t\t\t\tcase 3:\n\t\t\t\t\tthis.setTextColor(Color.RED);\n\t\t\t\t\tbreak;\n\t\t\t\tcase 4:\n\t\t\t\t\tthis.setTextColor(Color.rgb(50, 30, 200));\n\t\t\t\t\tbreak;\n\t\t\t\tcase 5:\n\t\t\t\t\tthis.setTextColor(Color.rgb(200, 30, 50));\n\t\t\t\t\tbreak;\n\t\t\t\tcase 6:\n\t\t\t\t\tthis.setTextColor(Color.rgb(240, 100, 50));\n\t\t\t\t\tbreak;\n\t\t\t\tcase 7:\n\t\t\t\t\tthis.setTextColor(Color.rgb(240, 20, 20));\n\t\t\t\t\tbreak;\n\t\t\t\tcase 8:\n\t\t\t\t\tthis.setTextColor(Color.rgb(200, 200, 200));\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "60b255421d02c26a2c91ac7fe4c0896e", "score": "0.572361", "text": "@Override\r\n\tpublic void update() {\r\n\r\n\t\tfor (int i = 0; i < field.getRowCount(); i++) {\r\n\r\n\t\t\tif (i == 0) {\r\n\t\t\t\tSystem.out.print(\" 0 1 2 3 4 5 6 7 8 \\n\");\r\n\t\t\t}\r\n\r\n\t\t\tSystem.out.printf(\"%c \", 'A' + i);\r\n\r\n\t\t\tfor (int j = 0; j < field.getColumnCount(); j++) {\r\n\t\t\t\tTile tile = field.getTile(i, j);\r\n\r\n\t\t\t\tif (tile.getState() == Tile.State.CLOSED) {\r\n\t\t\t\t\tSystem.out.print(\" -\");\r\n\t\t\t\t}\r\n\t\t\t\tif (tile.getState() == Tile.State.OPEN) {\r\n\t\t\t\t\tif (tile instanceof Clue) {\r\n\t\t\t\t\t\tClue clue = (Clue) tile;\r\n\t\t\t\t\t\tSystem.out.print(\" \" + clue.getValue() + \"\");\r\n\t\t\t\t\t} \r\n\t\t\t\t\telse if (tile instanceof Mine) {\r\n\t\t\t\t\t\tMine mine = (Mine) tile;\r\n\t\t\t\t\t\tSystem.out.print(\" X\");\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif (tile.getState() == Tile.State.MARKED) {\r\n\t\t\t\t\tSystem.out.print(\" M\");\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\t\t\tSystem.out.println();\r\n\r\n\t\t}\r\n\r\n\t\tSystem.out.print(\" \");\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n//\t\tfor (int i = 0; i < field.getColumnCount(); i++) {\r\n//\t\t\tSystem.out.printf(\"%d \", 0 + i);\r\n//\r\n//\t\t}\r\n//\t\tSystem.out.println();\r\n//\r\n//\t\tfor (int i = 0; i < field.getRowCount(); i++) {\r\n//\t\t\tSystem.out.printf(\"%c \", 'A' + i);\r\n//\t\t\tfor (int j = 0; j < field.getColumnCount(); j++) {\r\n//\t\t\t\tif (field.getTile(i, j).getState() == Tile.State.CLOSED) {\r\n//\t\t\t\t\tSystem.out.print(\" -\");\r\n//\t\t\t\t} else if (field.getTile(i, j).getState() == Tile.State.MARKED) {\r\n//\t\t\t\t\tSystem.out.print(\" M\");\r\n//\t\t\t\t} else {\r\n//\t\t\t\t\tif (field.getTile(i, j) instanceof Mine) {\r\n//\t\t\t\t\t\tSystem.out.print(\" X\");\r\n//\t\t\t\t\t} else if (field.getTile(i, j) instanceof Clue) {\r\n//\t\t\t\t\t\tClue clues = (Clue) field.getTile(i, j);\r\n//\t\t\t\t\t\tSystem.out.print(\" \" + clues.getValue());\r\n//\t\t\t\t\t}\r\n//\t\t\t\t}\r\n//\t\t\t}\r\n//\t\t\tSystem.out.println();\r\n//\t\t}\r\n\r\n\t}", "title": "" }, { "docid": "a4c2798e61e95db542e3d8f3563f874e", "score": "0.57055223", "text": "public void showNumbers() {\n Drawer.getInstance().addElem(numAmplitude);\n }", "title": "" }, { "docid": "18a0ec9530059dd6f175e87354d02720", "score": "0.5690863", "text": "@SuppressWarnings(\"unused\")\r\n\tprivate void displayChars()\r\n\t{\r\n\t\t//execute step by step with debugger, else make the thread sleep for ~2k ms after each call\r\n\t\t//otherwise this will only display the last call.\r\n\t\tvalues.displayCharacter('1', 0, 0, arrayClock);\r\n\t\tvalues.displayCharacter('2', 0, 0, arrayClock);\r\n\t\tvalues.displayCharacter('3', 0, 0, arrayClock);\r\n\t\tvalues.displayCharacter('4', 0, 0, arrayClock);\r\n\t\tvalues.displayCharacter('5', 0, 0, arrayClock);\r\n\t\tvalues.displayCharacter('6', 0, 0, arrayClock);\r\n\t\tvalues.displayCharacter('7', 0, 0, arrayClock);\r\n\t\tvalues.displayCharacter('8', 0, 0, arrayClock);\r\n\t\tvalues.displayCharacter('9', 0, 0, arrayClock);\r\n\t\tvalues.displayCharacter('0', 0, 0, arrayClock);\r\n\t\tvalues.displayCharacter('a', 0, 0, arrayClock);\r\n\t\tvalues.displayCharacter('b', 0, 0, arrayClock);\r\n\t\tvalues.displayCharacter('c', 0, 0, arrayClock);\r\n\t\tvalues.displayCharacter('d', 0, 0, arrayClock);\r\n\t\tvalues.displayCharacter('e', 0, 0, arrayClock);\r\n\t\tvalues.displayCharacter('f', 0, 0, arrayClock);\r\n\t\tvalues.displayCharacter('g', 0, 0, arrayClock);\r\n\t\tvalues.displayCharacter('h', 0, 0, arrayClock);\r\n\t\tvalues.displayCharacter('i', 0, 0, arrayClock);\r\n\t\tvalues.displayCharacter('j', 0, 0, arrayClock);\r\n\t\tvalues.displayCharacter('k', 0, 0, arrayClock);\r\n\t\tvalues.displayCharacter('l', 0, 0, arrayClock);\r\n\t\tvalues.displayCharacter('m', 0, 0, arrayClock);\r\n\t\tvalues.displayCharacter('n', 0, 0, arrayClock);\r\n\t\tvalues.displayCharacter('o', 0, 0, arrayClock);\r\n\t\tvalues.displayCharacter('p', 0, 0, arrayClock);\r\n\t\tvalues.displayCharacter('q', 0, 0, arrayClock);\r\n\t\tvalues.displayCharacter('r', 0, 0, arrayClock);\r\n\t\tvalues.displayCharacter('s', 0, 0, arrayClock);\r\n\t\tvalues.displayCharacter('t', 0, 0, arrayClock);\r\n\t\tvalues.displayCharacter('u', 0, 0, arrayClock);\r\n\t\tvalues.displayCharacter('v', 0, 0, arrayClock);\r\n\t\tvalues.displayCharacter('w', 0, 0, arrayClock);\r\n\t\tvalues.displayCharacter('x', 0, 0, arrayClock);\r\n\t\tvalues.displayCharacter('y', 0, 0, arrayClock);\r\n\t\tvalues.displayCharacter('z', 0, 0, arrayClock);\r\n\t}", "title": "" }, { "docid": "f6844ca7c79fd86ae5becbe919872adb", "score": "0.5684242", "text": "public void Display()\r\n {\r\n \t//shows the road in chunks of 5. \r\n \t/*\r\n \tfor (char[] r: road)\r\n \t{\r\n \t\tSystem.out.print(\"|\");\r\n \t\tfor (char item: r)\r\n \t\t{\r\n \t\t\tSystem.out.print(item);\r\n \t\t}\r\n \t\t\r\n \t\tSystem.out.print(\"|\\n\");\r\n \t}\r\n \t\r\n \tSystem.out.print(\"\\n\");\r\n \t*/\r\n \t\r\n \t\r\n \t//shows the road as continuous.\r\n \tSystem.out.print(\"|\");\r\n \tfor (char item: road[0])\r\n \t{\r\n \t\tSystem.out.print(item);\r\n \t}\r\n \tSystem.out.print(\"|\\n\");\r\n \t\r\n }", "title": "" }, { "docid": "93b935ca0def27750063b93509194f4b", "score": "0.5679128", "text": "public void displayAnimationStage3(Graphics g)\n {\n\n \tg.setColor(Color.red);\n \tg.drawRect(binary3X, rectY, rectWidth, rectHeight);\n\n \t\n \tg.setColor(Controller.textColor);\n \tg.setFont(textFont);\n \t\n \tg.drawString(thirtyTwoMultiplication, multip32X, multiplicationY);\n \tg.drawString(sixteenMultiplication, multip16X, multiplicationY);\n \tg.drawString(eightMultiplication, multip8X, multiplicationY);\n \t\n \t\n \tg.setColor(Controller.buttonPanelColor);\n \tg.setFont(subheadFont);\n \tg.drawString(thirtyTwoMultiplicationAnswer, multip32answerX, multiplicationAnswerY);\n \tg.drawString(sixteenMultiplicationAnswer, multip16answerX, multiplicationAnswerY);\n \tg.drawString(eightMultiplicationAnswer, multip8answerX, multiplicationAnswerY);\n \t\n }", "title": "" }, { "docid": "3dbf6ea77d5643b0e24e54a446ca196f", "score": "0.5619421", "text": "public void displayAnimationStage4(Graphics g)\n {\n \t\n \tg.setColor(Color.red);\n \tg.drawRect(binary4X, rectY, rectWidth, rectHeight);\n\n \t\n \tg.setColor(Controller.textColor);\n \tg.setFont(textFont);\n \t\n \tg.drawString(thirtyTwoMultiplication, multip32X, multiplicationY);\n \tg.drawString(sixteenMultiplication, multip16X, multiplicationY);\n \tg.drawString(eightMultiplication, multip8X, multiplicationY);\n \tg.drawString(fourMultiplication, multip4X, multiplicationY);\n \t\n \t\n \tg.setColor(Controller.buttonPanelColor);\n \tg.setFont(subheadFont);\n \tg.drawString(thirtyTwoMultiplicationAnswer, multip32answerX, multiplicationAnswerY);\n \tg.drawString(sixteenMultiplicationAnswer, multip16answerX, multiplicationAnswerY);\n \tg.drawString(eightMultiplicationAnswer, multip8answerX, multiplicationAnswerY);\n \tg.drawString(fourMultiplicationAnswer, multip4answerX, multiplicationAnswerY);\n \t\n \t\n }", "title": "" }, { "docid": "feb9e90eef08a1d8239b7ebea1f271f1", "score": "0.5597223", "text": "private static void print_text_blocks(long[] text) {\n\t\tStringBuilder text_blocks = new StringBuilder();\n\t\tfor (int i = 0; i < 4; i++) {\n\t\t\tlong num = text[i];\n\t\t\tString bit_str = String.format(\"%16s\", Long.toBinaryString(num));\n\t\t\tbit_str = bit_str.replace(' ', '0');\n\t\t\ttext_blocks.append(bit_str);\n\t\t}\n\t\tString ret = String.format(\"%64s\", text_blocks.toString());\n\t\tret = ret.replace(' ', '0');\n\t\tSystem.out.printf(\"%s\\n\", ret);\n\t}", "title": "" }, { "docid": "ecb7bac49e58cae28523680a08d48b3d", "score": "0.5596163", "text": "private void displayBoxes() {\n int numLines = NUM_BOXES / 10;\n\n for (int i = 0; i < numLines; i++) {\n System.out.println(\"123456789X\"); // a line of indices. Fantastic UI design isn't it?\n\n List<Box> lineOfBoxes = this.boxes.subList(i * 10, i * 10 + 10);\n String boxesStr = lineOfBoxes.stream().map(Box::charToDisplay).collect(Collectors.joining());\n\n System.out.println(boxesStr);\n }\n }", "title": "" }, { "docid": "4ada8cf2a1bc9ca279feb6536743c127", "score": "0.55825883", "text": "public void displayRaw() {\n\n for (int j = 0; j < rows; j++) {\n\n for (int i = 0; i < columns; i++) {\n System.out.print(cells[j * rows + i]);\n System.out.print(\" \");\n }\n\n System.out.println();\n\n }\n }", "title": "" }, { "docid": "30b621e4816e84d4abfa137ab57fcde2", "score": "0.5580095", "text": "public void display() {\r\n for (int r = 0; r < numRows; r++) {\r\n for (int c = 0; c < numCols; c++) {\r\n System.out.print(m.getCells()[r][c].getRepresentation());\r\n }\r\n System.out.println();\r\n }\r\n System.out.println();\r\n }", "title": "" }, { "docid": "fc84178f33b2467220214e47f793c07f", "score": "0.55689514", "text": "public void display() {\n\t\tfor (int i = 0; i < y; i++) {\n\t\t\t// draw the north edge\n\t\t\tfor (int j = 0; j < x; j++) {\n\t\t\t\tSystem.out.print((maze[j][i] & 1) == 0 ? \"+---\" : \"+ \");\n\t\t\t}\n\t\t\tSystem.out.println(\"+\");\n\t\t\t// draw the west edge\n\t\t\tfor (int j = 0; j < x; j++) {\n\t\t\t\tSystem.out.print((maze[j][i] & 8) == 0 ? \"| \" : \" \");\n\t\t\t}\n\t\t\tSystem.out.println(\"|\");\n\t\t}\n\t\t// draw the bottom line\n\t\tfor (int j = 0; j < x; j++) {\n\t\t\tSystem.out.print(\"+---\");\n\t\t}\n\t\tSystem.out.println(\"+\");\n\t}", "title": "" }, { "docid": "cfc497ab033ca726e55e27a455b7a205", "score": "0.5568307", "text": "private static void printOutPattern(int value) {\n int width = matrixWidth;\n int count = 0;\n int newValue = value;\n while (width-- != 0) {\n System.out.print(++count == midPoint ? \"* \" : (newValue & 0x01) == 0 ? \". \" : \"* \"); //value & 0x1 tests\n // the if bit 0 is 0 or 1\n newValue = newValue >> 1; //shift the value over to the right to get the new value to print\n }\n System.out.println();\n }", "title": "" }, { "docid": "1e218d35fde92f45421840fd0ea81a29", "score": "0.5560813", "text": "private void updateboard()\n {\n for(int x =0; x<9;x++)\n {\n if(board[x/3][x%3] == 4)\n {\n Show[x] = 'x';\n }\n else\n if(board[x/3][x%3]== 1)\n {\n Show[x] = '0';\n }\n }\n }", "title": "" }, { "docid": "f0df4c0e71b775ce0515c5760ce87175", "score": "0.5552188", "text": "public static void displayPlayer1Graphics (int[] [] map1)\n {\n\tc.setCursor (1, 8);\n\tc.println (\"1\");\n\tc.setCursor (1, 13);\n\tc.println (\"2\");\n\tc.setCursor (1, 18);\n\tc.println (\"3\");\n\tc.setCursor (1, 23);\n\tc.println (\"4\");\n\tc.setCursor (1, 28);\n\tc.println (\"5\");\n\tc.setCursor (1, 33);\n\tc.println (\"6\");\n\tc.setCursor (1, 38);\n\tc.println (\"7\");\n\tc.setCursor (1, 43);\n\tc.println (\"8\");\n\tc.setCursor (1, 48);\n\tc.println (\"9\");\n\tc.setCursor (1, 52);\n\tc.println (\"10\");\n\n\tc.setCursor (3, 2);\n\tc.println (\"1\");\n\tc.setCursor (5, 2);\n\tc.println (\"2\");\n\tc.setCursor (7, 2);\n\tc.println (\"3\");\n\tc.setCursor (9, 2);\n\tc.println (\"4\");\n\tc.setCursor (11, 2);\n\tc.println (\"5\");\n\tc.setCursor (13, 2);\n\tc.println (\"6\");\n\tc.setCursor (15, 2);\n\tc.println (\"7\");\n\tc.setCursor (17, 2);\n\tc.println (\"8\");\n\tc.setCursor (19, 2);\n\tc.println (\"9\");\n\tc.setCursor (21, 2);\n\tc.println (\"10\");\n\n\tfor (int i = 1 ; i < map1.length ; i++)\n\t{\n\t for (int j = 1 ; j < map1.length ; j++)\n\t {\n\t\tc.setColor (Color.black);\n\t\tc.fillRect (i * 40, j * 40, 40, 40);\n\t\tif (map1 [i] [j] == 0)\n\t\t{\n\t\t c.setColor (Color.white);\n\t\t}\n\t\tif (a == 0)\n\t\t{\n\t\t if (map1 [i] [j] == 1)\n\t\t {\n\t\t\tc.setColor (Color.yellow);\n\t\t }\n\t\t}\n\t\tif (a == 1)\n\t\t{\n\t\t if (map1 [i] [j] == 1)\n\t\t {\n\t\t\tc.setColor (Color.white);\n\t\t }\n\t\t}\n\t\tc.fillRect (i * 40, j * 40, 38, 38);\n\n\t\tif (map1 [i] [j] == 2)\n\t\t{\n\t\t c.setColor (Color.white);\n\t\t c.fillRect (i * 40, j * 40, 38, 38);\n\t\t c.setColor (Color.red);\n\t\t c.fillOval (i * 40, j * 40, 38, 38);\n\t\t}\n\n\t\tif (map1 [i] [j] == 3)\n\t\t{\n\t\t c.setColor (Color.white);\n\t\t c.fillRect (i * 40, j * 40, 38, 38);\n\t\t c.setColor (Color.black);\n\t\t c.fillOval (i * 40, j * 40, 38, 38);\n\t\t}\n\t }\n\t}\n }", "title": "" }, { "docid": "e3d8a4ac8f1d9730cd45493669010c58", "score": "0.5536521", "text": "private String integerToDisplayChar(int i) {\n // Display characters layed out with corresponding index\n String[] chars = {\" \", \"\\u001B[34m1\\u001B[0m\", \"\\u001B[32m2\\u001B[0m\", \"\\u001B[31m3\\u001B[0m\", \"\\u001B[35m4\\u001B[0m\", \"\\u001B[36m5\\u001B[0m\", \"\\u001B[33m6\\u001B[0m\", \"7\", \"8\", \"F\", \"\\u001B[31mX\\u001B[0m\", \"\\u001B[30mO\\u001B[0m\"};\n return chars[i];\n }", "title": "" }, { "docid": "3a3b3c1656d94f0b413b22089fe24dd6", "score": "0.55347043", "text": "public void setNumber(int n, int x, int y) { //set digit sprites for score and timer\n \tloopCount = 0;\n \twhile (n>0) {\n \t\tint val = n%10;\n \t\tn = n/10;\n \t\tbackground.add(new Digit(val, digDim, x - (digShift*loopCount), y)); // display digits from left to right\n \t\tloopCount += 1;\n \t}\n }", "title": "" }, { "docid": "aba6285c7dae154db59f18c9d3e1f72b", "score": "0.5534074", "text": "public void drawNumFramesOn(int[] numFramesOn) {\n\t\tpa.pushMatrix();pa.pushStyle();\n\t\tpa.translate(pianoWKeyDims[0][2],0,0);\n\t\tfloat txtY = pianoWKeyDims[0][3]*.25f;\n\t\tfor(int i=0;i<numFramesOn.length;++i) {\n\t\t\tpa.pushMatrix();pa.pushStyle();\n\t\t\tpa.translate(0,pianoKeyCtrYLocs[i],0);\n\t\t\tpa.setColorValFill(numFramesOn[i]==1 ? DancingBalls.gui_Cyan:DancingBalls.gui_Gray);\t\t\t\n\t\t\tpa.text(\"\"+numFramesOn[i], 0, txtY);\t\t\t\n\t\t\tpa.popStyle();pa.popMatrix();\n\t\t}\n\t\tpa.popStyle();pa.popMatrix();\t\t\n\t}", "title": "" }, { "docid": "aa9f834d78bc786c6d7351c786370314", "score": "0.55274016", "text": "public void displayAnimationStage8(Graphics g)\n {\n \t\tdisplayMultiplication(g);\n \tdisplayMultiplicationAnswer(g);\n \tdisplayPlusSign(g);\n\n \tg.drawString(equalSign, 620, 540);\n \t\n \tg.setColor(Controller.buttonPanelColor);\n \tg.drawString(fortyFive, 650, 540);\n \t\n }", "title": "" }, { "docid": "cc93efd6477ad05f20c80ed84774fc7d", "score": "0.55251324", "text": "public static void transform() {\n String s = BinaryStdIn.readString();\n int n = s.length();\n CircularSuffixArray circularSuffixArray = new CircularSuffixArray(s);\n for (int i = 0; i < n; i++) {\n if (circularSuffixArray.index(i) == 0) {\n BinaryStdOut.write(i);\n break;\n }\n }\n for (int i = 0; i < n; i++) {\n BinaryStdOut.write(s.charAt((circularSuffixArray.index(i) + n - 1) % n));\n }\n BinaryStdOut.close();\n }", "title": "" }, { "docid": "4ec794ab9a3dc2d868dc0da2cbc5705e", "score": "0.5503222", "text": "@Override\n public void actionPerformed(ActionEvent e) {\n StringBuilder newStr = new StringBuilder(display.getText());\n if (newStr.length() != 0) {\n newStr.setLength(newStr.length() - 1);\n\n // if string is empty, display setText to zero and set starting_zero to true\n if (newStr.length() == 0) {\n display.setText(\"0\");\n decConverted.setText(\"0\");\n hexConverted.setText(\"0\");\n binConverted.setText(\"0\");\n octConverted.setText(\"0\");\n starting_zero = true;\n } else {\n display.setText(newStr.toString()); // display new num in main text bar\n writeMode(); // force all JLabels to follow in suit\n\n }\n }\n\n }", "title": "" }, { "docid": "e8c3cbbf7be446904fe8c5bdc0d6641c", "score": "0.54901725", "text": "void show() {\n fill( 255, 255, 255 ); \n ellipse( redX, redY, 20, 20 );\n fill( 255, 0, 0 ); \n ellipse( redX, redY, 20, 20 );\n fill( 255, 255, 0 ); \n ellipse( yelX, yelY, 20, 20 );\n fill( 0, 0, 255 ); \n ellipse( bluX, bluY, 20, 20 );\n fill( 255, 255, 255 ); \n ellipse( cueX, cueY, 20, 20 );\n if (( frameCount/120) %2 > 0) {\n fill(255,0,100);\n ellipse( redX, redY, 50, 50 );\n fill(55,0,250);\n ellipse( yelX, yelY, 70, 50 );\n fill(5,200,20);\n ellipse( bluX, bluY, 50, 60 );\n fill(55,100,100);\n ellipse( cueX, cueY, 60, 50 );\n }\n }", "title": "" }, { "docid": "82db1910b812397a5a957e7a8598babf", "score": "0.5478802", "text": "public void display(){\n\t\tSystem.out.println(\"Enterd into displayed\");\n\t\t\n\t\tfor(int i=0;i<TOTAL_ROWS;i++)\n\t\t{\t\n\t\t\tSystem.out.print(\"|\");\n\t\t\tfor(int j=0;j<TOTAL_COLUMNS;j++){\n\t\t\t\tif(board[i][j] != 0 )\n\t\t\t\t\tSystem.out.print(board[i][j]);\n\t\t\t\telse\n\t\t\t\t\tSystem.out.print(\"_\");\n\t\t\t\tSystem.out.print(\"|\");\n\t\t\t\t\n\t\t\t}\t\n\t\t\tSystem.out.print(\"\\n\");\t\n\t\t\t\t\n\t\t}\n\t}", "title": "" }, { "docid": "c43d4659971fa8ba660191eed12c3623", "score": "0.5472664", "text": "public void print() {\n\t\tfor(int i= 0; i< height; i++) {\n\t\t\tfor(int j=0; j<width; j++) {\n\t\t\t\tSystem.out.print(pieces[j][i].toUnicode());\n\t\t\t\tif(j == width-1) System.out.println();\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "5e739d906773f36e209c0b0eb361bcf6", "score": "0.5469455", "text": "public String render(){\n String print = \"\";\n for(int i=1; i<=5; i++){\n System.out.println(\"\");\n if(squares.get(\"B\"+i).isChecked()){\n print += \"\\033[31m\"+squares.get(\"B\"+i).getNumber()+\" \";\n }else{\n print += \"\\033[37m\"+squares.get(\"B\"+i).getNumber()+\" \";\n }\n if(squares.get(\"I\"+i).isChecked()){\n print += \"\\033[31m\"+squares.get(\"I\"+i).getNumber()+\" \";\n }else{\n print += \"\\033[37m\"+squares.get(\"I\"+i).getNumber()+\" \";\n }\n if(squares.get(\"N\"+i).isChecked()){\n print += \"\\033[31m\"+squares.get(\"N\"+i).getNumber()+\" \";\n }else{\n print += \"\\033[37m\"+squares.get(\"N\"+i).getNumber()+\" \";\n }\n if(squares.get(\"G\"+i).isChecked()){\n print += \"\\033[31m \"+squares.get(\"G\"+i).getNumber()+\" \";\n }else{\n print += \"\\033[37m\"+squares.get(\"G\"+i).getNumber()+\" \";\n }\n if(squares.get(\"O\"+i).isChecked()){\n print += \"\\033[31m \"+squares.get(\"O\"+i).getNumber()+\" \";\n }else{\n print += \"\\033[37m\"+squares.get(\"O\"+i).getNumber()+\" \";\n }\n print += \"\\n\";\n }\n return print;\n }", "title": "" }, { "docid": "f45833188a385bf830c51c106687f705", "score": "0.54607654", "text": "public void DisplayHex() {\r\n\t\tSystem.out.print( \"(\" + x + \", \" + y + \")\\n\" );\r\n\t}", "title": "" }, { "docid": "dea0a1e4bcff6db33995f42a678c6afe", "score": "0.5448615", "text": "private void displayTheNumbers()\n {\n }", "title": "" }, { "docid": "67aa7262576b81438f29cbe5c9a8daaa", "score": "0.54444605", "text": "public void illustrate() {\n\t\tSystem.out.print(\" \");\n\t\tfor (int i = 1; i <= BOARD_SIZE; i++)\n\t\t\tSystem.out.print(\"| \" + i + \" \");\n\t\tSystem.out.println(\"|\");\n\t\tprintHorizontalBorder();\n\t\tfor (int i = 1; i <= BOARD_SIZE; i++) {\n\t\t\tSystem.out.print(\" \" + i + \" \");\n\t\t\tfor (int j = 1; j <= BOARD_SIZE; j++) {\n\t\t\t\tif (board[i][j] == 'W') {\n\t\t\t\t\tSystem.out.print(\"| 0 \");\n\t\t\t\t} else if (board[i][j] == 'B') {\n\t\t\t\t\tSystem.out.print(\"| X \");\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.print(\"| \");\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(\"| \" + i + \" \");\n\t\t\tprintHorizontalBorder();\n\t\t}\n\t\tSystem.out.print(\" \");\n\t\tfor (int i = 1; i <= BOARD_SIZE; i++)\n\t\t\tSystem.out.print(\"| \" + i + \" \");\n\t\tSystem.out.println(\"|\\n\");\n\t}", "title": "" }, { "docid": "f186b4c3545444574b1d381529579d14", "score": "0.5439988", "text": "public void displayAnimationStage6(Graphics g)\n {\n \tg.setColor(Color.red);\n \tg.drawRect(binary6X, rectY, rectWidth, rectHeight);\n \t\n \tdisplayMultiplication(g);\n \tdisplayMultiplicationAnswer(g);\n \t\n }", "title": "" }, { "docid": "7eb14b8785356d5c9bb66932272de376", "score": "0.5439735", "text": "public void show() {\t\t\n\t\tfor (int y = 0; y <= 23; y++) {\n\t\t\tfor (int x = 0; x <= 23; x++) {\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t\tSystem.out.print(this.board[x][y].getCharacter());\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "title": "" }, { "docid": "890f594375a22ca0124c293ddb4cf146", "score": "0.54347324", "text": "public String run() {\n\t\tint hei = (int) asteroids.GetHeight();\n\t\tint wid = (int) asteroids.GetWidth();\n\t\t\n\t\tint s = (Math.max(hei, wid) + NODES - 1) / NODES;\n\t\tint size = NODES * s;\n\t\tint jFrom = ID * s;\n\t\tint jTo = (ID + 1) * s;\n\t\tint jLow = Math.max(ID - 1, 0) * s;\n\t\tint jHigh = Math.min(ID + 2, NODES) * s;\n\t\tint[] a = new int[size];\n\t\tint[] b = new int[size];\n\t\tchar[] c = new char[size];\n\t\tArrays.fill(a, -1);\n\t\tArrays.fill(a, jFrom, jTo, 0);\n\t\t\n\t\tfor (int i = 0; i < hei; i++) {\n\t\t\tfor (int j = jLow; j < jHigh; j++) {\n\t\t\t\tc[j] = (j >= wid) ? '#' : ((i >= hei) ? '0' : asteroids.GetPosition(i, j));\n\t\t\t}\n\t\t\tArrays.fill(b, jLow, jHigh, -1);\n\t\t\tfor (int j = jLow; j < jHigh; j++) {\n\t\t\t\tif (a[j] == -1 || c[j] == '#') {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tfor (int jj = j - 1; jj <= j + 1; jj++) {\n\t\t\t\t\tif (jj < jLow || jj >= jHigh || c[jj] == '#') {\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\tint plus = c[j] - '0';\n\t\t\t\t\tif (jj != j) {\n\t\t\t\t\t\tplus += c[jj] - '0';\n\t\t\t\t\t}\n\t\t\t\t\tb[jj] = Math.max(b[jj], a[j] + plus);\n\t\t\t\t}\n\t\t\t}\n\t\t\tint[] t = a; a = b; b = t;\n\t\t\t\n\t\t\tif (i % s > 0 && i != hei - 1) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t\n\t\t\tfor (int d = -1; d <= 1; d += 2) {\n\t\t\t\tint J = ID + d;\n\t\t\t\tif (J < 0 || J >= NODES) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tint kFrom = J * s;\n\t\t\t\tint kTo = (J + 1) * s;\n\t\t\t\tfor (int j = kFrom; j < kTo; j++) {\n\t\t\t\t\tmessage.PutInt(J, a[j]);\n\t\t\t\t}\n\t\t\t\tmessage.Send(J);\n\t\t\t}\n\t\t\t\n\t\t\tfor (int d = 1; d >= -1; d -= 2) {\n\t\t\t\tint J = ID + d;\n\t\t\t\tif (J < 0 || J >= NODES) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tmessage.Receive(J);\n\t\t\t\tfor (int j = jFrom; j < jTo; j++) {\n\t\t\t\t\ta[j] = Math.max(a[j], message.GetInt(J));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tint ans = -1;\n\t\tfor (int j = jFrom; j < jTo; j++) {\n\t\t\tans = Math.max(ans, a[j]);\n\t\t}\n\t\t\n\t\tif (ID > 0) {\n\t\t\tmessage.PutInt(0, ans);\n\t\t\tmessage.Send(0);\n\t\t\treturn null;\n\t\t}\n\t\t\n\t\tfor (int J = 1; J < NODES; J++) {\n\t\t\tmessage.Receive(J);\n\t\t\tans = Math.max(ans, message.GetInt(J));\n\t\t}\n\t\t\n\t\treturn \"\" + ans;\n\t}", "title": "" }, { "docid": "5b5a6ce222f4b35b6796338ec1c46691", "score": "0.5428291", "text": "public void print() {\n System.out.println(\"atom \" + this.ID + \" \" + (this.atomicNumber + 1) + \" 0 0 \" + (this.x - Builder2D.width/2f)/50f + \" 0 \" + (this.y - Builder2D.height/2f)/50f);\n }", "title": "" }, { "docid": "92e1dfc3e28747a6d44b16861892104a", "score": "0.5424034", "text": "private String getInputLabel(double[] binary) {\n for(int i = 0; i<binary.length; i++){\n if(binary[i]>0){\n return i +\"\";\n }\n }\n return -1 + \"\";\n }", "title": "" }, { "docid": "b94e0d157a17395e6b99e23c3280e0cb", "score": "0.5418245", "text": "@Override\n public void displayReadSequence(int cleUnik) {\n }", "title": "" }, { "docid": "2f9ddeb0d5e322b0bec883e2dc02998c", "score": "0.54079115", "text": "@Override\n public void show(IntegerLabyrinth labyrinthModel) {\n for (int j = 0; j < labyrinthModel.getWidth(); j++)\n System.out.print(\"-~\");\n System.out.println();\n for (int i = 0; i < labyrinthModel.getHeight(); i++) {\n System.out.print(\"|\");\n for (int j = 0; j < labyrinthModel.getWidth(); j++) {\n if (labyrinthModel.isFreeAt(i, j))\n System.out.print(\" |\");\n else if (labyrinthModel.isWallAt(i, j)) {\n System.out.print(\"#|\");\n } else if (labyrinthModel.isStartAt(i, j)) {\n System.out.print(\"S|\");\n } else if (labyrinthModel.isFinishAt(i, j)) {\n System.out.print(\"F|\");\n } else if (labyrinthModel.isPathAt(i, j)) {\n System.out.print(\"X|\");\n }\n }\n System.out.println();\n }\n for (int j = 0; j < labyrinthModel.getWidth(); j++)\n System.out.print(\"-~\");\n System.out.println();\n }", "title": "" }, { "docid": "3f0ec4a716062fee4c7764ad5709f5f0", "score": "0.5401456", "text": "public void show() {\n for (int i = 0; i < M; i++) {\n for (int j = 0; j < N; j++) \n System.out.printf(\"%9.4f \", data[i][j]);\n System.out.println();\n }\n }", "title": "" }, { "docid": "3f0ec4a716062fee4c7764ad5709f5f0", "score": "0.5401456", "text": "public void show() {\n for (int i = 0; i < M; i++) {\n for (int j = 0; j < N; j++) \n System.out.printf(\"%9.4f \", data[i][j]);\n System.out.println();\n }\n }", "title": "" }, { "docid": "1bb6c9d525b262bba36e4f85b6957b1b", "score": "0.5396637", "text": "void display() {\r\n\t\tfor (int i = 0; i < 15; i++) {\r\n\t\t\tfor (int j = 0; j < 15; j++) {\r\n\t\t\t\tSystem.out.print(B[i][j]);\r\n\t\t\t}\r\n\t\t\tSystem.out.println();\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "bda0edda0a3bc6e9b64202f6a73575d6", "score": "0.53959906", "text": "public void solvedPosition() {\n int val = 1;\n for (int row = 0; row < 4; row++) {\n for (int col = 0; col < 4; col++) {\n if (val != 16) {\n tiles[row][col].setText(String.valueOf(val));\n val++;\n } else {\n tiles[row][col].setBackground(Color.gray);\n grayRowPosition = row;\n grayColPosition = col;\n }\n }\n }\n }", "title": "" }, { "docid": "c8a11c170985c96919708507e1e49eb8", "score": "0.53939027", "text": "public static void displayComputerGraphics (int[] [] map1)\n {\n\tc.setCursor (1, 8);\n\tc.println (\"1\");\n\tc.setCursor (1, 13);\n\tc.println (\"2\");\n\tc.setCursor (1, 18);\n\tc.println (\"3\");\n\tc.setCursor (1, 23);\n\tc.println (\"4\");\n\tc.setCursor (1, 28);\n\tc.println (\"5\");\n\tc.setCursor (1, 33);\n\tc.println (\"6\");\n\tc.setCursor (1, 38);\n\tc.println (\"7\");\n\tc.setCursor (1, 43);\n\tc.println (\"8\");\n\tc.setCursor (1, 48);\n\tc.println (\"9\");\n\tc.setCursor (1, 52);\n\tc.println (\"10\");\n\n\tc.setCursor (3, 2);\n\tc.println (\"1\");\n\tc.setCursor (5, 2);\n\tc.println (\"2\");\n\tc.setCursor (7, 2);\n\tc.println (\"3\");\n\tc.setCursor (9, 2);\n\tc.println (\"4\");\n\tc.setCursor (11, 2);\n\tc.println (\"5\");\n\tc.setCursor (13, 2);\n\tc.println (\"6\");\n\tc.setCursor (15, 2);\n\tc.println (\"7\");\n\tc.setCursor (17, 2);\n\tc.println (\"8\");\n\tc.setCursor (19, 2);\n\tc.println (\"9\");\n\tc.setCursor (21, 2);\n\tc.println (\"10\");\n\n\tfor (int i = 1 ; i < map1.length ; i++)\n\t{\n\t for (int j = 1 ; j < map1.length ; j++)\n\t {\n\t\tc.setColor (Color.black);\n\t\tc.fillRect (i * 40, j * 40, 40, 40);\n\t\tif (map1 [i] [j] == 0)\n\t\t{\n\t\t c.setColor (Color.white);\n\t\t}\n\t\tif (a == 0)\n\t\t{\n\t\t if (map1 [i] [j] == 1)\n\t\t {\n\t\t\tc.setColor (Color.white);\n\t\t }\n\t\t}\n\t\tif (a == 1)\n\t\t{\n\t\t if (map1 [i] [j] == 1)\n\t\t {\n\t\t\tc.setColor (Color.white);\n\t\t }\n\t\t}\n\t\tif (a == 2)\n\t\t{\n\t\t if (map1 [i] [j] == 1)\n\t\t {\n\t\t\tc.setColor (Color.yellow);\n\t\t }\n\t\t}\n\t\tc.fillRect (i * 40, j * 40, 38, 38);\n\n\t\tif (map1 [i] [j] == 2)\n\t\t{\n\t\t c.setColor (Color.white);\n\t\t c.fillRect (i * 40, j * 40, 38, 38);\n\t\t c.setColor (Color.red);\n\t\t c.fillOval (i * 40, j * 40, 38, 38);\n\t\t}\n\n\t\tif (map1 [i] [j] == 3)\n\t\t{\n\t\t c.setColor (Color.white);\n\t\t c.fillRect (i * 40, j * 40, 38, 38);\n\t\t c.setColor (Color.black);\n\t\t c.fillOval (i * 40, j * 40, 38, 38);\n\t\t}\n\t }\n\t}\n }", "title": "" }, { "docid": "7f7319d5536a65accee4e9c6b0b3a313", "score": "0.5388731", "text": "public void displayBoard() {\n System.out.println(\"\");\n for (int i = 0; i < height; i++) {\n String text = \"\";\n for (int j = 0; j < width; j++) {\n text += \" \" + graphCells[i][j].getStateCell();\n }\n System.out.println(text);\n }\n System.out.println(\"\");\n }", "title": "" }, { "docid": "c14ca5dbefedb43b4e654ae4aba1b1e4", "score": "0.53846866", "text": "public static void displayPlayer2Graphics (int[] [] map2)\n {\n\td.setCursor (1, 8);\n\td.println (\"1\");\n\td.setCursor (1, 13);\n\td.println (\"2\");\n\td.setCursor (1, 18);\n\td.println (\"3\");\n\td.setCursor (1, 23);\n\td.println (\"4\");\n\td.setCursor (1, 28);\n\td.println (\"5\");\n\td.setCursor (1, 33);\n\td.println (\"6\");\n\td.setCursor (1, 38);\n\td.println (\"7\");\n\td.setCursor (1, 43);\n\td.println (\"8\");\n\td.setCursor (1, 48);\n\td.println (\"9\");\n\td.setCursor (1, 52);\n\td.println (\"10\");\n\n\td.setCursor (3, 2);\n\td.println (\"1\");\n\td.setCursor (5, 2);\n\td.println (\"2\");\n\td.setCursor (7, 2);\n\td.println (\"3\");\n\td.setCursor (9, 2);\n\td.println (\"4\");\n\td.setCursor (11, 2);\n\td.println (\"5\");\n\td.setCursor (13, 2);\n\td.println (\"6\");\n\td.setCursor (15, 2);\n\td.println (\"7\");\n\td.setCursor (17, 2);\n\td.println (\"8\");\n\td.setCursor (19, 2);\n\td.println (\"9\");\n\td.setCursor (21, 2);\n\td.println (\"10\");\n\n\tfor (int i = 1 ; i < map2.length ; i++)\n\t{\n\t for (int j = 1 ; j < map2.length ; j++)\n\t {\n\t\td.setColor (Color.black);\n\t\td.fillRect (i * 40, j * 40, 40, 40);\n\t\tif (map2 [i] [j] == 0)\n\t\t{\n\t\t d.setColor (Color.white);\n\t\t}\n\t\tif (a == 0)\n\t\t{\n\t\t if (map2 [i] [j] == 1)\n\t\t {\n\t\t\td.setColor (Color.yellow);\n\t\t }\n\t\t}\n\t\tif (a == 1)\n\t\t{\n\t\t if (map2 [i] [j] == 1)\n\t\t {\n\t\t\td.setColor (Color.white);\n\t\t }\n\t\t}\n\t\td.fillRect (i * 40, j * 40, 38, 38);\n\n\t\tif (map2 [i] [j] == 2)\n\t\t{\n\t\t d.setColor (Color.white);\n\t\t d.fillRect (i * 40, j * 40, 38, 38);\n\t\t d.setColor (Color.red);\n\t\t d.fillOval (i * 40, j * 40, 38, 38);\n\t\t}\n\n\t\tif (map2 [i] [j] == 3)\n\t\t{\n\t\t d.setColor (Color.white);\n\t\t d.fillRect (i * 40, j * 40, 38, 38);\n\t\t d.setColor (Color.black);\n\t\t d.fillOval (i * 40, j * 40, 38, 38);\n\t\t}\n\t }\n\t}\n }", "title": "" }, { "docid": "2e126cab3fb81a7bf271e843b92455fa", "score": "0.5373261", "text": "public void paint(Graphics g) {\r\n\t\tfor (int i=(digs-1), j=1; i>=0; i--, j*=10) {\r\n\t\t\tg.drawImage(digits[(num/j) % 10], i*(dim.width-1), 0, this);\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "712ad4675241812d95d6acd9361a1acd", "score": "0.5373138", "text": "private void display() {\n\t\tfor(int i=0;i<top+1;i++)\r\n\t\t\tSystem.out.print(arr[i]+\" \");\r\n\t}", "title": "" }, { "docid": "be6a046e2b73d010ef0de241b5ccf859", "score": "0.5363328", "text": "public void show(){\n System.out.println(num);\n }", "title": "" }, { "docid": "ab962a305fdf819d856f5612c4cad5fd", "score": "0.536182", "text": "private void printBitmask() {\n\t\tSystem.out.println(\"Entity\");\n\t\tfor (BitSet set : bitSet) {\n\t\t\tfor (int i = 0; i < texture.getWidth(); i++) {\n\t\t\t\tif (set.get(i)) {\n\t\t\t\t\tSystem.out.print(\"1 \");\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.print(\"0 \");\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t}\n\t}", "title": "" }, { "docid": "1562f3bb2683d1fac9e6935f850693be", "score": "0.5359321", "text": "public AsciiDisplay(){\n grid = new char[15][30];\n shapes = new ArrayList<Shape>();\n }", "title": "" }, { "docid": "f4f0e9e6c8e66f300077c5f3d1e2e10f", "score": "0.5353802", "text": "public void ShowData()\n {\n for (Integer d : data)\n System.out.println(Integer.toHexString(d));\n }", "title": "" }, { "docid": "bda374adcd0f6060ba0b0c261cd42f18", "score": "0.53449285", "text": "public static void show(String fileName, int bitsPerLine) {\n File f = new File(fileName);\n try (FileInputStream fileInputStream = new FileInputStream(f)) {\n BinaryIn in = new BinaryIn(fileInputStream);\n int count;\n for (count = 0; !in.isEmpty(); count++) {\n if (count != 0 && count % 8 == 0)\n System.out.print(\" \");\n if (count != 0 && count % bitsPerLine == 0)\n System.out.println();\n if (in.readBoolean())\n System.out.print(1);\n else\n System.out.print(0);\n }\n System.out.println(\"\\n\" + count + \" bits\");\n } catch (IOException ioException) {\n System.err.println(\"Could not open \" + fileName);\n }\n }", "title": "" }, { "docid": "a94bcfc22244e9c7d287e71d9c40d3c5", "score": "0.5342618", "text": "public static String numberRepresentations(int n)\r\n\t{\r\n\t\treturn String.format(\"%-8s %-8s %-8s %s\", \"\"+n, Integer.toHexString(n), Integer.toOctalString(n), \r\n\t\t\t\tInteger.toBinaryString(n));\r\n\t}", "title": "" }, { "docid": "d035228614ae8ea4777fc2c647cab959", "score": "0.5341807", "text": "public void populateBitPattern() {\n\t\t\tint winpattern_shifted;\n\t\t\tint winpattern_bits[] = new int[NUM_ON_CARDS];\n\t\t\tint bitsIndex = 0;\n\t\t\t\n\t\t\twinpattern_shifted = this.winPattern;\n\t\t\t\n\t\t\twhile (winpattern_shifted != 0) {\n\t\t\t\twinpattern_bits[bitsIndex] = (winpattern_shifted & 1);\n\t\t\t\twinpattern_shifted >>= 1;\n\t\t\t\tbitsIndex++;\n\t\t\t} \n\t\t\t\n\t\t\tthis.bitPattern = winpattern_bits;\n\t\t\t\n\t\t\t// Output to the log\n\t\t\tif (EBingoModel.this.outputToLog) {\n\t\t\t\tlog.writeLine(\"Bit Pattern for \" + this.name.toUpperCase() + \" (\" + Integer.toBinaryString(this.winPattern) + \") \" + \"Win Amount: \" + this.payout);\n\t\t\t\tlog.writeLine( winpattern_bits[0] + \" \" + winpattern_bits[1] + \" \" + winpattern_bits[2]+ \" \" + winpattern_bits[3]+ \" \" + winpattern_bits[4]);\n\t\t\t\tlog.writeLine( winpattern_bits[5] +\" \" + winpattern_bits[6] + \" \" + winpattern_bits[7]+ \" \" + winpattern_bits[8]+ \" \" + winpattern_bits[9]);\n\t\t\t\tlog.writeLine( winpattern_bits[10] + \" \" + winpattern_bits[11] + \" X \" + winpattern_bits[12]+ \" \" + winpattern_bits[13]);\n\t\t\t\tlog.writeLine( winpattern_bits[14] + \" \" + winpattern_bits[15] + \" \" + winpattern_bits[16]+ \" \" + winpattern_bits[17]+ \" \" + winpattern_bits[18]);\n\t\t\t\tlog.writeLine( winpattern_bits[19] + \" \" + winpattern_bits[20] + \" \" + winpattern_bits[21]+ \" \" + winpattern_bits[22]+ \" \" + winpattern_bits[23]);\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "4909b391c6d58cf1f137bac35f7cd594", "score": "0.5328797", "text": "public void displayboard()\n {\n updateboard();\n System.out.println(\"_______\\n|\" +Show[0]+\"|\"+ Show[1]+\"|\"+ Show[2]+\"|\\n|\"+Show[3]+\"|\"+Show[4]+\"|\"+Show[5]+\"|\\n|\"+Show[6]+\"|\"+Show[7]+\"|\"+Show[8]+\"|\\n_______\");\n }", "title": "" }, { "docid": "0a9b3b6fb7caed66c274fff72526b155", "score": "0.5328277", "text": "public void printBinary(int a){\n int i =1;\n StringBuilder b1 = new StringBuilder();\n while(i !=0){\n if((a&i) > 0){\n b1.append(1);\n }\n else{\n b1.append(0);\n }\n i = i<<1;\n }\n b1 = b1.reverse();\n String res = b1.toString();\n System.out.println(res); \n }", "title": "" }, { "docid": "9f63edc63885a43e665a1c521372fa80", "score": "0.5322582", "text": "public void displayBoard() {\n setVisible(true);\n\n int counterColour;\n\n Color circleColour = new Color(141, 181, 244);\n // Update the colour of each counter on the board\n for (int i = 0; i < Connect4GameState.NUM_ROWS; i++) {\n for (int j = 0; j < Connect4GameState.NUM_COLS; j++) {\n\n counterColour = this.gameState.getCounterAt(j, i);\n\n switch (counterColour) {\n case -1:\n circleColour = new Color(141, 181, 244);\n break;\n case 0:\n circleColour = Color.red;\n break;\n case 1:\n circleColour = Color.yellow;\n break;\n }\n this.counters[i][j].setCircleColour(circleColour);\n }\n }\n this.repaint();\n }", "title": "" }, { "docid": "2802f40d659dc8b6997565a25d585095", "score": "0.53069013", "text": "public void display(){\n for(int i=0; i<DIMENSION; i++){\n if(i == 0){\n System.out.print(\" \");\n for(int count = 0; count < DIMENSION; count++)\n System.out.print(count + \" \");\n System.out.println();\n }\n System.out.print(i + \" \");\n for(int j=0; j<DIMENSION; j++){\n\n System.out.print(this.getPiece(i, j));\n }\n System.out.println();\n }\n }", "title": "" }, { "docid": "9d144641ff8b30aafa6b9e616364cbc9", "score": "0.529043", "text": "public void display() {\n\t\tfor(String s : stackArray){\n\t\t\tif(!s.equals(\"-1\")){\n\t\t\t\tSystem.out.print(s + \" \");\n\t\t\t}\n\t\t\t\n\t\t}\n\t}", "title": "" }, { "docid": "7df306d41535fe56e30d38800f34cfa4", "score": "0.5283968", "text": "public void display(){\n\n for (int i = 0; i < counters.length; i++){\n\n System.out.println(i + \": \" + counters[i]);\n }\n\n String histogram = getHistogram();\n\n System.out.println(histogram);\n }", "title": "" }, { "docid": "5a60dadcfcede36591b493ea11cf7ad7", "score": "0.52819055", "text": "private String actualizarLabel() {\n\t\tString tiempo = (h<=9?\"0\":\"\")+h+\":\"+(m<=9?\"0\":\"\")+m+\":\"+(s<=9?\"0\":\"\")+s+\":\"+(ml<=9?\"0\":\"\")+ml;\n\t\treturn tiempo;\n\t}", "title": "" }, { "docid": "2148d107b26bd69fe63130e5627bf741", "score": "0.527123", "text": "public void Display_Board(){\r\n\t\tfor(int i=0;i<12;i++)\r\n\t\t\tdisplay.putStaticLine(Display(i));\r\n\t\tdisplay.printScreen();\r\n\t}", "title": "" }, { "docid": "897f8f134874153b71c66a56692381f4", "score": "0.52606624", "text": "@Override\n\t\tpublic String toString() {\n\t\t\tStringBuilder sb = new StringBuilder(172);\n\t\t\tsb.append(\" \");\n\t\t\tfor (int i = 0; i < 8; i++) {\n\t\t\t\tsb.append(Move.toNumber(i));\n\t\t\t\tsb.append(' ');\n\t\t\t}\n\t\t\tsb.append('\\n');\n\n\t\t\tbyte piece;\n\t\t\tfor (int i = 0; i < 8; i++) {\n\t\t\t\tsb.append(Move.toLetter(i));\n\t\t\t\tsb.append(' ');\n\t\t\t\tfor (int j = 0; j < 8; j++) {\n\t\t\t\t\tpiece = get(i, j);\n\t\t\t\t\tsb.append(toChar(piece));\n\t\t\t\t\tsb.append(' ');\n\t\t\t\t}\n\n\t\t\t\tsb.append('\\n');\n\t\t\t}\n\n\t\t\treturn sb.substring(0, sb.length()-1);\n\t\t}", "title": "" }, { "docid": "2f0b42542ab1a20e23a42ce8b75afdff", "score": "0.52591765", "text": "void display()\n {\n char i, j;\n\n byte[] screenPage = new byte[0x40];\n int t=0;\n for (i=0; i<6; i++)\n {\n setPageAddress(i);\n setColumnAddress((char)(0));\n for (j=0;j<0x40;j++)\n {\n screenPage[t++]=(byte)screenmemory[i*0x40+j];\n\n }\n data(screenPage,t);\n t=0;\n }\n\n\n }", "title": "" }, { "docid": "4e12b428ceab281674637fdb4576f46b", "score": "0.52582", "text": "private void hex() {\n if (!starting_zero)\n display.setText(stripFormats(hexConverted.getText()));\n letter_a.setEnabled(true);\n letter_b.setEnabled(true);\n letter_c.setEnabled(true);\n letter_d.setEnabled(true);\n letter_e.setEnabled(true);\n letter_f.setEnabled(true);\n nine.setEnabled(true);\n eight.setEnabled(true);\n seven.setEnabled(true);\n six.setEnabled(true);\n five.setEnabled(true);\n four.setEnabled(true);\n three.setEnabled(true);\n two.setEnabled(true);\n }", "title": "" }, { "docid": "20c9651a0042b4a6700890103344a8d6", "score": "0.5246242", "text": "public void print(){\r\n \r\n for(int i=0;i<cof.length;i++)\r\n {\r\n if(cof[i]!=0)\r\n {\r\n System.out.print(cof[i]+\"x\"+i+\" \");\r\n }\r\n }\r\n\r\n}", "title": "" }, { "docid": "f4acb13f784ea4535044c9265dbc4995", "score": "0.5232777", "text": "public void printUnicode(){\r\n System.out.print(\" \");\r\n for(int i=0;i<8;i++){\r\n System.out.print(Character.toString((char)(65296+i)));\r\n }\r\n System.out.println();\r\n for(int i=0;i<8;i++){\r\n System.out.printf(\"%2s \",8*i);\r\n for(int j=0;j<8;j++){\r\n switch (board[j][i]){\r\n\r\n case 0:\r\n System.out.print(Character.toString((char)65283));\r\n break;\r\n case -2:\r\n System.out.print(Character.toString((char)9923));\r\n break;\r\n case -1:\r\n System.out.print(Character.toString((char)9922));\r\n break;\r\n case 1:\r\n System.out.print(Character.toString((char)9920));\r\n break;\r\n case 2:\r\n System.out.print(Character.toString((char)9921));\r\n\r\n }\r\n //System.out.print(board[j][i]+\" \");\r\n }\r\n System.out.println();\r\n }\r\n }", "title": "" }, { "docid": "e2fdce7e876e7e225d40d8847e35c97e", "score": "0.52327573", "text": "private static void makeFrame(int frameLength) {\n\t\tSystem.out.print(\"+-\");\n\t\tfor (int i = 0; i < frameLength; i++) {\n\t\t\tSystem.out.print(\"-\"); \n\t\t}\n\t\tSystem.out.println(\"-+\");\n\t}", "title": "" }, { "docid": "aec03399465ec529d8b2520273f6f102", "score": "0.5228901", "text": "private void animateRGBcolumns () {\n\t\t\n\t\tif (this.img == null) {\n\t\t\tint w = (int) (child.getSize() * 2);\n\t\t\tint h = 1;\n\t\t\tthis.img = new BufferedImage(w, h, BufferedImage.TYPE_INT_ARGB);\n\t\t\tthis.imgGraphics = this.img.createGraphics();\n\t\t}\n\t\t\n\t\tthis.child.sort(this.populationSort);\n\t\t\n\t\tfor (int i = 0; i < this.child.getIndividuals().size(); i++) {\n\t\t\tIndividual individual = this.child.getIndividual(i);\n\t\t\t/*\n\t\t\tint[] rgb = Arrays.stream(individual.getGenome()).map(gene -> {\n\t\t\t\tdouble normalVal = gene / (this.goal * 1.0);\n\t\t\t\treturn (int) Math.floor(255 * normalVal);\n\t\t\t}).toArray();\n\t\t\t*/\n\t\t\tint[] rgb = individual.getGenome().stream().mapToInt(gene -> {\n\t\t\t\tdouble normalVal = gene / (this.goal * 1.0);\n\t\t\t\treturn (int) Math.floor(255 * normalVal);\n\t\t\t}).toArray();\n\n\t\t\tthis.imgGraphics.setColor(new Color(rgb[0], rgb[1], rgb[2]));\n\t\t\tthis.imgGraphics.fillRect(i + this.child.getSize(), 0, 1, 1);\n\t\t\tthis.imgGraphics.fillRect(this.child.getSize() - i, 0, 1, 1);\n\t\t}\n\t\tanimationPanel.setBufferedImage(this.img);\n\t}", "title": "" }, { "docid": "aa4a90aaafc79c41e6d929a65e0b475b", "score": "0.52278847", "text": "public int outputAll(){\n System.out.println(toStringColor());\n while(!done()){\n tick();\n System.out.println(toStringColor());\n }\n return getTicks();\n }", "title": "" }, { "docid": "639e4978cde94769faeb9d9ae6176ac2", "score": "0.52241075", "text": "private Bitmap getNumberImage() {\n\t\tBitmap bitmap = Bitmap.createBitmap(width, height, BITMAP_CONFIG);\n\t\t// Set the density to default to avoid scaling.\n\t\tbitmap.setDensity(DisplayMetrics.DENSITY_DEFAULT);\n\n\t\tCanvas canvas = new Canvas(bitmap);\n\t\tcanvas.drawColor(Color.WHITE);\n\n\t\tPaint tilePaint = new Paint();\n\t\ttilePaint.setColor(Color.GRAY);\n\t\tfor (TilePosition tilePosition : mTilePositions) {\n\t\t\t//if (tilePosition.position != 25) {\n\t\t\tcanvas.drawRect(tilePosition.frame, tilePaint);\n\t\t\tcanvas.drawText(tilePosition.position,\n\t\t\t\t\ttilePosition.frame.left + 5, tilePosition.frame.top + 18, mNumberTextPaint);\n\t\t\t//}\n\t\t}\n\n\t\treturn bitmap;\n\t}", "title": "" }, { "docid": "e143e54478799f81b33e991c1e41a4d6", "score": "0.522312", "text": "public void baiTap180() {\n\t\tfor (int j = 0; j < m; j++) {\n\t\t\tif (baiTap180b(j) == 1) {\n\t\t\t\tSystem.out.println(\" \" + j);\n\t\t\t}\n\n\t\t}\n\n\t}", "title": "" }, { "docid": "4cac2be0a4fe9fd498adef89c7625f9a", "score": "0.52205175", "text": "public void bombNum() {\r\n\t\tint[] coor;\r\n\t\tcoor = findButton();\r\n\t\t//Finds the number of bombs around and sets it to a string\r\n\t\tString result = Integer.toString(findBomb(coor[0], coor[1]));\r\n\t\t//If there are no bombs around, finds other buttons with no bombs around it.\r\n\t\tif (result.equals(\"0\")) {\r\n\t\t\tbtn.setText(\"\");\r\n\t\t\tfindBlank(coor[0], coor[1]);\r\n\t\t\t// If it is the user's first click ensures that it is not a bomb\r\n\t\t} else if (firstClick) {\r\n\t\t\tclearFirst(coor[0], coor[1]);\r\n\t\t\tfindBlank(coor[0], coor[1]);\r\n\t\t\t// Displays the number of bombs around the button and assigns each number a unique colour\r\n\t\t} else {\r\n\t\t\tif (result.equals(\"1\")) {\r\n\t\t\t\tbtn.setForeground(Color.decode(\"#1d0fff\"));\r\n\t\t\t\tbtn.setFont(new Font(\"Arial\", Font.BOLD, 40));\r\n\t\t\t\tbtn.setText(result);\r\n\t\t\t} else if (result.equals(\"2\")) {\r\n\t\t\t\tbtn.setForeground(Color.decode(\"#237b00\"));\r\n\t\t\t\tbtn.setFont(new Font(\"Arial\", Font.BOLD, 40));\r\n\t\t\t\tbtn.setText(result);\r\n\t\t\t} else if (result.equals(\"3\")) {\r\n\t\t\t\tbtn.setForeground(Color.decode(\"#f40000\"));\r\n\t\t\t\tbtn.setFont(new Font(\"Arial\", Font.BOLD, 40));\r\n\t\t\t\tbtn.setText(result);\r\n\t\t\t} else {\r\n\t\t\t\tbtn.setForeground(Color.BLACK);\r\n\t\t\t\tbtn.setFont(new Font(\"Arial\", Font.BOLD, 40));\r\n\t\t\t\tbtn.setText(result);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "e8788c106e5ff9a408ba5744196dbfe0", "score": "0.5219584", "text": "@Override\n public void run() {\n if(num < 90000)\n tv.setText(allWords[num]);\n else\n num = 0;\n num++;\n }", "title": "" }, { "docid": "87bd0eda3f85202e93a7dc8abc32a9fc", "score": "0.52159345", "text": "public void bombNumber() {\r\n\t\tbombLabel.setText(Integer.toString(bombCount));\r\n\t}", "title": "" }, { "docid": "d8a58815fa03f512b88757363775c0dd", "score": "0.5214755", "text": "public String ToString(){\r\n\t\treturn Display(0)+Display(1)+Display(2)+Display(3)+Display(4)+Display(5)+Display(6)+Display(7)+Display(8)+Display(9)+Display(10);\r\n\t}", "title": "" }, { "docid": "6b8dacb5350c3c97b280751da7f619f5", "score": "0.5210597", "text": "private void animateRGBXY () {\n\t\tint w = BinaryStringHelper.maxVal;\n\t\tint h = BinaryStringHelper.maxVal;\n\t\tint opacityMult = 20;\n\t\tif (this.img == null) {\n\t\t\tthis.img = new BufferedImage(w, h, BufferedImage.TYPE_INT_ARGB);\n\t\t\tthis.imgGraphics = this.img.createGraphics();\n\t\t\tthis.imgGraphics.setColor(Color.BLACK);\n\t\t\tthis.imgGraphics.fillRect(0, 0, w, h);\n\t\t}\n\t\t\n\t\t//---CLEAR BUFFERED IMAGE TO BLACK---//\n\t\tthis.imgGraphics.setColor(Color.BLACK);\n\t\tthis.imgGraphics.fillRect(0, 0, w, h);\n\t\t\n\t\t//---RENDER GOAL STATE---//\n\t\tif (this.isCustomGoal && this.renderGoal) {\n\t\t\tint[] goalPosition = this.options.fitnessObj.getGoal();\n\t\t\tthis.imgGraphics.setPaint(new Color(\n\t\t\t\t\tgoalPosition[0], goalPosition[1], goalPosition[2]));\n\t\t\tthis.imgGraphics.fillRect(goalPosition[3] - 5, goalPosition[4] - 5, 10, 10);\n\t\t\t//opacityMult = 20;\n\t\t}\n\t\t\n\t\tthis.child.getIndividuals().stream().forEach(individual -> {\n\t\t\tdouble[] normalVals = individual.getGenome().stream().mapToDouble(gene -> {\n\t\t\t\treturn gene / (this.goal * 1.0);\n\t\t\t}).toArray();\n\t\t\t\n\t\t\tint red = (int) Math.floor(255 * normalVals[0]);\n\t\t\tint green = (int) Math.floor(255 * normalVals[1]);\n\t\t\tint blue = (int) Math.floor(255 * normalVals[2]);\n\t\t\tint x = (int) Math.floor(w * normalVals[3]);\n\t\t\tint y = (int) Math.floor(h * normalVals[4]);\n\t\t\t\n\t\t\tthis.imgGraphics.setPaint(new Color(red, green, blue, 10 * opacityMult));\n\t\t\tthis.imgGraphics.fillRect(x, y, 2, 2);\n\t\t});\n\t\tanimationPanel.setBufferedImage(this.img);\n\t}", "title": "" }, { "docid": "d937c6df8802bea7a822ee0e29267fb8", "score": "0.5208951", "text": "public void lookAround(int position, Button b)\n {\n int count = 0;\n for (int i = 0;i<10;i++)\n {\n if ((position > 10 && position < 19) || ((position > 20) && (position < 29)) || ((position > 30) && (position < 39))\n || ((position > 40) && (position < 49)) || ((position>50)&&(position<59)) || ((position > 60)&&(position<69))\n || ((position > 70)&&(position<79)) || ((position > 80)&&(position<89)))\n {\n\n if (position+10 == num.getBombs()[i]) //Number below it\n {\n count+=1;\n }\n if(position - 10 == num.getBombs()[i]) //Number above it\n {\n count+=1;\n }\n\n if (position+1 == num.getBombs()[i]) //Number to the right\n {\n count+=1;\n }\n if (position-1 == num.getBombs()[i]) //Number to the left\n {\n count+=1;\n }\n if (position+11 == num.getBombs()[i]) //Number diagonally right below\n {\n count+=1;\n }\n if (position + 9 == num.getBombs()[i]) //Number diagonally left below\n {\n count+=1;\n }\n if(position-11 == num.getBombs()[i]) //Number diagonally left above\n {\n count+=1;\n }\n if(position - 9 == num.getBombs()[i]) //Number diagonally right above\n {\n count+=1;\n }\n }\n else if((position > 0)&&(position < 9))\n {\n if (position-1 == num.getBombs()[i]) //Number to the left\n {\n count+=1;\n }\n if (position+1 == num.getBombs()[i]) //Number to the right\n {\n count+=1;\n }\n if (position+10 == num.getBombs()[i]) //Number below it\n {\n count+=1;\n }\n if (position+11 == num.getBombs()[i]) //Number diagonally right below\n {\n count+=1;\n }\n if (position + 9 == num.getBombs()[i]) //Number diagonally left below\n {\n count+=1;\n }\n }\n else if ((position > 90) && (position < 99))\n {\n if (position-1 == num.getBombs()[i]) //Number to the left\n {\n count+=1;\n }\n if (position+1 == num.getBombs()[i]) //Number to the right\n {\n count+=1;\n }\n if(position - 10 == num.getBombs()[i]) //Number above it\n {\n count+=1;\n }\n if(position-11 == num.getBombs()[i]) //Number diagonally left above\n {\n count+=1;\n }\n if(position - 9 == num.getBombs()[i]) //Number diagonally right above\n {\n count+=1;\n }\n }\n else if((position != 0) && (position != 9) && (position != 90) && (position != 99))\n {\n boolean leftEdge = false;\n //boolean rightEdge = false;\n for (int j = 10;j<90;j=j+10)\n {\n if (position == j)\n {\n leftEdge = true;\n break;\n }\n }\n if (leftEdge)\n {\n if(position - 10 == num.getBombs()[i]) //Number above it\n {\n count+=1;\n }\n if (position+10 == num.getBombs()[i]) //Number below it\n {\n count+=1;\n }\n if (position+11 == num.getBombs()[i]) //Number diagonally right below\n {\n count+=1;\n }\n if(position - 9 == num.getBombs()[i]) //Number diagonally right above\n {\n count+=1;\n }\n if (position+1 == num.getBombs()[i]) //Number to the right\n {\n count+=1;\n }\n }\n else\n {\n if(position - 10 == num.getBombs()[i]) //Number above it\n {\n count+=1;\n }\n if (position+10 == num.getBombs()[i]) //Number below it\n {\n count+=1;\n }\n if (position-1 == num.getBombs()[i]) //Number to the left\n {\n count+=1;\n }\n if(position-11 == num.getBombs()[i]) //Number diagonally left above\n {\n count+=1;\n }\n if (position + 9 == num.getBombs()[i]) //Number diagonally left below\n {\n count+=1;\n }\n }\n }\n else if (position == 0)\n {\n if (position+10 == num.getBombs()[i]) //Number below it\n {\n count+=1;\n }\n if (position+11 == num.getBombs()[i]) //Number diagonally right below\n {\n count+=1;\n }\n if (position+1 == num.getBombs()[i]) //Number to the right\n {\n count+=1;\n }\n }\n else if (position == 9)\n {\n if (position-1 == num.getBombs()[i]) //Number to the left\n {\n count+=1;\n }\n if (position+10 == num.getBombs()[i]) //Number below it\n {\n count+=1;\n }\n if (position + 9 == num.getBombs()[i]) //Number diagonally left below\n {\n count+=1;\n }\n }\n else if (position == 90)\n {\n if (position+1 == num.getBombs()[i]) //Number to the right\n {\n count+=1;\n }\n if(position - 10 == num.getBombs()[i]) //Number above it\n {\n count+=1;\n }\n if(position - 9 == num.getBombs()[i]) //Number diagonally right above\n {\n count+=1;\n }\n }\n else if (position == 99)\n {\n if(position - 10 == num.getBombs()[i]) //Number above it\n {\n count+=1;\n }\n if (position-1 == num.getBombs()[i]) //Number to the left\n {\n count+=1;\n }\n if(position-11 == num.getBombs()[i]) //Number diagonally left above\n {\n count+=1;\n }\n }\n }\n\n //System.out.println(count);\n //b.setStatus(count);\n b.setButtonText(b,count);\n //return count;\n\n }", "title": "" }, { "docid": "3a8ed8b25f4b9b195de2fb08fec87cb1", "score": "0.5202957", "text": "void display()\r\n {\n System.out.println(\"The Series :\");\r\n for(int i=0;i<n;i++)\r\n System.out.println(\"Term Number \"+(i+1)+\" = \"+tribonacci(i));\r\n }", "title": "" }, { "docid": "b16bf5c89a3f319b88d32a25b2e1645b", "score": "0.5201716", "text": "public void actionPerformed(ActionEvent e) {\n //switch to new mode\n isBinaryMode = !isBinaryMode;\n \n //display mode onscreen\n if(isBinaryMode) {\n modeDisplay.setText(\"BIN\");\n }\n else {\n modeDisplay.setText(\"DEC\");\n }\n //update display\n }", "title": "" }, { "docid": "4bf069c7c81b67260671bebead47fca7", "score": "0.5200819", "text": "@Override\r\n public void actionPerformed(ActionEvent e){\n String min = one.getText() ;\r\n String max = hund.getText() ;\r\n String prefix = prefixnotextfil.getText() ;\r\n String suffix = suffixtext.getText() ;\r\n boolean pa ;\r\n pa = pad.isSelected();\r\n String join = jointextfill.getText();\r\n String res = function.sequential_numbers(min,max,prefix,suffix,join , pa );\r\n output.setText(res);\r\n }", "title": "" }, { "docid": "a7e8927ab6036b43fb8490b81df41750", "score": "0.5189068", "text": "@Override\n public String show() {\n final Game game = (Game) content.get(\"game\");\n int[] size = game.getBoardSize();\n int n = size[0];\n int m = size[1];\n\n System.out.print(\" \");\n for (int i = 0; i < n; i++) {\n System.out.print(i);\n System.out.print(\" \");\n }\n System.out.println();\n\n System.out.print(\" -\");\n for (int i = 0; i < n; i++) {\n System.out.print(\"--\");\n }\n System.out.println();\n\n for (int i = 0; i < m; i++) {\n System.out.printf(\"%d: \", i);\n for (int j = 0; j < n; j++) {\n System.out.printf(\"%s \", playerViews.get(game.getMark(i, j)));\n }\n System.out.println();\n }\n\n System.out.printf(\"i[0-%d]:\", m - 1);\n String i = ask();\n\n System.out.printf(\"j[0-%d]:\", n - 1);\n String j = ask();\n\n System.out.println();\n return i + \" \" + j;\n }", "title": "" }, { "docid": "b2448ca324fd87c3796f75ca5484f9ce", "score": "0.51887894", "text": "private void animateXY () {\n\t\tint w = BinaryStringHelper.maxVal;\n\t\tint h = BinaryStringHelper.maxVal;\n\t\tif (this.img == null) {\n\t\t\tthis.img = new BufferedImage(w, h, BufferedImage.TYPE_INT_ARGB);\n\t\t\tthis.imgGraphics = this.img.createGraphics();\n\t\t\tthis.imgGraphics.setColor(Color.BLACK);\n\t\t\tthis.imgGraphics.fillRect(0, 0, w, h);\n\t\t}\n\t\t\n\t\tthis.imgGraphics.setColor(Color.BLACK);\n\t\tthis.imgGraphics.fillRect(0, 0, w, h);\n\t\t\n\t\tif (this.isCustomGoal && this.renderGoal) {\n\t\t\tthis.imgGraphics.setPaint(new Color(100, 100, 255));\n\t\t\tint[] goalPosition = this.options.fitnessObj.getGoal();\n\t\t\tthis.imgGraphics.fillRect(goalPosition[0] - 5, goalPosition[1] - 5, 10, 10);\n\t\t\tthis.imgGraphics.setPaint(new Color(255, 255, 255, 100));\n\t\t}\n\t\t\n\t\tthis.child.getIndividuals().forEach(individual -> {\n\t\t\tdouble normalX = individual.getGene(0) / (goal * 1.0);\n\t\t\tdouble normalY = individual.getGene(1) / (goal * 1.0);\n\t\t\t\n\t\t\tint x = (int) Math.floor(w * normalX);\n\t\t\tint y = (int) Math.floor(h * normalY);\n\t\t\t\n\t\t\tthis.imgGraphics.setPaint(new Color(255, 255, 255, 100));\n\t\t\tthis.imgGraphics.fillRect(x - 1, y - 1, 2, 2);\n\t\t});\n\t\t\n\t\tanimationPanel.setBufferedImage(this.img);\n\t}", "title": "" }, { "docid": "5e6658c98e2d8192ac20327a713fdefe", "score": "0.5185128", "text": "public void displayAnimationStage7(Graphics g)\n {\n\t\tdisplayMultiplication(g);\n \tdisplayMultiplicationAnswer(g);\n \tdisplayPlusSign(g);\n \t\n }", "title": "" }, { "docid": "204a956cac0835964e3f7b28db00aeec", "score": "0.51833063", "text": "public void renderNewBlock() {\n\t\tif (status == true) {\n\t\t\tint key = genNewNumber();\n\t\t\tRandom gen = new Random();\n\t\t\tif (multiplier <= 3) {\n\t\t\t\tint newMultiplier = gen.nextInt(multiplier) + 1;\n\t\t\t\tlabel[key].setText(Integer.toString((int) Math.pow(2, \n\t\t\t\t\t\tnewMultiplier)));\n\t\t\t} else {\n\t\t\t\tint newMultiplier = gen.nextInt(4) + (multiplier - 3);\n\t\t\t\tlabel[key].setText(Integer.toString((int) Math.pow(2, \n\t\t\t\t\t\tnewMultiplier)));\n\t\t\t}\n\n\t\t\t// Set background color.\n\t\t\tlabel[key].setBackground(getColor(key));\n\t\t}\n\t}", "title": "" }, { "docid": "d9bba2070fb4c19f355dac3fed4e1b0e", "score": "0.5182823", "text": "private void paintPitches(Graphics g) {\n Rectangle drawHere = g.getClipBounds();\n SortedSet<Pitch> range = this.composition.range(this.musicTracker.getTimbre());\n\n int y = 0;\n for (Pitch p : range) {\n y += this.CELL_HEIGHT;\n if (drawHere.contains(0, y)) {\n g.drawString(p.toString(), 0, y);\n }\n }\n }", "title": "" }, { "docid": "fe59a512d7d853a6f74862f0e7dc837f", "score": "0.51814646", "text": "private void disp() {\n String result=\"\";\n for (int i = 0; i <alu.AC.length ; i++) {\n result+=alu.AC[i];\n }\n System.out.println(result+\"(\"+M.toDecimal(alu.AC)+\")\");\n }", "title": "" }, { "docid": "085c856e8fb64dd0c77e5d79803098f0", "score": "0.51795304", "text": "public static void PrintPattern1(int n)\r\n{\r\n\tint num=1;\r\n\tfor(int i=0;i<n;i++)\r\n\t{\r\n\t\tfor(int j=0;j<=i;j++)\r\n\t\t{\r\n\t\t\tSystem.out.print(num);\r\n\t\t\tnum++;\r\n\t\t}\r\n\t\tSystem.out.println();\r\n\t}\r\n\t\r\n\t\r\n\r\n}", "title": "" }, { "docid": "9dbe451b4b05c7c6e9d9ffca6767ff85", "score": "0.51789397", "text": "public void displayImageToConsole()\n {\n horizontalLines();\n\n for (int i = BarcodeImage.MAX_HEIGHT\n - actualHeight; i < BarcodeImage.MAX_HEIGHT; i++)\n {\n printValues(i);\n\n System.out.print(\"\\n\");\n }\n\n }", "title": "" }, { "docid": "bc6f30cbf77b138521020dc26da5374b", "score": "0.51780254", "text": "private void showboard() {\n\tSystem.out.print(\" 0 1 2 3 4 5 6 7 8 \\n\");\n\tfor (int x=0; x<9; x++) {\n\t System.out.print(x + \" \");\n\t for (int y=0; y<9; y++) {\n\t\tSystem.out.print( Kami_Board[x][y] + \" \" );\n\t }\n\t System.out.print(\"\\n\");\n\t}\n\tSystem.out.print(\"=\\n\");\n }", "title": "" }, { "docid": "b3ded9936b3a5142e3a57dad5a3ef4df", "score": "0.5175828", "text": "private void drawTones(Graphics g) {\n // draw: the list of tones\n int toneY = TOPOFFSET + SQUARE; //starting gap\n for (ITone t : toneSet) {\n g.drawString(t.toString(), 2, toneY); //string, int x, int y\n toneY += SQUARE;\n }\n }", "title": "" }, { "docid": "c9d4c505af6d0232888d7309d129f2d4", "score": "0.5172338", "text": "static String binary(int number) {\n StringBuilder builder = new StringBuilder();\n while (number > 0) {\n builder.append(number % 2);\n number /= 2;\n }\n return builder.reverse().toString();\n }", "title": "" }, { "docid": "bc064f8394948d2088214502486f669f", "score": "0.5171792", "text": "public static void transform(){\n while (!BinaryStdIn.isEmpty()){\n String curStr = BinaryStdIn.readString();\n int length = curStr.length();\n CircularSuffixArray circularSuffixArray = new CircularSuffixArray(curStr);\n // find the 'first' and write the output\n for (int i = 0; i < length; i++){\n if(circularSuffixArray.index(i) == 0){\n // write as an int\n BinaryStdOut.write(i);\n }\n }\n for(int i = 0; i < length;i++){\n // get the index of the sorted suffix, exp: 0 -> 11 -> 'A'\n int org_i = circularSuffixArray.index(i);\n // get the offset of the 'start' th suffixes last char\n int offset = (org_i+length-1)%length;\n // get the char from the the string\n char c = curStr.charAt(offset);\n BinaryStdOut.write(c,8);\n }\n\n BinaryStdOut.close();\n\n }\n\n }", "title": "" }, { "docid": "762b683c9ce411efc2f7628e5a63a4a6", "score": "0.5171589", "text": "public void printStateHex(){\n\t\tfor(int i = 0; i < state.length; i++){\n\t\t\tfor(int j = 0; j < state[0].length; j++){\n\t\t\t\tSystem.out.print(String.format(\"%02X\", state[i][j] & 0xFF) + \" \");\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "title": "" }, { "docid": "0397567cdd2c01e387dc8ae84b96e1ff", "score": "0.51678586", "text": "private JLabel initDisplay() {\n JLabel display = new JLabel(\"0\");\n display.setBackground(Color.YELLOW);\n display.setBorder(BorderFactory.createLineBorder(Color.BLACK));\n display.setOpaque(true);\n display.setHorizontalAlignment(SwingConstants.RIGHT);\n calc.addCalcValueListener(model -> display.setText(model.toString()));\n getContentPane().add(display, \"1,1\");\n display.setFont(display.getFont().deriveFont(30f));\n\n return display;\n }", "title": "" } ]
aee8b15999494e1c848b6b4e6d988bdf
Adds edge to this graph. Fails under the following circumstances: edge is already an element of the graph either edge or vertices is null vertices has the wrong number of vertices for the graph type vertices are already connected by another edge in this graph, and this graph does not accept parallel edges.
[ { "docid": "9079df9c693f2fb4265e7726e2c50359", "score": "0.70930994", "text": "@SuppressWarnings(\"unchecked\")\r\n\tpublic boolean addEdge(E edge, Collection<? extends V> vertices) {\r\n\t\tif(edge == null || vertices == null || vertices.size() != 2) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t\r\n\t\tV[] vs = (V[])vertices.toArray();\r\n\t\treturn addEdge(edge, vs[0], vs[1]);\r\n\t}", "title": "" } ]
[ { "docid": "0528ec960bace84b2b731a3aa3fd6030", "score": "0.75805295", "text": "public boolean addEdge(E edge);", "title": "" }, { "docid": "0528ec960bace84b2b731a3aa3fd6030", "score": "0.75805295", "text": "public boolean addEdge(E edge);", "title": "" }, { "docid": "997396e6bf42200afa37096f2b41e0a4", "score": "0.7416476", "text": "@Override\n public boolean addEdge(Edge edge);", "title": "" }, { "docid": "386e41a484e5e618c07d522d8ed9a80a", "score": "0.7395624", "text": "public void addEdge(Edge e) {\n SimpleEdge se = new SimpleEdge(e);\n //if the new edge is already connected to this vertex:\n if (simpleEdges.contains(se)) {\n //throw an exception\n throw new RuntimeException(\"Attempted to add edge (\" +\n e.toString() +\n \") same to vertex (\" +\n this.toString() +\n \") twice.\");\n }\n //Otherwise just add it\n simpleEdges.add(se);\n }", "title": "" }, { "docid": "e03cd8072a6fd4c3eb36efcd76f170e8", "score": "0.73230255", "text": "@Override\r\n public boolean addEdge(Edge e) {\r\n if (e.u < 0 || e.u > getSize() - 1) {\r\n throw new IllegalArgumentException(\"No such index: \" + e.u);\r\n }\r\n \r\n if (e.v < 0 || e.v > getSize() - 1) {\r\n throw new IllegalArgumentException(\"No such index: \" + e.v);\r\n }\r\n \r\n if (!neighbors.get(e.u).contains(e)) {\r\n neighbors.get(e.u).add(e);\r\n return true;\r\n }\r\n else {\r\n return false;\r\n }\r\n }", "title": "" }, { "docid": "4f331d5b891f0334330e3320b1b3aeb2", "score": "0.7315984", "text": "public void addEdge(E e)\n {\n vertexEdges.add(e);\n }", "title": "" }, { "docid": "efeca59feaacaf269a84374a6f9b85ec", "score": "0.7219607", "text": "public void addEdge(Edge e) {\n if (edges==null) edges = new ArrayList<Edge>();\n if (!edges.contains(e))\n edges.add(e);\n }", "title": "" }, { "docid": "0553c76c356c3fe61d088297cd049999", "score": "0.71638685", "text": "public void addEdge(Edge e);", "title": "" }, { "docid": "701582a76e1a96c3bf0bd106e5d1bbdf", "score": "0.7134049", "text": "public void addEdge(Edge e){\n edges.add(e);\n }", "title": "" }, { "docid": "6c8ec6967e9131daa8ab2aaebc75bfc3", "score": "0.6997831", "text": "@SuppressWarnings(\"unchecked\")\r\n\tpublic boolean addEdge(E edge, Collection<? extends V> vertices, EdgeType edgeType) {\r\n\t\tif(edge == null || vertices == null || vertices.size() != 2) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t\r\n\t\tV[] vs = (V[])vertices.toArray();\r\n\t\treturn addEdge(edge, vs[0], vs[1], edgeType);\r\n\t}", "title": "" }, { "docid": "a9f3a8f2d524c6bb304cc8ff9608e355", "score": "0.6973511", "text": "public void addEdge(WeighedDigraphEdge newEdge) {\n // create empty connection set\n if (!adj.containsKey(newEdge.from()))\n adj.put(newEdge.from(), new ArrayList<WeighedDigraphEdge>());\n\n ArrayList<WeighedDigraphEdge> currentEdges = adj.get(newEdge.from());\n\n /* Check if edge already exists,\n * if it is, replace it with new one assuming it needs to be updated */\n \n //boolean edgeExists = false;\n /*\n for (int i = 0; i < currentEdges.size(); i++) {\n if (currentEdges.get(i).to() == newEdge.to()) {\n currentEdges.set(i, newEdge);\n edgeExists = true;\n break;\n }\n }\n */\n //if (!edgeExists)\n currentEdges.add(newEdge);\n\n adj.put(newEdge.from(), currentEdges);\n }", "title": "" }, { "docid": "3d1d19afb9d06cb82b43aecd47513c64", "score": "0.6909095", "text": "public void addEdge(EventEdge edge) {\n\t\tboolean validEdge = true;\n\t\tfor (Vertex vertex : edge.getVertices()) {\n\t\t\tif (!vertices.contains(vertex)) {\n\t\t\t\tvalidEdge = true;\n\t\t\t}\n\t\t}\n\t\tif (validEdge) {\n\t\t\tedges.add(edge);\n\t\t}\n\t}", "title": "" }, { "docid": "fa6506888af4a6a870a0355381dc6441", "score": "0.6897332", "text": "public boolean addEdge(Edge edge) {\n return edgesTable.addEdge(edge);\n }", "title": "" }, { "docid": "91f370c5d9e104d5c61e54e57f25ecf3", "score": "0.6882493", "text": "public void addEdge(Edge edge) {\r\n\t\t// as the edge is not an arc, it must be added to both\r\n\t\t// in and out edge sets\r\n\t\tif (this.in_edges == null)\r\n\t\t\tthis.in_edges = new HashSet<Edge>();\r\n\t\tif (this.out_edges == null)\r\n\t\t\tthis.out_edges = new HashSet<Edge>();\r\n\r\n\t\tthis.in_edges.add(edge);\r\n\t\tthis.out_edges.add(edge);\r\n\t}", "title": "" }, { "docid": "d8dcd9851320fbf6547a9425977f41bf", "score": "0.68764824", "text": "public void addTo(Edge a){\r\n this.vertices.add(a);\r\n }", "title": "" }, { "docid": "82def7f16c6102242cb9d3f44af9b205", "score": "0.68533194", "text": "public void add(Edge edge) {\r\n allEdges.add(edge);\r\n }", "title": "" }, { "docid": "b9a14de984f622c95ef90f3cc9ef0bea", "score": "0.6849859", "text": "void addEdge(Edge<T> edge);", "title": "" }, { "docid": "0db0c05ad2087d28f20a728156660878", "score": "0.6812597", "text": "@Override\n public void addEdge(@NonNull final Vertex vertexFrom, @NonNull final Vertex vertexTo, @NonNull final Edge edge) {\n if (!edge.getDirection().equals(EdgeDirection.ABOTH)) {\n throw new IllegalArgumentException(WRONG_DIRECTION_MASSAGE);\n }\n if (!isGraphContainVertices(vertexFrom, vertexTo)) {\n throw new IllegalArgumentException(VERTEXES_DOES_NOT_EXISTS_MASSAGE);\n }\n if (isEdgeAlreadyExists(vertexFrom, vertexTo, edge)) {\n throw new IllegalArgumentException(EDGE_ALREADY_EXISTS_MASSAGE);\n }\n if (vertexFrom == vertexTo) {\n super.getVertexes()\n .remove(vertexFrom);\n vertexFrom.getEdges()\n .put(vertexTo.getId(), edge);\n super.getVertexes()\n .add(vertexFrom);\n } else {\n super.getVertexes()\n .removeAll(asList(vertexFrom, vertexTo));\n vertexFrom.getEdges()\n .put(vertexTo.getId(), edge);\n vertexTo.getEdges()\n .put(vertexFrom.getId(), edge);\n super.getVertexes()\n .addAll(asList(vertexFrom, vertexTo));\n }\n super.getEdgesIds().add(edge.getId());\n }", "title": "" }, { "docid": "b09254054a4ffbd30afad867a7f643f4", "score": "0.67751735", "text": "public void addEdge(final Edge edge) {\n ValidationUtils.validateNotNull(edge, NULL_EDGE_MESSAGE);\n m_edges.add(edge);\n if (!m_directed) {\n m_edges.add(edge.reversed());\n }\n m_vertices.add(edge.getStartVertex());\n m_vertices.add(edge.getEndVertex());\n }", "title": "" }, { "docid": "fd28a5f09ce5fbd60be05c711e7cc875", "score": "0.6769003", "text": "void addEdge(final Edge edge) {\r\n addFromVertex(edge.getVertexA(), edge); // get Vertex From\r\n// addVertex(edge.getVertexB()); // get Vertex To\r\n }", "title": "" }, { "docid": "35d32614c8773682195bf4ca1e8b319c", "score": "0.6762321", "text": "void addEdge(E edge, N start, N end);", "title": "" }, { "docid": "56c5a4f7c5afb80a54bf6b198f55f133", "score": "0.6761308", "text": "void addEdge(SimpleEdge edge) {\n edges.add(edge);\n }", "title": "" }, { "docid": "cbf5b21ce54bfc0da378e5ece93fbd54", "score": "0.6759664", "text": "public void addEdge(Edge edge) {\n this.edges.add(edge);\n }", "title": "" }, { "docid": "d11f544f2b397c64e22b2cdfa0d92c96", "score": "0.67076635", "text": "public void addEdge(Vertex v1, Vertex v2);", "title": "" }, { "docid": "41f4527bd9dfe5b79bcfd30b51525779", "score": "0.667596", "text": "@Override\n public boolean addEdge(E vertex1, E vertex2) {\n\tint index1 = getIndex(vertex1);\n\tint index2 = getIndex(vertex2);\n if(index1 < 0 || index2 < 0 || index1 == index2)\n {\n \treturn false;\n }\n edges[index1][index2] = 1;\n edges[index2][index1] = 1;// update the adjacency matrix\n return true;\n \n }", "title": "" }, { "docid": "4744a87cd0a30f217a9603e2b23cf4cf", "score": "0.6653329", "text": "public boolean addEdge(E e, V v1, V v2) {\n\t\t// If the vertices exist in the graph\n\t\tif (adjacencies.containsKey(v1) && adjacencies.containsKey(v2)) {\n\t\t\tadjacencies.get(v1).put(e, v2);\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "title": "" }, { "docid": "d064e50608d8204af6543ae18235d299", "score": "0.6632704", "text": "public void attachEdge( Edge newEdge )\n {\n for ( int i = 0; i < attachedEdges.size(); i++ )\n {\n if ( attachedEdges.get( i ).equals( newEdge ) )\n {\n return;//Don't add\n }\n }\n attachedEdges.add( newEdge );\n // need to reset this to null so it'll get recalculated next time\n adjacentNodes = null;\n }", "title": "" }, { "docid": "1f0cafb0110c81439413fc37a409f02b", "score": "0.6584012", "text": "public void addEdge(Edge edge) {\n\t\tedges.get(edge.u).add(edge);\n\t\tedges.get(edge.v).add(edge.reversed());\n\t}", "title": "" }, { "docid": "ec53e57283b656ef095c4beb55211da1", "score": "0.6452283", "text": "public void addEdge(Vertex edge, int cost) {\n if (isConnected(edge)) {\n throw new IllegalArgumentException(\"The supplied vertex [\" + edge + \"] is already connected to this vertex [\" + this + \"]\");\n }\n\n // make sure we aren't connecting to ourselves\n if (this.equals(edge)) {\n throw new IllegalArgumentException(\"Attempting to connect to myself [\" + edge + \"]\");\n }\n\n this.edges.put(edge, cost);\n edge.getEdges().put(this, cost); // add the connection to the other side\n }", "title": "" }, { "docid": "b162b6f01b6374cf1aaee99d28bc5e2a", "score": "0.6446222", "text": "public void addOrUpdateEdge(EdgeData edgeToAdd)\n {\n if(edgeToAdd != null && edgeToAdd.getDestination() != null)\n {\n // look for an existing edge given the provided edgeToAdd parameter\n // and return that edge if it exists\n EdgeData edge = findEdgeThatPointsToGivenNodeName(edgeToAdd.getDestination().getName());\n\n // if the edge is null, the edge to add is new and will be connected with this node\n if(edge == null)\n {\n _edges.add(edgeToAdd); // add edge to _edges list\n }\n // edge already exists, therefore only change the weight\n else\n {\n edge.setWeight(edgeToAdd.getWeight()); // update existing edge's weight\n }\n }\n }", "title": "" }, { "docid": "7fec2f3601181adef16dcda11798c149", "score": "0.6434597", "text": "public void addEdge(Edge newEdge)\n {\n\t// There are probably many better ways to do this.\n\tString newDirection = newEdge.getDirection();\n\tedges.put(newDirection, newEdge);\n\n }", "title": "" }, { "docid": "57551b431db49024394d28af111cf367", "score": "0.64103186", "text": "void addEdge(int vertex1, int vertex2) {\n this.adjVertices[vertex1].add(vertex2);\n }", "title": "" }, { "docid": "e0c2a978186fc0f81e1cf22aea8b7ed2", "score": "0.6409483", "text": "@Override public void addEdge(final Vertex from, final Vertex to) {\r\n if (!directedGraph.findVertexByName(from.getName())) {\r\n throw new NotVertexFoundException(\"No vertex found while adding edge:\" + from);\r\n }\r\n if (!directedGraph.findVertexByName(to.getName())) {\r\n throw new NotVertexFoundException(\"No vertex found while adding edge:\" + to);\r\n }\r\n directedGraph.addEdge(Edge.of(type, from, to));\r\n }", "title": "" }, { "docid": "fbcd1a3cba7f9f1c6c530414a8494c73", "score": "0.64013445", "text": "public void edgeAdded(final GraphView<V, E>.VisualEdge edge);", "title": "" }, { "docid": "d304a5007a5e49ca89a988fa65007e7e", "score": "0.63814604", "text": "public int addEdge(int sourceIndex, int targetIndex, E edgeObj);", "title": "" }, { "docid": "b6e513f50b5550b8b23eb9d2aa539b31", "score": "0.63404495", "text": "public void addEdge(Edge a) {\n\t\tint v = a.v();\n\t\tint w = a.w();\n\t\tadj[v].add(a);\n\t\t//adj[w].add(a);\n\t\t\n\t}", "title": "" }, { "docid": "53c56aeed1451c2b9c7b47b6a29e9a5c", "score": "0.63275766", "text": "@Override\r\n\tpublic void addEdge(int v1, int v2) throws Exception {\r\n\t\t//throw an exception when the vertices are out of bound\r\n\t\tif(v1 < 0 || v1 > size-1 || v2 < 0 || v2 > size-1)\r\n\t\t\tthrow new Exception();\r\n\t\telse\r\n\t\t\tmatrix[v1][v2] = 1;\r\n\t\t\r\n\t}", "title": "" }, { "docid": "259d39eb8f0662a7862c6b4b0e8b6569", "score": "0.6313928", "text": "public boolean addEdge(E e, V v1, V v2) {\r\n\t\tint indexV1 = -1;\r\n\t\tint indexV2 = -1;\r\n\t\tfor (int i = 0; i < vertices.size(); i++){\r\n\t\t\tif (vertices.get(i) == null){//Makes sure there is a node there.\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\t\tif (vertices.get(i).containsEdge(e)){//Checks to make sure it doesn't already exist.\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t\tif (vertices.get(i).vertex.equals(v1)){\r\n\t\t\t\tindexV1 = i;\r\n\t\t\t\tfor (int k = 0; k < vertices.get(indexV1).edges.size(); k++){\r\n\t\t\t\t\tif (vertices.get(indexV1).edges.get(k) == null){\r\n\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (vertices.get(indexV1).edges.get(k).connectedVertex.equals(v2)){\r\n\t\t\t\t\t\treturn false;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\tif (vertices.get(i).vertex.equals(v2)){\r\n\t\t\t\tindexV2 = i;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (v1.equals(v2)){\r\n\t\t\tvertices.get(indexV1).addEdge(e, v1);\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\tif (indexV1 == -1 && indexV2 == -1){\r\n\t\t\tNodes<V,E> newNode1 = new Nodes<V,E>(v1);\r\n\t\t\tNodes<V,E> newNode2 = new Nodes<V,E>(v2);\r\n\t\t\tvertices.add(newNode1);\r\n\t\t\tvertices.add(newNode2);\r\n\t\t\tfor (int i = 0; i < vertices.size(); i++){\r\n\t\t\t\tif (vertices.get(i) == null){\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\t\tif (vertices.get(i).equals(v1)){\r\n\t\t\t\t\tindexV1 = i;\r\n\t\t\t\t}\r\n\t\t\t\tif (vertices.get(i).equals(v2)){\r\n\t\t\t\t\tindexV2 = i;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tvertices.get(indexV1).addEdge(e, v2);\r\n\t\t\tvertices.get(indexV2).addEdge(e, v1);\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\telse if (indexV1 != -1 && indexV2 == -1){\r\n\t\t\tif (vertices.get(indexV1).containsEdge(e)){\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t\tNodes<V,E> newNode2 = new Nodes<V,E>(v2);\r\n\t\t\tvertices.add(newNode2);\r\n\t\t\tfor (int i = 0; i < vertices.size(); i++){\r\n\t\t\t\tif (vertices.get(i) == null){\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\t\tif (vertices.get(i).equals(v2)){\r\n\t\t\t\t\tindexV2 = i;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tvertices.get(indexV1).addEdge(e, v2);\r\n\t\t\tvertices.get(indexV2).addEdge(e, v1);\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\telse if (indexV1 == -1 && indexV2 != -1){\r\n\t\t\tif (vertices.get(indexV2).containsEdge(e)){\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t\tNodes<V,E> newNode1 = new Nodes<V,E>(v1);\r\n\t\t\tvertices.add(newNode1);\r\n\t\t\tfor (int i = 0; i < vertices.size(); i++){\r\n\t\t\t\tif (vertices.get(i) == null){\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\t\tif (vertices.get(i).equals(v1)){\r\n\t\t\t\t\tindexV1 = i;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tvertices.get(indexV1).addEdge(e, v2);\r\n\t\t\tvertices.get(indexV2).addEdge(e, v1);\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\telse {\r\n\t\t\tif (vertices.get(indexV1).containsEdge(e)){\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t\tif (vertices.get(indexV2).containsEdge(e)){\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t\tvertices.get(indexV1).addEdge(e, v2);\r\n\t\t\tvertices.get(indexV2).addEdge(e, v1);\r\n\t\t\treturn true;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "69071f0d0e82165775c3bdaef57f9442", "score": "0.6295462", "text": "@Override\n public void insert(Edge e) {\n int v = e.either();\n int w = e.other(v);\n validateVertex(v);\n validateVertex(w);\n adj[v].add(e);\n adj[w].add(e);\n E++;\n }", "title": "" }, { "docid": "8b24b93928175e80fe27a133fe76d3c8", "score": "0.62850016", "text": "public void addEdge(final int vertexOne, final int vertexTwo) {\n if (vertexOne != vertexTwo) {\n if (!hasEdge(vertexOne, vertexTwo)) {\n graphMatrix[vertexOne][vertexTwo] = 1;\n graphMatrix[vertexTwo][vertexOne] = 1;\n edges++;\n }\n }\n\n }", "title": "" }, { "docid": "2e2d7769a950f2bc936e6876d96bb359", "score": "0.6258441", "text": "@Test\n public void testAddEdge() {\n assertEquals(true, this.g.addEdge(this.e));\n assertTrue(this.g.addEdge(this.f));\n //this next one already exists\n assertEquals(false, this.g.addEdge(this.v, this.x, 2));\n assertEquals(true, this.g.allEdges().contains(this.f));\n assertEquals(true, this.g.allEdges().contains(this.e));\n assertEquals(false, this.g.addEdge(this.v, this.u, 1));\n assertEquals(false, this.g.addEdge(this.f));\n assertEquals(2, this.g.numEdges());\n \n }", "title": "" }, { "docid": "7267f1772df354086ca51f86a5804a16", "score": "0.6257533", "text": "public void addNeighbour(StationLink edge) {\n\t\tif (this.neighbours.contains(edge)) {\n\t\t\treturn;\n\t\t}\n\t\tthis.neighbours.add(edge);\n\t}", "title": "" }, { "docid": "275277f8f12bdb718ce0c735fe34424c", "score": "0.6238222", "text": "@Override\n public AdjacencyListGraph<T> addEdge(T vertex1, T vertex2) {\n if (vertexMap.containsKey(vertex1) && vertexMap.containsKey(vertex2)) {\n vertexMap.get(vertex1).add(vertex2);\n }\n return this;\n }", "title": "" }, { "docid": "678d320292bea2d523aecbac5efc5d26", "score": "0.623039", "text": "@Override\n public void addVertex(@NonNull final Vertex vertex) {\n if (isGraphContainVertices(vertex)) {\n throw new IllegalArgumentException(VERTEX_ALREADY_EXISTS_MASSAGE);\n }\n super.getVertexes()\n .add(vertex);\n }", "title": "" }, { "docid": "12ed8f1b47bf73f332055e87a8b73db9", "score": "0.62073714", "text": "void addVertex(final Vertex vertex) {\r\n final Set<Edge> edges = vertexMap.get(vertex); // get existing edges for given vertex\r\n\r\n if (CollectionUtils.isEmpty(edges)) { // no edges for given vertex yet\r\n vertexMap.put(vertex, vertex.getEdges()); // Empty Set\r\n } else {\r\n throw new IllegalStateException(\"Trying to add Vertex after Edges are added. Wrong workflow.\");\r\n }\r\n }", "title": "" }, { "docid": "b6727a026a0ca582e1994b1a415d5d82", "score": "0.62031466", "text": "public void addEdge(V from, V to);", "title": "" }, { "docid": "6ae1c7f510a86d18989f7b2a70b2a3b2", "score": "0.6199134", "text": "public void addEdge(Edge newEdge) {\r\n\t\ttrimEdgeProperties(newEdge);\r\n\t\t\r\n\t\tint v1 = newEdge.getV1();\r\n\t\tint v2 = newEdge.getV2();\r\n\t\t\r\n\t\t// adds the new edge to the adjacencies matrix\r\n\t\tadjacencies[v1][v2] = true;\r\n\t\tadjacencies[v2][v1] = true;\r\n\r\n\t\t// calculates the new distance between the two nodes:\r\n\t\tupdateShortestPath(v1, v2,0, newEdge);\t\t\r\n\t\t\r\n\t\t/* \r\n\t\t * adds the new edge to the edges list so that edges\r\n\t\t * properties can be accessed\r\n\t\t */\r\n\t\t//edges.addElement(newEdge);\r\n\t\tEdge mirrorEdge = new Edge(v2,v1,newEdge.getProperties());\r\n\t\tedgesMatrix[v1][v2] = newEdge;\r\n\t\tedgesMatrix[mirrorEdge.getV1()][mirrorEdge.getV2()] = mirrorEdge;\r\n\t}", "title": "" }, { "docid": "f9deb5994808447489f5fc5c1e92e61c", "score": "0.6192754", "text": "public void addEdge(int fromVertex, int toVertex, int weight);", "title": "" }, { "docid": "bac8dc30ab51a0cba65c9c3b319aa94b", "score": "0.61782783", "text": "public boolean addEdge(T element1, T element2);", "title": "" }, { "docid": "39987522f05d69503ce68b61324d7f1a", "score": "0.6149798", "text": "public abstract void addEdge(String a, String b);", "title": "" }, { "docid": "c6a97904ce3a5eed7e7a6a1844a3fd16", "score": "0.6148881", "text": "public Edge add(Vertex from,\n Vertex to) {\n if (masterVert.contains(from)\n && masterVert.contains(to)) {\n if (isDirected()) {\n Edge protoE = new Edge(from, to, null);\n masterEdge.add(protoE);\n from.partner(to);\n to.predpartner(from);\n return protoE;\n } else {\n Edge protoE = new Edge(from, to, null);\n Edge protoE2 = new Edge(to, from, null);\n masterEdge.add(protoE);\n masterEdge.add(protoE2);\n from.partner(to);\n to.partner(from);\n return protoE;\n }\n } else {\n System.err.println(\"vertex doesn't exist\"\n + \" to create edge.\");\n return null;\n }\n }", "title": "" }, { "docid": "e7c8129db2b1c7e51ad5345eec7858b2", "score": "0.6137459", "text": "@Override\n public E addVertex(E vertex) {\n if(vertex == null)\n \t{\n \t\treturn null;// The added vertex cannot be null\n \t}\n int index = getIndex(vertex);\n if(index >= 0)\n {\n \treturn null;\n }\n\t\tif(items >= dictionary.length)\n {\n \t@SuppressWarnings(\"unchecked\")// warnings in this case are chekced\n\t\tE[] temp = (E[]) new Object[dictionary.length*2];\n \tint[][] temp1 = new int[edges.length*2][edges.length*2];// expansion of matrix\n \tfor(int i=0; i<dictionary.length; i++)\n \t{\n \t\ttemp[i] = dictionary[i];\n \t\tfor(int j=0; j < edges[i].length; j++)\n \t\t{\n \t\t\ttemp1[i][j] = edges[i][j];//Iterate throught the adjacency matrix to refill the edges\n \t\t}\t\t\t\t\n \t}\n \tedges = temp1;\n \tdictionary = temp;\n }\n dictionary[items] = vertex;\n items++;\n return vertex;\n }", "title": "" }, { "docid": "f6b78751c22920a0fa2964ce18345fa2", "score": "0.6132434", "text": "private void addEdge(E newEdge, V vertexItConnectsTo){\r\n\t\t\tEdgeEntry<E,V> newEntry = new EdgeEntry<E,V>(newEdge, vertexItConnectsTo);\r\n\t\t\tedges.add(newEntry);\r\n\t\t\treturn;\r\n\t\t}", "title": "" }, { "docid": "f4ce24c92e909f2d452ecd50440b8d0b", "score": "0.6121207", "text": "public void addEdge(final int vertexOne, final int vertexTwo) {\n if (vertexOne == vertexTwo) {\n return;\n }\n if (!hasEdge(vertexOne, vertexTwo)) {\n edges++;\n }\n adjacent[vertexOne].add(vertexTwo);\n adjacent[vertexTwo].add(vertexOne);\n }", "title": "" }, { "docid": "e248d6df2373835e6689b9b48cc4f32a", "score": "0.6120308", "text": "public void addEdge(String v, String e) {\n // if the vertex does not currently exist as a vertex add it\n if (!adjacencyList.containsKey(v)) {\n addVertex(v);\n }\n // if the edge does not currenrtly exist as a vertex add it and it\n // it will point back to the vertex we are trying to add\n // This below make sure we create a undirected graph.\n if (!adjacencyList.containsKey(e)) {\n addEdge(e, v);\n }\n // add the edge to the vertex\n adjacencyList.get(v).add(e);\n }", "title": "" }, { "docid": "dc549e6aae7a51f666e3a46dbd581779", "score": "0.61167055", "text": "private void addEdge(int a, int b) {\n vertices[a].add(b);\n }", "title": "" }, { "docid": "24d0aa7e63975f55de1211d0d37fcfe7", "score": "0.61044765", "text": "abstract public AbstractGraph addEdge(int v, int w);", "title": "" }, { "docid": "a66138da3864727b8d26de7cb3299daf", "score": "0.6100409", "text": "public void addEdge(int v1, int v2)\n\t{\n\t\tGraphMatrix[v1][v2] = 1;\n\t}", "title": "" }, { "docid": "4c1320939aff7f8447b3ad7e9b9845fe", "score": "0.60894495", "text": "public boolean addEdge(E src, E dest,int peso){\n if(src == null | dest ==null) return false;\n int is = vertexes.indexOf(src);\n int id = vertexes.indexOf(dest);\n if(is==-1 | id== -1)return false;\n matrix[is][id]=peso;\n if(!directed){\n matrix[id][is] = peso;\n }\n return true;\n }", "title": "" }, { "docid": "c346da4214d8ec0189ad40be18902284", "score": "0.60801375", "text": "public void addEdge(Node a, Node b)\n {\n if (a == b)\n return;\n if (!a.edges.contains(b))\n a.edges.add(b);\n if (!b.edges.contains(a))\n b.edges.add(a);\n\n }", "title": "" }, { "docid": "45a78b4a2acb24a9321b1337103b3175", "score": "0.6071494", "text": "public void addEdge(V source, V target) {\n \tif (!contains(source) || !vertices.contains(target))\n \t\tthrow new IllegalArgumentException(\"Insert an edge between non-existence vertices\");\n \tneighbors.get(source).put(target, 1.0);\n \tneighbors.get(target).put(source, 1.0);\n }", "title": "" }, { "docid": "b2fdbb8e4314a72eb95895fb05aa147b", "score": "0.6051503", "text": "public void add(NetworkConnection edge) {\r\n\r\n\t\tif (cnt == heap.length) {\t\t\t// Resizes the array if there is no room available\r\n\t\t\theap = resizeHeap(heap);\r\n\t\t}\r\n\r\n\t\theap[cnt] = edge;\t\t\t\t// Adds the edge to the next available leaf position\r\n\t\tfloatEdge();\t\t\t\t\t\t\t// Floats the edge (if necessary) in the heap\r\n\t\tcnt++;\t\t\t\t\t\t\t// Increments the index of the next available leaf position\r\n\t}", "title": "" }, { "docid": "71d5fc8285eeb3523a5e5224197fd8a1", "score": "0.60500574", "text": "public boolean addEdge(String edge)\n {\n for(int i = 0;(i<EdgeSens.size());i++)\n {\n //get integer value of relation between two strings\n int compare = EdgeSens.get(i).compareTo(edge);\n //Look for the edge sensitivity is already in the list\n if(compare==0)\n {\n //return false for same\n return false;\n }\n //if it goes in the index of the current edge\n else if(compare > 0)\n {\n EdgeSens.add(i,edge);\n return true;\n }\n else\n {\n EdgeSens.add(edge);\n return true;\n }\n \n }\n //catch false\n return false; \n }", "title": "" }, { "docid": "cc8c9b4037529db4d45b767789290754", "score": "0.60491925", "text": "protected void addEdge(String aLine)\n {\n // ceck for too many edges\n if(loadEdgeCounter > totalEdges)\n {\n throw new AlgorithmRunException(\"Already loaded too many edges, problem defines more edges than specified in problem definition.\");\n }\n \n String [] elements = aLine.split(\" \");\n if(elements.length != 3)\n {\n throw new AlgorithmRunException(\"Edge line does match expected format, too many elements: \" + aLine);\n }\n // parse elements\n int n1 = Integer.parseInt(elements[1]);\n int n2 = Integer.parseInt(elements[2]);\n // store the edge\n edgeList[loadEdgeCounter++] = new int[]{n1, n2};\n }", "title": "" }, { "docid": "6012537ce1dba2ca7ccd78f800f141b4", "score": "0.60219854", "text": "public void addEdge(final Edge ed) {\n int one = ed.either();\n int two = ed.other(one);\n adjacent[one].add(ed);\n adjacent[two].add(ed);\n edges += 1;\n }", "title": "" }, { "docid": "b74360845080497f9f99f3d69fa13951", "score": "0.60133225", "text": "public boolean addEdge(E e, V v1, V v2, EdgeType edgeType) {\r\n\t\t//NOTE: Only undirected edges allowed\r\n\t\t\r\n\t\tif(edgeType == EdgeType.DIRECTED) {\r\n\t\t\tthrow new IllegalArgumentException();\r\n\t\t}\r\n\t\t\r\n\t\treturn addEdge(e, v1, v2);\r\n\t}", "title": "" }, { "docid": "8160629febcee68cc0f74c014a1c991b", "score": "0.601238", "text": "public void addEdge(int v1, int v2) {\r\n\t\t// Add edge in matrix\r\n\t\tthis.adjMatrix[v1][v2] = 1;\r\n\t\tthis.adjMatrix[v2][v1] = 1;\r\n\r\n\t\t// Add edge in list\r\n\t\tthis.adjList[v1].add(v2);\r\n\t\tthis.adjList[v2].add(v1);\r\n\t}", "title": "" }, { "docid": "867e75faf0c0da5f022bc3c15dd1cb40", "score": "0.60081095", "text": "public void addEdge(Vertex v1, Vertex v2) {\n Set<Vertex> v1set = adjacencyList.get(v1);\n v1set.add(v2);\n adjacencyList.put(v1, v1set);\n\n Set<Vertex> v2set = adjacencyList.get(v2);\n v2set.add(v1);\n adjacencyList.put(v2, v2set);\n\n }", "title": "" }, { "docid": "90381acca9af45cbbe7508800a085a97", "score": "0.6002004", "text": "public void addEdge(int a, int b) {\r\n\t\tvertices[a].add(b);\r\n\t\tvertices[b].add(a);\r\n\t}", "title": "" }, { "docid": "b366d8d24f384d0e14d9afdda2908380", "score": "0.60005754", "text": "public void addEdge(int vertex1, int vertex2, int cost) throws ValidatorException{\n this.validator.existVertexGood(vertex1, this.graph.getVertices());\n this.validator.existVertexGood(vertex2, this.graph.getVertices());\n this.validator.existEdgeDictionaryBad(vertex1,vertex2, this.graph.getDictionaryIn(),\"In\");\n this.validator.existEdgeDictionaryBad(vertex1,vertex2, this.graph.getDictionaryOut(),\"Out\");\n this.validator.existEdgeDcostBad(vertex1,vertex2,cost, this.graph.getDictionaryCost());\n this.graph.addEdge(vertex1,vertex2,cost);\n this.numberOfEdges++;\n }", "title": "" }, { "docid": "5a4f0c7d466f3d3b40a93c63f7eb4a8b", "score": "0.59703964", "text": "public void addEdge(int vertex1, int vertex2) {\n\t\tList<Integer> vertex1Adjacents = adjacencyList.get(vertex1);\n\n\t\t// if vertex1 has not any adjacents, create new LinkedList\n\t\tif (vertex1Adjacents == null) {\n\t\t\tvertex1Adjacents = new LinkedList<>();\n\t\t}\n\n\t\t// add vertex2 to adjacents of vertex1\n\t\tvertex1Adjacents.add(vertex2);\n\t}", "title": "" }, { "docid": "5dac6ebec52dff152f8551cb9525a5ae", "score": "0.5967851", "text": "public void addEdge(int v1, int v2) {\n\t\tedges[v1][v2] = 1;\n\t}", "title": "" }, { "docid": "6c1d3a2ba301d309464a4da56081ce65", "score": "0.59638053", "text": "NEdge addEdge(NPoint p1, NPoint p2) {\n\t\tif (p1 == p2) {\r\n\t\t\tSystem.out.println(\"NNetwork:addEdge - both points idetical - cannot add\");\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\tNEdge ne = new NEdge(p1, p2, this);\r\n\t\tedges.add(ne);\r\n\t\treturn ne;\r\n\t}", "title": "" }, { "docid": "fdbb431cf06d9de5f3e974e6c0a3cb0d", "score": "0.5952852", "text": "public void addEdge(int id1, int id2){\n\t\t\toutEdges.add(new Edge(Tasks[id1], Tasks[id2]));\n\t\t}", "title": "" }, { "docid": "004aecad785e9c83dc7e8c7a9ec954b5", "score": "0.59524477", "text": "@Override\r\n public boolean addVertex(V vertex) {\r\n if (!vertices.contains(vertex)) {\r\n vertices.add(vertex);\r\n neighbors.add(new ArrayList<Edge>());\r\n return true;\r\n }\r\n else {\r\n return false;\r\n }\r\n }", "title": "" }, { "docid": "eb4480a1819fd9b8f9a7d6fd324e35ee", "score": "0.5945693", "text": "private void addEdge(Node node) {\n\t\tboolean hasHighway = false;\n\t\tboolean hasName = false;\n\t\tboolean isOneWay = false;\n\t\tString streetName = \"\";\n\n\t\t// array list to store vertices listed in edge\n\t\tArrayList<String> vertexList = new ArrayList<String>();\n\n\t\t// get children nodes of edge, iterate through each one\n\t\tNodeList children = node.getChildNodes();\n\t\tfor (int i = 0; i < children.getLength(); i++) {\n\t\t\tNode childNode = children.item(i);\n\n\t\t\t// ignore non-element node types\n\t\t\tif (childNode.getNodeType() == Node.ELEMENT_NODE) {\n\t\t\t\tElement childElement = (Element) childNode;\n\n\t\t\t\t// check for highway, name, oneway, and yes tags\n\t\t\t\tif (childNode.getNodeName().equals(\"tag\")) {\n\t\t\t\t\tif (childElement.getAttribute(\"k\").equals(\"highway\")) {\n\t\t\t\t\t\thasHighway = true;\n\t\t\t\t\t}\n\t\t\t\t\tif (childElement.getAttribute(\"k\").equals(\"name\")) {\n\t\t\t\t\t\thasName = true;\n\t\t\t\t\t\tstreetName = childElement.getAttribute(\"v\");\n\t\t\t\t\t}\n\t\t\t\t\tif (childElement.getAttribute(\"k\").equals(\"oneway\")) {\n\t\t\t\t\t\tif (childElement.getAttribute(\"v\").equals(\"yes\")) {\n\t\t\t\t\t\t\tisOneWay = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// get vertices for edges, add to list\n\t\t\t\tif (childNode.getNodeName().equals(\"nd\")) {\n\t\t\t\t\tvertexList.add(childElement.getAttribute(\"ref\"));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// if node is a highway and has name, add edges to graph using vertex list\n\t\tif (hasHighway && hasName) {\n\n\t\t\t// iterate through vertex list, make new edge for each pair\n\t\t\tfor (int i = 0; i < vertexList.size() - 1; i++) {\n\n\t\t\t\t// calculate distance, store as EdgeData\n\t\t\t\tdouble distance = calculateDistance(vertexList.get(i), vertexList.get(i + 1));\n\t\t\t\tEdgeData data = new EdgeData(streetName, distance);\n\n\t\t\t\t// add to graph, if it is not oneway, also add edge in opposite direction\n\t\t\t\tgraph.addEdge(vertexList.get(i), vertexList.get(i + 1), data);\n\t\t\t\tif (!isOneWay) {\n\t\t\t\t\tgraph.addEdge(vertexList.get(i + 1), vertexList.get(i), data);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "9f1fb70c48ae3d004622f6b97e15da72", "score": "0.59436876", "text": "@Override\n\t\t\tpublic void addingEdge(SessionEvent event) {\n assertTrue(event.getType() == SessionEvent.ADDING_EDGE);\n assertNull(event.getParent());\n setEvent1Received(true);\n }", "title": "" }, { "docid": "9c0c7ce806f3f9954e7e8eec10aef865", "score": "0.59292114", "text": "public void addEdge(int v1, int v2){\r\n if(!adjList[v1].contains(v2))\r\n adjList[v1].add(v2);\r\n // similarly add v2 to v1 adjlist\r\n if(!adjList[v2].contains(v1))\r\n adjList[v2].add(v1);\r\n }", "title": "" }, { "docid": "8c1459ed018275286e415bd88bb1d1bb", "score": "0.5898516", "text": "public void AddEdge(int src,int dest,boolean isBi)\n {\n E[src].add(dest);\n M[src][dest] = 1;\n if(isBi) {E[dest].add(src);M[dest][src]=1;}\n }", "title": "" }, { "docid": "5bb46b4f10c60f8e5415a5d42c415695", "score": "0.58872044", "text": "public void addEdge(int vertOne, int vertTwo) \n { \n DFSList[vertOne].add(vertTwo); //Add vertTwo to vertOne’s point list. \n }", "title": "" }, { "docid": "cc376acfc7f0f64c1142e4e42f0b9f5a", "score": "0.5869933", "text": "public void addEdge(V first, V second) {\n\t\taddEdge(new Edge(indexOf(first), indexOf(second)));\n\t}", "title": "" }, { "docid": "d9ba46faa1617ba8c3c077efc53dfdc9", "score": "0.58697915", "text": "abstract public AbstractGraph addEdge(int v, int w, double weight);", "title": "" }, { "docid": "13303acdf7abdbb2bf5514560433d950", "score": "0.58591807", "text": "public void addEdge(int from, int to);", "title": "" }, { "docid": "479f57ec852ad0f8728d471c75e45e78", "score": "0.5855684", "text": "@Override\n public boolean addEdge(Node node1, Node node2, int weight) {\n\t\n\taddNode(node1);\n\taddNode(node2);\n\t\n\tboolean addEdgeSuccess = (\n\t\taddEdgeFromTo(node1, node2, weight) &&\n\t\taddEdgeFromTo(node2, node1, weight));\n\t\n\tif (addEdgeSuccess) numEdges++;\n\t\n\treturn addEdgeSuccess;\n }", "title": "" }, { "docid": "6d811af766a3ab5bf54c0630eb33ae4d", "score": "0.584995", "text": "public void addEdge(String sourceLabel, String targetLabel, T edgeData)\n {\n EdgeData<T> edge = new EdgeData<T>(sourceLabel, targetLabel, edgeData, State.States.UNPROCESSED);\n edgeDataList.put(sourceLabel + \",\" + targetLabel, edge);\n ArrayList<String> vertexNeighbors = neighbors.get(sourceLabel);\n if(!vertexNeighbors.contains(targetLabel))\n {\n vertexNeighbors.add(targetLabel);\n }\n if(!isDirected)\n {\n EdgeData<T> returnEdge = new EdgeData<T>(targetLabel, sourceLabel, edgeData, State.States.UNPROCESSED);\n edgeDataList.put(targetLabel + \",\" + sourceLabel, returnEdge);\n vertexNeighbors = neighbors.get(targetLabel);\n if(!vertexNeighbors.contains(sourceLabel))\n {\n vertexNeighbors.add(sourceLabel);\n }\n edgeCount++;\n }\n orderedEdges.add(edge);\n orderedEdges.sort(comparator);\n edgeCount++;\n }", "title": "" }, { "docid": "13649ce722072adc1b4d36b1755a47df", "score": "0.584549", "text": "void addEdge(int i, int j){\t\t\n\t\t// if empty, add both\n\t\tif(root == null){\n\t\t\tVertex v1 = new Vertex(i);\n\t\t\tVertex v2 = new Vertex(j);\t\t\n\t\t\tthis.addNode(v1);\n\t\t\tv1.succ.addNode(v2);\n\t\t\tthis.addNode(v2);\n\t\t// otherwise, check if i is in the list\n\t\t// and add j to its successors if it\n\t\t// wasn't there already;\n\t\t// if i was not in the list, add it\n\t\t}else{\n\t\t\t// iterate thru list:\n\t\t\tNodeB<Vertex> n = root; // iterator\n\t\t\twhile (n.next!=null & n.val.id != i){\n\t\t\t\tn = n.next;\n\t\t\t}\n\t\t\t// vertex i might be in the list\n\t\t\tif (n.val.id == i){\n\t\t\t\t// check if j is already in the adjacency list\n\t\t\t\tVertex v2 = findOrMake(j);\t\n\t\t\t\t// add an element to the list only if\n\t\t\t\t// it is \"fresh\"\n\t\t\t\taddNodeB(n.val.succ,v2);\t\t\t\t\t\t\n\t\t\t\tthis.addNode(v2);\n\t\t\t// if not, we add it\t\n\t\t\t}else{\n\t\t\t\t// create vertex\n\t\t\t\tVertex v1 = new Vertex(i);\n\t\t\t\t// check if j is already in the adjacency list\n\t\t\t\tVertex v2 = findOrMake(j);\t\n\t\t\t\t// again, add avoiding repetitions\n\t\t\t\taddNodeB(v1.succ,v2);\n\t\t\t\tthis.addNode(v1);\n\t\t\t\tthis.addNode(v2);\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "e7212359c1e2fed5378fd0b786b05a9b", "score": "0.5839853", "text": "@Override public Vertex addVertex(final String name) {\r\n if (directedGraph.findVertexByName(name)) {\r\n throw new NotUniqueVertexException(\"Found existing vertex. Vertex should have unique name: \" + name);\r\n }\r\n final Vertex vertex = Vertex.of(name);\r\n directedGraph.addVertex(vertex);\r\n return vertex;\r\n }", "title": "" }, { "docid": "e7048b2184e9f83f5178729d9e7d43bd", "score": "0.5835687", "text": "public void addEdge(int i, int j) {\n\t\tadjMatrix[i][j] = true;\n\t\tadjMatrix[j][i] = true;\n\t}", "title": "" }, { "docid": "600bb99c06906ab2cc768037e8cdbb11", "score": "0.5832542", "text": "public void addEdge(Vertex v1, Vertex.Direction dir, Vertex v2) {\n if (vertices.contains(v1) == false) {\n vertices.add(v1);\n }\n if (vertices.contains(v2) == false) {\n vertices.add(v2);\n }\n \n v1.connect(v2, dir);\n v2.connect(v1, Vertex.opposite(dir));\n }", "title": "" }, { "docid": "55bd582e50d1df4fa51cd2987f444190", "score": "0.5826511", "text": "public boolean addEdge(T source, T destination, E label) {\n\t\tcheckRep();\n\t\tif(source == null || destination == null || label == null ||\n\t\t !graph.containsKey(source) || !graph.containsKey(destination)) {\n\t\t\tthrow new IllegalArgumentException(\"Source, Destination and Label cannot be null.\"\n\t\t\t\t\t\t\t\t\t\t\t+ \"Source and Destination need to be contained in the graph!\");\n\t\t}\n\t\t\n\t\tHashSet<Edge<T,E>> allEdges = graph.get(source);\n\t\tEdge<T,E> edge = new Edge<T,E>(destination, label);\n\t\tif(!(allEdges.contains(edge))) {\n\t\t\tallEdges.add(edge);\n\t\t\tcheckRep();\n\t\t\treturn true;\n\t\t}\n\t\tcheckRep();\n\t\treturn false;\n\t}", "title": "" }, { "docid": "b5bf6789446391921cf3d0e7c13871d6", "score": "0.5814091", "text": "public boolean addEdge(T from, T to, double weight) {\n\t\tif (!containsVertex(from) || !containsVertex(to)) {\n\t\t\tthrow new RuntimeException(\"Vertex does not exist\");\n\t\t}\n\t\tVertex<T> v1 = getVertex(from);\n\t\tVertex<T> v2 = getVertex(to);\n\t\treturn v1.addEdge(v2, weight);\n\t}", "title": "" }, { "docid": "fde42e8ae6c206ae263a39268bb5dbb1", "score": "0.58013827", "text": "public void addEdge(int i, int j) {\n\tedges.add(new Edge(i, j));\n }", "title": "" }, { "docid": "efef4ec8f6393897f539a00a63ee41dc", "score": "0.5795276", "text": "public void addEdge(T v, T u) {\r\n if (!this.adjacencyList.containsKey(v) || !this.adjacencyList.containsKey(u)) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n this.adjacencyList.get(v).add(u);\r\n this.adjacencyList.get(u).add(v);\r\n }", "title": "" }, { "docid": "1e06999ab3760f212673fb2607143705", "score": "0.5788278", "text": "public void addEdge(@NonNull Node target) {\n if(mEdges.containsKey(target)) {\n return;\n }\n\n mEdges.put(target, new Edge(this, target));\n }", "title": "" }, { "docid": "4a4b7c5074031ca309b86011bff624b3", "score": "0.5783954", "text": "public Edge add(Vertex from,\n Vertex to,\n ELabel label) {\n if (masterVert.contains(from)\n && masterVert.contains(to)) {\n if (isDirected()) {\n Edge protoE = new Edge(from, to, label);\n masterEdge.add(protoE);\n from.partner(to);\n to.predpartner(from);\n return protoE;\n } else {\n Edge protoE = new Edge(from, to, label);\n Edge protoE2 = new Edge(to, from, label);\n masterEdge.add(protoE);\n masterEdge.add(protoE2);\n from.partner(to);\n to.partner(from);\n return protoE;\n }\n } else {\n System.err.println(\"vertex doesn't exist\"\n + \" to create edge.\");\n return null;\n }\n }", "title": "" }, { "docid": "834a955f0aed83993f5d172ffd7eb050", "score": "0.57734954", "text": "public void addEdge(int fromID, int toID, W weight) throws InvalidParameterException{\n Node<W> from = nodeMap.get(fromID);\n Node<W> to = nodeMap.get(toID);\n\n if(!from.hasOutgoingEdge(to) && !to.hasOutgoingEdge(from)){\n from.addEdge(to,weight);\n if(hasCycles()){\n from.getEdges().remove(to);\n throw new InvalidParameterException(\"Invalid Edge; creates a cycle\");\n }\n }\n }", "title": "" }, { "docid": "62e0a0984083b5f0ac972215b4371705", "score": "0.5756022", "text": "public void addEdge(int source, int destination) {\n this.adjacencyList[source].add(destination);\n this.adjacencyList[destination].add(source);\n }", "title": "" }, { "docid": "4de982b4bde598412c706393d27c12ee", "score": "0.57255995", "text": "public void addEdge(T v1, T v2) {\n\t\tif(graph.get(v1) == null) graph.put(v1, new Node<>(v1));\n\t\tif(graph.get(v2) == null) graph.put(v2, new Node<>(v2));\n\n\t\tgraph.get(v1).adjNodes.add( graph.get(v2) );\n\t}", "title": "" }, { "docid": "cbed04d46ebe26912fc51d3b9a5c9817", "score": "0.570528", "text": "boolean insertEdge(V vOrig, V vDest, E edge, double eWeight);", "title": "" }, { "docid": "a5e50789ea4810ca6709eef8071d40cd", "score": "0.57047033", "text": "public void addEdge(int source, int destination) {\n nrEdges++;\n graph.get(source).add(destination);\n graph.get(destination).add(source);\n }", "title": "" } ]
a4cb5b6398abcb2a8cab2583eb6b8a3b
Executes the create request.
[ { "docid": "d034a2204f196ed300732642adac75b6", "score": "0.0", "text": "ManagedGrafana create(Context context);", "title": "" } ]
[ { "docid": "4510b34de32370e31a77fa77f223bcdd", "score": "0.695312", "text": "@Override\n @Test\n public void create() {\n \n // Perform setup, such as initializing the type of service request\n // (e.g. CREATE, DELETE), its valid and expected status codes, and\n // its associated HTTP method name (e.g. POST, DELETE).\n setupCreate();\n \n // Submit the request to the service and store the response.\n String identifier = createIdentifier();\n \n MultipartOutput multipart = createAcquisitionInstance(identifier);\n ClientResponse<Response> res = client.create(multipart);\n \n int statusCode = res.getStatus();\n \n // Check the status code of the response: does it match\n // the expected response(s)?\n //\n // Specifically:\n // Does it fall within the set of valid status codes?\n // Does it exactly match the expected status code?\n verbose(\"create: status = \" + statusCode);\n Assert.assertTrue(REQUEST_TYPE.isValidStatusCode(statusCode),\n invalidStatusCodeMessage(REQUEST_TYPE, statusCode));\n Assert.assertEquals(statusCode, EXPECTED_STATUS_CODE);\n \n // Store the ID returned from this create operation for\n // additional tests below.\n knownResourceId = extractId(res);\n verbose(\"create: knownResourceId=\" + knownResourceId);\n }", "title": "" }, { "docid": "d1227cdd7cb34f3ef7768998725ade1c", "score": "0.63788897", "text": "public void create(){}", "title": "" }, { "docid": "d1227cdd7cb34f3ef7768998725ade1c", "score": "0.63788897", "text": "public void create(){}", "title": "" }, { "docid": "9a8ec520830f05ff9dcb3c175f9bd4f9", "score": "0.62708765", "text": "public void create() {\n\t}", "title": "" }, { "docid": "d42281a6cc4e6d98424c474250b3339c", "score": "0.62601703", "text": "public static void createStock(){\n\n //connect to your operation\n WebTarget operationTarget = serviceTarget.path(\"product\");\n //build the request: MediaType.TEXT_PLAIN\n Builder requestBuilder = operationTarget.request().accept(MediaType.TEXT_PLAIN);\n Form form = new Form();\n form.param(\"id\",\"5\");\n form.param(\"name\", \"Pepperini Sauce\");\n Entity<Form> entity = Entity.entity(form, MediaType.APPLICATION_FORM_URLENCODED);\n\n Response response = requestBuilder.post(entity); /** creating / posting entity*/\n\n if (response.getStatus() == Response.Status.NO_CONTENT.getStatusCode()) {\n System.out.println(\"CREATE SUCCESSFUL!!\");\n } else {\n System.out.println(\"CREATE UNSUCCESSFUL!!! (\" + response + \")\");\n }\n }", "title": "" }, { "docid": "20be7031dac2b1a7894f040ff1ab6a16", "score": "0.62041605", "text": "DatabaseCreateResponse create(String serverName, DatabaseCreateParameters parameters) throws ParserConfigurationException, SAXException, TransformerException, IOException, ServiceException;", "title": "" }, { "docid": "5a674daa4ba5fb7c4b443aafa6d8781d", "score": "0.6178812", "text": "@RequestMapping(value =\"/execute\" , method = RequestMethod.POST , consumes = {MediaType.APPLICATION_JSON_VALUE} ,\n\t\t\tproduces = {MediaType.APPLICATION_JSON_VALUE, MediaType.APPLICATION_XML_VALUE})\n\tResponseEntity<?> createIdAndTask( @RequestBody ExecObject newExecObject) {\n\t\tUUID uniqueID = UUID.randomUUID();\n//\t\tbind id with the command \n\t\texecutionService.addTask(uniqueID , newExecObject);\n\t\tlogger.info(\"id \"+uniqueID+\" created for \"+newExecObject.getcmd()+\" command with\"+newExecObject.options()+\" options.\");\n//\t\tcreation of directory for this command\n\t\tnew File(generalPath+uniqueID).mkdir();\n\t return new ResponseEntity<>(\n\t \t \"{\\\"id\\\" : \\\"\" +uniqueID.toString()+\"\\\"}\", \n\t \t HttpStatus.OK);\n\t}", "title": "" }, { "docid": "8c031711a073dba60ec2184212767e85", "score": "0.6171038", "text": "public Create(String req) {\r\n\t\tsuper();\r\n\t\tthis.req = req;\r\n\t}", "title": "" }, { "docid": "44a9e469d7c6aac630fcb4f6395a49c5", "score": "0.60654324", "text": "@PreAuthorize(\"@requestAuthorize.canCreate(#request)\")\n\t@RequestMapping(value = \"/create\", method = RequestMethod.POST)\n\tpublic ResponseEntity<?> create(@RequestBody Request request) throws JsonParseException, JsonMappingException, IOException {\n\t\tRequest result = requestService.create(request);\n\t\t// return.\n\t\treturn new ResponseEntity<Integer>(result.getId(), HttpStatus.OK);\n\t}", "title": "" }, { "docid": "01a8f88654736aa15dd9601b9f88aa7d", "score": "0.6017047", "text": "public void create();", "title": "" }, { "docid": "890f524ac0fd96bab0d6c450a04652b6", "score": "0.6011686", "text": "void create(String title, String description, boolean completed, String Notes, String company);", "title": "" }, { "docid": "bd8d93b24c744c652bc063c64c400c33", "score": "0.579889", "text": "@Override\n public Future<ServerCreateResponse> createAsync(final ServerCreateParameters parameters) {\n return this.getClient().getExecutorService().submit(new Callable<ServerCreateResponse>() { \n @Override\n public ServerCreateResponse call() throws Exception {\n return create(parameters);\n }\n });\n }", "title": "" }, { "docid": "f4f0957da33dc55c42dae35dd2a278db", "score": "0.57953525", "text": "Future<DatabaseCreateResponse> createAsync(String serverName, DatabaseCreateParameters parameters);", "title": "" }, { "docid": "21bd528ebe837444d58b3b9fa594271f", "score": "0.57928425", "text": "public String doCreate() {\n newCompte.setCne(newEtudiant.getCne());\n newCompte.setEmail(newEtudiant.getEmail());\n newCompte.setActif(Boolean.FALSE);\n newCompte.setGroupe(\"candidat\");\n\n //Creation Du compte\n String password = newCompte.getPassword();\n String hashedPassword = Hash.hash(password);\n System.out.println(\"the hashed password is \" + hashedPassword);\n\n newCompte.setPassword(hashedPassword);\n compteService.create(newCompte);\n System.out.println(\"Compte creer\");\n //Generation de la cle d'identification et envoie de mail d'activation\n final String key = UUID.randomUUID().toString();\n System.out.println(\"La cle generer est \" + key);\n SendEmail(newEtudiant.getEmail(), key, newEtudiant.getCne(), password);\n //Definition de l'activation\n activation.setActivationKey(key);\n activation.setCompte(newCompte);\n activationService.create(activation);\n //Creation du répertoire spécifique a l'étudiant\n String candidatFolder = newEtudiant.getCin();\n folder = Paths.get(\"C:\\\\inscmast\\\\candidats\\\\\" + candidatFolder + \"\");\n try {\n Files.createDirectories(folder);\n } catch (IOException ex) {\n ex.printStackTrace();\n }\n //Creation de l'etudiant\n etudiantService.create(newEtudiant);\n return \"waitValidation?faces-redirect=true\";\n }", "title": "" }, { "docid": "98caafdfff581351cda1d7d21afde2c1", "score": "0.57876784", "text": "@Override\n\t\t\tpublic void create() {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "7c48007a1316612dcaac5ba0a547f373", "score": "0.5762591", "text": "void addCreateRequest(ObjectRecord object) throws ResourceException;", "title": "" }, { "docid": "fbd7039d8a6fd12277f6d58e8c066a70", "score": "0.573845", "text": "@Override\n\tpublic ActionResponse create (ActionData oData) \n\t{\n\t\tm_oLogger.info (\"create\");\n\t\tm_oLogger.debug (\"create - oData [IN] : \" +oData);\n\t\tActionResponse oActionResponse = new ActionResponse ();\n\t\ttry \n\t\t{\n\t\t\toActionResponse.m_bSuccess = oData.saveObject ();\n\t\t\tif(oActionResponse.m_bSuccess)\n\t\t\t{\n\t\t\t\toActionResponse.m_arrActionData.add (oData);\n\t\t\t\tUtils.createActivityLog(\"ActionDataProcessor::create\", oData);\n\t\t\t}\n\t\t\t\n\t\t} \n\t\tcatch (Exception oException) \n\t\t{\n\t\t\tm_oLogger.error (\"create - oException : \" +oException);\n\t\t}\n\t\treturn oActionResponse;\n\t}", "title": "" }, { "docid": "84c08e366401d4610813b219aa78b2af", "score": "0.57211703", "text": "LocalDDESampleDownload create(String catalog, String firstName, String lastName, String emailAddress, int countryId, int contactMe) throws CreateException;", "title": "" }, { "docid": "382fab03583ffbeca00af86df986a7e8", "score": "0.57110167", "text": "@Override\n protected void post( Request request, Response response )\n throws IOException\n {\n File target = new File( baseDir, request.getPath() );\n\n if ( !target.getParentFile().exists() )\n {\n if ( !target.getParentFile().mkdirs() )\n {\n response.setStatus( UNAUTHORIZED );\n return;\n }\n }\n\n if ( !target.exists() )\n {\n if ( !target.createNewFile() )\n {\n response.setStatus( UNAUTHORIZED );\n return;\n }\n }\n\n FileChannel channel = new FileOutputStream( target, true ).getChannel();\n\n try\n {\n channel.write( utf8ByteBuffer( \"client: %s - parameters: { time=%s; objId=%s }%n\",\n request.getClientHost(),\n request.getParameters().getFirstValue( \"time\" ),\n request.getParameters().getFirstValue( \"objId\" ) ) );\n response.setStatus( CREATED );\n response.addHeader( LOCATION, request.getPath() );\n }\n finally\n {\n closeQuietly( channel );\n }\n }", "title": "" }, { "docid": "f128ac74d173deac37eb18b61c72262c", "score": "0.56823057", "text": "private void createProduct(Message<JsonObject> message) {\n\tJsonObject requestBody = message.body();\n\tProductRequest productRequest = new ProductRequest();\n\n\tproductRequest.setProductName(requestBody.getString(\"productName\")); \n\tproductRequest.setProductType(requestBody.getString(\"productType\"));\n\tproductRequest.setCost(new Integer(requestBody.getString(\"cost\"))); \n\t\n\n //Executes the blocking code in the handler - this is to insert data in DB\n\tvertx.<Product>executeBlocking(future->future.complete(productService.save(productRequest)), result-> {\n\t\tif(result.succeeded()) {\n\t\t\tJsonObject response = new JsonObject();\n\t\t\tresponse.put(\"id\", result.result().getId());\n\t\t\tresponse.put(\"_link\", new JsonObject().put(\"self\", new JsonObject().put(\"href\",\"/product\"+result.result().getId())));\n\t\t\tmessage.reply(response);\n\t\t\t\n\t\t} else {\n\t\t\tmessage.reply(result.cause().toString());\n\t\t}\n\t});\n}", "title": "" }, { "docid": "fc21d1d3f8fb92f5d4d58fa7c489ede5", "score": "0.5652696", "text": "private void create(RoutingContext routingContext) {\n HttpServerRequest request = routingContext.request();\n String query_params = request.query();\n String itemType = query_params.split(\"=\")[1];\n\n\t\t\tString skip_validation = \"false\";\n\t\t\tif (request.headers().contains(\"skip_validation\")) {\n\t\t\t\tskip_validation = request.getHeader(\"skip_validation\").toLowerCase();\n\t\t\t}\n\n\t\t\tif (decodeCertificate(routingContext)) {\n\t\t\t\tif (authenticateRequest(routingContext, \"user.list\")) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tJsonObject request_body = routingContext.getBodyAsJson();\n\t\t\t\t\t\trequest_body.put(\"onboardedBy\", onboarder);\n\t\t\t\t\t\trequest_body.put(\"role\", onboardedBy);\n\t\t\t\t\t\trequest_body.put(\"item-type\", itemType);\n\t\t\t\t\t\trequest_body.put(\"__createdBy\",onboardedBy);\n\t\t\t\t\t\tDeliveryOptions validator_action = new DeliveryOptions();\n\t\t\t\t\t\tvalidator_action.addHeader(\"action\", \"validate-item\");\n\n\t\t\t\t\t\tif (skip_validation != null) {\n\t\t\t\t\t\t\tif (!(\"true\".equals(skip_validation)) && !(\"false\".equals(skip_validation))) {\n\t\t\t\t\t\t\t\thandle400(routingContext, \"Invalid value: skip_validation is not a boolean\");\n\t\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tvalidator_action.addHeader(\"skip_validation\", skip_validation);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tvertx.eventBus().send(\"validator\", request_body, validator_action, validator_reply -> {\n\t\t\t\t\t\t\tif (validator_reply.succeeded()) {\n\t\t\t\t\t\t\t\tif (itemTypes.contains(itemType)) {\n\t\t\t\t\t\t\t\t\tdatabaseHandler(\"create\", routingContext, request_body);\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\thandle400(routingContext, \"No such item-type exists\");\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\thandle500(routingContext);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t});\n\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\thandle400(routingContext, \"Invalid item: Not a Json Object\");\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\thandle401(routingContext, \"Unauthorised\");\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\thandle400(routingContext, \"Certificate 'authenticaton' error\");\n\t\t\t}\n\n\t }", "title": "" }, { "docid": "1af03a17491cbdfb7469a95bfb112d89", "score": "0.5649085", "text": "@Override\n public Response CreateUser(Request request) throws IOException {\n // Prepare the conn and response variable\n UsersConn conn = null;\n Response response = new Response();\n\n try {\n // Prepare the database connection.\n conn = Connections.getInstance().acquireUsers();\n\n // Create a user handled by RPC message.\n User user = new User.Builder(request.getUser().getId()).setName(request.getUser().getName().toString())\n .setSurname(request.getUser().getSurname().toString())\n .setEmail(request.getUser().getEmail().toString())\n .setPassword(request.getUser().getPassword().toString())\n .setTelephone(request.getUser().getTelephone().toString())\n .setBirthday(DatatypeConverter.parseDateTime(request.getUser().getBirthday().toString()).getTime())\n .setCountry(Enum.valueOf(Country.class, request.getUser().getCountry().toString()))\n .setAddress(request.getUser().getAddress().toString())\n .setAddressInformation(request.getUser().getAddressInformation().toString()).build();\n\n // Set the user in the database.\n long id = conn.create(user);\n\n // Set the ok status code\n response.put(\"status\", Status.OK.getStatusCode());\n response.put(\"object_id\", id);\n } catch (NoSuchElementException e) {\n response.put(\"status\", Status.NOT_FOUND.getStatusCode());\n response.put(\"message\", e.getMessage());\n } catch (Exception e) {\n response.put(\"status\", Status.INTERNAL_SERVER_ERROR.getStatusCode());\n response.put(\"message\", e.getMessage());\n } finally {\n // Release the connection with the database.\n Connections.getInstance().releaseUsers(conn);\n }\n\n // Return the response.\n return response;\n }", "title": "" }, { "docid": "d04355b7ad17e966b9f1c072e9560857", "score": "0.56341857", "text": "@Override\n\tpublic void create() {\n\t\t\n\t}", "title": "" }, { "docid": "2b28c6ae863b23864af2732d93a76400", "score": "0.5621367", "text": "protected String create(String name) {\n String uri = given().body(\"{ \\\"name\\\" : \\\"\" + name + \"\\\"}\")\n .contentType(\"application/json\").expect().statusCode(201)\n .when().post(getResourceUri() + \".json\").getHeader(\"Location\");\n return idFromUrl(uri);\n }", "title": "" }, { "docid": "aabd8322198752312581d89a3059f204", "score": "0.5607097", "text": "@Override\n \tpublic void create() {\n\n \t}", "title": "" }, { "docid": "133a57b5c82b29ca8ffb6d3556e3e695", "score": "0.56064457", "text": "@Override\n public CreateResponse create(UnicefRequest unicefRequest) {\n\n if (!unicefRequest.hasDetail()) {\n _log.warn(\"detail of a request has to be provided!\");\n throw new RestLiServiceException(HttpStatus.S_400_BAD_REQUEST, \"missing details in the request\");\n }\n\n Integer unicefRequestId = dataService.addUnicefRequest(unicefRequest);\n if (unicefRequestId == null) {\n _log.error(\"failed to add unicefRequest: \" + unicefRequest);\n throw new RestLiServiceException(HttpStatus.S_500_INTERNAL_SERVER_ERROR, \"failed to add unicefRequest\");\n }\n\n return new CreateResponse(unicefRequestId);\n }", "title": "" }, { "docid": "a30388185e65b0e94a607e0278a90075", "score": "0.55978674", "text": "void create(T o) throws EntidadNoGrabadaException;", "title": "" }, { "docid": "1aae1866d234a290df1c558980a87726", "score": "0.55928165", "text": "public void startCreate() {\n\t\tSystem.out.println();\n\t\tSystem.out.println(\"Enter the date in format \" + DateTimeHelper.DATE_FORMAT);\n\t\tString dateStr = this.getInputString();\n\t\tSystem.out.println(\"Enter the name of the public holiday\");\n\t\tString name = this.getInputString();\n\t\t\n\t\tthis.runCreate(dateStr, name);\n\t}", "title": "" }, { "docid": "17aa0172ab985c902f7e017c6793a4d8", "score": "0.55861753", "text": "public create() {\n init();\n }", "title": "" }, { "docid": "a21d03eef5d7602fa6cb6eacc38ffed5", "score": "0.55840003", "text": "@Test\n public void createTaskTest() throws ApiException {\n String userId = null;\n Task body = null;\n api.createTask(userId, body);\n\n // TODO: test validations\n }", "title": "" }, { "docid": "b4a29c51224f823649bc37b63939668f", "score": "0.55752957", "text": "@Override\n\tpublic ProvisionInstanceResponse executeRequest() throws MorpheusApiRequestException {\n\t\tCloseableHttpClient client = null;\n\t\ttry {\n\t\t\tURIBuilder uriBuilder = new URIBuilder(endpointUrl);\n\t\t\turiBuilder.setPath(\"/api/instances\");\n\t\t\tHttpPost request = new HttpPost(uriBuilder.build());\n\t\t\tthis.applyHeaders(request);\n\t\t\tHttpClientBuilder clientBuilder = HttpClients.custom();\n\t\t\tclientBuilder.setDefaultRequestConfig(this.getRequestConfig());\n\t\t\tclient = clientBuilder.build();\n\t\t\trequest.addHeader(\"Content-Type\",\"application/json\");\n\t\t\trequest.setEntity(new StringEntity(generateRequestBody()));\n\t\t\tCloseableHttpResponse response = client.execute(request);\n\t\t\treturn ProvisionInstanceResponse.createFromStream(response.getEntity().getContent());\n\t\t} catch(Exception ex) {\n\t\t\t//Throw custom exception\n\t\t\tthrow new MorpheusApiRequestException(\"Error Performing API Request for provisioning an instance\", ex);\n\t\t} finally {\n\t\t\tif(client != null) {\n\t\t\t\ttry {\n\t\t\t\t\tclient.close();\n\t\t\t\t} catch(IOException io) {\n\t\t\t\t\t//ignore\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "f6e83bd79acc5fb2e67471a39af5b3ca", "score": "0.5561417", "text": "@Override\n public ServerCreateResponse create(ServerCreateParameters parameters) throws ParserConfigurationException, SAXException, TransformerException, IOException, ServiceException {\n // Validate\n if (parameters == null) {\n throw new NullPointerException(\"parameters\");\n }\n if (parameters.getAdministratorPassword() == null) {\n throw new NullPointerException(\"parameters.AdministratorPassword\");\n }\n if (parameters.getAdministratorUserName() == null) {\n throw new NullPointerException(\"parameters.AdministratorUserName\");\n }\n if (parameters.getLocation() == null) {\n throw new NullPointerException(\"parameters.Location\");\n }\n \n // Tracing\n boolean shouldTrace = CloudTracing.getIsEnabled();\n String invocationId = null;\n if (shouldTrace) {\n invocationId = Long.toString(CloudTracing.getNextInvocationId());\n HashMap<String, Object> tracingParameters = new HashMap<String, Object>();\n tracingParameters.put(\"parameters\", parameters);\n CloudTracing.enter(invocationId, this, \"createAsync\", tracingParameters);\n }\n \n // Construct URL\n String url = \"/\" + (this.getClient().getCredentials().getSubscriptionId() != null ? this.getClient().getCredentials().getSubscriptionId().trim() : \"\") + \"/services/sqlservers/servers\";\n String baseUrl = this.getClient().getBaseUri().toString();\n // Trim '/' character from the end of baseUrl and beginning of url.\n if (baseUrl.charAt(baseUrl.length() - 1) == '/') {\n baseUrl = baseUrl.substring(0, (baseUrl.length() - 1) + 0);\n }\n if (url.charAt(0) == '/') {\n url = url.substring(1);\n }\n url = baseUrl + \"/\" + url;\n url = url.replace(\" \", \"%20\");\n \n // Create HTTP transport objects\n HttpPost httpRequest = new HttpPost(url);\n \n // Set Headers\n httpRequest.setHeader(\"Content-Type\", \"application/xml\");\n httpRequest.setHeader(\"x-ms-version\", \"2012-03-01\");\n \n // Serialize Request\n String requestContent = null;\n DocumentBuilderFactory documentBuilderFactory = DocumentBuilderFactory.newInstance();\n DocumentBuilder documentBuilder = documentBuilderFactory.newDocumentBuilder();\n Document requestDoc = documentBuilder.newDocument();\n \n Element serverElement = requestDoc.createElementNS(\"http://schemas.microsoft.com/sqlazure/2010/12/\", \"Server\");\n requestDoc.appendChild(serverElement);\n \n Element administratorLoginElement = requestDoc.createElementNS(\"http://schemas.microsoft.com/sqlazure/2010/12/\", \"AdministratorLogin\");\n administratorLoginElement.appendChild(requestDoc.createTextNode(parameters.getAdministratorUserName()));\n serverElement.appendChild(administratorLoginElement);\n \n Element administratorLoginPasswordElement = requestDoc.createElementNS(\"http://schemas.microsoft.com/sqlazure/2010/12/\", \"AdministratorLoginPassword\");\n administratorLoginPasswordElement.appendChild(requestDoc.createTextNode(parameters.getAdministratorPassword()));\n serverElement.appendChild(administratorLoginPasswordElement);\n \n Element locationElement = requestDoc.createElementNS(\"http://schemas.microsoft.com/sqlazure/2010/12/\", \"Location\");\n locationElement.appendChild(requestDoc.createTextNode(parameters.getLocation()));\n serverElement.appendChild(locationElement);\n \n if (parameters.getVersion() != null) {\n Element versionElement = requestDoc.createElementNS(\"http://schemas.microsoft.com/sqlazure/2010/12/\", \"Version\");\n versionElement.appendChild(requestDoc.createTextNode(parameters.getVersion()));\n serverElement.appendChild(versionElement);\n }\n \n DOMSource domSource = new DOMSource(requestDoc);\n StringWriter stringWriter = new StringWriter();\n StreamResult streamResult = new StreamResult(stringWriter);\n TransformerFactory transformerFactory = TransformerFactory.newInstance();\n Transformer transformer = transformerFactory.newTransformer();\n transformer.transform(domSource, streamResult);\n requestContent = stringWriter.toString();\n StringEntity entity = new StringEntity(requestContent);\n httpRequest.setEntity(entity);\n httpRequest.setHeader(\"Content-Type\", \"application/xml\");\n \n // Send Request\n HttpResponse httpResponse = null;\n try {\n if (shouldTrace) {\n CloudTracing.sendRequest(invocationId, httpRequest);\n }\n httpResponse = this.getClient().getHttpClient().execute(httpRequest);\n if (shouldTrace) {\n CloudTracing.receiveResponse(invocationId, httpResponse);\n }\n int statusCode = httpResponse.getStatusLine().getStatusCode();\n if (statusCode != HttpStatus.SC_CREATED) {\n ServiceException ex = ServiceException.createFromXml(httpRequest, requestContent, httpResponse, httpResponse.getEntity());\n if (shouldTrace) {\n CloudTracing.error(invocationId, ex);\n }\n throw ex;\n }\n \n // Create Result\n ServerCreateResponse result = null;\n // Deserialize Response\n InputStream responseContent = httpResponse.getEntity().getContent();\n result = new ServerCreateResponse();\n DocumentBuilderFactory documentBuilderFactory2 = DocumentBuilderFactory.newInstance();\n documentBuilderFactory2.setNamespaceAware(true);\n DocumentBuilder documentBuilder2 = documentBuilderFactory2.newDocumentBuilder();\n Document responseDoc = documentBuilder2.parse(new BOMInputStream(responseContent));\n \n Element serverNameElement = XmlUtility.getElementByTagNameNS(responseDoc, \"http://schemas.microsoft.com/sqlazure/2010/12/\", \"ServerName\");\n if (serverNameElement != null) {\n Attr fullyQualifiedDomainNameAttribute = serverNameElement.getAttributeNodeNS(\"http://schemas.microsoft.com/sqlazure/2010/12/\", \"FullyQualifiedDomainName\");\n if (fullyQualifiedDomainNameAttribute != null) {\n result.setFullyQualifiedDomainName(fullyQualifiedDomainNameAttribute.getValue());\n }\n \n result.setServerName(serverNameElement.getTextContent());\n }\n \n result.setStatusCode(statusCode);\n if (httpResponse.getHeaders(\"x-ms-request-id\").length > 0) {\n result.setRequestId(httpResponse.getFirstHeader(\"x-ms-request-id\").getValue());\n }\n \n if (shouldTrace) {\n CloudTracing.exit(invocationId, result);\n }\n return result;\n } finally {\n if (httpResponse != null && httpResponse.getEntity() != null) {\n httpResponse.getEntity().getContent().close();\n }\n }\n }", "title": "" }, { "docid": "f7c6918268054cb0a7b5bbcff5b352c8", "score": "0.55445105", "text": "@Override\r\n public void create(Object entidad) {\n }", "title": "" }, { "docid": "ad4b33b291ab0212b7734ca1ebfec4d7", "score": "0.5535894", "text": "@PostConstruct\n public void create() {\n buildNewUser(\"john\", \"john@doe.org\", \"John\", \"Doe\", \"123\", \"admin\");\n buildNewUser(\"jane\", \"jane@doe.org\", \"Jane\", \"Doe\", \"123\", \"simple\");\n }", "title": "" }, { "docid": "fc21cbf66e444cbb58b2c87ca7eb5e94", "score": "0.55217993", "text": "@POST\r\n\t@Produces(\"application/json\")\r\n\t@RolesAllowed(\"authenticated\")\r\n\t@Path(\"virtualServer\")\r\n\tpublic Response create(ExecutionFactoryCreateRequest r) throws Exception {\r\n\r\n\t\tif (r.location == null) {\r\n\t\t\tr.location = URI.create(\"http://ec2.amazonaws.com\");\r\n\t\t\tlog.warning(\"Assuming default location of \" + r.location);\r\n\t\t}\r\n\r\n\t\tList<VirtualServer> result = null;\r\n\t\tif (r.idempotencyKey != null && r.idempotencyKey != \"\") {\r\n\t\t\tresult = getByIdempotencyKey(r.idempotencyKey);\r\n\t\t}\r\n\r\n\t\tif (result != null && result.size() > 0) {\r\n\t\t\tlog.severe(\"Found existing entries for idempotency key \"\r\n\t\t\t\t\t+ r.idempotencyKey);\r\n\t\t} else {\r\n\t\t\tif (\"zombie\".equals(r.name) || \"debug\".equals(r.name)) {\r\n\t\t\t\tr.name = r.name.toUpperCase();\r\n\t\t\t}\r\n\t\t\tresult = createVM(r.name, r.description, r.location, r.parameters,\r\n\t\t\t\t\tr.notification, r.accessKey, r.encryptedSecret, r.owner,\r\n\t\t\t\t\tr.idempotencyKey);\r\n\t\t}\r\n\t\tList<URI> vmRefs = new ArrayList<URI>(result.size());\r\n\r\n\t\tlog.info(\"Created \" + result.size() + \" VMs\");\r\n\t\tfor (VirtualServer v : result) {\r\n\t\t\tlog.info(\"VM is \" + v.getUri());\r\n\t\t\tvmRefs.add(v.getUri());\r\n\t\t}\r\n\t\treturn Response.created(result.get(0).getUri())\r\n\t\t\t\t.entity(new CreateVirtualServerResponse(vmRefs)).build();\r\n\t}", "title": "" }, { "docid": "fc1b30c3ea1528f8c50221083f2f365d", "score": "0.5513172", "text": "public void create() throws IOException;", "title": "" }, { "docid": "5089c54a770680d1ac9efb51a0e7ccc4", "score": "0.551115", "text": "abstract public void create();", "title": "" }, { "docid": "6926357ad841029a24d3738bab1f5bac", "score": "0.5509198", "text": "private void commandCreate() {\n\t\tUtilitiesProgramming.printDebugMessage(\"\", new Exception());\n\t\tif(1 < args.length) {\n\t\t\tString stage = args[1];\n\t\t\tDataEventCreate.nameStage = stage;\n\t\t\tDataEventCreate.player = player;\n\t\t\tList<String> list = new ArrayList<String>();\n\t\t\tlist.add(\"npc\");\n\t\t\tlist.add(Commands.CREATE.toString());\n\t\t\tlist.add(DEFAULT_NAME_EMPTY_TALKER);\n\t\t\tif(2 < args.length) {\n\t\t\t\tUtilitiesProgramming.printDebugMessage(\"\", new Exception());\n\t\t\t\tlist.add(\"--type\");\n\t\t\t\tlist.add(args[2]);\n\t\t\t}\n\t\t\tString commandCreate = UtilitiesGeneral.joinStrings(list, \" \");\n\t\t\tEvents.flagEventCreate = EventCreate.REGISTER_EMPTY;//NPCCreateEvent flag. The flag will be initial\n\t\t\tBukkit.getServer().dispatchCommand(player, commandCreate);//NPCCreateEvent will be triggered\n\t\t}\n\t}", "title": "" }, { "docid": "b11257cdb956482e67a6412560ca50f1", "score": "0.5508047", "text": "private void startCreation()\n {\n // check if in the middle of an exiting operation \n if (status == CREATING || status == UPDATING)\n {\n // if so cancel the existing operation\n cancelCreation();\n }\n \n // set the status to the current operation\n status = CREATING;\n \n // update the finalise button text\n btnCreate.setText(\"Create\");\n \n // clear the controls\n resetNodeEntryControls();\n \n // enabled controls\n cmbNodeType.setEnabled(true);\n txtName.setEnabled(true);\n txtDescription.setEnabled(true);\n cmbMediaType.setEnabled(true);\n \n // if Media Source combo list includes Assets remove it and then enable it\n if (cmbMediaSource.getItemAt(0).equals(MediaSource.ASSETS))\n {\n cmbMediaSource.removeItemAt(0);\n }\n cmbMediaSource.setEnabled(true);\n \n // set the default option\n cmbMediaSource.setSelectedItem(MediaSource.SUBCONTRACTOR);\n \n // update buttons\n setNewControls(false);\n btnCancel.setEnabled(true);\n \n // set focus\n txtName.requestFocusInWindow();\n }", "title": "" }, { "docid": "558fce6853ab72d96a070b2d5b4a2346", "score": "0.55030084", "text": "public void create(T model){\n SingleRecordConfiguration configuration = setupCreateConfiguration(new SingleRecordConfiguration<T>(), model);\n final CreateCallback createCallback = CreateCallback.createFromConfiguration(configuration, eventProcessor, httpReport);\n configuration.performAsynchronousNetworkCall(model, createCallback);\n }", "title": "" }, { "docid": "2c455167e90d21ce29f5952cf1e3420a", "score": "0.54993767", "text": "@Path(\"create\")\n @Consumes({MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML})\n @Produces({MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML})\n \n public void createUser(){\n \n userOpsBizImpl.create();\n }", "title": "" }, { "docid": "6535b4822c002855fda91abadcdb7426", "score": "0.54946464", "text": "private void run() throws ApiException {\n //Create transient document.\n TransientDocumentResponse transientDocumentResponse = TransientDocumentUtils.createTransientDocument(Constants.REQUEST_PATH,\n Constants.INPUT_FILE_NAME);\n\n //Get the id of the transient document.\n String transientDocumentId = transientDocumentResponse.getTransientDocumentId();\n\n //List containing email ids of recipients.\n List<String> recipientSetEmailList = new ArrayList<String>();\n recipientSetEmailList.add(ApiUtils.getUserEmail(Constants.USER_EMAIL_PREFIX,Constants.USER_EMAIL_DOMAIN));\n\n //Create agreement using the transient document.\n AgreementCreationResponse agreementCreationResponse = AgreementUtils.createAgreement(recipientSetEmailList,\n transientDocumentId,\n AgreementUtils.DocumentIdentifierType.TRANSIENT_DOCUMENT_ID,\n ApiUtils.getAgreementName(Constants.AGREEMENT_NAME));\n\n //Get agreement info using the agreement id.\n AgreementInfo agreementInfo = AgreementUtils.getAgreementInfo(agreementCreationResponse.getAgreementId());\n\n //Display agreement details\n ApiUtils.getLogger().info(\"Agreement ID = \" + agreementInfo.getAgreementId());\n ApiUtils.getLogger().info(\"Agreement Name = \" + agreementInfo.getName());\n ApiUtils.getLogger().info(\"Agreement Status = \" + agreementInfo.getStatus());\n }", "title": "" }, { "docid": "cb8a3c8347d99f850a65f5b2e3b8462f", "score": "0.5485819", "text": "public void create(long id, String name);", "title": "" }, { "docid": "5126e0ed1bc98b99a382fe3142a3c59a", "score": "0.5484241", "text": "@Override\n\tpublic int createRequest(Request request) {\n\t\t\n\t\tint ret = 0;\n\t\t\n\t\tString sql = String.format(\"insert into \\\"%s\\\"(\\\"%s\\\", \\\"%s\\\", \\\"%s\\\", \\\"%s\\\", \\\"%s\\\", \\\"%s\\\", \\\"%s\\\", \\\"%s\\\", \\\"%s\\\")\"\n\t\t\t\t\t\t\t\t + \"values(?, ?, ?, ?, ?, ?, ?, ?, ?)\",\n\t\t\t\t\t\t\t\t \tTABLE_NAME, COLUMN_2, COLUMN_3, COLUMN_4, COLUMN_5, COLUMN_6, COLUMN_7, COLUMN_8, COLUMN_9, COLUMN_10);\n\t\t\n\t\tConnection conn = ConnectionUtil.getConnection();\n\t\t\n\t\ttry(PreparedStatement statement = conn.prepareStatement(sql)){\n\t\t\t\n\t\t\tstatement.setString(1, request.getApplicant());\n\t\t\tstatement.setInt(2, request.getStatus());\n\t\t\tstatement.setInt(3, request.getTicketLevel());\n\t\t\tstatement.setDouble(4, request.getAmount());\n\t\t\tstatement.setString(5, request.getDescription());\n\t\t\tstatement.setString(6, request.getReference());\n\t\t\tstatement.setTimestamp(7, request.getSubmissionDate());\n\t\t\tstatement.setTimestamp(8, request.getResolutionDate());\n\t\t\tstatement.setString(9, request.getResolvedBy());\n\t\t\t\n\t\t\tret = statement.executeUpdate();\n\t\t\t\n\t\t\tconn.close();\n\t\t}\n\t\t\n\t\tcatch(SQLException e) {\n\t\t\t\n\t\t\tLoggerUtil.log.error(e.getMessage());\n\t\t}\n\t\t\n\t\treturn ret;\n\t}", "title": "" }, { "docid": "db00c3c019a53a576ef046136998d8eb", "score": "0.5459514", "text": "public void createUser(User request, StreamObserver<CreateUserResponsePDB> response) ;", "title": "" }, { "docid": "6eb33de80732cc0bd5f6b7db2239a0a1", "score": "0.54566497", "text": "public void createNewAction() {\n NewAction newAction = new NewAction();\n newAction.setName(this.specAction.getAction());\n newAction.setServiceName(this.specAction.getService());\n\n NewReaction newReaction = new NewReaction();\n newReaction.setName(this.specReaction.getAction());\n newReaction.setServiceName(this.specReaction.getService());\n\n JsonArray parametersAction = new JsonArray();\n JsonArray parametersReaction = new JsonArray();\n\n List<Param> paramsAction = this.specAction.getParams();\n List<Param> paramsReaction = this.specReaction.getParams();\n for (int i = 0; i < paramsAction.size(); i++) {\n Param currParam = paramsAction.get(i);\n JsonObject newParameter = new JsonObject();\n newParameter.addProperty(\"id\", i);\n newParameter.addProperty(\"name\", currParam.getName());\n newParameter.addProperty(\"type\", currParam.getType());\n try {\n if (currParam.getType().equals(\"Long\"))\n newParameter.addProperty(\"value\", Long.parseLong(this.textInputEditTextListActions.get(i).getText().toString()));\n else if (currParam.getType().equals(\"Integer\"))\n newParameter.addProperty(\"value\", Integer.parseInt(this.textInputEditTextListActions.get(i).getText().toString()));\n else if (currParam.getType().equals(\"Double\"))\n newParameter.addProperty(\"value\", Double.parseDouble(this.textInputEditTextListActions.get(i).getText().toString()));\n else if (currParam.getType().equals(\"Date\")) {\n SimpleDateFormat format = new SimpleDateFormat(\"dd/M/yyyy\", Locale.FRANCE);\n format.setLenient(false);\n Date date = format.parse(this.textInputEditTextListActions.get(i).getText().toString());\n String newFormat = \"yyyy-MM-dd'T'hh:mm:ssZ\";\n format.applyPattern(newFormat);\n newParameter.addProperty(\"value\", format.format(date));\n }\n else if (currParam.getType().equals(\"Privacy\")) {\n String privacyValue = this.textInputEditTextListActions.get(i).getText().toString();\n if(privacyValue.equals(\"private\") || privacyValue.equals(\"public\") || privacyValue.equals(\"unlisted\"))\n newParameter.addProperty(\"value\", privacyValue);\n else\n throw new Exception(\"Invalid value for Privacy field\");\n }\n else if (currParam.getType().equals(\"String\")) {\n newParameter.addProperty(\"value\", this.textInputEditTextListActions.get(i).getText().toString());\n }\n else\n throw new Exception(\"Unknown data type\");\n } catch (Exception e) {\n if (currParam.getName().equals(\"privacy\"))\n Toast.makeText(getBaseContext(), \"Privacy field must be private, public or unlisted\", Toast.LENGTH_SHORT ).show();\n else\n Toast.makeText(getBaseContext(), \"Invalid value for field \" + currParam.getName(), Toast.LENGTH_SHORT ).show();\n return;\n }\n parametersAction.add(newParameter);\n }\n newAction.setParameters(parametersAction);\n\n for (int i = 0; i < paramsReaction.size(); i++) {\n Param currParam = paramsReaction.get(i);\n JsonObject newParameter = new JsonObject();\n newParameter.addProperty(\"id\", i);\n newParameter.addProperty(\"name\", currParam.getName());\n newParameter.addProperty(\"type\", currParam.getType());\n Log.d(\"TYPE\", currParam.getType());\n try {\n if (currParam.getType().equals(\"Long\"))\n newParameter.addProperty(\"value\", Long.parseLong(this.textInputEditTextListReactions.get(i).getText().toString()));\n else if (currParam.getType().equals(\"Integer\"))\n newParameter.addProperty(\"value\", Integer.parseInt(this.textInputEditTextListReactions.get(i).getText().toString()));\n else if (currParam.getType().equals(\"Double\"))\n newParameter.addProperty(\"value\", Double.parseDouble(this.textInputEditTextListReactions.get(i).getText().toString()));\n else if (currParam.getType().equals(\"Date\")) {\n SimpleDateFormat format = new SimpleDateFormat(\"dd/M/yyyy\", Locale.FRANCE);\n format.setLenient(false);\n Date date = format.parse(this.textInputEditTextListReactions.get(i).getText().toString());\n newParameter.addProperty(\"value\", this.textInputEditTextListReactions.get(i).getText().toString());\n }\n else if (currParam.getType().equals(\"Privacy\")) {\n String privacyValue = this.textInputEditTextListReactions.get(i).getText().toString();\n if(privacyValue.equals(\"private\") || privacyValue.equals(\"public\") || privacyValue.equals(\"unlisted\"))\n newParameter.addProperty(\"value\", privacyValue);\n else\n throw new Exception(\"Invalid value for Privacy field\");\n }\n else if (currParam.getType().equals(\"String\")) {\n newParameter.addProperty(\"value\", this.textInputEditTextListReactions.get(i).getText().toString());\n }\n else\n throw new Exception(\"Unknown data type\");\n } catch (Exception e) {\n if (currParam.getName().equals(\"privacy\"))\n Toast.makeText(getBaseContext(), \"Privacy field must be private, public or unlisted\", Toast.LENGTH_SHORT ).show();\n else\n Toast.makeText(getBaseContext(), \"Invalid value for field \" + currParam.getName(), Toast.LENGTH_SHORT ).show();\n return;\n }\n parametersReaction.add(newParameter);\n }\n newReaction.setParameters(parametersReaction);\n newAction.setReaction(newReaction);\n APIArea area = client.create(APIArea.class);\n Call<Void> request = area.CreateAction(newAction);\n\n request.enqueue(new Callback<Void>() {\n @Override\n public void onResponse(Call<Void> call, Response<Void> response) {\n if (response.isSuccessful()) {\n Toast.makeText(getBaseContext(), R.string.area_success, Toast.LENGTH_SHORT ).show();\n } else {\n Toast.makeText(getBaseContext(), R.string.area_error_request, Toast.LENGTH_SHORT ).show();\n }\n }\n\n @Override\n public void onFailure(Call<Void> call, Throwable t) {\n Toast.makeText(getBaseContext(), R.string.area_error_make_request, Toast.LENGTH_SHORT ).show();\n }\n });\n }", "title": "" }, { "docid": "83b4fc932ea08f950e503a3088430b0d", "score": "0.5445665", "text": "public abstract void create() throws Throwable;", "title": "" }, { "docid": "e2f8282f5a9a8ed84f784989acdb49b9", "score": "0.5415969", "text": "@Override\n @Transactional\n public ResponseBarangMasuk create( RequestBarangMasuk request ){\n\n ModelBarangMasuk entity = toEntity( request );\n\n repositoryBarang.addByBarangMasuk(\n request.getQtt_Barang_Masuk(),\n request.getId_Barang()\n );\n\n ModelBarangMasuk saveEntity = repository.save( entity );\n\n return toResponseBarangMasukSimple( saveEntity );\n }", "title": "" }, { "docid": "3d87028a600d55d0cd9b428e1c429e4c", "score": "0.5399683", "text": "public abstract void postCreate();", "title": "" }, { "docid": "8a9410a84fc1958cbcc6a500241817c4", "score": "0.5396657", "text": "public ServiceResponse performTransfer(CreateTransferRequest createTransferRequest) {\n\t\ttry {\n\t\t\tfinal Optional<TransferResponse> response=createTransferDBOperation.executeOperation(createTransferRequest, OperationType.Database);\n\t\t\tif(!response.isPresent()) {\n\t\t\t\tlog.error(\"perform-transfer-operation: Something went wrong in completing the request\");\n\t\t\t\tthrow new MoneyTransferException(ErrorType.EA500.getErrorDescription(),ErrorType.EA500.getHttpStatusCode());\n\t\t\t}\n\t\t\treturn serviceResponseGenerator.generateServiceResponse(objectMapper.convertValue(response.get(),JsonNode.class), HttpStatus.OK.getCode());\n\t\t}\n\t\tcatch(MoneyTransferException ex) {\n\t\t\tthrow ex;\n\t\t}\n\t\tcatch(Exception ex) {\n\t\t\tlog.error(\"perform-transfer-operation: Something went wrong: \",ex);\n\t\t\tthrow new MoneyTransferException(ErrorType.EA500.getErrorDescription(),ErrorType.EA500.getHttpStatusCode());\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "02d85f0909220ab0effc9761da2e80d5", "score": "0.5389987", "text": "java.util.concurrent.Future<CreateServiceResult> createServiceAsync(CreateServiceRequest createServiceRequest);", "title": "" }, { "docid": "426fd9cfdb16da51164835b49f8f3f16", "score": "0.53887373", "text": "void create(Employee employee);", "title": "" }, { "docid": "dec16e6a7a5767789341c85e7361cbe0", "score": "0.5380869", "text": "@Override\n\t\tprotected Boolean doInBackground(ArrayList<NameValuePair>... params) {\n\t\t\tAccountManager accountManager = NetworkService.getInstance()\n\t\t\t\t\t.getConnection().getAccountManager();\n\t\t\ttry {\n\t\t\t\tif (accountManager.supportsAccountCreation()) {\n\t\t\t\t\taccountManager.createAccount(\"Test007\", \"Skyfall\");\n\t\t\t\t\tLog.v(TAG, \"Successful account creation\");\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tLog.v(TAG, \"Account Creation is not supported\");\n\t\t\t\t\tLog.v(TAG,\n\t\t\t\t\t\t\t\"Account Instructions: \"\n\t\t\t\t\t\t\t\t\t+ accountManager.getAccountInstructions());\n\n\t\t\t\t}\n\t\t\t} catch (Exception e) {\n\t\t\t\tLog.v(TAG, \"Error in account creation:\"+e.getMessage());\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\treturn null;\n\t\t}", "title": "" }, { "docid": "485699fb6c6fce3c93546a1c36170fa2", "score": "0.53604215", "text": "@RequestMapping(value = \"/chassis\", method = RequestMethod.POST)\r\n\tpublic String createBareMetal(\r\n\t\t\t@RequestHeader(value = ParamConstant.AUTH_TOKEN, defaultValue = \"nownoimpl\") String guiToken,\r\n\t\t\t@RequestBody String createBody,HttpServletResponse response) {\n\t\tTokenOs authToken = null;\r\n\t\ttry {\r\n\t\t\tauthToken = authService.insertCheckGuiAndOsTokenByEncrypt(guiToken);\r\n\t\t} catch (ResourceBusinessException e) {\r\n\t\t\tresponse.setStatus(ParamConstant.NOT_FOUND_RESPONSE_CODE);\r\n\t\t\treturn e.getResponseMessage();\r\n\t\t} catch (Exception e) {\r\n\t\t\tlog.error(\"error\",e);\r\n\t\t\tresponse.setStatus(ParamConstant.NOT_FOUND_RESPONSE_CODE);\r\n\t\t\treturn new ResourceBusinessException(Message.CS_AUTH_ERROR).getResponseMessage();\r\n\t\t}\r\n\r\n\t\ttry {\r\n\t\t\tChassis chassis = chassisService.createChassis(createBody, authToken);\r\n\t\t\tif (null == chassis) {\r\n\t\t\t\tresponse.setStatus(ParamConstant.NOT_FOUND_RESPONSE_CODE);\r\n\t\t\t\tResourceBusinessException exception = new ResourceBusinessException(Message.CS_REQUEST_IS_WRONG,new Locale(authToken.getLocale()));\r\n\t\t\t\tString message = exception.getResponseMessage();\r\n\t\t\t\tthis.operationLogService.addOperationLog(authService.getCloudUserNameByOsToken(authToken),authToken.getTenantid(),\r\n\t\t\t\t\t\tMessage.CREATE_CHASSIS, ParamConstant.CHASSIS, \"\", Message.FAILED_FLAG,\r\n\t\t\t\t\t\tmessage);\r\n\t\t\t\treturn message;\r\n\t\t\t}\r\n\t\t\tthis.operationLogService.addOperationLog(authService.getCloudUserNameByOsToken(authToken),authToken.getTenantid(),\r\n\t\t\t\t\tMessage.CREATE_CHASSIS, ParamConstant.CHASSIS, chassis.getUuid(), Message.SUCCESSED_FLAG, \"\");\r\n\t\t\tJsonHelper<Chassis, String> jsonHelp = new JsonHelper<Chassis, String>();\r\n\t\t\treturn jsonHelp.generateJsonBodyWithEmpty(chassis);\r\n\r\n\t\t} catch (ResourceBusinessException e) {\r\n\t\t\tlog.error(e.getResponseMessage(),e);\r\n\t\t\tresponse.setStatus(e.getStatusCode());\r\n\t\t\tString message = e.getResponseMessage();\r\n\t\t\tthis.operationLogService.addOperationLog(authService.getCloudUserNameByOsToken(authToken),authToken.getTenantid(),\r\n\t\t\t\t\tMessage.CREATE_CHASSIS, ParamConstant.CHASSIS, \"\", Message.FAILED_FLAG, message);\r\n\t\t\treturn message;\r\n\t\t} catch (MyBatisSystemException e) {\r\n\t\t\tresponse.setStatus(ParamConstant.SERVICE_UNAVAILABLE_RESPONSE_CODE);\r\n\t\t\tResourceBusinessException exception = new ResourceBusinessException(Message.CS_DB_CONNECTION_ERROR,new Locale(authToken.getLocale()));\r\n\t\t\tString message = exception.getResponseMessage();\r\n\t\t\tthis.operationLogService.addOperationLog(authService.getCloudUserNameByOsToken(authToken),authToken.getTenantid(),\r\n\t\t\t\t\tMessage.CREATE_CHASSIS, ParamConstant.CHASSIS, \"\", Message.FAILED_FLAG, message);\r\n\t\t\tlog.error(exception.getResponseMessage(),e);\r\n\t\t\treturn message;\r\n\t\t} catch (Exception e) {\r\n\t\t\tresponse.setStatus(ParamConstant.SERVICE_ERROR_RESPONSE_CODE);\r\n\t\t\tResourceBusinessException exception = new ResourceBusinessException(\r\n\t\t\t\t\tMessage.CS_CHASSIS_CREATE_FAILED,new Locale(authToken.getLocale()));\r\n\t\t\tString message = exception.getResponseMessage();\r\n\t\t\tthis.operationLogService.addOperationLog(authService.getCloudUserNameByOsToken(authToken),authToken.getTenantid(),\r\n\t\t\t\t\tMessage.CREATE_CHASSIS, ParamConstant.CHASSIS, \"\", Message.FAILED_FLAG, message);\r\n\t\t\tlog.error(exception.getResponseMessage(),e);\r\n\t\t\treturn message;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "5c0327a5861a794d785b09b8955bf124", "score": "0.53538597", "text": "void create(User user);", "title": "" }, { "docid": "b1c28e42e1e10d56ad6436c974f5a986", "score": "0.53536385", "text": "public void startCreate() {\n\t\tMovieCRUD crud = (MovieCRUD)Cache.getCurrentCRUD();\n\t\tSystem.out.println();\n\t\tSystem.out.println(\"Enter Movie ID: \");\n\t\tint id = this.getInputInteger();\n\t\tif (crud.checkExistenceId(id)) {\n\t\t\tSystem.out.println(\"ID already exists! Please try again!\");\n\t\t\tthis.startCreate();\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tSystem.out.println(\"Enter movie title: \");\n\t\tString title = this.getInputString();\n\t\t\n\t\tSystem.out.println(\"Showing status: \");\n\t\tint noStatusChoice = ShowingStatus.printChoices();\n\t\tint statusChoice = this.getInputChoice(0, noStatusChoice-1);\n\t\t\n\t\tSystem.out.println(\"Movie type: \");\n\t\tint noTypeChoice = MovieType.printChoices();\n\t\tint typeChoice = this.getInputChoice(0, noTypeChoice-1);\n\t\t\n\t\tSystem.out.println(\"Movie rating: \");\n\t\tint noRatingChoice = MovieRating.printChoices();\n\t\tint ratingChoice = this.getInputChoice(0, noRatingChoice-1);\n\t\t\n\t\tSystem.out.println(\"Enter synopsis: \");\n\t\tString synopsis = this.getInputString();\n\t\t\n\t\tSystem.out.println(\"Enter director: \");\n\t\tString director = this.getInputString();\n\t\t\n\t\tSystem.out.println(\"Enter cast: \");\n\t\tArrayList<String> cast = this.getInputListString();\n\t\t\n\t\tSystem.out.println(\"Enter duration in minutes: \");\n\t\tint duration = this.getInputInteger();\n\t\t\n\t\tthis.runCreate(id, title, statusChoice, typeChoice, ratingChoice, synopsis, director, cast, duration);\n\t}", "title": "" }, { "docid": "6d558e4e3531e8a13d490bebd40e263e", "score": "0.5337194", "text": "java.util.concurrent.Future<CreateRuleResult> createRuleAsync(CreateRuleRequest createRuleRequest);", "title": "" }, { "docid": "d0a76f67d6d8f4ddbf76ca56e08fc17a", "score": "0.53314817", "text": "interface WithCreate\n extends DefinitionStages.WithTags,\n DefinitionStages.WithInventoryItemId,\n DefinitionStages.WithUuid,\n DefinitionStages.WithVmmServerId {\n /**\n * Executes the create request.\n *\n * @return the created resource.\n */\n Cloud create();\n\n /**\n * Executes the create request.\n *\n * @param context The context to associate with this operation.\n * @return the created resource.\n */\n Cloud create(Context context);\n }", "title": "" }, { "docid": "88162eecb9d44e1eee4761dadda85bdd", "score": "0.5330426", "text": "Mono<CreateApplicationResponse> create(CreateApplicationRequest request);", "title": "" }, { "docid": "04f1874ba93b45f82cc5bdbbd40554e7", "score": "0.532652", "text": "public void execute() {\n\t\tsetNodeConstraint();\n\t\tsetNodeName();\n\t\t/*\n\t\tNodeEditPart nEP = new NodeEditPart(node);\n\t\tnEP.setParent(parent);\n\t\t*/\n\t\t//System.out.println(\"------------ \\nCreateNodeCommand::Execute\");\n\t\tgraph.addNode(node);\n\t}", "title": "" }, { "docid": "87eb1d2eb64ef15154a0c785c29e3339", "score": "0.53257555", "text": "public void createQuotation() {\n\t\ttry {\n\t\t\n\t\t\tif (null != finishComposite) {\n\t\t\t\tquotationDTO = finishComposite.getBFTDetails();\n\t\t\t}if(quotationDTO != null){\n\n\t\t\t// De-Initialize Finish Composite\n\t\t\tfinishComposite.dispose();\n\t\t\t\t\t\t\n\t\t\t// Call handler method to create quotation\t\t\n\t\t\tquotationDTO.setIs_Approved(1);\n\t\t\thandler.createQuotation(quotationDTO);\n\t\t\t}\n\n\t\t\tAdminComposite.display(\"Quotation Created Successfully\", STATUS_SUCCESS, SUCCESS_FONT_COLOR);\n\n\t\t\t//Disable both buttons\n\t\t\tbtnNext.setEnabled(false);\n\t\t\tbtnPrevious.setEnabled(false);\n\t\t} catch (Exception exception) {\n\t\t\tAdminComposite.display(\"Quotation Creation Failed\", STATUS_SUCCESS, SUCCESS_FONT_COLOR);\n\t\t\texception.printStackTrace();\n\t\t}\n\t}", "title": "" }, { "docid": "e10b47565b997b92f8bda7ed8c0e679c", "score": "0.5321807", "text": "public void create() throws ErrorCodeException {\n document = factory.create(monitor);\n }", "title": "" }, { "docid": "46935e8b35898a578fc2a349c549596f", "score": "0.532018", "text": "private void handleCreateOrder() {\n post(\"/create/:orderId\", (req, res) -> {\n\n String id = req.params(\":orderId\");\n\n // Decode message\n String data = req.body();\n String[] elements = data.split(\"//\");\n String toPhone = elements[0];\n String message = elements[1];\n\n createOrder(id, message);\n order(id, toPhone);\n return \"SUCCESS\";\n });\n }", "title": "" }, { "docid": "b3388859755a0bf8af367275dc9674fc", "score": "0.53110427", "text": "private CreateDomainResponse createResource(\n final CreateDomainRequest createRequest,\n final ProxyClient<SageMakerClient> proxyClient) {\n CreateDomainResponse response = null;\n try {\n response = proxyClient.injectCredentialsAndInvokeV2(\n createRequest, proxyClient.client()::createDomain);\n } catch (final AwsServiceException e) {\n Translator.throwCfnException(Action.CREATE.toString(), ResourceModel.TYPE_NAME, createRequest.domainName(), e);\n }\n\n // Wait 5 seconds for Domain to show up in List and Describe calls.\n try {\n Thread.sleep(5*1000);\n } catch(InterruptedException ignored) {\n }\n\n return response;\n }", "title": "" }, { "docid": "1ae03c76da6d88ce44a4257552e36bbc", "score": "0.5305361", "text": "interface WithCreate\n extends DefinitionStages.WithStorageContainerPath,\n DefinitionStages.WithStorageContainerSasKey,\n DefinitionStages.WithStorageAccountAccessKey,\n DefinitionStages.WithRecurringScans {\n /**\n * Executes the create request.\n *\n * @return the created resource.\n */\n ServerVulnerabilityAssessment create();\n\n /**\n * Executes the create request.\n *\n * @param context The context to associate with this operation.\n * @return the created resource.\n */\n ServerVulnerabilityAssessment create(Context context);\n }", "title": "" }, { "docid": "394fb57a6cb136a997b496ce9aa19793", "score": "0.5303609", "text": "private Account createAccountRecord(Account accountToCreate) {\n return client.target(String.format(\"http://localhost:%d/account\", RULE.getLocalPort()))\n .request()\n .post(Entity.entity(accountToCreate, MediaType.APPLICATION_JSON))\n .readEntity(Account.class);\n }", "title": "" }, { "docid": "31765cdbcfe9a27ce05936f65c943bc9", "score": "0.5290993", "text": "private void createData() throws Exception {\n MockHttpServletRequestBuilder builder = post(\"/order\");\r\n mockMvc.perform(builder);\r\n\r\n //Make sure an Item exists with a price\r\n Item item = new Item(\"Test Item 1\", new BigDecimal(\"1.00\"));\r\n Gson gson = new Gson();\r\n String json = gson.toJson(item);\r\n\r\n builder = post(\"/item\")\r\n .content(json)\r\n .contentType(MediaType.APPLICATION_JSON);\r\n mockMvc.perform(builder);\r\n\r\n //Make sure item is on the order so we can try to pay for it\r\n builder = put(\"/order/1/addItem/1\").contentType(MediaType.APPLICATION_JSON);\r\n mockMvc.perform(builder);\r\n }", "title": "" }, { "docid": "1a63e46982d8118e6dab73d712032f13", "score": "0.5290821", "text": "public void execute() {\n String[] shapeInfoParts = shapeInfo.split(\" \");\n\n if (shapeInfoParts[1].equals(\"RECTANGLE\")){\n Rectangle newRec = new Rectangle(Integer.parseInt(shapeInfoParts[2]),Integer.parseInt(shapeInfoParts[3]));\n shapes.getShapes().add(newRec);\n newRec.CREATE();\n }\n\n if (shapeInfoParts[1].equals(\"CIRCLE\")){\n Circle newCir = new Circle(Integer.parseInt(shapeInfoParts[2]));\n shapes.getShapes().add(newCir);\n newCir.CREATE();\n }\n }", "title": "" }, { "docid": "475b3c0a32c465ed6a6965e421128666", "score": "0.5288084", "text": "public Boolean createUser (){\n checkEmptyLogin();\n NetworkRequest createLogin = this.networkRequest;\n int method = createLogin.getMethod(\"POST\");\n try{\n JSONObject postData = new JSONObject();\n postData.put(\"username\", this.login);\n postData.put(\"pass\", this.password);\n String endpoint = WebsiteInterface.CREATE_USER;\n createLogin.addToRequestQueue(new JsonObjectRequest(\n method,\n endpoint,\n postData,\n new UserVerificationResponse(),\n new ErrorResponse()\n ));\n }catch(JSONException e){\n Log.e(\"usersetup create post\", e.getMessage());\n }\n return checkWebsiteAuth();\n }", "title": "" }, { "docid": "f21bc96c1a8d0c1d7cc5bf69b1ad0e72", "score": "0.52835226", "text": "void createUser(User body);", "title": "" }, { "docid": "fa79ef6d90cb7905a9e62fd6d098bcbf", "score": "0.52813333", "text": "public uk.co.o2.registration.registration.registrationtypes.CreateUserResponse createUser(\n uk.co.o2.registration.registration.registrationtypes.CreateUserRequest createUserRequest)\n throws java.rmi.RemoteException;", "title": "" }, { "docid": "868cce19484e713e908c4e693d3c993e", "score": "0.5281194", "text": "public void create(OrganisationFormData formData) {\n }", "title": "" }, { "docid": "74f2a45f99c02b4d1e9c18fd55087686", "score": "0.52775687", "text": "private void createCampaign() {\n System.out.println(\"#### Creating Campaign ####\");\n\n Campaign c = ObjectifyService.ofy().load().type(Campaign.class).first().now();\n // if campaign does not exist in the database\n if (c == null) {\n Platform iphone = ObjectifyService.ofy().load().type(Platform.class).filter(\"name\", \"iphone\").first().now();\n Platform android = ObjectifyService.ofy().load().type(Platform.class).filter(\"name\", \"android\").first()\n .now();\n\n if (iphone == null) {\n System.out.println(\"iphone does not exist in platform db\");\n System.exit(0);\n }\n if (android == null) {\n System.out.println(\"android does not exist in platform db\");\n System.exit(0);\n }\n\n String name = \"My first campaign\";\n String url = \"http://www.google.com\";\n Boolean active = true;\n Date date = new Date();\n List<Long> p1 = new ArrayList<Long>();\n p1.add(iphone.id);\n p1.add(android.id);\n Campaign campaign = new Campaign(name, url, p1, active, date);\n ObjectifyService.ofy().save().entity(campaign).now();\n }\n }", "title": "" }, { "docid": "cdb4a701a2e1dcc2c91876005eaf58ad", "score": "0.52718204", "text": "@SuppressWarnings(\"unused\")\n\tprivate void createGameRequest() {\n\t\tgameClientStub.sendNewGameRequest();\n\t}", "title": "" }, { "docid": "5c321df0cbd5d0b34b60fbd6e58cc2c2", "score": "0.52569425", "text": "@PostMapping(\"/create\")\n public Object createGame() {\n logger.debug(\"Creating game\");\n return gameService.createGame();\n }", "title": "" }, { "docid": "bf92add79fe0da210ffcfed9c830918f", "score": "0.5252198", "text": "@Override\n\tpublic Orders create() {\n\t\tLOGGER.info(\"Please enter your customer ID\");\n\t\tString customerId = getInput();\n\t\tLOGGER.info(\"Please enter today's date ( YYYY-MM-DD )\");\n\t\tString orderDate = getInput();\n\t\tLOGGER.info(\"Please enter the orders cost(Feature needs implementing properly)\");\n\t\tString orderCost = getInput();\n\t\tLOGGER.info(\"Please enter item ID\");\n\t\tString itemId = getInput();\n\t\t\n\t\tOrders order = ordersService.create(new Orders(customerId, orderDate, orderCost, itemId));\n\t\tLOGGER.info(\"order created\");\n\t\treturn order;\n\t}", "title": "" }, { "docid": "31dcd328d31f62e6e4e0df99d8f26c0d", "score": "0.52478045", "text": "public com.sforce.soap._2006._04.metadata.CreateResponse create(\n\n com.sforce.soap._2006._04.metadata.Create create92,com.sforce.soap._2006._04.metadata.SessionHeader sessionHeader93,com.sforce.soap._2006._04.metadata.CallOptions callOptions94)\n \n\n throws java.rmi.RemoteException\n \n {\n org.apache.axis2.context.MessageContext _messageContext = null;\n try{\n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[8].getName());\n _operationClient.getOptions().setAction(\"http://soap.sforce.com/2006/04/metadata/MetadataPortType/createRequest\");\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\n\n \n \n addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,\"&\");\n \n\n // create a message context\n _messageContext = new org.apache.axis2.context.MessageContext();\n\n \n\n // create SOAP envelope with that payload\n org.apache.axiom.soap.SOAPEnvelope env = null;\n \n \n env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),\n create92,\n optimizeContent(new javax.xml.namespace.QName(\"http://soap.sforce.com/2006/04/metadata\",\n \"create\")), new javax.xml.namespace.QName(\"http://soap.sforce.com/2006/04/metadata\",\n \"create\"));\n \n env.build();\n \n // add the children only if the parameter is not null\n if (sessionHeader93!=null){\n \n org.apache.axiom.om.OMElement omElementsessionHeader93 = toOM(sessionHeader93, optimizeContent(new javax.xml.namespace.QName(\"http://soap.sforce.com/2006/04/metadata\", \"create\")));\n addHeader(omElementsessionHeader93,env);\n \n }\n \n // add the children only if the parameter is not null\n if (callOptions94!=null){\n \n org.apache.axiom.om.OMElement omElementcallOptions94 = toOM(callOptions94, optimizeContent(new javax.xml.namespace.QName(\"http://soap.sforce.com/2006/04/metadata\", \"create\")));\n addHeader(omElementcallOptions94,env);\n \n }\n \n //adding SOAP soap_headers\n _serviceClient.addHeadersToEnvelope(env);\n // set the message context with that soap envelope\n _messageContext.setEnvelope(env);\n\n // add the message contxt to the operation client\n _operationClient.addMessageContext(_messageContext);\n\n //execute the operation client\n _operationClient.execute(true);\n\n \n org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(\n org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);\n org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();\n \n \n java.lang.Object object = fromOM(\n _returnEnv.getBody().getFirstElement() ,\n com.sforce.soap._2006._04.metadata.CreateResponse.class,\n getEnvelopeNamespaces(_returnEnv));\n\n \n return (com.sforce.soap._2006._04.metadata.CreateResponse)object;\n \n }catch(org.apache.axis2.AxisFault f){\n\n org.apache.axiom.om.OMElement faultElt = f.getDetail();\n if (faultElt!=null){\n if (faultExceptionNameMap.containsKey(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"create\"))){\n //make the fault by reflection\n try{\n java.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"create\"));\n java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);\n java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(String.class);\n java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());\n //message class\n java.lang.String messageClassName = (java.lang.String)faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"create\"));\n java.lang.Class messageClass = java.lang.Class.forName(messageClassName);\n java.lang.Object messageObject = fromOM(faultElt,messageClass,null);\n java.lang.reflect.Method m = exceptionClass.getMethod(\"setFaultMessage\",\n new java.lang.Class[]{messageClass});\n m.invoke(ex,new java.lang.Object[]{messageObject});\n \n\n throw new java.rmi.RemoteException(ex.getMessage(), ex);\n }catch(java.lang.ClassCastException e){\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.ClassNotFoundException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n }catch (java.lang.NoSuchMethodException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.reflect.InvocationTargetException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.IllegalAccessException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.InstantiationException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n }\n }else{\n throw f;\n }\n }else{\n throw f;\n }\n } finally {\n if (_messageContext.getTransportOut() != null) {\n _messageContext.getTransportOut().getSender().cleanup(_messageContext);\n }\n }\n }", "title": "" }, { "docid": "d1d5320cc242f3c1e1a94a7c21b76c80", "score": "0.52450764", "text": "@BodyParser.Of(BodyParser.Json.class)\n public Result createOwner()\n {\n JsonNode jsonData = request().body().asJson();\n ObjectNode result = Json.newObject();\n Owner object;\n String className = ControllerHelper.jsonKeyNameForClass( Owner.class);\n JsonNode jsonOwner = jsonData.get(className);\n ObjectMapper objectMapper = new ObjectMapper();\n try {\n object = objectMapper.readValue(jsonOwner.toString(), Owner.class);\n Owner duplicateOwner = ControllerHelper.isValidOwnerId(object.getExternal_id());\n if(duplicateOwner == null){\n object.save();\n } else {\n return ControllerHelper.standardDuplicateIDErrorResponse();\n }\n } catch (NullPointerException e){\n return ControllerHelper.standardParseErrorResponse();\n } catch (Exception e){\n return ControllerHelper.standardParseErrorResponse();\n }\n\n if(object == null){\n return ControllerHelper.standardParseErrorResponse();\n }\n\n try {\n String json = objectMapper.writeValueAsString(object);\n JsonNode jsonNode = objectMapper.readTree(json);\n JsonSchema j = JsonSchema.findByTitle(\"owner\");\n OwnerDocumentFactory.createOwnerDocument(object,j);\n result.set(ControllerHelper.jsonKeyNameForClass( Owner.class),jsonNode);\n } catch (JsonProcessingException e) {\n return ControllerHelper.standardParseErrorResponse();\n } catch (IOException e) {\n return ControllerHelper.standardParseErrorResponse();\n }\n\n result.put(\"status\",\"ok\");\n return ok(result);\n }", "title": "" }, { "docid": "758d3ac201133d4eea7c78fc56653171", "score": "0.52415335", "text": "public void contactCreate() {\n\t\tprintStart(\"contactCreate\");\n\n\t\tEPPResponse response;\n\n\t\tString theName = this.makeContactName();\n\n\t\ttry {\n\t\t\tSystem.out\n\t\t\t\t\t.println(\"\\n----------------------------------------------------------------\");\n\t\t\tSystem.out.println(\"contactCreate: Contact create for \" + theName);\n\t\t\tcontact.setTransId(\"ABC-12345-XYZ\");\n\t\t\tcontact.setAuthorizationId(\"ClientXYZ\");\n\t\t\tcontact.addContactId(theName);\n\t\t\tcontact.setVoicePhone(\"+1.7035555555\");\n\t\t\tcontact.setVoiceExt(\"123\");\n\t\t\tcontact.setFaxNumber(\"+1.7035555556\");\n\t\t\tcontact.setFaxExt(\"456\");\n\t\t\tcontact.setEmail(\"jdoe@example.com\");\n\n\t\t\t// Streets\n\t\t\tVector streets = new Vector();\n\t\t\tstreets.addElement(\"123 Example Dr.\");\n\t\t\tstreets.addElement(\"Suite 100\");\n\t\t\tstreets.addElement(\"This is third line\");\n\n\t\t\tEPPContactAddress address = new EPPContactAddress();\n\n\t\t\taddress.setStreets(streets);\n\t\t\taddress.setCity(\"Dulles\");\n\t\t\taddress.setStateProvince(\"VA\");\n\t\t\taddress.setPostalCode(\"20166-6503\");\n\t\t\taddress.setCountry(\"US\");\n\n\t\t\tEPPContactPostalDefinition name = new EPPContactPostalDefinition(\n\t\t\t\t\tEPPContactPostalDefinition.ATTR_TYPE_LOC);\n\n\t\t\tname.setName(\"John Doe\");\n\t\t\tname.setOrg(\"Example Inc.\");\n\t\t\tname.setAddress(address);\n\n\t\t\tcontact.addPostalInfo(name);\n\n\t\t\t// this is not a valid Example but it will do\n\t\t\tEPPContactAddress Intaddress = new EPPContactAddress();\n\n\t\t\tIntaddress.setStreets(streets);\n\t\t\tIntaddress.setCity(\"Dulles\");\n\t\t\tIntaddress.setStateProvince(\"VA\");\n\t\t\tIntaddress.setPostalCode(\"20166-6503\");\n\t\t\tIntaddress.setCountry(\"US\");\n\n\t\t\tEPPContactPostalDefinition Intname = new EPPContactPostalDefinition(\n\t\t\t\t\tEPPContactPostalDefinition.ATTR_TYPE_INT);\n\n\t\t\tIntname.setName(\"John Doe\");\n\t\t\tIntname.setOrg(\"Example Inc.\");\n\t\t\tIntname.setAddress(Intaddress);\n\n\t\t\tcontact.addPostalInfo(Intname);\n\n\t\t\t// disclose names\n\t\t\tVector names = new Vector();\n\n\t\t\t// names.addElement(new\n\t\t\t// EPPContactDiscloseName(EPPContactDiscloseName.ATTR_TYPE_LOC));\n\t\t\tnames.addElement(new EPPContactDiscloseName(\n\t\t\t\t\tEPPContactDiscloseName.ATTR_TYPE_INT));\n\n\t\t\t// disclose orgs\n\t\t\tVector orgs = new Vector();\n\t\t\torgs.addElement(new EPPContactDiscloseOrg(\n\t\t\t\t\tEPPContactDiscloseOrg.ATTR_TYPE_LOC));\n\t\t\torgs.addElement(new EPPContactDiscloseOrg(\n\t\t\t\t\tEPPContactDiscloseOrg.ATTR_TYPE_INT));\n\n\t\t\t// disclose addresses\n\t\t\tVector addresses = new Vector();\n\t\t\taddresses.addElement(new EPPContactDiscloseAddress(\n\t\t\t\t\tEPPContactDiscloseAddress.ATTR_TYPE_LOC));\n\t\t\taddresses.addElement(new EPPContactDiscloseAddress(\n\t\t\t\t\tEPPContactDiscloseAddress.ATTR_TYPE_INT));\n\n\t\t\t// disclose\n\t\t\tEPPContactDisclose disclose = new EPPContactDisclose();\n\t\t\tdisclose.setFlag(\"0\");\n\t\t\tdisclose.setNames(names);\n\t\t\tdisclose.setOrgs(orgs);\n\t\t\tdisclose.setAddresses(addresses);\n\t\t\tdisclose.setVoice(\"\");\n\t\t\tdisclose.setFax(\"\");\n\t\t\tdisclose.setEmail(\"\");\n\n\t\t\tcontact.setDisclose(disclose);\n\n\t\t\tresponse = contact.sendCreate();\n\n\t\t\t// -- Output all of the response attributes\n\t\t\tSystem.out.println(\"contactCreate: Response = [\" + response\n\t\t\t\t\t+ \"]\\n\\n\");\n\t\t}\n\t\tcatch (EPPCommandException e) {\n\t\t\thandleException(e);\n\t\t}\n\n\t\tprintEnd(\"contactCreate\");\n\t}", "title": "" }, { "docid": "d4d1506d43adbf832c9975ea3555827a", "score": "0.524066", "text": "@Test\n public void createWorkflowTest() {\n CreateWorkflowDetails createWorkflowDetails = null;\n WorkflowID response = api.createWorkflow(createWorkflowDetails).block();\n\n // TODO: test validations\n }", "title": "" }, { "docid": "e972d6c3358e1561ee3a796dad2e0526", "score": "0.5238525", "text": "public void createNew();", "title": "" }, { "docid": "14404cf532774e7528aceee66a6ed6e1", "score": "0.52338266", "text": "void create(T entity);", "title": "" }, { "docid": "130ece028b78c06042a7377b61ccf411", "score": "0.52306455", "text": "Cloud create();", "title": "" }, { "docid": "1e80a0ebde6b2a01a2c41a290308bf62", "score": "0.5218352", "text": "CREATE createCREATE();", "title": "" }, { "docid": "5faba88a62c42143b3215821ff34464b", "score": "0.5212866", "text": "@Override\r\n\tpublic void exec() {\n\t\tSystem.out.println(\"CreateCommand 수행 \");\r\n\t}", "title": "" }, { "docid": "53fe61fc424279b62881879fc38e76fb", "score": "0.521147", "text": "@Override\n protected String doInBackground(Void... voids) {\n RequestHandler requestHandler = new RequestHandler();\n\n // Creating request parameters\n HashMap<String, String> params = new HashMap<>();\n params.put(\"id\", userProfile.getId());\n params.put(\"name\", userProfile.getName());\n params.put(\"email\", userProfile.getEmail());\n params.put(\"role\", userProfile.getRole());\n\n // Return the response\n return requestHandler.sendPostRequest(URLs.URL_CUSTOMER_REGISTER, params);\n }", "title": "" }, { "docid": "c843f6216908f8050a647876a7f7ecc3", "score": "0.52092135", "text": "void create(String name, String user, String password, DatabaseType type);", "title": "" }, { "docid": "0803de7be99b134c84e9c3a4233dc7dc", "score": "0.5203188", "text": "@When(\"^I make a create request for new editorial version$\")\r\n\tpublic void callCreateEditorialVersion() throws Exception {\n\t\tString url = \"http://ukwcc4jb4d03:8080/assetAuthority/EditorialVersionManagementService\";\r\n\r\n\t\tsoapResponse = makeSoapRequestCall(url, createVersionxml);\r\n\t\tresponce = printSOAPResponse(soapResponse);\r\n\t}", "title": "" }, { "docid": "e829076af1739f680f5a43d775431df9", "score": "0.520146", "text": "java.util.concurrent.Future<CreateBudgetActionResult> createBudgetActionAsync(CreateBudgetActionRequest createBudgetActionRequest);", "title": "" }, { "docid": "e3c120c1de84f3486c49f24d7df93415", "score": "0.51975834", "text": "@Override\n\t\t\tprotected String doInBackground(String... args) {\n\t\t\t\tList<NameValuePair> params = new ArrayList<NameValuePair>();\n\t\t\t\tparams.add(new BasicNameValuePair(\"user_id\", userId));\n\t\t\t\tparams.add(new BasicNameValuePair(\"event_id\", Integer.toString(selectedEventId)));\n\t\t\t\tparams.add(new BasicNameValuePair(\"private\", privateOption));\n\t\t\t\tparams.add(new BasicNameValuePair(\"attend_date\", selectedYear+\"-\"+selectedMonthInt+\"-\"+selectedDate));\n\n\t\t\t\t// Getting JSON object\n\t\t\t\tJSONObject json = jsonParser.makeHttpRequest(url_attend_event,params);\n\n\t\t\t\t// Check for success tag\n\t\t\t\ttry {\n\t\t\t\t\tint success = json.getInt(TAG_SUCCESS);\n\t\t\t\t\tif (success == 1) {\n\t\t\t\t\t\t// successfully created product\n\t\t\t\t\t} else {\n\t\t\t\t\t\t// failed to create\n\t\t\t\t\t}\n\t\t\t\t} catch (JSONException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\n\t\t\t\treturn null;\n\t\t\t}", "title": "" }, { "docid": "c8ebf916f793f3aa4db3b49e72e77438", "score": "0.5196703", "text": "@Override\n public String create(String name, String description) throws InternalException, CloudException {\n \tthrow new CloudException(\"No Op\");\n }", "title": "" }, { "docid": "e24ad286c3ce38bc698f8364f21709a5", "score": "0.5191508", "text": "void createUser();", "title": "" }, { "docid": "2568b6d4baba2488a50ab6e33eb18f84", "score": "0.5189666", "text": "@Test\n public void test_CreateObject() throws Exception {\n // Send Create Object Request\n /////////////////////////////////////////////\n TestRequestObject requestObject = new TestRequestObject();\n requestObject.addProperty(\"name\", \"javad\");\n requestObject.addProperty(\"job\", \"developer\");\n requestObject.addProperty(\"actor_user\", this.user.getEmail());\n\n TestDenaRelation testDenaRelation = new TestDenaRelation();\n testDenaRelation.setRelationType(RelationType.RELATION_1_TO_1.value);\n testDenaRelation.setRelationName(\"new_relation\");\n testDenaRelation.setIds(Collections.singletonList(objectId1));\n testDenaRelation.setTargetName(CommonConfig.TABLE_NAME);\n\n requestObject.addRelatedObject(testDenaRelation);\n\n DenaResponse actualReturnObject = performCreateObject(createJSONFromObject(requestObject), DenaResponse.class);\n\n /////////////////////////////////////////////\n // Assert Create Object Response\n /////////////////////////////////////////////\n TestObjectResponse expectedObjectResponse = new TestObjectResponse();\n expectedObjectResponse.objectId = actualReturnObject.getDenaObjectResponseList().get(0).getObjectId();\n expectedObjectResponse.createTime = actualReturnObject.getDenaObjectResponseList().get(0).getCreateTime();\n expectedObjectResponse.updateTime = actualReturnObject.getDenaObjectResponseList().get(0).getUpdateTime();\n expectedObjectResponse.objectURI = \"/\" + CommonConfig.TABLE_NAME + \"/\" + expectedObjectResponse.objectId;\n expectedObjectResponse.addProperty(\"name\", \"javad\");\n expectedObjectResponse.addProperty(\"job\", \"developer\");\n\n\n TestDenaResponse expectedReturnObject = new TestDenaResponse();\n expectedReturnObject.timestamp = actualReturnObject.getTimestamp();\n expectedReturnObject.createObjectCount = 1L;\n expectedReturnObject.setTestObjectResponseList(Collections.singletonList(expectedObjectResponse));\n\n // assert timestamp\n assertTrue(isTimeEqualRegardlessOfSecond(expectedReturnObject.timestamp, Instant.now().toEpochMilli()));\n assertTrue(isTimeEqualRegardlessOfSecond(expectedObjectResponse.createTime, Instant.now().toEpochMilli()));\n assertNull(\"mergeUpdate time in creating object should be null\", expectedObjectResponse.updateTime);\n\n JSONAssert.assertEquals(createJSONFromObject(expectedReturnObject), createJSONFromObject(actualReturnObject), false);\n\n }", "title": "" }, { "docid": "25b1bc7a82ba54548302e211e6202281", "score": "0.51894283", "text": "public void createArkUser(ArkUserVO arkUserVO);", "title": "" }, { "docid": "6c7b84fc9f0da4ebd941f3007c2b6117", "score": "0.5182552", "text": "CreateToken.Response createToken(CreateToken.Request request);", "title": "" }, { "docid": "8f0981c3a0bc362ca47944bbc77d51a2", "score": "0.5181778", "text": "@Override\n public void execute() {\n task = new ElasticSearchController.AddReview();\n task.execute(review);\n }", "title": "" }, { "docid": "3381fd1cb63d81b9ba2d057360bd3b2b", "score": "0.5180127", "text": "@Override\r\n\t\tpublic void run() {\n\t\t\tList<NameValuePair> params = new ArrayList<NameValuePair>();\r\n\t\t\tparams.add(new BasicNameValuePair(\"Request\", \"NewTeam\"));\r\n\t\t\tparams.add(new BasicNameValuePair(\"UserID\", Data.USERID));\r\n\t\t\tparams.add(new BasicNameValuePair(\"Passcode\", Data.PASSCODE));\r\n\t\t\tparams.add(new BasicNameValuePair(\"Type\", (spinner\r\n\t\t\t\t\t.getSelectedItemPosition()) + \"\"));\r\n\t\t\tparams.add(new BasicNameValuePair(\"Name\", et_teamname.getText()\r\n\t\t\t\t\t.toString()));\r\n\r\n\t\t\tString result = new HttpPostConnection(\"TeamServer\", params)\r\n\t\t\t\t\t.httpConnection();\r\n\t\t\t\r\n\t\t\tMessage msg=new Message();\r\n\t\t\tBundle b=new Bundle();\r\n\t\t\tb.putString(\"result\", result);\r\n\t\t\tmsg.setData(b);\r\n\t\t\tcreateteamHandler.sendMessage(msg);\r\n\t\t}", "title": "" }, { "docid": "4c53ee286c8db369552ef5b67fdf1177", "score": "0.5179938", "text": "@Override\n\tpublic void create(){\n\t\tsuper.create();\n\t}", "title": "" }, { "docid": "ad55bf9e5b521463bf8fe8bf603e3b78", "score": "0.5172559", "text": "public void createWithEmptyEntityBody() {\n }", "title": "" }, { "docid": "0bfc43ab15d8cc9d8bbc1d972cbac36d", "score": "0.5172196", "text": "@PostMapping()\n public ResponseEntity<?> createTask(@RequestBody TaskModel item) {\n taskService.create(item);\n return new ResponseEntity<>(HttpStatus.CREATED);\n }", "title": "" }, { "docid": "6e34d31009898e475d5e4e6f79823e6f", "score": "0.5167229", "text": "public void runCreate(String dateStr, String name) {\n\t\tPublicHolidayCRUD crud = (PublicHolidayCRUD) Cache.getCurrentCRUD();\n\t\tPublicHoliday obj = crud.createPublicHoliday(dateStr, name);\n\t\tif (crud.isExist(obj))\n\t\t\tSystem.out.println(\"There is already a public holiday created on this date!\");\n\t\telse {\n\t\t\tcrud.create(obj);\n\t\t\tSystem.out.println(\"Public holiday created successfully!\");\n\t\t}\n\t\tthis.start();\n\t}", "title": "" } ]
a6015a01f928aea207a81fb9ffbad672
Function to set the 2D array on the textfield Grid
[ { "docid": "7b3f96ac90936e2d05e0815f108a88b5", "score": "0.68853116", "text": "public void setSudokuGrid(){\n\n for (int i=0;i<9;i++){\n for(int j=0;j<9;j++){\n if(sudoku.data[i][j]!=0)\n textFields[i][j].setText(String.valueOf(sudoku.data[i][j]));\n }\n }\n\n }", "title": "" } ]
[ { "docid": "dce2ecc6e5afc9dcfa4e4ea3124ffa9d", "score": "0.69431025", "text": "void updateGrid(){\n\n //Updating the ArrayList of all the textfield\n for (int i=0;i<9;i++){\n for (int j=0;j<9;j++){\n updateList(i,j);\n }\n }\n //Setting suitable value for row and coloumn\n minimumLength();\n\n }", "title": "" }, { "docid": "84dc171598d4c29e3becf20466209971", "score": "0.69120383", "text": "public void initialize(){\n\n //Creating eventHandler to set the color of textField on focus\n EventHandler<MouseEvent> e= new EventHandler<MouseEvent>() {\n @Override\n public void handle(MouseEvent event) {\n TextField tf = (TextField)event.getSource();\n resetTextField();\n //Setting the background color of text filed on MouseClick\n tf.setBackground(new Background(new BackgroundFill(Color.rgb(243, 190, 200), CornerRadii.EMPTY, Insets.EMPTY)));\n }\n };\n\n //Initialing array of modified textField\n textFields = new modifiedTextField[9][9];\n\n\n /***\n * Loop for creating instance of all the textField\n * and Setting all size of Text Field and adding it to the\n * main Sudoku Grid\n */\n for(int i=0;i<9;i++){\n for (int j=0;j<9;j++){\n\n textFields[i][j] = new modifiedTextField();\n textFields[i][j].setOnMouseClicked(e);\n textFields[i][j].setMinSize(65,65);\n textFields[i][j].setPrefSize(65,65);\n textFields[i][j].setMaxSize(65,65);\n sudokuGrid.add(textFields[i][j],j,i);\n\n }\n }\n\n }", "title": "" }, { "docid": "04cb62868bf77c2bde411e5c0f20af3d", "score": "0.6576783", "text": "protected void ArrayAssignment() {\n for (int row = 0; row < 3; row++) {\n for (int column = 0; column < 3; column++) {\n squares[row][column] = Gameface.button[column + (3 * row)].getText();\n\n }\n }\n }", "title": "" }, { "docid": "839c94c311e1de6dcc48e2c40a0566a7", "score": "0.62773335", "text": "public void setBoard (){\n \n //Clears Text Field\n jTextArea1.setText(\"\");\n \n //Outputs new 1 and 0 array to text field.\n for (int q = 0; q < yy; q++){\n for (int w = 0; w < xx; w++){\n jTextArea1.append(array1[q][w]);\n }\n jTextArea1.append(\"\\n\");\n }\n \n // allows user to click the next stage\n btnNextStage.setVisible(true);\n \n }", "title": "" }, { "docid": "9565c6d7e98ef07c224e2dc8b1a53113", "score": "0.62130636", "text": "public FunGrid()\r\n {\r\n grid = new char[ROWS][COLS];// create a 2-D array of chars\r\n for (int r=0; r < grid.length; r++) // a.length is # of rows\r\n { // a[r].length is # of cols in row r\r\n for (int c=0; c < grid[r].length; c++)\r\n {\r\n grid[r][c]='-';\r\n }\r\n }\r\n grid[0][0]='X';\r\n curRow=0;\r\n curCol=0;\r\n // initialize every element of the 2-D array to '-'\r\n // place an X in the top-left corner of the array\r\n // store the location of the current row and column that the X is in.\r\n\r\n }", "title": "" }, { "docid": "2f64a0b12ca3fa61a6875db26204b659", "score": "0.61885893", "text": "public void createGrid( List<String[]> contents );", "title": "" }, { "docid": "2c96d6d418de04d5524cc7e421f46922", "score": "0.6118831", "text": "public void setgrid(Cell[][] inputgrid){\n\n\t\tmyGrid= inputgrid;\n\t}", "title": "" }, { "docid": "a786c2269fd6706a350e6fa47cd4dd35", "score": "0.6091407", "text": "public ObjectGrid2D setTo(Object[][] field)\n {\n // check info\n \n if (field == null)\n throw new RuntimeException(\"ObjectGrid2D set to null field.\");\n int w = field.length;\n int h = 0;\n if (w != 0) h = field[0].length;\n for(int i = 0; i < w; i++)\n if (field[i].length != h) // uh oh\n throw new RuntimeException(\"ObjectGrid2D initialized with a non-rectangular field.\");\n\n // load\n \n width = w;\n height = h;\n this.field = new Object[w][h];\n for(int i = 0; i < w; i++)\n this.field[i] = (Object[]) field[i].clone();\n return this;\n }", "title": "" }, { "docid": "eed9c272ee66e90bf2342ca0bed28317", "score": "0.60387987", "text": "private void initialize() \n\t{\n\t\tframe = new JFrame();\n\t\tframe.setBounds(100, 100, 400, 250);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tGridBagLayout gridBagLayout = new GridBagLayout();\n\t\tgridBagLayout.columnWidths = new int[]{20, 115, 20, 34, 80, 20, 80, 20};\n\t\tgridBagLayout.rowHeights = new int[]{30};\n\t\tgridBagLayout.columnWeights = new double[]{0.0, 0.0, 0.0, 0.0, 1.0};\n\t\tgridBagLayout.rowWeights = new double[]{0.0, 0.0};\n\t\tframe.getContentPane().setLayout(gridBagLayout);\n\t\tframe.pack();\n\t\t\n\t\ttextField = new JTextField[sensorNumber];\n\t\ttextField2 = new JTextField[sensorNumber];\n\t\tcanvas = new Canvas[sensorNumber];\n\t\t\n\t\t\tfor (int count = 0; count < sensorNumber; count++)\n\t\t\t{\n\t\t\t\tJLabel lblSensor1 = new JLabel(\"Sensor \" + (count+1));\n\t\t\t\tGridBagConstraints g_lblSensor = new GridBagConstraints();\n\t\t\t\tg_lblSensor.fill = GridBagConstraints.BOTH;\n\t\t\t\tg_lblSensor.insets = new Insets(0, 0, 5, 5);\n\t\t\t\tg_lblSensor.gridx = 1;\n\t\t\t\tg_lblSensor.gridy = 1 + count;\n\t\t\t\tframe.getContentPane().add(lblSensor1, g_lblSensor);\n\t\t\t\t\n\t\t\t\ttextField[count] = new JTextField(\"0\");\n\t\t\t\ttextField[count].setEditable(false);\n\t\t\t\ttextField[count].setHorizontalAlignment(JTextField.CENTER);\n\t\t\t\ttextField[count].setMaximumSize(new Dimension(10, 5));\n\t\t\t\tGridBagConstraints g_textField = new GridBagConstraints();\n\t\t\t\tg_textField.fill = GridBagConstraints.BOTH;\n\t\t\t\tg_textField.insets = new Insets(0, 0, 5, 5);\n\t\t\t\tg_textField.gridx = 4;\n\t\t\t\tg_textField.gridy = 1 + count;\n\t\t\t\tframe.getContentPane().add(textField[count], g_textField);\n\t\t\t\t\n\t\t\t\ttextField2[count] = new JTextField(\"0\");\n\t\t\t\ttextField2[count].setEditable(false);\n\t\t\t\ttextField2[count].setHorizontalAlignment(JTextField.CENTER);\n\t\t\t\ttextField2[count].setMaximumSize(new Dimension(10, 5));\n\t\t\t\tGridBagConstraints g_textField2 = new GridBagConstraints();\n\t\t\t\tg_textField2.fill = GridBagConstraints.BOTH;\n\t\t\t\tg_textField2.insets = new Insets(0, 0, 5, 5);\n\t\t\t\tg_textField2.gridx = 6;\n\t\t\t\tg_textField2.gridy = 1 + count;\n\t\t\t\tframe.getContentPane().add(textField2[count], g_textField2);\n\t\t\t\t\n\t\t\t\tcanvas[count] = new Canvas();\n\t\t\t\tcanvas[count].setSize(40,20);\n\t\t\t\tcanvas[count].setBackground(Color.GREEN);\n\t\t\t\tGridBagConstraints gbc_canvas = new GridBagConstraints();\n\t\t\t\tgbc_canvas.insets = new Insets(0, 0, 5, 5);\n\t\t\t\tgbc_canvas.gridx = 2;\n\t\t\t\tgbc_canvas.gridy = 1 + count;\n\t\t\t\tframe.getContentPane().add(canvas[count], gbc_canvas);\n\t\t\t}\n\n\t\tJLabel lblMode = new JLabel(\"Mode\");\n\t\tGridBagConstraints gbc_lblMode = new GridBagConstraints();\n\t\tgbc_lblMode.anchor = GridBagConstraints.NORTH;\n\t\tgbc_lblMode.insets = new Insets(0, 0, 0, 5);\n\t\tgbc_lblMode.gridx = 2;\n\t\tgbc_lblMode.gridy = 0;\n\t\tframe.getContentPane().add(lblMode, gbc_lblMode);\n\t\t\n\t\tlblAverage = new JLabel(\"Mean\");\n\t\tGridBagConstraints gbc_lblAverage = new GridBagConstraints();\n\t\tgbc_lblAverage.anchor = GridBagConstraints.NORTH;\n\t\tgbc_lblAverage.gridx = 4;\n\t\tgbc_lblAverage.gridy = 0;\n\t\tframe.getContentPane().add(lblAverage, gbc_lblAverage);\n\t\t\n\t\tlblSD= new JLabel(\"<html>Standard<br> Deviation\");\n\t\tGridBagConstraints gbc_lblSD = new GridBagConstraints();\n\t\tgbc_lblSD.anchor = GridBagConstraints.NORTH;\n\t\tgbc_lblSD.gridx = 6;\n\t\tgbc_lblSD.gridy = 0;\n\t\tframe.getContentPane().add(lblSD, gbc_lblSD);\n\t\t\n\t\ttextArea = new JTextArea(6,32);\n\t\ttextArea.setEditable(false);\n\t\tJScrollPane scroll = new JScrollPane(textArea);\n\t\tscroll.setVerticalScrollBarPolicy ( ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS );\n\t\t\n\t\tGridBagConstraints gbc_textArea = new GridBagConstraints();\n\t\tgbc_textArea.gridwidth = 6;\n\t\tgbc_textArea.anchor = GridBagConstraints.NORTH;\n\t\tgbc_textArea.insets = new Insets(0, 0, 5, 5);\n\t\tgbc_textArea.gridx = 1;\n\t\tgbc_textArea.gridy = sensorNumber + 1;\n\t\tframe.getContentPane().add(textArea, gbc_textArea);\n\t\t\n\t\tframe.pack();\n\t}", "title": "" }, { "docid": "6c6b0e5616a0f03b12905540bc8afd4c", "score": "0.6024995", "text": "public void generate(BorderPane borderPane) {\n\t\ttextFields = new TextField[NUMB_ROWS][NUMB_COLS];\n\t\tGridPane grid = new GridPane();\n\t\tfor (int r = 0; r < NUMB_ROWS; r++) {\n\t\t\tfor (int c = 0; c < NUMB_COLS; c++) {\n\t\t\t\tTextField field = new TextField();\n\t\t\t\tfield.setPrefSize((borderPane.getHeight()) / NUMB_ROWS, (borderPane.getWidth()) / NUMB_COLS);\n\t\t\t\ttextFields[r][c] = field;\n\t\t\t\tgrid.add(field, c, r);\n\t\t\t\ttextFields[r][c].setAlignment(Pos.CENTER);\n\t\t\t\ttextFields[r][c].setFont(Font.font(\"system regular\", FontWeight.BOLD, 25));\n\t\t\t\tfinal int row = r;\n\t\t\t\tfinal int col = c;\n\t\t\t\ttextFields[r][c].textProperty().addListener(new ChangeListener<String>() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void changed(ObservableValue<? extends String> observable, String oldValue,\n\t\t\t\t\t\t\tString newValue) {\n\t\t\t\t\t\tif (!newValue.matches(\"\\\\d*\")) { // force the field to be numeric only\n\t\t\t\t\t\t\ttextFields[row][col].setText(newValue.replaceAll(\"[^\\\\d]\", \"\"));\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (textFields[row][col].getText().length() > 1) {\n\t\t\t\t\t\t\ttextFields[row][col].setText(textFields[row][col].getText().substring(0, 1));\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (newValue.matches(\"0\")) {\n\t\t\t\t\t\t\ttextFields[row][col].clear();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (newValue.matches(\"\")) {\n\t\t\t\t\t\t\ttextFields[row][col].setStyle(styleWhite);\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t}\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tcheckValid(row, col, newValue);\n\t\t\t\t\t\t} catch (BadNumberException e) {\n\t\t\t\t\t\t\ttextFields[row][col].setStyle(styleRed);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (checkFinished()) {\n\t\t\t\t\t\t\tfinished();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}\n\t\t}\n\t\tborderPane.setCenter(grid);\n\t\tgrid.setGridLinesVisible(true);\n\t}", "title": "" }, { "docid": "f2eaa4536ede980042f7a5ba4d716493", "score": "0.60210866", "text": "private static char[][] initField() {\n char[][] field = new char[3][3]; // 3x3 playing field\n for (char[] row : field) {\n Arrays.fill(row, ' '); // fill each row (3x ' ')\n }\n return field;\n }", "title": "" }, { "docid": "162c42579fa4df6f43b92424a3d02d78", "score": "0.60137284", "text": "void solveGrid() {\n /*Calling update grid function to set the suitable row col value and\n consequently calling solveCell function to fill the corresponding textField\n */\n updateGrid();\n solveCell(row, col);\n\n }", "title": "" }, { "docid": "5df5ecd22ccba392873f6cd3b6e96e50", "score": "0.6004092", "text": "private void paint() {\n \n //create the textfield which will only accept integers\n //it won't recognize the input incase it's not a single digit integer\n NumberFormat nf = NumberFormat.getInstance();\n tf = new JFormattedTextField[size];\n nf.setMaximumIntegerDigits(1);\n \n //make a textfield that is tempory and then store it \n //in each index fot the original text field\n for(int i=0; i<size; i++){\n JFormattedTextField ftf= new JFormattedTextField(nf);\n ftf.setBounds(rec);\n tf[i]=ftf;\n }\n \n //set the location the board in x and y\n int x = 100;\n int y = 60;\n //count how many the boxes are they and help to input the number\n int count = 0;\n int pos=0;\n \n //this loop helps to display the given indexes and its location they are\n //in the loop and use the texfield format to let the user enter their\n //input.\n for(int i =0; i<9; i++){\n for(int j = 0;j<9;j++){\n \n if(count==index[pos]){\n tf[count].setLocation(x,y);\n tf[count].setText(Integer.toString(givenNumber[pos]));\n tf[count].setEditable(false);\n panel.add(tf[count]);\n tf[count].setVisible(true);\n x+=30;\n pos++;\n count++;\n }\n else{\n tf[count].setLocation(x,y);\n //tf[count].setText(null);\n panel.add(tf[count]);\n tf[count].setVisible(true);\n x+=30;\n count++;\n }\n \n }\n y+=30;\n x=100;\n }\n \n }", "title": "" }, { "docid": "6841ab76ac45a53b50713ee883ab95c1", "score": "0.5994901", "text": "void resetTextField(){\n\n for (int i=0;i<9;i++){\n for (int j=0;j<9;j++){\n textFields[i][j].setBackground(new Background(new BackgroundFill(Color.rgb(255, 255, 255,0), CornerRadii.EMPTY, Insets.EMPTY)));\n }\n }\n\n }", "title": "" }, { "docid": "1465c17de3e34d182cda743bcf53d298", "score": "0.5908883", "text": "public void setGrid(int[][] grid){\n this.grid = grid;\n this.repaint();\n }", "title": "" }, { "docid": "8463469367fb5ee91403b1dcaa577d71", "score": "0.5908579", "text": "private void drawTextFields(Group root) {\n final int xOrigin = 50; //This is where the grid begins, since there is a 50px padding between it and the window\n final int yOrigin = 50;\n\n final int xAndYDelta = 64; //the distance between the lines\n\n // O(n^2) Runtime Complexity\n for (int i = 0; i < 9; i++) {\n for (int j = 0; j < 9; j++) {\n //Determine the coordinates of each new text field\n int x = xOrigin + i * xAndYDelta;\n int y = yOrigin + j * xAndYDelta;\n\n //Create the corresponding text field\n SudokuTextField tile = new SudokuTextField(i, j);\n styleSudokuTile(tile, x, y);\n tile.setOnKeyPressed(this);\n\n //Add the text field to the grid hashmap\n textFieldCoordinates.put(new Coordinates(i, j), tile);\n //Add the text field to the UI\n root.getChildren().add(tile);\n }\n }\n }", "title": "" }, { "docid": "51ebb7e0fc3ffd6a76d8286740d86e9d", "score": "0.583238", "text": "void CreateGrid(){\n for(int i=0;i<3;i++)\n {\n for(int j=0;j<3;j++)\n {\n board[i][j]='-';\n }\n }\n\n }", "title": "" }, { "docid": "f715e354278771693537a5bcadec09ca", "score": "0.5816838", "text": "private void updateGrid(){\n for(int i = 0; i < grid.length; i++){\n for(int j = 0; j < grid[i].length; j++){\n grid[i][j] = ' ';\n }\n }\n for(int i=0; i< shapes.size(); i++){\n Shape temp = (Shape) shapes.get(i);\n temp.draw(this);\n }\n }", "title": "" }, { "docid": "3d14816487f256a27e4566d38f151130", "score": "0.5807111", "text": "public MyBoundedGrid(int rows, int cols)\n {\n elem = new Object[rows][cols] ; \n }", "title": "" }, { "docid": "3ea3e307fb0253fdac4dfc171a350625", "score": "0.57972825", "text": "public void setText(char chars[][]);", "title": "" }, { "docid": "ba18ab4f734a8f425d21f1f57c705704", "score": "0.57695246", "text": "public Grid(int rows, int cols, String[] vals)\r\n\t{ \r\n grid = new String[rows][cols];\r\n for(int i = 0; i < rows; i++){\r\n for(int n = 0; n < cols; n ++){\r\n int r = (int)(Math.random() * vals.length);\r\n grid[i][n] = vals[r];\r\n }\r\n }\r\n\t}", "title": "" }, { "docid": "d6ee86bbdb46a344894b5d3c521db834", "score": "0.5731962", "text": "public void createTextField(int row, int col) {\n uiCells[row][col] = new JTextField();\n doc[row][col] = (PlainDocument) uiCells[row][col].getDocument();\n doc[row][col].setDocumentFilter(new MyIntFilter(row, col));\n uiCells[row][col].setHorizontalAlignment(SwingConstants.CENTER);\n uiCells[row][col].setFont(new Font(\"Tahoma\", Font.PLAIN, 20));\n uiCells[row][col].setOpaque(false);\n uiCells[row][col].setBounds(0, 0, cellPanes[row][col].getWidth(), cellPanes[row][col].getHeight());\n cellPanes[row][col].add(uiCells[row][col], 1, 0);\n }", "title": "" }, { "docid": "505d1ea4b54c00cc8b402499824f4f88", "score": "0.5724249", "text": "private void componentArrays(){\n\t\t\n\t\tquestionLabels = new JLabel[10];\n\t\tquestionLabels[0] = question1;\n\t\tquestionLabels[1] = question2;\n\t\tquestionLabels[2] = question3;\n\t\tquestionLabels[3] = question4;\n\t\tquestionLabels[4] = question5;\n\t\tquestionLabels[5] = question6;\n\t\tquestionLabels[6] = question7;\n\t\tquestionLabels[7] = question8;\n\t\tquestionLabels[8] = question9;\n\t\tquestionLabels[9] = question10;\n\t\t\n\t\tInputFields = new JTextField[10];\n\t\tInputFields[0] = q1Input;\n\t\tInputFields[1] = q2Input;\n\t\tInputFields[2] = q3Input;\n\t\tInputFields[3] = q4Input;\n\t\tInputFields[4] = q5Input;\n\t\tInputFields[5] = q6Input;\n\t\tInputFields[6] = q7Input;\n\t\tInputFields[7] = q8Input;\n\t\tInputFields[8] = q9Input;\n\t\tInputFields[9] = q10Input;\n\t\t\n\t\tcheckIcons = new JLabel[10];\n\t\tcheckIcons[0] = checkIcon1;\n\t\tcheckIcons[1] = checkIcon2;\n\t\tcheckIcons[2] = checkIcon3;\n\t\tcheckIcons[3] = checkIcon4;\n\t\tcheckIcons[4] = checkIcon5;\n\t\tcheckIcons[5] = checkIcon6;\n\t\tcheckIcons[6] = checkIcon7;\n\t\tcheckIcons[7] = checkIcon8;\n\t\tcheckIcons[8] = checkIcon9;\n\t\tcheckIcons[9] = checkIcon10;\n\t}", "title": "" }, { "docid": "b9c70e572d34d13325c77cb2051d38a3", "score": "0.5719763", "text": "public MyBoundedGrid(int rows, int cols)\n {\n mainArray = new Object[rows][cols];\n }", "title": "" }, { "docid": "e8ef3d5ea34756afb3373fcb98c45dcd", "score": "0.5609812", "text": "private void updateInputValues(int[][] matrix){\r\n int index = 0;\r\n for(int oRow = 0; oRow < 3; oRow++){\r\n for(int oCol = 0; oCol < 3; oCol++){\r\n for(int iRow = 0; iRow < 3; iRow++){\r\n for(int iCol = 0; iCol < 3; iCol++){\r\n if(index <= nbrInputs.size()){\r\n nbrInputs.get(index).setText(Integer.toString(matrix[iRow + oRow*3][iCol + oCol*3]));\r\n }\r\n index++;\r\n }\r\n }\r\n }\r\n }\r\n }", "title": "" }, { "docid": "930d7e74cf144bf73a6d44fa0d1102a3", "score": "0.5607646", "text": "void initArrays(int vfields){\n\t\tvalueEditor = new JComponent[vfields];\n\t\tcan_be_provided_later= new boolean[vfields];\n\t\tcertificated=new boolean[vfields];\n\t\tdefault_val=new String[vfields];\n\t\tentry_size=new int[vfields];\n\t\tfieldID=new long[vfields];\n\t\tlabel=new String[vfields];\n\t\tlov=new String[vfields];\n\t\tpartNeigh=new int[vfields];\n\t\trequired=new boolean[vfields];\n\t\ttip=new String[vfields];\n\t\tlabel_lang=new String[vfields];\n\t\ttl=new TranslatedLabel[vfields];\t\t\n\t}", "title": "" }, { "docid": "e2e07700543306c6268cc0e7766632fa", "score": "0.55663663", "text": "private void newField() {\n for (int i = 0; i < sizer; i++) {\r\n for (int j = 0; j < sizec; j++) {\r\n this.field[i][j] = EMPTY;\r\n }\r\n }\r\n this.field[3][3] = WHITE; // starting postions\r\n this.field[4][4] = WHITE;\r\n this.field[4][3] = BLACK;\r\n this.field[3][4] = BLACK;\r\n }", "title": "" }, { "docid": "e4af4436854d086115254442cf68bff4", "score": "0.5561631", "text": "public static void input()\t\t\t\n\t\t{\n\t\t\tSystem.out.println(\"Enter the row size :\");\n\t\t\t m=sc.nextInt();\n\t\t\t System.out.println(\"Enter the column size :\");\n\t\t\t n=sc.nextInt();\n\t\t\tSystem.out.println(\"Enter the array elements:\");\n\t\t\tfor(int i=0;i<m;i++)\n\t\t\t\tfor(int j=0;j<n;j++)\n\t\t\t\t\tarray[i][j]=sc.nextInt();\n\t\t}", "title": "" }, { "docid": "826e06957b544eab35b3ea1ceca5f9b4", "score": "0.5559317", "text": "void recover(int row, int col, int data){\n\n //Loop to update the row\n for (int i=0;i<9;i++){\n if(!textFields[row][i].list.contains(data)){\n textFields[row][i].list.add(data);\n Collections.sort(textFields[row][i].list);\n }\n }\n\n //Loop to update the coloumn\n for (int i=0;i<9;i++){\n if(!textFields[i][col].list.contains(data))\n textFields[i][col].list.add(data);\n Collections.sort(textFields[i][col].list);\n }\n\n //Loop to update the subGrid\n int a=(row/3)*3;\n int b=(col/3)*3;\n\n for (int i=a;i<a+3;i++){\n for (int j=b;j<b+3;j++){\n if(!textFields[i][j].list.contains(data))\n textFields[i][j].list.add(data);\n Collections.sort(textFields[i][j].list);\n }\n }\n\n }", "title": "" }, { "docid": "7deeab04e2f0bd41c482487be7105256", "score": "0.5536225", "text": "public void setGridCoordinates(int x, int y);", "title": "" }, { "docid": "e4bf26c828232c3a51007a6151594440", "score": "0.5520457", "text": "public WordGrid(int rows, int cols) {\n this.data_ = new char[rows][cols];\n this.rows_ = rows;\n this.cols_ = cols;\n this.clear();\n }", "title": "" }, { "docid": "72926482072fd5f9c3edb49751422dce", "score": "0.54983985", "text": "@Override\n\tvoid setupInputGrid() {\n\t\tGridPane inputGrid = new GridPane();\n\t\tLabel anagramsToFind = new Label(); \n\t\tinputTextField.setPrefWidth(200);\n\t\tsubmitButton = new Button(\"Submit\"); \n\t\tsubmitButton.setPrefWidth(200); \n\t\tsubmitButton.setOnAction(new SubmitButtonEventHandler()); \n\t\tinputGrid.add(inputTextField, 0, 0); \n\t\tinputGrid.add(submitButton, 0, 1); \n\t\tinputGrid.add(anagramsToFind, 0, 2); \n\t\tanagramsTextArea.setPrefSize(200, 100); \n\t\tanagramsTextArea.setEditable(false);\n\t\tint noOfAnagrams=am.anagramMap.get(game.clueWord).size();\n\t\tanagramsToFind.setText(\"Find \"+ (noOfAnagrams-1) +\" anagrams\");\t\n\t\tinputGrid.add(anagramsTextArea, 0, 4);\n\t\tuserGrid.add(new Label (\"Type your anagram\"),0, 0,6,1);\n\t\tuserGrid.add(inputGrid, 0, 1);\n\t}", "title": "" }, { "docid": "0e073141b481ff16b3b7c765925f7004", "score": "0.5490339", "text": "public void setTriangleArray(){\n for (int i = 1; i < width; i++) {\n setRowInTriangleArray(i);\n }\n }", "title": "" }, { "docid": "24f119b95e0af28e56e3cb588fff0fbf", "score": "0.548748", "text": "public void setGrid(Piece[][] grid) {\n\t\tthis.grid = grid;\n\t}", "title": "" }, { "docid": "c6b030a42b9cc9ea7c4ccf1435c51a87", "score": "0.5485378", "text": "public void initializeGrid() {\n for ( int i = minRow; i <= maxRow; i++ ) {\n for ( int j = minCol; j <= maxCol; j++ ) {\n grid[i][j] = '_';\n }\n }\n }", "title": "" }, { "docid": "4592debddc1bf4c9926121da757d6817", "score": "0.54608566", "text": "public void initializeGrid() {\n\t\tfor (int i = 0; i < gridWidth; i++) {\n\t\t\tfor (int j = 0; j < gridHeight; j++) {\n\t\t\t\tgrid[i][j] = \".\";\n\t\t\t}\n\t\t}\n\t\treturn;\n\t}", "title": "" }, { "docid": "e023cf880f8ff0c2cf392cddfa8f3151", "score": "0.545152", "text": "private void setArrayView() {\n\n arrayView = new View[]{\n\n dachs, eule, fuchs, habicht, hase, hirsch, luchs, otter, wolf, baer, alpaca\n };\n }", "title": "" }, { "docid": "17ff9d10b156ba7a596b24f372a5b610", "score": "0.54474217", "text": "public Board(int row, int col){\n board = new String[row][col]; //can change constructor bc row = col in these cases\n }", "title": "" }, { "docid": "f1ee158de39f25328b16514983e216ad", "score": "0.5442288", "text": "private void updateMatrix(ArrayList<ArrayList<JFormattedTextField>> inputMatrix){\r\n\t\tfor(int i = 0; i < \tmatrix.getRows(); i++){\r\n\t\t\tfor(int j = 0; j < matrix.getColumns(); j++){\r\n\t\t\t\tmatrix.setValue(i, j, Double.valueOf(inputMatrix.get(i).get(j).getText()));\r\n\t\t\t}\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "7842eed3ef42e1d0d1f034d81d495a80", "score": "0.54346997", "text": "public void updateTile(char[] values, int x, int y){\n\n int middlePosX = x * 3 + 1;\n int middlePosY = y * 3 + 1;\n\n boardText[middlePosX][middlePosY] = values[0];\n boardText[middlePosX][middlePosY + 1] = values[1];\n boardText[middlePosX][middlePosY - 1] = values[2];\n boardText[middlePosX -1][middlePosY] = values[3];\n boardText[middlePosX + 1][middlePosY] = values[4];\n\n // Set blank values\n boardText[middlePosX + 1][middlePosY + 1] = ' ';\n boardText[middlePosX - 1][middlePosY - 1] = ' ';\n boardText[middlePosX + 1][middlePosY - 1] = ' ';\n boardText[middlePosX - 1][middlePosY + 1] = ' ';\n\n }", "title": "" }, { "docid": "7ec7e22e5ff2d593e714cc5528e202d4", "score": "0.542089", "text": "private static void renderBoard() {\n // loop over each board character\n for (int i = 0; i < Boggle.BOARD_SIZE; i++) {\n for (int j = 0; j < Boggle.BOARD_SIZE; j++) {\n // set the grid spot to the specified char\n charRepGrid[i][j] = new Text(\"\" + Boggle.board[i][j]);\n charGrid.add(charRepGrid[i][j], i, j);\n }\n }\n }", "title": "" }, { "docid": "dc52cc0fc474b900d18b3ffb7046c8dc", "score": "0.5420448", "text": "public MyBoundedGrid(int rows, int cols)\n {\n occupantArray = new Object[rows][cols];\n }", "title": "" }, { "docid": "f7bf43cfa4f00b794575a42ef127a7d9", "score": "0.5416491", "text": "public void updateGrid(AnimObject[][] gridContentsValue)\n {\n gridContents = gridContentsValue;\n gui.redraw(gridContents);\n }", "title": "" }, { "docid": "b294e00cc5963f7aba17dafdde889ba6", "score": "0.540046", "text": "public void setJTextFields(){\n\t\ttfTileWidth = new JTextField(\"\", 12);\n\t\ttfTileHeight = new JTextField(\"\", 12);\n\t\ttfDestinationFile = new JTextField(\"\", 12);\n\t\ttfLevelSourceFile = new JTextField(\"\", 12);\n\t\ttfTileSetSourceFile = new JTextField(\"\", 12);\t\n\t\tSystem.out.println(\"JTextFields set\");\n\t}", "title": "" }, { "docid": "161fa2d16d397c45db8a682954ede76f", "score": "0.539602", "text": "private void btnStartActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnStartActionPerformed\n btnStart.setEnabled(false);\n btnNextStage.setEnabled(true);\n\n // gets width and height of array (user inputted)\n xx = Integer.parseInt(txtArraySizeX.getText()); \n yy = Integer.parseInt(txtArraySizeY.getText());\n \n // dimensions of the frame\n frameWidth = 400;\n frameHeight = 400;\n \n // sets the dimensions of the arrays\n array1 = new String [yy][xx];\n array2 = new String [yy][xx];\n checkedarray = new String [yy][xx];\n \n //Q1Test is 20x19\n //Q2Test is 9x5\n //Q3Test is 20 x 8\n \n //Reads the file in\n try {\n BufferedReader grid = new BufferedReader (new FileReader (\"Q1Test.txt\"));\n while (true) {\n String line = \"\";\n try {\n line = grid.readLine(); \n } catch (IOException ex) {\n Logger.getLogger(GUI.class.getName()).log(Level.SEVERE, null, ex);\n }\n \n // no more lines to read\n if (line == null) {\n try {\n grid.close();\n } catch (IOException ex) {\n Logger.getLogger(GUI.class.getName()).log(Level.SEVERE, null, ex);\n }\n break;\n }\n // add every line except for comments\n if (!line.startsWith(\"#\")) {\n \n for (int b = 0 ; b < xx ; b++ ){\n char temp = line.charAt(b); //Required to convert char to String\n array1[a][b] = Character.toString(temp); \n }\n \n a++;\n }\n }\n } catch (FileNotFoundException ex) {\n Logger.getLogger(GUI.class.getName()).log(Level.SEVERE, null, ex);\n }\n \n //makes array2 equal array1\n for (int i = 0; i < yy ; i ++){\n for (int j = 0 ; j < xx; j ++){\n array2 [i][j] = array1 [i][j];\n }\n } \n \n // calls the output frame\n f();\n setBoard ();\n \n }", "title": "" }, { "docid": "7008c6957a7c4d49626c9a8c453cadd3", "score": "0.5365794", "text": "public void show_array(String name, double[] arr) {\n if (textArea1 != null) {\n textArea1.append(\"\\n\" + name + \"= \");\n for (int i = 0; i < arr.length; i++) {\n textArea1.append(arr[i] + \" \");\n }\n }\n }", "title": "" }, { "docid": "e9f0d0b8a7fbef3e44b4d20c5884e327", "score": "0.53623027", "text": "private static void reniciarArray() {\n\t\tfor(int i=0; i<3; ++i) {\n\t\t\tDadosEstaticos.quadro[i][0]=\"\";\n\t\t\tDadosEstaticos.quadro[i][1]=\"\";\n\t\t\tDadosEstaticos.quadro[i][2]=\"\";\n\t\t}\n\t}", "title": "" }, { "docid": "6d48494b4e5599803d109fc050f60ff3", "score": "0.5358368", "text": "public abstract void draw(JLabel[][] myArray);", "title": "" }, { "docid": "0a3d414b07383f852cd3c97d88be64a7", "score": "0.53568065", "text": "private JPanel createTextFields() {\n JPanel panel = new JPanel();\n panel.setLayout(new BoxLayout(panel, BoxLayout.LINE_AXIS));\n xCoord = new JTextField(\"x\");\n xCoord.setColumns(3);\n yCoord = new JTextField(\"y\");\n yCoord.setColumns(3);\n\n panel.add(xCoord);\n panel.add(new JLabel(\",\"));\n panel.add(yCoord);\n panel.add(Box.createGlue());\n return panel;\n }", "title": "" }, { "docid": "6475aa77b242d657dcfa8fccc710f9b7", "score": "0.53451663", "text": "private void draw_Array(){\n gc.clearRect(0,0,Canvas.getWidth(), Canvas.getHeight());\n for (int row = 0; row < board.getRow(); row++) {\n for (int col = 0; col < board.getColumn() ; col++) {\n if (board.getCellAliveState(row,col)==1){\n draw(row , col , colorPicker.getValue());\n aliveCount ++;\n }\n }\n\n }\n if (Grid.isSelected()) {\n gc.setLineWidth(0.3);\n gc.setStroke(Color.GRAY);\n final int boardRowLength = board.getRow();\n final int boardColumnLength = board.getColumn();\n\n double end_X = Canvas.getWidth();\n double end_Y = Canvas.getHeight();\n\n for (int y = 0; y <= boardRowLength; y++) {\n gc.strokeLine(0, 0 + (size * y),\n end_X, 0 + (size * y));\n }\n\n for (int x = 0; x <= boardColumnLength; x++) {\n gc.strokeLine(0 + (size * x),\n 0, 0 + (size * x), end_Y);\n }\n }\n\n\n }", "title": "" }, { "docid": "1562f3bb2683d1fac9e6935f850693be", "score": "0.5341253", "text": "public AsciiDisplay(){\n grid = new char[15][30];\n shapes = new ArrayList<Shape>();\n }", "title": "" }, { "docid": "a2759e350fc0f22f7f913bfbe838fceb", "score": "0.5333797", "text": "public void LabelInitializer() { \r\n \tfor(int i = 1; i < 9; i++) {\r\n \t\tfor(int j = 0; j < 3; j++) {\r\n \t\t\tJLabel label = new JLabel();\r\n \t\t\tlablearray[i][j] = label; \r\n \t\t label.setPreferredSize(new Dimension(200, 200));\r\n \t\t label.setFont( new Font(\"Serif\", Font.PLAIN, 14) );\r\n\t\t label.setBorder( BorderFactory.createLineBorder(Color.BLACK) );\r\n\t\t gridPanel1.add(label);\r\n\t\t \r\n \t\t}\r\n \t}\r\n }", "title": "" }, { "docid": "366fe6cc330b17da9cfaac29346e52a6", "score": "0.53319085", "text": "void reset(){\n\n sudoku=new Sudoku();\n sudokuGrid.getChildren().clear();\n initialize();\n moves.clear();\n printGrid();\n for (int i=0;i<9;i++){\n for (int j=0;j<9;j++){\n textFields[i][j].setText(\"\");\n }\n }\n\n }", "title": "" }, { "docid": "b8581ed454b447c64ce29a79dadb08b8", "score": "0.5320515", "text": "public void draw() {\n String num;\r\n StdDraw.setXscale(0, N);\r\n StdDraw.setYscale(0, N);\r\n \r\n for (int j = 0; j < N; j++) {\r\n for (int i = 0; i < N; i++) {\r\n num = Integer.toString(grid[i][j]);\r\n StdDraw.text(j, N - i, num);\r\n \r\n }\r\n }\r\n \r\n \r\n }", "title": "" }, { "docid": "00d57cc1c71a22d5574e3cd0b4e72acb", "score": "0.5312385", "text": "public BubbleGrid(int[][] grid) {\n this.grid = grid;\n rowNum = grid.length;\n columnNum = grid[0].length;\n }", "title": "" }, { "docid": "ea71ca6c922b7cf5bbecb8eb8b70faea", "score": "0.52850264", "text": "public void initialise() {\n for (int row = 0; row < 9; row++) {\n for (int col = 0; col < 9; col++) {\n int pos = row * 9 + col;\n if (uiCells[row][col].getText().equals(\"\")) {\n grid[row][col] = new Cell(pos, 0, row, col);\n } else {\n int ans = Integer.parseInt(uiCells[row][col].getText());\n grid[row][col] = new Cell(pos, ans, row, col);\n }\n }\n }\n }", "title": "" }, { "docid": "922e1f37e92d18f413f4575b5e7d8b4e", "score": "0.5270722", "text": "private void setupArrays() {\n gridNum = new int[DIMENSION][DIMENSION];\n gridSquare = new GCompound[DIMENSION][DIMENSION];\n for (int i = 0; i < DIMENSION; i++) {\n for (int j = 0; j < DIMENSION; j++) {\n gridSquare[i][j] = squareWithNumber((j+1)*SPACE + (j)*SQUARE_SIZE, \n OFFSET - APPLICATION_SOUTH + (i+1)*SPACE + (i)*SQUARE_SIZE, \n gridNum[i][j]);\n add(gridSquare[i][j]);\n }\n } \n }", "title": "" }, { "docid": "0a8d018e8c80700b0787374571a54d29", "score": "0.5270438", "text": "public void clear() {\n\t\tfor (int i = 0; i < NUMB_ROWS; i++) {\n\t\t\tfor (int j = 0; j < NUMB_COLS; j++) {\n\t\t\t\ttextFields[i][j].clear();\n\t\t\t\ttextFields[i][j].setEditable(true);\n\t\t\t\ttextFields[i][j].setStyle(styleWhite);\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "926dd5c983e4cb53a55738f3f3dcf7b1", "score": "0.5267662", "text": "public void GameBoard()\n\t{\n\t\tgameBoard = new char[3][3];\n\t\tfor (int row = 0; row < gameBoard.length; row++) \n\t\t{\n\t\t\tArrays.fill(gameBoard[row],' '); \n\t\t}\n\t}", "title": "" }, { "docid": "7b6fe8d903510e07038223473571f3fd", "score": "0.52653635", "text": "private void setupGUI(Stage stage, ArrayList<TextField> inputs) {\r\n HBox hbox = new HBox();\r\n GridPane outerGrid = new GridPane();\r\n\r\n hbox.setPadding(new Insets(5, 0, 15, 7));\r\n hbox.setSpacing(15);\r\n outerGrid.setPadding(new Insets(5, 5, 5, 5));\r\n for(int oRow = 0; oRow < 3; oRow++){\r\n for(int oCol = 0; oCol < 3; oCol++){\r\n GridPane innerGrid = new GridPane();\r\n innerGrid.setPadding(new Insets(2, 2, 2, 2));\r\n for(int iRow = 0; iRow < 3; iRow++){\r\n for(int iCol = 0; iCol < 3; iCol++){\r\n TextField nbrInput = new OneNumberTextField();\r\n if(((oRow == 0 || oRow == 2) && oCol != 1) || oRow == 1 && oCol == 1){\r\n nbrInput.setStyle(\"-fx-control-inner-background: orange;\");\r\n }\r\n inputs.add(nbrInput);\r\n innerGrid.add(nbrInput, iCol, iRow);\r\n }\r\n }\r\n outerGrid.add(innerGrid, oCol, oRow);\r\n }\r\n }\r\n\r\n Button solveBtn = new Button(\"Solve\");\r\n Button clearBtn = new Button(\"Clear\");\r\n Button randomBtn = new Button(\"Randomize\");\r\n solveBtn.setOnAction(e -> solve());\r\n clearBtn.setOnAction(e -> clear());\r\n randomBtn.setOnAction(e -> randomize());\r\n hbox.getChildren().addAll(solveBtn, clearBtn, randomBtn);\r\n\r\n BorderPane borderPane = new BorderPane(outerGrid);\r\n borderPane.setPrefWidth(300);\r\n borderPane.setPrefHeight(300);\r\n borderPane.setBottom(hbox);\r\n Scene scene = new Scene(borderPane);\r\n stage.setScene(scene);\r\n stage.show();\r\n }", "title": "" }, { "docid": "3b550f225e2100adeccb6968dc8ef1c6", "score": "0.52645063", "text": "public void init(){\n\twidth = 1680;\n\theight = 1050;\n\tmakearray();\n\t\n\tsetSize(width,height);\n\t}", "title": "" }, { "docid": "15e031cc54ded814b7165b3937598ec2", "score": "0.52605", "text": "private void initializeArrays() {\n mSolution = new ArrayList<>();\n for (int i = 0; i < mKey.length; i++) {\n mSolution.add(mKey[i]);\n }\n\n //create arrays that contain which cells share a row/column/box\n mRowCells = new int[9][9];\n mColumnCells = new int[9][9];\n for (int i = 0; i < 9; i++) {\n for (int j = 0; j < 9; j++) {\n mRowCells[i][j] = j + (i * 9);\n mColumnCells[i][j] = (i % 9) + (j * 9);\n }\n }\n int[][] boxCells = {\n {0, 1, 2, 9, 10, 11, 18, 19, 20},\n {3, 4, 5, 12, 13, 14, 21, 22, 23},\n {6, 7, 8, 15, 16, 17, 24, 25, 26},\n {27, 28, 29, 36, 37, 38, 45, 46, 47},\n {30, 31, 32, 39, 40, 41, 48, 49, 50},\n {33, 34, 35, 42, 43, 44, 51, 52, 53},\n {54, 55, 56, 63, 64, 65, 72, 73, 74},\n {57, 58, 59, 66, 67, 68, 75, 76, 77},\n {60, 61, 62, 69, 70, 71, 78, 79, 80},\n };\n mBoxCells = boxCells;\n\n\n\n }", "title": "" }, { "docid": "4fc331fc85c4797eee613d7e5f7c43ab", "score": "0.5248438", "text": "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jLabel1 = new javax.swing.JLabel();\n jLabel2 = new javax.swing.JLabel();\n txtArraySizeX = new javax.swing.JTextField();\n txtArraySizeY = new javax.swing.JTextField();\n jLabel3 = new javax.swing.JLabel();\n btnStart = new javax.swing.JButton();\n jScrollPane1 = new javax.swing.JScrollPane();\n jTextArea1 = new javax.swing.JTextArea();\n btnNextStage = new javax.swing.JButton();\n jLabel4 = new javax.swing.JLabel();\n txtGeneration = new javax.swing.JTextField();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n jLabel1.setText(\"Enter Size of Array\");\n\n jLabel2.setFont(new java.awt.Font(\"Narkisim\", 0, 18)); // NOI18N\n jLabel2.setText(\"Final Assignment Question 1\");\n\n jLabel3.setText(\"X\");\n\n btnStart.setText(\"GO!\");\n btnStart.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnStartActionPerformed(evt);\n }\n });\n\n jTextArea1.setColumns(20);\n jTextArea1.setRows(5);\n jScrollPane1.setViewportView(jTextArea1);\n\n btnNextStage.setText(\"Next Stage!\");\n btnNextStage.setEnabled(false);\n btnNextStage.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnNextStageActionPerformed(evt);\n }\n });\n\n jLabel4.setText(\"Generation #\");\n\n txtGeneration.setEditable(false);\n txtGeneration.setText(\"0\");\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addContainerGap(191, Short.MAX_VALUE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jLabel4, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(txtGeneration))\n .addGap(214, 214, 214))\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(129, 129, 129)\n .addComponent(jLabel2))\n .addGroup(layout.createSequentialGroup()\n .addGap(30, 30, 30)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 391, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createSequentialGroup()\n .addGap(177, 177, 177)\n .addComponent(btnNextStage)))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGroup(layout.createSequentialGroup()\n .addGap(184, 184, 184)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(10, 10, 10)\n .addComponent(btnStart, javax.swing.GroupLayout.PREFERRED_SIZE, 61, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createSequentialGroup()\n .addComponent(txtArraySizeX, javax.swing.GroupLayout.PREFERRED_SIZE, 28, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(jLabel3, javax.swing.GroupLayout.PREFERRED_SIZE, 13, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(txtArraySizeY, javax.swing.GroupLayout.PREFERRED_SIZE, 28, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addComponent(jLabel1))\n .addGap(0, 0, Short.MAX_VALUE))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(17, 17, 17)\n .addComponent(jLabel2)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jLabel1)\n .addGap(11, 11, 11)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(txtArraySizeY, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(txtArraySizeX, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel3, javax.swing.GroupLayout.PREFERRED_SIZE, 22, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(btnStart, javax.swing.GroupLayout.PREFERRED_SIZE, 33, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 403, Short.MAX_VALUE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(btnNextStage)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel4)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(txtGeneration, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap())\n );\n\n pack();\n }", "title": "" }, { "docid": "1e2b462f23b6903c7180bbe53501b6dd", "score": "0.5245887", "text": "@Override\n public void keyReleased(KeyEvent e) {\n array[indiceTab] = txtArea.getText();\n //System.out.println(array[indiceTab]);\n \n }", "title": "" }, { "docid": "665ab4a92899d5114aa214d9fff7512d", "score": "0.52398056", "text": "public final ObjectGrid2D setTo(final ObjectGrid2D values)\n {\n if (sim.util.LocationLog.assertsEnabled)\n {\n for(int x=0; x< values.width;x++)\n for(int y =0; y <values.height; y++)\n assert sim.util.LocationLog.it(this, new Int2D(x,y));\n\n }\n if (width != values.width || height != values.height)\n {\n final int width = this.width = values.width;\n /*final int height =*/ this.height = values.height;\n Object[][] field = this.field = new Object[width][];\n Object[][] ofield = values.field;\n for(int x =0 ; x < width; x++)\n field[x] = (Object []) (ofield[x].clone());\n }\n else\n {\n Object[][] field = this.field;\n Object[][] ofield = values.field;\n for(int x =0 ; x < width; x++)\n System.arraycopy(ofield[x],0,field[x],0,height);\n }\n return this;\n }", "title": "" }, { "docid": "afc665b2de2539db248adcee3fc4412f", "score": "0.5235656", "text": "void updateList(int row, int col){\n\n //Loop to remove unpermissible value from the row\n for (int i=0;i<9;i++){\n\n if(sudoku.data[row][i]!=0 && textFields[row][col].list.contains(sudoku.data[row][i]))\n textFields[row][col].list.remove(textFields[row][col].list.indexOf(sudoku.data[row][i]));\n\n }\n\n //Loop to remove unpermissible value from the column\n for (int i=0;i<9;i++){\n\n if(sudoku.data[i][col]!=0 && textFields[row][col].list.contains(sudoku.data[i][col]))\n textFields[row][col].list.remove(textFields[row][col].list.indexOf(sudoku.data[i][col]));\n\n }\n\n int a=(row/3)*3;\n int b=(col/3)*3;\n\n //Loop to remove unpermissible value from the subGrid\n for (int i=a;i<a+3;i++){\n for (int j=b;j<b+3;j++){\n\n if(sudoku.data[i][j]!=0 && textFields[row][col].list.contains(sudoku.data[i][j]))\n textFields[row][col].list.remove(textFields[row][col].list.indexOf(sudoku.data[i][j]));\n\n }\n }\n\n }", "title": "" }, { "docid": "7cd09ae0c69f9477594fce555dedef30", "score": "0.52293473", "text": "private void fillElement(int x, int y, boolean filled) {\n\n\t\tTextField tf = getNodeByRowColumnIndex(x, y);\n\t\tif (filled) {\n\t\t\ttf.setStyle(\"-fx-control-inner-background: red; -fx-font-weight: bold; -fx-font-size: 1.5em;\");\n\t\t} else {\n\n\t\t\t// 1st matrix\n\t\t\tif (x == 1 && y == 2 || x == 1 && y == 5 || x == 1 && y == 8 || x == 4 && y == 2 || x == 4 && y == 5\n\t\t\t\t\t|| x == 4 && y == 8 || x == 7 && y == 2 || x == 7 && y == 5 || x == 7 && y == 8) { // direita\n\t\t\t\ttf.setStyle(\"-fx-border-color: #c6c6c6 black #c6c6c6 #c6c6c6; -fx-border-width: 1.5;\");\n\t\t\t} else if (x == 2 && y == 2 || x == 2 && y == 5 || x == 2 && y == 8 || x == 5 && y == 2 || x == 5 && y == 5\n\t\t\t\t\t|| x == 5 && y == 8 || x == 8 && y == 2 || x == 8 && y == 5 || x == 8 && y == 8) { // canto direito baixo\n\t\t\t\ttf.setStyle(\"-fx-border-color: #c6c6c6 black black #c6c6c6; -fx-border-width: 1.5;\");\n\t\t\t} else if (x == 2 && y == 1 || x == 2 && y == 4 || x == 2 && y == 7 || x == 5 && y == 1 || x == 5 && y == 4\n\t\t\t\t\t|| x == 5 && y == 7 || x == 8 && y == 1 || x == 8 && y == 4 || x == 8 && y == 7) { // baixo\n\t\t\t\ttf.setStyle(\"-fx-border-color: #c6c6c6 #c6c6c6 black #c6c6c6; -fx-border-width: 1.5;\");\n\t\t\t} else if (x == 2 && y == 0 || x == 2 && y == 3 || x == 2 && y == 6 || x == 5 && y == 0 || x == 5 && y == 3\n\t\t\t\t\t|| x == 5 && y == 6 || x == 8 && y == 0 || x == 8 && y == 3 || x == 8 && y == 6) { // canto esquerda baixo\n\t\t\t\ttf.setStyle(\"-fx-border-color: #c6c6c6 #c6c6c6 black black; -fx-border-width: 1.5;\");\n\t\t\t} else if (x == 1 && y == 0 || x == 1 && y == 3 || x == 1 && y == 6 || x == 4 && y == 0 || x == 4 && y == 3\n\t\t\t\t\t|| x == 4 && y == 6 || x == 7 && y == 0 || x == 7 && y == 3 || x == 7 && y == 6) { // esquerda\n\t\t\t\ttf.setStyle(\"-fx-border-color: #c6c6c6 #c6c6c6 #c6c6c6 black; -fx-border-width: 1.5;\");\n\t\t\t} else if (x == 0 && y == 0 || x == 0 && y == 3 || x == 0 && y == 6 || x == 3 && y == 0 || x == 3 && y == 3\n\t\t\t\t\t|| x == 3 && y == 6 || x == 6 && y == 0 || x == 6 && y == 3 || x == 6 && y == 6) { // canto esquerda cima\n\t\t\t\ttf.setStyle(\"-fx-border-color: black #c6c6c6 #c6c6c6 black; -fx-border-width: 1.5;\");\n\t\t\t} else if (x == 0 && y == 1 || x == 0 && y == 4 || x == 0 && y == 7 || x == 3 && y == 1 || x == 3 && y == 4\n\t\t\t\t\t|| x == 3 && y == 7 || x == 6 && y == 1 || x == 6 && y == 4 || x == 6 && y == 7) { // cima\n\t\t\t\ttf.setStyle(\"-fx-border-color: black #c6c6c6 #c6c6c6 #c6c6c6; -fx-border-width: 1.5;\");\n\t\t\t} else if (x == 0 && y == 2 || x == 0 && y == 5 || x == 0 && y == 8 || x == 3 && y == 2 || x == 3 && y == 5\n\t\t\t\t\t|| x == 3 && y == 8 || x == 6 && y == 2 || x == 6 && y == 5 || x == 6 && y == 8) { // canto direita cima\n\t\t\t\ttf.setStyle(\"-fx-border-color: black black #c6c6c6 #c6c6c6; -fx-border-width: 1.5;\");\n\t\t\t} else {\n\t\t\t\ttf.setStyle(\"\");\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "19c4db7ea61b0ade8c46115201faadae", "score": "0.52231306", "text": "private Earth() { grid = new Entity[height][width]; }", "title": "" }, { "docid": "3f864ad84d09aadb471cb85de17df359", "score": "0.52177584", "text": "public static void IntialTableUpdater(String [][] array) {\r\n \t\r\n \tfor(int i = 1; i <9; i++ ) {\r\n \t\tfor(int j = 0; j < 3; j++) {\r\n \t\t\r\n \t\t\tlablearray[i][j].setText(array[i-1][j]);\r\n \t\t\t\r\n \t\t}\r\n \t}\r\n }", "title": "" }, { "docid": "147ac0a3a234f41ff29b56309dc55483", "score": "0.52108276", "text": "private void setUpBoard() {\n\t\tfor (int row = 0; row < Constants.NUM_ROWS; row++) {\n\t\t\tfor (int col = 0; col < Constants.NUM_COLS; col++) {\n\t\t\t\t/*\n\t\t\t\t * Graphical placement of the TetrisSquares according to their logical locations\n\t\t\t\t * in the array.\n\t\t\t\t */\n\t\t\t\tint xLoc = col * Constants.SQUARE_SIZE;\n\t\t\t\tint yLoc = row * Constants.SQUARE_SIZE;\n\t\t\t\tif (row < Constants.BOARD_LOW_CUTOFF || row >= Constants.ENDING_ROW || col < Constants.BOARD_LOW_CUTOFF\n\t\t\t\t\t\t|| col >= Constants.ENDING_COL) {\n\t\t\t\t\tTetrisSquare borderSquare = new TetrisSquare();\n\t\t\t\t\tborderSquare.getTetrisSquare().setFill(Color.DARKSLATEBLUE);\n\t\t\t\t\t_board[row][col] = borderSquare; // logically adding the border squares.\n\t\t\t\t\tborderSquare.getTetrisSquare().setX(xLoc);\n\t\t\t\t\tborderSquare.getTetrisSquare().setY(yLoc);\n\t\t\t\t\t_tetrisPane.getChildren().addAll(_board[row][col].getTetrisSquare()); \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "943a8f2e248c6604e2cd79b28f8eb07b", "score": "0.5209348", "text": "@Override\n public void setField() {\n this.field = new Field();\n this.field.addCells(true, new Location(0, 0), new Location(0, 1), new Location(0, 2),\n new Location(1, 0), new Location(1, 1), new Location(1, 2), new Location(2, 0),\n new Location(2, 1), new Location(2, 2));\n }", "title": "" }, { "docid": "5ead1d97446b70f26e5164cfe4d6f957", "score": "0.5207842", "text": "public void setNumberOfGridPoints(int n){\n\n this.numberOfGridPoints = n;\n\n //set up the arrays to hold the lines that will be drawn on the axis here\n\n }", "title": "" }, { "docid": "f855df90965cf3f4cb8fbb44eee1dbca", "score": "0.52023566", "text": "public void redrawGridXY() {\n images = new ImageView[Board.gridMaxWidth][Board.gridMaxHeight];\n for (int i = 0; i < Board.gridMaxWidth; i++) {\n for (int j = 0; j < Board.gridMaxHeight; j++) {\n redrawGridXY(i, j);\n }\n }\n }", "title": "" }, { "docid": "1bee513d63fce24b85909cf9f103ed8f", "score": "0.5197814", "text": "public void updateGrid(){\n \n //Clear the grid\n grid.getChildren().clear();\n \n Tile[][] map = path.getMap();\n \n //Fill the matrix with empty tiles\n for (int i = 0; i < path.getSize(); i++){\n for (int j = 0; j < path.getSize(); j++){\n \n grid.add(map[i][j], i, j, 1,1);\n// System.out.println(map[i][j].getType());\n } \n }\n \n updateData();\n \n }", "title": "" }, { "docid": "40c29554fba1361b0e2ddb3f7b35d124", "score": "0.519687", "text": "@Override\n \tpublic void initGui()\n \t{\n \t\tsuper.initGui();\n \t\tKeyboard.enableRepeatEvents(true);\n \t\tint var1 = (this.width - this.xSize) / 2;\n \t\tint var2 = (this.height - this.ySize) / 2;\n \t\ttextField = new GuiTextField(this.fontRenderer, 6, 45, 49, 13);\n \t\ttextField.setMaxStringLength(5);\n \t\ttextField.setFocused(true);\n \t\ttextField.setText(tileEntity.getFrequency() + \"\");\n \n \t\tbutton = new GuiButton(0, 6, 50, 50, 13, \"Set\");\n \t}", "title": "" }, { "docid": "1ee79bc2e82a403d00f28e2aba3c58d3", "score": "0.51966196", "text": "@Test\r\n public void setText() {\n Grid g = new Grid(5, 5);\r\n\r\n // Put some values in the grid cells.\r\n for (int row = 0; row < 5; ++row) {\r\n for (int col = 0; col < 5; ++col)\r\n // Act\r\n g.setText(row, col, \"\" + row + \", \" + col);\r\n }\r\n\r\n // Assert\r\n assertEquals(\"0, 0\", g.getText(0, 0));\r\n assertEquals(\"3, 2\", g.getText(3, 2));\r\n assertEquals(\"4, 4\", g.getText(4, 4));\r\n }", "title": "" }, { "docid": "f3e4a668dcbdfafbf1990adf8c515b18", "score": "0.5162136", "text": "void crearBotones(){\n mapaBotones = new ArrayList< JTextField>();\n \n\n \n filas = 4;\n columnas = 4;\n \n int indice = 1;\n int posicionX = 10;\n int posicionY = 30;\n \n for(int i = 0; i < filas; i++) {\n posicionX = 10;\n for(int j = 0; j < columnas; j++) {\n JTextField boton = new JTextField(\"0\");\n Font fuente=new Font(\"Dialog\", Font.BOLD, 36);\n boton.setFont(fuente);\n boton.setBounds(posicionX, posicionY, 40, 40);\n mapaBotones.add(boton);\n panel.add(boton); \n posicionX += 40;\n if(posicionX==90){\n posicionX+=50;\n }\n indice++;\n }\n \n if(posicionY==70){\n posicionY+=50;\n }\n\n posicionY += 40; \n}\n \n Dimension pantalla=Toolkit.getDefaultToolkit().getScreenSize();\n int height=pantalla.height;\n int width=pantalla.width;\n setSize(width/2,height/2);\n this.setLocationRelativeTo(null);\nthis.setResizable(false);\n}", "title": "" }, { "docid": "8f0322a6fbe03a62ffe97d4fdfbc24e5", "score": "0.5157683", "text": "public Table fill() {\n for (int c = 0; c < columns; c++)\n for (int r = 0; r < rows; r++)\n if (get(c, r) == null) displayables.add(new TextInput().setId(c + \" \" + r));\n JNode.addAll(displayables);\n arrangeCells();\n return this;\n }", "title": "" }, { "docid": "9d2570bf5930fccddd40421fab51bc3b", "score": "0.5157301", "text": "public void init() {\n displayables = new ArrayList<>();\n for (int r = 0; r < rows; r++)\n for (int c = 0; c < columns; c++)\n this.set(r, c, new TextInput());\n tableVisible = true;\n }", "title": "" }, { "docid": "447e4becbeb977b8a2be1a7b36bdb24c", "score": "0.515677", "text": "public GridTemplate() {\n\t\tgrid = new char[20][20];\n\t\tstart = new Point(-1, -1);\n\t}", "title": "" }, { "docid": "0423db2d0f3eb71f2abc770276633f69", "score": "0.5148141", "text": "public void setBoard(Gem[][] newGrid){\n\t\tgrid = newGrid;\n\t}", "title": "" }, { "docid": "8819ac9ba97befe3620978a464bc7831", "score": "0.5147817", "text": "@Override\r\n public int[][] toArray(){\r\n return grid; \r\n }", "title": "" }, { "docid": "4d9b6a7f53b3f1e49982d2d8ce54e819", "score": "0.5142956", "text": "@SuppressWarnings(\"unchecked\")\r\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\r\n private void initComponents() {\r\n\r\n jLabel1 = new javax.swing.JLabel();\r\n jLabel2 = new javax.swing.JLabel();\r\n jLabel3 = new javax.swing.JLabel();\r\n Dimension dim=new Dimension(40,25);\r\n elementos=new javax.swing.JTextField[longitud];\r\n posiciones=new javax.swing.JLabel[longitud];\r\n panel = new javax.swing.JPanel();\r\n panelF = new javax.swing.JPanel();\r\n\r\n for(int i=0;i<longitud;i++){\r\n posiciones[i]=new javax.swing.JLabel();\r\n posiciones[i].setText(\"\"+(i+1));\r\n elementos[i]=new javax.swing.JTextField();\r\n elementos[i].setPreferredSize(dim);\r\n }\r\n jLabel2.setText(Sortrace.getIdioma().getProperty(\"introducirDatosPosicion\"));\r\n jLabel3.setText(Sortrace.getIdioma().getProperty(\"introducirDatosElemento\"));\r\n jLabel1.setText(Sortrace.getIdioma().getProperty(\"introducirDatosEtiquetaEntrada\"));\r\n //this.setLayout(new GridLayout(2,17));\r\n /*this.setLayout(new GridBagLayout());\r\n jLabel1.setHorizontalAlignment(JLabel.CENTER);\r\n jLabel1.setVerticalAlignment(JLabel.NORTH);\r\n jLabel2.setHorizontalAlignment(JLabel.CENTER);\r\n jLabel3.setHorizontalAlignment(JLabel.CENTER);\r\n\r\n GridBagConstraints c = new GridBagConstraints();\r\n c.weightx = 0.0;\r\n c.gridwidth = longitud+1;\r\n c.weighty = 1;\r\n c.gridx = 0;\r\n c.gridy = 0;\r\n this.add(jLabel1, c);\r\n c.weightx = 1;\r\n c.weighty = 1;\r\n c.gridwidth = 1;\r\n c.gridx = 0;\r\n c.gridy = 1;\r\n this.add(jLabel2,c);\r\n for(int i=0;i<longitud;i++) {\r\n c.gridx = i+1;\r\n posiciones[i].setHorizontalAlignment(JLabel.CENTER);\r\n posiciones[i].setVerticalAlignment(JLabel.NORTH);\r\n this.add(posiciones[i],c);\r\n }\r\n c.gridx = 0;\r\n c.gridy = 2;\r\n this.add(jLabel3,c);\r\n for(int i=0;i<longitud;i++) {\r\n c.gridx = i+1;\r\n this.add(elementos[i],c);\r\n }*/\r\n\r\n GroupLayout layout = new GroupLayout(panel);\r\n layout.setAutoCreateGaps(true);\r\n layout.setAutoCreateContainerGaps(true);\r\n panel.setLayout(layout);\r\n\r\n // Set for horizontal and vertical group\r\n GroupLayout.SequentialGroup hGroup = layout.createSequentialGroup();\r\n GroupLayout.ParallelGroup pGroup = layout\r\n .createParallelGroup(GroupLayout.Alignment.CENTER);\r\n pGroup.addComponent(jLabel2);\r\n pGroup.addComponent(jLabel3);\r\n hGroup.addGroup(pGroup);\r\n for (int i=0;i<longitud;i++) {\r\n GroupLayout.ParallelGroup p1Group = layout\r\n .createParallelGroup(GroupLayout.Alignment.CENTER);\r\n p1Group.addComponent(posiciones[i]);\r\n elementos[i].setMinimumSize(new Dimension(35,30));\r\n elementos[i].setMaximumSize(new Dimension(35,30));\r\n elementos[i].setPreferredSize(new Dimension(35,30));\r\n p1Group.addComponent(elementos[i]);\r\n hGroup.addGroup(p1Group);\r\n }\r\n\r\n GroupLayout.SequentialGroup vGroup = layout.createSequentialGroup();\r\n GroupLayout.ParallelGroup v1Group = layout\r\n .createParallelGroup(GroupLayout.Alignment.CENTER);\r\n vGroup.addGroup(v1Group);\r\n v1Group.addComponent(jLabel2);\r\n for (int i=0;i<longitud;i++) {\r\n v1Group.addComponent(posiciones[i]);\r\n }\r\n GroupLayout.ParallelGroup v2Group = layout\r\n .createParallelGroup(GroupLayout.Alignment.CENTER);\r\n vGroup.addGroup(v2Group);\r\n v2Group.addComponent(jLabel3);\r\n for (int i=0;i<longitud;i++) {\r\n v2Group.addComponent(elementos[i]);\r\n }\r\n layout.setHorizontalGroup(hGroup);\r\n layout.setVerticalGroup(vGroup);\r\n\r\n panelF.setLayout(new FlowLayout());\r\n ImageIcon imagen=new ImageIcon(getClass().getResource(\"/util/icon/Boton_Introducir_Datos.png\"));\r\n JLabel im = new JLabel();\r\n im.setIcon(imagen);\r\n\r\n panelF.add(im);\r\n panelF.add(jLabel1);\r\n\r\n this.setLayout(new BorderLayout(20,10));\r\n this.add(panelF, BorderLayout.NORTH);\r\n this.add(panel, BorderLayout.CENTER);\r\n\r\n if(Sortrace.getConfig().getModo().equals(\"si\")) {\r\n jLabel1.setForeground(Sortrace.getConfig().getTextoModoOscuro());\r\n jLabel2.setForeground(Sortrace.getConfig().getTextoModoOscuro());\r\n jLabel3.setForeground(Sortrace.getConfig().getTextoModoOscuro());\r\n for(int i=0;i<posiciones.length;i++) {\r\n posiciones[i].setForeground(Sortrace.getConfig().getTextoModoOscuro());\r\n }\r\n panel.setBackground(Sortrace.getConfig().getFondoModoOscuro());\r\n panelF.setBackground(Sortrace.getConfig().getFondoModoOscuro());\r\n this.setBackground(Sortrace.getConfig().getFondoModoOscuro());\r\n }else{\r\n jLabel1.setForeground(UIManager.getColor(\"JLabel.foreground\"));\r\n jLabel2.setForeground(UIManager.getColor(\"JLabel.foreground\"));\r\n jLabel3.setForeground(UIManager.getColor(\"JLabel.foreground\"));\r\n for(int i=0;i<posiciones.length;i++) {\r\n posiciones[i].setForeground(UIManager.getColor(\"JLabel.foreground\"));\r\n }\r\n panel.setBackground(UIManager.getColor(\"JPanel.background\"));\r\n panelF.setBackground(UIManager.getColor(\"JPanel.background\"));\r\n this.setBackground(UIManager.getColor(\"JPanel.background\"));\r\n }\r\n\r\n }", "title": "" }, { "docid": "ba62eb481c0e17f0292bc7b0f7e96e1d", "score": "0.51406664", "text": "public void setGridProperty(ArrayList<ArrayList<StringProperty>> grid,\n int column, int row, StringProperty prop) {\n grid.get(row).set(column, prop);\n }", "title": "" }, { "docid": "63ae719ec35dd2182f7714c15ad1b6c8", "score": "0.51335645", "text": "private void updateRow(int i, int[] array) {\n for (int j = 0; j < DIMENSION; j++) {\n gridNum[i][j] = array[j];\n }\n }", "title": "" }, { "docid": "af6a88edb0a5b1a66ab784e9c3d727b0", "score": "0.5120057", "text": "public Field[][] getGrid() {\n\t\treturn grid;\n\t}", "title": "" }, { "docid": "880ff8e8ff4e6560af59458ba25578cc", "score": "0.5114789", "text": "public void resetGrid() {\n\n for (int i = 0; i < this.getGridValues().length; i++) {\n\n this.setGridValue(i, 0);\n }\n }", "title": "" }, { "docid": "6e2649c8d8b500d604996ef2eaaad9b6", "score": "0.51147425", "text": "private void initializeGrid() {\n\n grid = new JButton[length][width];\n\n for (int i = 0; i < length; i++) {\n for (int j = 0; j < width; j++) {\n JButton button = new JButton();\n button.setOpaque(true);\n\n if ((i + j) % 2 == 0) {\n button.setBackground(Color.WHITE);\n } else {\n button.setBackground(Color.PINK);\n }\n button.setBorderPainted(false);\n\n addActionListener(button, i, j);\n\n addPiece(button, i, j);\n grid[i][j] = button;\n }\n }\n }", "title": "" }, { "docid": "59a048d51dade0bcd3ea741e5b5714f0", "score": "0.5111994", "text": "public void setArray(Array7x7 array7x7) {\r\n\t\tfor(int i = 0; i < 7; i++) {\r\n\t\t\tfor(int j = 0; j < 7; j++) {\r\n\t\t\t\tthis.array[i][j] = array7x7.getElement(i, j);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "1747de488bd40ab210260cf9f80fa40d", "score": "0.51075524", "text": "public TTTBoard(){\n board = new char[3][3];\n reset();\n }", "title": "" }, { "docid": "68f8c39117dba4b07769d16386e5830b", "score": "0.5102889", "text": "private void initBoard()\n {\n for( int i = 0 ; i < height; i++)\n {\n for( int j = 0 ;j < width; j++)\n {\n tetrisBoard[i][j] = new JPanel() {\n\n @Override\n public Dimension getPreferredSize() {\n return new Dimension(40, 40);\n }\n };\n setDefaultColorOfBoard(i, j);\n tetrisBoard[i][j].setBorder(BorderFactory.createLineBorder(Color.GRAY));\n }\n }\n }", "title": "" }, { "docid": "fbd12a6b343efc9cddca5930795a18d8", "score": "0.5100931", "text": "public TilePuzzleWindow(TilePuzzle currPuz, TileListener listen) {\n puzzle = currPuz;\n nums = puzzle.getGrid();\n rowLength = nums.length;\n columnLength = nums[0].length;\n Toolkit toolkit = Toolkit.getDefaultToolkit();\n currListen = listen;\n substance = this.getContentPane();\n substance.setLayout(new GridLayout(rowLength, columnLength));\n substance.setBackground(Color.BLACK);\n grid = new JLabel[rowLength + 1][columnLength + 1]; \n //This section is for initilizing the values of the JLabel array.\n for (int i = 0; i < rowLength; i++) {\n for (int j = 0; j < columnLength; j++) {\n grid[i][j] = new JLabel(nums[i][j] + \"\");\n grid[i][j].setBorder(new LineBorder(Color.GREEN));\n grid[i][j].setHorizontalAlignment(SwingConstants.CENTER);\n grid[i][j].setVerticalAlignment(SwingConstants.CENTER);\n grid[i][j].addMouseListener(listen);\n grid[i][j].setForeground(Color.GREEN);\n if (nums[i][j] == -1) {\n grid[i][j].setForeground(Color.BLACK);\n }\n substance.add(grid[i][j]);\n }\n }\n setTitle(\"TileMania. Number of moves: \" + currPuz.numTileMoves()\n + \". All your base are belong to us.\");\n pack();\n setSize(toolkit.getScreenSize().width / 2,\n toolkit.getScreenSize().height / 2);\n setLocation(toolkit.getScreenSize().width / 4,\n toolkit.getScreenSize().height / 4);\n setVisible(true);\n }", "title": "" }, { "docid": "6b6a707e9c45f6db87c79d45af25188b", "score": "0.50921226", "text": "public String sboxes(String[] kerArray) {\n //3d array for the sboxes\n int[][][] sbox = { { {14, 4, 13, 1, 2, 15, 11, 8, 3, 10, 6, 12, 5, 9, 0, 7},\n {0, 15, 7, 4, 14, 2, 13, 1, 10, 6, 12, 11, 9, 5, 3, 8},\n {4, 1, 14, 8, 13, 6, 2, 11, 15, 12, 9, 7, 3, 10, 5, 0},\n {15, 12, 8, 2, 4, 9, 1, 7, 5, 11, 3, 14, 10, 0, 6, 13}\n },\n \n { {15, 1, 8, 14, 6, 11, 3, 4, 9, 7, 2, 13, 12, 0, 5, 10},\n {3, 13, 4, 7, 15, 2, 8, 14, 12, 0, 1, 10, 6, 9, 11, 5},\n {0, 14, 7, 11, 10, 4, 13, 1, 5, 8, 12, 6, 9, 3, 2, 15},\n {13, 8, 10, 1, 3, 15, 4, 2, 11, 6, 7, 12, 0, 5, 14, 9}\n \t\t },\n \t\t \n \t\t { {10, 0, 9, 14, 6, 3, 15, 5, 1, 13, 12, 7, 11, 4, 2, 8},\n {13, 7, 0, 9, 3, 4, 6, 10, 2, 8, 5, 14, 12, 11, 15, 1},\n {13, 6, 4, 9, 8, 15, 3, 0, 11, 1, 2, 12, 5, 10, 14, 7},\n {1, 10, 13, 0, 6, 9, 8, 7, 4, 15, 14, 3, 11, 5, 2, 12}\n \t\t },\n \t\t \n \t\t { {7, 13, 14, 3, 0, 6, 9, 10, 1, 2, 8, 5, 11, 12, 4, 15},\n \t\t {13, 8, 11, 5, 6, 15, 0, 3, 4, 7, 2, 12, 1, 10, 14, 9},\n \t\t {10, 6, 9, 0, 12, 11, 7, 13, 15, 1, 3, 14, 5, 2, 8, 4},\n \t\t {3, 15, 0, 6, 10, 1, 13, 8, 9, 4, 5, 11, 12, 7, 2, 14}\n \t\t },\n \t\t \n { {2, 12, 4, 1, 7, 10, 11, 6, 8, 5, 3, 15, 13, 0, 14, 9},\n \t\t {14, 11, 2, 12, 4, 7, 13, 1, 5, 0, 15, 10, 3, 9, 8, 6},\n \t\t {4, 2, 1, 11, 10, 13, 7, 8, 15, 9, 12, 5, 6, 3, 0, 14},\n \t\t {11, 8, 12, 7, 1, 14, 2, 13, 6, 15, 0, 9, 10, 4, 5, 3}\n },\n \n { {12, 1, 10, 15, 9, 2, 6, 8, 0, 13, 3, 4, 14, 7, 5, 11},\n {10, 15, 4, 2, 7, 12, 9, 5, 6, 1, 13, 14, 0, 11, 3, 8},\n \t {9, 14, 15, 5, 2, 8, 12, 3, 7, 0, 4, 10, 1, 13, 11, 6},\n {4, 3, 2, 12, 9, 5, 15, 10, 11, 14, 1, 7, 6, 0, 8, 13}\n \t\t },\n \t\t \n { {4, 11, 2, 14, 15, 0, 8, 13, 3, 12, 9, 7, 5, 10, 6, 1},\n {13, 0, 11, 7, 4, 9, 1, 10, 14, 3, 5, 12, 2, 15, 8, 6},\n {1, 4, 11, 13, 12, 3, 7, 14, 10, 15, 6, 8, 0, 5, 9, 2},\n {6, 11, 13, 8, 1, 4, 10, 7, 9, 5, 0, 15, 14, 2, 3, 12}\n },\n \n { {13, 2, 8, 4, 6, 15, 11, 1, 10, 9, 3, 14, 5, 0, 12, 7},\n {1, 15, 13, 8, 10, 3, 7, 4, 12, 5, 6, 11, 0, 14, 9, 2},\n {7, 11, 4, 1, 9, 12, 14, 2, 0, 6, 10, 13, 15, 3, 5, 8},\n {2, 1, 14, 7, 4, 10, 8, 13, 15, 12, 9, 0, 3, 5, 6, 11}\n }\n };\n \n //Where S is the sbox and B is the 6bit number sent in.\n //sbit is Si(Bi) where i is (1 <= i <= 8).\n String sbit = \"\";\n String sbResult = \"\"; \n for (int i = 0; i < kerArray.length; i++) {\n\n //convert first and last binary digit to int to get row of s1.\n int row1 = Integer.parseInt((kerArray[i].substring(0, 1)\n + kerArray[i].substring(kerArray[i].length() - 1)), 2);\n \n //convert 4 middle bits to int to get the column of sboxes.\n int column1 = Integer.parseInt((kerArray[i].substring(1, 5)), 2);\n sbit = Integer.toBinaryString(sbox[i][row1][column1]);\n \n //make sure the result is 4 bits long, if not add \"0\" until 4 bits.\n while (sbit.length() < 4) {\n sbit = \"0\" + sbit;\n }\n \n sbResult = sbResult + sbit;\n }\n \n return sbResult;\n }", "title": "" }, { "docid": "58ab7cd9ba28fcb939aa2d456b253718", "score": "0.5087988", "text": "abstract public double[] gridToScreen(double[] grid, IGraphicsTarget target);", "title": "" }, { "docid": "2fa6e65e6022d77a0872f8d3953fc2ac", "score": "0.50807005", "text": "public SudokuGUI(Board boardObj, int dim, int col, int row) {\n this.dim = dim;\n this.row = row;\n this.col = col;\n this.boardObj = boardObj;\n container = boardObj.solutions;\n size = boardObj.solutions.getSolutionCount();\n\n board = new JTextField[dim][dim];\n\n setPreferredSize(new Dimension(dim * SQUARE_SIZE,\n dim * SQUARE_SIZE + PLACE_TOP));\n setTitle(\"Sudoku \" + dim +\" x \"+ dim );\n setDefaultCloseOperation(EXIT_ON_CLOSE);\n setLayout(new BorderLayout());\n\n JPanel buttonPanel = makeButtons();\n JPanel boardPanel = makeBoard();\n JPanel solutionCountPanel = solutionCount();\n\n getContentPane().add(buttonPanel,BorderLayout.NORTH);\n getContentPane().add(boardPanel,BorderLayout.CENTER);\n getContentPane().add(solutionCountPanel,BorderLayout.SOUTH);\n pack();\n setVisible(true);\n }", "title": "" }, { "docid": "e3398f6f77a2f1f8ca61e1b5668cb661", "score": "0.5076303", "text": "public void resetField()\n {\n for (int i = 0; i < width; i++)\n for (int j = 0; j < height; j++)\n field[i][j] = new EmptySpace();\n }", "title": "" }, { "docid": "a77cbe6e40e3494fb77d280443be9cea", "score": "0.50748", "text": "public FrontEnd(Config configValue, AnimObject[][] gridContentsValue)\n {\n gridContents = gridContentsValue;\n\t\tconfig = configValue;\n gridX = config.GRID_WIDTH;\n gridY = config.GRID_HEIGHT;\n drawGrid = config.DRAW_GRID_FLAG;\n createGUI();\n }", "title": "" }, { "docid": "b0a0c81a5cbad095a777b5d4fa086dd4", "score": "0.50684565", "text": "public static void setInput(){\n\n \tinputArray = new int[]{ 0 , 5 , 25 , 30 , -80 , 20 , 6};\n }", "title": "" }, { "docid": "adad48ae663bf00d063f32538be3de42", "score": "0.50659096", "text": "private ArrayList<Component>[][] processGrid(List<ArrayList<String>> data){\r\n\t\t@SuppressWarnings(\"unchecked\")\r\n\t\tArrayList<Component>[][] result = new ArrayList[data.size()][data.get(0).size()];\r\n\t\tArrayList<Component> temp;\r\n\t\t\r\n\t\tfor(int i = 0; i < result.length; i++){\r\n\t\t\tfor(int j = 0; j < result[0].length; j++){\r\n\t\t\t\ttemp = new ArrayList<>();\r\n\t\t\t\t\ttemp.add(factory.make(convertStringToType(data.get(i).get(j)), new Coordinate(i, j), this));\r\n\t\t\t\tresult[i][j] = temp;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn result;\r\n\t}", "title": "" }, { "docid": "898c6a416dc330c9a334fd30dca53507", "score": "0.5062818", "text": "public void setBox(Box b, int row, int column){\n grid[row][column] = b;\n }", "title": "" } ]
f7ef4bb302cb058c15c894fab05fc13f
In the current implementation we see which files to merge by consulting the properties file returns 1 If the value was missing or not an integer value for "NumberOfFiles" property returns 0 If the value was valid unsigned value for "NumberOfFiles" property otherwise returns the value of the "NumberOfFiles" property
[ { "docid": "59f07f530858bae61a127540fa60651c", "score": "0.72636944", "text": "public int getNumberOfFilesToMerge(String forPropFile){\n\n\t\t//System.out.println(\" **** getNumberOfFilesToMerge(Entering)\");\n\n\t\tProperties properties = getProperties(forPropFile);\n\t\tString valueNof = getAttributeValue(\"NumberOfFiles\", properties);\n\n\t\t//System.out.println(\" **** getNumberOfFilesToMerge(NumberOfFiles attribute) = \" + valueNof);\n\n\t\tint nof = -1;\n\t\t// If the file doesn't say how many schematron files there should be - the property file is in error\n\t\t\n\t\tString numbFilesWarning = \"\";\n\t\tif (valueNof == null) {\n\t\t\t\n\t\t\tnumbFilesWarning = String.format(\"---------- Warning - the definition of NumberOfFiles parameter is missing from property file named \\\"%s\\\"\", forPropFile);\n\t\t\tSystem.err.println(numbFilesWarning );\n\t\t\treturn (nof);\n\t\t}\n\n\n\t\tnof = 0;\n\t\ttry {\n\t\t\tnof = Integer.parseInt(valueNof);\n\t\t}\n\t\tcatch(NumberFormatException e){\n\t\t\tnumbFilesWarning = String.format(\"---------- Warning - Ignoring the definition of NumberOfFiles parameter (e.g. %s) -not given as an number in\" , valueNof, forPropFile);\n\t\t\tSystem.err.println(numbFilesWarning );\n\t\t}\n\n\t\treturn (nof);\n\t}", "title": "" } ]
[ { "docid": "3955742231b52bfb38721b5d61d5ab70", "score": "0.61933607", "text": "@java.lang.Override\n public int getFilesCount() {\n return files_.size();\n }", "title": "" }, { "docid": "7688915b1b38f4e58b7a3d5670521d94", "score": "0.61737406", "text": "int getFilesCount();", "title": "" }, { "docid": "7688915b1b38f4e58b7a3d5670521d94", "score": "0.61737406", "text": "int getFilesCount();", "title": "" }, { "docid": "7688915b1b38f4e58b7a3d5670521d94", "score": "0.61737406", "text": "int getFilesCount();", "title": "" }, { "docid": "7688915b1b38f4e58b7a3d5670521d94", "score": "0.61737406", "text": "int getFilesCount();", "title": "" }, { "docid": "31f5d25deed3e96688adcf631987371c", "score": "0.5910474", "text": "public int getFilesCount() {\n return files_.size();\n }", "title": "" }, { "docid": "31f5d25deed3e96688adcf631987371c", "score": "0.5910474", "text": "public int getFilesCount() {\n return files_.size();\n }", "title": "" }, { "docid": "3b538d0f0815f873b3e9aa29da59257d", "score": "0.58160216", "text": "public int getFilesCount() {\n if (filesBuilder_ == null) {\n return files_.size();\n } else {\n return filesBuilder_.getCount();\n }\n }", "title": "" }, { "docid": "058e72fac4a03b25bb9e783932df4869", "score": "0.58093554", "text": "public int getFilesCount() {\n if (filesBuilder_ == null) {\n return files_.size();\n } else {\n return filesBuilder_.getCount();\n }\n }", "title": "" }, { "docid": "058e72fac4a03b25bb9e783932df4869", "score": "0.58093554", "text": "public int getFilesCount() {\n if (filesBuilder_ == null) {\n return files_.size();\n } else {\n return filesBuilder_.getCount();\n }\n }", "title": "" }, { "docid": "51af7f039582f0fbe03938360bda8818", "score": "0.57777023", "text": "protected int getNumberOfFiles ( ) {\r\n\t\treturn USNOA20_cat_N;\r\n\t}", "title": "" }, { "docid": "4680e16a8135a6dc81efde7d51d2d9cf", "score": "0.5757642", "text": "public int filesCount() {\n return files.length;\n }", "title": "" }, { "docid": "2a31e4eae620a2ceeb5be246f9834bfb", "score": "0.5741687", "text": "public int getFileCount()\r\n {\r\n return fileCount;\r\n }", "title": "" }, { "docid": "d4164b5a5b0f316548a684b7cd17581b", "score": "0.5735939", "text": "private void mergeFile(){\n if(infoFile == null) {\n Messages.showInfo(\"Please, select a file\");\n return;\n }\n // lectura del archivo info\n Info info;\n try {\n info = new Info(infoFile);\n } catch(MessageException ex) {\n Messages.showError(ex.getMessage());\n return;\n }\n // comprobamos si existe el archivo de salida\n if(info.outputFile.exists()) {\n if(!Messages.showOption(\"Overwrite\", \"The output file already exists. Overwrite?\")) {\n return;\n }\n }\n \n try {\n Merge merge = new Merge(info);\n merge.goMerge();\n Messages.showInfo(\" File merged successfully :) \");\n } catch(MessageException ex) {\n Messages.showError(ex.getMessage());\n } catch(Exception ex) {\n Messages.showError(\" Cannot merge files :( \");\n }\n }", "title": "" }, { "docid": "36771f9de0207d89c49726c9a884effe", "score": "0.5714177", "text": "int getPublishedFilesCount();", "title": "" }, { "docid": "e939aca63deda6957cb223975e74b0a3", "score": "0.5595129", "text": "int getDataFilesCount();", "title": "" }, { "docid": "6e7994cb253c44e184cb890c0de7ebf9", "score": "0.557087", "text": "public int getFilesNumber() {\r\n\treturn choosedModel.size();\r\n }", "title": "" }, { "docid": "151ee7ea0305528869885071ffabe491", "score": "0.55672693", "text": "public long FileCount() {\r\n\t\treturn fileCount;\r\n\t}", "title": "" }, { "docid": "7a54a4b55af0ae6674abd7a271219121", "score": "0.5539171", "text": "public int numFiles() throws RemoteException;", "title": "" }, { "docid": "e16ca73ed9b22269c85dd7246eb2bedc", "score": "0.54864967", "text": "public long getTotalFiles() {\n return totalFiles;\n }", "title": "" }, { "docid": "11b30c4abf2f5bd9693848d0f6b8a48f", "score": "0.5478101", "text": "public int numFile() {\n return this.contents.size();\n }", "title": "" }, { "docid": "ab275069205677c7ae53efd70daff5e1", "score": "0.54394567", "text": "@java.lang.Override\n public int getPublishedFilesCount() {\n return publishedFiles_.size();\n }", "title": "" }, { "docid": "96e3409959c41e4ee9a1edcc5eaae3fa", "score": "0.54064673", "text": "Long maximumNumberOfFiles();", "title": "" }, { "docid": "4f131178112c5f7c3fdd4d793326c102", "score": "0.5379971", "text": "public int getPublishedFilesCount() {\n if (publishedFilesBuilder_ == null) {\n return publishedFiles_.size();\n } else {\n return publishedFilesBuilder_.getCount();\n }\n }", "title": "" }, { "docid": "c53a97211a4294e2f4e0221634606858", "score": "0.53744984", "text": "private int scanConfigFiles(List<String> fileList) \n {\n int Index = 0;\n SortedSet<File> sortedSet = null;\n SortedSet<File> filteredSet = new TreeSet<File>();\n\n if( mDirString != null )\n {\n File cfgDir = new File( mDirString );\n try\n {\n // Generate a list of all files in the XML config directory\n for( File cfgFile : cfgDir.listFiles() )\n {\n // only want to bother about kosher files that are not hidden and are readable\n if( cfgFile.isFile() && (!cfgFile.isHidden()) && cfgFile.canRead() )\n {\n if( sortedSet == null )\n {\n sortedSet = new TreeSet<File>();\n }\n \n sortedSet.add( cfgFile );\n }\n }\n \n /*\n * Note that sortedSet will be null when the associated directory is\n * empty - an acceptable position for the Enricher.\n */\n if (fileList != null && !fileList.isEmpty())\n { \t\n\t for (String fileName : fileList)\n\t {\n\t String trimName = fileName.replace(\"\\\"\", \"\");\n\t \tboolean found = false;\n\t \tfor (File file : sortedSet)\n\t \t{\n\t \t\tif (file.getName().equals(trimName))\n\t \t\t{\n\t \t\t\tfilteredSet.add(file);\n\t \t\t\tfound = true;\n\t \t\t}\n\t \t}\n\t \t\n\t if (!found)\n\t \t{\n\t \t\tLoggerManager.getLogger().warn(\"File \" + fileName + \" in directory\" + \n\t \t\t\t\tcfgDir.getAbsolutePath() + \" missing or not readable\");\n\t \t}\n\t }\n }\n else if (sortedSet != null)\n {\n \tfilteredSet.addAll(sortedSet);\n }\n \n if( filteredSet != null && !filteredSet.isEmpty())\n {\n mFileNameArray = new String[filteredSet.size()];\n mFileModArray = new long[filteredSet.size()];\n Iterator<File> FileIter = filteredSet.iterator();\n while( FileIter.hasNext() )\n {\n File tmpFile = FileIter.next();\n mFileModArray[Index] = tmpFile.lastModified(); \n mFileNameArray[Index] = tmpFile.getName();\n Index++;\n }\n }\n }\n catch( Exception e )\n {\n LoggerManager.getLogger().error( \"scanConfigFiles: \" + e );\n }\n }\n return Index;\n }", "title": "" }, { "docid": "3c3b72fc81118a9c50d59a9b95747b52", "score": "0.53686273", "text": "public long getTotalFilesSize();", "title": "" }, { "docid": "396e4e2a606bdbbbbc3183ffdf6bcf6f", "score": "0.5361374", "text": "int getTaggedPublishedfileidCount();", "title": "" }, { "docid": "acf9289b2a167f986d57240f738f407b", "score": "0.5303489", "text": "public int getNumberOfMembersInFile() { return nMembersInFile; }", "title": "" }, { "docid": "d107d6105b11a8f37db494a56f4dc77b", "score": "0.53013945", "text": "int getSubscribedFilesCount();", "title": "" }, { "docid": "b67a824b3e5ec52eeaa7838c4ec4fc67", "score": "0.52853453", "text": "public long getFiles() {\n\t\treturn this.files;\n\t}", "title": "" }, { "docid": "c674a5cf65e96dadcc136ca8d6de27dd", "score": "0.528282", "text": "public int getDataFilesCount() {\n return dataFiles_.size();\n }", "title": "" }, { "docid": "948824f3d618ae292dfeca4cac4baa14", "score": "0.52691156", "text": "int getFileNamesCount();", "title": "" }, { "docid": "6c1eb3d75cace512ea03707127703778", "score": "0.52681273", "text": "int getUploadCount();", "title": "" }, { "docid": "d9b907ca2f45f209b0c66f67f08ad0d2", "score": "0.5257969", "text": "public int getProperties(String filename) {\r\n int cnt = 0;\r\n if (MagicBooleans.trace_mode)\r\n log.info(\"Get Properties: \" + filename);\r\n try {\r\n // Open the file that is the first\r\n // command line parameter\r\n File file = new File(filename);\r\n if (file.exists()) {\r\n if (MagicBooleans.trace_mode)\r\n log.info(\"Exists: \" + filename);\r\n FileInputStream fstream = new FileInputStream(filename);\r\n // Get the object\r\n cnt = getPropertiesFromInputStream(fstream);\r\n // Close the input stream\r\n fstream.close();\r\n }\r\n } catch (Exception e) {// Catch exception if any\r\n System.err.println(\"Error: \" + e.getMessage());\r\n }\r\n return cnt;\r\n }", "title": "" }, { "docid": "6b21d36bb9f0ee5eaeb3f577304127d3", "score": "0.5255529", "text": "public int getNumFiles (String scriptCode)\n {\n return NUM_1_FILES;//temp testor\n }", "title": "" }, { "docid": "385b6d04d9b1434bb77e22a1e46e682a", "score": "0.5234691", "text": "public MergeConfigure (String[] propFilenames){\n\n\t\tif (propFilenames.length != 0) {\n\t\t\tsetActualPropertyFileNames(propFilenames);\n\t\t\tfor (String file : getPropertyFileNames()){\n\t\t\t\tcheckPropFilename(file);\n\t\t\t}\n\t\t}\n\t\t//System.out.println(getPropertyFileNames());\n\n\t}", "title": "" }, { "docid": "f8aebcd883266099af890d8527d3c1c7", "score": "0.5203651", "text": "public int getCount() {\n\t\treturn files.size();\n\t}", "title": "" }, { "docid": "14165439a5eb4068104390b38d9da7fd", "score": "0.5200567", "text": "public int getDataFilesCount() {\n return dataFiles_.size();\n }", "title": "" }, { "docid": "71d6202c345ff7c93d101158ca96885f", "score": "0.51820517", "text": "static int verifyIndexedFileStructure(File root) throws IndexReadException {\n\t\tint itemCount = 0;\n\t\tfor (File f : root.listFiles()) {\n\t\t\tif (f.isDirectory()) {\n\t\t\t\tif (!isHiddenDirName(f.getName())) {\n\t\t\t\t\titemCount += verifyIndexedDirectory(f);\n\t\t\t\t}\n\t\t\t}\n\t\t\telse {\n\t\t\t\tString fname = f.getName();\n\t\t\t\tif (fname.endsWith(PROPERTY_EXT)) {\n\t\t\t\t\tthrow new IndexReadException(\n\t\t\t\t\t\t\"Unexpected property file in filesystem root: \" + fname);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn itemCount;\n\t}", "title": "" }, { "docid": "06b9e6c72c78bf0c6d9bf4f727be8010", "score": "0.51711094", "text": "public int getTaggedPublishedfileidCount() {\n return taggedPublishedfileid_.size();\n }", "title": "" }, { "docid": "d6bc14e82badf39c3b9a97a1aa591198", "score": "0.5160592", "text": "public int getTaggedPublishedfileidCount() {\n return taggedPublishedfileid_.size();\n }", "title": "" }, { "docid": "74325a2d83c45bf018a4a91b9034cea4", "score": "0.5152292", "text": "public static void mergeFiles(String srcDir, String destFile) throws IOException, NoSuchAlgorithmException {\n //This will merge files and save to INBOX\n bmaillog.trace(\"merging file from\" + srcDir + \" To file\" + destFile);\n File directoryPath = new File(srcDir);\n File filesList[] = directoryPath.listFiles();\n int dirLen=filesList.length;\n String files=filesList[0].getName(); //get first file name\n int extractedLen=Integer.parseInt(files.substring(files.lastIndexOf(\"-\") + 1)); // get the last number which indicates total files\n //System.out.println(extractedLen);\n if(extractedLen==dirLen-1) {\n bmaillog.trace(\"number of files in \" + srcDir + \" is equal to\" +dirLen+\" and file range is from 0-\"+extractedLen);\n Scanner sc = null;\n FileWriter writer = new FileWriter(destFile);\n for (File file : filesList) {\n sc = new Scanner(file);\n String input;\n // StringBuffer sb = new StringBuffer();\n while (sc.hasNextLine()) {\n input = sc.nextLine();\n writer.append(input + \"\\n\");\n }\n writer.flush();\n }\n System.out.println(\"File merged\");\n String fileHash1 = getMD5(new File(destFile));\n System.out.println(fileHash1);\n }\n else {\n bmaillog.trace(\"Failure while merging files from folder \" + srcDir + \". Mismatch: files in dir is \" +dirLen+\" and expected is \"+extractedLen);\n System.out.println(\"Failure while merging files from folder \" + srcDir + \". Mismatch: files in dir is \" +dirLen+\" and expected is \"+extractedLen);\n }\n deleteFile(new File(srcDir)); //delete the temp directory\n }", "title": "" }, { "docid": "db8732830c73a5aea7ae07b94527682d", "score": "0.5150139", "text": "public int getSubscribedFilesCount() {\n if (subscribedFilesBuilder_ == null) {\n return subscribedFiles_.size();\n } else {\n return subscribedFilesBuilder_.getCount();\n }\n }", "title": "" }, { "docid": "fb602a4a07b5b63078e2a99c9e138f49", "score": "0.5137645", "text": "public final boolean isMerging() {\n return new File(ddc.getDirectoryFile().getAbsolutePath() + filename + \".merge\").exists();\n }", "title": "" }, { "docid": "2e3eecf9ee4e9a11e3e2784022152d6a", "score": "0.5135761", "text": "@Override\n\tpublic int updateFiles(CommunityFiles communityFiles) {\n\t\treturn mapper.updateFiles(communityFiles);\n\t}", "title": "" }, { "docid": "d3ebfa1e972d36d5e96755727eda3a51", "score": "0.5122836", "text": "public boolean getAlsoCreateHumanReadableVersionOfFiles() {\n\t\treturn alsoCreateHumanReadableVersionOfFiles;\n\t}", "title": "" }, { "docid": "9ae42ed57a870a6d7391658b0103dfa9", "score": "0.5114019", "text": "@java.lang.Override\n public int getSubscribedFilesCount() {\n return subscribedFiles_.size();\n }", "title": "" }, { "docid": "e1f7186f27e8f2e5cdc66643b3d72c64", "score": "0.5113625", "text": "public boolean isMerged()\r\n\t{\r\n\t\ttry {\r\n\t\t\tFileReader fr = new FileReader(this.filePath);\r\n\t\t\tBufferedReader bf = new BufferedReader(fr);\r\n\r\n\t\t\tString line = bf.readLine();\r\n\t\t\t\r\n\t\t\tfr.close();\r\n\t\t\tbf.close();\r\n\t\t\t\r\n\t\t\tif(line.length() <= 324 && line.length() >= 322)\r\n\t\t\t\treturn true;\r\n\t\t}\r\n\t\tcatch (IOException e){\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "title": "" }, { "docid": "1bb5da25f7ebdfbf09720cb3f3c53069", "score": "0.5080471", "text": "private final File getRegularOrMergeFile() {\n // first attempt to find the merge file\n File merge = new File(ddc.getDirectoryFile().getAbsolutePath() + filename + \".merge\");\n if (merge.exists()) {\n return merge;\n }\n // fall back on regular file\n File regular = new File(ddc.getDirectoryFile().getAbsolutePath() + filename);\n return regular;\n }", "title": "" }, { "docid": "acb378dff4ae15033749a7069f50633f", "score": "0.50767964", "text": "public void compare()\n\t{\n\t\tif (file1 == null || file2 == null)\n\t\t{\n\t\t\tfilesMatch = false;\n\t\t\tsetFinalVerdict(\"One or both files are null\");\n\t\t\tboolean file1Null = (file1 == null);\n\t\t\tboolean file2Null = (file2 == null);\n\t\t\taddCompareResult(\"File is NULL\", file1Null + \"\", file2Null + \"\", false);\n\t\t\treturn;\n\t\t}\n\t\taddCompareResult(\"File is NULL\", \"false\", \"false\", true);\n\t\t\n\t\t// Compare for valid signatures\n\t\tif (!file1.isValidSignature() || !file2.isValidSignature())\n\t\t{\n\t\t\tfilesMatch = false;\n\t\t\tsetFinalVerdict(\"One or both files is not a PNG File\");\n\t\t\taddCompareResult(\"File is valid PNG format\", file1.isValidSignature() + \"\", file2.isValidSignature() + \"\", false);\n\t\t\treturn;\n\t\t}\n\t\taddCompareResult(\"File is valid PNG Signature\", \"true\", \"true\", true);\n\t\t\n\t\t// Compare for valid format\n\t\tif (!file1.isPngFileValid() || !file2.isPngFileValid())\n\t\t{\n\t\t\tfilesMatch = false;\n\t\t\tsetFinalVerdict(\"One or both files does not Validate\");\n\t\t\taddCompareResult(\"File passes file format validations\", file1.isPngFileValid() + \"\", file2.isPngFileValid() + \"\", false);\n\t\t\treturn;\n\t\t}\n\t\taddCompareResult(\"File passes file format validations\", \"true\", \"true\", true);\n\n\t\t// Compare file sizes and are they within a 10 byte difference\n\t\tint file1Size = file1.getImageSize();\n\t\tint file2Size = file2.getImageSize();\n\t\tboolean sizesMatch = true;\n\t\tif ((file1Size >= file2Size) && (file2Size + 10 < file1Size))\n\t\t{\n\t\t\tsizesMatch = false;\n\t\t}\n\t\tif ((file2Size >= file1Size) && (file1Size + 10 < file2Size))\n\t\t{\n\t\t\tsizesMatch = false;\n\t\t}\n\t\tif (sizesMatch)\n\t\t{\n\t\t\taddCompareResult(\"File Size\", file1Size + \"\", file2Size + \"\", true);\t\t\t\n\t\t}\n\t\telse\n\t\t{\n\t\t\taddCompareResult(\"File Size\", file1Size + \"\", file2Size + \"\", false);\n\t\t\tsetFinalVerdict(\"File size difference exceeds tollerence\");\n\t\t\tfilesMatch = false;\n\t\t}\n\n\t\t// Compare chunk counts\n\t\tList<PNGFileChunk> file1Chunks = file1.getChunks();\n\t\tList<PNGFileChunk> file2Chunks = file2.getChunks();\n//\t\tboolean chunksMatch = true;\n//\t\tif ((file1Chunks.size() >= file2Chunks.size()) && (file2Chunks.size() + 2 < file1Chunks.size()))\n//\t\t{\n//\t\t\tchunksMatch = false;\n//\t\t}\n//\t\tif ((file2Chunks.size() >= file1Chunks.size()) && (file1Chunks.size() + 2 < file2Chunks.size()))\n//\t\t{\n//\t\t\tchunksMatch = false;\n//\t\t}\n\t\tif (file1Chunks.size() == file2Chunks.size())\n\t\t{\n\t\t\taddCompareResult(\"Chunk Count\", file1Chunks.size() + \"\", file2Chunks.size() + \"\", true);\t\t\t\n\t\t}\n\t\telse\n\t\t{\n\t\t\taddCompareResult(\"Chunk Count\", file1Chunks.size() + \"\", file2Chunks.size() + \"\", false);\n\t\t\tsetFinalVerdict(\"Chunk counts don't match\");\n\t\t\tfilesMatch = false;\n\t\t}\n\t\t\n\t\t\n\t\taddCompareResult(\" \", \" \", \" \", true);\n\t\t// Display each chunk size\n\t\tint maxChunks = file1Chunks.size();\n\t\tif (file2Chunks.size() > maxChunks)\n\t\t{\n\t\t\tmaxChunks = file2Chunks.size();\n\t\t}\n\t\tfor (int i = 0; i < maxChunks; i++)\n\t\t{\n\t\t\tString chunk1Display = \"NA\";\n\t\t\tString chunk2Display = \"NA\";\n\t\t\tint chunk1Size = 0;\n\t\t\tint chunk2Size = 0;\n\t\t\tlong chunk1CRC = 0;\n\t\t\tlong chunk2CRC = 0;\n\t\t\tif (i < file1Chunks.size())\n\t\t\t{\n\t\t\t\tPNGFileChunk chunk1 = file1Chunks.get(i);\n\t\t\t\tchunk1Size = chunk1.getIntLength();\n\t\t\t\tchunk1CRC = chunk1.getIntCrc() & 0x00000000ffffffffL;\n\t\t\t\tchunk1Display = chunk1Size + \" \" + chunk1CRC;\n\t\t\t}\n\t\t\tif (i < file2Chunks.size())\n\t\t\t{\n\t\t\t\tPNGFileChunk chunk2 = file2Chunks.get(i);\n\t\t\t\tchunk2Size = chunk2.getIntLength();\n\t\t\t\tchunk2CRC = chunk2.getIntCrc() & 0x00000000ffffffffL;\n\t\t\t\tchunk2Display = chunk2Size + \" \" + chunk2CRC;\n\t\t\t}\n//\t\t\tPNGFileChunk chunk2 = file2Chunks.get(i);\n//\t\t\tint chunk1Size = chunk1.getIntLength();\n//\t\t\tint chunk2Size = chunk2.getIntLength();\n\t\t\tboolean sizeMatch = chunk1Size == chunk2Size && chunk1CRC == chunk2CRC;\n\t\t\taddCompareResult(\"Chunk \" + (i+1) + \" Size\", chunk1Display, chunk2Display, sizeMatch);\n\n//\t\t\tif (!sizeMatch)\n//\t\t\t{\n//\t\t\t\ttry\n//\t\t\t\t{\n//\t\t\t\t\tfor(byte c : chunk1.getData()) {\n//\t\t\t\t\t System.out.format(\"%d \", c);\n//\t\t\t\t\t}\n//\t\t\t\t\tSystem.out.println();\n//\t\t\t\t\tfor(byte c : chunk2.getData()) {\n//\t\t\t\t\t System.out.format(\"%d \", c);\n//\t\t\t\t\t}\n//\t\t\t\t\tSystem.out.println();\n//\t\t\t\t\tString chunk1Data = new String(chunk1.getData(), 0, chunk1Size);\n//\t\t\t\t\tString chunk2Data = new String(chunk2.getData(), 0, chunk2Size, \"UTF-8\");\n//\t\t\t\t\tSystem.out.println(\"[\" + (i+1) + \"]\" + chunk1Data);\n//\t\t\t\t\tSystem.out.println(\"[\" + (i+1) + \"]\" + chunk2Data);\n//\t\t\t\t} catch (UnsupportedEncodingException e)\n//\t\t\t\t{\n//\t\t\t\t\te.printStackTrace();\n//\t\t\t\t}\n//\n//\t\t\t}\n\t\t\t\n\t\t\tsetFinalVerdict(\"Files were found to be identical\");\n\t\t}\n\t}", "title": "" }, { "docid": "6be25cabe96b62e76789663127fd8eec", "score": "0.5073355", "text": "public int getFileNamesCount() {\n return fileNames_.size();\n }", "title": "" }, { "docid": "f9ff6bfe4d53de425ecb7a507a1901c4", "score": "0.5064265", "text": "int number_of_file();", "title": "" }, { "docid": "f5fe738d9335f6ec97be7a55c3d93588", "score": "0.5045501", "text": "public int getFileNum();", "title": "" }, { "docid": "a050e4690ebadd6beb0dadeedbea72b1", "score": "0.50418085", "text": "public MergeConfigure (){\n\n\t\tthis(legalPropertyFileNames);\n\n\t}", "title": "" }, { "docid": "8fcce2a8e824a55b1145d2a15c86c78e", "score": "0.5029712", "text": "public boolean bibliotecaHasFiles() {\n return dades.getBiblioteca().haveFiles();\n }", "title": "" }, { "docid": "4b31f88e94808da73a66b2d5e2b44a08", "score": "0.5026047", "text": "public int getFileNamesCount() {\n return fileNames_.size();\n }", "title": "" }, { "docid": "2ec902bd582fb26fa0c145b73b83647e", "score": "0.49948174", "text": "private int countRemainingFiles() {\r\n\t\tint remaining = this.totalFileCount;\r\n\r\n\t\tfor (int ii : this.idx) {\r\n\t\t\tremaining -= ii;\r\n\t\t}\r\n\r\n\t\treturn remaining;\r\n\t}", "title": "" }, { "docid": "178e81e36b1bf02c82a985d526dca281", "score": "0.49819165", "text": "public long getNumBytesInFile() {\n return numBytesInFile;\n }", "title": "" }, { "docid": "017c41b4d51054f093b6a52d0ee358af", "score": "0.4970092", "text": "public int getFilenameCount()\n\t{\n\t\tif(filenameList == null)\n\t\t\treturn 0;\n\t\treturn filenameList.size();\n\t}", "title": "" }, { "docid": "779341606f7d12094519552c2add5321", "score": "0.4962778", "text": "public long calcaluteSizeOfFile() {\n\t\ttry {\n\t\t\treturn this.getRaf().length();\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"Can't doing calcalute Size Of File \");\n\t\t}\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "311e03e68f794d56a8f35e8ccf7bc59b", "score": "0.49449483", "text": "private void determineNumberOfChannelToStoreInFile()\r\n{\r\n\r\n //always force file channels to 4 as this object always saves in\r\n //TUBO_BINARY_FORMAT\r\n\r\n if (fileFormat == TUBO_BINARY_FORMAT) {\r\n numberOfChannelsToStoreInFile = 4;\r\n }else{\r\n numberOfChannelsToStoreInFile = 4;\r\n }\r\n\r\n}", "title": "" }, { "docid": "c9a80bd9ba9de0a590f7ff2c74abace3", "score": "0.4943629", "text": "@Test\n public void testMergeFileAndStdin_stdinWithMultipleFile_diffFileDiffNumOfLines() throws Exception {\n try (InputStream inStream = new FileInputStream(FILE_DOUBLE)) {\n String expected = getExpectedResult(FILE_DOU_SIN_TRI);\n assertEquals(expected, pasteApp.mergeFileAndStdin(inStream, DASH, FILE_SINGLE, FILE_TRIPLE));\n }\n \n // Double files, stdin Index at 1\n try (InputStream inStream = new FileInputStream(FILE_SINGLE)) {\n String expected = getExpectedResult(FILE_DOU_SIN_TRI);\n assertEquals(expected, pasteApp.mergeFileAndStdin(inStream, FILE_DOUBLE, DASH, FILE_TRIPLE));\n }\n \n // Double files, stdin Index at 2\n try (InputStream inStream = new FileInputStream(FILE_2)) {\n String expected = getExpectedResult(FILE_NEW_TRI_2);\n assertEquals(expected, pasteApp.mergeFileAndStdin(inStream, FILE_NEW_PATH, FILE_TRIPLE, DASH));\n }\n }", "title": "" }, { "docid": "52588bf2106f29636738d6525223f41f", "score": "0.4940471", "text": "boolean filesOpen() {\n return files.values().stream()\n .anyMatch(fileEntry -> fileEntry.inputOutputObject != null);\n }", "title": "" }, { "docid": "4d86548cc4148cf12da48f13bbf86765", "score": "0.49396896", "text": "public int getDiffFileChunksCount() {\n return diffFileChunks_.size();\n }", "title": "" }, { "docid": "2be36e6107ab8a656df9f4b2d13b2f53", "score": "0.49377358", "text": "boolean hasMergeParameters();", "title": "" }, { "docid": "0f4bba3ee713e3b787b90c10951d7c4c", "score": "0.49259886", "text": "public <T extends Data> int getFilesNumber(Class<T> dataClass) {\n\t\tString className = getDataClass(dataClass);\n\t\tint id = 1;\n\t\tFile file = new File(\"../Data/\" + className + id + DATA_EXTENSION);\n\t\twhile (file.exists()) {\n\t\t\tid ++;\n\t\t\tfile = new File(\"../Data/\" + className + id + DATA_EXTENSION);\n\t\t}\n\t\treturn (id - 1);\n\t}", "title": "" }, { "docid": "fcd89a012a3cf84bd2c64eca2e6bf8f6", "score": "0.4925933", "text": "private int getInputFileConfig(String key) {\r\n return Integer.parseInt(INPUTFILECONFIGPROP.getProperty(key));\r\n }", "title": "" }, { "docid": "873dfd80ba3dd2fce3f0cdb17db1f48d", "score": "0.4906694", "text": "public int advancedCompare(File o1, File o2) {\n\t\tif(!o1.exists())\n\t\t\treturn 1;\n\t\tif(!o2.exists())\n\t\t\treturn -1;\n\t\tif (o1.isDirectory()&&o2.isDirectory())\n\t\t{\n\t\t\tint namecompare = o1.getName().compareTo(o2.getName());\n\t\t\tif(namecompare != 0)\n\t\t\t\treturn namecompare;\n\t\t\tif (o1.length() != o2.length())\n\t\t\t\tif(o1.length() > o2.length())\n\t\t\t\treturn -1;\n\t\t\t\telse return 1;\n\t\t\t\n\t\t\tif (o1.lastModified() != o2.lastModified())\n\t\t\t\tif(o1.lastModified() > o2.lastModified())\n\t\t\t\treturn -1;\n\t\t\t\telse return 1;\n\t\t\t\n\t\t\treturn 0;\n\t\t\t\n\t\t\t\n\t\t}\n\t\tif(o1.isDirectory()&&o2.isFile())\n\t\t\treturn 1;\n\t\tif(o2.isDirectory()&&o1.isFile())\n\t\t\treturn -1;\n\t\t\n\t\tif(o1.isFile()&&o2.isFile())\n\t\t{\n\t\t\tint namecompare = o1.getName().compareTo(o2.getName());\n\t\t\tif(namecompare != 0)\n\t\t\t\treturn namecompare;\n\t\t\tif (o1.length() != o2.length())\n\t\t\t\tif(o1.length() > o2.length())\n\t\t\t\treturn -1;\n\t\t\t\telse return 1;\n\t\t\t\n\t\t\tif (o1.lastModified() != o2.lastModified())\n\t\t\t\tif(o1.lastModified() > o2.lastModified())\n\t\t\t\treturn -1;\n\t\t\t\telse return 1;\n\t\t\t\n\t\t\treturn 0;\n\t\t}\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "9ccabc6a9ded9671e437bcd5c595f322", "score": "0.4904822", "text": "@Override\n protected long compute() {\n try (var stream = Files\n // Return a stream of all entries rooted at mFile.\n .walk(mFile.toPath())) {\n\n return stream\n // Handle files (documents) and directories (folders).\n .mapToLong(entry -> {\n if (Files.isDirectory(entry)) {\n // Increment the count of folders.\n mFolderCount.incrementAndGet();\n\n // We don't count the size of a directory.\n return 0;\n } else {\n // Increment the count of documents.\n mDocumentCount.incrementAndGet();\n\n // Return the number of bytes in the file.\n return entry.toFile().length();\n }\n })\n\n // Sum all the file sizes in all the folders.\n .sum();\n } catch (IOException e) {\n // Return 0 if an exception occurs (shouldn't happen).\n return 0L;\n }\n }", "title": "" }, { "docid": "4a0d8250dffaa4b3170dbdd4cfc3e82b", "score": "0.4895998", "text": "@Test\n public void testMergeFileAndStdin_stdinWithMultipleFile_diffFileSameNumOfLines() throws Exception {\n try (InputStream inStream = new FileInputStream(FILE_1)) {\n String expected = getExpectedResult(FILE_1_2_3);\n assertEquals(expected, pasteApp.mergeFileAndStdin(inStream, DASH, FILE_2, FILE_3));\n }\n \n // Double files, stdin Index at 1\n try (InputStream inStream = new FileInputStream(FILE_2)) {\n String expected = getExpectedResult(FILE_1_2_3);\n assertEquals(expected, pasteApp.mergeFileAndStdin(inStream, FILE_1, DASH, FILE_3));\n }\n \n // Double files, stdin Index at 2\n try (InputStream inStream = new FileInputStream(FILE_3)) {\n String expected = getExpectedResult(FILE_1_2_3);\n assertEquals(expected, pasteApp.mergeFileAndStdin(inStream, FILE_1, FILE_2, DASH));\n }\n }", "title": "" }, { "docid": "4bca5850dce533f382f279b49506d8f2", "score": "0.4890009", "text": "public long getNumberOfFiles() {\n\t\treturn getContainerSize() / FileSystem.FILE_BLOCK_SIZE;\n\t}", "title": "" }, { "docid": "bf774f4ae0e3d2408315e489a0bfe87f", "score": "0.48763338", "text": "@Override\n protected Long compute() {\n if (!file.exists()) {\n System.out.println(file.getAbsolutePath());\n return 0L;\n }\n if (file.isFile()) {\n return file.length();\n } else if (file.isDirectory()) {\n final File[] files = file.listFiles();\n long sum = 0;\n for (File file1 : files) {\n final SumTask sumTask = new SumTask(file1);\n sumTask.fork();\n sum = sum + sumTask.join();\n }\n return sum;\n } else if(Files.isSymbolicLink(file.toPath())) { //这块存在问题,因为先判断了是否有file\n final SumTask sumTask;\n try {\n final File file = Files.readSymbolicLink(this.file.toPath()).toAbsolutePath().toFile();\n System.out.println(file);\n sumTask = new SumTask(file);\n sumTask.fork();\n return sumTask.join();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return 0L;\n }else {\n System.out.println(file.getAbsolutePath());\n }\n return 0L;\n }", "title": "" }, { "docid": "fd2905646584794d745df449b2dd9ad2", "score": "0.4855433", "text": "long maximumSupportedFileSize();", "title": "" }, { "docid": "5ced6c2514d96ff161195f71fa53361a", "score": "0.48531213", "text": "public int getDiffFileChunksCount() {\n if (diffFileChunksBuilder_ == null) {\n return diffFileChunks_.size();\n } else {\n return diffFileChunksBuilder_.getCount();\n }\n }", "title": "" }, { "docid": "f8a382fccceb890c807d053c001ab391", "score": "0.4852412", "text": "@Test\n public void testMergeFileAndStdin_stdinWithMultipleFile_sameFile() throws Exception {\n try (InputStream inStream = new FileInputStream(FILE_1)) {\n String expected = getExpectedResult(FILE_1_1_1);\n assertEquals(expected, pasteApp.mergeFileAndStdin(inStream, DASH, FILE_1, FILE_1));\n }\n \n // Double files, stdin Index at 1\n try (InputStream inStream = new FileInputStream(FILE_1)) {\n String expected = getExpectedResult(FILE_1_1_1);\n assertEquals(expected, pasteApp.mergeFileAndStdin(inStream, FILE_1, DASH, FILE_1));\n }\n \n // Double files, stdin Index at 2\n try (InputStream inStream = new FileInputStream(FILE_1)) {\n String expected = getExpectedResult(FILE_1_1_1);\n assertEquals(expected, pasteApp.mergeFileAndStdin(inStream, FILE_1, FILE_1, DASH));\n }\n }", "title": "" }, { "docid": "e213836c24bc6ca1fd1fdc238abbca0c", "score": "0.4843692", "text": "private void verifyAndEmitFileMerge(String keyName)\n {\n if (currentWindowId <= windowDataManager.getLargestCompletedWindow()) {\n return;\n }\n S3InitiateFileUploadOperator.UploadFileMetadata uploadFileMetadata = fileMetadatas.get(keyName);\n List<PartETag> partETags = uploadParts.get(keyName);\n if (partETags == null || uploadFileMetadata == null ||\n uploadFileMetadata.getFileMetadata().getNumberOfBlocks() != partETags.size()) {\n return;\n }\n\n if (partETags.size() <= 1) {\n uploadedFiles.add(keyName);\n LOG.debug(\"Uploaded file {} successfully\", keyName);\n return;\n }\n\n CompleteMultipartUploadRequest compRequest = new CompleteMultipartUploadRequest(bucketName,\n keyName, uploadFileMetadata.getUploadId(), partETags);\n CompleteMultipartUploadResult result = s3Client.completeMultipartUpload(compRequest);\n if (result.getETag() != null) {\n uploadedFiles.add(keyName);\n LOG.debug(\"Uploaded file {} successfully\", keyName);\n }\n }", "title": "" }, { "docid": "bd0e6a3e0f3b60afd6b403654a0e5b0f", "score": "0.48378128", "text": "public boolean hasMergeParameters() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "title": "" }, { "docid": "137cc6d35fbf5230dd1226f53b8aeb80", "score": "0.48295745", "text": "public static Integer mergeChunks(int numberOfChunks) throws FileNotFoundException, IOException {\r\n List<LineNumberReaderWrapper> chunks = new ArrayList();\r\n List<Reader> reader = new ArrayList();\r\n for (int i = 0; i < numberOfChunks; ++i) {\r\n reader.add(new FileReader(CHUNK + i + TXT));\r\n chunks.add(new LineNumberReaderWrapper(reader.get(i), BUFFER_SIZE)); //buffer size 4 bytes\r\n }\r\n\r\n int numElems = 0;\r\n while (chunksWithContent(chunks)) {\r\n int idChunkChoosen = Integer.MIN_VALUE;\r\n int minimum = Integer.MAX_VALUE;\r\n int temp;\r\n String str;\r\n for (int i = 0; i < chunks.size(); ++i) {\r\n if ((str = chunks.get(i).readLine()) != null) {\r\n temp = Integer.parseInt(str);\r\n chunks.get(i).getLineNumber();\r\n if (minimum > temp) {\r\n minimum = temp;\r\n idChunkChoosen = i;\r\n }\r\n }\r\n }\r\n ++numElems;\r\n writeElementFinalFile(minimum);\r\n chunks.get(idChunkChoosen).moveLine();\r\n }\r\n\r\n for (int i = 0; i < numberOfChunks; ++i) {\r\n reader.get(i).close();\r\n }\r\n\r\n if (numElems == 2) {\r\n return getMedianOfTwo(numElems);\r\n }\r\n if (numElems % 2 == 0) {\r\n return getMedianEven(numElems);\r\n } else {\r\n return getMedianOdd(numElems);\r\n }\r\n }", "title": "" }, { "docid": "3e7b59006247859c0e50954ad2267a79", "score": "0.48290583", "text": "@VisibleForTesting\n boolean isFileCountEqual(final ProjectVersion pv, final int target) {\n final int fileCount;\n try {\n updateFileCount(pv.getInstalledDir(), pv);\n final Path path = Paths.get(pv.getInstalledDir().getPath(), PROJECT_DIR_COUNT_FILE_NAME);\n fileCount = (int) FileIOUtils.readNumberFromFile(path);\n return fileCount == target;\n } catch (final IOException e) {\n log.error(e);\n return false;\n }\n }", "title": "" }, { "docid": "dcede96dfd0f114457ae5f7be7d6a4ee", "score": "0.48247996", "text": "public java.lang.Boolean getMaximumPermissionsSelectFilesFromSalesforce() {\n return maximumPermissionsSelectFilesFromSalesforce;\n }", "title": "" }, { "docid": "20ccebf17db01759a215d80262bc76cf", "score": "0.4812624", "text": "int getFileUpdateTypeValue();", "title": "" }, { "docid": "cf80b08f72bae3cbc23105cbbcb288e4", "score": "0.48118544", "text": "public int compare(File file1, File file2){\n\t\t// Get the paths of the files.\n\t\tString filePath1 = file1.getAbsolutePath();\n\t\tString filePath2 = file2.getAbsolutePath();\n\t\tif (filePath1.compareTo(filePath2) > 0){\n\t\t\treturn FILE1_BIGGER;\n\t\t}\n\t\telse if (filePath1.compareTo(filePath2) < 0){\n\t\t\treturn FILE2_BIGGER;\n\t\t}\n\t\telse{\n\t\t\treturn EQUAL_FILES;\n\t\t}\n\t}", "title": "" }, { "docid": "80741577722aef7f4d2dcde2cf13608a", "score": "0.47899926", "text": "@Override\r\n\tpublic int selectFileCnt() throws Exception {\n\t\treturn boardDao.selectFileCnt();\r\n\t}", "title": "" }, { "docid": "f7e0353b654db8c22f5f439e89d9753c", "score": "0.47848272", "text": "public boolean hasMergeParameters() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "title": "" }, { "docid": "f1af2b7c5826fff6aeae0ce1c6fc94e8", "score": "0.47550347", "text": "public String getMergedFileName() {\n return mergedFileName;\n }", "title": "" }, { "docid": "f08fa76245973cfee10f0d67782a0586", "score": "0.47397682", "text": "int getPropertiesCount();", "title": "" }, { "docid": "f6853f26f2def5e1430ce693754b487b", "score": "0.47302365", "text": "public abstract int getSize(File file);", "title": "" }, { "docid": "0484489d2d86635910e23d18d339a68f", "score": "0.47280324", "text": "public int fileIndex()\n\t\t{\n\t\treturn fileIndex;\n\t\t}", "title": "" }, { "docid": "4a17ec25ff2adf6ad86cdf2fd4ee9223", "score": "0.47228518", "text": "public ArrayList<Integer> compareFiles(String filename1, String filename2) {\n \n\t\tArrayList<Integer> array = new ArrayList<Integer>();\n \n\t\t\ttry {\n\t\t\t\t///* Takes two different files and calls diff on each line *///\n\t\t\t\tFile file1 = new File(filename1);\n\t\t\t\tFile file2 = new File(filename2);\n\t\t\t\tBufferedReader reader1 = new BufferedReader(new FileReader(file1));\n\t\t\t\tBufferedReader reader2 = new BufferedReader(new FileReader(file2));\n\t\t\t\tString line1;\n\t\t\t\tString line2;\n\t\t\t\tint i=1; \n\t\t\t\t\twhile ((line1 = reader1.readLine()) != null && ((line2 = reader2.readLine()) != null)) {\n \n\t\t\t\t\t\tif(!diff(line1, line2)) {\n\t\t\t\t\t\t\t///* Adds different line numbers to array to be ignored*///\n\t\t\t\t\t\t\tarray.add(i);\n\t\t\t\t\t\t}\n\t\t\t\t\t\ti++; \n\t\t\t\t\t}\n\t\t\t\t\treader1.close();\n\t\t\t\t\treader2.close();\n\t\t\t}\n catch(IOException io) {\n \n }\nreturn array;\n}", "title": "" }, { "docid": "408394a7af98c4eff4e1c787276ef5a1", "score": "0.471893", "text": "@JsonIgnore\n public BigInteger repositorySize() {\n return cachedRepositorySize = FileUtils.sizeOfAsBigInteger(path.toFile());\n }", "title": "" }, { "docid": "07a1c8e47358e5da4764324e817b455b", "score": "0.470585", "text": "int getSourcesCount();", "title": "" }, { "docid": "00edcfe5abfeeff78e04bdf569f8d017", "score": "0.4684166", "text": "boolean hasFileSize();", "title": "" }, { "docid": "00edcfe5abfeeff78e04bdf569f8d017", "score": "0.4684166", "text": "boolean hasFileSize();", "title": "" }, { "docid": "00edcfe5abfeeff78e04bdf569f8d017", "score": "0.4684166", "text": "boolean hasFileSize();", "title": "" }, { "docid": "e07d8ab5a7a12d736593134345262d75", "score": "0.4678099", "text": "int readCountOfAllFilms();", "title": "" }, { "docid": "70b62610160c2345d1fb2fc9fccc7a18", "score": "0.46732065", "text": "int getFileType();", "title": "" }, { "docid": "27cc61f7e33faffd48de29bfdd0e03ea", "score": "0.4668991", "text": "@Override\n\t\t\tprotected boolean mergeImpl() throws IOException {\n\t\t\t\treturn mergeTrees(mergeBase(), sourceTrees[0], sourceTrees[1],\n\t\t\t\t\t\ttrue);\n\t\t\t}", "title": "" }, { "docid": "74e81fd3b6f1667eb9d53e8043ed557e", "score": "0.46681243", "text": "public java.lang.Boolean getMaximumPermissionsHasFileSync() {\n return maximumPermissionsHasFileSync;\n }", "title": "" }, { "docid": "ccda10f203b1600b64cbee53453536f3", "score": "0.46643707", "text": "@Override\n public long getRecordCount(Path filepath) {\n String filename = filepath.getName();\n Preconditions.checkArgument(\n filename.startsWith(M_OUTPUT_FILE_PREFIX) || filename.startsWith(MR_OUTPUT_FILE_PREFIX), String.format(\n \"%s is not a supported filename, which should start with %s, or %s.\", filename, M_OUTPUT_FILE_PREFIX,\n MR_OUTPUT_FILE_PREFIX));\n String prefixWithCounts = filename.split(Pattern.quote(SEPARATOR))[0];\n if (filename.startsWith(M_OUTPUT_FILE_PREFIX)) {\n return Long.parseLong(prefixWithCounts.substring(M_OUTPUT_FILE_PREFIX.length()));\n } else {\n return Long.parseLong(prefixWithCounts.substring(MR_OUTPUT_FILE_PREFIX.length()));\n }\n }", "title": "" }, { "docid": "c710334a34037098d8891fe8b06c7870", "score": "0.465345", "text": "public long fileCopyStatus( )\n {\n return srbFileSystem.fileCopyStatus();\n }", "title": "" } ]
638586bedc7bcb3ee105da8eb47b0d1d
Method to start a transaction manually. It's important to stop the transaction
[ { "docid": "f352e3198621409db6bb1845838576a0", "score": "0.62975395", "text": "default void txBegin(String txName) {\n ResponseTimeCollector.current().ifPresent(rtc -> rtc.startTransaction(txName));\n }", "title": "" } ]
[ { "docid": "b02287a490ee7d19d999033e878d844e", "score": "0.84113353", "text": "public void startTransaction();", "title": "" }, { "docid": "01311233c1127cda9ca7f2f68510858c", "score": "0.76932114", "text": "public void beginTransaction();", "title": "" }, { "docid": "61e7f99a1f0952015761ff3e954502ce", "score": "0.7677393", "text": "@Override\n public void startTransaction() {\n Connection connection = getConnection();\n try {\n connection.setAutoCommit(false);\n connection.setSavepoint();\n } catch (SQLException e) {\n InternalAppException exception = new InternalAppException(\"Can't start transaction.\");\n LOGGER.error(exception.getMessage());\n throw exception;\n }\n }", "title": "" }, { "docid": "962e1461121b7d73127e600fc1745506", "score": "0.7516136", "text": "public void begin(Transaction transaction);", "title": "" }, { "docid": "ce46bb953de1cbd17f6305458e3401eb", "score": "0.74268055", "text": "public synchronized void startTransaction() {\n\n boolean noneInProgress = false;\n if (getTransaction() == null || getTransaction().getState().isComplete()) {\n noneInProgress = true;\n\n createTransaction();\n transactionLevel = 0;\n transactionalResource.startTransaction();\n }\n\n transactionLevel++;\n\n if (LOG.isDebugEnabled()) {\n LOG.debug(\"startTransaction: level \" + (transactionLevel - 1) + \"->\" + (transactionLevel) + (noneInProgress ? \" (no transaction in progress or was previously completed; transaction created)\" : \"\"));\n }\n }", "title": "" }, { "docid": "5e3f27a082fa0f1306b2da9252c579e1", "score": "0.7409007", "text": "void start(TransactionManager txManager);", "title": "" }, { "docid": "1ab497ec07363e20785ec79efcc0d3eb", "score": "0.7332771", "text": "void transactionStarted();", "title": "" }, { "docid": "c84de09886a46503d197238a244c322a", "score": "0.7077827", "text": "public void transactionBegin() throws SQLException {\n if(autoConnect){\n if(log.level >= Log.WARNING) log.warning(\"you are trying to begin transaction on connection with autoConnect=true, switching to autoConnect=false\");\n open();\n autoConnect = false;\n }\n if(log.level >= Log.DEBUG) log.debug(\"transactionBegin\");\n inTransaction = true;\n }", "title": "" }, { "docid": "7417584f6523edb7454e581510669617", "score": "0.7072176", "text": "@Override\n\tpublic void beginTransaction() {\n\n\t}", "title": "" }, { "docid": "4f12c6a4940376e4d1bcc34aed090744", "score": "0.7005694", "text": "private Transaction startTransaction(ClientRole role) {\n\t\treturn clients.get(role).openTransaction();\n\t}", "title": "" }, { "docid": "e3c74a6ebdeb1830b941f1d52187d30f", "score": "0.7001437", "text": "public void start(long txID) {\n\t\t// TODO: Not implemented for non-durable transactions, you should implement this\n\t}", "title": "" }, { "docid": "701cbb4a223189da82d4343cf4fb3632", "score": "0.69843733", "text": "@Override\n public void begin() {\n new SimulatedTransactionManager().push();\n }", "title": "" }, { "docid": "0521d18071352ad15ccc9e9c6c30d84d", "score": "0.6730516", "text": "public void startNextTransaction() {\n this.restartRowsToSkip = 0;\n this.restartEventsToSkip = 0;\n this.restartBinlogFilename = sourceInfo.binlogFilename();\n this.restartBinlogPosition = sourceInfo.binlogPosition();\n this.inTransaction = true;\n setTransactionId();\n }", "title": "" }, { "docid": "f528ad4e7ab6eb8b357ce78c5d88adb8", "score": "0.66902846", "text": "protected abstract void startRollback();", "title": "" }, { "docid": "2b7f4bbbf5ac441c5f3a5711d257ef7c", "score": "0.66433156", "text": "@Override\n protected String getStartTransactionStatement() {\n return \"BEGIN\";\n }", "title": "" }, { "docid": "23987fbe700513b3bae46550df447071", "score": "0.65898544", "text": "public void beginTransaction() throws SQLException\n\t{\n\t\tconn.setAutoCommit(false);\n\t\tbeginTransactionStatement.executeUpdate();\n\t}", "title": "" }, { "docid": "a99befab0c1337a93288552547d34575", "score": "0.6468804", "text": "protected void doJtaBegin(TransactionDefinition definition)\n\t\t\tthrows NotSupportedException, SystemException {\n\n\t\tapplyIsolationLevel(definition.getIsolationLevel());\n\t\tapplyTimeout(definition.getTimeout());\n\t\tgetUserTransaction().begin();\n\t}", "title": "" }, { "docid": "16456aa90ef207333635be50712b396c", "score": "0.6447036", "text": "public void startNewTrans() {\n try {\n // creat all new objects for the trans\n trans = TransDAO.getInstance().create(GUID.generate());\n trans.setPayment(PaymentDAO.getInstance().create(GUID.generate()));\n trans.setJournal(JournalEntryDAO.getInstance().create(GUID.generate()));\n trans.setCommission(CommissionDAO.getInstance().create(GUID.generate()));\n trans.setEmployee(Model.getInstance().getEmployee());\n trans.setStore(Model.getInstance().getEmployee().getStore());\n transListModel = new TransListModel(trans.getTransList());\n } catch (DataException ex) {\n JOptionPane.showMessageDialog(this, \"Error initializing data.\");\n }\n orderTable.setModel(transListModel);\n calcTotals();\n }", "title": "" }, { "docid": "b4b0a78d459765a3d3db7b4309b6ebbb", "score": "0.64303315", "text": "void soumettreTransaction();", "title": "" }, { "docid": "b57a5aac4b6f7129be89485fcede6782", "score": "0.63695943", "text": "public void testBegin_transaction() {\n String sql = \"begin transaction;\";\n BeginTransactionStatement statement = (BeginTransactionStatement) sqlProcessor.parseSQL(sql).get(0);\n assert statement.getType() == StatementType.BEGIN_TRANSACTION;\n\n Integer size1 = manger.transactionManager.get_session_size();\n SQLResult sqlResult = sqlProcessor.begin_transaction(session);\n assert sqlResult.isSucceed();\n\n Integer size2 = manger.transactionManager.get_session_size();\n assert (size2-size1 == 1);\n }", "title": "" }, { "docid": "ff5c794d742dac36941faf5cb51e6eab", "score": "0.63524324", "text": "@Override\r\n\tpublic ITransaction createTransaction() {\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "07abde5de09180f993ede45085f2496e", "score": "0.6307108", "text": "@Override\n\tpublic int startTransaction(int transactionNumber) {\n\t\t// We do not have any reason to inhibit the transaction start, so return\n\t\t// the OK flag\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "f619be0db4ab7f3a1d710f796874b81f", "score": "0.6219608", "text": "public Transaction beginTransaction() throws HibernateException;", "title": "" }, { "docid": "3b5f5f52da10b7094fa5daa4b9ba4b9d", "score": "0.6216878", "text": "private void settle(T transaction) {\n createStatement(transaction.getOriginator(), transaction);\n createStatement(transaction.getBeneficiary(), transaction);\n }", "title": "" }, { "docid": "4497b0ace94b402c8410b954eb29335a", "score": "0.6196043", "text": "public void conductTransaction()\n {\n // TODO: implement conductTransaction\n }", "title": "" }, { "docid": "0c67492a558bbb61a53af49013a634fd", "score": "0.61793375", "text": "void beginTransaction(AbstractSession session);", "title": "" }, { "docid": "85043442997049c79770c470d6472f71", "score": "0.61575365", "text": "void annulerTransaction();", "title": "" }, { "docid": "f79e448c66a2d368bbe6b0a6b9721371", "score": "0.61357456", "text": "void markTransactionForRollback();", "title": "" }, { "docid": "ce69a85c78de3ea445bfcdf704b35c72", "score": "0.6109579", "text": "protected Transaction createLocalTx() throws Exception {\n if (trace) {\n log.trace(\"Creating transaction for thread \" + Thread.currentThread());\n }\n Transaction localTx;\n if (txManager == null) throw new Exception(\"Failed to create local transaction; TransactionManager is null\");\n txManager.begin();\n localTx = txManager.getTransaction();\n return localTx;\n }", "title": "" }, { "docid": "2ff5e9dd0e8da9943991feb8056d8c0a", "score": "0.6107988", "text": "@Test\r\n public void beginTransaction_readOnly_shouldSucceed() throws SQLException {\r\n TableQuery tQuery = new TableQuery(\"people\", connectionPool,\r\n AllTests.sqlGen);\r\n tQuery.beginTransaction();\r\n }", "title": "" }, { "docid": "c7f23def09979f7f3ae133c676143c4e", "score": "0.6103072", "text": "DBTransaction(TransactionManager tm) throws Exception {\n super(tm);\n }", "title": "" }, { "docid": "5f05484a5f64c2b48d7c395f19d1a629", "score": "0.608658", "text": "public static void beginTransaction() throws HibernateException {\n\n\t\tTransaction t = (Transaction) transaction.get();\n\t\tif (t == null) {\n\t\t\tt = HibernateSessionDataTransfer.currentSession()\n\t\t\t\t\t.beginTransaction();\n\t\t\ttransaction.set(t);\n\t\t}\n\t}", "title": "" }, { "docid": "2a6131a83ed1ee1f6165eed9c312b252", "score": "0.6076934", "text": "public void begin(final int transactionId) {\n if (transactionQueue.get(transactionId) != null) {\n throw new RuntimeException(\"Request to begin transaction with ID \" + transactionId + \" received more than once\");\n }\n\n transactionQueue.put(transactionId, new ArrayList<TransactionalUnit<K, V>>());\n }", "title": "" }, { "docid": "7169159046e22bf81a800b2cd5924c6d", "score": "0.6043699", "text": "public void joinTransaction();", "title": "" }, { "docid": "fecb8b3fd2f508e5dc7d05e3df8413ec", "score": "0.6030531", "text": "protected abstract void startCommit();", "title": "" }, { "docid": "6a8a1d0bf8a852b107e3ec323ead8c8a", "score": "0.6023697", "text": "public <T> Transaction<T> beginTransaction(String namespaceName, Class<T> itemClass) {\n ReindexerNamespace<T> namespace = getNamespace(namespaceName, itemClass);\n Transaction<T> transaction = new Transaction<>(namespace, this);\n transaction.start();\n return transaction;\n }", "title": "" }, { "docid": "7a4a17eafb20080ad8016aac9fb074ce", "score": "0.59911895", "text": "public void transactionStart(Application application, Object transactionData) {\n\n\t\tif (application == StartApplication.this) {\n\t\t\tthisApplication.set(this);\n\t\t}\n\t}", "title": "" }, { "docid": "4de3294326e225b0717e6cbf5b8c6664", "score": "0.59130824", "text": "public void iniciarTransaccion() throws Exception {\n\t\tconnection = dataSource.getConnection();\n\t\t// desactivar el autocommit\n\t\tconnection.setAutoCommit(false);\n\t}", "title": "" }, { "docid": "f5ece00b8cb50bb9d90cf53a04bbca9d", "score": "0.58766377", "text": "private synchronized Transaction createTransaction() {\n\t\ttry {\n\t\t\tif (txManager == null) {\n\t\t\t\tLookup transactionLookup = new Lookup(TransactionManager.class);\n\t\t\t\ttxManager = (TransactionManager) transactionLookup.getService();\n\t\t\t}\n\t\t\tTransaction.Created trc = TransactionFactory.create(txManager,\n\t\t\t\t\tDEFAULT_TRANSACTION_TIMEOUT);\n\t\t\treturn trc.transaction;\n\t\t} catch (Exception e) {\n\t\t\tLog.e(\"Transaction retrieval error\",e);\n\t\t\treturn null;\n\t\t}\n\t}", "title": "" }, { "docid": "a9e4615a5007e2551029eb594ca9e24b", "score": "0.5864676", "text": "boolean txBegin();", "title": "" }, { "docid": "710546dd677768d65279352719578211", "score": "0.5833293", "text": "abstract boolean doTransaction();", "title": "" }, { "docid": "9ea46d9002063a52a8af9e8a69d30989", "score": "0.5805141", "text": "void commitPendingTransaction();", "title": "" }, { "docid": "200fadb2dc50341070dd32d7bc0eaeff", "score": "0.5786075", "text": "Transaction getCurrentTransaction();", "title": "" }, { "docid": "200fadb2dc50341070dd32d7bc0eaeff", "score": "0.5786075", "text": "Transaction getCurrentTransaction();", "title": "" }, { "docid": "b76e7a6cf585032c3095abeec7c299f3", "score": "0.57356966", "text": "@Override\n protected void TXBegin() {\n getCorfuRuntime().getObjectsView().TXBuild()\n .type(TransactionType.WRITE_AFTER_WRITE)\n .build()\n .begin();\n }", "title": "" }, { "docid": "fdc722bc59d7ca4e9afd0660c876679a", "score": "0.5726451", "text": "@Test\n @Transactional(value = \"jmsTransactionManager\")\n public void transaction() {\n jmsOperations.convertAndSend(\"ORDER.REQUEST\", \"transaction test\");\n }", "title": "" }, { "docid": "66842b6f49e43745ef4f25406bed9433", "score": "0.5704728", "text": "public void executeInTransaction(Runnable code);", "title": "" }, { "docid": "dd3b6123f8160d284d2108b3547450a5", "score": "0.56893826", "text": "protected Transaction updateTransaction(Transaction transaction) {\r\n transaction.success();\r\n transaction.finish();\r\n \r\n NeoServiceProviderUi.getProvider().commit();\r\n Transaction result = neoService.beginTx();\r\n \r\n return result;\r\n }", "title": "" }, { "docid": "94aae380cf540cf68c91889f970737f8", "score": "0.5674079", "text": "private IgniteInternalFuture<?> startTransactions(\n String testName,\n CountDownLatch lockLatch,\n CountDownLatch unlockLatch,\n boolean topChangeBeforeUnlock\n ) throws Exception {\n IgniteEx client = grid(\"client\");\n\n AtomicInteger idx = new AtomicInteger();\n\n return multithreadedAsync(new Runnable() {\n @Override public void run() {\n int id = idx.getAndIncrement();\n\n switch (id) {\n case 0:\n try (Transaction tx = grid(0).transactions().txStart()) {\n grid(0).cache(DEFAULT_CACHE_NAME).putAll(generate(0, 100));\n\n lockLatch.countDown();\n\n U.awaitQuiet(unlockLatch);\n\n tx.commit();\n\n if (topChangeBeforeUnlock)\n fail(\"Commit must fail\");\n }\n catch (Exception e) {\n if (topChangeBeforeUnlock)\n assertTrue(X.hasCause(e, TransactionRollbackException.class));\n else\n throw e;\n }\n\n break;\n case 1:\n U.awaitQuiet(lockLatch);\n\n doSleep(3000);\n\n try (Transaction tx =\n grid(0).transactions().withLabel(\"label1\").txStart(PESSIMISTIC, READ_COMMITTED, Integer.MAX_VALUE, 0)) {\n grid(0).cache(DEFAULT_CACHE_NAME).putAll(generate(200, 110));\n\n grid(0).cache(DEFAULT_CACHE_NAME).put(0, 0);\n }\n\n break;\n case 2:\n try (Transaction tx = grid(1).transactions().txStart()) {\n U.awaitQuiet(lockLatch);\n\n grid(1).cache(DEFAULT_CACHE_NAME).put(0, 0);\n }\n\n break;\n case 3:\n try (Transaction tx = client.transactions().withLabel(\"label2\").txStart(OPTIMISTIC, READ_COMMITTED, 0, 0)) {\n U.awaitQuiet(lockLatch);\n\n client.cache(DEFAULT_CACHE_NAME).putAll(generate(100, 10));\n\n client.cache(DEFAULT_CACHE_NAME).put(0, 0);\n\n tx.commit();\n }\n\n break;\n }\n }\n }, 4, \"tx-thread-\" + testName);\n }", "title": "" }, { "docid": "7146ff103ec36bd4c1d04a5721c0d0bb", "score": "0.56721157", "text": "Transaction beginTransaction(SessionImplementor session);", "title": "" }, { "docid": "35448fd4ea8fe13d41cf8c4c8049739f", "score": "0.565972", "text": "PaymentRedirectionDetailsPojo requestTransactionStart(SellPojo transaction) throws PaymentServiceException;", "title": "" }, { "docid": "069b534f0e763e43c65a12395d4f2e38", "score": "0.56562126", "text": "void commitTransaccion();", "title": "" }, { "docid": "c17b18177ea7e5f77bd0a8ef96be5568", "score": "0.5646475", "text": "public State startTransaction(long txn_id, Procedure catalog_proc, Object args[]) {\n Integer base_partition = null; \n try {\n base_partition = this.p_estimator.getBasePartition(catalog_proc, args);\n } catch (Exception ex) {\n LOG.fatal(String.format(\"Failed to calculate base partition for <%s, %s>\", catalog_proc.getName(), Arrays.toString(args)), ex);\n System.exit(1);\n }\n assert(base_partition != null);\n \n return (this.startTransaction(txn_id, base_partition.intValue(), catalog_proc, args));\n }", "title": "" }, { "docid": "0bd6692122d76edd7e889ba2148786aa", "score": "0.56443167", "text": "public JtaTransactionManager() {\n\t\tsetNestedTransactionAllowed(true);\n\t}", "title": "" }, { "docid": "52052afe91353d63261305b97c87929f", "score": "0.56199676", "text": "@Override\n public void run() {\n try {\n InitialContext context = new InitialContext();\n UserTransaction tx = (UserTransaction) context.lookup(\"java:comp/UserTransaction\");\n\n tx.begin();\n\n System.out.println(\"MyTaskWithTransaction.run\");\n\n tx.commit();\n } catch (Exception ex) {\n\n }\n }", "title": "" }, { "docid": "430cdf45c3ed94dd1dbb63d97bfbbffe", "score": "0.56095445", "text": "void transactionRollbacked();", "title": "" }, { "docid": "160a5acd47fcb87b24d85fe7984c1976", "score": "0.55903697", "text": "void addTransaction(BlockchainTransaction transaction);", "title": "" }, { "docid": "520748f59f840927175fb0bca1baf3e7", "score": "0.5570411", "text": "public void pushTransaction(Transaction transaction);", "title": "" }, { "docid": "0b6a0e32ee957e60e7dfa5e3d1933157", "score": "0.5566594", "text": "public synchronized Transaction beginTransaction() throws HibernateException\n\t{\n\t\treturn getCurrentSession().beginTransaction() ;\n\t}", "title": "" }, { "docid": "9aa0e6a538b344874e48c1efbdbb470d", "score": "0.55467284", "text": "private void beginConnection() {\n em = ScreensFramework.emf.createEntityManager();\n em.getTransaction().begin();\n }", "title": "" }, { "docid": "0d915d80a72ec40b782e74c12eeac064", "score": "0.5535437", "text": "public void changeTransaction(){\n\t\t\n\t\tupdateBlock();\n\t\t\n\t}", "title": "" }, { "docid": "334f6e882798225358b43a2d10ead0b2", "score": "0.55302554", "text": "void addTransaction(Transaction t);", "title": "" }, { "docid": "2a7d93f9e9d9757969d5529edcd1b41f", "score": "0.5528389", "text": "public TransactionPropagationVerticle() {\n this(sharedMoneyTransferService());\n }", "title": "" }, { "docid": "a7de2b19d66c012a5e72f4dac2694e3b", "score": "0.55254513", "text": "protected void preCommitUnitTransactionCreate() {\n\t\t// No operation\n\t}", "title": "" }, { "docid": "7745a598c719d61f99ce1e698433de95", "score": "0.55193293", "text": "@Override\r\n\tpublic Transaction emitTransaction() {\n\r\n\t\tStatement stmt = null;\r\n\t\tConnection c = null;\r\n\t\tint farmerCount = 0;\r\n\t\ttry {\r\n\t\t\tClass.forName(\"org.sqlite.JDBC\");\r\n\t\t\tc = DriverManager.getConnection(\"jdbc:sqlite:cryptoville.db\");\r\n\t\t\t// c.setAutoCommit(false);\r\n\t\t\tSystem.out.println(\"Opened database successfully\");\r\n\t\t\tstmt = c.createStatement();\r\n\r\n\t\t\tString sql = \"SELECT count(*) FROM Farmer;\";\r\n\t\t\tResultSet rs = stmt.executeQuery(sql);\r\n\t\t\twhile (rs.next()) {\r\n\t\t\t\tfarmerCount = rs.getInt(\"count(*)\");\r\n\t\t\t\tSystem.out.println(\"farmer count = \" + farmerCount);\r\n\t\t\t}\r\n\t\t\trs.close();\r\n\t\t\tstmt.close();\r\n\t\t} catch (Exception e) {\r\n\t\t\tSystem.err.println(e.getClass().getName() + \": \" + e.getMessage());\r\n\t\t\tSystem.exit(0);\r\n\t\t}\r\n\r\n\t\tint currentFarmerID = ThreadLocalRandom.current().nextInt(0, farmerCount);\r\n\t\tint currentProductID = ThreadLocalRandom.current().nextInt(0, 21);\r\n\t\tString currentProductName = productList.get(currentProductID);\r\n\t\tdouble currentPrice = ThreadLocalRandom.current().nextDouble(0.5, 5.0);\r\n\r\n\t\tSystem.out.println(\"new instance at: farmerID: \" + currentFarmerID);\r\n\t\tSystem.out.println(\"productID: \" + currentProductID + \" price: \" + currentPrice);\r\n\r\n\t\tint transactionCount = 0;\r\n\t\ttry {\r\n\t\t\t// c.setAutoCommit(false);\r\n\t\t\tstmt = c.createStatement();\r\n\r\n\t\t\tString sql = \"SELECT count(*) FROM Transactions;\";\r\n\r\n\t\t\tResultSet rs = stmt.executeQuery(sql);\r\n\t\t\twhile (rs.next()) {\r\n\t\t\t\ttransactionCount = rs.getInt(\"count(*)\");\r\n\t\t\t\tSystem.out.println(\"Transaction Count = \" + transactionCount);\r\n\t\t\t}\r\n\t\t\trs.close();\r\n\r\n\t\t\tboolean flag = true;\r\n\t\t\twhile (flag) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tsql = \"INSERT INTO Transactions (ID,farmerID,productID, productPrice) \" + \"VALUES (\"\r\n\t\t\t\t\t\t\t+ transactionCount + \",\" + currentFarmerID + \", \" + currentProductID + \", \" + currentPrice\r\n\t\t\t\t\t\t\t+ \");\";\r\n\r\n\t\t\t\t\tstmt.executeUpdate(sql);\r\n\t\t\t\t\tflag = false;\r\n\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\ttransactionCount++;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tstmt.close();\r\n\t\t\tc.close();\r\n\t\t} catch (Exception e) {\r\n\t\t\tSystem.err.println(e.getClass().getName() + \": \" + e.getMessage());\r\n\t\t\tSystem.exit(0);\r\n\t\t}\r\n\r\n\t\tSystem.out.println(\"New Transaction emitted by \" + Thread.currentThread() + \" for farmer \" + currentFarmerID\r\n\t\t\t\t+ \", productID: \" + currentProductID + \" , ProductName: \" + currentProductName + \" ,ProductPrice: \"\r\n\t\t\t\t+ currentPrice);\r\n\t\t\r\n\t\tHashSet<Integer> hs = new HashSet<Integer>();\r\n\t\tif(farmerProducts.containsKey(currentFarmerID)) {\r\n\t\t\t\r\n\t\t\ths = farmerProducts.get(currentFarmerID);\r\n\t\t\ths.add(currentProductID);\r\n\t\t\tfarmerProducts.put(currentFarmerID, hs);\r\n\t\t} else {\r\n\t\t\ths.add(currentProductID);\r\n\t\t\tfarmerProducts.put(currentFarmerID, hs);\r\n\t\t}\r\n\t\tSystem.out.println(\"farmer ID: \"+ currentFarmerID + \" - Products -> \"+ farmerProducts.get(currentFarmerID));\r\n\t\tif (productValues.containsKey((currentProductID))) {\r\n\t\t\t// System.out.println(\"----Current Product Price Table\r\n\t\t\t// before-----\\n\"+productValues);\r\n\r\n\t\t\tproductValues.put(currentProductID,\r\n\t\t\t\t\t((productValues.get(currentProductID) * productQuantity.get(currentProductID)) + currentPrice)\r\n\t\t\t\t\t\t\t/ (productQuantity.get(currentProductID) + 1));\r\n\t\t\tproductQuantity.put(currentProductID, productQuantity.get(currentProductID) + 1);\r\n\r\n\t\t\t// System.out.println(\"----Currrent Product Price Table\r\n\t\t\t// after-----\\n\"+productValues);\r\n\t\t} else {\r\n\t\t\tproductValues.put(currentProductID, currentPrice);\r\n\t\t\tproductQuantity.put(currentProductID, 1);\r\n\r\n\t\t}\r\n\t\treturn new Transaction(currentFarmerID, new Product(currentProductID, currentProductName, currentPrice));\r\n\t}", "title": "" }, { "docid": "0329db4e34cf3448ab0a14b35b26d3a1", "score": "0.5516556", "text": "@Override\n\tpublic void resume(Transaction tobj) throws InvalidTransactionException, IllegalStateException, SystemException {\n\t\t\n\t}", "title": "" }, { "docid": "ef0fd9e675f4979385e29d56b7707800", "score": "0.5496464", "text": "DBTransaction() throws Exception {\n this(null);\n }", "title": "" }, { "docid": "567f7298b1bbbb46325f52a8ad48b05d", "score": "0.5488661", "text": "public void initializeTransaction() {\n\n\t\ttry {\n\t\t\tmsrProcessor = new IngenicoMsr(transactionData, myTerminal);\n\t\t\tmsrProcessor.setEventListener(new InitDeviceListener());\n\t\t\tmsrProcessor.initializeDevice();\n\n\t\t} catch (IngenicoDeviceException e) {\n\t\t\tLOGGER.error(\"Error initializing devices: {}\", e.getMessage());\n\t\t\t//SocketUtil.sendMessageToCaller(SocketMessageType.StatusCode, EntryModeStatusID.RequestJdalReboot);\n\t\t\n\t\t\tif (e.getErrorCode() != EntryModeStatusID.MSRIsCloseOrNull.getCode()) {\n\t\t\t\thandleTransactionTermination(EntryModeStatusID.MSRIsCloseOrNull,\n\t\t\t\t AppConfiguration.getLanguage().getString(\"INITIALIZATION_ERROR\"), ShortMessages.INITIALIZATION_ERROR);\n\t\t\t} else {\n\t\t\t\thandleTransactionTermination(EntryModeStatusID.Error,\n\t\t\t\t AppConfiguration.getLanguage().getString(\"INITIALIZATION_ERROR\"), ShortMessages.INITIALIZATION_ERROR);\n\t\t\t}\n\t\t\treturn;\n\t\t} catch (DeviceNotConnectedException e) {\n\t\t\t// when the device is disconnected in between transactions, un-predictable port issues has been observed \n\t\t\tLOGGER.error(\"Error initializing devices: {}\", e.getMessage());\n\t\t\thandleDeviceNotConnected();\n\t\t\treturn;\n\n\t\t}\n \t\tstartTimer();\n \t\t\n \t\tmsrProcessor.setEventListener(new InitDeviceListener());\n\t\tmsrProcessor.requestTerminalSerialNumber();\n\t\tif (transactionComplete) {\n\t\t\t// serial mismatch will cause the transaction to be cancelled\n\t\t\treturn;\n\t\t}\n\t\tvalidateEmvTransaction();\n\t\tstartMode = clientConfiguration.getStartMode();\n\t\ttoggleDeviceMode();\n\t}", "title": "" }, { "docid": "1041d1d807f10d9480b60554df117aeb", "score": "0.5481081", "text": "@Test\n @Transactional\n void unXaTransaction() {\n String sql = \"insert into geek_order (id,shop_id,customer_id,total_price,remark)values(?,?,?,?,?)\";\n Connection connection = null;\n try {\n connection = dataSource.getConnection();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n try {\n PreparedStatement preparedStatement = connection.prepareStatement(sql);\n preparedStatement.setLong(1, 1);\n preparedStatement.setLong(2, 1);\n preparedStatement.setLong(3, 1);\n preparedStatement.setInt(4, 1);\n preparedStatement.setString(5, \"ds1 order1\");\n //保存成功\n preparedStatement.executeUpdate();\n connection.commit();\n\n preparedStatement.setLong(1, 2);\n preparedStatement.setLong(2, 3);\n preparedStatement.setLong(3, 2);\n preparedStatement.setString(4, \"aaaaaaaaaaaaa\");\n preparedStatement.setString(5, \"ds1 order0\");\n // 保存失败\n preparedStatement.executeUpdate();\n connection.commit();\n\n } catch (SQLException e) {\n e.printStackTrace();\n }finally {\n try {\n connection.close();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }\n }", "title": "" }, { "docid": "12fa4bfbd840f39476a0468d5fef3660", "score": "0.54670477", "text": "public Transaction() {\n this(DSL.name(\"transaction\"), null);\n }", "title": "" }, { "docid": "30bc2270ed5c828a3f3dd724378a107f", "score": "0.54647666", "text": "public void resume(Transaction arg0)\n throws InvalidTransactionException, IllegalStateException,\n SystemException {\n \n }", "title": "" }, { "docid": "fddbc1489ba3174bfc489be01135d973", "score": "0.54604304", "text": "public interface TransactionManager {\r\n\r\n\t/**\r\n\t * Inicia una nueva transaccion en el thread. Si ya existe una, se crea como hija de la misma.\r\n\t */\r\n\tvoid iniciarTransaccion();\r\n\t\r\n\t/**\r\n\t * Realiza un commit de la transaccion actual del thread, si hay anidadas lo hace de la mas anidada.\r\n\t * Escribe el LOG de fin de tranasccion o de CHILD_COMMITTED segun corresponda.\r\n\t * @throws RuntimeException si no habia ninguna transaccion activa.\r\n\t */\r\n\tvoid commitTransaccion();\r\n\t\r\n\t/**\r\n\t * Realiza un rollback de la transaccion actual del thread, si hay anidadas lo hace de la mas anidada.\r\n\t * @throws RuntimeException si no habia ninguna transaccion activa.\r\n\t */\r\n\tvoid abortarUltimaTransaccion();\r\n\t\r\n\t/**\r\n\t * Realiza un rollback de todas las transacciones del thread, desde la mas anidada hasta la de alto nivel\r\n\t * @throws RuntimeException si no habia ninguna transaccion activa.\r\n\t */\r\n\tvoid abortarTransaccionesDelThread();\r\n\t\r\n\t/**\r\n\t * Aborta las transacciones del thread sin realizar rollbacks. Es utilizado cuando se simula un crash.\r\n\t */\r\n\tvoid abortarTransaccionesDelThreadSinRollback();\r\n\t\r\n\t/**\r\n\t * Realiza un rollback de la transaccion hasta el savepoint especificado.\r\n\t * Recordar que abortar hasta un savepoint no borra la transaccion. Esta sigue en curso.\r\n\t * @param savepoint el nombre del savepoint hasta donde se desea abortar.\r\n\t * @throws RuntimeException si no habia ninguna transaccion activa.\r\n\t */\r\n\tvoid abortarUltimaTransaccionHasta(String savepoint);\r\n\t\r\n\t/**\r\n\t * @return el estado actual de transacciones en el thread.\r\n\t */\r\n\tEstado estadoActual();\r\n\t\r\n\t/**\r\n\t * @return la tranasccion actual del thread. Si hay anidadas retorna la de mas bajo nivel.\r\n\t * @throws RuntimeException si no habia ninguna transaccion activa.\r\n\t */\r\n\tTransaccion dameTransaccion();\r\n\t\r\n\t/**\r\n\t * @return las transacciones activas en el thread. Devuelve un conjunto vacio si no hay ninguna.\r\n\t */\r\n\tSet<Transaccion> dameTransacciones();\r\n\t\r\n\t/**\r\n\t * Devuelve una transaccion especificada segun su identificador.\r\n\t * @param idTransaccion el ID de la transaccion deseada\r\n\t * @return la implementacion de la transaccion o NULL si no hay ninguna con ese ID.\r\n\t */\r\n\tTransaccion dameTransaccion(Transaccion.ID idTransaccion);\r\n\t\r\n\t/**\r\n\t * Devuelve la transaccion de mas bajo nivel de un thread determinado. \r\n\t * @param thread el thread del cual se desea obtener la transaccion\r\n\t * @return la transaccion de mas bajo nivel del thread pasado por parametro.\r\n\t * @throws RuntimeException si no habia ninguna transaccion activa en ese thread\r\n\t */\r\n\tTransaccion dameTransaccion(Thread thread);\r\n\t\r\n\t/**\r\n\t * Establece el nivel de aislamiento que se va a usar en las futuras transacciones creadas por este administrador.\r\n\t * @param aislamiento el nuevo nivel de aislamiento para las transacciones.\r\n\t */\r\n\tvoid establecerAislamiento(Aislamiento aislamiento);\r\n\t\r\n\t/**\r\n\t * Establece un identificador a partir del cual se ira incrementando la numeracion para las futuras transacciones.\r\n\t * @param idTransaccion un identificador de transaccion.\r\n\t */\r\n\tvoid establecerProximoIDTransaccion(Transaccion.ID idTransaccion);\r\n\r\n}", "title": "" }, { "docid": "c18aad0dcd2a34b36f069450255fe57e", "score": "0.5457955", "text": "@Before\n public void setUp() {\n try{\n utx.begin();\n em.joinTransaction();\n clearData();\n insertData();\n utx.commit();\n } catch (Exception e){\n e.printStackTrace();\n try{\n utx.rollback();\n } catch (Exception e1) {\n e1.printStackTrace();\n }\n }\n }", "title": "" }, { "docid": "19e0c977e40c29a7b8d920649682bfa8", "score": "0.5447376", "text": "public DataSourceEntityTransaction(final SupportsTransactions theDataSource) {\n\t\tmDataSource = theDataSource;\n\t}", "title": "" }, { "docid": "3082496ecc5ff6f5c472f4b73ce33f7b", "score": "0.543451", "text": "protected Transaction() throws Exception\r\n\t{\r\n\r\n\t\tmyStage = MainStageContainer.getInstance();\r\n\t\tmyViews = new Hashtable<String, Scene>();\r\n\t\r\n\r\n\t\tmyRegistry = new ModelRegistry(\"Transaction\");\r\n\t\tif(myRegistry == null)\r\n\t\t{\r\n\t\t\tnew Event(Event.getLeafLevelClassName(this), \"Transaction\",\r\n\t\t\t\t\"Could not instantiate Registry\", Event.ERROR);\r\n\t\t}\r\n\t\tsetDependencies();\r\n\r\n\t}", "title": "" }, { "docid": "6c60e351a0fec4a4bc54da086209b863", "score": "0.54306126", "text": "public void setTransactionManager(TransactionManager manager) throws Exception;", "title": "" }, { "docid": "94a4b1c24e60d79faef0ea8aebc617ec", "score": "0.54249895", "text": "default void beforeTransactionCompletion() {\n\n }", "title": "" }, { "docid": "ec4595bb4b438c3875ee58c69f96ad07", "score": "0.54225004", "text": "private void beginRealmTransaction(Realm realm){\n\n\n realm.executeTransaction(\n new Realm.Transaction() {\n @Override\n public void execute(Realm realm) {\n People yasic = realm.createObject(People.class);\n yasic.setName(\"Yasic\");\n yasic.setAge(\"20\");\n yasic.setSex(\"Male\");\n }},\n new Realm.Transaction.Callback() {\n @Override\n public void onSuccess() {\n }\n\n @Override\n public void onError(Exception e) {\n Log.i(\"error\",e.toString());\n }\n });\n }", "title": "" }, { "docid": "254db28e2e89edd5aad86c6a9c94f06d", "score": "0.54097635", "text": "void setTransactionId(int transactionId);", "title": "" }, { "docid": "60e90248fa0bbca8f22c993719f6ead0", "score": "0.5399558", "text": "public PushTx() {\n super();\n }", "title": "" }, { "docid": "8bd5989ae1854d79de398e06db66c1f0", "score": "0.5390699", "text": "@Override\n @Transactional\n public void run() {\n try {\n FOUND_TRANSACTION_SCOPED = bean.isInTx();\n\n System.out.println(\"MyTaskWithTransactionBean.run\");\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "00c5ac440a656d7eda70514da6bebded", "score": "0.5387115", "text": "public interface TransactionManager extends Remote {\n\n /**\n * make TM know the transaction id = @xid use RM = @rm\n *\n * @param xid transaction id\n * @param rm RM\n * @throws InvalidTransactionException maybe the transaction id = @xid is not started or has committed/aborted\n * @throws RemoteException\n */\n void enlist(int xid, ResourceManager rm) throws RemoteException, InvalidTransactionException;\n\n /**\n * start a new transaction with a unique id\n *\n * @param xid transaction id\n * @return true for a unique id, false for repeated id\n * @throws RemoteException\n */\n boolean start(int xid) throws RemoteException;\n\n /**\n * attempt to commit the transaction id = @xid\n * attempt at most 10 times, that means a transaction must commit successfully in 10s or it will abort\n * return false when the transaction can not commit in 10s, abort it automatically\n * otherwise, return true\n *\n * @param xid transaction id\n * @throws InvalidTransactionException maybe the transaction id = @xid is not started or has committed/aborted\n * @throws TransactionAbortedException if the transaction was aborted\n * @throws RemoteException\n */\n void commit(int xid) throws RemoteException, InvalidTransactionException, TransactionAbortedException;\n\n /**\n * abort transaction id = @xid\n *\n * @param xid transaction id\n * @param msg the reason why the transaction was aborted\n * @throws InvalidTransactionException maybe the transaction id = @xid is not started or has committed/aborted\n * @throws TransactionAbortedException if the transaction was aborted. always throw\n * @throws RemoteException\n */\n void abort(int xid, String msg) throws RemoteException, InvalidTransactionException, TransactionAbortedException;\n\n /**\n * check a transaction id = @xid whether it has committed\n *\n * @param xid\n * @return true for committed transaction, false oppositely\n * @throws RemoteException\n */\n boolean hasCommitted(int xid) throws RemoteException;\n\n void setDieTMBeforeCommit() throws RemoteException;\n\n void setDieTMAfterCommit() throws RemoteException;\n\n boolean dieNow() throws RemoteException;\n\n boolean testConnection() throws RemoteException;\n\n String RMIName = \"TM\";\n}", "title": "" }, { "docid": "2abef5a64fb2869cd2d286293a1d1258", "score": "0.5381865", "text": "public ServerTransaction createTransaction(boolean explicit, int isolationLevel) {\r\n\t\ttry {\r\n\t\t\tlong id = 0;\r\n\t\t\t// Perhaps could use JDK5 atomic Integer instead\r\n\t\t\t// of this full synchronisation\r\n\t\t\tsynchronized (monitor) {\r\n\t\t\t\tid = ++transactionCounter;\r\n\t\t\t}\r\n\t\t\tConnection c = dataSource.getConnection();\r\n\r\n\t\t\tJdbcTransaction t = new JdbcTransaction(prefix + id, explicit, c, this);\r\n\r\n\t\t\t// set the default batch mode. This can be on for\r\n\t\t\t// jdbc drivers that support getGeneratedKeys\r\n\t\t\tif (defaultBatchMode){\r\n\t\t\t\tt.setBatchMode(true);\r\n\t\t\t}\r\n\t\t\tif (isolationLevel > -1) {\r\n\t\t\t\tc.setTransactionIsolation(isolationLevel);\r\n\t\t\t}\r\n\r\n\t\t\tif (debugLevel >= 3){\r\n\t\t\t\tString msg = \"Transaction [\"+t.getId()+\"] begin\";\r\n\t\t\t\tif (isolationLevel > -1){\r\n\t\t\t\t\tTxIsolation txi = TxIsolation.fromLevel(isolationLevel);\r\n\t\t\t\t\tmsg += \" isolationLevel[\"+txi+\"]\";\r\n\t\t\t\t}\r\n\t\t\t\tlogger.info(msg);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\treturn t;\r\n\r\n\t\t} catch (SQLException ex) {\r\n\t\t\tthrow new PersistenceException(ex);\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "70d4a66f53a35df9a6c1f8580b0e10e6", "score": "0.5374427", "text": "public TxScope() {\n this.type = TxType.REQUIRED;\n }", "title": "" }, { "docid": "08e1f76fb6b8060dcc1b04543f63439d", "score": "0.53738385", "text": "public CDOTransaction openTransaction() {\n return configureView(getSession().openTransaction());\n\n }", "title": "" }, { "docid": "8585442522d5f67ee6a039678bfb352e", "score": "0.53728926", "text": "public void begin(int time_out)\n throws INVALID_TRANSACTION, SystemException, SubtransactionsUnavailable {\n\n ControlImpl controlImpl = null;\n\n // Until we need to check for resync in progress, synchronize the method.\n\n synchronized(this) {\n\n // If the transaction service is not active, throw an exception.\n\n if( !active ) {\n NO_PERMISSION exc = new NO_PERMISSION(0,CompletionStatus.COMPLETED_NO);\n throw exc;\n }\n\n if (Configuration.isDBLoggingEnabled()) {\n //Put a marker record into the log table\n LogDBHelper.getInstance().setServerName();\n }\n\n // Get a reference to the current ControlImpl object.\n\n try {\n controlImpl = CurrentTransaction.getCurrent();\n } catch( SystemException exc ) {\n }\n\n // Release the lock now so that if the TransactionFactoryImpl call has to block\n // (during resync), the lock does not prevent other threads from running.\n\n }\n\n // If there is a current Control object, then we should try to begin a\n // subtransaction.\n\n if( controlImpl != null )\n try {\n\n // Get the Coordinator reference, and use it to create a subtransaction.\n // If an exception was raised, return it to the caller.\n\n Coordinator coord = controlImpl.get_coordinator();\n\n // Create a new Control object to represent the subtransaction.\n\n Control control = coord.create_subtransaction();\n\n // This control object may be remote, if the original Control object was.\n // In this case we need to deal with it in the same was as we do in the\n // resume method. Any exception which is thrown during this process will\n // result in SubtransactionsUnavailable thrown to the caller.\n\n JControl jcontrol = JControlHelper.narrow(control);\n if( jcontrol != null )\n controlImpl = ControlImpl.servant(jcontrol);\n\n // If there is no local ControlImpl object for the transaction, we create one\n // now.\n\n if( controlImpl == null )\n controlImpl = new ControlImpl(control);\n } catch( Throwable exc ) {\n SubtransactionsUnavailable ex2 = new SubtransactionsUnavailable();\n throw ex2;\n }\n\n // If there is no current ControlImpl object, create a new top-level transaction\n\n else {\n //$ CurrentTransaction.report();\n //$ RecoveryManager.report();\n //$ ControlImpl.report();\n //$ CoordinatorLog.report();\n //$ TimeoutManager.report();\n //\n try {\n\n // Get the TransactionFactory which should be used from this application.\n // This block must be synchronized so that different threads do not try\n // this concurrently.\n\n synchronized(this) {\n if( factory == null )\n factory = Configuration.getFactory();\n }\n\n // Create the new transaction.\n\n if (factory != null) {\n\t\t \t\tif(_logger.isLoggable(Level.FINEST))\n {\n\t\t\t\t\t\t_logger.logp(Level.FINEST,\"CurrentImpl\",\"begin()\",\n\t\t\t\t\t\t\t\t\"Before invoking create() on TxFactory\");\n }\n \n if (Configuration.isLocalFactory()) {\n controlImpl = ((TransactionFactoryImpl) factory).localCreate(time_out);\n } else {\n Control control = factory.create(time_out);\n\n // This control object is remote.\n // In this case we need to deal with it in the same was as we do in the\n // resume method. Any exception which is thrown during this process will\n // result in SubtransactionsUnavailable thrown to the caller.\n\n JControl jcontrol = JControlHelper.narrow(control);\n if (jcontrol != null) {\n controlImpl = ControlImpl.servant(jcontrol);\n }\n\n // If there is no local ControlImpl object for the transaction, we create one\n // now.\n\n if (controlImpl == null) {\n controlImpl = new ControlImpl(control);\n }\n }\n }\n } catch( Throwable exc ) {\n\t\t\t\t_logger.log(Level.WARNING,\n\t\t\t\t\t\t\"jts.unexpected_error_in_begin\",exc);\n\t\t\t\t\t\t\n }\n }\n\n // If the new Control reference is NULL, raise an error at this point.\n\n if( controlImpl == null ){\n INVALID_TRANSACTION exc = new INVALID_TRANSACTION(MinorCode.FactoryFailed,\n CompletionStatus.COMPLETED_NO);\n throw exc;\n }\n\n // Make the new Control reference the current one, indicating that the\n // existing one (if any) should be stacked.\n\n else\n try {\n\t\t\t\tif(_logger.isLoggable(Level.FINEST))\n {\n\t\t\t\t\t\t_logger.logp(Level.FINEST,\"CurrentImpl\",\"begin()\",\n\t\t\t\t\t\t\t\t\"Before invoking CurrentTransaction.setCurrent(control,true)\");\n }\n CurrentTransaction.setCurrent(controlImpl,true);\n }\n\n // The INVALID_TRANSACTION exception at this point indicates that the transaction\n // may not be started. Clean up the state of the objects in the transaction.\n\n catch( INVALID_TRANSACTION exc ) {\n controlImpl.destroy();\n throw (INVALID_TRANSACTION)exc.fillInStackTrace();\n }\n\n }", "title": "" }, { "docid": "38c1abc023e9661a999005334b4dab5a", "score": "0.5348381", "text": "public void startOrder() {\n logger.fine(getInstanceName() + '\\n');\n\n order = new Ticket(getInstanceName());\n }", "title": "" }, { "docid": "be60efa8668c5c9198fa01e9cddba6bd", "score": "0.5348056", "text": "public TransactionRequestBuilder(){}", "title": "" }, { "docid": "90489e8060b3aaf9a6e02fc8665201a1", "score": "0.53421545", "text": "@Override\n protected Void doInBackground(Void... voids) {\n Transaction transaction = App.get().getDB().transactionDao().findByTransactionId(transactionId);\n\n // in the case that the transaction is null (no transaction exists in the database with that id)\n if (transaction == null) {\n // create a new transaction\n transaction = new Transaction();\n transaction.setTransactionId(transactionId);\n transaction.setWalletId(wallet.getId());\n // insert the new transaction into the database.\n App.get().getDB().transactionDao().insert(transaction);\n }\n return null;\n }", "title": "" }, { "docid": "e2bc4b44e907273574d79420142a3b6d", "score": "0.5340035", "text": "@Override\n @Transactional\n public void withTransaction(final Runnable runnable) {\n logger.info(\"Entering transaction\");\n runnable.run();\n logger.info(\"Exiting transaction\");\n }", "title": "" }, { "docid": "25e4df5602a3d599d586b47f03c62c19", "score": "0.53367805", "text": "public void testMultipleTransaction() throws java.sql.SQLException {\n\n // we get two sessions to guarantee to get two transactions.\n // we have to get teh second one first so make sure that we\n // keep the stack trace\n\n DataQuery query = getSession().retrieveQuery(\"examples.nodesQuery\");\n long size = query.size();\n\n DataObject node = getSession().create(\"examples.Node\");\n node.set(\"id\", new BigDecimal(START));\n node.set(\"name\", \"Root\");\n node.save();\n\n // let's see if it is there\n assertTrue(\"The insert should have added a node but it did not.\",\n query.size() == size + 1);\n\n // abort the transaction and open a new transaction\n getSession().getTransactionContext().abortTxn();\n getSession().getTransactionContext().beginTxn();\n\n try {\n BigDecimal a = (BigDecimal)node.get(\"id\");\n fail(\"Retrieving information from a DataObject outside of the \" +\n \"original transaction should throw an error.\");\n } catch (PersistenceException e) {\n // this should happen\n }\n\n try {\n node.delete();\n fail(\"Deleting a DataObject outside of the original transaction \" +\n \"should throw an error.\");\n } catch (PersistenceException e) {\n // this should happen\n }\n }", "title": "" }, { "docid": "b19c1ea4f267bc27d3c287a5bec073bc", "score": "0.5332285", "text": "public Transaction() {\n time = LocalDateTime.now();\n }", "title": "" }, { "docid": "96904e45cf19c90dd67922ef41914569", "score": "0.5318353", "text": "@Override\n protected void rollbackTransaction ()\n {\n }", "title": "" }, { "docid": "6aa427589cf1c2e1e1d64075df318a05", "score": "0.5305917", "text": "@Test\n public void testNoTransactionSupport() {\n \n // By default our test graph should be configured to support transactions, but\n // set it explicitly anyway just to be sure.\n g.setTransactionSupport(true);\n \n // Now, try to start a new transaction against our graph - it should succeed.\n TinkerpopTransaction t = new TinkerpopTransaction(g);\n Graph gi = t.getGraphInstance(); // GDF: Making jacoco happy...\n \n // Now, configure our graph to specify that transactions are NOT supported.\n g.setTransactionSupport(false);\n \n try {\n \n // Now, try to start a new transaction against our graph.\n t = new TinkerpopTransaction(g);\n \n } catch (UnsupportedOperationException e) {\n \n // If we're here, it's all good since we expected an exception to be thrown (since our\n // graph does NOT support transactions).\n return;\n }\n\n // If we're here then we were able to open a transaction even though our graph does \n // not support that functionality.\n fail(\"Attempt to open a transaction against a graph with no transaction support should not succeed.\");\n }", "title": "" }, { "docid": "cd05960568788ea264e73d9a2bed44f8", "score": "0.53034234", "text": "private void setTransactionId() {\n if (sourceInfo.getCurrentGtid() != null) {\n this.transactionId = sourceInfo.getCurrentGtid();\n }\n else {\n this.transactionId = String.format(NON_GTID_TRANSACTION_ID_FORMAT,\n this.restartBinlogFilename, this.restartBinlogPosition);\n }\n }", "title": "" }, { "docid": "cc30ae60eeff0bd0d4a5e2704e9280d2", "score": "0.53025275", "text": "public void start() {\n tradingThread.start();\n }", "title": "" }, { "docid": "db0c9d72188da8174617b70e7c37959e", "score": "0.5299428", "text": "public void addTransaction(Transaction tx) {\n txPool.addTransaction(tx);\n }", "title": "" }, { "docid": "4afad45eb001df362cce03831a928d6e", "score": "0.5292308", "text": "public void open() throws DbException, TransactionAbortedException;", "title": "" }, { "docid": "d841306643c4896a45748baec5279de1", "score": "0.5292089", "text": "@Transactional\n\tpublic void create(T entity) {\n\t\tgen.create(entity);\n\t}", "title": "" }, { "docid": "c0f6f6f3868414e7d4cd469a89c4fb47", "score": "0.52867", "text": "public Transactions(){\n\n }", "title": "" } ]
25197b4cf814864ecd440f23b9149cb3
TODO Autogenerated method stub
[ { "docid": "68542e321a6043c3bba65c2824156f2e", "score": "0.0", "text": "@Override\r\n\tpublic void soldState() {\n\t\t\r\n\t}", "title": "" } ]
[ { "docid": "e5fa0eebc721dea67da872fd14413bc7", "score": "0.69744676", "text": "@Override\n\tpublic void formule() {\n\t\t\n\t}", "title": "" }, { "docid": "8b7f87c22e268a87686c66398c2c442b", "score": "0.6936331", "text": "@Override\r\n\t\t\tpublic void atras() {\n\t\t\t\t\r\n\t\t\t}", "title": "" }, { "docid": "1acc57d42c31dee937ac33ea6f2a5b0b", "score": "0.6836411", "text": "@Override\r\n\tpublic void comer() {\n\t\t\r\n\t}", "title": "" }, { "docid": "ec76ff8d70ced9d8135ad33b23353b4d", "score": "0.6624367", "text": "@Override\r\n\t\t\tpublic void adelante() {\n\t\t\t\t\r\n\t\t\t}", "title": "" }, { "docid": "82ab90ffadf9b8d43e60c8510a33beba", "score": "0.6623182", "text": "@Override\r\n\tpublic void morirse() {\n\t\t\r\n\t}", "title": "" }, { "docid": "e3110a393bd4b870b4055aa9ed6efd87", "score": "0.66015315", "text": "@Override\n\tpublic void attaquer() {\n\t\t\n\t}", "title": "" }, { "docid": "a5f7a321f63abee65f0b9008f270490e", "score": "0.6594605", "text": "@Override\n\t\t\tpublic void competir() {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "0b5b11f4251ace8b3d0f5ead186f7beb", "score": "0.65677965", "text": "@Override\n\tpublic void comer() {\n\t\t\n\t}", "title": "" }, { "docid": "0b5b11f4251ace8b3d0f5ead186f7beb", "score": "0.65677965", "text": "@Override\n\tpublic void comer() {\n\t\t\n\t}", "title": "" }, { "docid": "80d20df1cc75d8fa96c12c49a757fc43", "score": "0.65323734", "text": "@Override\n\tprotected void getExras() {\n\t\t\n\t}", "title": "" }, { "docid": "7756cbf76fd6363807e17834db326bbc", "score": "0.6501866", "text": "@Override\n\t\t\tpublic void avanzar() {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "bdceff0dc4130d850ab15d702b785449", "score": "0.63844895", "text": "@Override\n\tprotected void generate() {\n\t\t\n\t}", "title": "" }, { "docid": "14f6250e215aa66dcffb123fd6b7fd74", "score": "0.63381773", "text": "@Override\n\tpublic void entzünden() {\n\n\t}", "title": "" }, { "docid": "cd03efba12b5473dcc457b910fd92a0e", "score": "0.63222265", "text": "@Override\n\t\t\tpublic void sprout() {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "070e1adb9bfd59cb643407a2dabe9b7a", "score": "0.6291592", "text": "private void hinzufügen() {\n\t\t\r\n\t}", "title": "" }, { "docid": "469c90392fb12e4553574135278541f5", "score": "0.62385184", "text": "@Override\n\tpublic void attck() {\n\t\t\n\t}", "title": "" }, { "docid": "d3585587779dbdf33600e1670ca42099", "score": "0.6193195", "text": "@Override\n\tpublic void IngresoKromi() {\n\t}", "title": "" }, { "docid": "7c4f2f94b290de5507eb56a649c4fab9", "score": "0.61922914", "text": "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "title": "" }, { "docid": "10ead2e988bf977cb8edb2bacf974891", "score": "0.61546874", "text": "@Override\n\tprotected void init() {\n\t\t\n\t}", "title": "" }, { "docid": "093a096d6e96e05b160fe2406b1e8a2d", "score": "0.61053663", "text": "@Override\n\tpublic void parir() {\n\t\t\n\t}", "title": "" }, { "docid": "29cde3f10dab87cebafdd9412ef4b29f", "score": "0.6062187", "text": "@Override\r\n\tpublic void embala() {\n\t\t\r\n\t}", "title": "" }, { "docid": "7839d9b18f833d7ad1ccae8536c829da", "score": "0.60561824", "text": "@Override\r\n\tpublic void zielone_swiatlo() {\n\t\t\r\n\t}", "title": "" }, { "docid": "0cd47ce21776ffa50dd678180ffe94e5", "score": "0.6003824", "text": "public void ayak() {\n\t\t\r\n\t}", "title": "" }, { "docid": "c2c1f0ca9c7029b85142a2ab9536d708", "score": "0.5990595", "text": "@Override\n\tpublic void attaque() {\n\t\t\n\t}", "title": "" }, { "docid": "fa1a013b1df2f5f1062e1cc971135645", "score": "0.5987973", "text": "@Override\n\tpublic void mamar() {\n\t\t\n\t}", "title": "" }, { "docid": "70c63b539d1b6f883ad13008fbcaa6ce", "score": "0.59600407", "text": "@Override\n\tpublic void fiy(){\n\t\t\n\t}", "title": "" }, { "docid": "360bf42213adde0b962792c6cd6d8df7", "score": "0.5952374", "text": "@Override\r\n\t\tpublic void interg() {\n\t\t\t\r\n\t\t}", "title": "" }, { "docid": "6f1e0cfaa7350cf143896dace56978f5", "score": "0.59270483", "text": "@Override\n\tpublic void respirar() {\n\t\t\n\t}", "title": "" }, { "docid": "8b18fd12dbb5303a665e92c25393fb78", "score": "0.59239364", "text": "@Override\n\tprotected void initData() {\n\t\t\n\t}", "title": "" }, { "docid": "dd66e8668788d27519d44caeb83b0c44", "score": "0.5923557", "text": "@Override\r\n\tpublic void operation() {\n\t\t\r\n\t}", "title": "" }, { "docid": "28237d6ae20e1aa35aaca12e05c950c9", "score": "0.5902906", "text": "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "title": "" }, { "docid": "28237d6ae20e1aa35aaca12e05c950c9", "score": "0.5902906", "text": "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "title": "" }, { "docid": "9808ba3c113b79c3677f2c08c09e60a1", "score": "0.59020513", "text": "@Override\n\tpublic void resert() {\n\t\t\n\t}", "title": "" }, { "docid": "e05db3dd501cfaf4d9d1b128ca673f1b", "score": "0.58988667", "text": "@Override\n\tprotected void formRes() {\n\n\t}", "title": "" }, { "docid": "7f91c82c66ced12c5b193d3c89d68e4c", "score": "0.5883667", "text": "@Override\n\tprotected void init() {\n\t}", "title": "" }, { "docid": "ea6be29351b2f6d99af3992f4a8fbd45", "score": "0.58685964", "text": "public void afficherEntreprise(){\r\n\t\t\r\n\t}", "title": "" }, { "docid": "3177b2be45c490e407b98d647e109c0d", "score": "0.58572376", "text": "@Override\n protected void initData()\n {\n\t\n }", "title": "" }, { "docid": "eea1284dac4ca57b790a13dcd1ad6bff", "score": "0.58401465", "text": "@Override\n protected void ucitaj() {\n //only because of 'extands rule'\n }", "title": "" }, { "docid": "e57f005733f2eb8590150b3f4542b844", "score": "0.5810564", "text": "@Override\n\tprotected void getData() {\n\t\t\n\t}", "title": "" }, { "docid": "af70f420bd21981aa44db6516064224d", "score": "0.58060104", "text": "@Override\n\tpublic int berechnen() {\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "ce91051d32625345f2bf3562abbb93de", "score": "0.5794177", "text": "@Override\n\tprotected void inicializar() {\n\t}", "title": "" }, { "docid": "beee84210d56979d0068a8094fb2a5bd", "score": "0.5792378", "text": "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "title": "" }, { "docid": "94f32cdbe8afc400e05efbdb8d78c591", "score": "0.5788508", "text": "@Override\r\n\tpublic void borc_hesapla() {\n\t\t\r\n\t}", "title": "" }, { "docid": "54b1134554bc066c34ed30a72adb660c", "score": "0.57844025", "text": "@Override\n\tprotected void initData() {\n\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "aed26444304cfac4d695203c7d86e6c5", "score": "0.5769439", "text": "public void autTC05() {\r\n\r\n\t}", "title": "" }, { "docid": "9b56e05d631b1ea925ea2c139ee709ad", "score": "0.5763841", "text": "@Override\n\tpublic void adim7() {\n\n\t}", "title": "" }, { "docid": "5e6804b1ba880a8cc8a98006ca4ba35b", "score": "0.5761362", "text": "@Override\n public void init() {\n\n }", "title": "" }, { "docid": "518a761521ca9f5cb8a8055b32b72cda", "score": "0.57596046", "text": "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "title": "" }, { "docid": "a49b2d411619c6f2680e9b0e8c21a20f", "score": "0.57574755", "text": "private void erledigt() {\n\t\t\r\n\t}", "title": "" }, { "docid": "8aac1da26498753495658c2bb9044b21", "score": "0.5751961", "text": "@Override\n public int getOrder() {\n return 0;\n }", "title": "" }, { "docid": "2bbeae4f0e92c95ecc07204851be4769", "score": "0.57508", "text": "@Override\n\tpublic void nyalakan() {\n\t\t\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.575025", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.575025", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.575025", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.575025", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "8603393cbe27452fe30e396632c62eed", "score": "0.57415414", "text": "@Override\n\t\tpublic void postConstruct() {\n\t\t}", "title": "" }, { "docid": "37bf6e6ef01cf7dab163b5d3bedbc140", "score": "0.5740271", "text": "@Override\n\tpublic void som() {\n\t\t\n\t}", "title": "" }, { "docid": "92af0f4d75822a6723aebd9fcc92fafb", "score": "0.57394177", "text": "@Override\n protected void initData() {\n \n }", "title": "" }, { "docid": "c13e6a1b7c130afa9fb0f34225bea4ef", "score": "0.573645", "text": "protected void mo1555b() {\n }", "title": "" }, { "docid": "691b15fed469ddc176b9c9e6151dea65", "score": "0.5734636", "text": "@Override\n\tpublic void breathes()\n\t{\n\t\t\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57337177", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "0f7672ee5ac14b05f31da4e1e34d7b49", "score": "0.5725253", "text": "@Override\r\n\tpublic void test8() {\r\n\t\t// TODO Auto-generated method stub\r\n\t\t\r\n\t}", "title": "" }, { "docid": "a22a3abb4b9b5de4ed8c054da445e9b0", "score": "0.5724528", "text": "@Override\r\n\tpublic void jugar() {\n\r\n\t}", "title": "" }, { "docid": "7fd3ef4778cae98af386c2c7c0aa5995", "score": "0.57231057", "text": "@Override\r\n\tpublic void nmi() {\n\t\t\r\n\t}", "title": "" }, { "docid": "90a583a9686287e3374351dca59e3033", "score": "0.5721244", "text": "@Override\r\n\tpublic void abrir() {\n\r\n\t}", "title": "" }, { "docid": "d629c4ad6266d296b13a93bb0c7f8c66", "score": "0.57099986", "text": "@Override\r\n public void init()\r\n {\n\r\n }", "title": "" }, { "docid": "7aadbda143e84de0144f7a8dadde423d", "score": "0.5701067", "text": "@Override\n protected void initData() {\n\n }", "title": "" }, { "docid": "7aadbda143e84de0144f7a8dadde423d", "score": "0.5701067", "text": "@Override\n protected void initData() {\n\n }", "title": "" }, { "docid": "f375646c5bc224c29261414f3cb81b04", "score": "0.56984305", "text": "@Override\n public int qualiteRelation() {\n return 0;\n }", "title": "" }, { "docid": "5592333c90e75bae58a686b24b05d894", "score": "0.5693882", "text": "@Override\n public String toString() {\n return null;\n }", "title": "" }, { "docid": "b2858312446172fa25a799c5367d2043", "score": "0.56896037", "text": "Smelting(){\r\n\r\n\t\t}", "title": "" }, { "docid": "9f7ae565c79188ee275e5778abe03250", "score": "0.56881124", "text": "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "title": "" }, { "docid": "20b42a0c3fee6c140a112d40354f4298", "score": "0.5686577", "text": "@Override\r\n\tpublic void prepara() {\n\t\t\r\n\t}", "title": "" }, { "docid": "92b8246d78d46bf0f60b46e17e797540", "score": "0.5685193", "text": "@Override\n\tpublic void init () {\n\t}", "title": "" }, { "docid": "57f5caef4402cc8ce13e81561eaa9e43", "score": "0.56787807", "text": "@Override\r\n\tpublic void pickUp() {\n\t\t\r\n\t}", "title": "" }, { "docid": "152818b619dcfcd5190a2f48bc75fa5f", "score": "0.56757474", "text": "@Override\n\tpublic void adim6() {\n\n\t}", "title": "" }, { "docid": "b6c641fa6ba40a5b14cc33cb07aa0671", "score": "0.5669649", "text": "@Override\n\tprotected void initData() {\n\t}", "title": "" }, { "docid": "b6c641fa6ba40a5b14cc33cb07aa0671", "score": "0.5669649", "text": "@Override\n\tprotected void initData() {\n\t}", "title": "" }, { "docid": "131c7dcebe8ac7fd010381a03bd0f405", "score": "0.5667569", "text": "@Override\r\n\tprotected void initActb() {\n\t\t\r\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5655942", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5655942", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5655942", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5655942", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5655942", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5655942", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "6392764d7ff297c1a478fc1669944649", "score": "0.5653691", "text": "@Override\n\tpublic void gostar_de_carne() {\n\t\t\n\t}", "title": "" }, { "docid": "2b53548295a92f80cb7814e7e3ead131", "score": "0.56503963", "text": "@Override\n\tString frighten() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "18c7036dd108c40b7a27469d8b92687c", "score": "0.5642345", "text": "@Override\n\tpublic void onLoadComplete() {\n\t\t\n\t}", "title": "" }, { "docid": "7b36e2fb2a778b8c30924f6f30758db2", "score": "0.56388146", "text": "private static void buscarId() {\n\t\t\r\n\t}", "title": "" }, { "docid": "9bcd15a2298e73719d7c7326027b093b", "score": "0.56369984", "text": "@Override\n\tprotected void getData() {\n\n\t}", "title": "" } ]
680871aa1617ca41028d5a560498921d
Test case number: 27 /Coverage entropy=0.7590639940948603
[ { "docid": "5368ffb086f222cb6fad4bd32cc7c1a6", "score": "0.0", "text": "@Test(timeout = 4000)\n public void test27() throws Throwable {\n LovinsStemmer lovinsStemmer0 = new LovinsStemmer();\n String string0 = lovinsStemmer0.stem(\"eflax\");\n assertEquals(\"eflac\", string0);\n }", "title": "" } ]
[ { "docid": "b69e946924bedc7e78295f5523c1e76d", "score": "0.7024338", "text": "@Test(timeout = 4000)\n public void test14() throws Throwable {\n FileSystemHandling.appendStringToFile((EvoSuiteFile) null, \"\\tOnly outputs the source representation of the classifer,\\n\\tgiving it the supplied name.\\n\");\n FileSystemHandling.createFolder((EvoSuiteFile) null);\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.KBMeanInformation();\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n \n Random.setNextRandom((-55));\n evaluation0.useNoPriors();\n evaluation0.getClassPriors();\n assertEquals(Double.NaN, evaluation0.SFEntropyGain(), 0.01);\n }", "title": "" }, { "docid": "b9ec227e12328ec1b7ec6f15bec84114", "score": "0.67732584", "text": "@Test(timeout = 4000)\n public void test11() throws Throwable {\n FileSystemHandling.appendStringToFile((EvoSuiteFile) null, \"\\tOnly outputs the source representation of the classifier,\\n\\tgiving it the supplied name.\\n\");\n FileSystemHandling.createFolder((EvoSuiteFile) null);\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n Version.MAJOR = (-1910916519);\n evaluation0.m_ClassPriorsSum = 1505.299;\n evaluation0.relativeAbsoluteError();\n double double0 = evaluation0.fMeasure(3278);\n assertEquals(0.0, double0, 0.01);\n assertEquals(Double.NaN, evaluation0.meanPriorAbsoluteError(), 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "title": "" }, { "docid": "15193fcb259395b91a7ad7204db76cfd", "score": "0.6752324", "text": "@Test\n public void canCalculateEntropy() {\n assertEquals(0.0, ID3.calcEntropy(0, 5), 0.01);\n assertEquals(0.0, ID3.calcEntropy(5, 0), 0.01);\n\n // even split of class labels have max entropy (1.0)\n assertEquals(1.0, ID3.calcEntropy(2, 2), 0.001);\n\n assertEquals(0.59, ID3.calcEntropy(1, 6), 0.01);\n assertEquals(0.97, ID3.calcEntropy(3, 2), 0.01);\n assertEquals(0.918, ID3.calcEntropy(1, 2), 0.001);\n }", "title": "" }, { "docid": "8f7bb41e96af226e708f0cd19c334ab9", "score": "0.64874744", "text": "public long getCoverage();", "title": "" }, { "docid": "4d5f7dd74c3086121c162b1dfeef7a0f", "score": "0.64844775", "text": "@Test(timeout = 4000)\n public void test47() throws Throwable {\n Discretize discretize0 = new Discretize();\n assertFalse(discretize0.getFindNumBins());\n \n ArrayList<Attribute> arrayList0 = new ArrayList<Attribute>();\n Attribute attribute0 = new Attribute(\"I+f$+xD>^3e\", (-142));\n arrayList0.add(attribute0);\n Instances instances0 = new Instances(\"integer\", arrayList0, 0);\n discretize0.m_FindNumBins = true;\n discretize0.setInputFormat(instances0);\n discretize0.calculateCutPoints();\n assertTrue(discretize0.getFindNumBins());\n }", "title": "" }, { "docid": "55ab8e9787d37b9940119a8cf5f898e4", "score": "0.647182", "text": "@Test(timeout = 4000)\n public void test18() throws Throwable {\n FileSystemHandling.appendStringToFile((EvoSuiteFile) null, \"\\tOnly outputs the source representation of the classifier,\\n\\tgiving it the supplied name.\\n\");\n FileSystemHandling.createFolder((EvoSuiteFile) null);\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.m_NumTrainClassVals = (-1069);\n String string0 = evaluation0.toClassDetailsString(\"@data\");\n assertEquals(\"@data\\n TP Rate FP Rate Precision Recall F-Measure MCC ROC Area PRC Area Class\\nWeighted Avg. NaN NaN NaN NaN NaN NaN NaN NaN \\n\", string0);\n \n evaluation0.setNumericPriorsFromBuffer();\n double double0 = evaluation0.kappa();\n assertEquals(1.0, double0, 0.01);\n }", "title": "" }, { "docid": "a74e4812807a1a333e14c9312fdbb2b1", "score": "0.6471812", "text": "@Test(timeout = 4000)\n public void test07() throws Throwable {\n double[] doubleArray0 = new double[8];\n doubleArray0[0] = 0.0;\n doubleArray0[1] = 100.0;\n doubleArray0[2] = 100.0;\n LMT lMT0 = new LMT();\n FilteredClassifier filteredClassifier0 = new FilteredClassifier();\n FindWithCapabilities findWithCapabilities0 = new FindWithCapabilities();\n Capabilities capabilities0 = findWithCapabilities0.getNotCapabilities();\n TestInstances testInstances0 = TestInstances.forCapabilities(capabilities0);\n Instances instances0 = testInstances0.generate();\n Evaluation evaluation0 = new Evaluation(instances0);\n Random.setNextRandom((-1461032992));\n double[][] doubleArray1 = evaluation0.confusionMatrix();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(2, doubleArray1.length);\n }", "title": "" }, { "docid": "27b96a1da16eda101b7efcde73cf7f10", "score": "0.6347461", "text": "@Test(timeout = 4000)\n public void test13() throws Throwable {\n double[] doubleArray0 = new double[9];\n doubleArray0[0] = (-2878.2855439434634);\n doubleArray0[1] = (-2878.2855439434634);\n doubleArray0[2] = (-2878.2855439434634);\n doubleArray0[3] = (-1650.072161008);\n doubleArray0[4] = (-2878.2855439434634);\n Discretize discretize0 = new Discretize();\n String string0 = discretize0.getAttributeIndices();\n assertEquals(\"first-last\", string0);\n \n discretize0.getCapabilities();\n String string1 = discretize0.globalInfo();\n assertEquals(\"An instance filter that discretizes a range of numeric attributes in the dataset into nominal attributes. Discretization is by simple binning. Skips the class attribute if set.\", string1);\n \n discretize0.getCutPoints((-2526));\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertFalse(discretize0.getUseBinNumbers());\n assertEquals(10, discretize0.getBins());\n assertFalse(discretize0.getMakeBinary());\n assertFalse(discretize0.getFindNumBins());\n assertFalse(discretize0.getUseEqualFrequency());\n }", "title": "" }, { "docid": "46542d54c050a4ce6d98e71415ab17da", "score": "0.63242996", "text": "public EntropyEvaluatorTest(\n String testName)\n {\n super(testName);\n }", "title": "" }, { "docid": "96d3a71c96696aae8075030b1d671c18", "score": "0.63119614", "text": "@Test(timeout = 4000)\n public void test12() throws Throwable {\n FileSystemHandling.shouldAllThrowIOExceptions();\n FileSystemHandling.createFolder((EvoSuiteFile) null);\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.avgCost();\n assertEquals(Double.NaN, double0, 0.01);\n \n evaluation0.rootRelativeSquaredError();\n String string0 = evaluation0.getRevision();\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanPriorSquaredError(), 0.01);\n assertEquals(\"9101\", string0);\n }", "title": "" }, { "docid": "431db80741504536421b3518d8615b00", "score": "0.6301979", "text": "@Test(timeout = 4000)\n public void test40() throws Throwable {\n Discretize discretize0 = new Discretize();\n ArrayList<Attribute> arrayList0 = new ArrayList<Attribute>();\n arrayList0.trimToSize();\n Attribute attribute0 = new Attribute(\"I++xD^3e\", (-198));\n arrayList0.add(attribute0);\n Instances instances0 = new Instances(\"integer\", arrayList0, 6);\n discretize0.setInputFormat(instances0);\n discretize0.setInputFormat(instances0);\n boolean boolean0 = discretize0.m_IgnoreClass;\n discretize0.batchFinished();\n FileSystemHandling fileSystemHandling0 = new FileSystemHandling();\n DenseInstance denseInstance0 = new DenseInstance(1);\n discretize0.input(denseInstance0);\n discretize0.batchFinished();\n discretize0.setOutputFormat();\n // Undeclared exception!\n try { \n discretize0.calculateCutPointsByEqualFrequencyBinning((-2064888120));\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // -2064888120\n //\n verifyException(\"weka.filters.unsupervised.attribute.Discretize\", e);\n }\n }", "title": "" }, { "docid": "c1d6a52f2122fa163cc1d9a25d2b40a5", "score": "0.6287018", "text": "@Test(timeout = 4000)\n public void test48() throws Throwable {\n Discretize discretize0 = new Discretize();\n ArrayList<Attribute> arrayList0 = new ArrayList<Attribute>();\n int int0 = (-198);\n discretize0.m_IgnoreClass = false;\n Attribute attribute0 = new Attribute(\"I++xD^3e\", (-198));\n arrayList0.add(attribute0);\n discretize0.setUseEqualFrequency(true);\n Instances instances0 = new Instances(\"integer\", arrayList0, 6);\n discretize0.setInputFormat(instances0);\n discretize0.getCapabilities();\n discretize0.setInputFormat(instances0);\n boolean boolean0 = discretize0.m_IgnoreClass;\n discretize0.batchFinished();\n // Undeclared exception!\n try { \n discretize0.calculateCutPointsByEqualFrequencyBinning((-3016));\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // -3016\n //\n verifyException(\"weka.filters.unsupervised.attribute.Discretize\", e);\n }\n }", "title": "" }, { "docid": "42e9b646115088eba46910fa79da088c", "score": "0.62833536", "text": "@Test(timeout = 4000)\n public void test12() throws Throwable {\n Discretize discretize0 = new Discretize();\n discretize0.m_UseBinNumbers = true;\n discretize0.setDesiredWeightOfInstancesPerInterval((-2128.112));\n discretize0.m_IgnoreClass = true;\n discretize0.listOptions();\n discretize0.makeBinaryTipText();\n discretize0.setMakeBinary(true);\n double[] doubleArray0 = new double[5];\n doubleArray0[0] = (-1.7976931348623157E308);\n double[][] doubleArray1 = new double[2][8];\n doubleArray1[0] = doubleArray0;\n doubleArray1[1] = doubleArray0;\n discretize0.m_CutPoints = doubleArray1;\n doubleArray0[1] = (-1.7976931348623157E308);\n doubleArray0[2] = (-2128.112);\n doubleArray0[3] = (-2128.112);\n doubleArray0[4] = (-1.7976931348623157E308);\n String[] stringArray0 = new String[8];\n stringArray0[0] = \"Make resulting attributes binary.\";\n stringArray0[1] = \"Make resulting attributes binary.\";\n stringArray0[2] = \"Make resulting attributes binary.\";\n stringArray0[3] = \"A\";\n stringArray0[4] = \"Make resulting attributes binary.\";\n stringArray0[5] = \"Make resulting attributes binary.\";\n stringArray0[6] = \"Make resulting attributes binary.\";\n stringArray0[7] = \"Make resulting attributes binary.\";\n Discretize.main(stringArray0);\n assertEquals(8, stringArray0.length);\n }", "title": "" }, { "docid": "04158b5bc11fe6132a633873ca63c902", "score": "0.6260786", "text": "@Test(timeout = 4000)\n public void test26() throws Throwable {\n double[] doubleArray0 = new double[8];\n doubleArray0[0] = 0.0;\n doubleArray0[1] = 100.0;\n doubleArray0[1] = 0.0;\n doubleArray0[3] = 45.0;\n doubleArray0[4] = (-1654.7007184771);\n doubleArray0[5] = 0.0;\n doubleArray0[6] = 1271.8;\n doubleArray0[7] = 100.0;\n InputMappedClassifier inputMappedClassifier0 = new InputMappedClassifier();\n assertNotNull(inputMappedClassifier0);\n assertTrue(inputMappedClassifier0.getTrim());\n assertFalse(inputMappedClassifier0.getDebug());\n assertEquals(\"Set the path from which to load a model. Loading occurs when the first test instance is received. Environment variables can be used in the supplied path.\", inputMappedClassifier0.modelPathTipText());\n assertEquals(0, inputMappedClassifier0.graphType());\n assertEquals(\"Don't output a report of model-to-input mappings.\", inputMappedClassifier0.suppressMappingReportTipText());\n assertEquals(\"\", inputMappedClassifier0.getModelPath());\n assertTrue(inputMappedClassifier0.getIgnoreCaseForNames());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", inputMappedClassifier0.debugTipText());\n assertEquals(\"The base classifier to be used.\", inputMappedClassifier0.classifierTipText());\n assertEquals(\"Trim white space from each end of attribute names and nominal values before matching.\", inputMappedClassifier0.trimTipText());\n assertEquals(\"Wrapper classifier that addresses incompatible training and test data by building a mapping between the training data that a classifier has been built with and the incoming test instances' structure. Model attributes that are not found in the incoming instances receive missing values, so do incoming nominal attribute values that the classifier has not seen before. A new classifier can be trained or an existing one loaded from a file.\", inputMappedClassifier0.globalInfo());\n assertFalse(inputMappedClassifier0.getSuppressMappingReport());\n assertEquals(\"Ignore case when matching attribute names and nomina values.\", inputMappedClassifier0.ignoreCaseForNamesTipText());\n \n OneR oneR0 = new OneR();\n assertNotNull(oneR0);\n assertEquals(6, oneR0.getMinBucketSize());\n assertEquals(\"The minimum bucket size used for discretizing numeric attributes.\", oneR0.minBucketSizeTipText());\n assertFalse(oneR0.getDebug());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", oneR0.debugTipText());\n \n Capabilities capabilities0 = oneR0.getCapabilities();\n assertNotNull(capabilities0);\n assertEquals(6, oneR0.getMinBucketSize());\n assertEquals(\"The minimum bucket size used for discretizing numeric attributes.\", oneR0.minBucketSizeTipText());\n assertFalse(oneR0.getDebug());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", oneR0.debugTipText());\n assertFalse(capabilities0.hasDependencies());\n assertEquals(1, capabilities0.getMinimumNumberInstances());\n \n TestInstances testInstances0 = TestInstances.forCapabilities(capabilities0);\n assertNotNull(testInstances0);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals(6, oneR0.getMinBucketSize());\n assertEquals(\"The minimum bucket size used for discretizing numeric attributes.\", oneR0.minBucketSizeTipText());\n assertFalse(oneR0.getDebug());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", oneR0.debugTipText());\n assertFalse(capabilities0.hasDependencies());\n assertEquals(1, capabilities0.getMinimumNumberInstances());\n assertEquals(1, testInstances0.getNumDate());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertFalse(testInstances0.getNoClass());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(1, testInstances0.getNumRelationalNumeric());\n assertEquals(4, testInstances0.getNumAttributes());\n assertEquals(1, testInstances0.getNumNumeric());\n assertEquals(4, testInstances0.getNumClasses());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(1, testInstances0.getNumRelationalDate());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(20, testInstances0.getNumInstances());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(1, testInstances0.getClassType());\n \n TestInstances testInstances1 = TestInstances.forCapabilities(capabilities0);\n assertFalse(testInstances1.equals((Object)testInstances0));\n assertNotNull(testInstances1);\n assertNotSame(testInstances1, testInstances0);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertEquals(6, oneR0.getMinBucketSize());\n assertEquals(\"The minimum bucket size used for discretizing numeric attributes.\", oneR0.minBucketSizeTipText());\n assertFalse(oneR0.getDebug());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", oneR0.debugTipText());\n assertFalse(capabilities0.hasDependencies());\n assertEquals(1, capabilities0.getMinimumNumberInstances());\n assertEquals(1, testInstances1.getClassType());\n assertEquals(1, testInstances1.getNumRelationalNominal());\n assertEquals(1, testInstances1.getSeed());\n assertEquals((-1), testInstances1.getClassIndex());\n assertEquals(2, testInstances1.getNumNominalValues());\n assertEquals(4, testInstances1.getNumAttributes());\n assertEquals(10, testInstances1.getNumInstancesRelational());\n assertEquals(0, testInstances1.getNumRelational());\n assertEquals(\" \", testInstances1.getWordSeparators());\n assertEquals(\"Testdata\", testInstances1.getRelation());\n assertEquals(1, testInstances1.getNumDate());\n assertEquals(1, testInstances1.getNumRelationalDate());\n assertEquals(1, testInstances1.getNumNominal());\n assertEquals(20, testInstances1.getNumInstances());\n assertEquals(4, testInstances1.getNumClasses());\n assertFalse(testInstances1.getNoClass());\n assertFalse(testInstances1.getMultiInstance());\n assertEquals(0, testInstances1.getNumRelationalString());\n assertEquals(2, testInstances1.getNumRelationalNominalValues());\n assertEquals(1, testInstances1.getNumNumeric());\n assertEquals(1, testInstances1.getNumRelationalNumeric());\n assertEquals(0, testInstances1.getNumString());\n \n Instances instances0 = testInstances1.generate();\n assertFalse(testInstances1.equals((Object)testInstances0));\n assertNotNull(instances0);\n assertNotSame(testInstances1, testInstances0);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertEquals(6, oneR0.getMinBucketSize());\n assertEquals(\"The minimum bucket size used for discretizing numeric attributes.\", oneR0.minBucketSizeTipText());\n assertFalse(oneR0.getDebug());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", oneR0.debugTipText());\n assertFalse(capabilities0.hasDependencies());\n assertEquals(1, capabilities0.getMinimumNumberInstances());\n assertEquals(1, testInstances1.getClassType());\n assertEquals(1, testInstances1.getNumRelationalNominal());\n assertEquals(1, testInstances1.getSeed());\n assertEquals((-1), testInstances1.getClassIndex());\n assertEquals(2, testInstances1.getNumNominalValues());\n assertEquals(4, testInstances1.getNumAttributes());\n assertEquals(10, testInstances1.getNumInstancesRelational());\n assertEquals(0, testInstances1.getNumRelational());\n assertEquals(\" \", testInstances1.getWordSeparators());\n assertEquals(\"Testdata\", testInstances1.getRelation());\n assertEquals(1, testInstances1.getNumDate());\n assertEquals(1, testInstances1.getNumRelationalDate());\n assertEquals(1, testInstances1.getNumNominal());\n assertEquals(20, testInstances1.getNumInstances());\n assertEquals(4, testInstances1.getNumClasses());\n assertFalse(testInstances1.getNoClass());\n assertFalse(testInstances1.getMultiInstance());\n assertEquals(0, testInstances1.getNumRelationalString());\n assertEquals(2, testInstances1.getNumRelationalNominalValues());\n assertEquals(1, testInstances1.getNumNumeric());\n assertEquals(1, testInstances1.getNumRelationalNumeric());\n assertEquals(0, testInstances1.getNumString());\n assertEquals(4, instances0.numClasses());\n assertEquals(3, instances0.classIndex());\n assertEquals(20, instances0.numInstances());\n assertEquals(\"Testdata\", instances0.relationName());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertFalse(instances0.checkForStringAttributes());\n assertEquals(20, instances0.size());\n assertEquals(4, instances0.numAttributes());\n \n J48.main(testInstances1.DEFAULT_WORDS);\n assertFalse(testInstances1.equals((Object)testInstances0));\n assertNotSame(testInstances1, testInstances0);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertEquals(6, oneR0.getMinBucketSize());\n assertEquals(\"The minimum bucket size used for discretizing numeric attributes.\", oneR0.minBucketSizeTipText());\n assertFalse(oneR0.getDebug());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", oneR0.debugTipText());\n assertFalse(capabilities0.hasDependencies());\n assertEquals(1, capabilities0.getMinimumNumberInstances());\n assertEquals(1, testInstances1.getClassType());\n assertEquals(1, testInstances1.getNumRelationalNominal());\n assertEquals(1, testInstances1.getSeed());\n assertEquals((-1), testInstances1.getClassIndex());\n assertEquals(2, testInstances1.getNumNominalValues());\n assertEquals(4, testInstances1.getNumAttributes());\n assertEquals(10, testInstances1.getNumInstancesRelational());\n assertEquals(0, testInstances1.getNumRelational());\n assertEquals(\" \", testInstances1.getWordSeparators());\n assertEquals(\"Testdata\", testInstances1.getRelation());\n assertEquals(1, testInstances1.getNumDate());\n assertEquals(1, testInstances1.getNumRelationalDate());\n assertEquals(1, testInstances1.getNumNominal());\n assertEquals(20, testInstances1.getNumInstances());\n assertEquals(4, testInstances1.getNumClasses());\n assertFalse(testInstances1.getNoClass());\n assertFalse(testInstances1.getMultiInstance());\n assertEquals(0, testInstances1.getNumRelationalString());\n assertEquals(2, testInstances1.getNumRelationalNominalValues());\n assertEquals(1, testInstances1.getNumNumeric());\n assertEquals(1, testInstances1.getNumRelationalNumeric());\n assertEquals(0, testInstances1.getNumString());\n \n RandomCommittee randomCommittee0 = new RandomCommittee();\n assertNotNull(randomCommittee0);\n assertEquals(\"If set to true, classifier may output additional info to the console.\", randomCommittee0.debugTipText());\n assertEquals(\"Class for building an ensemble of randomizable base classifiers. Each base classifiers is built using a different random number seed (but based one the same data). The final prediction is a straight average of the predictions generated by the individual base classifiers.\", randomCommittee0.globalInfo());\n assertEquals(\"The base classifier to be used.\", randomCommittee0.classifierTipText());\n assertEquals(\"The number of iterations to be performed.\", randomCommittee0.numIterationsTipText());\n assertFalse(randomCommittee0.getDebug());\n assertEquals(\"The number of execution slots (threads) to use for constructing the ensemble.\", randomCommittee0.numExecutionSlotsTipText());\n assertEquals(\"The random number seed to be used.\", randomCommittee0.seedTipText());\n assertEquals(1, randomCommittee0.getSeed());\n assertEquals(10, randomCommittee0.getNumIterations());\n assertEquals(1, randomCommittee0.getNumExecutionSlots());\n \n Random.setNextRandom(2828);\n Random.setNextRandom((-1));\n Evaluation evaluation0 = new Evaluation(instances0);\n assertFalse(testInstances1.equals((Object)testInstances0));\n assertNotNull(evaluation0);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertEquals(Double.NaN, evaluation0.meanPriorAbsoluteError(), 0.01);\n assertEquals(0.0, evaluation0.incorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFalsePositiveRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctIncorrect(), 0.01);\n assertEquals(1.0, evaluation0.kappa(), 0.01);\n assertEquals(Double.NaN, evaluation0.coverageOfTestCasesByPredictedRegions(), 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.errorRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedRecall(), 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedPrecision(), 0.01);\n assertEquals(0.0, evaluation0.totalCost(), 0.01);\n assertEquals(Double.NaN, evaluation0.relativeAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFalseNegativeRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootRelativeSquaredError(), 0.01);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(0.0, evaluation0.correct(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanPriorSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.avgCost(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctUnclassified(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedTrueNegativeRate(), 0.01);\n assertFalse(evaluation0.getDiscardPredictions());\n assertEquals(Double.NaN, evaluation0.weightedFMeasure(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctCorrect(), 0.01);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanSchemeEntropy(), 0.01);\n assertEquals(0.0, evaluation0.numInstances(), 0.01);\n assertEquals(Double.NaN, evaluation0.sizeOfPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedTruePositiveRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.unweightedMicroFmeasure(), 0.01);\n assertEquals(6, oneR0.getMinBucketSize());\n assertEquals(\"The minimum bucket size used for discretizing numeric attributes.\", oneR0.minBucketSizeTipText());\n assertFalse(oneR0.getDebug());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", oneR0.debugTipText());\n assertFalse(capabilities0.hasDependencies());\n assertEquals(1, capabilities0.getMinimumNumberInstances());\n assertEquals(1, testInstances1.getClassType());\n assertEquals(1, testInstances1.getNumRelationalNominal());\n assertEquals(1, testInstances1.getSeed());\n assertEquals((-1), testInstances1.getClassIndex());\n assertEquals(2, testInstances1.getNumNominalValues());\n assertEquals(4, testInstances1.getNumAttributes());\n assertEquals(10, testInstances1.getNumInstancesRelational());\n assertEquals(0, testInstances1.getNumRelational());\n assertEquals(\" \", testInstances1.getWordSeparators());\n assertEquals(\"Testdata\", testInstances1.getRelation());\n assertEquals(1, testInstances1.getNumDate());\n assertEquals(1, testInstances1.getNumRelationalDate());\n assertEquals(1, testInstances1.getNumNominal());\n assertEquals(20, testInstances1.getNumInstances());\n assertEquals(4, testInstances1.getNumClasses());\n assertFalse(testInstances1.getNoClass());\n assertFalse(testInstances1.getMultiInstance());\n assertEquals(0, testInstances1.getNumRelationalString());\n assertEquals(2, testInstances1.getNumRelationalNominalValues());\n assertEquals(1, testInstances1.getNumNumeric());\n assertEquals(1, testInstances1.getNumRelationalNumeric());\n assertEquals(0, testInstances1.getNumString());\n assertEquals(4, instances0.numClasses());\n assertEquals(3, instances0.classIndex());\n assertEquals(20, instances0.numInstances());\n assertEquals(\"Testdata\", instances0.relationName());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertFalse(instances0.checkForStringAttributes());\n assertEquals(20, instances0.size());\n assertEquals(4, instances0.numAttributes());\n \n double double0 = evaluation0.priorEntropy();\n assertFalse(testInstances1.equals((Object)testInstances0));\n assertNotSame(testInstances1, testInstances0);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertEquals(Double.NaN, evaluation0.meanPriorAbsoluteError(), 0.01);\n assertEquals(0.0, evaluation0.incorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFalsePositiveRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctIncorrect(), 0.01);\n assertEquals(1.0, evaluation0.kappa(), 0.01);\n assertEquals(Double.NaN, evaluation0.coverageOfTestCasesByPredictedRegions(), 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.errorRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedRecall(), 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedPrecision(), 0.01);\n assertEquals(0.0, evaluation0.totalCost(), 0.01);\n assertEquals(Double.NaN, evaluation0.relativeAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFalseNegativeRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootRelativeSquaredError(), 0.01);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(0.0, evaluation0.correct(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanPriorSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.avgCost(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctUnclassified(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedTrueNegativeRate(), 0.01);\n assertFalse(evaluation0.getDiscardPredictions());\n assertEquals(Double.NaN, evaluation0.weightedFMeasure(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctCorrect(), 0.01);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanSchemeEntropy(), 0.01);\n assertEquals(0.0, evaluation0.numInstances(), 0.01);\n assertEquals(Double.NaN, evaluation0.sizeOfPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedTruePositiveRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.unweightedMicroFmeasure(), 0.01);\n assertEquals(6, oneR0.getMinBucketSize());\n assertEquals(\"The minimum bucket size used for discretizing numeric attributes.\", oneR0.minBucketSizeTipText());\n assertFalse(oneR0.getDebug());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", oneR0.debugTipText());\n assertFalse(capabilities0.hasDependencies());\n assertEquals(1, capabilities0.getMinimumNumberInstances());\n assertEquals(1, testInstances1.getClassType());\n assertEquals(1, testInstances1.getNumRelationalNominal());\n assertEquals(1, testInstances1.getSeed());\n assertEquals((-1), testInstances1.getClassIndex());\n assertEquals(2, testInstances1.getNumNominalValues());\n assertEquals(4, testInstances1.getNumAttributes());\n assertEquals(10, testInstances1.getNumInstancesRelational());\n assertEquals(0, testInstances1.getNumRelational());\n assertEquals(\" \", testInstances1.getWordSeparators());\n assertEquals(\"Testdata\", testInstances1.getRelation());\n assertEquals(1, testInstances1.getNumDate());\n assertEquals(1, testInstances1.getNumRelationalDate());\n assertEquals(1, testInstances1.getNumNominal());\n assertEquals(20, testInstances1.getNumInstances());\n assertEquals(4, testInstances1.getNumClasses());\n assertFalse(testInstances1.getNoClass());\n assertFalse(testInstances1.getMultiInstance());\n assertEquals(0, testInstances1.getNumRelationalString());\n assertEquals(2, testInstances1.getNumRelationalNominalValues());\n assertEquals(1, testInstances1.getNumNumeric());\n assertEquals(1, testInstances1.getNumRelationalNumeric());\n assertEquals(0, testInstances1.getNumString());\n assertEquals(4, instances0.numClasses());\n assertEquals(3, instances0.classIndex());\n assertEquals(20, instances0.numInstances());\n assertEquals(\"Testdata\", instances0.relationName());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertFalse(instances0.checkForStringAttributes());\n assertEquals(20, instances0.size());\n assertEquals(4, instances0.numAttributes());\n assertEquals(1.910762106246821, double0, 0.01);\n \n DatabaseLoader databaseLoader0 = new DatabaseLoader();\n assertNotNull(databaseLoader0);\n assertEquals(\"\", databaseLoader0.getUser());\n assertEquals(\"The database password\", databaseLoader0.passwordTipText());\n assertEquals(\"The user name for the database\", databaseLoader0.userTipText());\n assertEquals(\"The URL of the database\", databaseLoader0.urlTipText());\n assertEquals(\"Select * from Results0\", databaseLoader0.getQuery());\n assertEquals(\"The custom properties that the user can use to override the default ones.\", databaseLoader0.customPropsFileTipText());\n assertEquals(\"For incremental loading a unique identiefer has to be specified.\\nIf the query includes all columns of a table (SELECT *...) a primary key\\ncan be detected automatically depending on the JDBC driver. If that is not possible\\nspecify the key columns here in a comma separated list.\", databaseLoader0.keysTipText());\n assertEquals(\"The query that should load the instances.\\n The query has to be of the form SELECT <column-list>|* FROM <table> [WHERE <conditions>]\", databaseLoader0.queryTipText());\n assertFalse(databaseLoader0.getSparseData());\n assertEquals(\"jdbc:idb=experiments.prp\", databaseLoader0.getUrl());\n assertEquals(\"Encode data as sparse instances.\", databaseLoader0.sparseDataTipText());\n assertEquals(\"\", databaseLoader0.getPassword());\n \n Instance instance0 = databaseLoader0.getNextInstance(instances0);\n assertFalse(testInstances1.equals((Object)testInstances0));\n assertNull(instance0);\n assertNotSame(testInstances1, testInstances0);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertEquals(\"\", databaseLoader0.getUser());\n assertEquals(\"The database password\", databaseLoader0.passwordTipText());\n assertEquals(\"The user name for the database\", databaseLoader0.userTipText());\n assertEquals(\"The URL of the database\", databaseLoader0.urlTipText());\n assertEquals(\"Select * from Results0\", databaseLoader0.getQuery());\n assertEquals(\"The custom properties that the user can use to override the default ones.\", databaseLoader0.customPropsFileTipText());\n assertEquals(\"For incremental loading a unique identiefer has to be specified.\\nIf the query includes all columns of a table (SELECT *...) a primary key\\ncan be detected automatically depending on the JDBC driver. If that is not possible\\nspecify the key columns here in a comma separated list.\", databaseLoader0.keysTipText());\n assertEquals(\"The query that should load the instances.\\n The query has to be of the form SELECT <column-list>|* FROM <table> [WHERE <conditions>]\", databaseLoader0.queryTipText());\n assertFalse(databaseLoader0.getSparseData());\n assertEquals(\"jdbc:idb=experiments.prp\", databaseLoader0.getUrl());\n assertEquals(\"Encode data as sparse instances.\", databaseLoader0.sparseDataTipText());\n assertEquals(\"\", databaseLoader0.getPassword());\n assertEquals(6, oneR0.getMinBucketSize());\n assertEquals(\"The minimum bucket size used for discretizing numeric attributes.\", oneR0.minBucketSizeTipText());\n assertFalse(oneR0.getDebug());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", oneR0.debugTipText());\n assertFalse(capabilities0.hasDependencies());\n assertEquals(1, capabilities0.getMinimumNumberInstances());\n assertEquals(1, testInstances1.getClassType());\n assertEquals(1, testInstances1.getNumRelationalNominal());\n assertEquals(1, testInstances1.getSeed());\n assertEquals((-1), testInstances1.getClassIndex());\n assertEquals(2, testInstances1.getNumNominalValues());\n assertEquals(4, testInstances1.getNumAttributes());\n assertEquals(10, testInstances1.getNumInstancesRelational());\n assertEquals(0, testInstances1.getNumRelational());\n assertEquals(\" \", testInstances1.getWordSeparators());\n assertEquals(\"Testdata\", testInstances1.getRelation());\n assertEquals(1, testInstances1.getNumDate());\n assertEquals(1, testInstances1.getNumRelationalDate());\n assertEquals(1, testInstances1.getNumNominal());\n assertEquals(20, testInstances1.getNumInstances());\n assertEquals(4, testInstances1.getNumClasses());\n assertFalse(testInstances1.getNoClass());\n assertFalse(testInstances1.getMultiInstance());\n assertEquals(0, testInstances1.getNumRelationalString());\n assertEquals(2, testInstances1.getNumRelationalNominalValues());\n assertEquals(1, testInstances1.getNumNumeric());\n assertEquals(1, testInstances1.getNumRelationalNumeric());\n assertEquals(0, testInstances1.getNumString());\n assertEquals(4, instances0.numClasses());\n assertEquals(3, instances0.classIndex());\n assertEquals(20, instances0.numInstances());\n assertEquals(\"Testdata\", instances0.relationName());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertFalse(instances0.checkForStringAttributes());\n assertEquals(20, instances0.size());\n assertEquals(4, instances0.numAttributes());\n \n try { \n evaluation0.updateStatsForClassifier(doubleArray0, (Instance) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"weka.classifiers.Evaluation\", e);\n }\n }", "title": "" }, { "docid": "a558e6c25c624cc2d19b0b502058050a", "score": "0.624559", "text": "@Test\n public void testEntropyNoise() {\n double sum = 0;\n double absSum = 0;\n double delta = 0.01;\n MyRandom myRandom = new MyRandom();\n \n int cycles = 1000;\n for (int i=0; i<cycles; i++) {\n double noise = myRandom.getNextEntropyNoiseValue();\n sum += noise;\n absSum += Math.abs(noise);\n }\n \n assertEquals(0.0, sum/cycles, delta);\n assertEquals(0.1, absSum/cycles, delta);\n }", "title": "" }, { "docid": "acac1bc451379c98f2f51329c080c865", "score": "0.6233459", "text": "@Test(timeout = 4000)\n public void test14() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n char[] charArray0 = new char[9];\n charArray0[0] = 'p';\n charArray0[1] = 'H';\n charArray0[2] = '.';\n charArray0[3] = '-';\n charArray0[4] = '/';\n charArray0[5] = 'n';\n charArray0[6] = 'j';\n charArray0[7] = '&';\n charArray0[8] = 'P';\n evaluation0.num2ShortID(116, charArray0, 116);\n RegressionByDiscretization regressionByDiscretization0 = new RegressionByDiscretization();\n int[] intArray0 = new int[9];\n intArray0[0] = 2;\n intArray0[1] = (-2264);\n intArray0[2] = 1;\n intArray0[3] = 0;\n intArray0[4] = 1105;\n intArray0[5] = 3152;\n intArray0[6] = 0;\n intArray0[7] = 2;\n intArray0[8] = 0;\n BinarySparseInstance binarySparseInstance0 = new BinarySparseInstance(1, intArray0, (-598));\n binarySparseInstance0.dataset();\n try { \n Evaluation.handleCostOption(\"@relation\", 0);\n fail(\"Expecting exception: Exception\");\n \n } catch(Exception e) {\n //\n // Can't open file null.\n //\n verifyException(\"weka.classifiers.Evaluation\", e);\n }\n }", "title": "" }, { "docid": "153e9a9164826ed6ea3edf4c5e62c763", "score": "0.62280744", "text": "@Test(timeout = 4000)\n public void test75() throws Throwable {\n ResultMatrixSignificance resultMatrixSignificance0 = new ResultMatrixSignificance();\n ResultMatrixLatex resultMatrixLatex0 = new ResultMatrixLatex();\n resultMatrixLatex0.clearSummary();\n double[][] doubleArray0 = new double[9][9];\n double[] doubleArray1 = new double[5];\n doubleArray1[0] = (double) 0;\n doubleArray1[2] = 2683.0;\n int[][] intArray0 = new int[0][8];\n resultMatrixLatex0.m_Wins = intArray0;\n doubleArray1[4] = 0.0;\n doubleArray0[0] = doubleArray1;\n double[] doubleArray2 = new double[9];\n doubleArray2[1] = (double) 0;\n doubleArray2[5] = (double) 1;\n doubleArray2[6] = (double) 0;\n doubleArray2[7] = (double) 2;\n doubleArray2[8] = (double) 1;\n ResultMatrixLatex resultMatrixLatex1 = new ResultMatrixLatex(2, 2);\n resultMatrixLatex1.clear();\n int int0 = ResultMatrix.SIGNIFICANCE_TIE;\n resultMatrixLatex0.setStdDev(0, (-2181), 0.0);\n resultMatrixLatex1.toStringKey();\n resultMatrixLatex1.getDisplayCol((-1248));\n }", "title": "" }, { "docid": "f7ef6a10e1434cd6cd943dbd4229ea95", "score": "0.6212809", "text": "@Test(timeout = 4000)\n public void test17() throws Throwable {\n FileSystemHandling.appendStringToFile((EvoSuiteFile) null, \"\\tOnly outputs the source representation of the classifier,\\n\\tgiving it the supplied name.\\n\");\n FileSystemHandling.createFolder((EvoSuiteFile) null);\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.toClassDetailsString(\"\");\n int[] intArray0 = new int[3];\n intArray0[0] = (-1069);\n intArray0[0] = (-1069);\n intArray0[2] = (-1069);\n BinarySparseInstance binarySparseInstance0 = new BinarySparseInstance(4271.484564117094, intArray0, (-1069));\n BinarySparseInstance binarySparseInstance1 = new BinarySparseInstance((Instance) binarySparseInstance0);\n BinarySparseInstance binarySparseInstance2 = new BinarySparseInstance((SparseInstance) binarySparseInstance0);\n int int0 = 38;\n CostMatrix costMatrix0 = new CostMatrix(38);\n Evaluation evaluation1 = null;\n try {\n evaluation1 = new Evaluation(instances0, costMatrix0);\n fail(\"Expecting exception: Exception\");\n \n } catch(Throwable e) {\n //\n // Cost matrix not compatible with data!\n //\n verifyException(\"weka.classifiers.Evaluation\", e);\n }\n }", "title": "" }, { "docid": "52aeececa9d67e27a1a0e64600212d30", "score": "0.6208691", "text": "@Test(timeout = 4000)\n public void test01() throws Throwable {\n Discretize discretize0 = new Discretize(\"CZ;]{o2`Z (=t1rgG\");\n discretize0.setBins(1748);\n assertEquals(1748, discretize0.getBins());\n }", "title": "" }, { "docid": "192f43f252ae34997854971a094855f2", "score": "0.6204438", "text": "@Test(timeout = 4000)\n public void test44() throws Throwable {\n Discretize discretize0 = new Discretize();\n ArrayList<Attribute> arrayList0 = new ArrayList<Attribute>();\n Attribute attribute0 = new Attribute(\"-cZ3P)DY$E\", (List<String>) null);\n arrayList0.add(attribute0);\n EvoSuiteFile evoSuiteFile0 = new EvoSuiteFile(\"Capabilities.props\");\n byte[] byteArray0 = new byte[2];\n byteArray0[0] = (byte)117;\n byteArray0[1] = (byte)3;\n FileSystemHandling.appendDataToFile(evoSuiteFile0, byteArray0);\n Instances instances0 = new Instances(\"\", arrayList0, 0);\n discretize0.setDesiredWeightOfInstancesPerInterval(2);\n String[] stringArray0 = new String[2];\n stringArray0[0] = \"date\";\n stringArray0[1] = \"@data\";\n Attribute.main(stringArray0);\n discretize0.setInputFormat(instances0);\n // Undeclared exception!\n try { \n discretize0.calculateCutPointsByEqualFrequencyBinning(0);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"weka.filters.unsupervised.attribute.Discretize\", e);\n }\n }", "title": "" }, { "docid": "514536ce921aed61e6f4be4b4cb847f2", "score": "0.61922675", "text": "@Test(timeout = 4000)\n public void test31() throws Throwable {\n Discretize discretize0 = new Discretize(\"Uf\");\n discretize0.setInvertSelection(true);\n String[] stringArray0 = discretize0.getOptions();\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertEquals(10, discretize0.getBins());\n assertEquals(7, stringArray0.length);\n }", "title": "" }, { "docid": "1af51e0b1ce20f9e1e77e1b6607ca910", "score": "0.6123893", "text": "@Test(timeout = 4000)\n public void test50() throws Throwable {\n Discretize discretize0 = new Discretize();\n ArrayList<Attribute> arrayList0 = new ArrayList<Attribute>();\n Attribute attribute0 = new Attribute(\"I++xD^3e\", (-198));\n arrayList0.add(attribute0);\n int int0 = 6;\n Instances instances0 = new Instances(\"integer\", arrayList0, 6);\n instances0.setClass(attribute0);\n discretize0.setInputFormat(instances0);\n discretize0.setInputFormat(instances0);\n boolean boolean0 = discretize0.m_IgnoreClass;\n discretize0.batchFinished();\n DenseInstance denseInstance0 = new DenseInstance(3277);\n discretize0.input(denseInstance0);\n System.setCurrentTimeMillis((-1L));\n // Undeclared exception!\n try { \n discretize0.calculateCutPointsByEqualFrequencyBinning(2);\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // 2\n //\n verifyException(\"weka.filters.unsupervised.attribute.Discretize\", e);\n }\n }", "title": "" }, { "docid": "b08d0130f43726c734dbd78352be6435", "score": "0.61196023", "text": "@Test(timeout = 4000)\n public void test46() throws Throwable {\n Discretize discretize0 = new Discretize();\n ArrayList<Attribute> arrayList0 = new ArrayList<Attribute>();\n Attribute attribute0 = new Attribute(\"I++xD^3e\", (-198));\n arrayList0.add(attribute0);\n Instances instances0 = new Instances(\"integer\", arrayList0, 6);\n discretize0.setInputFormat(instances0);\n discretize0.setInputFormat(instances0);\n boolean boolean0 = discretize0.m_IgnoreClass;\n boolean boolean1 = discretize0.batchFinished();\n DenseInstance denseInstance0 = new DenseInstance(1);\n String string0 = discretize0.getBinRangesString(0);\n assertEquals(\"All\", string0);\n \n DenseInstance denseInstance1 = new DenseInstance(2);\n boolean boolean2 = discretize0.input(denseInstance0);\n assertFalse(boolean2 == boolean1);\n \n discretize0.setInputFormat(instances0);\n discretize0.setOutputFormat();\n assertEquals(10, discretize0.getBins());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertFalse(discretize0.getUseEqualFrequency());\n }", "title": "" }, { "docid": "da3d03bb20573b931189a933dbada605", "score": "0.6115886", "text": "@Test(timeout = 4000)\n public void test25() throws Throwable {\n double[] doubleArray0 = new double[8];\n doubleArray0[0] = 0.0;\n doubleArray0[1] = 100.0;\n doubleArray0[2] = 0.0;\n doubleArray0[3] = 45.0;\n doubleArray0[4] = (-1654.7007184771);\n doubleArray0[5] = 100.0;\n doubleArray0[6] = 1271.8;\n doubleArray0[7] = 100.0;\n InputMappedClassifier inputMappedClassifier0 = new InputMappedClassifier();\n assertNotNull(inputMappedClassifier0);\n assertTrue(inputMappedClassifier0.getTrim());\n assertFalse(inputMappedClassifier0.getDebug());\n assertEquals(0, inputMappedClassifier0.graphType());\n assertEquals(\"Don't output a report of model-to-input mappings.\", inputMappedClassifier0.suppressMappingReportTipText());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", inputMappedClassifier0.debugTipText());\n assertEquals(\"\", inputMappedClassifier0.getModelPath());\n assertTrue(inputMappedClassifier0.getIgnoreCaseForNames());\n assertEquals(\"The base classifier to be used.\", inputMappedClassifier0.classifierTipText());\n assertEquals(\"Trim white space from each end of attribute names and nominal values before matching.\", inputMappedClassifier0.trimTipText());\n assertEquals(\"Ignore case when matching attribute names and nomina values.\", inputMappedClassifier0.ignoreCaseForNamesTipText());\n assertEquals(\"Wrapper classifier that addresses incompatible training and test data by building a mapping between the training data that a classifier has been built with and the incoming test instances' structure. Model attributes that are not found in the incoming instances receive missing values, so do incoming nominal attribute values that the classifier has not seen before. A new classifier can be trained or an existing one loaded from a file.\", inputMappedClassifier0.globalInfo());\n assertEquals(\"Set the path from which to load a model. Loading occurs when the first test instance is received. Environment variables can be used in the supplied path.\", inputMappedClassifier0.modelPathTipText());\n assertFalse(inputMappedClassifier0.getSuppressMappingReport());\n \n OneR oneR0 = new OneR();\n assertNotNull(oneR0);\n assertEquals(\"The minimum bucket size used for discretizing numeric attributes.\", oneR0.minBucketSizeTipText());\n assertEquals(6, oneR0.getMinBucketSize());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", oneR0.debugTipText());\n assertFalse(oneR0.getDebug());\n \n Capabilities capabilities0 = oneR0.getCapabilities();\n assertNotNull(capabilities0);\n assertEquals(\"The minimum bucket size used for discretizing numeric attributes.\", oneR0.minBucketSizeTipText());\n assertEquals(6, oneR0.getMinBucketSize());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", oneR0.debugTipText());\n assertFalse(oneR0.getDebug());\n assertFalse(capabilities0.hasDependencies());\n assertEquals(1, capabilities0.getMinimumNumberInstances());\n \n TestInstances testInstances0 = TestInstances.forCapabilities(capabilities0);\n assertNotNull(testInstances0);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals(\"The minimum bucket size used for discretizing numeric attributes.\", oneR0.minBucketSizeTipText());\n assertEquals(6, oneR0.getMinBucketSize());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", oneR0.debugTipText());\n assertFalse(oneR0.getDebug());\n assertFalse(capabilities0.hasDependencies());\n assertEquals(1, capabilities0.getMinimumNumberInstances());\n assertEquals(4, testInstances0.getNumClasses());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(4, testInstances0.getNumAttributes());\n assertEquals(1, testInstances0.getNumNumeric());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(1, testInstances0.getSeed());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(1, testInstances0.getNumRelationalNumeric());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(1, testInstances0.getNumDate());\n assertFalse(testInstances0.getNoClass());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertEquals(20, testInstances0.getNumInstances());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(1, testInstances0.getNumRelationalDate());\n assertEquals(1, testInstances0.getClassType());\n \n TestInstances testInstances1 = TestInstances.forCapabilities(capabilities0);\n assertFalse(testInstances1.equals((Object)testInstances0));\n assertNotNull(testInstances1);\n assertNotSame(testInstances1, testInstances0);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertEquals(\"The minimum bucket size used for discretizing numeric attributes.\", oneR0.minBucketSizeTipText());\n assertEquals(6, oneR0.getMinBucketSize());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", oneR0.debugTipText());\n assertFalse(oneR0.getDebug());\n assertFalse(capabilities0.hasDependencies());\n assertEquals(1, capabilities0.getMinimumNumberInstances());\n assertEquals(1, testInstances1.getNumRelationalNominal());\n assertEquals(1, testInstances1.getSeed());\n assertEquals((-1), testInstances1.getClassIndex());\n assertEquals(1, testInstances1.getClassType());\n assertEquals(1, testInstances1.getNumNominal());\n assertEquals(\"Testdata\", testInstances1.getRelation());\n assertEquals(1, testInstances1.getNumRelationalNumeric());\n assertEquals(0, testInstances1.getNumRelationalString());\n assertEquals(4, testInstances1.getNumAttributes());\n assertEquals(4, testInstances1.getNumClasses());\n assertEquals(1, testInstances1.getNumNumeric());\n assertEquals(0, testInstances1.getNumString());\n assertEquals(2, testInstances1.getNumRelationalNominalValues());\n assertFalse(testInstances1.getNoClass());\n assertEquals(20, testInstances1.getNumInstances());\n assertFalse(testInstances1.getMultiInstance());\n assertEquals(1, testInstances1.getNumRelationalDate());\n assertEquals(1, testInstances1.getNumDate());\n assertEquals(2, testInstances1.getNumNominalValues());\n assertEquals(0, testInstances1.getNumRelational());\n assertEquals(\" \", testInstances1.getWordSeparators());\n assertEquals(10, testInstances1.getNumInstancesRelational());\n \n Instances instances0 = testInstances1.generate();\n assertFalse(testInstances1.equals((Object)testInstances0));\n assertNotNull(instances0);\n assertNotSame(testInstances1, testInstances0);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertEquals(\"The minimum bucket size used for discretizing numeric attributes.\", oneR0.minBucketSizeTipText());\n assertEquals(6, oneR0.getMinBucketSize());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", oneR0.debugTipText());\n assertFalse(oneR0.getDebug());\n assertFalse(capabilities0.hasDependencies());\n assertEquals(1, capabilities0.getMinimumNumberInstances());\n assertEquals(1, testInstances1.getNumRelationalNominal());\n assertEquals(1, testInstances1.getSeed());\n assertEquals((-1), testInstances1.getClassIndex());\n assertEquals(1, testInstances1.getClassType());\n assertEquals(1, testInstances1.getNumNominal());\n assertEquals(\"Testdata\", testInstances1.getRelation());\n assertEquals(1, testInstances1.getNumRelationalNumeric());\n assertEquals(0, testInstances1.getNumRelationalString());\n assertEquals(4, testInstances1.getNumAttributes());\n assertEquals(4, testInstances1.getNumClasses());\n assertEquals(1, testInstances1.getNumNumeric());\n assertEquals(0, testInstances1.getNumString());\n assertEquals(2, testInstances1.getNumRelationalNominalValues());\n assertFalse(testInstances1.getNoClass());\n assertEquals(20, testInstances1.getNumInstances());\n assertFalse(testInstances1.getMultiInstance());\n assertEquals(1, testInstances1.getNumRelationalDate());\n assertEquals(1, testInstances1.getNumDate());\n assertEquals(2, testInstances1.getNumNominalValues());\n assertEquals(0, testInstances1.getNumRelational());\n assertEquals(\" \", testInstances1.getWordSeparators());\n assertEquals(10, testInstances1.getNumInstancesRelational());\n assertEquals(\"Testdata\", instances0.relationName());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertEquals(20, instances0.numInstances());\n assertEquals(4, instances0.numAttributes());\n assertFalse(instances0.checkForStringAttributes());\n assertEquals(4, instances0.numClasses());\n assertEquals(3, instances0.classIndex());\n assertEquals(20, instances0.size());\n \n J48.main(testInstances1.DEFAULT_WORDS);\n assertFalse(testInstances1.equals((Object)testInstances0));\n assertNotSame(testInstances1, testInstances0);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertEquals(\"The minimum bucket size used for discretizing numeric attributes.\", oneR0.minBucketSizeTipText());\n assertEquals(6, oneR0.getMinBucketSize());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", oneR0.debugTipText());\n assertFalse(oneR0.getDebug());\n assertFalse(capabilities0.hasDependencies());\n assertEquals(1, capabilities0.getMinimumNumberInstances());\n assertEquals(1, testInstances1.getNumRelationalNominal());\n assertEquals(1, testInstances1.getSeed());\n assertEquals((-1), testInstances1.getClassIndex());\n assertEquals(1, testInstances1.getClassType());\n assertEquals(1, testInstances1.getNumNominal());\n assertEquals(\"Testdata\", testInstances1.getRelation());\n assertEquals(1, testInstances1.getNumRelationalNumeric());\n assertEquals(0, testInstances1.getNumRelationalString());\n assertEquals(4, testInstances1.getNumAttributes());\n assertEquals(4, testInstances1.getNumClasses());\n assertEquals(1, testInstances1.getNumNumeric());\n assertEquals(0, testInstances1.getNumString());\n assertEquals(2, testInstances1.getNumRelationalNominalValues());\n assertFalse(testInstances1.getNoClass());\n assertEquals(20, testInstances1.getNumInstances());\n assertFalse(testInstances1.getMultiInstance());\n assertEquals(1, testInstances1.getNumRelationalDate());\n assertEquals(1, testInstances1.getNumDate());\n assertEquals(2, testInstances1.getNumNominalValues());\n assertEquals(0, testInstances1.getNumRelational());\n assertEquals(\" \", testInstances1.getWordSeparators());\n assertEquals(10, testInstances1.getNumInstancesRelational());\n \n RandomCommittee randomCommittee0 = new RandomCommittee();\n assertNotNull(randomCommittee0);\n assertEquals(1, randomCommittee0.getNumExecutionSlots());\n assertEquals(\"Class for building an ensemble of randomizable base classifiers. Each base classifiers is built using a different random number seed (but based one the same data). The final prediction is a straight average of the predictions generated by the individual base classifiers.\", randomCommittee0.globalInfo());\n assertEquals(\"The random number seed to be used.\", randomCommittee0.seedTipText());\n assertEquals(\"The base classifier to be used.\", randomCommittee0.classifierTipText());\n assertEquals(\"The number of iterations to be performed.\", randomCommittee0.numIterationsTipText());\n assertFalse(randomCommittee0.getDebug());\n assertEquals(1, randomCommittee0.getSeed());\n assertEquals(10, randomCommittee0.getNumIterations());\n assertEquals(\"The number of execution slots (threads) to use for constructing the ensemble.\", randomCommittee0.numExecutionSlotsTipText());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", randomCommittee0.debugTipText());\n \n Random.setNextRandom(2828);\n EvoSuiteFile evoSuiteFile0 = new EvoSuiteFile(\"Capabilities.props\");\n byte[] byteArray0 = new byte[9];\n byteArray0[0] = (byte) (-32);\n byteArray0[1] = (byte) (-76);\n byteArray0[2] = (byte) (-5);\n byteArray0[3] = (byte) (-58);\n byteArray0[4] = (byte)100;\n byteArray0[5] = (byte) (-123);\n byteArray0[6] = (byte)57;\n byteArray0[7] = (byte)2;\n byteArray0[8] = (byte)27;\n boolean boolean0 = FileSystemHandling.appendDataToFile(evoSuiteFile0, byteArray0);\n assertArrayEquals(new byte[] {(byte) (-32), (byte) (-76), (byte) (-5), (byte) (-58), (byte)100, (byte) (-123), (byte)57, (byte)2, (byte)27}, byteArray0);\n assertEquals(9, byteArray0.length);\n assertTrue(boolean0);\n \n Evaluation evaluation0 = new Evaluation(instances0);\n assertFalse(testInstances1.equals((Object)testInstances0));\n assertNotNull(evaluation0);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertEquals(\"The minimum bucket size used for discretizing numeric attributes.\", oneR0.minBucketSizeTipText());\n assertEquals(6, oneR0.getMinBucketSize());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", oneR0.debugTipText());\n assertFalse(oneR0.getDebug());\n assertFalse(capabilities0.hasDependencies());\n assertEquals(1, capabilities0.getMinimumNumberInstances());\n assertEquals(1, testInstances1.getNumRelationalNominal());\n assertEquals(1, testInstances1.getSeed());\n assertEquals((-1), testInstances1.getClassIndex());\n assertEquals(1, testInstances1.getClassType());\n assertEquals(1, testInstances1.getNumNominal());\n assertEquals(\"Testdata\", testInstances1.getRelation());\n assertEquals(1, testInstances1.getNumRelationalNumeric());\n assertEquals(0, testInstances1.getNumRelationalString());\n assertEquals(4, testInstances1.getNumAttributes());\n assertEquals(4, testInstances1.getNumClasses());\n assertEquals(1, testInstances1.getNumNumeric());\n assertEquals(0, testInstances1.getNumString());\n assertEquals(2, testInstances1.getNumRelationalNominalValues());\n assertFalse(testInstances1.getNoClass());\n assertEquals(20, testInstances1.getNumInstances());\n assertFalse(testInstances1.getMultiInstance());\n assertEquals(1, testInstances1.getNumRelationalDate());\n assertEquals(1, testInstances1.getNumDate());\n assertEquals(2, testInstances1.getNumNominalValues());\n assertEquals(0, testInstances1.getNumRelational());\n assertEquals(\" \", testInstances1.getWordSeparators());\n assertEquals(10, testInstances1.getNumInstancesRelational());\n assertEquals(Double.NaN, evaluation0.errorRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedTruePositiveRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedRecall(), 0.01);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n assertEquals(0.0, evaluation0.numInstances(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanPriorAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedTrueNegativeRate(), 0.01);\n assertEquals(0.0, evaluation0.totalCost(), 0.01);\n assertEquals(Double.NaN, evaluation0.avgCost(), 0.01);\n assertEquals(1.0, evaluation0.kappa(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedPrecision(), 0.01);\n assertEquals(0.0, evaluation0.incorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFalsePositiveRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctIncorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.coverageOfTestCasesByPredictedRegions(), 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.unweightedMicroFmeasure(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctCorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFMeasure(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFalseNegativeRate(), 0.01);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(Double.NaN, evaluation0.relativeAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanSquaredError(), 0.01);\n assertEquals(0.0, evaluation0.correct(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanPriorSquaredError(), 0.01);\n assertFalse(evaluation0.getDiscardPredictions());\n assertEquals(Double.NaN, evaluation0.sizeOfPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootRelativeSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctUnclassified(), 0.01);\n assertEquals(\"Testdata\", instances0.relationName());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertEquals(20, instances0.numInstances());\n assertEquals(4, instances0.numAttributes());\n assertFalse(instances0.checkForStringAttributes());\n assertEquals(4, instances0.numClasses());\n assertEquals(3, instances0.classIndex());\n assertEquals(20, instances0.size());\n \n String string0 = evaluation0.toSummaryString(\"@relation\", true);\n assertFalse(testInstances1.equals((Object)testInstances0));\n assertNotNull(string0);\n assertNotSame(testInstances1, testInstances0);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertEquals(\"The minimum bucket size used for discretizing numeric attributes.\", oneR0.minBucketSizeTipText());\n assertEquals(6, oneR0.getMinBucketSize());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", oneR0.debugTipText());\n assertFalse(oneR0.getDebug());\n assertFalse(capabilities0.hasDependencies());\n assertEquals(1, capabilities0.getMinimumNumberInstances());\n assertEquals(1, testInstances1.getNumRelationalNominal());\n assertEquals(1, testInstances1.getSeed());\n assertEquals((-1), testInstances1.getClassIndex());\n assertEquals(1, testInstances1.getClassType());\n assertEquals(1, testInstances1.getNumNominal());\n assertEquals(\"Testdata\", testInstances1.getRelation());\n assertEquals(1, testInstances1.getNumRelationalNumeric());\n assertEquals(0, testInstances1.getNumRelationalString());\n assertEquals(4, testInstances1.getNumAttributes());\n assertEquals(4, testInstances1.getNumClasses());\n assertEquals(1, testInstances1.getNumNumeric());\n assertEquals(0, testInstances1.getNumString());\n assertEquals(2, testInstances1.getNumRelationalNominalValues());\n assertFalse(testInstances1.getNoClass());\n assertEquals(20, testInstances1.getNumInstances());\n assertFalse(testInstances1.getMultiInstance());\n assertEquals(1, testInstances1.getNumRelationalDate());\n assertEquals(1, testInstances1.getNumDate());\n assertEquals(2, testInstances1.getNumNominalValues());\n assertEquals(0, testInstances1.getNumRelational());\n assertEquals(\" \", testInstances1.getWordSeparators());\n assertEquals(10, testInstances1.getNumInstancesRelational());\n assertEquals(Double.NaN, evaluation0.errorRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedTruePositiveRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedRecall(), 0.01);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n assertEquals(0.0, evaluation0.numInstances(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanPriorAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedTrueNegativeRate(), 0.01);\n assertEquals(0.0, evaluation0.totalCost(), 0.01);\n assertEquals(Double.NaN, evaluation0.avgCost(), 0.01);\n assertEquals(1.0, evaluation0.kappa(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedPrecision(), 0.01);\n assertEquals(0.0, evaluation0.incorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFalsePositiveRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctIncorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.coverageOfTestCasesByPredictedRegions(), 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.unweightedMicroFmeasure(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctCorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFMeasure(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFalseNegativeRate(), 0.01);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(Double.NaN, evaluation0.relativeAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanSquaredError(), 0.01);\n assertEquals(0.0, evaluation0.correct(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanPriorSquaredError(), 0.01);\n assertFalse(evaluation0.getDiscardPredictions());\n assertEquals(Double.NaN, evaluation0.sizeOfPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootRelativeSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctUnclassified(), 0.01);\n assertEquals(\"Testdata\", instances0.relationName());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertEquals(20, instances0.numInstances());\n assertEquals(4, instances0.numAttributes());\n assertFalse(instances0.checkForStringAttributes());\n assertEquals(4, instances0.numClasses());\n assertEquals(3, instances0.classIndex());\n assertEquals(20, instances0.size());\n assertEquals(\"@relation\\nTotal Number of Instances 0 \\n\", string0);\n \n String string1 = evaluation0.toMatrixString();\n assertFalse(string1.equals((Object)string0));\n assertFalse(testInstances1.equals((Object)testInstances0));\n assertNotNull(string1);\n assertNotSame(testInstances1, testInstances0);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertEquals(\"The minimum bucket size used for discretizing numeric attributes.\", oneR0.minBucketSizeTipText());\n assertEquals(6, oneR0.getMinBucketSize());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", oneR0.debugTipText());\n assertFalse(oneR0.getDebug());\n assertFalse(capabilities0.hasDependencies());\n assertEquals(1, capabilities0.getMinimumNumberInstances());\n assertEquals(1, testInstances1.getNumRelationalNominal());\n assertEquals(1, testInstances1.getSeed());\n assertEquals((-1), testInstances1.getClassIndex());\n assertEquals(1, testInstances1.getClassType());\n assertEquals(1, testInstances1.getNumNominal());\n assertEquals(\"Testdata\", testInstances1.getRelation());\n assertEquals(1, testInstances1.getNumRelationalNumeric());\n assertEquals(0, testInstances1.getNumRelationalString());\n assertEquals(4, testInstances1.getNumAttributes());\n assertEquals(4, testInstances1.getNumClasses());\n assertEquals(1, testInstances1.getNumNumeric());\n assertEquals(0, testInstances1.getNumString());\n assertEquals(2, testInstances1.getNumRelationalNominalValues());\n assertFalse(testInstances1.getNoClass());\n assertEquals(20, testInstances1.getNumInstances());\n assertFalse(testInstances1.getMultiInstance());\n assertEquals(1, testInstances1.getNumRelationalDate());\n assertEquals(1, testInstances1.getNumDate());\n assertEquals(2, testInstances1.getNumNominalValues());\n assertEquals(0, testInstances1.getNumRelational());\n assertEquals(\" \", testInstances1.getWordSeparators());\n assertEquals(10, testInstances1.getNumInstancesRelational());\n assertEquals(Double.NaN, evaluation0.errorRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedTruePositiveRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedRecall(), 0.01);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n assertEquals(0.0, evaluation0.numInstances(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanPriorAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedTrueNegativeRate(), 0.01);\n assertEquals(0.0, evaluation0.totalCost(), 0.01);\n assertEquals(Double.NaN, evaluation0.avgCost(), 0.01);\n assertEquals(1.0, evaluation0.kappa(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedPrecision(), 0.01);\n assertEquals(0.0, evaluation0.incorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFalsePositiveRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctIncorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.coverageOfTestCasesByPredictedRegions(), 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.unweightedMicroFmeasure(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctCorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFMeasure(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFalseNegativeRate(), 0.01);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(Double.NaN, evaluation0.relativeAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanSquaredError(), 0.01);\n assertEquals(0.0, evaluation0.correct(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanPriorSquaredError(), 0.01);\n assertFalse(evaluation0.getDiscardPredictions());\n assertEquals(Double.NaN, evaluation0.sizeOfPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootRelativeSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctUnclassified(), 0.01);\n assertEquals(\"Testdata\", instances0.relationName());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertEquals(20, instances0.numInstances());\n assertEquals(4, instances0.numAttributes());\n assertFalse(instances0.checkForStringAttributes());\n assertEquals(4, instances0.numClasses());\n assertEquals(3, instances0.classIndex());\n assertEquals(20, instances0.size());\n assertEquals(\"=== Confusion Matrix ===\\n\\n a b c d <-- classified as\\n 0 0 0 0 | a = class1\\n 0 0 0 0 | b = class2\\n 0 0 0 0 | c = class3\\n 0 0 0 0 | d = class4\\n\", string1);\n \n double double0 = evaluation0.coverageOfTestCasesByPredictedRegions();\n assertFalse(testInstances1.equals((Object)testInstances0));\n assertNotSame(testInstances1, testInstances0);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertEquals(\"The minimum bucket size used for discretizing numeric attributes.\", oneR0.minBucketSizeTipText());\n assertEquals(6, oneR0.getMinBucketSize());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", oneR0.debugTipText());\n assertFalse(oneR0.getDebug());\n assertFalse(capabilities0.hasDependencies());\n assertEquals(1, capabilities0.getMinimumNumberInstances());\n assertEquals(1, testInstances1.getNumRelationalNominal());\n assertEquals(1, testInstances1.getSeed());\n assertEquals((-1), testInstances1.getClassIndex());\n assertEquals(1, testInstances1.getClassType());\n assertEquals(1, testInstances1.getNumNominal());\n assertEquals(\"Testdata\", testInstances1.getRelation());\n assertEquals(1, testInstances1.getNumRelationalNumeric());\n assertEquals(0, testInstances1.getNumRelationalString());\n assertEquals(4, testInstances1.getNumAttributes());\n assertEquals(4, testInstances1.getNumClasses());\n assertEquals(1, testInstances1.getNumNumeric());\n assertEquals(0, testInstances1.getNumString());\n assertEquals(2, testInstances1.getNumRelationalNominalValues());\n assertFalse(testInstances1.getNoClass());\n assertEquals(20, testInstances1.getNumInstances());\n assertFalse(testInstances1.getMultiInstance());\n assertEquals(1, testInstances1.getNumRelationalDate());\n assertEquals(1, testInstances1.getNumDate());\n assertEquals(2, testInstances1.getNumNominalValues());\n assertEquals(0, testInstances1.getNumRelational());\n assertEquals(\" \", testInstances1.getWordSeparators());\n assertEquals(10, testInstances1.getNumInstancesRelational());\n assertEquals(Double.NaN, evaluation0.errorRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedTruePositiveRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedRecall(), 0.01);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n assertEquals(0.0, evaluation0.numInstances(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanPriorAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedTrueNegativeRate(), 0.01);\n assertEquals(0.0, evaluation0.totalCost(), 0.01);\n assertEquals(Double.NaN, evaluation0.avgCost(), 0.01);\n assertEquals(1.0, evaluation0.kappa(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedPrecision(), 0.01);\n assertEquals(0.0, evaluation0.incorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFalsePositiveRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctIncorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.coverageOfTestCasesByPredictedRegions(), 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.unweightedMicroFmeasure(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctCorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFMeasure(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFalseNegativeRate(), 0.01);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(Double.NaN, evaluation0.relativeAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanSquaredError(), 0.01);\n assertEquals(0.0, evaluation0.correct(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanPriorSquaredError(), 0.01);\n assertFalse(evaluation0.getDiscardPredictions());\n assertEquals(Double.NaN, evaluation0.sizeOfPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootRelativeSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctUnclassified(), 0.01);\n assertEquals(\"Testdata\", instances0.relationName());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertEquals(20, instances0.numInstances());\n assertEquals(4, instances0.numAttributes());\n assertFalse(instances0.checkForStringAttributes());\n assertEquals(4, instances0.numClasses());\n assertEquals(3, instances0.classIndex());\n assertEquals(20, instances0.size());\n assertEquals(Double.NaN, double0, 0.01);\n }", "title": "" }, { "docid": "f8d79fa6c41c0e62b3476d0486586580", "score": "0.6098173", "text": "@Test(timeout = 4000)\n public void test35() throws Throwable {\n Discretize discretize0 = new Discretize();\n ArrayList<Attribute> arrayList0 = new ArrayList<Attribute>();\n Attribute attribute0 = new Attribute(\"oSbr7!hpXWM3GiD\", (List<String>) null);\n arrayList0.add(attribute0);\n Instances instances0 = new Instances(\"\\tSpecifies the desired weight of instances per bin for\\n\\tequal-frequency binning. If this is set to a positive\\n\\tnumber then the -B option will be ignored.\\n\\t(default = -1)\", arrayList0, 2150);\n instances0.toString();\n discretize0.setInputFormat(instances0);\n boolean boolean0 = discretize0.m_IgnoreClass;\n discretize0.batchFinished();\n discretize0.setOutputFormat();\n // Undeclared exception!\n try { \n discretize0.calculateCutPointsByEqualFrequencyBinning(3);\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // 3\n //\n verifyException(\"weka.filters.unsupervised.attribute.Discretize\", e);\n }\n }", "title": "" }, { "docid": "db1c515131e4f5eba0c2455f61bc77a0", "score": "0.60967165", "text": "@Test\n public void testRayleigh_0020() {\n RayleighDistribution dist = new RayleighDistribution(3.1415);\n\n double x, y;\n for (double u = 0.000001; u < 1d; u += 0.000001) {\n x = dist.quantile(u);\n y = dist.cdf(x);\n assertEquals(u, y, 1e-15);\n }\n }", "title": "" }, { "docid": "5377eae051bb30cff0758c4ffac0cbba", "score": "0.60960966", "text": "@Test(timeout = 4000)\n public void test32() throws Throwable {\n double[] doubleArray0 = new double[8];\n doubleArray0[0] = 0.0;\n doubleArray0[1] = 0.0;\n doubleArray0[3] = 45.0;\n doubleArray0[4] = (-1654.7007184771);\n doubleArray0[5] = 0.0;\n doubleArray0[6] = 1271.8;\n doubleArray0[7] = 100.0;\n InputMappedClassifier inputMappedClassifier0 = new InputMappedClassifier();\n assertNotNull(inputMappedClassifier0);\n assertEquals(\"If set to true, classifier may output additional info to the console.\", inputMappedClassifier0.debugTipText());\n assertEquals(\"The base classifier to be used.\", inputMappedClassifier0.classifierTipText());\n assertTrue(inputMappedClassifier0.getIgnoreCaseForNames());\n assertEquals(\"Don't output a report of model-to-input mappings.\", inputMappedClassifier0.suppressMappingReportTipText());\n assertEquals(\"Trim white space from each end of attribute names and nominal values before matching.\", inputMappedClassifier0.trimTipText());\n assertEquals(\"\", inputMappedClassifier0.getModelPath());\n assertEquals(0, inputMappedClassifier0.graphType());\n assertTrue(inputMappedClassifier0.getTrim());\n assertEquals(\"Set the path from which to load a model. Loading occurs when the first test instance is received. Environment variables can be used in the supplied path.\", inputMappedClassifier0.modelPathTipText());\n assertEquals(\"Wrapper classifier that addresses incompatible training and test data by building a mapping between the training data that a classifier has been built with and the incoming test instances' structure. Model attributes that are not found in the incoming instances receive missing values, so do incoming nominal attribute values that the classifier has not seen before. A new classifier can be trained or an existing one loaded from a file.\", inputMappedClassifier0.globalInfo());\n assertFalse(inputMappedClassifier0.getSuppressMappingReport());\n assertFalse(inputMappedClassifier0.getDebug());\n assertEquals(\"Ignore case when matching attribute names and nomina values.\", inputMappedClassifier0.ignoreCaseForNamesTipText());\n \n OneR oneR0 = new OneR();\n assertNotNull(oneR0);\n assertEquals(6, oneR0.getMinBucketSize());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", oneR0.debugTipText());\n assertEquals(\"The minimum bucket size used for discretizing numeric attributes.\", oneR0.minBucketSizeTipText());\n assertFalse(oneR0.getDebug());\n \n Capabilities capabilities0 = oneR0.getCapabilities();\n assertNotNull(capabilities0);\n assertEquals(6, oneR0.getMinBucketSize());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", oneR0.debugTipText());\n assertEquals(\"The minimum bucket size used for discretizing numeric attributes.\", oneR0.minBucketSizeTipText());\n assertFalse(oneR0.getDebug());\n assertFalse(capabilities0.hasDependencies());\n assertEquals(1, capabilities0.getMinimumNumberInstances());\n \n TestInstances testInstances0 = TestInstances.forCapabilities(capabilities0);\n assertNotNull(testInstances0);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertEquals(6, oneR0.getMinBucketSize());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", oneR0.debugTipText());\n assertEquals(\"The minimum bucket size used for discretizing numeric attributes.\", oneR0.minBucketSizeTipText());\n assertFalse(oneR0.getDebug());\n assertFalse(capabilities0.hasDependencies());\n assertEquals(1, capabilities0.getMinimumNumberInstances());\n assertEquals(0, testInstances0.getNumString());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(1, testInstances0.getNumRelationalNumeric());\n assertEquals(1, testInstances0.getNumNumeric());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertFalse(testInstances0.getNoClass());\n assertEquals(20, testInstances0.getNumInstances());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(1, testInstances0.getNumDate());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(1, testInstances0.getNumRelationalDate());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(1, testInstances0.getClassType());\n assertEquals(4, testInstances0.getNumAttributes());\n assertEquals(4, testInstances0.getNumClasses());\n \n TestInstances testInstances1 = TestInstances.forCapabilities(capabilities0);\n assertFalse(testInstances1.equals((Object)testInstances0));\n assertNotNull(testInstances1);\n assertNotSame(testInstances1, testInstances0);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals(6, oneR0.getMinBucketSize());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", oneR0.debugTipText());\n assertEquals(\"The minimum bucket size used for discretizing numeric attributes.\", oneR0.minBucketSizeTipText());\n assertFalse(oneR0.getDebug());\n assertFalse(capabilities0.hasDependencies());\n assertEquals(1, capabilities0.getMinimumNumberInstances());\n assertEquals(\" \", testInstances1.getWordSeparators());\n assertEquals(\"Testdata\", testInstances1.getRelation());\n assertEquals(1, testInstances1.getNumNominal());\n assertEquals(1, testInstances1.getSeed());\n assertEquals((-1), testInstances1.getClassIndex());\n assertEquals(10, testInstances1.getNumInstancesRelational());\n assertFalse(testInstances1.getNoClass());\n assertEquals(20, testInstances1.getNumInstances());\n assertEquals(2, testInstances1.getNumNominalValues());\n assertEquals(4, testInstances1.getNumAttributes());\n assertEquals(1, testInstances1.getNumDate());\n assertEquals(0, testInstances1.getNumRelational());\n assertEquals(1, testInstances1.getClassType());\n assertEquals(1, testInstances1.getNumRelationalDate());\n assertEquals(1, testInstances1.getNumNumeric());\n assertEquals(4, testInstances1.getNumClasses());\n assertFalse(testInstances1.getMultiInstance());\n assertEquals(0, testInstances1.getNumString());\n assertEquals(2, testInstances1.getNumRelationalNominalValues());\n assertEquals(1, testInstances1.getNumRelationalNominal());\n assertEquals(0, testInstances1.getNumRelationalString());\n assertEquals(1, testInstances1.getNumRelationalNumeric());\n \n Instances instances0 = testInstances1.generate();\n assertFalse(testInstances1.equals((Object)testInstances0));\n assertNotNull(instances0);\n assertNotSame(testInstances1, testInstances0);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals(6, oneR0.getMinBucketSize());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", oneR0.debugTipText());\n assertEquals(\"The minimum bucket size used for discretizing numeric attributes.\", oneR0.minBucketSizeTipText());\n assertFalse(oneR0.getDebug());\n assertFalse(capabilities0.hasDependencies());\n assertEquals(1, capabilities0.getMinimumNumberInstances());\n assertEquals(\" \", testInstances1.getWordSeparators());\n assertEquals(\"Testdata\", testInstances1.getRelation());\n assertEquals(1, testInstances1.getNumNominal());\n assertEquals(1, testInstances1.getSeed());\n assertEquals((-1), testInstances1.getClassIndex());\n assertEquals(10, testInstances1.getNumInstancesRelational());\n assertFalse(testInstances1.getNoClass());\n assertEquals(20, testInstances1.getNumInstances());\n assertEquals(2, testInstances1.getNumNominalValues());\n assertEquals(4, testInstances1.getNumAttributes());\n assertEquals(1, testInstances1.getNumDate());\n assertEquals(0, testInstances1.getNumRelational());\n assertEquals(1, testInstances1.getClassType());\n assertEquals(1, testInstances1.getNumRelationalDate());\n assertEquals(1, testInstances1.getNumNumeric());\n assertEquals(4, testInstances1.getNumClasses());\n assertFalse(testInstances1.getMultiInstance());\n assertEquals(0, testInstances1.getNumString());\n assertEquals(2, testInstances1.getNumRelationalNominalValues());\n assertEquals(1, testInstances1.getNumRelationalNominal());\n assertEquals(0, testInstances1.getNumRelationalString());\n assertEquals(1, testInstances1.getNumRelationalNumeric());\n assertEquals(4, instances0.numClasses());\n assertFalse(instances0.checkForStringAttributes());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertEquals(20, instances0.size());\n assertEquals(4, instances0.numAttributes());\n assertEquals(20, instances0.numInstances());\n assertEquals(\"Testdata\", instances0.relationName());\n assertEquals(3, instances0.classIndex());\n \n J48.main(testInstances1.DEFAULT_WORDS);\n assertFalse(testInstances1.equals((Object)testInstances0));\n assertNotSame(testInstances1, testInstances0);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals(6, oneR0.getMinBucketSize());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", oneR0.debugTipText());\n assertEquals(\"The minimum bucket size used for discretizing numeric attributes.\", oneR0.minBucketSizeTipText());\n assertFalse(oneR0.getDebug());\n assertFalse(capabilities0.hasDependencies());\n assertEquals(1, capabilities0.getMinimumNumberInstances());\n assertEquals(\" \", testInstances1.getWordSeparators());\n assertEquals(\"Testdata\", testInstances1.getRelation());\n assertEquals(1, testInstances1.getNumNominal());\n assertEquals(1, testInstances1.getSeed());\n assertEquals((-1), testInstances1.getClassIndex());\n assertEquals(10, testInstances1.getNumInstancesRelational());\n assertFalse(testInstances1.getNoClass());\n assertEquals(20, testInstances1.getNumInstances());\n assertEquals(2, testInstances1.getNumNominalValues());\n assertEquals(4, testInstances1.getNumAttributes());\n assertEquals(1, testInstances1.getNumDate());\n assertEquals(0, testInstances1.getNumRelational());\n assertEquals(1, testInstances1.getClassType());\n assertEquals(1, testInstances1.getNumRelationalDate());\n assertEquals(1, testInstances1.getNumNumeric());\n assertEquals(4, testInstances1.getNumClasses());\n assertFalse(testInstances1.getMultiInstance());\n assertEquals(0, testInstances1.getNumString());\n assertEquals(2, testInstances1.getNumRelationalNominalValues());\n assertEquals(1, testInstances1.getNumRelationalNominal());\n assertEquals(0, testInstances1.getNumRelationalString());\n assertEquals(1, testInstances1.getNumRelationalNumeric());\n \n RandomCommittee randomCommittee0 = new RandomCommittee();\n assertNotNull(randomCommittee0);\n assertEquals(\"The base classifier to be used.\", randomCommittee0.classifierTipText());\n assertEquals(\"The number of iterations to be performed.\", randomCommittee0.numIterationsTipText());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", randomCommittee0.debugTipText());\n assertEquals(\"The number of execution slots (threads) to use for constructing the ensemble.\", randomCommittee0.numExecutionSlotsTipText());\n assertEquals(10, randomCommittee0.getNumIterations());\n assertFalse(randomCommittee0.getDebug());\n assertEquals(1, randomCommittee0.getSeed());\n assertEquals(\"The random number seed to be used.\", randomCommittee0.seedTipText());\n assertEquals(1, randomCommittee0.getNumExecutionSlots());\n assertEquals(\"Class for building an ensemble of randomizable base classifiers. Each base classifiers is built using a different random number seed (but based one the same data). The final prediction is a straight average of the predictions generated by the individual base classifiers.\", randomCommittee0.globalInfo());\n \n Random.setNextRandom((-2));\n Evaluation evaluation0 = new Evaluation(instances0);\n assertFalse(testInstances1.equals((Object)testInstances0));\n assertNotNull(evaluation0);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals(0.0, evaluation0.totalCost(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctCorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFMeasure(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctIncorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.errorRate(), 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.coverageOfTestCasesByPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanAbsoluteError(), 0.01);\n assertEquals(1.0, evaluation0.kappa(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedPrecision(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedTrueNegativeRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanEntropyGain(), 0.01);\n assertEquals(0.0, evaluation0.incorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFalsePositiveRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanPriorAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.relativeAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.avgCost(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanSchemeEntropy(), 0.01);\n assertEquals(0.0, evaluation0.numInstances(), 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedRecall(), 0.01);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFalseNegativeRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.unweightedMicroFmeasure(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanPriorSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedTruePositiveRate(), 0.01);\n assertFalse(evaluation0.getDiscardPredictions());\n assertEquals(Double.NaN, evaluation0.sizeOfPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootRelativeSquaredError(), 0.01);\n assertEquals(0.0, evaluation0.correct(), 0.01);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctUnclassified(), 0.01);\n assertEquals(6, oneR0.getMinBucketSize());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", oneR0.debugTipText());\n assertEquals(\"The minimum bucket size used for discretizing numeric attributes.\", oneR0.minBucketSizeTipText());\n assertFalse(oneR0.getDebug());\n assertFalse(capabilities0.hasDependencies());\n assertEquals(1, capabilities0.getMinimumNumberInstances());\n assertEquals(\" \", testInstances1.getWordSeparators());\n assertEquals(\"Testdata\", testInstances1.getRelation());\n assertEquals(1, testInstances1.getNumNominal());\n assertEquals(1, testInstances1.getSeed());\n assertEquals((-1), testInstances1.getClassIndex());\n assertEquals(10, testInstances1.getNumInstancesRelational());\n assertFalse(testInstances1.getNoClass());\n assertEquals(20, testInstances1.getNumInstances());\n assertEquals(2, testInstances1.getNumNominalValues());\n assertEquals(4, testInstances1.getNumAttributes());\n assertEquals(1, testInstances1.getNumDate());\n assertEquals(0, testInstances1.getNumRelational());\n assertEquals(1, testInstances1.getClassType());\n assertEquals(1, testInstances1.getNumRelationalDate());\n assertEquals(1, testInstances1.getNumNumeric());\n assertEquals(4, testInstances1.getNumClasses());\n assertFalse(testInstances1.getMultiInstance());\n assertEquals(0, testInstances1.getNumString());\n assertEquals(2, testInstances1.getNumRelationalNominalValues());\n assertEquals(1, testInstances1.getNumRelationalNominal());\n assertEquals(0, testInstances1.getNumRelationalString());\n assertEquals(1, testInstances1.getNumRelationalNumeric());\n assertEquals(4, instances0.numClasses());\n assertFalse(instances0.checkForStringAttributes());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertEquals(20, instances0.size());\n assertEquals(4, instances0.numAttributes());\n assertEquals(20, instances0.numInstances());\n assertEquals(\"Testdata\", instances0.relationName());\n assertEquals(3, instances0.classIndex());\n \n String string0 = evaluation0.toSummaryString(\"@relation\", true);\n assertFalse(testInstances1.equals((Object)testInstances0));\n assertNotNull(string0);\n assertNotSame(testInstances1, testInstances0);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals(0.0, evaluation0.totalCost(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctCorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFMeasure(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctIncorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.errorRate(), 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.coverageOfTestCasesByPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanAbsoluteError(), 0.01);\n assertEquals(1.0, evaluation0.kappa(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedPrecision(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedTrueNegativeRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanEntropyGain(), 0.01);\n assertEquals(0.0, evaluation0.incorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFalsePositiveRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanPriorAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.relativeAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.avgCost(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanSchemeEntropy(), 0.01);\n assertEquals(0.0, evaluation0.numInstances(), 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedRecall(), 0.01);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFalseNegativeRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.unweightedMicroFmeasure(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanPriorSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedTruePositiveRate(), 0.01);\n assertFalse(evaluation0.getDiscardPredictions());\n assertEquals(Double.NaN, evaluation0.sizeOfPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootRelativeSquaredError(), 0.01);\n assertEquals(0.0, evaluation0.correct(), 0.01);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctUnclassified(), 0.01);\n assertEquals(6, oneR0.getMinBucketSize());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", oneR0.debugTipText());\n assertEquals(\"The minimum bucket size used for discretizing numeric attributes.\", oneR0.minBucketSizeTipText());\n assertFalse(oneR0.getDebug());\n assertFalse(capabilities0.hasDependencies());\n assertEquals(1, capabilities0.getMinimumNumberInstances());\n assertEquals(\" \", testInstances1.getWordSeparators());\n assertEquals(\"Testdata\", testInstances1.getRelation());\n assertEquals(1, testInstances1.getNumNominal());\n assertEquals(1, testInstances1.getSeed());\n assertEquals((-1), testInstances1.getClassIndex());\n assertEquals(10, testInstances1.getNumInstancesRelational());\n assertFalse(testInstances1.getNoClass());\n assertEquals(20, testInstances1.getNumInstances());\n assertEquals(2, testInstances1.getNumNominalValues());\n assertEquals(4, testInstances1.getNumAttributes());\n assertEquals(1, testInstances1.getNumDate());\n assertEquals(0, testInstances1.getNumRelational());\n assertEquals(1, testInstances1.getClassType());\n assertEquals(1, testInstances1.getNumRelationalDate());\n assertEquals(1, testInstances1.getNumNumeric());\n assertEquals(4, testInstances1.getNumClasses());\n assertFalse(testInstances1.getMultiInstance());\n assertEquals(0, testInstances1.getNumString());\n assertEquals(2, testInstances1.getNumRelationalNominalValues());\n assertEquals(1, testInstances1.getNumRelationalNominal());\n assertEquals(0, testInstances1.getNumRelationalString());\n assertEquals(1, testInstances1.getNumRelationalNumeric());\n assertEquals(4, instances0.numClasses());\n assertFalse(instances0.checkForStringAttributes());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertEquals(20, instances0.size());\n assertEquals(4, instances0.numAttributes());\n assertEquals(20, instances0.numInstances());\n assertEquals(\"Testdata\", instances0.relationName());\n assertEquals(3, instances0.classIndex());\n assertEquals(\"@relation\\nTotal Number of Instances 0 \\n\", string0);\n \n boolean boolean0 = evaluation0.equals(oneR0);\n assertFalse(testInstances1.equals((Object)testInstances0));\n assertNotSame(testInstances1, testInstances0);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals(0.0, evaluation0.totalCost(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctCorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFMeasure(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctIncorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.errorRate(), 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.coverageOfTestCasesByPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanAbsoluteError(), 0.01);\n assertEquals(1.0, evaluation0.kappa(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedPrecision(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedTrueNegativeRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanEntropyGain(), 0.01);\n assertEquals(0.0, evaluation0.incorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFalsePositiveRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanPriorAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.relativeAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.avgCost(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanSchemeEntropy(), 0.01);\n assertEquals(0.0, evaluation0.numInstances(), 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedRecall(), 0.01);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFalseNegativeRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.unweightedMicroFmeasure(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanPriorSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedTruePositiveRate(), 0.01);\n assertFalse(evaluation0.getDiscardPredictions());\n assertEquals(Double.NaN, evaluation0.sizeOfPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootRelativeSquaredError(), 0.01);\n assertEquals(0.0, evaluation0.correct(), 0.01);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctUnclassified(), 0.01);\n assertEquals(6, oneR0.getMinBucketSize());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", oneR0.debugTipText());\n assertEquals(\"The minimum bucket size used for discretizing numeric attributes.\", oneR0.minBucketSizeTipText());\n assertFalse(oneR0.getDebug());\n assertFalse(capabilities0.hasDependencies());\n assertEquals(1, capabilities0.getMinimumNumberInstances());\n assertEquals(\" \", testInstances1.getWordSeparators());\n assertEquals(\"Testdata\", testInstances1.getRelation());\n assertEquals(1, testInstances1.getNumNominal());\n assertEquals(1, testInstances1.getSeed());\n assertEquals((-1), testInstances1.getClassIndex());\n assertEquals(10, testInstances1.getNumInstancesRelational());\n assertFalse(testInstances1.getNoClass());\n assertEquals(20, testInstances1.getNumInstances());\n assertEquals(2, testInstances1.getNumNominalValues());\n assertEquals(4, testInstances1.getNumAttributes());\n assertEquals(1, testInstances1.getNumDate());\n assertEquals(0, testInstances1.getNumRelational());\n assertEquals(1, testInstances1.getClassType());\n assertEquals(1, testInstances1.getNumRelationalDate());\n assertEquals(1, testInstances1.getNumNumeric());\n assertEquals(4, testInstances1.getNumClasses());\n assertFalse(testInstances1.getMultiInstance());\n assertEquals(0, testInstances1.getNumString());\n assertEquals(2, testInstances1.getNumRelationalNominalValues());\n assertEquals(1, testInstances1.getNumRelationalNominal());\n assertEquals(0, testInstances1.getNumRelationalString());\n assertEquals(1, testInstances1.getNumRelationalNumeric());\n assertEquals(4, instances0.numClasses());\n assertFalse(instances0.checkForStringAttributes());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertEquals(20, instances0.size());\n assertEquals(4, instances0.numAttributes());\n assertEquals(20, instances0.numInstances());\n assertEquals(\"Testdata\", instances0.relationName());\n assertEquals(3, instances0.classIndex());\n assertFalse(boolean0);\n \n Instances instances1 = evaluation0.getHeader();\n assertFalse(instances1.equals((Object)instances0));\n assertFalse(testInstances1.equals((Object)testInstances0));\n assertNotNull(instances1);\n assertNotSame(instances1, instances0);\n assertNotSame(testInstances1, testInstances0);\n assertNotSame(instances0, instances1);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals(0.0, evaluation0.totalCost(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctCorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFMeasure(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctIncorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.errorRate(), 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.coverageOfTestCasesByPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanAbsoluteError(), 0.01);\n assertEquals(1.0, evaluation0.kappa(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedPrecision(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedTrueNegativeRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanEntropyGain(), 0.01);\n assertEquals(0.0, evaluation0.incorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFalsePositiveRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanPriorAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.relativeAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.avgCost(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanSchemeEntropy(), 0.01);\n assertEquals(0.0, evaluation0.numInstances(), 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedRecall(), 0.01);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFalseNegativeRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.unweightedMicroFmeasure(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanPriorSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedTruePositiveRate(), 0.01);\n assertFalse(evaluation0.getDiscardPredictions());\n assertEquals(Double.NaN, evaluation0.sizeOfPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootRelativeSquaredError(), 0.01);\n assertEquals(0.0, evaluation0.correct(), 0.01);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctUnclassified(), 0.01);\n assertEquals(3, instances1.classIndex());\n assertFalse(instances1.checkForStringAttributes());\n assertEquals(4, instances1.numClasses());\n assertEquals(\"Testdata\", instances1.relationName());\n assertEquals(0, instances1.numInstances());\n assertEquals(0.0, instances1.sumOfWeights(), 0.01);\n assertEquals(0, instances1.size());\n assertEquals(4, instances1.numAttributes());\n assertEquals(6, oneR0.getMinBucketSize());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", oneR0.debugTipText());\n assertEquals(\"The minimum bucket size used for discretizing numeric attributes.\", oneR0.minBucketSizeTipText());\n assertFalse(oneR0.getDebug());\n assertFalse(capabilities0.hasDependencies());\n assertEquals(1, capabilities0.getMinimumNumberInstances());\n assertEquals(\" \", testInstances1.getWordSeparators());\n assertEquals(\"Testdata\", testInstances1.getRelation());\n assertEquals(1, testInstances1.getNumNominal());\n assertEquals(1, testInstances1.getSeed());\n assertEquals((-1), testInstances1.getClassIndex());\n assertEquals(10, testInstances1.getNumInstancesRelational());\n assertFalse(testInstances1.getNoClass());\n assertEquals(20, testInstances1.getNumInstances());\n assertEquals(2, testInstances1.getNumNominalValues());\n assertEquals(4, testInstances1.getNumAttributes());\n assertEquals(1, testInstances1.getNumDate());\n assertEquals(0, testInstances1.getNumRelational());\n assertEquals(1, testInstances1.getClassType());\n assertEquals(1, testInstances1.getNumRelationalDate());\n assertEquals(1, testInstances1.getNumNumeric());\n assertEquals(4, testInstances1.getNumClasses());\n assertFalse(testInstances1.getMultiInstance());\n assertEquals(0, testInstances1.getNumString());\n assertEquals(2, testInstances1.getNumRelationalNominalValues());\n assertEquals(1, testInstances1.getNumRelationalNominal());\n assertEquals(0, testInstances1.getNumRelationalString());\n assertEquals(1, testInstances1.getNumRelationalNumeric());\n assertEquals(4, instances0.numClasses());\n assertFalse(instances0.checkForStringAttributes());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertEquals(20, instances0.size());\n assertEquals(4, instances0.numAttributes());\n assertEquals(20, instances0.numInstances());\n assertEquals(\"Testdata\", instances0.relationName());\n assertEquals(3, instances0.classIndex());\n }", "title": "" }, { "docid": "8d4b422d600b9583b2934b0637b0b638", "score": "0.60954165", "text": "@Test\n public void testAncovaTwoway() {\n\n this.configureMocks();\n\n DifferentialExpressionAnalysisConfig config = new DifferentialExpressionAnalysisConfig();\n config.setFactorsToInclude( super.experimentalFactors );\n config.setModerateStatistics( false );\n Collection<DifferentialExpressionAnalysis> expressionAnalyses = analyzer.run( expressionExperiment, config );\n\n DifferentialExpressionAnalysis expressionAnalysis = expressionAnalyses.iterator().next();\n\n assertNotNull( expressionAnalysis );\n\n Collection<ExpressionAnalysisResultSet> resultSets = expressionAnalysis.getResultSets();\n\n assertEquals( 2, resultSets.size() );\n\n for ( ExpressionAnalysisResultSet resultSet : resultSets ) {\n\n Collection<ExperimentalFactor> factors = resultSet.getExperimentalFactors();\n\n assertEquals( 1, factors.size() );\n\n for ( DifferentialExpressionAnalysisResult probeAnalysisResult : resultSet.getResults() ) {\n\n CompositeSequence probe = probeAnalysisResult.getProbe();\n Double pvalue = probeAnalysisResult.getPvalue();\n\n Collection<ContrastResult> contrasts = probeAnalysisResult.getContrasts();\n Double stat;\n if ( contrasts.isEmpty() ) {\n continue;\n }\n\n stat = contrasts.iterator().next().getTstat();\n\n assertNotNull( probe );\n\n // log.debug( \"probe: \" + probe + \"; p-value: \" + pvalue + \"; T=\" + stat );\n\n ExperimentalFactor f = factors.iterator().next();\n\n if ( f.equals( super.experimentalFactorA_Area ) ) {\n switch ( probe.getName() ) {\n case \"probe_98\":\n assertEquals( 0.8572, pvalue, 0.001 );\n break;\n case \"probe_10\":\n assertEquals( 4.69e-11, pvalue, 1e-12 );\n break;\n case \"probe_4\":\n assertEquals( 0.0048, pvalue, 0.0001 );\n assertNotNull( stat );\n assertEquals( -125.746, stat, 0.001 );\n assertEquals( 0.00506, contrasts.iterator().next().getPvalue(), 0.0001 ); // factor1a\n\n break;\n }\n\n } else {\n if ( probe.getName().equals( \"probe_98\" ) ) {\n assertEquals( 0.6417, pvalue, 0.001 );\n } else if ( probe.getName().equals( \"probe_10\" ) ) {\n assertEquals( 0.196, pvalue, 0.001 );\n }\n }\n\n }\n }\n }", "title": "" }, { "docid": "74dfff238a7dac161812ff7a8d715cce", "score": "0.6075491", "text": "@Test(timeout = 4000)\n public void test15() throws Throwable {\n Discretize discretize0 = new Discretize();\n discretize0.getCutPoints((-1361));\n assertFalse(discretize0.getUseEqualFrequency());\n assertFalse(discretize0.getMakeBinary());\n assertFalse(discretize0.getFindNumBins());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertEquals(10, discretize0.getBins());\n assertFalse(discretize0.getUseBinNumbers());\n }", "title": "" }, { "docid": "a5b27158e3b1413e90c45aceb6fac09d", "score": "0.60594916", "text": "@Test(timeout = 4000)\n public void test46() throws Throwable {\n ResultMatrixSignificance resultMatrixSignificance0 = new ResultMatrixSignificance();\n int[][] intArray0 = new int[8][2];\n resultMatrixSignificance0.setRanking(intArray0);\n ResultMatrixLatex resultMatrixLatex0 = new ResultMatrixLatex(2, 1227);\n ResultMatrixLatex resultMatrixLatex1 = new ResultMatrixLatex();\n resultMatrixLatex1.getRowName(546);\n ResultMatrixLatex resultMatrixLatex2 = new ResultMatrixLatex(resultMatrixSignificance0);\n resultMatrixLatex2.setCount((-61), 0.0);\n ResultMatrixPlainText resultMatrixPlainText0 = new ResultMatrixPlainText(resultMatrixLatex0);\n }", "title": "" }, { "docid": "05cdf1f7058ece5983577d401ceacaa7", "score": "0.60339457", "text": "@Test(timeout = 4000)\n public void test21() throws Throwable {\n double[] doubleArray0 = new double[8];\n doubleArray0[0] = 0.0;\n doubleArray0[1] = 100.0;\n doubleArray0[2] = 0.0;\n doubleArray0[3] = 45.0;\n doubleArray0[4] = (-1654.7007184771);\n doubleArray0[5] = 100.0;\n doubleArray0[6] = 1271.8;\n doubleArray0[7] = 100.0;\n InputMappedClassifier inputMappedClassifier0 = new InputMappedClassifier();\n assertNotNull(inputMappedClassifier0);\n assertFalse(inputMappedClassifier0.getSuppressMappingReport());\n assertEquals(\"\", inputMappedClassifier0.getModelPath());\n assertEquals(\"Set the path from which to load a model. Loading occurs when the first test instance is received. Environment variables can be used in the supplied path.\", inputMappedClassifier0.modelPathTipText());\n assertEquals(\"Don't output a report of model-to-input mappings.\", inputMappedClassifier0.suppressMappingReportTipText());\n assertEquals(0, inputMappedClassifier0.graphType());\n assertTrue(inputMappedClassifier0.getTrim());\n assertEquals(\"Wrapper classifier that addresses incompatible training and test data by building a mapping between the training data that a classifier has been built with and the incoming test instances' structure. Model attributes that are not found in the incoming instances receive missing values, so do incoming nominal attribute values that the classifier has not seen before. A new classifier can be trained or an existing one loaded from a file.\", inputMappedClassifier0.globalInfo());\n assertEquals(\"Trim white space from each end of attribute names and nominal values before matching.\", inputMappedClassifier0.trimTipText());\n assertTrue(inputMappedClassifier0.getIgnoreCaseForNames());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", inputMappedClassifier0.debugTipText());\n assertEquals(\"The base classifier to be used.\", inputMappedClassifier0.classifierTipText());\n assertFalse(inputMappedClassifier0.getDebug());\n assertEquals(\"Ignore case when matching attribute names and nomina values.\", inputMappedClassifier0.ignoreCaseForNamesTipText());\n \n OneR oneR0 = new OneR();\n assertNotNull(oneR0);\n assertEquals(6, oneR0.getMinBucketSize());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", oneR0.debugTipText());\n assertFalse(oneR0.getDebug());\n assertEquals(\"The minimum bucket size used for discretizing numeric attributes.\", oneR0.minBucketSizeTipText());\n \n Capabilities capabilities0 = oneR0.getCapabilities();\n assertNotNull(capabilities0);\n assertEquals(6, oneR0.getMinBucketSize());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", oneR0.debugTipText());\n assertFalse(oneR0.getDebug());\n assertEquals(\"The minimum bucket size used for discretizing numeric attributes.\", oneR0.minBucketSizeTipText());\n assertFalse(capabilities0.hasDependencies());\n assertEquals(1, capabilities0.getMinimumNumberInstances());\n \n TestInstances testInstances0 = TestInstances.forCapabilities(capabilities0);\n assertNotNull(testInstances0);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertEquals(6, oneR0.getMinBucketSize());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", oneR0.debugTipText());\n assertFalse(oneR0.getDebug());\n assertEquals(\"The minimum bucket size used for discretizing numeric attributes.\", oneR0.minBucketSizeTipText());\n assertFalse(capabilities0.hasDependencies());\n assertEquals(1, capabilities0.getMinimumNumberInstances());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(1, testInstances0.getNumRelationalDate());\n assertEquals(1, testInstances0.getNumNumeric());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(1, testInstances0.getNumRelationalNumeric());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(1, testInstances0.getNumDate());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertFalse(testInstances0.getNoClass());\n assertEquals(20, testInstances0.getNumInstances());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(4, testInstances0.getNumClasses());\n assertEquals(1, testInstances0.getClassType());\n assertEquals(4, testInstances0.getNumAttributes());\n \n TestInstances testInstances1 = TestInstances.forCapabilities(capabilities0);\n assertFalse(testInstances1.equals((Object)testInstances0));\n assertNotNull(testInstances1);\n assertNotSame(testInstances1, testInstances0);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals(6, oneR0.getMinBucketSize());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", oneR0.debugTipText());\n assertFalse(oneR0.getDebug());\n assertEquals(\"The minimum bucket size used for discretizing numeric attributes.\", oneR0.minBucketSizeTipText());\n assertFalse(capabilities0.hasDependencies());\n assertEquals(1, capabilities0.getMinimumNumberInstances());\n assertEquals(0, testInstances1.getNumRelational());\n assertEquals(0, testInstances1.getNumString());\n assertEquals(1, testInstances1.getNumRelationalDate());\n assertEquals(1, testInstances1.getNumNumeric());\n assertEquals(1, testInstances1.getSeed());\n assertFalse(testInstances1.getMultiInstance());\n assertEquals(1, testInstances1.getNumRelationalNominal());\n assertEquals(1, testInstances1.getNumDate());\n assertEquals(0, testInstances1.getNumRelationalString());\n assertEquals(1, testInstances1.getNumRelationalNumeric());\n assertEquals(\" \", testInstances1.getWordSeparators());\n assertEquals(\"Testdata\", testInstances1.getRelation());\n assertEquals(10, testInstances1.getNumInstancesRelational());\n assertEquals(1, testInstances1.getNumNominal());\n assertEquals(20, testInstances1.getNumInstances());\n assertEquals(2, testInstances1.getNumNominalValues());\n assertEquals(2, testInstances1.getNumRelationalNominalValues());\n assertEquals((-1), testInstances1.getClassIndex());\n assertEquals(1, testInstances1.getClassType());\n assertFalse(testInstances1.getNoClass());\n assertEquals(4, testInstances1.getNumAttributes());\n assertEquals(4, testInstances1.getNumClasses());\n \n Instances instances0 = testInstances1.generate();\n assertFalse(testInstances1.equals((Object)testInstances0));\n assertNotNull(instances0);\n assertNotSame(testInstances1, testInstances0);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals(6, oneR0.getMinBucketSize());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", oneR0.debugTipText());\n assertFalse(oneR0.getDebug());\n assertEquals(\"The minimum bucket size used for discretizing numeric attributes.\", oneR0.minBucketSizeTipText());\n assertFalse(capabilities0.hasDependencies());\n assertEquals(1, capabilities0.getMinimumNumberInstances());\n assertEquals(0, testInstances1.getNumRelational());\n assertEquals(0, testInstances1.getNumString());\n assertEquals(1, testInstances1.getNumRelationalDate());\n assertEquals(1, testInstances1.getNumNumeric());\n assertEquals(1, testInstances1.getSeed());\n assertFalse(testInstances1.getMultiInstance());\n assertEquals(1, testInstances1.getNumRelationalNominal());\n assertEquals(1, testInstances1.getNumDate());\n assertEquals(0, testInstances1.getNumRelationalString());\n assertEquals(1, testInstances1.getNumRelationalNumeric());\n assertEquals(\" \", testInstances1.getWordSeparators());\n assertEquals(\"Testdata\", testInstances1.getRelation());\n assertEquals(10, testInstances1.getNumInstancesRelational());\n assertEquals(1, testInstances1.getNumNominal());\n assertEquals(20, testInstances1.getNumInstances());\n assertEquals(2, testInstances1.getNumNominalValues());\n assertEquals(2, testInstances1.getNumRelationalNominalValues());\n assertEquals((-1), testInstances1.getClassIndex());\n assertEquals(1, testInstances1.getClassType());\n assertFalse(testInstances1.getNoClass());\n assertEquals(4, testInstances1.getNumAttributes());\n assertEquals(4, testInstances1.getNumClasses());\n assertFalse(instances0.checkForStringAttributes());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertEquals(20, instances0.size());\n assertEquals(20, instances0.numInstances());\n assertEquals(4, instances0.numAttributes());\n assertEquals(4, instances0.numClasses());\n assertEquals(\"Testdata\", instances0.relationName());\n assertEquals(3, instances0.classIndex());\n \n J48.main(testInstances1.DEFAULT_WORDS);\n assertFalse(testInstances1.equals((Object)testInstances0));\n assertNotSame(testInstances1, testInstances0);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals(6, oneR0.getMinBucketSize());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", oneR0.debugTipText());\n assertFalse(oneR0.getDebug());\n assertEquals(\"The minimum bucket size used for discretizing numeric attributes.\", oneR0.minBucketSizeTipText());\n assertFalse(capabilities0.hasDependencies());\n assertEquals(1, capabilities0.getMinimumNumberInstances());\n assertEquals(0, testInstances1.getNumRelational());\n assertEquals(0, testInstances1.getNumString());\n assertEquals(1, testInstances1.getNumRelationalDate());\n assertEquals(1, testInstances1.getNumNumeric());\n assertEquals(1, testInstances1.getSeed());\n assertFalse(testInstances1.getMultiInstance());\n assertEquals(1, testInstances1.getNumRelationalNominal());\n assertEquals(1, testInstances1.getNumDate());\n assertEquals(0, testInstances1.getNumRelationalString());\n assertEquals(1, testInstances1.getNumRelationalNumeric());\n assertEquals(\" \", testInstances1.getWordSeparators());\n assertEquals(\"Testdata\", testInstances1.getRelation());\n assertEquals(10, testInstances1.getNumInstancesRelational());\n assertEquals(1, testInstances1.getNumNominal());\n assertEquals(20, testInstances1.getNumInstances());\n assertEquals(2, testInstances1.getNumNominalValues());\n assertEquals(2, testInstances1.getNumRelationalNominalValues());\n assertEquals((-1), testInstances1.getClassIndex());\n assertEquals(1, testInstances1.getClassType());\n assertFalse(testInstances1.getNoClass());\n assertEquals(4, testInstances1.getNumAttributes());\n assertEquals(4, testInstances1.getNumClasses());\n \n RandomCommittee randomCommittee0 = new RandomCommittee();\n assertNotNull(randomCommittee0);\n assertEquals(\"If set to true, classifier may output additional info to the console.\", randomCommittee0.debugTipText());\n assertFalse(randomCommittee0.getDebug());\n assertEquals(10, randomCommittee0.getNumIterations());\n assertEquals(\"The number of execution slots (threads) to use for constructing the ensemble.\", randomCommittee0.numExecutionSlotsTipText());\n assertEquals(\"The random number seed to be used.\", randomCommittee0.seedTipText());\n assertEquals(\"The base classifier to be used.\", randomCommittee0.classifierTipText());\n assertEquals(\"The number of iterations to be performed.\", randomCommittee0.numIterationsTipText());\n assertEquals(1, randomCommittee0.getSeed());\n assertEquals(1, randomCommittee0.getNumExecutionSlots());\n assertEquals(\"Class for building an ensemble of randomizable base classifiers. Each base classifiers is built using a different random number seed (but based one the same data). The final prediction is a straight average of the predictions generated by the individual base classifiers.\", randomCommittee0.globalInfo());\n \n Random.setNextRandom(2828);\n Evaluation evaluation0 = new Evaluation(instances0);\n assertFalse(testInstances1.equals((Object)testInstances0));\n assertNotNull(evaluation0);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals(Double.NaN, evaluation0.weightedFMeasure(), 0.01);\n assertFalse(evaluation0.getDiscardPredictions());\n assertEquals(Double.NaN, evaluation0.SFMeanEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedTrueNegativeRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanPriorSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.coverageOfTestCasesByPredictedRegions(), 0.01);\n assertEquals(0.0, evaluation0.correct(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctUnclassified(), 0.01);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootRelativeSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.sizeOfPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctCorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanSchemeEntropy(), 0.01);\n assertEquals(0.0, evaluation0.numInstances(), 0.01);\n assertEquals(Double.NaN, evaluation0.unweightedMicroFmeasure(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctIncorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFalsePositiveRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedTruePositiveRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.errorRate(), 0.01);\n assertEquals(1.0, evaluation0.kappa(), 0.01);\n assertEquals(Double.NaN, evaluation0.avgCost(), 0.01);\n assertEquals(0.0, evaluation0.incorrect(), 0.01);\n assertEquals(0.0, evaluation0.totalCost(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanPriorAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.relativeAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedRecall(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFalseNegativeRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedPrecision(), 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanAbsoluteError(), 0.01);\n assertEquals(6, oneR0.getMinBucketSize());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", oneR0.debugTipText());\n assertFalse(oneR0.getDebug());\n assertEquals(\"The minimum bucket size used for discretizing numeric attributes.\", oneR0.minBucketSizeTipText());\n assertFalse(capabilities0.hasDependencies());\n assertEquals(1, capabilities0.getMinimumNumberInstances());\n assertEquals(0, testInstances1.getNumRelational());\n assertEquals(0, testInstances1.getNumString());\n assertEquals(1, testInstances1.getNumRelationalDate());\n assertEquals(1, testInstances1.getNumNumeric());\n assertEquals(1, testInstances1.getSeed());\n assertFalse(testInstances1.getMultiInstance());\n assertEquals(1, testInstances1.getNumRelationalNominal());\n assertEquals(1, testInstances1.getNumDate());\n assertEquals(0, testInstances1.getNumRelationalString());\n assertEquals(1, testInstances1.getNumRelationalNumeric());\n assertEquals(\" \", testInstances1.getWordSeparators());\n assertEquals(\"Testdata\", testInstances1.getRelation());\n assertEquals(10, testInstances1.getNumInstancesRelational());\n assertEquals(1, testInstances1.getNumNominal());\n assertEquals(20, testInstances1.getNumInstances());\n assertEquals(2, testInstances1.getNumNominalValues());\n assertEquals(2, testInstances1.getNumRelationalNominalValues());\n assertEquals((-1), testInstances1.getClassIndex());\n assertEquals(1, testInstances1.getClassType());\n assertFalse(testInstances1.getNoClass());\n assertEquals(4, testInstances1.getNumAttributes());\n assertEquals(4, testInstances1.getNumClasses());\n assertFalse(instances0.checkForStringAttributes());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertEquals(20, instances0.size());\n assertEquals(20, instances0.numInstances());\n assertEquals(4, instances0.numAttributes());\n assertEquals(4, instances0.numClasses());\n assertEquals(\"Testdata\", instances0.relationName());\n assertEquals(3, instances0.classIndex());\n \n String string0 = evaluation0.toSummaryString(\"@relation\", true);\n assertFalse(testInstances1.equals((Object)testInstances0));\n assertNotNull(string0);\n assertNotSame(testInstances1, testInstances0);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals(Double.NaN, evaluation0.weightedFMeasure(), 0.01);\n assertFalse(evaluation0.getDiscardPredictions());\n assertEquals(Double.NaN, evaluation0.SFMeanEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedTrueNegativeRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanPriorSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.coverageOfTestCasesByPredictedRegions(), 0.01);\n assertEquals(0.0, evaluation0.correct(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctUnclassified(), 0.01);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootRelativeSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.sizeOfPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctCorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanSchemeEntropy(), 0.01);\n assertEquals(0.0, evaluation0.numInstances(), 0.01);\n assertEquals(Double.NaN, evaluation0.unweightedMicroFmeasure(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctIncorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFalsePositiveRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedTruePositiveRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.errorRate(), 0.01);\n assertEquals(1.0, evaluation0.kappa(), 0.01);\n assertEquals(Double.NaN, evaluation0.avgCost(), 0.01);\n assertEquals(0.0, evaluation0.incorrect(), 0.01);\n assertEquals(0.0, evaluation0.totalCost(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanPriorAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.relativeAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedRecall(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFalseNegativeRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedPrecision(), 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanAbsoluteError(), 0.01);\n assertEquals(6, oneR0.getMinBucketSize());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", oneR0.debugTipText());\n assertFalse(oneR0.getDebug());\n assertEquals(\"The minimum bucket size used for discretizing numeric attributes.\", oneR0.minBucketSizeTipText());\n assertFalse(capabilities0.hasDependencies());\n assertEquals(1, capabilities0.getMinimumNumberInstances());\n assertEquals(0, testInstances1.getNumRelational());\n assertEquals(0, testInstances1.getNumString());\n assertEquals(1, testInstances1.getNumRelationalDate());\n assertEquals(1, testInstances1.getNumNumeric());\n assertEquals(1, testInstances1.getSeed());\n assertFalse(testInstances1.getMultiInstance());\n assertEquals(1, testInstances1.getNumRelationalNominal());\n assertEquals(1, testInstances1.getNumDate());\n assertEquals(0, testInstances1.getNumRelationalString());\n assertEquals(1, testInstances1.getNumRelationalNumeric());\n assertEquals(\" \", testInstances1.getWordSeparators());\n assertEquals(\"Testdata\", testInstances1.getRelation());\n assertEquals(10, testInstances1.getNumInstancesRelational());\n assertEquals(1, testInstances1.getNumNominal());\n assertEquals(20, testInstances1.getNumInstances());\n assertEquals(2, testInstances1.getNumNominalValues());\n assertEquals(2, testInstances1.getNumRelationalNominalValues());\n assertEquals((-1), testInstances1.getClassIndex());\n assertEquals(1, testInstances1.getClassType());\n assertFalse(testInstances1.getNoClass());\n assertEquals(4, testInstances1.getNumAttributes());\n assertEquals(4, testInstances1.getNumClasses());\n assertFalse(instances0.checkForStringAttributes());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertEquals(20, instances0.size());\n assertEquals(20, instances0.numInstances());\n assertEquals(4, instances0.numAttributes());\n assertEquals(4, instances0.numClasses());\n assertEquals(\"Testdata\", instances0.relationName());\n assertEquals(3, instances0.classIndex());\n assertEquals(\"@relation\\nTotal Number of Instances 0 \\n\", string0);\n \n String string1 = evaluation0.toMatrixString();\n assertFalse(string1.equals((Object)string0));\n assertFalse(testInstances1.equals((Object)testInstances0));\n assertNotNull(string1);\n assertNotSame(testInstances1, testInstances0);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals(Double.NaN, evaluation0.weightedFMeasure(), 0.01);\n assertFalse(evaluation0.getDiscardPredictions());\n assertEquals(Double.NaN, evaluation0.SFMeanEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedTrueNegativeRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanPriorSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.coverageOfTestCasesByPredictedRegions(), 0.01);\n assertEquals(0.0, evaluation0.correct(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctUnclassified(), 0.01);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootRelativeSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.sizeOfPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctCorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanSchemeEntropy(), 0.01);\n assertEquals(0.0, evaluation0.numInstances(), 0.01);\n assertEquals(Double.NaN, evaluation0.unweightedMicroFmeasure(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctIncorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFalsePositiveRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedTruePositiveRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.errorRate(), 0.01);\n assertEquals(1.0, evaluation0.kappa(), 0.01);\n assertEquals(Double.NaN, evaluation0.avgCost(), 0.01);\n assertEquals(0.0, evaluation0.incorrect(), 0.01);\n assertEquals(0.0, evaluation0.totalCost(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanPriorAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.relativeAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedRecall(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFalseNegativeRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedPrecision(), 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanAbsoluteError(), 0.01);\n assertEquals(6, oneR0.getMinBucketSize());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", oneR0.debugTipText());\n assertFalse(oneR0.getDebug());\n assertEquals(\"The minimum bucket size used for discretizing numeric attributes.\", oneR0.minBucketSizeTipText());\n assertFalse(capabilities0.hasDependencies());\n assertEquals(1, capabilities0.getMinimumNumberInstances());\n assertEquals(0, testInstances1.getNumRelational());\n assertEquals(0, testInstances1.getNumString());\n assertEquals(1, testInstances1.getNumRelationalDate());\n assertEquals(1, testInstances1.getNumNumeric());\n assertEquals(1, testInstances1.getSeed());\n assertFalse(testInstances1.getMultiInstance());\n assertEquals(1, testInstances1.getNumRelationalNominal());\n assertEquals(1, testInstances1.getNumDate());\n assertEquals(0, testInstances1.getNumRelationalString());\n assertEquals(1, testInstances1.getNumRelationalNumeric());\n assertEquals(\" \", testInstances1.getWordSeparators());\n assertEquals(\"Testdata\", testInstances1.getRelation());\n assertEquals(10, testInstances1.getNumInstancesRelational());\n assertEquals(1, testInstances1.getNumNominal());\n assertEquals(20, testInstances1.getNumInstances());\n assertEquals(2, testInstances1.getNumNominalValues());\n assertEquals(2, testInstances1.getNumRelationalNominalValues());\n assertEquals((-1), testInstances1.getClassIndex());\n assertEquals(1, testInstances1.getClassType());\n assertFalse(testInstances1.getNoClass());\n assertEquals(4, testInstances1.getNumAttributes());\n assertEquals(4, testInstances1.getNumClasses());\n assertFalse(instances0.checkForStringAttributes());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertEquals(20, instances0.size());\n assertEquals(20, instances0.numInstances());\n assertEquals(4, instances0.numAttributes());\n assertEquals(4, instances0.numClasses());\n assertEquals(\"Testdata\", instances0.relationName());\n assertEquals(3, instances0.classIndex());\n assertEquals(\"=== Confusion Matrix ===\\n\\n a b c d <-- classified as\\n 0 0 0 0 | a = class1\\n 0 0 0 0 | b = class2\\n 0 0 0 0 | c = class3\\n 0 0 0 0 | d = class4\\n\", string1);\n \n double double0 = evaluation0.correct();\n assertFalse(testInstances1.equals((Object)testInstances0));\n assertNotSame(testInstances1, testInstances0);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals(Double.NaN, evaluation0.weightedFMeasure(), 0.01);\n assertFalse(evaluation0.getDiscardPredictions());\n assertEquals(Double.NaN, evaluation0.SFMeanEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedTrueNegativeRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanPriorSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.coverageOfTestCasesByPredictedRegions(), 0.01);\n assertEquals(0.0, evaluation0.correct(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctUnclassified(), 0.01);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootRelativeSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.sizeOfPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctCorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanSchemeEntropy(), 0.01);\n assertEquals(0.0, evaluation0.numInstances(), 0.01);\n assertEquals(Double.NaN, evaluation0.unweightedMicroFmeasure(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctIncorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFalsePositiveRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedTruePositiveRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.errorRate(), 0.01);\n assertEquals(1.0, evaluation0.kappa(), 0.01);\n assertEquals(Double.NaN, evaluation0.avgCost(), 0.01);\n assertEquals(0.0, evaluation0.incorrect(), 0.01);\n assertEquals(0.0, evaluation0.totalCost(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanPriorAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.relativeAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedRecall(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFalseNegativeRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedPrecision(), 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanAbsoluteError(), 0.01);\n assertEquals(6, oneR0.getMinBucketSize());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", oneR0.debugTipText());\n assertFalse(oneR0.getDebug());\n assertEquals(\"The minimum bucket size used for discretizing numeric attributes.\", oneR0.minBucketSizeTipText());\n assertFalse(capabilities0.hasDependencies());\n assertEquals(1, capabilities0.getMinimumNumberInstances());\n assertEquals(0, testInstances1.getNumRelational());\n assertEquals(0, testInstances1.getNumString());\n assertEquals(1, testInstances1.getNumRelationalDate());\n assertEquals(1, testInstances1.getNumNumeric());\n assertEquals(1, testInstances1.getSeed());\n assertFalse(testInstances1.getMultiInstance());\n assertEquals(1, testInstances1.getNumRelationalNominal());\n assertEquals(1, testInstances1.getNumDate());\n assertEquals(0, testInstances1.getNumRelationalString());\n assertEquals(1, testInstances1.getNumRelationalNumeric());\n assertEquals(\" \", testInstances1.getWordSeparators());\n assertEquals(\"Testdata\", testInstances1.getRelation());\n assertEquals(10, testInstances1.getNumInstancesRelational());\n assertEquals(1, testInstances1.getNumNominal());\n assertEquals(20, testInstances1.getNumInstances());\n assertEquals(2, testInstances1.getNumNominalValues());\n assertEquals(2, testInstances1.getNumRelationalNominalValues());\n assertEquals((-1), testInstances1.getClassIndex());\n assertEquals(1, testInstances1.getClassType());\n assertFalse(testInstances1.getNoClass());\n assertEquals(4, testInstances1.getNumAttributes());\n assertEquals(4, testInstances1.getNumClasses());\n assertFalse(instances0.checkForStringAttributes());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertEquals(20, instances0.size());\n assertEquals(20, instances0.numInstances());\n assertEquals(4, instances0.numAttributes());\n assertEquals(4, instances0.numClasses());\n assertEquals(\"Testdata\", instances0.relationName());\n assertEquals(3, instances0.classIndex());\n assertEquals(0.0, double0, 0.01);\n }", "title": "" }, { "docid": "79734631c2df7de4a6532fb95e4577c0", "score": "0.6033577", "text": "@Test(timeout = 4000)\n public void test08() throws Throwable {\n double[] doubleArray0 = new double[8];\n doubleArray0[0] = 0.0;\n doubleArray0[1] = 100.0;\n doubleArray0[2] = 0.0;\n doubleArray0[3] = 45.0;\n doubleArray0[4] = (-1654.7007184771);\n doubleArray0[5] = 100.0;\n doubleArray0[6] = 1271.8;\n doubleArray0[7] = 100.0;\n InputMappedClassifier inputMappedClassifier0 = new InputMappedClassifier();\n OneR oneR0 = new OneR();\n Capabilities capabilities0 = oneR0.getCapabilities();\n TestInstances.forCapabilities(capabilities0);\n TestInstances testInstances0 = TestInstances.forCapabilities(capabilities0);\n Instances instances0 = testInstances0.generate();\n EvoSuiteFile evoSuiteFile0 = new EvoSuiteFile(\"Capabilities.props\");\n FileSystemHandling.appendLineToFile(evoSuiteFile0, \" \");\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.KBMeanInformation();\n Random.setNextRandom(24);\n try { \n evaluation0.correlationCoefficient();\n fail(\"Expecting exception: Exception\");\n \n } catch(Exception e) {\n //\n // Can't compute correlation coefficient: class is nominal!\n //\n verifyException(\"weka.classifiers.Evaluation\", e);\n }\n }", "title": "" }, { "docid": "fcfce63511bfaa1e489c4d414da6f99a", "score": "0.60220236", "text": "public void testCalculateMetricPriorities()\r\n\t{\n\t}", "title": "" }, { "docid": "d690a707c68c375d5c88a6c40d9b5179", "score": "0.60189617", "text": "@Test(timeout = 4000)\n public void test21() throws Throwable {\n Discretize discretize0 = new Discretize(\"modulo\");\n double[][] doubleArray0 = new double[0][9];\n int[] intArray0 = new int[2];\n discretize0.setBins(79);\n intArray0[0] = (-1988);\n intArray0[1] = (-2380);\n discretize0.setAttributeIndicesArray(intArray0);\n discretize0.m_CutPoints = doubleArray0;\n // Undeclared exception!\n try { \n discretize0.getBinRangesString(1);\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // 1\n //\n verifyException(\"weka.filters.unsupervised.attribute.Discretize\", e);\n }\n }", "title": "" }, { "docid": "6243750dd466364cce98f50f79e98c97", "score": "0.60149485", "text": "public void testComputeProjectQuality() {\n\t\tCollection<Category> categories = new ArrayList<Category>();\n\t\tcategories.add(new Category(\"Category1\"));\n\t\tcategories.add(new Category(\"Category2\"));\n\t\tDawidSkene ds = new IncrementalDawidSkene(\"TestProject\",categories);\n\n\t\tCollection<AssignedLabel> labels = new ArrayList<AssignedLabel>();\n\t\t//Worker1 quality is 100%\n\t\tlabels.add(new AssignedLabel(\"Worker1\",\"Object1\",\"Category1\"));\n\t\tlabels.add(new AssignedLabel(\"Worker1\",\"Object2\",\"Category1\"));\n\t\tlabels.add(new AssignedLabel(\"Worker1\",\"Object3\",\"Category2\"));\n\t\tlabels.add(new AssignedLabel(\"Worker1\",\"Object4\",\"Category2\"));\n\t\t//worker2\n\t\tlabels.add(new AssignedLabel(\"Worker2\",\"Object1\",\"Category1\"));\n\t\tlabels.add(new AssignedLabel(\"Worker2\",\"Object2\",\"Category1\"));\n\t\tlabels.add(new AssignedLabel(\"Worker2\",\"Object3\",\"Category2\"));\n\t\tlabels.add(new AssignedLabel(\"Worker2\",\"Object4\",\"Category2\"));\n\t\t//Worker3\n\t\tlabels.add(new AssignedLabel(\"Worker3\",\"Object1\",\"Category1\"));\n\t\tlabels.add(new AssignedLabel(\"Worker3\",\"Object2\",\"Category1\"));\n\t\tlabels.add(new AssignedLabel(\"Worker3\",\"Object3\",\"Category2\"));\n\t\tlabels.add(new AssignedLabel(\"Worker3\",\"Object4\",\"Category2\"));\n\t\tds.addAssignedLabels(labels);\n\n\t\tCollection<CorrectLabel> evaluationData = new ArrayList<CorrectLabel>();\n\t\tevaluationData.add(new CorrectLabel(\"Object1\",\"Category1\"));\n\t\tevaluationData.add(new CorrectLabel(\"Object2\",\"Category1\"));\n\t\tevaluationData.add(new CorrectLabel(\"Object3\",\"Category2\"));\n\t\tevaluationData.add(new CorrectLabel(\"Object4\",\"Category2\"));\n\t\tds.addEvaluationDatums(evaluationData);\n\n\t\ttestData(ds);\n\n\t}", "title": "" }, { "docid": "b470e0da4e9f7722f8505ccdc34ec9fa", "score": "0.60062045", "text": "@Test(timeout = 4000)\n public void test19() throws Throwable {\n Discretize discretize0 = new Discretize(\"6Z;]fo2`Z+$ (=K1rgh\");\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n \n discretize0.m_DesiredWeightOfInstancesPerInterval = 451.31308138795714;\n String string0 = discretize0.desiredWeightOfInstancesPerIntervalTipText();\n assertEquals(\"Sets the desired weight of instances per interval for equal-frequency binning.\", string0);\n }", "title": "" }, { "docid": "55bde5d64b58c914d5f9fd24c916708b", "score": "0.6005421", "text": "public double entropy() {\n return logp;\n }", "title": "" }, { "docid": "4b82115c70e683d80d3d9f1343d5676c", "score": "0.59890157", "text": "@Test(timeout = 4000)\n public void test82() throws Throwable {\n ResultMatrixSignificance resultMatrixSignificance0 = new ResultMatrixSignificance();\n ResultMatrixPlainText resultMatrixPlainText0 = new ResultMatrixPlainText();\n ResultMatrixLatex resultMatrixLatex0 = new ResultMatrixLatex();\n ResultMatrixLatex resultMatrixLatex1 = new ResultMatrixLatex();\n resultMatrixLatex1.clearSummary();\n double[][] doubleArray0 = new double[9][9];\n double[] doubleArray1 = new double[5];\n doubleArray1[0] = (double) 0;\n doubleArray1[1] = (double) 0;\n doubleArray1[2] = (double) 1;\n doubleArray1[4] = 0.0;\n doubleArray0[0] = doubleArray1;\n double[] doubleArray2 = new double[9];\n ResultMatrixHTML resultMatrixHTML0 = new ResultMatrixHTML(resultMatrixLatex0);\n int[] intArray0 = new int[2];\n intArray0[0] = 0;\n intArray0[1] = 0;\n resultMatrixLatex0.m_RowOrder = intArray0;\n resultMatrixHTML0.m_RemoveFilterName = true;\n resultMatrixHTML0.getOptions();\n ResultMatrixSignificance resultMatrixSignificance1 = new ResultMatrixSignificance(95, 1);\n ResultMatrixPlainText resultMatrixPlainText1 = new ResultMatrixPlainText();\n resultMatrixPlainText0.getRevision();\n resultMatrixPlainText1.toStringMatrix();\n resultMatrixSignificance0.setShowStdDev(false);\n }", "title": "" }, { "docid": "46531030d36b8a4ab243f25e915be3d9", "score": "0.59662676", "text": "@Test(timeout = 4000)\n public void test18() throws Throwable {\n Discretize discretize0 = new Discretize(\"modulo\");\n double[][] doubleArray0 = new double[0][9];\n discretize0.m_CutPoints = doubleArray0;\n // Undeclared exception!\n try { \n discretize0.setOutputFormat();\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"weka.filters.unsupervised.attribute.Discretize\", e);\n }\n }", "title": "" }, { "docid": "e46a2187fc2cf045840937fdc5e0108c", "score": "0.5952225", "text": "@Test(timeout = 4000)\n public void test41() throws Throwable {\n Discretize discretize0 = new Discretize();\n ArrayList<Attribute> arrayList0 = new ArrayList<Attribute>();\n Attribute attribute0 = new Attribute(\"I++xD^3e\", (-198));\n arrayList0.add(attribute0);\n Instances instances0 = new Instances(\"integer\", arrayList0, 6);\n instances0.meanOrMode(attribute0);\n discretize0.setInputFormat(instances0);\n discretize0.setInputFormat(instances0);\n discretize0.batchFinished();\n DenseInstance denseInstance0 = new DenseInstance(1);\n discretize0.input(denseInstance0);\n discretize0.input(denseInstance0);\n assertFalse(discretize0.isNewBatch());\n }", "title": "" }, { "docid": "7308d796aae5a39ef8b14fa201fae022", "score": "0.5946427", "text": "@Test(timeout = 4000)\n public void test168() throws Throwable {\n ResultMatrixLatex resultMatrixLatex0 = new ResultMatrixLatex();\n assertEquals(2, resultMatrixLatex0.getStdDevPrec());\n \n resultMatrixLatex0.m_StdDevPrec = 1;\n ResultMatrixLatex resultMatrixLatex1 = new ResultMatrixLatex(1, 2);\n resultMatrixLatex1.isAverage(3);\n int int0 = resultMatrixLatex0.getSignificanceCount((-897), (-897));\n assertEquals(0, int0);\n }", "title": "" }, { "docid": "99b4eb97a763fe5c43e5204bc13ec765", "score": "0.593232", "text": "@Test\r\n\tvoid testChiDistribution() {\r\n\t\tChiDistributionImpl chi;\r\n\r\n\t\tchi=new ChiDistributionImpl(0);\r\n\t\tassertEquals(1,chi.degreesOfFreedom);\r\n\r\n\t\tchi=new ChiDistributionImpl(null);\r\n\t\tassertEquals(1,chi.degreesOfFreedom);\r\n\r\n\t\tchi=new ChiDistributionImpl(5);\r\n\t\tassertEquals(5,chi.degreesOfFreedom);\r\n\t\tfinal double mean=chi.getNumericalMean();\r\n\t\tfinal double var=chi.getNumericalVariance();\r\n\t\tassertEquals(0,chi.getSupportLowerBound());\r\n\t\tassertTrue(!chi.isSupportLowerBoundInclusive());\r\n\t\tassertTrue(chi.getSupportUpperBound()>1_000_000_000);\r\n\t\tassertTrue(!chi.isSupportUpperBoundInclusive());\r\n\t\tassertTrue(chi.isSupportConnected());\r\n\r\n\t\tassertEquals(0,chi.density(-1));\r\n\t\tassertEquals(0,chi.density(0));\r\n\t\tassertTrue(chi.density(1)>0);\r\n\t\tassertEquals(0,chi.density(1_000_000_000),0.0001);\r\n\t\tassertEquals(0,chi.cumulativeProbability(-1));\r\n\t\tassertEquals(0,chi.cumulativeProbability(0));\r\n\t\tassertTrue(chi.cumulativeProbability(1)>0);\r\n\t\tassertEquals(1,chi.cumulativeProbability(1_000_000_000),0.0001);\r\n\r\n\t\tchi=(ChiDistributionImpl)DistributionTools.cloneDistribution(chi);\r\n\r\n\t\tassertEquals(5,chi.degreesOfFreedom);\r\n\t\tassertEquals(mean,chi.getNumericalMean(),0.00001);\r\n\t\tassertEquals(var,chi.getNumericalVariance(),0.00001);\r\n\t\tassertEquals(0,chi.getSupportLowerBound());\r\n\t\tassertTrue(!chi.isSupportLowerBoundInclusive());\r\n\t\tassertTrue(chi.getSupportUpperBound()>1_000_000_000);\r\n\t\tassertTrue(!chi.isSupportUpperBoundInclusive());\r\n\t\tassertTrue(chi.isSupportConnected());\r\n\r\n\t\tchi=new ChiDistributionImpl(chi);\r\n\r\n\t\tassertEquals(5,chi.degreesOfFreedom);\r\n\t\tassertEquals(mean,chi.getNumericalMean(),0.00001);\r\n\t\tassertEquals(var,chi.getNumericalVariance(),0.00001);\r\n\t\tassertEquals(0,chi.getSupportLowerBound());\r\n\t\tassertTrue(!chi.isSupportLowerBoundInclusive());\r\n\t\tassertTrue(chi.getSupportUpperBound()>1_000_000_000);\r\n\t\tassertTrue(!chi.isSupportUpperBoundInclusive());\r\n\t\tassertTrue(chi.isSupportConnected());\r\n\r\n\t\tchi=chi.clone();\r\n\r\n\t\tassertEquals(5,chi.degreesOfFreedom);\r\n\t\tassertEquals(mean,chi.getNumericalMean(),0.00001);\r\n\t\tassertEquals(var,chi.getNumericalVariance(),0.00001);\r\n\t\tassertEquals(0,chi.getSupportLowerBound());\r\n\t\tassertTrue(!chi.isSupportLowerBoundInclusive());\r\n\t\tassertTrue(chi.getSupportUpperBound()>1_000_000_000);\r\n\t\tassertTrue(!chi.isSupportUpperBoundInclusive());\r\n\t\tassertTrue(chi.isSupportConnected());\r\n\r\n\t\ttestDistributionTools(chi);\r\n\t\ttestDistributionParameters(chi,new double[] {5});\r\n\t}", "title": "" }, { "docid": "73dd3c890185da3d569d574f98375f0b", "score": "0.59270716", "text": "@Test\n public void testAncovaCovariate() {\n\n this.configureMocks();\n\n /*\n * Add a continuous factor\n */\n ExperimentalFactor experimentalFactorC = ExperimentalFactor.Factory.newInstance();\n experimentalFactorC.setName( \"confabulatiliationity\" );\n experimentalFactorC.setId( 5399424551L );\n experimentalFactorC.setType( FactorType.CONTINUOUS );\n this.setupFactorValues( experimentalFactorC );\n expressionExperiment.getExperimentalDesign().getExperimentalFactors().add( experimentalFactorC );\n DifferentialExpressionAnalysisConfig config = new DifferentialExpressionAnalysisConfig();\n config.setFactorsToInclude( expressionExperiment.getExperimentalDesign().getExperimentalFactors() );\n config.setModerateStatistics( false );\n\n Collection<DifferentialExpressionAnalysis> expressionAnalyses = analyzer.run( expressionExperiment, config );\n\n DifferentialExpressionAnalysis expressionAnalysis = expressionAnalyses.iterator().next();\n\n assertNotNull( expressionAnalysis );\n\n Collection<ExpressionAnalysisResultSet> resultSets = expressionAnalysis.getResultSets();\n\n assertEquals( 3, resultSets.size() );\n\n for ( ExpressionAnalysisResultSet resultSet : resultSets ) {\n\n Collection<ExperimentalFactor> factors = resultSet.getExperimentalFactors();\n\n assertEquals( 1, factors.size() );\n\n for ( DifferentialExpressionAnalysisResult r : resultSet.getResults() ) {\n\n CompositeSequence probe = r.getProbe();\n Double pvalue = r.getPvalue();\n\n assertNotNull( probe );\n\n // log.debug( \"probe: \" + probe + \"; Factor=\"\n // + resultSet.getExperimentalFactors().iterator().next().getName() + \"; p-value: \" + pvalue\n // + \"; T=\" + stat );\n\n ExperimentalFactor f = factors.iterator().next();\n\n if ( f.equals( super.experimentalFactorA_Area ) ) {\n\n switch ( probe.getName() ) {\n case \"probe_98\":\n assertEquals( 0.8673, pvalue, 0.001 );\n break;\n case \"probe_10\":\n assertEquals( 4.062e-09, pvalue, 1e-10 );\n break;\n case \"probe_4\":\n // too few samples\n assertEquals( null, pvalue );\n // assertEquals( null, stat );\n break;\n }\n\n } else if ( f.equals( super.experimentalFactorB ) ) {\n if ( probe.getName().equals( \"probe_98\" ) ) {\n assertEquals( 0.6665, pvalue, 0.001 );\n } else if ( probe.getName().equals( \"probe_10\" ) ) {\n assertEquals( 0.2356, pvalue, 0.001 );\n }\n } else {\n // our new one.\n if ( probe.getName().equals( \"probe_98\" ) ) {\n assertEquals( 0.4977, pvalue, 0.001 );\n } else if ( probe.getName().equals( \"probe_10\" ) ) {\n assertEquals( 0.57347, pvalue, 0.001 );\n }\n }\n\n }\n }\n }", "title": "" }, { "docid": "eb079db0b0d4391cb89dfc2fbc1556e2", "score": "0.59268606", "text": "@Test(timeout = 4000)\n public void test86() throws Throwable {\n ResultMatrixLatex resultMatrixLatex0 = new ResultMatrixLatex();\n ResultMatrixGnuPlot resultMatrixGnuPlot0 = new ResultMatrixGnuPlot(resultMatrixLatex0);\n double[] doubleArray0 = new double[8];\n doubleArray0[0] = (double) 1;\n resultMatrixGnuPlot0.setSignificanceWidth(2);\n doubleArray0[1] = (double) 2;\n doubleArray0[2] = (-1755.329);\n doubleArray0[3] = (double) 0;\n doubleArray0[4] = (double) 0;\n doubleArray0[5] = (double) 1;\n doubleArray0[6] = (-1344.703832);\n doubleArray0[7] = 1.0;\n resultMatrixLatex0.m_Counts = doubleArray0;\n resultMatrixGnuPlot0.setShowAverage(true);\n resultMatrixGnuPlot0.setColName(0, \"\");\n resultMatrixGnuPlot0.setStdDevWidth(26);\n resultMatrixLatex0.getDefaultPrintColNames();\n resultMatrixGnuPlot0.toStringRanking();\n String[] stringArray0 = new String[3];\n resultMatrixLatex0.doubleToString(0.0, 0);\n stringArray0[0] = \"-ranking data not set-\";\n resultMatrixLatex0.clear();\n ResultMatrixGnuPlot resultMatrixGnuPlot1 = new ResultMatrixGnuPlot(resultMatrixGnuPlot0);\n ResultMatrixSignificance resultMatrixSignificance0 = new ResultMatrixSignificance(resultMatrixLatex0);\n resultMatrixSignificance0.toStringMatrix();\n resultMatrixGnuPlot0.getSignificance(0, (-6286));\n ResultMatrixPlainText.main(stringArray0);\n }", "title": "" }, { "docid": "a665f52401a8777d03c103d6a3426a75", "score": "0.59266514", "text": "public static void main(String[] args) throws Exception \n\t{\n\t\t// TODO Auto-generated method stub\n\t\t//double i=0.5;\n\t\tString customizedName = \"mutation_\";\n\t\t\n\t\t//int times = 1;\n\t\t\t//System.out.print(j);\n\t\tfor(double j = 0.2; j <= 1; j+=0.2)\n\t\t{\n\t\t\tLogIt log = new LogIt();\n\t\t\tlog.setLogFile(\"result5/\"+customizedName+String.valueOf((int)(j*10))+\".csv\");\n\t\t\tlog.log(\"in,bn,mr,cr\");\n\t\t\tlog.log(\"30,30,\"+String.valueOf((int)(j*10))+\",i\");\n\t\t\tStringBuilder index = new StringBuilder(\"\");\n\t\t\tfor(int i = 0; i <= 100; i++)\n\t\t\t\tindex.append(\",\"+String.valueOf(i));\n\t\t\tlog.log(index);\n\t\t\t\n\t\t\tfor(double i = 0.2; i <= 1; i+=0.2)\n\t\t\t{\n\t\t\t\t//m c\n\t\t\t\tdouble x[] = runGA(100, 30, 30, j, i, 1);\n\t\t\t\tStringBuilder str = new StringBuilder(String.valueOf(i)+\",\");\n\t\t\t\tfor(double k : x)\n\t\t\t\t{\n\t\t\t\t\tstr.append(String.valueOf(k)\n\t\t\t\t\t\t\t+\",\");\n\t\t\t\t}\n\t\t\t\tlog.log(str);\n\t\t\t}\n\t\t\tlog.close();\n\t\t}\n//\t\tfor(int j = 0 ; j < 1; j++)\n//\t\t{\n//\t\t\tversion = j;\n//\t\t\t//System.out.print(j);\n//\t\t\tfor(int i = 10; i < 50; i+=10)\n//\t\t\t\trunGA(100, 30, 30, 0.8, 0.8, \"test\");\n//\t\t}\n\t\t\n//\t\tfor(int i = 30; i <= 100; i++)\n//\t\t{\n//\t\t\tGenetic ga = new Genetic(i);\n//\t\t\tga.runGA(100);\n//\t\t}\n\t\t\n\t\t/*test HetNet*/\n//\t\tLogIt log = new LogIt();\n//\t\tGenetic ga = new Genetic(1, 30, 0.8, 0.5);\n//\t\tfor(int i : ga.chromosomes.get(0).getUserAssociation())\n//\t\t\tSystem.out.print(String.format(\"%2d\", i)+\" \");\n//\t\tSystem.out.println();\n//\t\tfor(int i : ga.chromosomes.get(0).getRBAllocation())\n//\t\t\tSystem.out.print(String.format(\"%2d\", i)+\" \");\n//\t\tSystem.out.println(ga.fitness());\n\t\t\n//\t\tSolution_2.printMap(ga.chromosomes.get(0));\n//\t\tSolution_2.printChoose(ga.chromosomes.get(0));\n//\t\tlog.log(ga.fitness());\n\t}", "title": "" }, { "docid": "39b52992b455f713f188dbe82cf5b1d6", "score": "0.5915825", "text": "@Test(timeout = 4000)\n public void test30() throws Throwable {\n double[] doubleArray0 = new double[8];\n doubleArray0[0] = 0.0;\n doubleArray0[1] = 100.0;\n doubleArray0[2] = 0.0;\n doubleArray0[3] = 45.0;\n doubleArray0[4] = (-1654.7007184771);\n doubleArray0[5] = 100.0;\n doubleArray0[6] = 1271.8;\n doubleArray0[7] = 100.0;\n InputMappedClassifier inputMappedClassifier0 = new InputMappedClassifier();\n assertNotNull(inputMappedClassifier0);\n assertEquals(\"Wrapper classifier that addresses incompatible training and test data by building a mapping between the training data that a classifier has been built with and the incoming test instances' structure. Model attributes that are not found in the incoming instances receive missing values, so do incoming nominal attribute values that the classifier has not seen before. A new classifier can be trained or an existing one loaded from a file.\", inputMappedClassifier0.globalInfo());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", inputMappedClassifier0.debugTipText());\n assertEquals(0, inputMappedClassifier0.graphType());\n assertEquals(\"Trim white space from each end of attribute names and nominal values before matching.\", inputMappedClassifier0.trimTipText());\n assertEquals(\"Set the path from which to load a model. Loading occurs when the first test instance is received. Environment variables can be used in the supplied path.\", inputMappedClassifier0.modelPathTipText());\n assertFalse(inputMappedClassifier0.getSuppressMappingReport());\n assertEquals(\"\", inputMappedClassifier0.getModelPath());\n assertTrue(inputMappedClassifier0.getTrim());\n assertEquals(\"The base classifier to be used.\", inputMappedClassifier0.classifierTipText());\n assertEquals(\"Ignore case when matching attribute names and nomina values.\", inputMappedClassifier0.ignoreCaseForNamesTipText());\n assertEquals(\"Don't output a report of model-to-input mappings.\", inputMappedClassifier0.suppressMappingReportTipText());\n assertTrue(inputMappedClassifier0.getIgnoreCaseForNames());\n assertFalse(inputMappedClassifier0.getDebug());\n \n OneR oneR0 = new OneR();\n assertNotNull(oneR0);\n assertEquals(\"If set to true, classifier may output additional info to the console.\", oneR0.debugTipText());\n assertEquals(\"The minimum bucket size used for discretizing numeric attributes.\", oneR0.minBucketSizeTipText());\n assertEquals(6, oneR0.getMinBucketSize());\n assertFalse(oneR0.getDebug());\n \n Capabilities capabilities0 = oneR0.getCapabilities();\n assertNotNull(capabilities0);\n assertEquals(\"If set to true, classifier may output additional info to the console.\", oneR0.debugTipText());\n assertEquals(\"The minimum bucket size used for discretizing numeric attributes.\", oneR0.minBucketSizeTipText());\n assertEquals(6, oneR0.getMinBucketSize());\n assertFalse(oneR0.getDebug());\n assertFalse(capabilities0.hasDependencies());\n assertEquals(1, capabilities0.getMinimumNumberInstances());\n \n TestInstances testInstances0 = TestInstances.forCapabilities(capabilities0);\n assertNotNull(testInstances0);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals(\"If set to true, classifier may output additional info to the console.\", oneR0.debugTipText());\n assertEquals(\"The minimum bucket size used for discretizing numeric attributes.\", oneR0.minBucketSizeTipText());\n assertEquals(6, oneR0.getMinBucketSize());\n assertFalse(oneR0.getDebug());\n assertFalse(capabilities0.hasDependencies());\n assertEquals(1, capabilities0.getMinimumNumberInstances());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(1, testInstances0.getNumRelationalDate());\n assertEquals(1, testInstances0.getNumNumeric());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(1, testInstances0.getNumRelationalNumeric());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(1, testInstances0.getNumDate());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertFalse(testInstances0.getNoClass());\n assertEquals(20, testInstances0.getNumInstances());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(1, testInstances0.getClassType());\n assertEquals(4, testInstances0.getNumAttributes());\n assertEquals(4, testInstances0.getNumClasses());\n \n TestInstances testInstances1 = TestInstances.forCapabilities(capabilities0);\n assertFalse(testInstances1.equals((Object)testInstances0));\n assertNotNull(testInstances1);\n assertNotSame(testInstances1, testInstances0);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals(\"If set to true, classifier may output additional info to the console.\", oneR0.debugTipText());\n assertEquals(\"The minimum bucket size used for discretizing numeric attributes.\", oneR0.minBucketSizeTipText());\n assertEquals(6, oneR0.getMinBucketSize());\n assertFalse(oneR0.getDebug());\n assertFalse(capabilities0.hasDependencies());\n assertEquals(1, capabilities0.getMinimumNumberInstances());\n assertEquals(0, testInstances1.getNumRelational());\n assertEquals(0, testInstances1.getNumString());\n assertEquals(1, testInstances1.getNumNumeric());\n assertEquals(1, testInstances1.getSeed());\n assertEquals(1, testInstances1.getNumRelationalNumeric());\n assertEquals(0, testInstances1.getNumRelationalString());\n assertFalse(testInstances1.getMultiInstance());\n assertEquals(1, testInstances1.getNumRelationalNominal());\n assertEquals(1, testInstances1.getNumDate());\n assertEquals(2, testInstances1.getNumNominalValues());\n assertEquals(\" \", testInstances1.getWordSeparators());\n assertEquals(20, testInstances1.getNumInstances());\n assertEquals(10, testInstances1.getNumInstancesRelational());\n assertEquals(2, testInstances1.getNumRelationalNominalValues());\n assertEquals(1, testInstances1.getClassType());\n assertEquals((-1), testInstances1.getClassIndex());\n assertEquals(1, testInstances1.getNumNominal());\n assertEquals(\"Testdata\", testInstances1.getRelation());\n assertEquals(1, testInstances1.getNumRelationalDate());\n assertFalse(testInstances1.getNoClass());\n assertEquals(4, testInstances1.getNumAttributes());\n assertEquals(4, testInstances1.getNumClasses());\n \n Instances instances0 = testInstances1.generate();\n assertFalse(testInstances1.equals((Object)testInstances0));\n assertNotNull(instances0);\n assertNotSame(testInstances1, testInstances0);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals(\"If set to true, classifier may output additional info to the console.\", oneR0.debugTipText());\n assertEquals(\"The minimum bucket size used for discretizing numeric attributes.\", oneR0.minBucketSizeTipText());\n assertEquals(6, oneR0.getMinBucketSize());\n assertFalse(oneR0.getDebug());\n assertFalse(capabilities0.hasDependencies());\n assertEquals(1, capabilities0.getMinimumNumberInstances());\n assertEquals(0, testInstances1.getNumRelational());\n assertEquals(0, testInstances1.getNumString());\n assertEquals(1, testInstances1.getNumNumeric());\n assertEquals(1, testInstances1.getSeed());\n assertEquals(1, testInstances1.getNumRelationalNumeric());\n assertEquals(0, testInstances1.getNumRelationalString());\n assertFalse(testInstances1.getMultiInstance());\n assertEquals(1, testInstances1.getNumRelationalNominal());\n assertEquals(1, testInstances1.getNumDate());\n assertEquals(2, testInstances1.getNumNominalValues());\n assertEquals(\" \", testInstances1.getWordSeparators());\n assertEquals(20, testInstances1.getNumInstances());\n assertEquals(10, testInstances1.getNumInstancesRelational());\n assertEquals(2, testInstances1.getNumRelationalNominalValues());\n assertEquals(1, testInstances1.getClassType());\n assertEquals((-1), testInstances1.getClassIndex());\n assertEquals(1, testInstances1.getNumNominal());\n assertEquals(\"Testdata\", testInstances1.getRelation());\n assertEquals(1, testInstances1.getNumRelationalDate());\n assertFalse(testInstances1.getNoClass());\n assertEquals(4, testInstances1.getNumAttributes());\n assertEquals(4, testInstances1.getNumClasses());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertEquals(4, instances0.numAttributes());\n assertEquals(20, instances0.numInstances());\n assertFalse(instances0.checkForStringAttributes());\n assertEquals(20, instances0.size());\n assertEquals(\"Testdata\", instances0.relationName());\n assertEquals(3, instances0.classIndex());\n assertEquals(4, instances0.numClasses());\n \n J48.main(testInstances1.DEFAULT_WORDS);\n assertFalse(testInstances1.equals((Object)testInstances0));\n assertNotSame(testInstances1, testInstances0);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals(\"If set to true, classifier may output additional info to the console.\", oneR0.debugTipText());\n assertEquals(\"The minimum bucket size used for discretizing numeric attributes.\", oneR0.minBucketSizeTipText());\n assertEquals(6, oneR0.getMinBucketSize());\n assertFalse(oneR0.getDebug());\n assertFalse(capabilities0.hasDependencies());\n assertEquals(1, capabilities0.getMinimumNumberInstances());\n assertEquals(0, testInstances1.getNumRelational());\n assertEquals(0, testInstances1.getNumString());\n assertEquals(1, testInstances1.getNumNumeric());\n assertEquals(1, testInstances1.getSeed());\n assertEquals(1, testInstances1.getNumRelationalNumeric());\n assertEquals(0, testInstances1.getNumRelationalString());\n assertFalse(testInstances1.getMultiInstance());\n assertEquals(1, testInstances1.getNumRelationalNominal());\n assertEquals(1, testInstances1.getNumDate());\n assertEquals(2, testInstances1.getNumNominalValues());\n assertEquals(\" \", testInstances1.getWordSeparators());\n assertEquals(20, testInstances1.getNumInstances());\n assertEquals(10, testInstances1.getNumInstancesRelational());\n assertEquals(2, testInstances1.getNumRelationalNominalValues());\n assertEquals(1, testInstances1.getClassType());\n assertEquals((-1), testInstances1.getClassIndex());\n assertEquals(1, testInstances1.getNumNominal());\n assertEquals(\"Testdata\", testInstances1.getRelation());\n assertEquals(1, testInstances1.getNumRelationalDate());\n assertFalse(testInstances1.getNoClass());\n assertEquals(4, testInstances1.getNumAttributes());\n assertEquals(4, testInstances1.getNumClasses());\n \n RandomCommittee randomCommittee0 = new RandomCommittee();\n assertNotNull(randomCommittee0);\n assertEquals(\"If set to true, classifier may output additional info to the console.\", randomCommittee0.debugTipText());\n assertEquals(\"The number of execution slots (threads) to use for constructing the ensemble.\", randomCommittee0.numExecutionSlotsTipText());\n assertEquals(10, randomCommittee0.getNumIterations());\n assertEquals(\"The base classifier to be used.\", randomCommittee0.classifierTipText());\n assertEquals(\"The number of iterations to be performed.\", randomCommittee0.numIterationsTipText());\n assertEquals(1, randomCommittee0.getNumExecutionSlots());\n assertEquals(\"Class for building an ensemble of randomizable base classifiers. Each base classifiers is built using a different random number seed (but based one the same data). The final prediction is a straight average of the predictions generated by the individual base classifiers.\", randomCommittee0.globalInfo());\n assertFalse(randomCommittee0.getDebug());\n assertEquals(\"The random number seed to be used.\", randomCommittee0.seedTipText());\n assertEquals(1, randomCommittee0.getSeed());\n \n Random.setNextRandom(2828);\n EvoSuiteFile evoSuiteFile0 = new EvoSuiteFile(\"Capabilities.props\");\n byte[] byteArray0 = new byte[9];\n byteArray0[0] = (byte) (-32);\n byteArray0[1] = (byte) (-76);\n byteArray0[2] = (byte) (-5);\n byteArray0[3] = (byte) (-58);\n byteArray0[4] = (byte)100;\n byteArray0[5] = (byte) (-123);\n byteArray0[6] = (byte)57;\n byteArray0[7] = (byte)2;\n byteArray0[8] = (byte)27;\n boolean boolean0 = FileSystemHandling.appendDataToFile(evoSuiteFile0, byteArray0);\n assertArrayEquals(new byte[] {(byte) (-32), (byte) (-76), (byte) (-5), (byte) (-58), (byte)100, (byte) (-123), (byte)57, (byte)2, (byte)27}, byteArray0);\n assertEquals(9, byteArray0.length);\n assertTrue(boolean0);\n \n Evaluation evaluation0 = new Evaluation(instances0);\n assertFalse(testInstances1.equals((Object)testInstances0));\n assertNotNull(evaluation0);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals(\"If set to true, classifier may output additional info to the console.\", oneR0.debugTipText());\n assertEquals(\"The minimum bucket size used for discretizing numeric attributes.\", oneR0.minBucketSizeTipText());\n assertEquals(6, oneR0.getMinBucketSize());\n assertFalse(oneR0.getDebug());\n assertFalse(capabilities0.hasDependencies());\n assertEquals(1, capabilities0.getMinimumNumberInstances());\n assertEquals(0, testInstances1.getNumRelational());\n assertEquals(0, testInstances1.getNumString());\n assertEquals(1, testInstances1.getNumNumeric());\n assertEquals(1, testInstances1.getSeed());\n assertEquals(1, testInstances1.getNumRelationalNumeric());\n assertEquals(0, testInstances1.getNumRelationalString());\n assertFalse(testInstances1.getMultiInstance());\n assertEquals(1, testInstances1.getNumRelationalNominal());\n assertEquals(1, testInstances1.getNumDate());\n assertEquals(2, testInstances1.getNumNominalValues());\n assertEquals(\" \", testInstances1.getWordSeparators());\n assertEquals(20, testInstances1.getNumInstances());\n assertEquals(10, testInstances1.getNumInstancesRelational());\n assertEquals(2, testInstances1.getNumRelationalNominalValues());\n assertEquals(1, testInstances1.getClassType());\n assertEquals((-1), testInstances1.getClassIndex());\n assertEquals(1, testInstances1.getNumNominal());\n assertEquals(\"Testdata\", testInstances1.getRelation());\n assertEquals(1, testInstances1.getNumRelationalDate());\n assertFalse(testInstances1.getNoClass());\n assertEquals(4, testInstances1.getNumAttributes());\n assertEquals(4, testInstances1.getNumClasses());\n assertEquals(Double.NaN, evaluation0.avgCost(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctUnclassified(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.relativeAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFalseNegativeRate(), 0.01);\n assertEquals(0.0, evaluation0.numInstances(), 0.01);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedRecall(), 0.01);\n assertEquals(Double.NaN, evaluation0.errorRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctIncorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFalsePositiveRate(), 0.01);\n assertEquals(1.0, evaluation0.kappa(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanAbsoluteError(), 0.01);\n assertEquals(0.0, evaluation0.incorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedTrueNegativeRate(), 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.coverageOfTestCasesByPredictedRegions(), 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedPrecision(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanPriorAbsoluteError(), 0.01);\n assertEquals(0.0, evaluation0.totalCost(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFMeasure(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctCorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedTruePositiveRate(), 0.01);\n assertFalse(evaluation0.getDiscardPredictions());\n assertEquals(0.0, evaluation0.correct(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanPriorSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.unweightedMicroFmeasure(), 0.01);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(Double.NaN, evaluation0.sizeOfPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootRelativeSquaredError(), 0.01);\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertEquals(4, instances0.numAttributes());\n assertEquals(20, instances0.numInstances());\n assertFalse(instances0.checkForStringAttributes());\n assertEquals(20, instances0.size());\n assertEquals(\"Testdata\", instances0.relationName());\n assertEquals(3, instances0.classIndex());\n assertEquals(4, instances0.numClasses());\n \n String string0 = evaluation0.toSummaryString(\"@relation\", true);\n assertFalse(testInstances1.equals((Object)testInstances0));\n assertNotNull(string0);\n assertNotSame(testInstances1, testInstances0);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals(\"If set to true, classifier may output additional info to the console.\", oneR0.debugTipText());\n assertEquals(\"The minimum bucket size used for discretizing numeric attributes.\", oneR0.minBucketSizeTipText());\n assertEquals(6, oneR0.getMinBucketSize());\n assertFalse(oneR0.getDebug());\n assertFalse(capabilities0.hasDependencies());\n assertEquals(1, capabilities0.getMinimumNumberInstances());\n assertEquals(0, testInstances1.getNumRelational());\n assertEquals(0, testInstances1.getNumString());\n assertEquals(1, testInstances1.getNumNumeric());\n assertEquals(1, testInstances1.getSeed());\n assertEquals(1, testInstances1.getNumRelationalNumeric());\n assertEquals(0, testInstances1.getNumRelationalString());\n assertFalse(testInstances1.getMultiInstance());\n assertEquals(1, testInstances1.getNumRelationalNominal());\n assertEquals(1, testInstances1.getNumDate());\n assertEquals(2, testInstances1.getNumNominalValues());\n assertEquals(\" \", testInstances1.getWordSeparators());\n assertEquals(20, testInstances1.getNumInstances());\n assertEquals(10, testInstances1.getNumInstancesRelational());\n assertEquals(2, testInstances1.getNumRelationalNominalValues());\n assertEquals(1, testInstances1.getClassType());\n assertEquals((-1), testInstances1.getClassIndex());\n assertEquals(1, testInstances1.getNumNominal());\n assertEquals(\"Testdata\", testInstances1.getRelation());\n assertEquals(1, testInstances1.getNumRelationalDate());\n assertFalse(testInstances1.getNoClass());\n assertEquals(4, testInstances1.getNumAttributes());\n assertEquals(4, testInstances1.getNumClasses());\n assertEquals(Double.NaN, evaluation0.avgCost(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctUnclassified(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.relativeAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFalseNegativeRate(), 0.01);\n assertEquals(0.0, evaluation0.numInstances(), 0.01);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedRecall(), 0.01);\n assertEquals(Double.NaN, evaluation0.errorRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctIncorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFalsePositiveRate(), 0.01);\n assertEquals(1.0, evaluation0.kappa(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanAbsoluteError(), 0.01);\n assertEquals(0.0, evaluation0.incorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedTrueNegativeRate(), 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.coverageOfTestCasesByPredictedRegions(), 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedPrecision(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanPriorAbsoluteError(), 0.01);\n assertEquals(0.0, evaluation0.totalCost(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFMeasure(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctCorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedTruePositiveRate(), 0.01);\n assertFalse(evaluation0.getDiscardPredictions());\n assertEquals(0.0, evaluation0.correct(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanPriorSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.unweightedMicroFmeasure(), 0.01);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(Double.NaN, evaluation0.sizeOfPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootRelativeSquaredError(), 0.01);\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertEquals(4, instances0.numAttributes());\n assertEquals(20, instances0.numInstances());\n assertFalse(instances0.checkForStringAttributes());\n assertEquals(20, instances0.size());\n assertEquals(\"Testdata\", instances0.relationName());\n assertEquals(3, instances0.classIndex());\n assertEquals(4, instances0.numClasses());\n assertEquals(\"@relation\\nTotal Number of Instances 0 \\n\", string0);\n \n String string1 = evaluation0.toClassDetailsString();\n assertFalse(string1.equals((Object)string0));\n assertFalse(testInstances1.equals((Object)testInstances0));\n assertNotNull(string1);\n assertNotSame(testInstances1, testInstances0);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals(\"If set to true, classifier may output additional info to the console.\", oneR0.debugTipText());\n assertEquals(\"The minimum bucket size used for discretizing numeric attributes.\", oneR0.minBucketSizeTipText());\n assertEquals(6, oneR0.getMinBucketSize());\n assertFalse(oneR0.getDebug());\n assertFalse(capabilities0.hasDependencies());\n assertEquals(1, capabilities0.getMinimumNumberInstances());\n assertEquals(0, testInstances1.getNumRelational());\n assertEquals(0, testInstances1.getNumString());\n assertEquals(1, testInstances1.getNumNumeric());\n assertEquals(1, testInstances1.getSeed());\n assertEquals(1, testInstances1.getNumRelationalNumeric());\n assertEquals(0, testInstances1.getNumRelationalString());\n assertFalse(testInstances1.getMultiInstance());\n assertEquals(1, testInstances1.getNumRelationalNominal());\n assertEquals(1, testInstances1.getNumDate());\n assertEquals(2, testInstances1.getNumNominalValues());\n assertEquals(\" \", testInstances1.getWordSeparators());\n assertEquals(20, testInstances1.getNumInstances());\n assertEquals(10, testInstances1.getNumInstancesRelational());\n assertEquals(2, testInstances1.getNumRelationalNominalValues());\n assertEquals(1, testInstances1.getClassType());\n assertEquals((-1), testInstances1.getClassIndex());\n assertEquals(1, testInstances1.getNumNominal());\n assertEquals(\"Testdata\", testInstances1.getRelation());\n assertEquals(1, testInstances1.getNumRelationalDate());\n assertFalse(testInstances1.getNoClass());\n assertEquals(4, testInstances1.getNumAttributes());\n assertEquals(4, testInstances1.getNumClasses());\n assertEquals(Double.NaN, evaluation0.avgCost(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctUnclassified(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.relativeAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFalseNegativeRate(), 0.01);\n assertEquals(0.0, evaluation0.numInstances(), 0.01);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedRecall(), 0.01);\n assertEquals(Double.NaN, evaluation0.errorRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctIncorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFalsePositiveRate(), 0.01);\n assertEquals(1.0, evaluation0.kappa(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanAbsoluteError(), 0.01);\n assertEquals(0.0, evaluation0.incorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedTrueNegativeRate(), 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.coverageOfTestCasesByPredictedRegions(), 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedPrecision(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanPriorAbsoluteError(), 0.01);\n assertEquals(0.0, evaluation0.totalCost(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFMeasure(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctCorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedTruePositiveRate(), 0.01);\n assertFalse(evaluation0.getDiscardPredictions());\n assertEquals(0.0, evaluation0.correct(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanPriorSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.unweightedMicroFmeasure(), 0.01);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(Double.NaN, evaluation0.sizeOfPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootRelativeSquaredError(), 0.01);\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertEquals(4, instances0.numAttributes());\n assertEquals(20, instances0.numInstances());\n assertFalse(instances0.checkForStringAttributes());\n assertEquals(20, instances0.size());\n assertEquals(\"Testdata\", instances0.relationName());\n assertEquals(3, instances0.classIndex());\n assertEquals(4, instances0.numClasses());\n assertEquals(\"=== Detailed Accuracy By Class ===\\n\\n TP Rate FP Rate Precision Recall F-Measure MCC ROC Area PRC Area Class\\n 0 0 0 0 0 0 ? ? class1\\n 0 0 0 0 0 0 ? ? class2\\n 0 0 0 0 0 0 ? ? class3\\n 0 0 0 0 0 0 ? ? class4\\nWeighted Avg. NaN NaN NaN NaN NaN NaN NaN NaN \\n\", string1);\n \n double double0 = evaluation0.coverageOfTestCasesByPredictedRegions();\n assertFalse(testInstances1.equals((Object)testInstances0));\n assertNotSame(testInstances1, testInstances0);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals(\"If set to true, classifier may output additional info to the console.\", oneR0.debugTipText());\n assertEquals(\"The minimum bucket size used for discretizing numeric attributes.\", oneR0.minBucketSizeTipText());\n assertEquals(6, oneR0.getMinBucketSize());\n assertFalse(oneR0.getDebug());\n assertFalse(capabilities0.hasDependencies());\n assertEquals(1, capabilities0.getMinimumNumberInstances());\n assertEquals(0, testInstances1.getNumRelational());\n assertEquals(0, testInstances1.getNumString());\n assertEquals(1, testInstances1.getNumNumeric());\n assertEquals(1, testInstances1.getSeed());\n assertEquals(1, testInstances1.getNumRelationalNumeric());\n assertEquals(0, testInstances1.getNumRelationalString());\n assertFalse(testInstances1.getMultiInstance());\n assertEquals(1, testInstances1.getNumRelationalNominal());\n assertEquals(1, testInstances1.getNumDate());\n assertEquals(2, testInstances1.getNumNominalValues());\n assertEquals(\" \", testInstances1.getWordSeparators());\n assertEquals(20, testInstances1.getNumInstances());\n assertEquals(10, testInstances1.getNumInstancesRelational());\n assertEquals(2, testInstances1.getNumRelationalNominalValues());\n assertEquals(1, testInstances1.getClassType());\n assertEquals((-1), testInstances1.getClassIndex());\n assertEquals(1, testInstances1.getNumNominal());\n assertEquals(\"Testdata\", testInstances1.getRelation());\n assertEquals(1, testInstances1.getNumRelationalDate());\n assertFalse(testInstances1.getNoClass());\n assertEquals(4, testInstances1.getNumAttributes());\n assertEquals(4, testInstances1.getNumClasses());\n assertEquals(Double.NaN, evaluation0.avgCost(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctUnclassified(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.relativeAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFalseNegativeRate(), 0.01);\n assertEquals(0.0, evaluation0.numInstances(), 0.01);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedRecall(), 0.01);\n assertEquals(Double.NaN, evaluation0.errorRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctIncorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFalsePositiveRate(), 0.01);\n assertEquals(1.0, evaluation0.kappa(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanAbsoluteError(), 0.01);\n assertEquals(0.0, evaluation0.incorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedTrueNegativeRate(), 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.coverageOfTestCasesByPredictedRegions(), 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedPrecision(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanPriorAbsoluteError(), 0.01);\n assertEquals(0.0, evaluation0.totalCost(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFMeasure(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctCorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedTruePositiveRate(), 0.01);\n assertFalse(evaluation0.getDiscardPredictions());\n assertEquals(0.0, evaluation0.correct(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanPriorSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.unweightedMicroFmeasure(), 0.01);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(Double.NaN, evaluation0.sizeOfPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootRelativeSquaredError(), 0.01);\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertEquals(4, instances0.numAttributes());\n assertEquals(20, instances0.numInstances());\n assertFalse(instances0.checkForStringAttributes());\n assertEquals(20, instances0.size());\n assertEquals(\"Testdata\", instances0.relationName());\n assertEquals(3, instances0.classIndex());\n assertEquals(4, instances0.numClasses());\n assertEquals(Double.NaN, double0, 0.01);\n }", "title": "" }, { "docid": "ba18211171c8f6b62c8fc699fa4e5a78", "score": "0.5915415", "text": "@Test(timeout = 4000)\n public void test61() throws Throwable {\n ResultMatrixLatex resultMatrixLatex0 = new ResultMatrixLatex();\n resultMatrixLatex0.toStringSummary();\n resultMatrixLatex0.getEnumerateRowNames();\n ResultMatrixSignificance resultMatrixSignificance0 = new ResultMatrixSignificance(resultMatrixLatex0);\n double[] doubleArray0 = new double[7];\n doubleArray0[0] = (double) 2;\n doubleArray0[1] = (double) 1;\n doubleArray0[2] = (-1.0);\n doubleArray0[3] = (-2851.8978502965);\n doubleArray0[4] = (double) 2;\n doubleArray0[5] = (double) 0;\n doubleArray0[6] = (double) 0;\n resultMatrixSignificance0.m_Counts = doubleArray0;\n resultMatrixSignificance0.getDefaultShowStdDev();\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n }", "title": "" }, { "docid": "df11cc0f4799ee7f6e43759e7ae6cb6a", "score": "0.59152585", "text": "@Test(timeout = 4000)\n public void test51() throws Throwable {\n Discretize discretize0 = new Discretize();\n ArrayList<Attribute> arrayList0 = new ArrayList<Attribute>();\n Attribute attribute0 = new Attribute(\"I++xp^q3e\", (-198));\n arrayList0.add(attribute0);\n Instances instances0 = new Instances(\"integer\", arrayList0, 6);\n discretize0.m_FindNumBins = true;\n discretize0.setUseEqualFrequency(true);\n try { \n discretize0.setInputFormat(instances0);\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // Bin number optimization in conjunction with equal-frequency binning not implemented.\n //\n verifyException(\"weka.filters.unsupervised.attribute.Discretize\", e);\n }\n }", "title": "" }, { "docid": "640cadd3d606d0839b148c62d417e893", "score": "0.5907525", "text": "@Test\n\tpublic void testCountSimilarity() throws Exception {\n\t}", "title": "" }, { "docid": "68591a72fe0ad51c1b7f5cda9a4fef40", "score": "0.5904557", "text": "@Test(timeout = 4000)\n public void test71() throws Throwable {\n ResultMatrixCSV resultMatrixCSV0 = new ResultMatrixCSV();\n ResultMatrixLatex resultMatrixLatex0 = new ResultMatrixLatex(resultMatrixCSV0);\n resultMatrixCSV0.setEnumerateColNames(false);\n resultMatrixCSV0.stdDevPrecTipText();\n resultMatrixCSV0.toArray();\n resultMatrixLatex0.toStringSummary();\n ResultMatrixHTML resultMatrixHTML0 = new ResultMatrixHTML(1447, 1447);\n }", "title": "" }, { "docid": "902f56ef3ec7a963cbb5d8662efb568b", "score": "0.5902033", "text": "@Test\r\n\tpublic void getResultsTest() {\t\t\t\t\t \r\n\t\t\r\n\t\tint test01 = -1; // covers paths 1, 5\r\n\t\tint test02 = 22; // covers path 2\r\n\t\tint test03 = 101; // covers path 3\r\n\t\tint test04 = -18; // covers paths 1, 4 \r\n\t\t\r\n\t\t\r\n\t\tint actual01 = util.getResults(test01);\r\n\t\tint actual02 = util.getResults(test02);\r\n\t\tint actual03 = util.getResults(test03);\r\n\t\tint actual04 = util.getResults(test04);\r\n\t\t\r\n\t\t\r\n\t\tint expected01 = 22;\r\n\t\tint expected02 = 22;\r\n\t\tint expected03 = 102;\r\n\t\tint expected04 = 38;\r\n\t\t\r\n\t\t\r\n\t\tassertEquals(expected01,actual01);\r\n\t\tassertEquals(expected02,actual02);\r\n\t\tassertEquals(expected03,actual03);\r\n\t\tassertEquals(expected04,actual04);\r\n\t\t\r\n\t}", "title": "" }, { "docid": "d1f6462ae205f757cd67d2ea4d745b3b", "score": "0.5901366", "text": "@Test(timeout = 4000)\n public void test59() throws Throwable {\n ResultMatrixLatex resultMatrixLatex0 = new ResultMatrixLatex();\n ResultMatrixLatex resultMatrixLatex1 = new ResultMatrixLatex(resultMatrixLatex0);\n resultMatrixLatex1.getRowName((-357));\n ResultMatrixLatex resultMatrixLatex2 = new ResultMatrixLatex(resultMatrixLatex0);\n resultMatrixLatex2.setCount(0, (-1362.55537));\n ResultMatrixSignificance resultMatrixSignificance0 = new ResultMatrixSignificance(resultMatrixLatex2);\n double[] doubleArray0 = new double[7];\n doubleArray0[0] = (double) 0;\n doubleArray0[1] = (double) 0;\n doubleArray0[2] = (double) 11;\n doubleArray0[3] = (-1362.55537);\n doubleArray0[4] = (double) 0;\n doubleArray0[5] = (double) 11;\n doubleArray0[6] = 100.0;\n resultMatrixSignificance0.m_Counts = doubleArray0;\n resultMatrixSignificance0.getDefaultRowNameWidth();\n }", "title": "" }, { "docid": "c7047d9cbdf6708453e2157982e307d6", "score": "0.5898149", "text": "@Test(timeout = 4000)\n public void test53() throws Throwable {\n ResultMatrixSignificance resultMatrixSignificance0 = new ResultMatrixSignificance();\n resultMatrixSignificance0.m_StdDevPrec = 0;\n resultMatrixSignificance0.padString(\"-JMXW})2x5Gwb\\\"lZ{>S\", (-560), false);\n resultMatrixSignificance0.m_ShowStdDev = true;\n resultMatrixSignificance0.doubleToString((-2541.9081796), 0);\n resultMatrixSignificance0.m_EnumerateRowNames = true;\n Vector<String> vector0 = new Vector<String>();\n ResultMatrixPlainText resultMatrixPlainText0 = new ResultMatrixPlainText();\n int[] intArray0 = new int[2];\n intArray0[0] = 0;\n intArray0[1] = 0;\n resultMatrixPlainText0.setRowOrder(intArray0);\n ResultMatrixLatex resultMatrixLatex0 = new ResultMatrixLatex();\n resultMatrixLatex0.clearSummary();\n resultMatrixPlainText0.getEnumerateRowNames();\n resultMatrixLatex0.getMean(0, 2);\n resultMatrixSignificance0.toStringKey();\n }", "title": "" }, { "docid": "f08ae24c6e40b68e1be9a022909bd2d0", "score": "0.5898009", "text": "@Test(timeout = 4000)\n public void test05() throws Throwable {\n FileSystemHandling.setPermissions((EvoSuiteFile) null, false, false, false);\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n String[] stringArray0 = new String[3];\n stringArray0[2] = \"bf4(\";\n stringArray0[1] = \"@relation\";\n stringArray0[2] = \"@data\";\n J48.main(stringArray0);\n RandomCommittee randomCommittee0 = new RandomCommittee();\n Evaluation.makeOptionString(randomCommittee0, false);\n Random.setNextRandom(17);\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.toSummaryString(\"@data\", false);\n evaluation0.toMatrixString();\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n }", "title": "" }, { "docid": "cffe1e2299f8466c25c01038bff74468", "score": "0.589759", "text": "@Test(timeout = 4000)\n public void test58() throws Throwable {\n DecisionStump decisionStump0 = new DecisionStump();\n assertNotNull(decisionStump0);\n assertFalse(decisionStump0.getDebug());\n assertEquals(\"Class for building and using a decision stump. Usually used in conjunction with a boosting algorithm. Does regression (based on mean-squared error) or classification (based on entropy). Missing is treated as a separate value.\", decisionStump0.globalInfo());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", decisionStump0.debugTipText());\n \n String[] stringArray0 = decisionStump0.getOptions();\n assertEquals(0, stringArray0.length);\n assertNotNull(stringArray0);\n assertFalse(decisionStump0.getDebug());\n assertEquals(\"Class for building and using a decision stump. Usually used in conjunction with a boosting algorithm. Does regression (based on mean-squared error) or classification (based on entropy). Missing is treated as a separate value.\", decisionStump0.globalInfo());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", decisionStump0.debugTipText());\n \n MultiScheme multiScheme0 = new MultiScheme();\n assertNotNull(multiScheme0);\n assertEquals(\"The seed used for randomizing the data for cross-validation.\", multiScheme0.seedTipText());\n assertEquals(1, multiScheme0.getSeed());\n assertEquals(\"The number of folds used for cross-validation (if 0, performance on training data will be used).\", multiScheme0.numFoldsTipText());\n assertEquals(0, multiScheme0.getBestClassifierIndex());\n assertFalse(multiScheme0.getDebug());\n assertEquals(\"Class for selecting a classifier from among several using cross validation on the training data or the performance on the training data. Performance is measured based on percent correct (classification) or mean-squared error (regression).\", multiScheme0.globalInfo());\n assertEquals(\"Whether debug information is output to console.\", multiScheme0.debugTipText());\n assertEquals(0, multiScheme0.getNumFolds());\n assertEquals(\"The classifiers to be chosen from.\", multiScheme0.classifiersTipText());\n \n EvoSuiteFile evoSuiteFile0 = new EvoSuiteFile(\"/home/ubuntu/evosuite_readability_gen/projects/107_weka\");\n boolean boolean0 = FileSystemHandling.appendStringToFile(evoSuiteFile0, \"1034-1040\");\n assertFalse(boolean0);\n \n LibSVMLoader libSVMLoader0 = new LibSVMLoader();\n assertNotNull(libSVMLoader0);\n assertEquals(\"http://\", libSVMLoader0.retrieveURL());\n assertEquals(\".libsvm\", libSVMLoader0.getFileExtension());\n assertEquals(\"libsvm data files\", libSVMLoader0.getFileDescription());\n assertEquals(\"Use relative rather than absolute paths\", libSVMLoader0.useRelativePathTipText());\n assertFalse(libSVMLoader0.getUseRelativePath());\n assertEquals(\"Reads a source that is in libsvm format.\\n\\nFor more information about libsvm see:\\n\\nhttp://www.csie.ntu.edu.tw/~cjlin/libsvm/\", libSVMLoader0.globalInfo());\n \n MockRandom mockRandom0 = new MockRandom();\n assertNotNull(mockRandom0);\n \n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n assertNotNull(textDirectoryLoader0);\n assertFalse(textDirectoryLoader0.getDebug());\n assertEquals(\"Loads all text files in a directory and uses the subdirectory names as class labels. The content of the text files will be stored in a String attribute, the filename can be stored as well.\", textDirectoryLoader0.globalInfo());\n assertFalse(textDirectoryLoader0.getOutputFilename());\n assertEquals(\"Directories\", textDirectoryLoader0.getFileDescription());\n assertEquals(\"Whether to print additional debug information to the console.\", textDirectoryLoader0.debugTipText());\n assertEquals(\"The character set to use when reading text files (eg UTF-8) - leave blank to use the default character set.\", textDirectoryLoader0.charSetTipText());\n assertEquals(\"Whether to store the filename in an additional attribute.\", textDirectoryLoader0.outputFilenameTipText());\n assertEquals(\"\", textDirectoryLoader0.getCharSet());\n \n Instances instances0 = textDirectoryLoader0.getStructure();\n assertNotNull(instances0);\n assertFalse(textDirectoryLoader0.getDebug());\n assertEquals(\"Loads all text files in a directory and uses the subdirectory names as class labels. The content of the text files will be stored in a String attribute, the filename can be stored as well.\", textDirectoryLoader0.globalInfo());\n assertFalse(textDirectoryLoader0.getOutputFilename());\n assertEquals(\"Directories\", textDirectoryLoader0.getFileDescription());\n assertEquals(\"Whether to print additional debug information to the console.\", textDirectoryLoader0.debugTipText());\n assertEquals(\"The character set to use when reading text files (eg UTF-8) - leave blank to use the default character set.\", textDirectoryLoader0.charSetTipText());\n assertEquals(\"Whether to store the filename in an additional attribute.\", textDirectoryLoader0.outputFilenameTipText());\n assertEquals(\"\", textDirectoryLoader0.getCharSet());\n assertEquals(0.0, instances0.sumOfWeights(), 0.01);\n assertEquals(0, instances0.size());\n assertEquals(2, instances0.numAttributes());\n assertTrue(instances0.checkForStringAttributes());\n assertEquals(\"_home_ubuntu_evosuite_readability_gen_projects_107_weka\", instances0.relationName());\n assertEquals(0, instances0.numInstances());\n assertEquals(0, instances0.numClasses());\n assertEquals(1, instances0.classIndex());\n \n Instances instances1 = ConverterUtils.DataSource.read((Loader) textDirectoryLoader0);\n assertTrue(instances1.equals((Object)instances0));\n assertNotSame(instances1, instances0);\n assertNotNull(instances1);\n assertFalse(textDirectoryLoader0.getDebug());\n assertEquals(\"Loads all text files in a directory and uses the subdirectory names as class labels. The content of the text files will be stored in a String attribute, the filename can be stored as well.\", textDirectoryLoader0.globalInfo());\n assertFalse(textDirectoryLoader0.getOutputFilename());\n assertEquals(\"Directories\", textDirectoryLoader0.getFileDescription());\n assertEquals(\"Whether to print additional debug information to the console.\", textDirectoryLoader0.debugTipText());\n assertEquals(\"The character set to use when reading text files (eg UTF-8) - leave blank to use the default character set.\", textDirectoryLoader0.charSetTipText());\n assertEquals(\"Whether to store the filename in an additional attribute.\", textDirectoryLoader0.outputFilenameTipText());\n assertEquals(\"\", textDirectoryLoader0.getCharSet());\n assertEquals(0, instances1.numClasses());\n assertEquals(1, instances1.classIndex());\n assertTrue(instances1.checkForStringAttributes());\n assertEquals(2, instances1.numAttributes());\n assertEquals(0.0, instances1.sumOfWeights(), 0.01);\n assertEquals(0, instances1.size());\n assertEquals(\"_home_ubuntu_evosuite_readability_gen_projects_107_weka\", instances1.relationName());\n assertEquals(0, instances1.numInstances());\n \n Evaluation evaluation0 = new Evaluation(instances1);\n assertTrue(instances1.equals((Object)instances0));\n assertNotNull(evaluation0);\n assertFalse(textDirectoryLoader0.getDebug());\n assertEquals(\"Loads all text files in a directory and uses the subdirectory names as class labels. The content of the text files will be stored in a String attribute, the filename can be stored as well.\", textDirectoryLoader0.globalInfo());\n assertFalse(textDirectoryLoader0.getOutputFilename());\n assertEquals(\"Directories\", textDirectoryLoader0.getFileDescription());\n assertEquals(\"Whether to print additional debug information to the console.\", textDirectoryLoader0.debugTipText());\n assertEquals(\"The character set to use when reading text files (eg UTF-8) - leave blank to use the default character set.\", textDirectoryLoader0.charSetTipText());\n assertEquals(\"Whether to store the filename in an additional attribute.\", textDirectoryLoader0.outputFilenameTipText());\n assertEquals(\"\", textDirectoryLoader0.getCharSet());\n assertEquals(0, instances1.numClasses());\n assertEquals(1, instances1.classIndex());\n assertTrue(instances1.checkForStringAttributes());\n assertEquals(2, instances1.numAttributes());\n assertEquals(0.0, instances1.sumOfWeights(), 0.01);\n assertEquals(0, instances1.size());\n assertEquals(\"_home_ubuntu_evosuite_readability_gen_projects_107_weka\", instances1.relationName());\n assertEquals(0, instances1.numInstances());\n assertEquals(Double.NaN, evaluation0.weightedPrecision(), 0.01);\n assertEquals(0.0, evaluation0.numInstances(), 0.01);\n assertEquals(Double.NaN, evaluation0.avgCost(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedRecall(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanSchemeEntropy(), 0.01);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctUnclassified(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.relativeAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.sizeOfPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanPriorSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.unweightedMicroFmeasure(), 0.01);\n assertFalse(evaluation0.getDiscardPredictions());\n assertEquals(0.0, evaluation0.correct(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedTruePositiveRate(), 0.01);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootRelativeSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.coverageOfTestCasesByPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctCorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFMeasure(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedTrueNegativeRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFalseNegativeRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFalsePositiveRate(), 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctIncorrect(), 0.01);\n assertEquals(0.0, evaluation0.incorrect(), 0.01);\n assertEquals(1.0, evaluation0.kappa(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanPriorAbsoluteError(), 0.01);\n assertEquals(0.0, evaluation0.totalCost(), 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.errorRate(), 0.01);\n \n Evaluation evaluation1 = new Evaluation(instances0);\n assertTrue(instances0.equals((Object)instances1));\n assertTrue(evaluation1.equals((Object)evaluation0));\n assertNotNull(evaluation1);\n assertFalse(textDirectoryLoader0.getDebug());\n assertEquals(\"Loads all text files in a directory and uses the subdirectory names as class labels. The content of the text files will be stored in a String attribute, the filename can be stored as well.\", textDirectoryLoader0.globalInfo());\n assertFalse(textDirectoryLoader0.getOutputFilename());\n assertEquals(\"Directories\", textDirectoryLoader0.getFileDescription());\n assertEquals(\"Whether to print additional debug information to the console.\", textDirectoryLoader0.debugTipText());\n assertEquals(\"The character set to use when reading text files (eg UTF-8) - leave blank to use the default character set.\", textDirectoryLoader0.charSetTipText());\n assertEquals(\"Whether to store the filename in an additional attribute.\", textDirectoryLoader0.outputFilenameTipText());\n assertEquals(\"\", textDirectoryLoader0.getCharSet());\n assertEquals(0.0, instances0.sumOfWeights(), 0.01);\n assertEquals(0, instances0.size());\n assertEquals(2, instances0.numAttributes());\n assertTrue(instances0.checkForStringAttributes());\n assertEquals(\"_home_ubuntu_evosuite_readability_gen_projects_107_weka\", instances0.relationName());\n assertEquals(0, instances0.numInstances());\n assertEquals(0, instances0.numClasses());\n assertEquals(1, instances0.classIndex());\n assertEquals(0.0, evaluation1.SFPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation1.weightedFMeasure(), 0.01);\n assertEquals(0.0, evaluation1.totalCost(), 0.01);\n assertEquals(Double.NaN, evaluation1.pctCorrect(), 0.01);\n assertEquals(0.0, evaluation1.SFEntropyGain(), 0.01);\n assertEquals(0.0, evaluation1.incorrect(), 0.01);\n assertEquals(Double.NaN, evaluation1.weightedTrueNegativeRate(), 0.01);\n assertEquals(Double.NaN, evaluation1.meanAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation1.errorRate(), 0.01);\n assertEquals(Double.NaN, evaluation1.coverageOfTestCasesByPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation1.meanPriorAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation1.weightedFalsePositiveRate(), 0.01);\n assertEquals(1.0, evaluation1.kappa(), 0.01);\n assertEquals(Double.NaN, evaluation1.SFMeanPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation1.SFMeanEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation1.pctIncorrect(), 0.01);\n assertEquals(Double.NaN, evaluation1.SFMeanSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation1.avgCost(), 0.01);\n assertEquals(0.0, evaluation1.numInstances(), 0.01);\n assertEquals(0.0, evaluation1.SFSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation1.weightedRecall(), 0.01);\n assertEquals(Double.NaN, evaluation1.weightedPrecision(), 0.01);\n assertEquals(Double.NaN, evaluation1.weightedFalseNegativeRate(), 0.01);\n assertEquals(0.0, evaluation1.correct(), 0.01);\n assertEquals(Double.NaN, evaluation1.rootMeanPriorSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation1.unweightedMicroFmeasure(), 0.01);\n assertEquals(Double.NaN, evaluation1.weightedTruePositiveRate(), 0.01);\n assertEquals(0.0, evaluation1.unclassified(), 0.01);\n assertEquals(Double.NaN, evaluation1.rootRelativeSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation1.sizeOfPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation1.relativeAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation1.rootMeanSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation1.pctUnclassified(), 0.01);\n assertFalse(evaluation1.getDiscardPredictions());\n \n String string0 = evaluation1.toClassDetailsString();\n assertTrue(instances0.equals((Object)instances1));\n assertTrue(evaluation1.equals((Object)evaluation0));\n assertNotSame(instances0, instances1);\n assertNotSame(evaluation1, evaluation0);\n assertEquals(\"=== Detailed Accuracy By Class ===\\n\\n TP Rate FP Rate Precision Recall F-Measure MCC ROC Area PRC Area Class\\nWeighted Avg. NaN NaN NaN NaN NaN NaN NaN NaN \\n\", string0);\n assertNotNull(string0);\n assertFalse(textDirectoryLoader0.getDebug());\n assertEquals(\"Loads all text files in a directory and uses the subdirectory names as class labels. The content of the text files will be stored in a String attribute, the filename can be stored as well.\", textDirectoryLoader0.globalInfo());\n assertFalse(textDirectoryLoader0.getOutputFilename());\n assertEquals(\"Directories\", textDirectoryLoader0.getFileDescription());\n assertEquals(\"Whether to print additional debug information to the console.\", textDirectoryLoader0.debugTipText());\n assertEquals(\"The character set to use when reading text files (eg UTF-8) - leave blank to use the default character set.\", textDirectoryLoader0.charSetTipText());\n assertEquals(\"Whether to store the filename in an additional attribute.\", textDirectoryLoader0.outputFilenameTipText());\n assertEquals(\"\", textDirectoryLoader0.getCharSet());\n assertEquals(0.0, instances0.sumOfWeights(), 0.01);\n assertEquals(0, instances0.size());\n assertEquals(2, instances0.numAttributes());\n assertTrue(instances0.checkForStringAttributes());\n assertEquals(\"_home_ubuntu_evosuite_readability_gen_projects_107_weka\", instances0.relationName());\n assertEquals(0, instances0.numInstances());\n assertEquals(0, instances0.numClasses());\n assertEquals(1, instances0.classIndex());\n assertEquals(0.0, evaluation1.SFPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation1.weightedFMeasure(), 0.01);\n assertEquals(0.0, evaluation1.totalCost(), 0.01);\n assertEquals(Double.NaN, evaluation1.pctCorrect(), 0.01);\n assertEquals(0.0, evaluation1.SFEntropyGain(), 0.01);\n assertEquals(0.0, evaluation1.incorrect(), 0.01);\n assertEquals(Double.NaN, evaluation1.weightedTrueNegativeRate(), 0.01);\n assertEquals(Double.NaN, evaluation1.meanAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation1.errorRate(), 0.01);\n assertEquals(Double.NaN, evaluation1.coverageOfTestCasesByPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation1.meanPriorAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation1.weightedFalsePositiveRate(), 0.01);\n assertEquals(1.0, evaluation1.kappa(), 0.01);\n assertEquals(Double.NaN, evaluation1.SFMeanPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation1.SFMeanEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation1.pctIncorrect(), 0.01);\n assertEquals(Double.NaN, evaluation1.SFMeanSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation1.avgCost(), 0.01);\n assertEquals(0.0, evaluation1.numInstances(), 0.01);\n assertEquals(0.0, evaluation1.SFSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation1.weightedRecall(), 0.01);\n assertEquals(Double.NaN, evaluation1.weightedPrecision(), 0.01);\n assertEquals(Double.NaN, evaluation1.weightedFalseNegativeRate(), 0.01);\n assertEquals(0.0, evaluation1.correct(), 0.01);\n assertEquals(Double.NaN, evaluation1.rootMeanPriorSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation1.unweightedMicroFmeasure(), 0.01);\n assertEquals(Double.NaN, evaluation1.weightedTruePositiveRate(), 0.01);\n assertEquals(0.0, evaluation1.unclassified(), 0.01);\n assertEquals(Double.NaN, evaluation1.rootRelativeSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation1.sizeOfPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation1.relativeAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation1.rootMeanSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation1.pctUnclassified(), 0.01);\n assertFalse(evaluation1.getDiscardPredictions());\n \n double double0 = evaluation0.KBMeanInformation();\n assertTrue(instances1.equals((Object)instances0));\n assertTrue(evaluation0.equals((Object)evaluation1));\n assertNotSame(instances1, instances0);\n assertNotSame(evaluation0, evaluation1);\n assertEquals(Double.NaN, double0, 0.01);\n assertFalse(textDirectoryLoader0.getDebug());\n assertEquals(\"Loads all text files in a directory and uses the subdirectory names as class labels. The content of the text files will be stored in a String attribute, the filename can be stored as well.\", textDirectoryLoader0.globalInfo());\n assertFalse(textDirectoryLoader0.getOutputFilename());\n assertEquals(\"Directories\", textDirectoryLoader0.getFileDescription());\n assertEquals(\"Whether to print additional debug information to the console.\", textDirectoryLoader0.debugTipText());\n assertEquals(\"The character set to use when reading text files (eg UTF-8) - leave blank to use the default character set.\", textDirectoryLoader0.charSetTipText());\n assertEquals(\"Whether to store the filename in an additional attribute.\", textDirectoryLoader0.outputFilenameTipText());\n assertEquals(\"\", textDirectoryLoader0.getCharSet());\n assertEquals(0, instances1.numClasses());\n assertEquals(1, instances1.classIndex());\n assertTrue(instances1.checkForStringAttributes());\n assertEquals(2, instances1.numAttributes());\n assertEquals(0.0, instances1.sumOfWeights(), 0.01);\n assertEquals(0, instances1.size());\n assertEquals(\"_home_ubuntu_evosuite_readability_gen_projects_107_weka\", instances1.relationName());\n assertEquals(0, instances1.numInstances());\n assertEquals(Double.NaN, evaluation0.weightedPrecision(), 0.01);\n assertEquals(0.0, evaluation0.numInstances(), 0.01);\n assertEquals(Double.NaN, evaluation0.avgCost(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedRecall(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanSchemeEntropy(), 0.01);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctUnclassified(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.relativeAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.sizeOfPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanPriorSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.unweightedMicroFmeasure(), 0.01);\n assertFalse(evaluation0.getDiscardPredictions());\n assertEquals(0.0, evaluation0.correct(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedTruePositiveRate(), 0.01);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootRelativeSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.coverageOfTestCasesByPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctCorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFMeasure(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedTrueNegativeRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFalseNegativeRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFalsePositiveRate(), 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctIncorrect(), 0.01);\n assertEquals(0.0, evaluation0.incorrect(), 0.01);\n assertEquals(1.0, evaluation0.kappa(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanPriorAbsoluteError(), 0.01);\n assertEquals(0.0, evaluation0.totalCost(), 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.errorRate(), 0.01);\n \n double double1 = evaluation0.relativeAbsoluteError();\n assertTrue(instances1.equals((Object)instances0));\n assertTrue(evaluation0.equals((Object)evaluation1));\n assertEquals(double1, double0, 0.01);\n assertNotSame(instances1, instances0);\n assertNotSame(evaluation0, evaluation1);\n assertEquals(Double.NaN, double1, 0.01);\n assertFalse(textDirectoryLoader0.getDebug());\n assertEquals(\"Loads all text files in a directory and uses the subdirectory names as class labels. The content of the text files will be stored in a String attribute, the filename can be stored as well.\", textDirectoryLoader0.globalInfo());\n assertFalse(textDirectoryLoader0.getOutputFilename());\n assertEquals(\"Directories\", textDirectoryLoader0.getFileDescription());\n assertEquals(\"Whether to print additional debug information to the console.\", textDirectoryLoader0.debugTipText());\n assertEquals(\"The character set to use when reading text files (eg UTF-8) - leave blank to use the default character set.\", textDirectoryLoader0.charSetTipText());\n assertEquals(\"Whether to store the filename in an additional attribute.\", textDirectoryLoader0.outputFilenameTipText());\n assertEquals(\"\", textDirectoryLoader0.getCharSet());\n assertEquals(0, instances1.numClasses());\n assertEquals(1, instances1.classIndex());\n assertTrue(instances1.checkForStringAttributes());\n assertEquals(2, instances1.numAttributes());\n assertEquals(0.0, instances1.sumOfWeights(), 0.01);\n assertEquals(0, instances1.size());\n assertEquals(\"_home_ubuntu_evosuite_readability_gen_projects_107_weka\", instances1.relationName());\n assertEquals(0, instances1.numInstances());\n assertEquals(Double.NaN, evaluation0.weightedPrecision(), 0.01);\n assertEquals(0.0, evaluation0.numInstances(), 0.01);\n assertEquals(Double.NaN, evaluation0.avgCost(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedRecall(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanSchemeEntropy(), 0.01);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctUnclassified(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.relativeAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.sizeOfPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanPriorSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.unweightedMicroFmeasure(), 0.01);\n assertFalse(evaluation0.getDiscardPredictions());\n assertEquals(0.0, evaluation0.correct(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedTruePositiveRate(), 0.01);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootRelativeSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.coverageOfTestCasesByPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctCorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFMeasure(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedTrueNegativeRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFalseNegativeRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFalsePositiveRate(), 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctIncorrect(), 0.01);\n assertEquals(0.0, evaluation0.incorrect(), 0.01);\n assertEquals(1.0, evaluation0.kappa(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanPriorAbsoluteError(), 0.01);\n assertEquals(0.0, evaluation0.totalCost(), 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.errorRate(), 0.01);\n }", "title": "" }, { "docid": "aaa3b9ad0cb92db2039141992b176f6e", "score": "0.5888181", "text": "@Test(timeout = 4000)\n public void test61() throws Throwable {\n DecisionStump decisionStump0 = new DecisionStump();\n assertNotNull(decisionStump0);\n assertEquals(\"Class for building and using a decision stump. Usually used in conjunction with a boosting algorithm. Does regression (based on mean-squared error) or classification (based on entropy). Missing is treated as a separate value.\", decisionStump0.globalInfo());\n assertFalse(decisionStump0.getDebug());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", decisionStump0.debugTipText());\n \n String string0 = decisionStump0.toString();\n assertEquals(\"Decision Stump: No model built yet.\", string0);\n assertNotNull(string0);\n assertEquals(\"Class for building and using a decision stump. Usually used in conjunction with a boosting algorithm. Does regression (based on mean-squared error) or classification (based on entropy). Missing is treated as a separate value.\", decisionStump0.globalInfo());\n assertFalse(decisionStump0.getDebug());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", decisionStump0.debugTipText());\n \n String[] stringArray0 = decisionStump0.getOptions();\n assertEquals(0, stringArray0.length);\n assertNotNull(stringArray0);\n assertEquals(\"Class for building and using a decision stump. Usually used in conjunction with a boosting algorithm. Does regression (based on mean-squared error) or classification (based on entropy). Missing is treated as a separate value.\", decisionStump0.globalInfo());\n assertFalse(decisionStump0.getDebug());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", decisionStump0.debugTipText());\n \n String[] stringArray1 = decisionStump0.getOptions();\n assertEquals(0, stringArray1.length);\n assertFalse(stringArray1.equals((Object)stringArray0));\n assertNotSame(stringArray1, stringArray0);\n assertNotNull(stringArray1);\n assertEquals(\"Class for building and using a decision stump. Usually used in conjunction with a boosting algorithm. Does regression (based on mean-squared error) or classification (based on entropy). Missing is treated as a separate value.\", decisionStump0.globalInfo());\n assertFalse(decisionStump0.getDebug());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", decisionStump0.debugTipText());\n \n boolean boolean0 = FileSystemHandling.shouldAllThrowIOExceptions();\n assertTrue(boolean0);\n \n MultiScheme multiScheme0 = new MultiScheme();\n assertNotNull(multiScheme0);\n assertEquals(0, multiScheme0.getNumFolds());\n assertFalse(multiScheme0.getDebug());\n assertEquals(\"Class for selecting a classifier from among several using cross validation on the training data or the performance on the training data. Performance is measured based on percent correct (classification) or mean-squared error (regression).\", multiScheme0.globalInfo());\n assertEquals(\"Whether debug information is output to console.\", multiScheme0.debugTipText());\n assertEquals(1, multiScheme0.getSeed());\n assertEquals(\"The number of folds used for cross-validation (if 0, performance on training data will be used).\", multiScheme0.numFoldsTipText());\n assertEquals(0, multiScheme0.getBestClassifierIndex());\n assertEquals(\"The seed used for randomizing the data for cross-validation.\", multiScheme0.seedTipText());\n assertEquals(\"The classifiers to be chosen from.\", multiScheme0.classifiersTipText());\n \n MockRandom mockRandom0 = new MockRandom();\n assertNotNull(mockRandom0);\n \n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n assertNotNull(textDirectoryLoader0);\n assertEquals(\"Whether to print additional debug information to the console.\", textDirectoryLoader0.debugTipText());\n assertEquals(\"Whether to store the filename in an additional attribute.\", textDirectoryLoader0.outputFilenameTipText());\n assertFalse(textDirectoryLoader0.getOutputFilename());\n assertEquals(\"The character set to use when reading text files (eg UTF-8) - leave blank to use the default character set.\", textDirectoryLoader0.charSetTipText());\n assertEquals(\"\", textDirectoryLoader0.getCharSet());\n assertEquals(\"Loads all text files in a directory and uses the subdirectory names as class labels. The content of the text files will be stored in a String attribute, the filename can be stored as well.\", textDirectoryLoader0.globalInfo());\n assertEquals(\"Directories\", textDirectoryLoader0.getFileDescription());\n assertFalse(textDirectoryLoader0.getDebug());\n \n Instances instances0 = textDirectoryLoader0.getStructure();\n assertNotNull(instances0);\n assertEquals(\"Whether to print additional debug information to the console.\", textDirectoryLoader0.debugTipText());\n assertEquals(\"Whether to store the filename in an additional attribute.\", textDirectoryLoader0.outputFilenameTipText());\n assertFalse(textDirectoryLoader0.getOutputFilename());\n assertEquals(\"The character set to use when reading text files (eg UTF-8) - leave blank to use the default character set.\", textDirectoryLoader0.charSetTipText());\n assertEquals(\"\", textDirectoryLoader0.getCharSet());\n assertEquals(\"Loads all text files in a directory and uses the subdirectory names as class labels. The content of the text files will be stored in a String attribute, the filename can be stored as well.\", textDirectoryLoader0.globalInfo());\n assertEquals(\"Directories\", textDirectoryLoader0.getFileDescription());\n assertFalse(textDirectoryLoader0.getDebug());\n assertEquals(\"_home_ubuntu_evosuite_readability_gen_projects_107_weka\", instances0.relationName());\n assertEquals(0, instances0.numClasses());\n assertEquals(1, instances0.classIndex());\n assertTrue(instances0.checkForStringAttributes());\n assertEquals(2, instances0.numAttributes());\n assertEquals(0, instances0.numInstances());\n assertEquals(0.0, instances0.sumOfWeights(), 0.01);\n assertEquals(0, instances0.size());\n \n SerializedClassifier serializedClassifier0 = new SerializedClassifier();\n assertNotNull(serializedClassifier0);\n assertEquals(\"If set to true, classifier may output additional info to the console.\", serializedClassifier0.debugTipText());\n assertEquals(\"The serialized classifier model to use for predictions.\", serializedClassifier0.modelFileTipText());\n assertEquals(\"A wrapper around a serialized classifier model. This classifier loads a serialized models and uses it to make predictions.\\n\\nWarning: since the serialized model doesn't get changed, cross-validation cannot bet used with this classifier.\", serializedClassifier0.globalInfo());\n assertFalse(serializedClassifier0.getDebug());\n \n Evaluation evaluation0 = new Evaluation(instances0);\n assertNotNull(evaluation0);\n assertEquals(\"Whether to print additional debug information to the console.\", textDirectoryLoader0.debugTipText());\n assertEquals(\"Whether to store the filename in an additional attribute.\", textDirectoryLoader0.outputFilenameTipText());\n assertFalse(textDirectoryLoader0.getOutputFilename());\n assertEquals(\"The character set to use when reading text files (eg UTF-8) - leave blank to use the default character set.\", textDirectoryLoader0.charSetTipText());\n assertEquals(\"\", textDirectoryLoader0.getCharSet());\n assertEquals(\"Loads all text files in a directory and uses the subdirectory names as class labels. The content of the text files will be stored in a String attribute, the filename can be stored as well.\", textDirectoryLoader0.globalInfo());\n assertEquals(\"Directories\", textDirectoryLoader0.getFileDescription());\n assertFalse(textDirectoryLoader0.getDebug());\n assertEquals(\"_home_ubuntu_evosuite_readability_gen_projects_107_weka\", instances0.relationName());\n assertEquals(0, instances0.numClasses());\n assertEquals(1, instances0.classIndex());\n assertTrue(instances0.checkForStringAttributes());\n assertEquals(2, instances0.numAttributes());\n assertEquals(0, instances0.numInstances());\n assertEquals(0.0, instances0.sumOfWeights(), 0.01);\n assertEquals(0, instances0.size());\n assertEquals(Double.NaN, evaluation0.coverageOfTestCasesByPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFMeasure(), 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctCorrect(), 0.01);\n assertEquals(0.0, evaluation0.correct(), 0.01);\n assertFalse(evaluation0.getDiscardPredictions());\n assertEquals(Double.NaN, evaluation0.rootMeanPriorSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedTrueNegativeRate(), 0.01);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootRelativeSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.unweightedMicroFmeasure(), 0.01);\n assertEquals(Double.NaN, evaluation0.sizeOfPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedTruePositiveRate(), 0.01);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n assertEquals(0.0, evaluation0.numInstances(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedRecall(), 0.01);\n assertEquals(0.0, evaluation0.incorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.avgCost(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctUnclassified(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFalsePositiveRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctIncorrect(), 0.01);\n assertEquals(1.0, evaluation0.kappa(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.relativeAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFalseNegativeRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanPriorAbsoluteError(), 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.errorRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedPrecision(), 0.01);\n assertEquals(0.0, evaluation0.totalCost(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanAbsoluteError(), 0.01);\n \n String string1 = evaluation0.toSummaryString(\"@data\", false);\n assertFalse(string1.equals((Object)string0));\n assertEquals(\"@data\\nTotal Number of Instances 0 \\n\", string1);\n assertNotNull(string1);\n assertEquals(\"Whether to print additional debug information to the console.\", textDirectoryLoader0.debugTipText());\n assertEquals(\"Whether to store the filename in an additional attribute.\", textDirectoryLoader0.outputFilenameTipText());\n assertFalse(textDirectoryLoader0.getOutputFilename());\n assertEquals(\"The character set to use when reading text files (eg UTF-8) - leave blank to use the default character set.\", textDirectoryLoader0.charSetTipText());\n assertEquals(\"\", textDirectoryLoader0.getCharSet());\n assertEquals(\"Loads all text files in a directory and uses the subdirectory names as class labels. The content of the text files will be stored in a String attribute, the filename can be stored as well.\", textDirectoryLoader0.globalInfo());\n assertEquals(\"Directories\", textDirectoryLoader0.getFileDescription());\n assertFalse(textDirectoryLoader0.getDebug());\n assertEquals(\"_home_ubuntu_evosuite_readability_gen_projects_107_weka\", instances0.relationName());\n assertEquals(0, instances0.numClasses());\n assertEquals(1, instances0.classIndex());\n assertTrue(instances0.checkForStringAttributes());\n assertEquals(2, instances0.numAttributes());\n assertEquals(0, instances0.numInstances());\n assertEquals(0.0, instances0.sumOfWeights(), 0.01);\n assertEquals(0, instances0.size());\n assertEquals(Double.NaN, evaluation0.coverageOfTestCasesByPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFMeasure(), 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctCorrect(), 0.01);\n assertEquals(0.0, evaluation0.correct(), 0.01);\n assertFalse(evaluation0.getDiscardPredictions());\n assertEquals(Double.NaN, evaluation0.rootMeanPriorSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedTrueNegativeRate(), 0.01);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootRelativeSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.unweightedMicroFmeasure(), 0.01);\n assertEquals(Double.NaN, evaluation0.sizeOfPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedTruePositiveRate(), 0.01);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n assertEquals(0.0, evaluation0.numInstances(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedRecall(), 0.01);\n assertEquals(0.0, evaluation0.incorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.avgCost(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctUnclassified(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFalsePositiveRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctIncorrect(), 0.01);\n assertEquals(1.0, evaluation0.kappa(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.relativeAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFalseNegativeRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanPriorAbsoluteError(), 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.errorRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedPrecision(), 0.01);\n assertEquals(0.0, evaluation0.totalCost(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanAbsoluteError(), 0.01);\n \n DenseInstance denseInstance0 = new DenseInstance(2505);\n assertEquals(6, AbstractInstance.s_numericAfterDecimalPoint);\n assertNotNull(denseInstance0);\n assertEquals(1.0, denseInstance0.weight(), 0.01);\n assertEquals(2505, denseInstance0.numValues());\n assertEquals(2505, denseInstance0.numAttributes());\n \n boolean boolean1 = instances0.add((Instance) denseInstance0);\n assertEquals(6, AbstractInstance.s_numericAfterDecimalPoint);\n assertTrue(boolean1 == boolean0);\n assertTrue(boolean1);\n assertEquals(\"Whether to print additional debug information to the console.\", textDirectoryLoader0.debugTipText());\n assertEquals(\"Whether to store the filename in an additional attribute.\", textDirectoryLoader0.outputFilenameTipText());\n assertFalse(textDirectoryLoader0.getOutputFilename());\n assertEquals(\"The character set to use when reading text files (eg UTF-8) - leave blank to use the default character set.\", textDirectoryLoader0.charSetTipText());\n assertEquals(\"\", textDirectoryLoader0.getCharSet());\n assertEquals(\"Loads all text files in a directory and uses the subdirectory names as class labels. The content of the text files will be stored in a String attribute, the filename can be stored as well.\", textDirectoryLoader0.globalInfo());\n assertEquals(\"Directories\", textDirectoryLoader0.getFileDescription());\n assertFalse(textDirectoryLoader0.getDebug());\n assertEquals(\"_home_ubuntu_evosuite_readability_gen_projects_107_weka\", instances0.relationName());\n assertEquals(0, instances0.numClasses());\n assertEquals(1, instances0.classIndex());\n assertTrue(instances0.checkForStringAttributes());\n assertEquals(1, instances0.numInstances());\n assertEquals(2, instances0.numAttributes());\n assertEquals(1, instances0.size());\n assertEquals(1.0, instances0.sumOfWeights(), 0.01);\n assertEquals(1.0, denseInstance0.weight(), 0.01);\n assertEquals(2505, denseInstance0.numValues());\n assertEquals(2505, denseInstance0.numAttributes());\n \n String string2 = evaluation0.toMatrixString(\" * Returns the revision string.\\n\");\n assertFalse(string2.equals((Object)string1));\n assertFalse(string2.equals((Object)string0));\n assertEquals(\" * Returns the revision string.\\n\\n <-- classified as\\n\", string2);\n assertNotNull(string2);\n assertEquals(\"Whether to print additional debug information to the console.\", textDirectoryLoader0.debugTipText());\n assertEquals(\"Whether to store the filename in an additional attribute.\", textDirectoryLoader0.outputFilenameTipText());\n assertFalse(textDirectoryLoader0.getOutputFilename());\n assertEquals(\"The character set to use when reading text files (eg UTF-8) - leave blank to use the default character set.\", textDirectoryLoader0.charSetTipText());\n assertEquals(\"\", textDirectoryLoader0.getCharSet());\n assertEquals(\"Loads all text files in a directory and uses the subdirectory names as class labels. The content of the text files will be stored in a String attribute, the filename can be stored as well.\", textDirectoryLoader0.globalInfo());\n assertEquals(\"Directories\", textDirectoryLoader0.getFileDescription());\n assertFalse(textDirectoryLoader0.getDebug());\n assertEquals(\"_home_ubuntu_evosuite_readability_gen_projects_107_weka\", instances0.relationName());\n assertEquals(0, instances0.numClasses());\n assertEquals(1, instances0.classIndex());\n assertTrue(instances0.checkForStringAttributes());\n assertEquals(1, instances0.numInstances());\n assertEquals(2, instances0.numAttributes());\n assertEquals(1, instances0.size());\n assertEquals(1.0, instances0.sumOfWeights(), 0.01);\n assertEquals(Double.NaN, evaluation0.coverageOfTestCasesByPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFMeasure(), 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctCorrect(), 0.01);\n assertEquals(0.0, evaluation0.correct(), 0.01);\n assertFalse(evaluation0.getDiscardPredictions());\n assertEquals(Double.NaN, evaluation0.rootMeanPriorSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedTrueNegativeRate(), 0.01);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootRelativeSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.unweightedMicroFmeasure(), 0.01);\n assertEquals(Double.NaN, evaluation0.sizeOfPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedTruePositiveRate(), 0.01);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n assertEquals(0.0, evaluation0.numInstances(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedRecall(), 0.01);\n assertEquals(0.0, evaluation0.incorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.avgCost(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctUnclassified(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFalsePositiveRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctIncorrect(), 0.01);\n assertEquals(1.0, evaluation0.kappa(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.relativeAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFalseNegativeRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanPriorAbsoluteError(), 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.errorRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedPrecision(), 0.01);\n assertEquals(0.0, evaluation0.totalCost(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanAbsoluteError(), 0.01);\n \n evaluation0.addNumericTrainClass(2505, 3913.341393969);\n assertEquals(\"Whether to print additional debug information to the console.\", textDirectoryLoader0.debugTipText());\n assertEquals(\"Whether to store the filename in an additional attribute.\", textDirectoryLoader0.outputFilenameTipText());\n assertFalse(textDirectoryLoader0.getOutputFilename());\n assertEquals(\"The character set to use when reading text files (eg UTF-8) - leave blank to use the default character set.\", textDirectoryLoader0.charSetTipText());\n assertEquals(\"\", textDirectoryLoader0.getCharSet());\n assertEquals(\"Loads all text files in a directory and uses the subdirectory names as class labels. The content of the text files will be stored in a String attribute, the filename can be stored as well.\", textDirectoryLoader0.globalInfo());\n assertEquals(\"Directories\", textDirectoryLoader0.getFileDescription());\n assertFalse(textDirectoryLoader0.getDebug());\n assertEquals(\"_home_ubuntu_evosuite_readability_gen_projects_107_weka\", instances0.relationName());\n assertEquals(0, instances0.numClasses());\n assertEquals(1, instances0.classIndex());\n assertTrue(instances0.checkForStringAttributes());\n assertEquals(1, instances0.numInstances());\n assertEquals(2, instances0.numAttributes());\n assertEquals(1, instances0.size());\n assertEquals(1.0, instances0.sumOfWeights(), 0.01);\n assertEquals(Double.NaN, evaluation0.coverageOfTestCasesByPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFMeasure(), 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctCorrect(), 0.01);\n assertEquals(0.0, evaluation0.correct(), 0.01);\n assertFalse(evaluation0.getDiscardPredictions());\n assertEquals(Double.NaN, evaluation0.rootMeanPriorSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedTrueNegativeRate(), 0.01);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootRelativeSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.unweightedMicroFmeasure(), 0.01);\n assertEquals(Double.NaN, evaluation0.sizeOfPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedTruePositiveRate(), 0.01);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n assertEquals(0.0, evaluation0.numInstances(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedRecall(), 0.01);\n assertEquals(0.0, evaluation0.incorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.avgCost(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctUnclassified(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFalsePositiveRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctIncorrect(), 0.01);\n assertEquals(1.0, evaluation0.kappa(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.relativeAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFalseNegativeRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanPriorAbsoluteError(), 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.errorRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedPrecision(), 0.01);\n assertEquals(0.0, evaluation0.totalCost(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanAbsoluteError(), 0.01);\n \n double double0 = evaluation0.SFMeanEntropyGain();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(\"Whether to print additional debug information to the console.\", textDirectoryLoader0.debugTipText());\n assertEquals(\"Whether to store the filename in an additional attribute.\", textDirectoryLoader0.outputFilenameTipText());\n assertFalse(textDirectoryLoader0.getOutputFilename());\n assertEquals(\"The character set to use when reading text files (eg UTF-8) - leave blank to use the default character set.\", textDirectoryLoader0.charSetTipText());\n assertEquals(\"\", textDirectoryLoader0.getCharSet());\n assertEquals(\"Loads all text files in a directory and uses the subdirectory names as class labels. The content of the text files will be stored in a String attribute, the filename can be stored as well.\", textDirectoryLoader0.globalInfo());\n assertEquals(\"Directories\", textDirectoryLoader0.getFileDescription());\n assertFalse(textDirectoryLoader0.getDebug());\n assertEquals(\"_home_ubuntu_evosuite_readability_gen_projects_107_weka\", instances0.relationName());\n assertEquals(0, instances0.numClasses());\n assertEquals(1, instances0.classIndex());\n assertTrue(instances0.checkForStringAttributes());\n assertEquals(1, instances0.numInstances());\n assertEquals(2, instances0.numAttributes());\n assertEquals(1, instances0.size());\n assertEquals(1.0, instances0.sumOfWeights(), 0.01);\n assertEquals(Double.NaN, evaluation0.coverageOfTestCasesByPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFMeasure(), 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctCorrect(), 0.01);\n assertEquals(0.0, evaluation0.correct(), 0.01);\n assertFalse(evaluation0.getDiscardPredictions());\n assertEquals(Double.NaN, evaluation0.rootMeanPriorSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedTrueNegativeRate(), 0.01);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootRelativeSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.unweightedMicroFmeasure(), 0.01);\n assertEquals(Double.NaN, evaluation0.sizeOfPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedTruePositiveRate(), 0.01);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n assertEquals(0.0, evaluation0.numInstances(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedRecall(), 0.01);\n assertEquals(0.0, evaluation0.incorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.avgCost(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctUnclassified(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFalsePositiveRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctIncorrect(), 0.01);\n assertEquals(1.0, evaluation0.kappa(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.relativeAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFalseNegativeRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanPriorAbsoluteError(), 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.errorRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedPrecision(), 0.01);\n assertEquals(0.0, evaluation0.totalCost(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanAbsoluteError(), 0.01);\n }", "title": "" }, { "docid": "fae214b5fe602865d82fa75a83bf8850", "score": "0.5887206", "text": "@Test(timeout = 4000)\n public void test46() throws Throwable {\n ResultMatrixLatex resultMatrixLatex0 = new ResultMatrixLatex(0, 0);\n resultMatrixLatex0.toStringKey();\n resultMatrixLatex0.m_PrintRowNames = true;\n resultMatrixLatex0.getStdDev(0, 0);\n resultMatrixLatex0.getStdDev(1543, (-1418));\n ResultMatrixGnuPlot resultMatrixGnuPlot0 = new ResultMatrixGnuPlot(resultMatrixLatex0);\n resultMatrixGnuPlot0.getDefaultEnumerateColNames();\n int int0 = ResultMatrix.SIGNIFICANCE_TIE;\n assertEquals(0, int0);\n }", "title": "" }, { "docid": "c15cbd8f0839b7d6c182f2b87f5c4e79", "score": "0.5884565", "text": "public void test()\r\n\t{\r\n\t\tFileReader input;\r\n\t\tint cnt = 0,temp = 0;\r\n\t\tString tempTable[] = null;\r\n\t\tdouble[] tempList = null;\r\n\t\tBufferedReader br = null;\r\n\t\tMap<Integer,Integer> actual = new HashMap<Integer,Integer>();\r\n\t\tMap<Integer,Integer> out = new HashMap<Integer, Integer>();\r\n\t\tdouble true_positive = 0, false_positive = 0, accuracy = 0;\r\n\t\ttry\r\n\t\t{\r\n\t\t\tinput = new FileReader(config.getPredictDataFile());\r\n\t\t\tbr = new BufferedReader(input);\r\n\t\t\tString line = \"\";\r\n\t\t\tcnt = 0;\t\t\t\r\n\t\t\twhile( (line = br.readLine()) != null)\r\n\t\t\t{\r\n\t\t\t\ttempTable = line.split(Controller.getConfig().getDelimiter());\r\n\t\t\t\tint tableLength = tempTable.length;\r\n\t\t\t\ttempList = new double[tableLength];\r\n\t\t\t\tout.put(cnt, Character.getNumericValue((tempTable[tableLength-1].charAt(0))));\r\n\t\t\t\tcnt++;\r\n\t\t\t}\r\n\t\t\tinput.close();\r\n\t\t\tbr.close();\r\n\t\t\t\r\n\t\t\tinput = new FileReader(config.getPredictDataFile());\r\n\t\t\tbr = new BufferedReader(input);\r\n\t\t\tline = \"\";\r\n\t\t\t\r\n\t\t\tcnt = 0;\r\n\t\t\twhile( (line = br.readLine()) != null )\r\n\t\t\t{\r\n\t\t\t\ttempTable = line.split(Controller.getConfig().getDelimiter());\r\n\t\t\t\tint tableLength = tempTable.length;\r\n\t\t\t\ttemp = 0;\r\n\t\t\t\ttempList = new double[tableLength-2];\r\n\t\t\t\tfor(int i=1; i < tableLength-1 ; i++)\r\n\t\t\t\t{\r\n\t\t\t\t\ttempList[temp++] = Double.valueOf(tempTable[i]);\r\n\t\t\t\t}\r\n\t\t\t\tRankList rankList = somModel.predictState(tempList);\r\n\t\t\t\tactual.put(cnt, 0);\r\n\t\t\t\tif(rankList.getState() == 1)\r\n\t\t\t\t{\r\n\t\t\t\t\t\r\n\t\t\t\t\tfor(int start = cnt + 1; (start < out.size()) && (start < cnt + Controller.getConfig().getLookAheadSize()) ; start++)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif(out.get(start) == 2)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tlogger.info(\"Abnormal state predicted\");\r\n\t\t\t\t\t\t\tString tempStr = \"Rank List :\\t\";\r\n\t\t\t\t\t\t\tactual.put(cnt, 2);\r\n\t\t\t\t\t\t\tIterator<Integer> it = rankList.getRankList().iterator();\r\n\t\t\t\t\t\t\twhile(it.hasNext())\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\ttempStr += it.next() + \"\\t\";\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tlogger.info(tempStr);\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tcnt++; \r\n\t\t\t}\r\n\t\t\tinput.close();\r\n\t\t\tbr.close();\r\n\t\t\t\r\n\t\t\tdouble tp = 0, tn = 0, fp = 0, fn = 0;\r\n\t\t\t\r\n\t\t\tfor(int i = 0; i < actual.size() ; i++)\r\n\t\t\t{\r\n\t\t\t\tif(actual.get(i)== 0 && out.get(i) == 0)\r\n\t\t\t\t{\r\n\t\t\t\t\ttn++;\r\n\t\t\t\t}\r\n\t\t\t\telse if(out.get(i) == 0 && actual.get(i) == 2)\r\n\t\t\t\t{\r\n\t\t\t\t\tfp++;\r\n\t\t\t\t}\r\n\t\t\t\telse if(out.get(i) == 2 && actual.get(i) == 0 )\r\n\t\t\t\t{\r\n\t\t\t\t\tfn++;\r\n\t\t\t\t}\r\n\t\t\t\telse if(out.get(i) == 2 && actual.get(i) == 2)\r\n\t\t\t\t{\r\n\t\t\t\t\ttp++;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\ttrue_positive = tp / (tp + fn);\r\n\t\t\tfalse_positive = fp / (fp + tn);\r\n\t\t\taccuracy = (tp + tn) / (tp + tn + fp + fn);\r\n\t\t\tlogger.info(\"True positive : \" + true_positive);\r\n\t\t\tlogger.info(\"Accuracy : \" + accuracy);\r\n\t\t\tlogger.info(\"False positive :\" + false_positive);\r\n\t\t}\r\n\t\tcatch(Exception e)\r\n\t\t{\r\n\t\t\tlogger.error(e.getMessage());\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "e5d0410fc9f32a5a09a8846abd31132f", "score": "0.5883136", "text": "@Test(timeout = 4000)\n public void test15() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Instances instances1 = new Instances(instances0);\n Evaluation evaluation0 = new Evaluation(instances1, (CostMatrix) null);\n evaluation0.weightedFalseNegativeRate();\n double double0 = evaluation0.rootMeanSquaredError();\n assertEquals(Double.NaN, double0, 0.01);\n \n instances1.enumerateAttributes();\n evaluation0.addNumericTrainClass(Double.NaN, 3913.341393969);\n evaluation0.getClassPriors();\n NaiveBayesUpdateable naiveBayesUpdateable0 = new NaiveBayesUpdateable();\n double double1 = evaluation0.incorrect();\n assertNotEquals(double1, double0, 0.01);\n }", "title": "" }, { "docid": "cef62e443c8104015548bab16105339c", "score": "0.58777654", "text": "public static void main(String args[]){\n experiment(0.25,false); //25%\n //experiment(0.5,false); //50%\n //experiment(0.75,false); //75%\n //experiment(0,true); //Random\n }", "title": "" }, { "docid": "9f532a909892d378163130e2cb5182e8", "score": "0.5875659", "text": "@Test(timeout = 4000)\n public void test13() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0, (CostMatrix) null);\n evaluation0.weightedFalseNegativeRate();\n evaluation0.rootMeanSquaredError();\n evaluation0.addNumericTrainClass(56.0, Double.NaN);\n double double0 = (-2076.99769);\n // Undeclared exception!\n try { \n evaluation0.makeDistribution((-2076.99769));\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // -2076\n //\n verifyException(\"weka.classifiers.Evaluation\", e);\n }\n }", "title": "" }, { "docid": "4f9204a03c115b0568ce2838336c94b5", "score": "0.58662724", "text": "@Test\n public void intelligencePriceFactorTest() {\n // TODO: test intelligencePriceFactor\n }", "title": "" }, { "docid": "623aa6a379d2cdc8ddeb61cca46a3e40", "score": "0.5862163", "text": "@Test(timeout = 4000)\n public void test54() throws Throwable {\n ResultMatrixHTML resultMatrixHTML0 = new ResultMatrixHTML();\n resultMatrixHTML0.colNameWidthTipText();\n resultMatrixHTML0.meanWidthTipText();\n ResultMatrixSignificance resultMatrixSignificance0 = new ResultMatrixSignificance(0, 1);\n resultMatrixSignificance0.getDefaultShowStdDev();\n int[][] intArray0 = new int[8][3];\n int[] intArray1 = new int[8];\n intArray1[0] = 1;\n intArray1[1] = 26;\n intArray1[2] = 1;\n intArray1[3] = 0;\n intArray1[4] = 1;\n intArray1[5] = 0;\n intArray1[6] = 1;\n intArray1[7] = 0;\n intArray0[0] = intArray1;\n int[] intArray2 = new int[3];\n intArray2[0] = 26;\n intArray2[1] = 1;\n intArray2[2] = (-1511);\n intArray0[1] = intArray1;\n int[] intArray3 = new int[0];\n intArray0[2] = intArray3;\n int[] intArray4 = new int[1];\n intArray4[0] = 26;\n intArray0[3] = intArray4;\n int[] intArray5 = new int[2];\n intArray5[0] = 0;\n intArray5[1] = 26;\n intArray0[4] = intArray5;\n int[] intArray6 = new int[6];\n intArray6[0] = 1;\n intArray6[1] = 2;\n intArray6[2] = 1;\n intArray6[3] = 1;\n intArray6[4] = 0;\n intArray6[5] = 2;\n intArray0[5] = intArray6;\n int[] intArray7 = new int[3];\n intArray7[0] = 0;\n intArray7[1] = 10;\n intArray7[2] = 0;\n intArray0[6] = intArray7;\n int[] intArray8 = new int[6];\n intArray8[0] = 0;\n intArray8[1] = 0;\n intArray8[2] = 1;\n intArray8[3] = 0;\n intArray8[4] = 2;\n intArray8[5] = 2;\n intArray0[7] = intArray8;\n resultMatrixSignificance0.setRanking(intArray0);\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n }", "title": "" }, { "docid": "12ad6c4c156353b68e1d2607a310fb23", "score": "0.58621097", "text": "@Test(timeout = 4000)\n public void test52() throws Throwable {\n DecisionStump decisionStump0 = new DecisionStump();\n assertNotNull(decisionStump0);\n assertEquals(\"Class for building and using a decision stump. Usually used in conjunction with a boosting algorithm. Does regression (based on mean-squared error) or classification (based on entropy). Missing is treated as a separate value.\", decisionStump0.globalInfo());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", decisionStump0.debugTipText());\n assertFalse(decisionStump0.getDebug());\n \n String string0 = decisionStump0.toString();\n assertEquals(\"Decision Stump: No model built yet.\", string0);\n assertNotNull(string0);\n assertEquals(\"Class for building and using a decision stump. Usually used in conjunction with a boosting algorithm. Does regression (based on mean-squared error) or classification (based on entropy). Missing is treated as a separate value.\", decisionStump0.globalInfo());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", decisionStump0.debugTipText());\n assertFalse(decisionStump0.getDebug());\n \n boolean boolean0 = FileSystemHandling.setPermissions((EvoSuiteFile) null, true, true, true);\n assertFalse(boolean0);\n \n String[] stringArray0 = decisionStump0.getOptions();\n assertEquals(0, stringArray0.length);\n assertNotNull(stringArray0);\n assertEquals(\"Class for building and using a decision stump. Usually used in conjunction with a boosting algorithm. Does regression (based on mean-squared error) or classification (based on entropy). Missing is treated as a separate value.\", decisionStump0.globalInfo());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", decisionStump0.debugTipText());\n assertFalse(decisionStump0.getDebug());\n \n String[] stringArray1 = decisionStump0.getOptions();\n assertEquals(0, stringArray1.length);\n assertFalse(stringArray1.equals((Object)stringArray0));\n assertNotSame(stringArray1, stringArray0);\n assertNotNull(stringArray1);\n assertEquals(\"Class for building and using a decision stump. Usually used in conjunction with a boosting algorithm. Does regression (based on mean-squared error) or classification (based on entropy). Missing is treated as a separate value.\", decisionStump0.globalInfo());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", decisionStump0.debugTipText());\n assertFalse(decisionStump0.getDebug());\n \n boolean boolean1 = FileSystemHandling.shouldAllThrowIOExceptions();\n assertFalse(boolean1 == boolean0);\n assertTrue(boolean1);\n \n MultiScheme multiScheme0 = new MultiScheme();\n assertNotNull(multiScheme0);\n assertEquals(\"The classifiers to be chosen from.\", multiScheme0.classifiersTipText());\n assertEquals(0, multiScheme0.getNumFolds());\n assertEquals(0, multiScheme0.getBestClassifierIndex());\n assertEquals(\"The seed used for randomizing the data for cross-validation.\", multiScheme0.seedTipText());\n assertFalse(multiScheme0.getDebug());\n assertEquals(1, multiScheme0.getSeed());\n assertEquals(\"The number of folds used for cross-validation (if 0, performance on training data will be used).\", multiScheme0.numFoldsTipText());\n assertEquals(\"Class for selecting a classifier from among several using cross validation on the training data or the performance on the training data. Performance is measured based on percent correct (classification) or mean-squared error (regression).\", multiScheme0.globalInfo());\n assertEquals(\"Whether debug information is output to console.\", multiScheme0.debugTipText());\n \n String string1 = Evaluation.makeOptionString(decisionStump0, false);\n assertFalse(string1.equals((Object)string0));\n assertNotNull(string1);\n assertEquals(\"Class for building and using a decision stump. Usually used in conjunction with a boosting algorithm. Does regression (based on mean-squared error) or classification (based on entropy). Missing is treated as a separate value.\", decisionStump0.globalInfo());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", decisionStump0.debugTipText());\n assertFalse(decisionStump0.getDebug());\n \n LibSVMLoader libSVMLoader0 = new LibSVMLoader();\n assertNotNull(libSVMLoader0);\n assertFalse(libSVMLoader0.getUseRelativePath());\n assertEquals(\"Use relative rather than absolute paths\", libSVMLoader0.useRelativePathTipText());\n assertEquals(\"http://\", libSVMLoader0.retrieveURL());\n assertEquals(\"libsvm data files\", libSVMLoader0.getFileDescription());\n assertEquals(\".libsvm\", libSVMLoader0.getFileExtension());\n assertEquals(\"Reads a source that is in libsvm format.\\n\\nFor more information about libsvm see:\\n\\nhttp://www.csie.ntu.edu.tw/~cjlin/libsvm/\", libSVMLoader0.globalInfo());\n \n TestInstances testInstances0 = new TestInstances();\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertNotNull(testInstances0);\n assertEquals(2, testInstances0.getNumNominalValues());\n assertFalse(testInstances0.getNoClass());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(1, testInstances0.getClassType());\n assertEquals(0, testInstances0.getNumRelationalDate());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(20, testInstances0.getNumInstances());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertEquals(0, testInstances0.getNumDate());\n assertEquals(2, testInstances0.getNumAttributes());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(0, testInstances0.getNumRelationalNumeric());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(0, testInstances0.getNumNumeric());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n \n Instances instances0 = testInstances0.generate(\"Decision Stump: No model built yet.\");\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertNotNull(instances0);\n assertEquals(2, testInstances0.getNumNominalValues());\n assertFalse(testInstances0.getNoClass());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(1, testInstances0.getClassType());\n assertEquals(0, testInstances0.getNumRelationalDate());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(20, testInstances0.getNumInstances());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertEquals(0, testInstances0.getNumDate());\n assertEquals(2, testInstances0.getNumAttributes());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(0, testInstances0.getNumRelationalNumeric());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(0, testInstances0.getNumNumeric());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(\"Testdata\", instances0.relationName());\n assertEquals(2, instances0.numAttributes());\n assertEquals(20, instances0.numInstances());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertEquals(20, instances0.size());\n assertEquals(2, instances0.numClasses());\n assertFalse(instances0.checkForStringAttributes());\n assertEquals(1, instances0.classIndex());\n \n Evaluation evaluation0 = new Evaluation(instances0);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertNotNull(evaluation0);\n assertEquals(2, testInstances0.getNumNominalValues());\n assertFalse(testInstances0.getNoClass());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(1, testInstances0.getClassType());\n assertEquals(0, testInstances0.getNumRelationalDate());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(20, testInstances0.getNumInstances());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertEquals(0, testInstances0.getNumDate());\n assertEquals(2, testInstances0.getNumAttributes());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(0, testInstances0.getNumRelationalNumeric());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(0, testInstances0.getNumNumeric());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(\"Testdata\", instances0.relationName());\n assertEquals(2, instances0.numAttributes());\n assertEquals(20, instances0.numInstances());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertEquals(20, instances0.size());\n assertEquals(2, instances0.numClasses());\n assertFalse(instances0.checkForStringAttributes());\n assertEquals(1, instances0.classIndex());\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedPrecision(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.avgCost(), 0.01);\n assertEquals(0.0, evaluation0.numInstances(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedRecall(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedTruePositiveRate(), 0.01);\n assertEquals(1.0, evaluation0.kappa(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedTrueNegativeRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.errorRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctIncorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanPriorAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFalsePositiveRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.coverageOfTestCasesByPredictedRegions(), 0.01);\n assertEquals(0.0, evaluation0.incorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctCorrect(), 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFMeasure(), 0.01);\n assertEquals(0.0, evaluation0.totalCost(), 0.01);\n assertEquals(Double.NaN, evaluation0.unweightedMicroFmeasure(), 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertFalse(evaluation0.getDiscardPredictions());\n assertEquals(Double.NaN, evaluation0.rootRelativeSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.sizeOfPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanPriorSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFalseNegativeRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.relativeAbsoluteError(), 0.01);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctUnclassified(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanSquaredError(), 0.01);\n assertEquals(0.0, evaluation0.correct(), 0.01);\n \n evaluation0.m_NumFolds = (-2);\n assertEquals(2, testInstances0.getNumNominalValues());\n assertFalse(testInstances0.getNoClass());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(1, testInstances0.getClassType());\n assertEquals(0, testInstances0.getNumRelationalDate());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(20, testInstances0.getNumInstances());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertEquals(0, testInstances0.getNumDate());\n assertEquals(2, testInstances0.getNumAttributes());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(0, testInstances0.getNumRelationalNumeric());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(0, testInstances0.getNumNumeric());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(\"Testdata\", instances0.relationName());\n assertEquals(2, instances0.numAttributes());\n assertEquals(20, instances0.numInstances());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertEquals(20, instances0.size());\n assertEquals(2, instances0.numClasses());\n assertFalse(instances0.checkForStringAttributes());\n assertEquals(1, instances0.classIndex());\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedPrecision(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.avgCost(), 0.01);\n assertEquals(0.0, evaluation0.numInstances(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedRecall(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedTruePositiveRate(), 0.01);\n assertEquals(1.0, evaluation0.kappa(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedTrueNegativeRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.errorRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctIncorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanPriorAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFalsePositiveRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.coverageOfTestCasesByPredictedRegions(), 0.01);\n assertEquals(0.0, evaluation0.incorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctCorrect(), 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFMeasure(), 0.01);\n assertEquals(0.0, evaluation0.totalCost(), 0.01);\n assertEquals(Double.NaN, evaluation0.unweightedMicroFmeasure(), 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertFalse(evaluation0.getDiscardPredictions());\n assertEquals(Double.NaN, evaluation0.rootRelativeSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.sizeOfPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanPriorSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFalseNegativeRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.relativeAbsoluteError(), 0.01);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctUnclassified(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanSquaredError(), 0.01);\n assertEquals(0.0, evaluation0.correct(), 0.01);\n \n Evaluation evaluation1 = new Evaluation(instances0);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertTrue(evaluation1.equals((Object)evaluation0));\n assertNotNull(evaluation1);\n assertEquals(2, testInstances0.getNumNominalValues());\n assertFalse(testInstances0.getNoClass());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(1, testInstances0.getClassType());\n assertEquals(0, testInstances0.getNumRelationalDate());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(20, testInstances0.getNumInstances());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertEquals(0, testInstances0.getNumDate());\n assertEquals(2, testInstances0.getNumAttributes());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(0, testInstances0.getNumRelationalNumeric());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(0, testInstances0.getNumNumeric());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(\"Testdata\", instances0.relationName());\n assertEquals(2, instances0.numAttributes());\n assertEquals(20, instances0.numInstances());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertEquals(20, instances0.size());\n assertEquals(2, instances0.numClasses());\n assertFalse(instances0.checkForStringAttributes());\n assertEquals(1, instances0.classIndex());\n assertEquals(Double.NaN, evaluation1.unweightedMicroFmeasure(), 0.01);\n assertEquals(0.0, evaluation1.SFEntropyGain(), 0.01);\n assertFalse(evaluation1.getDiscardPredictions());\n assertEquals(0.0, evaluation1.correct(), 0.01);\n assertEquals(Double.NaN, evaluation1.SFMeanEntropyGain(), 0.01);\n assertEquals(0.0, evaluation1.SFPriorEntropy(), 0.01);\n assertEquals(0.0, evaluation1.unclassified(), 0.01);\n assertEquals(Double.NaN, evaluation1.rootRelativeSquaredError(), 0.01);\n assertEquals(0.0, evaluation1.numInstances(), 0.01);\n assertEquals(Double.NaN, evaluation1.SFMeanPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation1.pctCorrect(), 0.01);\n assertEquals(Double.NaN, evaluation1.coverageOfTestCasesByPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation1.weightedFMeasure(), 0.01);\n assertEquals(0.0, evaluation1.SFSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation1.weightedTrueNegativeRate(), 0.01);\n assertEquals(Double.NaN, evaluation1.avgCost(), 0.01);\n assertEquals(Double.NaN, evaluation1.weightedTruePositiveRate(), 0.01);\n assertEquals(Double.NaN, evaluation1.errorRate(), 0.01);\n assertEquals(Double.NaN, evaluation1.weightedFalsePositiveRate(), 0.01);\n assertEquals(Double.NaN, evaluation1.meanAbsoluteError(), 0.01);\n assertEquals(0.0, evaluation1.incorrect(), 0.01);\n assertEquals(Double.NaN, evaluation1.pctIncorrect(), 0.01);\n assertEquals(1.0, evaluation1.kappa(), 0.01);\n assertEquals(Double.NaN, evaluation1.meanPriorAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation1.SFMeanSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation1.sizeOfPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation1.weightedPrecision(), 0.01);\n assertEquals(Double.NaN, evaluation1.pctUnclassified(), 0.01);\n assertEquals(Double.NaN, evaluation1.weightedRecall(), 0.01);\n assertEquals(0.0, evaluation1.totalCost(), 0.01);\n assertEquals(Double.NaN, evaluation1.weightedFalseNegativeRate(), 0.01);\n assertEquals(Double.NaN, evaluation1.rootMeanPriorSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation1.rootMeanSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation1.relativeAbsoluteError(), 0.01);\n \n double double0 = evaluation0.rootRelativeSquaredError();\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertTrue(evaluation0.equals((Object)evaluation1));\n assertNotSame(evaluation0, evaluation1);\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(2, testInstances0.getNumNominalValues());\n assertFalse(testInstances0.getNoClass());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(1, testInstances0.getClassType());\n assertEquals(0, testInstances0.getNumRelationalDate());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(20, testInstances0.getNumInstances());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertEquals(0, testInstances0.getNumDate());\n assertEquals(2, testInstances0.getNumAttributes());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(0, testInstances0.getNumRelationalNumeric());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(0, testInstances0.getNumNumeric());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(\"Testdata\", instances0.relationName());\n assertEquals(2, instances0.numAttributes());\n assertEquals(20, instances0.numInstances());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertEquals(20, instances0.size());\n assertEquals(2, instances0.numClasses());\n assertFalse(instances0.checkForStringAttributes());\n assertEquals(1, instances0.classIndex());\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedPrecision(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.avgCost(), 0.01);\n assertEquals(0.0, evaluation0.numInstances(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedRecall(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedTruePositiveRate(), 0.01);\n assertEquals(1.0, evaluation0.kappa(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedTrueNegativeRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.errorRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctIncorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanPriorAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFalsePositiveRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.coverageOfTestCasesByPredictedRegions(), 0.01);\n assertEquals(0.0, evaluation0.incorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctCorrect(), 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFMeasure(), 0.01);\n assertEquals(0.0, evaluation0.totalCost(), 0.01);\n assertEquals(Double.NaN, evaluation0.unweightedMicroFmeasure(), 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertFalse(evaluation0.getDiscardPredictions());\n assertEquals(Double.NaN, evaluation0.rootRelativeSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.sizeOfPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanPriorSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFalseNegativeRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.relativeAbsoluteError(), 0.01);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctUnclassified(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanSquaredError(), 0.01);\n assertEquals(0.0, evaluation0.correct(), 0.01);\n \n double[] doubleArray0 = new double[4];\n doubleArray0[0] = (double) (-1);\n doubleArray0[1] = (double) (-2);\n doubleArray0[2] = (double) (-1);\n doubleArray0[3] = (double) (-2);\n try { \n evaluation0.evaluationForSingleInstance(doubleArray0, (Instance) null, false);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"weka.classifiers.Evaluation\", e);\n }\n }", "title": "" }, { "docid": "96a4a8740d0103a9c76f1333e83f08d2", "score": "0.58575445", "text": "@Test\n public void testMath718() {\n\n for (int trials = 500000; trials < 20000000; trials += 100000) {\n BinomialDistribution dist = new BinomialDistribution(trials, 0.5);\n int p = dist.inverseCumulativeProbability(0.5);\n Assert.assertEquals(trials / 2, p);\n }\n }", "title": "" }, { "docid": "be69b0951a2b8e415ea7fbbcb764e903", "score": "0.585546", "text": "@Test(timeout = 4000)\n public void test15() throws Throwable {\n Discretize discretize0 = new Discretize(\"Set attribute selection mode. If false, only selected (numeric) attributes in the range will be discretized; if true, only non-selected attributes will be discretized.\");\n discretize0.m_MakeBinary = true;\n discretize0.getCutPoints(114);\n discretize0.getCapabilities();\n // Undeclared exception!\n try { \n discretize0.calculateCutPointsByEqualWidthBinning(114);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"weka.filters.unsupervised.attribute.Discretize\", e);\n }\n }", "title": "" }, { "docid": "e8d448348d010d1ecfa9d0c403eafe2c", "score": "0.58524936", "text": "@Test(timeout = 4000)\n public void test38() throws Throwable {\n Discretize discretize0 = new Discretize();\n discretize0.m_NumBins = (-1112);\n Attribute attribute0 = new Attribute((String) null, (List<String>) null);\n ArrayList<Attribute> arrayList0 = new ArrayList<Attribute>();\n arrayList0.add(attribute0);\n Instances instances0 = new Instances(\"date\", arrayList0, 1);\n discretize0.setInputFormat(instances0);\n // Undeclared exception!\n try { \n discretize0.calculateCutPointsByEqualWidthBinning(1);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"weka.filters.unsupervised.attribute.Discretize\", e);\n }\n }", "title": "" }, { "docid": "7ad0547d5d53c2b56806fb26a09d31b3", "score": "0.58519757", "text": "@Test(timeout = 4000)\n public void test81() throws Throwable {\n ResultMatrixSignificance resultMatrixSignificance0 = new ResultMatrixSignificance();\n ResultMatrixPlainText resultMatrixPlainText0 = new ResultMatrixPlainText();\n ResultMatrixLatex resultMatrixLatex0 = new ResultMatrixLatex();\n ResultMatrixLatex resultMatrixLatex1 = new ResultMatrixLatex();\n resultMatrixLatex0.clearSummary();\n ResultMatrixLatex resultMatrixLatex2 = new ResultMatrixLatex(0, 1);\n double[][] doubleArray0 = new double[9][9];\n double[] doubleArray1 = new double[5];\n doubleArray1[0] = (double) 0;\n doubleArray1[1] = (double) 0;\n doubleArray1[2] = 2683.0;\n resultMatrixLatex2.m_MeanPrec = 2;\n doubleArray1[3] = (double) 0;\n doubleArray1[4] = 0.0;\n doubleArray0[0] = doubleArray1;\n double[] doubleArray2 = new double[9];\n doubleArray2[0] = (double) 1;\n doubleArray2[1] = (double) 0;\n doubleArray2[2] = (double) 2;\n doubleArray1[2] = (double) 2;\n doubleArray2[4] = (double) 1;\n doubleArray2[5] = (double) 1;\n doubleArray2[6] = (double) 0;\n doubleArray2[8] = (double) 1;\n ResultMatrixLatex resultMatrixLatex3 = new ResultMatrixLatex(2, 2);\n resultMatrixLatex2.isAverage(0);\n resultMatrixLatex3.clear();\n int int0 = ResultMatrix.SIGNIFICANCE_TIE;\n resultMatrixLatex0.setStdDev(0, (-2181), 0.0);\n }", "title": "" }, { "docid": "a132e0a1a0edc8e11c393df5070e535d", "score": "0.5847593", "text": "@Test(timeout = 4000)\n public void test52() throws Throwable {\n ResultMatrixSignificance resultMatrixSignificance0 = new ResultMatrixSignificance();\n resultMatrixSignificance0.m_StdDevPrec = 0;\n resultMatrixSignificance0.m_ShowStdDev = true;\n resultMatrixSignificance0.m_EnumerateRowNames = true;\n ResultMatrixGnuPlot resultMatrixGnuPlot0 = new ResultMatrixGnuPlot(resultMatrixSignificance0);\n resultMatrixGnuPlot0.assign(resultMatrixSignificance0);\n Vector<String> vector0 = new Vector<String>();\n vector0.add(\"\");\n resultMatrixGnuPlot0.m_EnumerateRowNames = true;\n ResultMatrixCSV resultMatrixCSV0 = new ResultMatrixCSV(resultMatrixGnuPlot0);\n resultMatrixCSV0.getCount(2);\n ResultMatrixHTML resultMatrixHTML0 = new ResultMatrixHTML();\n resultMatrixHTML0.getDefaultPrintColNames();\n ResultMatrixHTML resultMatrixHTML1 = new ResultMatrixHTML(125, 0);\n resultMatrixHTML1.listOptions();\n resultMatrixHTML1.getDisplayRow((-3634));\n resultMatrixCSV0.trimString(\"\", 2);\n resultMatrixHTML0.toStringSummary();\n }", "title": "" }, { "docid": "9b747a528b5c51d0ad720f3073e93add", "score": "0.5846528", "text": "@Test(timeout = 4000)\n public void test55() throws Throwable {\n ResultMatrixGnuPlot resultMatrixGnuPlot0 = new ResultMatrixGnuPlot();\n ResultMatrixHTML resultMatrixHTML0 = new ResultMatrixHTML(resultMatrixGnuPlot0);\n resultMatrixHTML0.setMeanPrec((-1119));\n resultMatrixHTML0.toStringKey();\n resultMatrixHTML0.globalInfo();\n }", "title": "" }, { "docid": "c016464cc0c0415b87a33dd7826b666d", "score": "0.58323693", "text": "@Test(timeout = 4000)\n public void test182() throws Throwable {\n int int0 = 0;\n ResultMatrixHTML resultMatrixHTML0 = new ResultMatrixHTML(0, 0);\n int[] intArray0 = new int[3];\n intArray0[0] = 0;\n resultMatrixHTML0.padString(\"jTK5$flN\", 343);\n intArray0[2] = 0;\n resultMatrixHTML0.padString(\"\", 0);\n intArray0[2] = 1;\n resultMatrixHTML0.m_RankingWins = intArray0;\n resultMatrixHTML0.m_PrintColNames = true;\n resultMatrixHTML0.setMeanPrec(0);\n resultMatrixHTML0.getColOrder();\n ResultMatrixSignificance resultMatrixSignificance0 = new ResultMatrixSignificance(97, 97);\n }", "title": "" }, { "docid": "6904b16dd2b2eaade2c0146433d74316", "score": "0.5830763", "text": "@Test(timeout = 4000)\n public void test55() throws Throwable {\n ResultMatrixHTML resultMatrixHTML0 = new ResultMatrixHTML();\n resultMatrixHTML0.colNameWidthTipText();\n resultMatrixHTML0.meanWidthTipText();\n ResultMatrixSignificance resultMatrixSignificance0 = new ResultMatrixSignificance(0, 1);\n resultMatrixSignificance0.getDefaultShowStdDev();\n int[][] intArray0 = new int[8][3];\n int[] intArray1 = new int[8];\n intArray1[0] = 1;\n intArray1[1] = 26;\n intArray1[2] = 1;\n intArray1[3] = 0;\n intArray1[4] = 1;\n intArray1[5] = 0;\n intArray1[6] = 1;\n intArray1[7] = 0;\n intArray0[0] = intArray1;\n int[] intArray2 = new int[3];\n intArray2[0] = 26;\n intArray2[1] = 1;\n intArray2[2] = (-1511);\n intArray0[1] = intArray2;\n int[] intArray3 = new int[0];\n intArray0[2] = intArray3;\n int[] intArray4 = new int[1];\n intArray4[0] = 26;\n intArray0[3] = intArray2;\n int[] intArray5 = new int[2];\n intArray5[0] = 0;\n intArray5[1] = 26;\n intArray0[4] = intArray5;\n int[] intArray6 = new int[6];\n intArray6[0] = 1;\n intArray6[1] = 2;\n intArray6[2] = 1;\n intArray6[3] = 1;\n intArray6[4] = 0;\n intArray6[5] = 2;\n intArray0[5] = intArray6;\n int[] intArray7 = new int[3];\n intArray7[0] = 0;\n intArray7[1] = 10;\n intArray7[2] = 0;\n intArray0[6] = intArray7;\n int[] intArray8 = new int[6];\n intArray8[0] = 0;\n intArray8[1] = 0;\n intArray8[2] = 1;\n intArray8[3] = 0;\n intArray8[4] = 2;\n intArray8[5] = 2;\n intArray0[7] = intArray8;\n resultMatrixSignificance0.setRanking(intArray0);\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixSignificance0.getVisibleColCount());\n }", "title": "" }, { "docid": "22a5204c00dbbcae7938cd46eeceffea", "score": "0.5830595", "text": "@Test(timeout = 4000)\n public void test74() throws Throwable {\n ResultMatrixLatex resultMatrixLatex0 = new ResultMatrixLatex();\n resultMatrixLatex0.m_NonSigWins = null;\n resultMatrixLatex0.doubleToString(0.0, 1318);\n resultMatrixLatex0.getDefaultPrintColNames();\n resultMatrixLatex0.isStdDev(1318);\n resultMatrixLatex0.isStdDev((-1221));\n assertEquals(2, resultMatrixLatex0.getStdDevPrec());\n assertEquals(1, resultMatrixLatex0.getRowCount());\n assertFalse(resultMatrixLatex0.getRemoveFilterName());\n assertEquals(0, resultMatrixLatex0.getMeanWidth());\n assertEquals(0, resultMatrixLatex0.getSignificanceWidth());\n assertEquals(0, resultMatrixLatex0.getStdDevWidth());\n assertEquals(1, resultMatrixLatex0.getVisibleColCount());\n assertEquals(2, resultMatrixLatex0.getDefaultMeanPrec());\n }", "title": "" }, { "docid": "0c206c8e949656c855f5b3e3b7d3983a", "score": "0.5829042", "text": "@Test(timeout = 4000)\n public void test45() throws Throwable {\n Discretize discretize0 = new Discretize();\n ArrayList<Attribute> arrayList0 = new ArrayList<Attribute>();\n discretize0.setAttributeIndices(\"\");\n int int0 = (-198);\n Attribute attribute0 = new Attribute(\"I++xD^3e\", (-198));\n arrayList0.add(attribute0);\n int int1 = 6;\n Instances instances0 = new Instances(\"integer\", arrayList0, 6);\n discretize0.setInputFormat(instances0);\n arrayList0.add(attribute0);\n discretize0.setInputFormat(instances0);\n boolean boolean0 = discretize0.m_UseBinNumbers;\n // Undeclared exception!\n try { \n discretize0.batchFinished();\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // Attribute names are not unique! Causes: 'I++xD^3e' \n //\n verifyException(\"weka.core.Instances\", e);\n }\n }", "title": "" }, { "docid": "08c05ab7fd1480eefeea6dbfe4bbf294", "score": "0.5824116", "text": "@Test(timeout = 4000)\n public void test07() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n textDirectoryLoader0.getDataSet();\n RegressionByDiscretization regressionByDiscretization0 = new RegressionByDiscretization();\n PrincipalComponents principalComponents0 = new PrincipalComponents();\n CVParameterSelection cVParameterSelection0 = new CVParameterSelection();\n Evaluation.makeOptionString(cVParameterSelection0, true);\n LibSVMLoader libSVMLoader0 = new LibSVMLoader();\n MockRandom mockRandom0 = new MockRandom();\n Object object0 = new Object();\n }", "title": "" }, { "docid": "750410ab3407bef8b65683fd6ad20b6f", "score": "0.5821703", "text": "@Test(timeout = 4000)\n public void test49() throws Throwable {\n DecisionStump decisionStump0 = new DecisionStump();\n assertNotNull(decisionStump0);\n assertEquals(\"If set to true, classifier may output additional info to the console.\", decisionStump0.debugTipText());\n assertEquals(\"Class for building and using a decision stump. Usually used in conjunction with a boosting algorithm. Does regression (based on mean-squared error) or classification (based on entropy). Missing is treated as a separate value.\", decisionStump0.globalInfo());\n assertFalse(decisionStump0.getDebug());\n \n String[] stringArray0 = decisionStump0.getOptions();\n assertEquals(0, stringArray0.length);\n assertNotNull(stringArray0);\n assertEquals(\"If set to true, classifier may output additional info to the console.\", decisionStump0.debugTipText());\n assertEquals(\"Class for building and using a decision stump. Usually used in conjunction with a boosting algorithm. Does regression (based on mean-squared error) or classification (based on entropy). Missing is treated as a separate value.\", decisionStump0.globalInfo());\n assertFalse(decisionStump0.getDebug());\n \n MultiScheme multiScheme0 = new MultiScheme();\n assertNotNull(multiScheme0);\n assertEquals(1, multiScheme0.getSeed());\n assertEquals(\"The number of folds used for cross-validation (if 0, performance on training data will be used).\", multiScheme0.numFoldsTipText());\n assertEquals(0, multiScheme0.getBestClassifierIndex());\n assertEquals(\"The seed used for randomizing the data for cross-validation.\", multiScheme0.seedTipText());\n assertEquals(0, multiScheme0.getNumFolds());\n assertEquals(\"Class for selecting a classifier from among several using cross validation on the training data or the performance on the training data. Performance is measured based on percent correct (classification) or mean-squared error (regression).\", multiScheme0.globalInfo());\n assertEquals(\"Whether debug information is output to console.\", multiScheme0.debugTipText());\n assertFalse(multiScheme0.getDebug());\n assertEquals(\"The classifiers to be chosen from.\", multiScheme0.classifiersTipText());\n \n EvoSuiteFile evoSuiteFile0 = new EvoSuiteFile(\"/home/ubuntu/evosuite_readability_gen/projects/107_weka\");\n boolean boolean0 = FileSystemHandling.appendStringToFile(evoSuiteFile0, \"1034-1040\");\n assertFalse(boolean0);\n \n LibSVMLoader libSVMLoader0 = new LibSVMLoader();\n assertNotNull(libSVMLoader0);\n assertEquals(\"http://\", libSVMLoader0.retrieveURL());\n assertEquals(\"Reads a source that is in libsvm format.\\n\\nFor more information about libsvm see:\\n\\nhttp://www.csie.ntu.edu.tw/~cjlin/libsvm/\", libSVMLoader0.globalInfo());\n assertFalse(libSVMLoader0.getUseRelativePath());\n assertEquals(\"Use relative rather than absolute paths\", libSVMLoader0.useRelativePathTipText());\n assertEquals(\".libsvm\", libSVMLoader0.getFileExtension());\n assertEquals(\"libsvm data files\", libSVMLoader0.getFileDescription());\n \n MockRandom mockRandom0 = new MockRandom();\n assertNotNull(mockRandom0);\n \n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n assertNotNull(textDirectoryLoader0);\n assertEquals(\"Whether to store the filename in an additional attribute.\", textDirectoryLoader0.outputFilenameTipText());\n assertEquals(\"Whether to print additional debug information to the console.\", textDirectoryLoader0.debugTipText());\n assertEquals(\"Directories\", textDirectoryLoader0.getFileDescription());\n assertFalse(textDirectoryLoader0.getDebug());\n assertEquals(\"Loads all text files in a directory and uses the subdirectory names as class labels. The content of the text files will be stored in a String attribute, the filename can be stored as well.\", textDirectoryLoader0.globalInfo());\n assertEquals(\"\", textDirectoryLoader0.getCharSet());\n assertEquals(\"The character set to use when reading text files (eg UTF-8) - leave blank to use the default character set.\", textDirectoryLoader0.charSetTipText());\n assertFalse(textDirectoryLoader0.getOutputFilename());\n \n Instances instances0 = textDirectoryLoader0.getStructure();\n assertNotNull(instances0);\n assertEquals(\"Whether to store the filename in an additional attribute.\", textDirectoryLoader0.outputFilenameTipText());\n assertEquals(\"Whether to print additional debug information to the console.\", textDirectoryLoader0.debugTipText());\n assertEquals(\"Directories\", textDirectoryLoader0.getFileDescription());\n assertFalse(textDirectoryLoader0.getDebug());\n assertEquals(\"Loads all text files in a directory and uses the subdirectory names as class labels. The content of the text files will be stored in a String attribute, the filename can be stored as well.\", textDirectoryLoader0.globalInfo());\n assertEquals(\"\", textDirectoryLoader0.getCharSet());\n assertEquals(\"The character set to use when reading text files (eg UTF-8) - leave blank to use the default character set.\", textDirectoryLoader0.charSetTipText());\n assertFalse(textDirectoryLoader0.getOutputFilename());\n assertEquals(0.0, instances0.sumOfWeights(), 0.01);\n assertTrue(instances0.checkForStringAttributes());\n assertEquals(0, instances0.size());\n assertEquals(\"_home_ubuntu_evosuite_readability_gen_projects_107_weka\", instances0.relationName());\n assertEquals(0, instances0.numInstances());\n assertEquals(2, instances0.numAttributes());\n assertEquals(1, instances0.classIndex());\n assertEquals(0, instances0.numClasses());\n \n SerializedClassifier serializedClassifier0 = new SerializedClassifier();\n assertNotNull(serializedClassifier0);\n assertEquals(\"The serialized classifier model to use for predictions.\", serializedClassifier0.modelFileTipText());\n assertEquals(\"A wrapper around a serialized classifier model. This classifier loads a serialized models and uses it to make predictions.\\n\\nWarning: since the serialized model doesn't get changed, cross-validation cannot bet used with this classifier.\", serializedClassifier0.globalInfo());\n assertFalse(serializedClassifier0.getDebug());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", serializedClassifier0.debugTipText());\n \n Evaluation evaluation0 = new Evaluation(instances0);\n assertNotNull(evaluation0);\n assertEquals(\"Whether to store the filename in an additional attribute.\", textDirectoryLoader0.outputFilenameTipText());\n assertEquals(\"Whether to print additional debug information to the console.\", textDirectoryLoader0.debugTipText());\n assertEquals(\"Directories\", textDirectoryLoader0.getFileDescription());\n assertFalse(textDirectoryLoader0.getDebug());\n assertEquals(\"Loads all text files in a directory and uses the subdirectory names as class labels. The content of the text files will be stored in a String attribute, the filename can be stored as well.\", textDirectoryLoader0.globalInfo());\n assertEquals(\"\", textDirectoryLoader0.getCharSet());\n assertEquals(\"The character set to use when reading text files (eg UTF-8) - leave blank to use the default character set.\", textDirectoryLoader0.charSetTipText());\n assertFalse(textDirectoryLoader0.getOutputFilename());\n assertEquals(0.0, instances0.sumOfWeights(), 0.01);\n assertTrue(instances0.checkForStringAttributes());\n assertEquals(0, instances0.size());\n assertEquals(\"_home_ubuntu_evosuite_readability_gen_projects_107_weka\", instances0.relationName());\n assertEquals(0, instances0.numInstances());\n assertEquals(2, instances0.numAttributes());\n assertEquals(1, instances0.classIndex());\n assertEquals(0, instances0.numClasses());\n assertEquals(0.0, evaluation0.correct(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanPriorSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFalseNegativeRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootRelativeSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.relativeAbsoluteError(), 0.01);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFMeasure(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctCorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.unweightedMicroFmeasure(), 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.avgCost(), 0.01);\n assertEquals(0.0, evaluation0.numInstances(), 0.01);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedPrecision(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanPriorAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFalsePositiveRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedTrueNegativeRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctIncorrect(), 0.01);\n assertEquals(1.0, evaluation0.kappa(), 0.01);\n assertEquals(Double.NaN, evaluation0.coverageOfTestCasesByPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanPriorEntropy(), 0.01);\n assertEquals(0.0, evaluation0.incorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.sizeOfPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation0.errorRate(), 0.01);\n assertEquals(0.0, evaluation0.totalCost(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedTruePositiveRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedRecall(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctUnclassified(), 0.01);\n assertFalse(evaluation0.getDiscardPredictions());\n \n double double0 = evaluation0.areaUnderPRC(176);\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(\"Whether to store the filename in an additional attribute.\", textDirectoryLoader0.outputFilenameTipText());\n assertEquals(\"Whether to print additional debug information to the console.\", textDirectoryLoader0.debugTipText());\n assertEquals(\"Directories\", textDirectoryLoader0.getFileDescription());\n assertFalse(textDirectoryLoader0.getDebug());\n assertEquals(\"Loads all text files in a directory and uses the subdirectory names as class labels. The content of the text files will be stored in a String attribute, the filename can be stored as well.\", textDirectoryLoader0.globalInfo());\n assertEquals(\"\", textDirectoryLoader0.getCharSet());\n assertEquals(\"The character set to use when reading text files (eg UTF-8) - leave blank to use the default character set.\", textDirectoryLoader0.charSetTipText());\n assertFalse(textDirectoryLoader0.getOutputFilename());\n assertEquals(0.0, instances0.sumOfWeights(), 0.01);\n assertTrue(instances0.checkForStringAttributes());\n assertEquals(0, instances0.size());\n assertEquals(\"_home_ubuntu_evosuite_readability_gen_projects_107_weka\", instances0.relationName());\n assertEquals(0, instances0.numInstances());\n assertEquals(2, instances0.numAttributes());\n assertEquals(1, instances0.classIndex());\n assertEquals(0, instances0.numClasses());\n assertEquals(0.0, evaluation0.correct(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanPriorSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFalseNegativeRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootRelativeSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.relativeAbsoluteError(), 0.01);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFMeasure(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctCorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.unweightedMicroFmeasure(), 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.avgCost(), 0.01);\n assertEquals(0.0, evaluation0.numInstances(), 0.01);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedPrecision(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanPriorAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFalsePositiveRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedTrueNegativeRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctIncorrect(), 0.01);\n assertEquals(1.0, evaluation0.kappa(), 0.01);\n assertEquals(Double.NaN, evaluation0.coverageOfTestCasesByPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanPriorEntropy(), 0.01);\n assertEquals(0.0, evaluation0.incorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.sizeOfPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation0.errorRate(), 0.01);\n assertEquals(0.0, evaluation0.totalCost(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedTruePositiveRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedRecall(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctUnclassified(), 0.01);\n assertFalse(evaluation0.getDiscardPredictions());\n }", "title": "" }, { "docid": "b2f3b3b5e00f8d8f384a8b5a24ae3283", "score": "0.58212703", "text": "@Test(timeout = 4000)\n public void test27() throws Throwable {\n Discretize discretize0 = new Discretize(\"Uf\");\n assertFalse(discretize0.getUseEqualFrequency());\n \n discretize0.m_UseEqualFrequency = true;\n discretize0.getOptions();\n assertTrue(discretize0.getUseEqualFrequency());\n }", "title": "" }, { "docid": "931e7258d569c4a69a74986b5f161c71", "score": "0.5815116", "text": "public static void doDummyTest2() throws Exception {\n\n\n\t\tint nrow = 1;\n\n\t\tint ncol = 5;\n\n\t\tint dmax = 20;\n\n\n\n\t\tint ITER = 1;\n\n\t\tint als[] = {2}; //DO + weka + CON target per cluster\n\t\t//radius\n\n\n\t\tint ranges[][] = {{0,2},{3,8},{9, 10}};\n\t\tint[] percforranges = {80, 10, 10};\n\n\t\t/*int ranges[][] = {{0,7},{6,8},{8, 10}};\n\t\tint[] percforranges = {90, 0, 10};*/\n\n\n\n\t\tint blockdim = 2; // block = blockdim x blockdim\n\n\t\t// nrow has to be divisible by block\n\n\t\tint nTargets = nrow*ncol;\n\n\t\tint ncat = 3;\n\t\tint[] targetsincat = getTargetsInCats(nTargets, percforranges);\n\t\tdouble[][] density=SecurityGameContraction.generateRandomDensityV2(ncat, ITER, ranges, nTargets, targetsincat);\n\n\n\t\tHashMap<Integer, ArrayList<TargetNode>> alltargets = new HashMap<Integer, ArrayList<TargetNode>>();\n\t\tHashMap<Integer, HashMap<Integer, TargetNode>> alltargetmaps = new HashMap<Integer, HashMap<Integer, TargetNode>>();\n\t\t//HashMap<Integer, ArrayList<Integer>[]> allclus = new HashMap<Integer, ArrayList<Integer>[]>();\n\t\tHashMap<Integer, ArrayList<Integer>[]> allclus = new HashMap<Integer, ArrayList<Integer>[]>();\n\t\t//double[][] density=SecurityGameContraction.generateRandomDensity( perc, ITER, lstart, lend, hstart, hend, nTargets, false);\n\n\t\t//double[][] density = new double[ITER][nTargets];\n\n\n\n\t\tfor(int iter = 0; iter<ITER; iter++)\n\t\t{\n\t\t\tArrayList<TargetNode> targets = new ArrayList<TargetNode>(); //createGraph();\n\t\t\tHashMap<Integer, TargetNode> targetmaps = new HashMap<Integer, TargetNode>();\n\t\t\tClusterTargets.buildcsvGraphExp(nrow,ncol,density,targets, iter );\n\t\t\t//SecurityGameContraction.assignRandomDensityZeroSum(density, gamedata, targets, iter);\n\t\t\t//SecurityGameContraction.buildGraph(nrow, ncol, gamedata, targets);\n\t\t\t//SecurityGameContraction.assignRandomDensityZeroSum(density, gamedata, targets, iter);\n\t\t\talltargets.put(iter, targets);\n\t\t\tfor(TargetNode t : targets)\n\t\t\t{\n\t\t\t\ttargetmaps.put(t.getTargetid(), t);\n\n\t\t\t}\n\t\t\talltargetmaps.put(iter, targetmaps);\n\n\t\t\tClusterTargets.buildFile(nrow,ncol,density,targets, iter );\n\n\t\t\tint g=0;\n\n\n\n\t\t}\n\n\n\t}", "title": "" }, { "docid": "3a3ad38f1fb85672370b066da66679a6", "score": "0.58146036", "text": "@Test(timeout = 4000)\n public void test25() throws Throwable {\n Discretize discretize0 = new Discretize(\"\");\n String[] stringArray0 = discretize0.getOptions();\n assertEquals(4, stringArray0.length);\n assertEquals(10, discretize0.getBins());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n }", "title": "" }, { "docid": "febd671c3ee247ad7361f7d654e52c91", "score": "0.5812528", "text": "@Test(timeout = 4000)\n public void test22() throws Throwable {\n Discretize discretize0 = new Discretize(\"\");\n String[] stringArray0 = discretize0.getOptions();\n assertEquals(10, discretize0.getBins());\n assertEquals(4, stringArray0.length);\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n }", "title": "" }, { "docid": "cc9f72dde8833ed3e6a3b75dd3c71994", "score": "0.5811596", "text": "@Test(timeout = 4000)\n public void test51() throws Throwable {\n ResultMatrixCSV resultMatrixCSV0 = new ResultMatrixCSV(0, 0);\n ResultMatrixGnuPlot resultMatrixGnuPlot0 = new ResultMatrixGnuPlot(resultMatrixCSV0);\n ResultMatrixLatex resultMatrixLatex0 = new ResultMatrixLatex(resultMatrixGnuPlot0);\n resultMatrixLatex0.setEnumerateRowNames(true);\n resultMatrixLatex0.setRowName(0, \"]\");\n int int0 = ResultMatrix.SIGNIFICANCE_WIN;\n resultMatrixLatex0.isAverage(97);\n ResultMatrixSignificance resultMatrixSignificance0 = new ResultMatrixSignificance();\n resultMatrixSignificance0.getRevision();\n ResultMatrixSignificance resultMatrixSignificance1 = new ResultMatrixSignificance(1, 1);\n resultMatrixSignificance0.setCount(1726, (-5.10309048958));\n ResultMatrixHTML resultMatrixHTML0 = new ResultMatrixHTML(resultMatrixLatex0);\n resultMatrixHTML0.getRevision();\n assertEquals(0, resultMatrixHTML0.getCountWidth());\n assertEquals(2, resultMatrixHTML0.getStdDevPrec());\n assertTrue(resultMatrixHTML0.getEnumerateColNames());\n assertEquals(2, resultMatrixHTML0.getMeanPrec());\n assertEquals(25, resultMatrixHTML0.getRowNameWidth());\n assertTrue(resultMatrixHTML0.getPrintRowNames());\n assertEquals(0, resultMatrixHTML0.getMeanWidth());\n assertEquals(0, resultMatrixHTML0.getColCount());\n assertFalse(resultMatrixHTML0.getShowAverage());\n assertTrue(resultMatrixHTML0.getEnumerateRowNames());\n \n resultMatrixSignificance0.getSignificanceWidth();\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n }", "title": "" }, { "docid": "6be5258d2c140ac500e0c24495180d11", "score": "0.579022", "text": "@Test\n\tpublic void testFour() {\n //setMathRandomSeed(666L);\n\t\tRumors.main(new String[]{\"4\", \"100\"});\n\t\tString[] fields = getOutput().split(\"\\\\s+\");\n\t\tdouble probability = Double.parseDouble(fields[0]);\n\t\tdouble expectation = Double.parseDouble(fields[1]);\n\t\t//assertEquals(0.46, probability, TOLERANCE);\n\t\t//assertEquals(3.46, expectation, TOLERANCE);\n\t\tassertThat(probability, anyOf(equalApprox(0.48), equalApprox(0.44), equalApprox(0.52), equalApprox(0.51), equalApprox(0.42), equalApprox(0.46), equalApprox(0.54), equalApprox(0.57) ));\n\t\tassertThat(expectation, anyOf(equalApprox(3.48), equalApprox(3.44), equalApprox(3.52), equalApprox(3.51), equalApprox(3.42), equalApprox(3.46), equalApprox(3.54), equalApprox(3.57) ));\n\t\t\n\t\tclearOutput();\n\t\tRumors.main(new String[]{\"4\", \"10000\"});\n\t\tfields = getOutput().split(\"\\\\s+\");\n\t\tprobability = Double.parseDouble(fields[0]);\n\t\texpectation = Double.parseDouble(fields[1]);\n\t\t//assertEquals(0.5016, probability, TOLERANCE);\n\t\t//assertEquals(3.5016, expectation, TOLERANCE);\n\t\t// Alternatives considered (in order):\n\t\tassertThat(probability, anyOf(equalApprox(0.5008), equalApprox(0.5013), equalApprox(0.4992), equalApprox(0.4984), equalApprox(0.4999), equalApprox(0.5016), equalApprox(0.5031), equalApprox(0.5076) ));\n\t\tassertThat(expectation, anyOf(equalApprox(3.5008), equalApprox(3.5013), equalApprox(3.4992), equalApprox(3.4984), equalApprox(3.4999), equalApprox(3.5016), equalApprox(3.5031), equalApprox(3.5076) ));\n\t}", "title": "" }, { "docid": "1b53235537cacf08abd985a2c20e1b3d", "score": "0.57865345", "text": "@Test(timeout = 4000)\n public void test58() throws Throwable {\n ResultMatrixSignificance resultMatrixSignificance0 = new ResultMatrixSignificance();\n resultMatrixSignificance0.setMeanPrec(2260);\n resultMatrixSignificance0.LEFT_PARENTHESES = \"x\\\"vZZA6Bh\";\n resultMatrixSignificance0.clearHeader();\n resultMatrixSignificance0.getColName(2946);\n resultMatrixSignificance0.addHeader(\"Imx-Xw[wv_Pf\", \"7S`(j!-\");\n Vector<Integer> vector0 = new Vector<Integer>();\n resultMatrixSignificance0.m_HeaderKeys = vector0;\n resultMatrixSignificance0.getSignificance(0, 671);\n resultMatrixSignificance0.getCountWidth();\n resultMatrixSignificance0.m_MeanPrec = 0;\n resultMatrixSignificance0.isMean(0);\n resultMatrixSignificance0.enumerateRowNamesTipText();\n ResultMatrixLatex resultMatrixLatex0 = new ResultMatrixLatex(resultMatrixSignificance0);\n ResultMatrixPlainText resultMatrixPlainText0 = new ResultMatrixPlainText(resultMatrixLatex0);\n resultMatrixPlainText0.setMeanPrec(0);\n resultMatrixPlainText0.globalInfo();\n resultMatrixSignificance0.getDisplayName();\n ResultMatrixGnuPlot resultMatrixGnuPlot0 = new ResultMatrixGnuPlot(125, 2260);\n }", "title": "" }, { "docid": "9d71510752051854b68b1d73ba18b76b", "score": "0.57854337", "text": "private void experiment() {\n\t\tgenerateRandomGames();\n\t\tconsole.out(\"\\nTesting count efficiency...\\n\");\n\t\tcountEfficiency();\n\t\tconsole.out(\"\\nTesting weight vs count...\\n\");\n\t\tweightCount();\n\t}", "title": "" }, { "docid": "8056a8982ca76ef1b2936045367ea579", "score": "0.5778126", "text": "@Test(timeout = 4000)\n public void test83() throws Throwable {\n ResultMatrixCSV resultMatrixCSV0 = new ResultMatrixCSV();\n ResultMatrixLatex resultMatrixLatex0 = new ResultMatrixLatex(resultMatrixCSV0);\n int[][] intArray0 = new int[4][9];\n int[] intArray1 = new int[5];\n intArray1[0] = 0;\n intArray1[1] = 2;\n intArray1[2] = 1;\n intArray1[3] = 1787;\n intArray1[4] = 1;\n intArray0[1] = intArray1;\n int[] intArray2 = new int[8];\n intArray2[0] = 1;\n intArray2[1] = 1;\n intArray2[3] = 1;\n intArray2[4] = 2;\n intArray2[5] = 0;\n intArray2[6] = 2;\n intArray2[7] = 2;\n intArray0[2] = intArray2;\n int[] intArray3 = new int[4];\n intArray3[0] = 0;\n intArray3[1] = 0;\n intArray3[2] = 0;\n intArray3[3] = 1787;\n intArray0[3] = intArray3;\n resultMatrixLatex0.m_Significance = intArray0;\n ResultMatrixCSV resultMatrixCSV1 = new ResultMatrixCSV(resultMatrixLatex0);\n resultMatrixCSV1.getDefaultPrintColNames();\n resultMatrixCSV0.getSignificanceCount((-1090), 1317);\n // Undeclared exception!\n try { \n resultMatrixCSV0.toStringHeader();\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // 0\n //\n verifyException(\"weka.experiment.ResultMatrix\", e);\n }\n }", "title": "" }, { "docid": "75f4e01c89c8c3631676781c8d814956", "score": "0.5777415", "text": "@Test(timeout = 4000)\n public void test73() throws Throwable {\n ResultMatrixSignificance resultMatrixSignificance0 = new ResultMatrixSignificance();\n resultMatrixSignificance0.m_ShowStdDev = true;\n resultMatrixSignificance0.LOSS_STRING = \"\\\"`P2VpQxcb\";\n ResultMatrixPlainText resultMatrixPlainText0 = new ResultMatrixPlainText(resultMatrixSignificance0);\n resultMatrixPlainText0.setStdDevWidth(0);\n resultMatrixPlainText0.removeFilterName(\"(\");\n resultMatrixPlainText0.clear();\n resultMatrixPlainText0.getRevision();\n resultMatrixPlainText0.setCountWidth(0);\n resultMatrixPlainText0.getDefaultCountWidth();\n resultMatrixSignificance0.toStringMatrix();\n resultMatrixSignificance0.getRevision();\n ResultMatrixSignificance resultMatrixSignificance1 = new ResultMatrixSignificance(resultMatrixPlainText0);\n resultMatrixSignificance1.setCount(51, 1726);\n ResultMatrixHTML resultMatrixHTML0 = new ResultMatrixHTML(resultMatrixPlainText0);\n resultMatrixHTML0.getRevision();\n int int0 = resultMatrixSignificance1.getSignificanceWidth();\n assertEquals(25, resultMatrixPlainText0.getRowNameWidth());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertEquals(0, int0);\n }", "title": "" }, { "docid": "32ffca530ed11af6d91abb5c7d71b878", "score": "0.57773197", "text": "@Test(timeout = 4000)\n public void test29() throws Throwable {\n DecisionStump decisionStump0 = new DecisionStump();\n assertNotNull(decisionStump0);\n assertEquals(\"Class for building and using a decision stump. Usually used in conjunction with a boosting algorithm. Does regression (based on mean-squared error) or classification (based on entropy). Missing is treated as a separate value.\", decisionStump0.globalInfo());\n assertFalse(decisionStump0.getDebug());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", decisionStump0.debugTipText());\n \n String string0 = decisionStump0.toString();\n assertEquals(\"Decision Stump: No model built yet.\", string0);\n assertNotNull(string0);\n assertEquals(\"Class for building and using a decision stump. Usually used in conjunction with a boosting algorithm. Does regression (based on mean-squared error) or classification (based on entropy). Missing is treated as a separate value.\", decisionStump0.globalInfo());\n assertFalse(decisionStump0.getDebug());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", decisionStump0.debugTipText());\n \n String[] stringArray0 = decisionStump0.getOptions();\n assertEquals(0, stringArray0.length);\n assertNotNull(stringArray0);\n assertEquals(\"Class for building and using a decision stump. Usually used in conjunction with a boosting algorithm. Does regression (based on mean-squared error) or classification (based on entropy). Missing is treated as a separate value.\", decisionStump0.globalInfo());\n assertFalse(decisionStump0.getDebug());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", decisionStump0.debugTipText());\n \n String[] stringArray1 = decisionStump0.getOptions();\n assertEquals(0, stringArray1.length);\n assertFalse(stringArray1.equals((Object)stringArray0));\n assertNotSame(stringArray1, stringArray0);\n assertNotNull(stringArray1);\n assertEquals(\"Class for building and using a decision stump. Usually used in conjunction with a boosting algorithm. Does regression (based on mean-squared error) or classification (based on entropy). Missing is treated as a separate value.\", decisionStump0.globalInfo());\n assertFalse(decisionStump0.getDebug());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", decisionStump0.debugTipText());\n \n boolean boolean0 = FileSystemHandling.shouldAllThrowIOExceptions();\n assertTrue(boolean0);\n \n MultiScheme multiScheme0 = new MultiScheme();\n assertNotNull(multiScheme0);\n assertEquals(\"The number of folds used for cross-validation (if 0, performance on training data will be used).\", multiScheme0.numFoldsTipText());\n assertEquals(\"The seed used for randomizing the data for cross-validation.\", multiScheme0.seedTipText());\n assertEquals(\"The classifiers to be chosen from.\", multiScheme0.classifiersTipText());\n assertFalse(multiScheme0.getDebug());\n assertEquals(0, multiScheme0.getBestClassifierIndex());\n assertEquals(\"Whether debug information is output to console.\", multiScheme0.debugTipText());\n assertEquals(\"Class for selecting a classifier from among several using cross validation on the training data or the performance on the training data. Performance is measured based on percent correct (classification) or mean-squared error (regression).\", multiScheme0.globalInfo());\n assertEquals(1, multiScheme0.getSeed());\n assertEquals(0, multiScheme0.getNumFolds());\n \n String string1 = Evaluation.makeOptionString(decisionStump0, true);\n assertFalse(string1.equals((Object)string0));\n assertNotNull(string1);\n assertEquals(\"Class for building and using a decision stump. Usually used in conjunction with a boosting algorithm. Does regression (based on mean-squared error) or classification (based on entropy). Missing is treated as a separate value.\", decisionStump0.globalInfo());\n assertFalse(decisionStump0.getDebug());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", decisionStump0.debugTipText());\n \n LibSVMLoader libSVMLoader0 = new LibSVMLoader();\n assertNotNull(libSVMLoader0);\n assertEquals(\"libsvm data files\", libSVMLoader0.getFileDescription());\n assertEquals(\".libsvm\", libSVMLoader0.getFileExtension());\n assertEquals(\"http://\", libSVMLoader0.retrieveURL());\n assertFalse(libSVMLoader0.getUseRelativePath());\n assertEquals(\"Use relative rather than absolute paths\", libSVMLoader0.useRelativePathTipText());\n assertEquals(\"Reads a source that is in libsvm format.\\n\\nFor more information about libsvm see:\\n\\nhttp://www.csie.ntu.edu.tw/~cjlin/libsvm/\", libSVMLoader0.globalInfo());\n \n TestInstances testInstances0 = new TestInstances();\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertNotNull(testInstances0);\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(0, testInstances0.getNumRelationalDate());\n assertEquals(20, testInstances0.getNumInstances());\n assertEquals(2, testInstances0.getNumAttributes());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(0, testInstances0.getNumNumeric());\n assertFalse(testInstances0.getNoClass());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(1, testInstances0.getSeed());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(1, testInstances0.getClassType());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(0, testInstances0.getNumRelationalNumeric());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(0, testInstances0.getNumDate());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertFalse(testInstances0.getMultiInstance());\n \n Instances instances0 = testInstances0.generate(\"Decision Stump: No model built yet.\");\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertNotNull(instances0);\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(0, testInstances0.getNumRelationalDate());\n assertEquals(20, testInstances0.getNumInstances());\n assertEquals(2, testInstances0.getNumAttributes());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(0, testInstances0.getNumNumeric());\n assertFalse(testInstances0.getNoClass());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(1, testInstances0.getSeed());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(1, testInstances0.getClassType());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(0, testInstances0.getNumRelationalNumeric());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(0, testInstances0.getNumDate());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(2, instances0.numAttributes());\n assertEquals(1, instances0.classIndex());\n assertEquals(\"Testdata\", instances0.relationName());\n assertEquals(2, instances0.numClasses());\n assertFalse(instances0.checkForStringAttributes());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertEquals(20, instances0.size());\n assertEquals(20, instances0.numInstances());\n \n Evaluation evaluation0 = new Evaluation(instances0);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertNotNull(evaluation0);\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(0, testInstances0.getNumRelationalDate());\n assertEquals(20, testInstances0.getNumInstances());\n assertEquals(2, testInstances0.getNumAttributes());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(0, testInstances0.getNumNumeric());\n assertFalse(testInstances0.getNoClass());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(1, testInstances0.getSeed());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(1, testInstances0.getClassType());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(0, testInstances0.getNumRelationalNumeric());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(0, testInstances0.getNumDate());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(2, instances0.numAttributes());\n assertEquals(1, instances0.classIndex());\n assertEquals(\"Testdata\", instances0.relationName());\n assertEquals(2, instances0.numClasses());\n assertFalse(instances0.checkForStringAttributes());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertEquals(20, instances0.size());\n assertEquals(20, instances0.numInstances());\n assertEquals(Double.NaN, evaluation0.weightedTrueNegativeRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFalseNegativeRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanPriorSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.unweightedMicroFmeasure(), 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertFalse(evaluation0.getDiscardPredictions());\n assertEquals(0.0, evaluation0.correct(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanEntropyGain(), 0.01);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootRelativeSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.avgCost(), 0.01);\n assertEquals(0.0, evaluation0.numInstances(), 0.01);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctCorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.coverageOfTestCasesByPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFMeasure(), 0.01);\n assertEquals(Double.NaN, evaluation0.sizeOfPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFalsePositiveRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctIncorrect(), 0.01);\n assertEquals(0.0, evaluation0.incorrect(), 0.01);\n assertEquals(1.0, evaluation0.kappa(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanPriorAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedTruePositiveRate(), 0.01);\n assertEquals(0.0, evaluation0.totalCost(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedPrecision(), 0.01);\n assertEquals(Double.NaN, evaluation0.errorRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedRecall(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctUnclassified(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.relativeAbsoluteError(), 0.01);\n \n double[] doubleArray0 = evaluation0.getClassPriors();\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertEquals(2, doubleArray0.length);\n assertNotNull(doubleArray0);\n assertArrayEquals(new double[] {12.0, 10.0}, doubleArray0, 0.01);\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(0, testInstances0.getNumRelationalDate());\n assertEquals(20, testInstances0.getNumInstances());\n assertEquals(2, testInstances0.getNumAttributes());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(0, testInstances0.getNumNumeric());\n assertFalse(testInstances0.getNoClass());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(1, testInstances0.getSeed());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(1, testInstances0.getClassType());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(0, testInstances0.getNumRelationalNumeric());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(0, testInstances0.getNumDate());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(2, instances0.numAttributes());\n assertEquals(1, instances0.classIndex());\n assertEquals(\"Testdata\", instances0.relationName());\n assertEquals(2, instances0.numClasses());\n assertFalse(instances0.checkForStringAttributes());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertEquals(20, instances0.size());\n assertEquals(20, instances0.numInstances());\n assertEquals(Double.NaN, evaluation0.weightedTrueNegativeRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFalseNegativeRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanPriorSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.unweightedMicroFmeasure(), 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertFalse(evaluation0.getDiscardPredictions());\n assertEquals(0.0, evaluation0.correct(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanEntropyGain(), 0.01);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootRelativeSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.avgCost(), 0.01);\n assertEquals(0.0, evaluation0.numInstances(), 0.01);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctCorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.coverageOfTestCasesByPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFMeasure(), 0.01);\n assertEquals(Double.NaN, evaluation0.sizeOfPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFalsePositiveRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctIncorrect(), 0.01);\n assertEquals(0.0, evaluation0.incorrect(), 0.01);\n assertEquals(1.0, evaluation0.kappa(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanPriorAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedTruePositiveRate(), 0.01);\n assertEquals(0.0, evaluation0.totalCost(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedPrecision(), 0.01);\n assertEquals(Double.NaN, evaluation0.errorRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedRecall(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctUnclassified(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.relativeAbsoluteError(), 0.01);\n \n try { \n evaluation0.evaluateModel((Classifier) multiScheme0, instances0, (Object[]) stringArray0);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"weka.classifiers.meta.MultiScheme\", e);\n }\n }", "title": "" }, { "docid": "225a202a1d6feb9ac37c414edb8cd3f6", "score": "0.5760488", "text": "@Test(timeout = 4000)\n public void test31() throws Throwable {\n ResultMatrixSignificance resultMatrixSignificance0 = new ResultMatrixSignificance();\n resultMatrixSignificance0.setMeanPrec(2260);\n resultMatrixSignificance0.LEFT_PARENTHESES = \"x\\\"vZZA6Bh\";\n resultMatrixSignificance0.clearHeader();\n resultMatrixSignificance0.addHeader(\"Imx-Xw[wv_Pf\", \"7S`(j!-\");\n Vector<Integer> vector0 = new Vector<Integer>();\n resultMatrixSignificance0.m_HeaderKeys = vector0;\n resultMatrixSignificance0.getCountWidth();\n resultMatrixSignificance0.m_MeanPrec = 0;\n resultMatrixSignificance0.isMean(2946);\n resultMatrixSignificance0.enumerateRowNamesTipText();\n ResultMatrixLatex resultMatrixLatex0 = new ResultMatrixLatex(resultMatrixSignificance0);\n ResultMatrixPlainText resultMatrixPlainText0 = new ResultMatrixPlainText(resultMatrixLatex0);\n resultMatrixPlainText0.setMeanPrec(0);\n resultMatrixPlainText0.globalInfo();\n resultMatrixSignificance0.getDisplayName();\n ResultMatrixGnuPlot resultMatrixGnuPlot0 = new ResultMatrixGnuPlot(125, 2260);\n }", "title": "" }, { "docid": "aad7d127eb4df49162041d1fea0095b4", "score": "0.5759624", "text": "@Test(timeout = 4000)\n public void test193() throws Throwable {\n ResultMatrixHTML resultMatrixHTML0 = new ResultMatrixHTML();\n resultMatrixHTML0.setStdDevWidth(3264);\n resultMatrixHTML0.toStringKey();\n assertEquals(3264, resultMatrixHTML0.getStdDevWidth());\n }", "title": "" }, { "docid": "d5003dfb3040bada31f506005c785fae", "score": "0.575737", "text": "@Test\r\n public void testCloverSensor() throws Exception {\r\n CloverSensor sensor = new CloverSensor(host, user, user);\r\n sensor.setVerbose(\"off\");\r\n int instances = 0;\r\n // Process the test files.\r\n for (File file : super.getXmlFiles(System.getProperty(\"clovertestfiles\"))) {\r\n instances += sensor.processCoverageXmlFile(file);\r\n }\r\n assertEquals(\"Should have 14 entries; 4 granularities per entry\", 14, instances);\r\n }", "title": "" }, { "docid": "739bcfbd902fafba00aa55bc844166e9", "score": "0.5755833", "text": "@Test(timeout = 4000)\n public void test166() throws Throwable {\n ResultMatrixSignificance resultMatrixSignificance0 = new ResultMatrixSignificance();\n resultMatrixSignificance0.m_RemoveFilterName = true;\n resultMatrixSignificance0.m_StdDevWidth = 2;\n ResultMatrixPlainText resultMatrixPlainText0 = new ResultMatrixPlainText(0, 1);\n resultMatrixSignificance0.getColName(4);\n resultMatrixPlainText0.getStdDev(0, 1);\n int[] intArray0 = new int[7];\n intArray0[0] = 4;\n intArray0[1] = 14;\n intArray0[2] = 1;\n intArray0[3] = 4;\n intArray0[4] = 4;\n ResultMatrixLatex resultMatrixLatex0 = null;\n try {\n resultMatrixLatex0 = new ResultMatrixLatex((-1221), 1);\n fail(\"Expecting exception: NegativeArraySizeException\");\n \n } catch(NegativeArraySizeException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"weka.experiment.ResultMatrix\", e);\n }\n }", "title": "" }, { "docid": "7aaeb57c1daece70998ddf1e430ee586", "score": "0.57532334", "text": "@Test(timeout = 4000)\n public void test128() throws Throwable {\n ResultMatrixSignificance resultMatrixSignificance0 = new ResultMatrixSignificance();\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertNotNull(resultMatrixSignificance0);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n \n Enumeration enumeration0 = resultMatrixSignificance0.headerKeys();\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertNotNull(enumeration0);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n \n ResultMatrixCSV resultMatrixCSV0 = new ResultMatrixCSV();\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixCSV0.removeFilterNameTipText());\n assertTrue(resultMatrixCSV0.getEnumerateColNames());\n assertFalse(resultMatrixCSV0.getShowStdDev());\n assertEquals(0, resultMatrixCSV0.getColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixCSV0.stdDevPrecTipText());\n assertEquals(0, resultMatrixCSV0.getMeanWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixCSV0.showStdDevTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultMeanWidth());\n assertEquals(\"Generates the matrix in CSV ('comma-separated values') format.\", resultMatrixCSV0.globalInfo());\n assertEquals(0, resultMatrixCSV0.getCountWidth());\n assertFalse(resultMatrixCSV0.getPrintColNames());\n assertEquals(0, resultMatrixCSV0.getSignificanceWidth());\n assertTrue(resultMatrixCSV0.getPrintRowNames());\n assertEquals(1, resultMatrixCSV0.getVisibleColCount());\n assertEquals(2, resultMatrixCSV0.getDefaultMeanPrec());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixCSV0.countWidthTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultStdDevWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixCSV0.printColNamesTipText());\n assertEquals(2, resultMatrixCSV0.getMeanPrec());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateColNamesTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixCSV0.significanceWidthTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateRowNamesTipText());\n assertEquals(1, resultMatrixCSV0.getVisibleRowCount());\n assertFalse(resultMatrixCSV0.getDefaultPrintColNames());\n assertFalse(resultMatrixCSV0.getDefaultShowAverage());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixCSV0.rowNameWidthTipText());\n assertTrue(resultMatrixCSV0.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixCSV0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixCSV0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixCSV0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixCSV0.getDefaultColNameWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixCSV0.showAverageTipText());\n assertEquals(25, resultMatrixCSV0.getRowNameWidth());\n assertEquals(\"CSV\", resultMatrixCSV0.getDisplayName());\n assertFalse(resultMatrixCSV0.getEnumerateRowNames());\n assertFalse(resultMatrixCSV0.getRemoveFilterName());\n assertFalse(resultMatrixCSV0.getDefaultShowStdDev());\n assertEquals(1, resultMatrixCSV0.getColCount());\n assertEquals(2, resultMatrixCSV0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixCSV0.meanWidthTipText());\n assertTrue(resultMatrixCSV0.getDefaultPrintRowNames());\n assertEquals(2, resultMatrixCSV0.getDefaultStdDevPrec());\n assertFalse(resultMatrixCSV0.getShowAverage());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixCSV0.stdDevWidthTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixCSV0.colNameWidthTipText());\n assertEquals(0, resultMatrixCSV0.getStdDevWidth());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixCSV0.printRowNamesTipText());\n assertEquals(25, resultMatrixCSV0.getDefaultRowNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixCSV0.meanPrecTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultCountWidth());\n assertEquals(1, resultMatrixCSV0.getRowCount());\n assertNotNull(resultMatrixCSV0);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n \n boolean boolean0 = resultMatrixCSV0.getDefaultPrintColNames();\n assertFalse(boolean0);\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixCSV0.removeFilterNameTipText());\n assertTrue(resultMatrixCSV0.getEnumerateColNames());\n assertFalse(resultMatrixCSV0.getShowStdDev());\n assertEquals(0, resultMatrixCSV0.getColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixCSV0.stdDevPrecTipText());\n assertEquals(0, resultMatrixCSV0.getMeanWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixCSV0.showStdDevTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultMeanWidth());\n assertEquals(\"Generates the matrix in CSV ('comma-separated values') format.\", resultMatrixCSV0.globalInfo());\n assertEquals(0, resultMatrixCSV0.getCountWidth());\n assertFalse(resultMatrixCSV0.getPrintColNames());\n assertEquals(0, resultMatrixCSV0.getSignificanceWidth());\n assertTrue(resultMatrixCSV0.getPrintRowNames());\n assertEquals(1, resultMatrixCSV0.getVisibleColCount());\n assertEquals(2, resultMatrixCSV0.getDefaultMeanPrec());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixCSV0.countWidthTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultStdDevWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixCSV0.printColNamesTipText());\n assertEquals(2, resultMatrixCSV0.getMeanPrec());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateColNamesTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixCSV0.significanceWidthTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateRowNamesTipText());\n assertEquals(1, resultMatrixCSV0.getVisibleRowCount());\n assertFalse(resultMatrixCSV0.getDefaultPrintColNames());\n assertFalse(resultMatrixCSV0.getDefaultShowAverage());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixCSV0.rowNameWidthTipText());\n assertTrue(resultMatrixCSV0.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixCSV0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixCSV0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixCSV0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixCSV0.getDefaultColNameWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixCSV0.showAverageTipText());\n assertEquals(25, resultMatrixCSV0.getRowNameWidth());\n assertEquals(\"CSV\", resultMatrixCSV0.getDisplayName());\n assertFalse(resultMatrixCSV0.getEnumerateRowNames());\n assertFalse(resultMatrixCSV0.getRemoveFilterName());\n assertFalse(resultMatrixCSV0.getDefaultShowStdDev());\n assertEquals(1, resultMatrixCSV0.getColCount());\n assertEquals(2, resultMatrixCSV0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixCSV0.meanWidthTipText());\n assertTrue(resultMatrixCSV0.getDefaultPrintRowNames());\n assertEquals(2, resultMatrixCSV0.getDefaultStdDevPrec());\n assertFalse(resultMatrixCSV0.getShowAverage());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixCSV0.stdDevWidthTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixCSV0.colNameWidthTipText());\n assertEquals(0, resultMatrixCSV0.getStdDevWidth());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixCSV0.printRowNamesTipText());\n assertEquals(25, resultMatrixCSV0.getDefaultRowNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixCSV0.meanPrecTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultCountWidth());\n assertEquals(1, resultMatrixCSV0.getRowCount());\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n \n String[] stringArray0 = new String[8];\n stringArray0[0] = \"[\";\n stringArray0[1] = \"[\";\n stringArray0[2] = \"(\";\n try { \n resultMatrixSignificance0.setOptions(stringArray0);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"weka.core.Utils\", e);\n }\n }", "title": "" }, { "docid": "976bbec3c2861705cb0755e8ae917754", "score": "0.57517487", "text": "@Test(timeout = 4000)\n public void test04() throws Throwable {\n NaiveBayesMultinomialText naiveBayesMultinomialText0 = new NaiveBayesMultinomialText();\n AbstractClassifier.makeCopy(naiveBayesMultinomialText0);\n naiveBayesMultinomialText0.m_norm = (-1059.25261848275);\n AbstractClassifier.makeCopies(naiveBayesMultinomialText0, 4135);\n naiveBayesMultinomialText0.getLNorm();\n naiveBayesMultinomialText0.tokenizerTipText();\n double[] doubleArray0 = new double[7];\n doubleArray0[0] = (-1059.25261848275);\n doubleArray0[1] = 1717.267;\n doubleArray0[2] = 1717.267;\n doubleArray0[3] = 2.0;\n doubleArray0[4] = 2.0;\n doubleArray0[5] = 2.0;\n doubleArray0[6] = 1717.267;\n LinkedHashMap<Integer, LinkedHashMap<String, NaiveBayesMultinomialText.Count>> linkedHashMap0 = new LinkedHashMap<Integer, LinkedHashMap<String, NaiveBayesMultinomialText.Count>>();\n OptionHandlerJavadoc optionHandlerJavadoc0 = new OptionHandlerJavadoc();\n String[] stringArray0 = new String[8];\n stringArray0[0] = \"<!-- options-end -->\";\n stringArray0[1] = \"<!-- options-end -->\";\n stringArray0[2] = \"The tokenizing algorithm to use on the strings.\";\n stringArray0[3] = \"The tokenizing algorithm to use on the strings.\";\n stringArray0[4] = \"<!-- options-end -->\";\n stringArray0[5] = \"<!-- options-end -->\";\n stringArray0[6] = \"<!-- options-start -->\";\n stringArray0[7] = \"The tokenizing algorithm to use on the strings.\";\n optionHandlerJavadoc0.setOptions(stringArray0);\n optionHandlerJavadoc0.getOptions();\n linkedHashMap0.remove((Object) \"The tokenizing algorithm to use on the strings.\", (Object) optionHandlerJavadoc0);\n naiveBayesMultinomialText0.m_probOfWordGivenClass = (Map<Integer, LinkedHashMap<String, NaiveBayesMultinomialText.Count>>) linkedHashMap0;\n DenseInstance denseInstance0 = new DenseInstance(1717.267, doubleArray0);\n // Undeclared exception!\n try { \n denseInstance0.classValue();\n fail(\"Expecting exception: RuntimeException\");\n \n } catch(RuntimeException e) {\n //\n // DenseInstance doesn't have access to a dataset!\n //\n verifyException(\"weka.core.AbstractInstance\", e);\n }\n }", "title": "" }, { "docid": "149f21a1d74c6c93710c7b51be57eec5", "score": "0.57514566", "text": "@Test(timeout = 4000)\n public void test56() throws Throwable {\n ResultMatrixSignificance resultMatrixSignificance0 = new ResultMatrixSignificance();\n resultMatrixSignificance0.m_ShowStdDev = true;\n ResultMatrixPlainText resultMatrixPlainText0 = new ResultMatrixPlainText(resultMatrixSignificance0);\n resultMatrixPlainText0.setStdDevWidth(0);\n resultMatrixPlainText0.removeFilterName(\"(\");\n resultMatrixPlainText0.clear();\n resultMatrixPlainText0.getRevision();\n resultMatrixPlainText0.setCountWidth(0);\n resultMatrixPlainText0.getDefaultCountWidth();\n resultMatrixSignificance0.toStringMatrix();\n resultMatrixSignificance0.toStringSummary();\n resultMatrixPlainText0.setStdDevPrec(5);\n ResultMatrixHTML resultMatrixHTML0 = new ResultMatrixHTML(1, 0);\n resultMatrixHTML0.doubleToString(1.0, 0);\n resultMatrixHTML0.m_ShowAverage = true;\n resultMatrixSignificance0.setColNameWidth(0);\n resultMatrixHTML0.toStringMatrix();\n resultMatrixSignificance0.setRowNameWidth(25);\n int int0 = ResultMatrix.SIGNIFICANCE_TIE;\n assertEquals(0, int0);\n }", "title": "" }, { "docid": "1a7f7498fd216f674c80ea454b218572", "score": "0.5742845", "text": "@Test(timeout = 4000)\n public void test17() throws Throwable {\n ResultMatrixSignificance resultMatrixSignificance0 = new ResultMatrixSignificance();\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertNotNull(resultMatrixSignificance0);\n \n resultMatrixSignificance0.m_StdDevPrec = 0;\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n \n resultMatrixSignificance0.m_ShowStdDev = true;\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertTrue(resultMatrixSignificance0.getShowStdDev());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n \n String string0 = resultMatrixSignificance0.doubleToString(0.0, 0);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(\"0.\", string0);\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertTrue(resultMatrixSignificance0.getShowStdDev());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertNotNull(string0);\n \n resultMatrixSignificance0.m_EnumerateRowNames = true;\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertTrue(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertTrue(resultMatrixSignificance0.getShowStdDev());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n \n ResultMatrixGnuPlot resultMatrixGnuPlot0 = new ResultMatrixGnuPlot(resultMatrixSignificance0);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertTrue(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertTrue(resultMatrixSignificance0.getShowStdDev());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertTrue(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevPrec());\n assertFalse(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertTrue(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertEquals(40, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertTrue(resultMatrixGnuPlot0.getShowStdDev());\n assertNotNull(resultMatrixGnuPlot0);\n \n String string1 = resultMatrixGnuPlot0.getRowName(0);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertFalse(string1.equals((Object)string0));\n assertEquals(\"(1) row0\", string1);\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertTrue(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertTrue(resultMatrixSignificance0.getShowStdDev());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertTrue(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevPrec());\n assertFalse(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertTrue(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertEquals(40, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertTrue(resultMatrixGnuPlot0.getShowStdDev());\n assertNotNull(string1);\n \n resultMatrixGnuPlot0.assign(resultMatrixSignificance0);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertTrue(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertTrue(resultMatrixSignificance0.getShowStdDev());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertTrue(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevPrec());\n assertFalse(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertTrue(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertEquals(40, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertTrue(resultMatrixGnuPlot0.getShowStdDev());\n \n Vector<String> vector0 = new Vector<String>();\n assertFalse(vector0.contains(string0));\n assertTrue(vector0.isEmpty());\n assertEquals(\"[]\", vector0.toString());\n assertEquals(10, vector0.capacity());\n assertEquals(0, vector0.size());\n assertNotNull(vector0);\n \n vector0.setSize(1);\n assertFalse(vector0.contains(string0));\n assertEquals(10, vector0.capacity());\n assertFalse(vector0.isEmpty());\n assertEquals(1, vector0.size());\n assertEquals(\"[null]\", vector0.toString());\n \n resultMatrixGnuPlot0.m_HeaderValues = vector0;\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertTrue(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertTrue(resultMatrixSignificance0.getShowStdDev());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertTrue(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevPrec());\n assertFalse(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertTrue(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertEquals(40, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertTrue(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(10, vector0.capacity());\n assertFalse(vector0.isEmpty());\n assertEquals(1, vector0.size());\n assertEquals(\"[null]\", vector0.toString());\n assertEquals(\"[null]\", resultMatrixGnuPlot0.m_HeaderValues.toString());\n assertEquals(10, resultMatrixGnuPlot0.m_HeaderValues.capacity());\n assertFalse(resultMatrixGnuPlot0.m_HeaderValues.isEmpty());\n assertEquals(1, resultMatrixGnuPlot0.m_HeaderValues.size());\n \n boolean boolean0 = vector0.removeAll(resultMatrixGnuPlot0.m_HeaderValues);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertTrue(boolean0);\n assertFalse(vector0.contains(string0));\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertTrue(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertTrue(resultMatrixSignificance0.getShowStdDev());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertTrue(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevPrec());\n assertFalse(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertTrue(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertEquals(40, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertTrue(resultMatrixGnuPlot0.getShowStdDev());\n assertTrue(vector0.isEmpty());\n assertEquals(\"[]\", vector0.toString());\n assertEquals(10, vector0.capacity());\n assertEquals(0, vector0.size());\n \n String string2 = resultMatrixGnuPlot0.getRevision();\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertFalse(string2.equals((Object)string0));\n assertFalse(string2.equals((Object)string1));\n assertEquals(\"8034\", string2);\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertTrue(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertTrue(resultMatrixSignificance0.getShowStdDev());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertTrue(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevPrec());\n assertFalse(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertTrue(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertEquals(40, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertTrue(resultMatrixGnuPlot0.getShowStdDev());\n assertNotNull(string2);\n \n int int0 = resultMatrixGnuPlot0.getMeanWidth();\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(0, int0);\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertTrue(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertTrue(resultMatrixSignificance0.getShowStdDev());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertTrue(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevPrec());\n assertFalse(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertTrue(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertEquals(40, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertTrue(resultMatrixGnuPlot0.getShowStdDev());\n \n boolean boolean1 = vector0.add(\"]\");\n assertTrue(boolean1 == boolean0);\n assertTrue(boolean1);\n assertFalse(vector0.contains(string1));\n assertTrue(vector0.contains(\"]\"));\n assertEquals(\"[]]\", vector0.toString());\n assertEquals(10, vector0.capacity());\n assertFalse(vector0.isEmpty());\n assertEquals(1, vector0.size());\n \n resultMatrixGnuPlot0.m_PrintRowNames = true;\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertTrue(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertTrue(resultMatrixSignificance0.getShowStdDev());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertTrue(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevPrec());\n assertFalse(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertTrue(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertEquals(40, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertTrue(resultMatrixGnuPlot0.getShowStdDev());\n \n resultMatrixSignificance0.setSignificanceWidth(1687);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(1687, resultMatrixSignificance0.getSignificanceWidth());\n assertTrue(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertTrue(resultMatrixSignificance0.getShowStdDev());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n \n boolean boolean2 = vector0.removeAll(resultMatrixGnuPlot0.m_HeaderValues);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertTrue(boolean2 == boolean1);\n assertTrue(boolean2 == boolean0);\n assertTrue(boolean2);\n assertFalse(vector0.contains(string1));\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(1687, resultMatrixSignificance0.getSignificanceWidth());\n assertTrue(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertTrue(resultMatrixSignificance0.getShowStdDev());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertTrue(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevPrec());\n assertFalse(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertTrue(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertEquals(40, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertTrue(resultMatrixGnuPlot0.getShowStdDev());\n assertTrue(vector0.isEmpty());\n assertEquals(\"[]\", vector0.toString());\n assertEquals(10, vector0.capacity());\n assertEquals(0, vector0.size());\n assertTrue(resultMatrixGnuPlot0.m_HeaderValues.isEmpty());\n assertEquals(\"[]\", resultMatrixGnuPlot0.m_HeaderValues.toString());\n assertEquals(10, resultMatrixGnuPlot0.m_HeaderValues.capacity());\n assertEquals(0, resultMatrixGnuPlot0.m_HeaderValues.size());\n \n String string3 = resultMatrixGnuPlot0.getRevision();\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertFalse(string3.equals((Object)string1));\n assertTrue(string3.equals((Object)string2));\n assertFalse(string3.equals((Object)string0));\n assertEquals(\"8034\", string3);\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(1687, resultMatrixSignificance0.getSignificanceWidth());\n assertTrue(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertTrue(resultMatrixSignificance0.getShowStdDev());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertTrue(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevPrec());\n assertFalse(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertTrue(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertEquals(40, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertTrue(resultMatrixGnuPlot0.getShowStdDev());\n assertNotNull(string3);\n \n ResultMatrixLatex resultMatrixLatex0 = new ResultMatrixLatex();\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(\"LaTeX\", resultMatrixLatex0.getDisplayName());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex0.globalInfo());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex0.meanWidthTipText());\n assertEquals(0, resultMatrixLatex0.getSignificanceWidth());\n assertEquals(1, resultMatrixLatex0.getRowCount());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex0.significanceWidthTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex0.showStdDevTipText());\n assertEquals(0, resultMatrixLatex0.getStdDevWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultCountWidth());\n assertTrue(resultMatrixLatex0.getEnumerateColNames());\n assertFalse(resultMatrixLatex0.getShowAverage());\n assertEquals(0, resultMatrixLatex0.getRowNameWidth());\n assertTrue(resultMatrixLatex0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixLatex0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixLatex0.getDefaultMeanWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex0.stdDevWidthTipText());\n assertEquals(1, resultMatrixLatex0.getVisibleRowCount());\n assertFalse(resultMatrixLatex0.getEnumerateRowNames());\n assertFalse(resultMatrixLatex0.getRemoveFilterName());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateRowNamesTipText());\n assertEquals(2, resultMatrixLatex0.getStdDevPrec());\n assertFalse(resultMatrixLatex0.getDefaultShowAverage());\n assertTrue(resultMatrixLatex0.getDefaultPrintRowNames());\n assertEquals(1, resultMatrixLatex0.getColCount());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex0.printRowNamesTipText());\n assertFalse(resultMatrixLatex0.getDefaultShowStdDev());\n assertEquals(2, resultMatrixLatex0.getDefaultMeanPrec());\n assertTrue(resultMatrixLatex0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex0.showAverageTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex0.countWidthTipText());\n assertFalse(resultMatrixLatex0.getDefaultPrintColNames());\n assertEquals(2, resultMatrixLatex0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixLatex0.getCountWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultColNameWidth());\n assertFalse(resultMatrixLatex0.getDefaultRemoveFilterName());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex0.meanPrecTipText());\n assertEquals(1, resultMatrixLatex0.getVisibleColCount());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex0.colNameWidthTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultStdDevWidth());\n assertEquals(0, resultMatrixLatex0.getMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex0.removeFilterNameTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultRowNameWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex0.printColNamesTipText());\n assertEquals(0, resultMatrixLatex0.getColNameWidth());\n assertEquals(2, resultMatrixLatex0.getMeanPrec());\n assertFalse(resultMatrixLatex0.getPrintColNames());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateColNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex0.stdDevPrecTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex0.rowNameWidthTipText());\n assertFalse(resultMatrixLatex0.getShowStdDev());\n assertNotNull(resultMatrixLatex0);\n \n resultMatrixLatex0.clearSummary();\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(\"LaTeX\", resultMatrixLatex0.getDisplayName());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex0.globalInfo());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex0.meanWidthTipText());\n assertEquals(0, resultMatrixLatex0.getSignificanceWidth());\n assertEquals(1, resultMatrixLatex0.getRowCount());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex0.significanceWidthTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex0.showStdDevTipText());\n assertEquals(0, resultMatrixLatex0.getStdDevWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultCountWidth());\n assertTrue(resultMatrixLatex0.getEnumerateColNames());\n assertFalse(resultMatrixLatex0.getShowAverage());\n assertEquals(0, resultMatrixLatex0.getRowNameWidth());\n assertTrue(resultMatrixLatex0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixLatex0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixLatex0.getDefaultMeanWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex0.stdDevWidthTipText());\n assertEquals(1, resultMatrixLatex0.getVisibleRowCount());\n assertFalse(resultMatrixLatex0.getEnumerateRowNames());\n assertFalse(resultMatrixLatex0.getRemoveFilterName());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateRowNamesTipText());\n assertEquals(2, resultMatrixLatex0.getStdDevPrec());\n assertFalse(resultMatrixLatex0.getDefaultShowAverage());\n assertTrue(resultMatrixLatex0.getDefaultPrintRowNames());\n assertEquals(1, resultMatrixLatex0.getColCount());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex0.printRowNamesTipText());\n assertFalse(resultMatrixLatex0.getDefaultShowStdDev());\n assertEquals(2, resultMatrixLatex0.getDefaultMeanPrec());\n assertTrue(resultMatrixLatex0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex0.showAverageTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex0.countWidthTipText());\n assertFalse(resultMatrixLatex0.getDefaultPrintColNames());\n assertEquals(2, resultMatrixLatex0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixLatex0.getCountWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultColNameWidth());\n assertFalse(resultMatrixLatex0.getDefaultRemoveFilterName());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex0.meanPrecTipText());\n assertEquals(1, resultMatrixLatex0.getVisibleColCount());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex0.colNameWidthTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultStdDevWidth());\n assertEquals(0, resultMatrixLatex0.getMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex0.removeFilterNameTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultRowNameWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex0.printColNamesTipText());\n assertEquals(0, resultMatrixLatex0.getColNameWidth());\n assertEquals(2, resultMatrixLatex0.getMeanPrec());\n assertFalse(resultMatrixLatex0.getPrintColNames());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateColNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex0.stdDevPrecTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex0.rowNameWidthTipText());\n assertFalse(resultMatrixLatex0.getShowStdDev());\n \n boolean boolean3 = resultMatrixLatex0.isAverage(0);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertFalse(boolean3 == boolean2);\n assertFalse(boolean3 == boolean1);\n assertFalse(boolean3 == boolean0);\n assertFalse(boolean3);\n assertEquals(\"LaTeX\", resultMatrixLatex0.getDisplayName());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex0.globalInfo());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex0.meanWidthTipText());\n assertEquals(0, resultMatrixLatex0.getSignificanceWidth());\n assertEquals(1, resultMatrixLatex0.getRowCount());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex0.significanceWidthTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex0.showStdDevTipText());\n assertEquals(0, resultMatrixLatex0.getStdDevWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultCountWidth());\n assertTrue(resultMatrixLatex0.getEnumerateColNames());\n assertFalse(resultMatrixLatex0.getShowAverage());\n assertEquals(0, resultMatrixLatex0.getRowNameWidth());\n assertTrue(resultMatrixLatex0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixLatex0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixLatex0.getDefaultMeanWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex0.stdDevWidthTipText());\n assertEquals(1, resultMatrixLatex0.getVisibleRowCount());\n assertFalse(resultMatrixLatex0.getEnumerateRowNames());\n assertFalse(resultMatrixLatex0.getRemoveFilterName());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateRowNamesTipText());\n assertEquals(2, resultMatrixLatex0.getStdDevPrec());\n assertFalse(resultMatrixLatex0.getDefaultShowAverage());\n assertTrue(resultMatrixLatex0.getDefaultPrintRowNames());\n assertEquals(1, resultMatrixLatex0.getColCount());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex0.printRowNamesTipText());\n assertFalse(resultMatrixLatex0.getDefaultShowStdDev());\n assertEquals(2, resultMatrixLatex0.getDefaultMeanPrec());\n assertTrue(resultMatrixLatex0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex0.showAverageTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex0.countWidthTipText());\n assertFalse(resultMatrixLatex0.getDefaultPrintColNames());\n assertEquals(2, resultMatrixLatex0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixLatex0.getCountWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultColNameWidth());\n assertFalse(resultMatrixLatex0.getDefaultRemoveFilterName());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex0.meanPrecTipText());\n assertEquals(1, resultMatrixLatex0.getVisibleColCount());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex0.colNameWidthTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultStdDevWidth());\n assertEquals(0, resultMatrixLatex0.getMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex0.removeFilterNameTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultRowNameWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex0.printColNamesTipText());\n assertEquals(0, resultMatrixLatex0.getColNameWidth());\n assertEquals(2, resultMatrixLatex0.getMeanPrec());\n assertFalse(resultMatrixLatex0.getPrintColNames());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateColNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex0.stdDevPrecTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex0.rowNameWidthTipText());\n assertFalse(resultMatrixLatex0.getShowStdDev());\n \n int int1 = ResultMatrix.SIGNIFICANCE_TIE;\n assertTrue(int1 == int0);\n assertEquals(0, int1);\n \n ResultMatrixHTML resultMatrixHTML0 = new ResultMatrixHTML(5211, 0);\n }", "title": "" }, { "docid": "8e3c10ea5484a2207bd630fbae28faf1", "score": "0.5741935", "text": "@Test(timeout = 4000)\n public void test072() throws Throwable {\n ResultMatrixSignificance resultMatrixSignificance0 = new ResultMatrixSignificance();\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertNotNull(resultMatrixSignificance0);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n \n resultMatrixSignificance0.m_RemoveFilterName = true;\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertTrue(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n \n resultMatrixSignificance0.m_StdDevWidth = 2;\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(2, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertTrue(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n \n ResultMatrixPlainText resultMatrixPlainText0 = new ResultMatrixPlainText(0, 1);\n assertFalse(resultMatrixPlainText0.getShowStdDev());\n assertFalse(resultMatrixPlainText0.getShowAverage());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixPlainText0.stdDevWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixPlainText0.significanceWidthTipText());\n assertEquals(\"Plain Text\", resultMatrixPlainText0.getDisplayName());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixPlainText0.showStdDevTipText());\n assertTrue(resultMatrixPlainText0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixPlainText0.getStdDevWidth());\n assertEquals(0, resultMatrixPlainText0.getVisibleColCount());\n assertEquals(1, resultMatrixPlainText0.getRowCount());\n assertTrue(resultMatrixPlainText0.getDefaultPrintRowNames());\n assertTrue(resultMatrixPlainText0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixPlainText0.getEnumerateRowNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixPlainText0.meanWidthTipText());\n assertEquals(2, resultMatrixPlainText0.getStdDevPrec());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixPlainText0.removeFilterNameTipText());\n assertEquals(0, resultMatrixPlainText0.getSignificanceWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixPlainText0.printColNamesTipText());\n assertEquals(0, resultMatrixPlainText0.getDefaultStdDevWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixPlainText0.getColCount());\n assertEquals(5, resultMatrixPlainText0.getCountWidth());\n assertFalse(resultMatrixPlainText0.getDefaultEnumerateRowNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixPlainText0.countWidthTipText());\n assertEquals(0, resultMatrixPlainText0.getDefaultSignificanceWidth());\n assertEquals(25, resultMatrixPlainText0.getDefaultRowNameWidth());\n assertFalse(resultMatrixPlainText0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixPlainText0.getDefaultColNameWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixPlainText0.rowNameWidthTipText());\n assertEquals(2, resultMatrixPlainText0.getDefaultMeanPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixPlainText0.meanPrecTipText());\n assertTrue(resultMatrixPlainText0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixPlainText0.showAverageTipText());\n assertEquals(2, resultMatrixPlainText0.getDefaultStdDevPrec());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateRowNamesTipText());\n assertTrue(resultMatrixPlainText0.getPrintColNames());\n assertFalse(resultMatrixPlainText0.getDefaultShowStdDev());\n assertFalse(resultMatrixPlainText0.getRemoveFilterName());\n assertEquals(\"Generates the output as plain text (for fixed width fonts).\", resultMatrixPlainText0.globalInfo());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixPlainText0.printRowNamesTipText());\n assertFalse(resultMatrixPlainText0.getDefaultShowAverage());\n assertEquals(1, resultMatrixPlainText0.getVisibleRowCount());\n assertEquals(5, resultMatrixPlainText0.getDefaultCountWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixPlainText0.getColNameWidth());\n assertEquals(2, resultMatrixPlainText0.getMeanPrec());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixPlainText0.stdDevPrecTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixPlainText0.colNameWidthTipText());\n assertTrue(resultMatrixPlainText0.getEnumerateColNames());\n assertEquals(25, resultMatrixPlainText0.getRowNameWidth());\n assertEquals(0, resultMatrixPlainText0.getMeanWidth());\n assertNotNull(resultMatrixPlainText0);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n \n String string0 = resultMatrixSignificance0.getColName(23);\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(2, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertTrue(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertNull(string0);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n \n double double0 = resultMatrixPlainText0.getStdDev(409, 388);\n assertEquals(0.0, double0, 0.01);\n assertFalse(resultMatrixPlainText0.getShowStdDev());\n assertFalse(resultMatrixPlainText0.getShowAverage());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixPlainText0.stdDevWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixPlainText0.significanceWidthTipText());\n assertEquals(\"Plain Text\", resultMatrixPlainText0.getDisplayName());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixPlainText0.showStdDevTipText());\n assertTrue(resultMatrixPlainText0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixPlainText0.getStdDevWidth());\n assertEquals(0, resultMatrixPlainText0.getVisibleColCount());\n assertEquals(1, resultMatrixPlainText0.getRowCount());\n assertTrue(resultMatrixPlainText0.getDefaultPrintRowNames());\n assertTrue(resultMatrixPlainText0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixPlainText0.getEnumerateRowNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixPlainText0.meanWidthTipText());\n assertEquals(2, resultMatrixPlainText0.getStdDevPrec());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixPlainText0.removeFilterNameTipText());\n assertEquals(0, resultMatrixPlainText0.getSignificanceWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixPlainText0.printColNamesTipText());\n assertEquals(0, resultMatrixPlainText0.getDefaultStdDevWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixPlainText0.getColCount());\n assertEquals(5, resultMatrixPlainText0.getCountWidth());\n assertFalse(resultMatrixPlainText0.getDefaultEnumerateRowNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixPlainText0.countWidthTipText());\n assertEquals(0, resultMatrixPlainText0.getDefaultSignificanceWidth());\n assertEquals(25, resultMatrixPlainText0.getDefaultRowNameWidth());\n assertFalse(resultMatrixPlainText0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixPlainText0.getDefaultColNameWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixPlainText0.rowNameWidthTipText());\n assertEquals(2, resultMatrixPlainText0.getDefaultMeanPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixPlainText0.meanPrecTipText());\n assertTrue(resultMatrixPlainText0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixPlainText0.showAverageTipText());\n assertEquals(2, resultMatrixPlainText0.getDefaultStdDevPrec());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateRowNamesTipText());\n assertTrue(resultMatrixPlainText0.getPrintColNames());\n assertFalse(resultMatrixPlainText0.getDefaultShowStdDev());\n assertFalse(resultMatrixPlainText0.getRemoveFilterName());\n assertEquals(\"Generates the output as plain text (for fixed width fonts).\", resultMatrixPlainText0.globalInfo());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixPlainText0.printRowNamesTipText());\n assertFalse(resultMatrixPlainText0.getDefaultShowAverage());\n assertEquals(1, resultMatrixPlainText0.getVisibleRowCount());\n assertEquals(5, resultMatrixPlainText0.getDefaultCountWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixPlainText0.getColNameWidth());\n assertEquals(2, resultMatrixPlainText0.getMeanPrec());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixPlainText0.stdDevPrecTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixPlainText0.colNameWidthTipText());\n assertTrue(resultMatrixPlainText0.getEnumerateColNames());\n assertEquals(25, resultMatrixPlainText0.getRowNameWidth());\n assertEquals(0, resultMatrixPlainText0.getMeanWidth());\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n \n int[][] intArray0 = new int[3][0];\n int[] intArray1 = new int[0];\n intArray0[0] = intArray1;\n int[] intArray2 = new int[4];\n assertFalse(intArray2.equals((Object)intArray1));\n \n intArray2[0] = 388;\n intArray2[1] = 392;\n intArray2[3] = 0;\n intArray2[3] = 23;\n intArray0[1] = intArray2;\n int[] intArray3 = new int[3];\n assertFalse(intArray3.equals((Object)intArray1));\n assertFalse(intArray3.equals((Object)intArray2));\n \n intArray3[0] = 1;\n intArray3[1] = 0;\n intArray3[2] = 2;\n resultMatrixSignificance0.setColNameWidth((-110));\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(2, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertTrue(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n \n intArray0[2] = intArray3;\n // Undeclared exception!\n try { \n resultMatrixPlainText0.setRanking(intArray0);\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // 3\n //\n verifyException(\"weka.experiment.ResultMatrix\", e);\n }\n }", "title": "" }, { "docid": "b82be0bc28b9c5e488d29f8223e513a6", "score": "0.57400715", "text": "@Test(timeout = 4000)\n public void test156() throws Throwable {\n ResultMatrixGnuPlot resultMatrixGnuPlot0 = new ResultMatrixGnuPlot();\n ResultMatrixSignificance resultMatrixSignificance0 = new ResultMatrixSignificance(resultMatrixGnuPlot0);\n String[] stringArray0 = new String[9];\n stringArray0[0] = \"\";\n stringArray0[1] = \"*\";\n int[] intArray0 = new int[3];\n resultMatrixSignificance0.m_MeanWidth = 1;\n resultMatrixGnuPlot0.setRowOrder(intArray0);\n intArray0[0] = 126;\n intArray0[1] = 0;\n ResultMatrixLatex resultMatrixLatex0 = null;\n try {\n resultMatrixLatex0 = new ResultMatrixLatex((-3675), 198);\n fail(\"Expecting exception: NegativeArraySizeException\");\n \n } catch(NegativeArraySizeException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"weka.experiment.ResultMatrix\", e);\n }\n }", "title": "" }, { "docid": "e136d2c4508c826a83903fe8ecd6ce17", "score": "0.57400185", "text": "public static void main(String args[])\n {\n\t Random r = new Random();\n\t \n\t\t \n\t\t \n\t\t for(int i=0;i<6;i++)\n\t\t {\n\t\t\t double x=r.nextFloat();\n\t\t\t //System.out.println(x);\n\t\t\t double a = (x * 6) + 1;\n\t\t\t int b= (int) a;\n\t\t\t //System.out.println(b);\n\t\t\t \n\t\t\t System.out.println(\"Occurance : \"+x + \"=\" +b);\n\t\t }\n\t \n\t \n }", "title": "" }, { "docid": "6812b68b46f73e3f7e93812f59a3d245", "score": "0.57365566", "text": "@Test(timeout = 4000)\n public void test092() throws Throwable {\n ResultMatrixSignificance resultMatrixSignificance0 = new ResultMatrixSignificance();\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertNotNull(resultMatrixSignificance0);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n \n resultMatrixSignificance0.m_RemoveFilterName = true;\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertTrue(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n \n resultMatrixSignificance0.m_StdDevWidth = 2;\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(2, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertTrue(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n \n String string0 = resultMatrixSignificance0.padString(\".VT>Y+O\", 2, false);\n assertEquals(\".V\", string0);\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(2, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertTrue(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertNotNull(string0);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n \n ResultMatrixPlainText resultMatrixPlainText0 = new ResultMatrixPlainText(resultMatrixSignificance0);\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(2, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertTrue(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertEquals(1, resultMatrixPlainText0.getVisibleRowCount());\n assertEquals(40, resultMatrixPlainText0.getRowNameWidth());\n assertEquals(2, resultMatrixPlainText0.getStdDevWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixPlainText0.rowNameWidthTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateRowNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixPlainText0.meanPrecTipText());\n assertEquals(5, resultMatrixPlainText0.getDefaultCountWidth());\n assertEquals(2, resultMatrixPlainText0.getDefaultStdDevPrec());\n assertEquals(2, resultMatrixPlainText0.getMeanPrec());\n assertFalse(resultMatrixPlainText0.getDefaultShowStdDev());\n assertFalse(resultMatrixPlainText0.getDefaultShowAverage());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixPlainText0.printRowNamesTipText());\n assertEquals(0, resultMatrixPlainText0.getCountWidth());\n assertEquals(\"Generates the output as plain text (for fixed width fonts).\", resultMatrixPlainText0.globalInfo());\n assertFalse(resultMatrixPlainText0.getPrintColNames());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixPlainText0.colNameWidthTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixPlainText0.showAverageTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixPlainText0.stdDevPrecTipText());\n assertTrue(resultMatrixPlainText0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixPlainText0.getColNameWidth());\n assertEquals(\"Plain Text\", resultMatrixPlainText0.getDisplayName());\n assertEquals(0, resultMatrixPlainText0.getMeanWidth());\n assertTrue(resultMatrixPlainText0.getEnumerateColNames());\n assertFalse(resultMatrixPlainText0.getShowStdDev());\n assertFalse(resultMatrixPlainText0.getShowAverage());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixPlainText0.meanWidthTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixPlainText0.removeFilterNameTipText());\n assertEquals(2, resultMatrixPlainText0.getStdDevPrec());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateColNamesTipText());\n assertEquals(1, resultMatrixPlainText0.getRowCount());\n assertEquals(0, resultMatrixPlainText0.getSignificanceWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixPlainText0.stdDevWidthTipText());\n assertTrue(resultMatrixPlainText0.getRemoveFilterName());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixPlainText0.significanceWidthTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixPlainText0.printColNamesTipText());\n assertTrue(resultMatrixPlainText0.getDefaultEnumerateColNames());\n assertEquals(1, resultMatrixPlainText0.getColCount());\n assertFalse(resultMatrixPlainText0.getEnumerateRowNames());\n assertEquals(1, resultMatrixPlainText0.getVisibleColCount());\n assertEquals(0, resultMatrixPlainText0.getDefaultStdDevWidth());\n assertTrue(resultMatrixPlainText0.getPrintRowNames());\n assertTrue(resultMatrixPlainText0.getDefaultPrintRowNames());\n assertEquals(2, resultMatrixPlainText0.getDefaultMeanPrec());\n assertFalse(resultMatrixPlainText0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixPlainText0.showStdDevTipText());\n assertEquals(0, resultMatrixPlainText0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultMeanWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixPlainText0.countWidthTipText());\n assertEquals(25, resultMatrixPlainText0.getDefaultRowNameWidth());\n assertFalse(resultMatrixPlainText0.getDefaultRemoveFilterName());\n assertNotNull(resultMatrixPlainText0);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n \n String string1 = resultMatrixSignificance0.getColName(4);\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(2, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertTrue(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertNull(string1);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n \n double double0 = resultMatrixPlainText0.getStdDev(0, 1);\n assertEquals(0.0, double0, 0.01);\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(2, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertTrue(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertEquals(1, resultMatrixPlainText0.getVisibleRowCount());\n assertEquals(40, resultMatrixPlainText0.getRowNameWidth());\n assertEquals(2, resultMatrixPlainText0.getStdDevWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixPlainText0.rowNameWidthTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateRowNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixPlainText0.meanPrecTipText());\n assertEquals(5, resultMatrixPlainText0.getDefaultCountWidth());\n assertEquals(2, resultMatrixPlainText0.getDefaultStdDevPrec());\n assertEquals(2, resultMatrixPlainText0.getMeanPrec());\n assertFalse(resultMatrixPlainText0.getDefaultShowStdDev());\n assertFalse(resultMatrixPlainText0.getDefaultShowAverage());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixPlainText0.printRowNamesTipText());\n assertEquals(0, resultMatrixPlainText0.getCountWidth());\n assertEquals(\"Generates the output as plain text (for fixed width fonts).\", resultMatrixPlainText0.globalInfo());\n assertFalse(resultMatrixPlainText0.getPrintColNames());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixPlainText0.colNameWidthTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixPlainText0.showAverageTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixPlainText0.stdDevPrecTipText());\n assertTrue(resultMatrixPlainText0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixPlainText0.getColNameWidth());\n assertEquals(\"Plain Text\", resultMatrixPlainText0.getDisplayName());\n assertEquals(0, resultMatrixPlainText0.getMeanWidth());\n assertTrue(resultMatrixPlainText0.getEnumerateColNames());\n assertFalse(resultMatrixPlainText0.getShowStdDev());\n assertFalse(resultMatrixPlainText0.getShowAverage());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixPlainText0.meanWidthTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixPlainText0.removeFilterNameTipText());\n assertEquals(2, resultMatrixPlainText0.getStdDevPrec());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateColNamesTipText());\n assertEquals(1, resultMatrixPlainText0.getRowCount());\n assertEquals(0, resultMatrixPlainText0.getSignificanceWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixPlainText0.stdDevWidthTipText());\n assertTrue(resultMatrixPlainText0.getRemoveFilterName());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixPlainText0.significanceWidthTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixPlainText0.printColNamesTipText());\n assertTrue(resultMatrixPlainText0.getDefaultEnumerateColNames());\n assertEquals(1, resultMatrixPlainText0.getColCount());\n assertFalse(resultMatrixPlainText0.getEnumerateRowNames());\n assertEquals(1, resultMatrixPlainText0.getVisibleColCount());\n assertEquals(0, resultMatrixPlainText0.getDefaultStdDevWidth());\n assertTrue(resultMatrixPlainText0.getPrintRowNames());\n assertTrue(resultMatrixPlainText0.getDefaultPrintRowNames());\n assertEquals(2, resultMatrixPlainText0.getDefaultMeanPrec());\n assertFalse(resultMatrixPlainText0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixPlainText0.showStdDevTipText());\n assertEquals(0, resultMatrixPlainText0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultMeanWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixPlainText0.countWidthTipText());\n assertEquals(25, resultMatrixPlainText0.getDefaultRowNameWidth());\n assertFalse(resultMatrixPlainText0.getDefaultRemoveFilterName());\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n \n String string2 = resultMatrixPlainText0.toStringRanking();\n assertFalse(string2.equals((Object)string0));\n assertEquals(\"-ranking data not set-\", string2);\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(2, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertTrue(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertEquals(1, resultMatrixPlainText0.getVisibleRowCount());\n assertEquals(40, resultMatrixPlainText0.getRowNameWidth());\n assertEquals(2, resultMatrixPlainText0.getStdDevWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixPlainText0.rowNameWidthTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateRowNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixPlainText0.meanPrecTipText());\n assertEquals(5, resultMatrixPlainText0.getDefaultCountWidth());\n assertEquals(2, resultMatrixPlainText0.getDefaultStdDevPrec());\n assertEquals(2, resultMatrixPlainText0.getMeanPrec());\n assertFalse(resultMatrixPlainText0.getDefaultShowStdDev());\n assertFalse(resultMatrixPlainText0.getDefaultShowAverage());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixPlainText0.printRowNamesTipText());\n assertEquals(0, resultMatrixPlainText0.getCountWidth());\n assertEquals(\"Generates the output as plain text (for fixed width fonts).\", resultMatrixPlainText0.globalInfo());\n assertFalse(resultMatrixPlainText0.getPrintColNames());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixPlainText0.colNameWidthTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixPlainText0.showAverageTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixPlainText0.stdDevPrecTipText());\n assertTrue(resultMatrixPlainText0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixPlainText0.getColNameWidth());\n assertEquals(\"Plain Text\", resultMatrixPlainText0.getDisplayName());\n assertEquals(0, resultMatrixPlainText0.getMeanWidth());\n assertTrue(resultMatrixPlainText0.getEnumerateColNames());\n assertFalse(resultMatrixPlainText0.getShowStdDev());\n assertFalse(resultMatrixPlainText0.getShowAverage());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixPlainText0.meanWidthTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixPlainText0.removeFilterNameTipText());\n assertEquals(2, resultMatrixPlainText0.getStdDevPrec());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateColNamesTipText());\n assertEquals(1, resultMatrixPlainText0.getRowCount());\n assertEquals(0, resultMatrixPlainText0.getSignificanceWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixPlainText0.stdDevWidthTipText());\n assertTrue(resultMatrixPlainText0.getRemoveFilterName());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixPlainText0.significanceWidthTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixPlainText0.printColNamesTipText());\n assertTrue(resultMatrixPlainText0.getDefaultEnumerateColNames());\n assertEquals(1, resultMatrixPlainText0.getColCount());\n assertFalse(resultMatrixPlainText0.getEnumerateRowNames());\n assertEquals(1, resultMatrixPlainText0.getVisibleColCount());\n assertEquals(0, resultMatrixPlainText0.getDefaultStdDevWidth());\n assertTrue(resultMatrixPlainText0.getPrintRowNames());\n assertTrue(resultMatrixPlainText0.getDefaultPrintRowNames());\n assertEquals(2, resultMatrixPlainText0.getDefaultMeanPrec());\n assertFalse(resultMatrixPlainText0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixPlainText0.showStdDevTipText());\n assertEquals(0, resultMatrixPlainText0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultMeanWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixPlainText0.countWidthTipText());\n assertEquals(25, resultMatrixPlainText0.getDefaultRowNameWidth());\n assertFalse(resultMatrixPlainText0.getDefaultRemoveFilterName());\n assertNotNull(string2);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n \n resultMatrixPlainText0.clearRanking();\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(2, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertTrue(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertEquals(1, resultMatrixPlainText0.getVisibleRowCount());\n assertEquals(40, resultMatrixPlainText0.getRowNameWidth());\n assertEquals(2, resultMatrixPlainText0.getStdDevWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixPlainText0.rowNameWidthTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateRowNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixPlainText0.meanPrecTipText());\n assertEquals(5, resultMatrixPlainText0.getDefaultCountWidth());\n assertEquals(2, resultMatrixPlainText0.getDefaultStdDevPrec());\n assertEquals(2, resultMatrixPlainText0.getMeanPrec());\n assertFalse(resultMatrixPlainText0.getDefaultShowStdDev());\n assertFalse(resultMatrixPlainText0.getDefaultShowAverage());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixPlainText0.printRowNamesTipText());\n assertEquals(0, resultMatrixPlainText0.getCountWidth());\n assertEquals(\"Generates the output as plain text (for fixed width fonts).\", resultMatrixPlainText0.globalInfo());\n assertFalse(resultMatrixPlainText0.getPrintColNames());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixPlainText0.colNameWidthTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixPlainText0.showAverageTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixPlainText0.stdDevPrecTipText());\n assertTrue(resultMatrixPlainText0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixPlainText0.getColNameWidth());\n assertEquals(\"Plain Text\", resultMatrixPlainText0.getDisplayName());\n assertEquals(0, resultMatrixPlainText0.getMeanWidth());\n assertTrue(resultMatrixPlainText0.getEnumerateColNames());\n assertFalse(resultMatrixPlainText0.getShowStdDev());\n assertFalse(resultMatrixPlainText0.getShowAverage());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixPlainText0.meanWidthTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixPlainText0.removeFilterNameTipText());\n assertEquals(2, resultMatrixPlainText0.getStdDevPrec());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateColNamesTipText());\n assertEquals(1, resultMatrixPlainText0.getRowCount());\n assertEquals(0, resultMatrixPlainText0.getSignificanceWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixPlainText0.stdDevWidthTipText());\n assertTrue(resultMatrixPlainText0.getRemoveFilterName());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixPlainText0.significanceWidthTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixPlainText0.printColNamesTipText());\n assertTrue(resultMatrixPlainText0.getDefaultEnumerateColNames());\n assertEquals(1, resultMatrixPlainText0.getColCount());\n assertFalse(resultMatrixPlainText0.getEnumerateRowNames());\n assertEquals(1, resultMatrixPlainText0.getVisibleColCount());\n assertEquals(0, resultMatrixPlainText0.getDefaultStdDevWidth());\n assertTrue(resultMatrixPlainText0.getPrintRowNames());\n assertTrue(resultMatrixPlainText0.getDefaultPrintRowNames());\n assertEquals(2, resultMatrixPlainText0.getDefaultMeanPrec());\n assertFalse(resultMatrixPlainText0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixPlainText0.showStdDevTipText());\n assertEquals(0, resultMatrixPlainText0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultMeanWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixPlainText0.countWidthTipText());\n assertEquals(25, resultMatrixPlainText0.getDefaultRowNameWidth());\n assertFalse(resultMatrixPlainText0.getDefaultRemoveFilterName());\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n \n boolean boolean0 = resultMatrixPlainText0.getRowHidden(2);\n assertFalse(boolean0);\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(2, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertTrue(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertEquals(1, resultMatrixPlainText0.getVisibleRowCount());\n assertEquals(40, resultMatrixPlainText0.getRowNameWidth());\n assertEquals(2, resultMatrixPlainText0.getStdDevWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixPlainText0.rowNameWidthTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateRowNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixPlainText0.meanPrecTipText());\n assertEquals(5, resultMatrixPlainText0.getDefaultCountWidth());\n assertEquals(2, resultMatrixPlainText0.getDefaultStdDevPrec());\n assertEquals(2, resultMatrixPlainText0.getMeanPrec());\n assertFalse(resultMatrixPlainText0.getDefaultShowStdDev());\n assertFalse(resultMatrixPlainText0.getDefaultShowAverage());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixPlainText0.printRowNamesTipText());\n assertEquals(0, resultMatrixPlainText0.getCountWidth());\n assertEquals(\"Generates the output as plain text (for fixed width fonts).\", resultMatrixPlainText0.globalInfo());\n assertFalse(resultMatrixPlainText0.getPrintColNames());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixPlainText0.colNameWidthTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixPlainText0.showAverageTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixPlainText0.stdDevPrecTipText());\n assertTrue(resultMatrixPlainText0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixPlainText0.getColNameWidth());\n assertEquals(\"Plain Text\", resultMatrixPlainText0.getDisplayName());\n assertEquals(0, resultMatrixPlainText0.getMeanWidth());\n assertTrue(resultMatrixPlainText0.getEnumerateColNames());\n assertFalse(resultMatrixPlainText0.getShowStdDev());\n assertFalse(resultMatrixPlainText0.getShowAverage());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixPlainText0.meanWidthTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixPlainText0.removeFilterNameTipText());\n assertEquals(2, resultMatrixPlainText0.getStdDevPrec());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateColNamesTipText());\n assertEquals(1, resultMatrixPlainText0.getRowCount());\n assertEquals(0, resultMatrixPlainText0.getSignificanceWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixPlainText0.stdDevWidthTipText());\n assertTrue(resultMatrixPlainText0.getRemoveFilterName());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixPlainText0.significanceWidthTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixPlainText0.printColNamesTipText());\n assertTrue(resultMatrixPlainText0.getDefaultEnumerateColNames());\n assertEquals(1, resultMatrixPlainText0.getColCount());\n assertFalse(resultMatrixPlainText0.getEnumerateRowNames());\n assertEquals(1, resultMatrixPlainText0.getVisibleColCount());\n assertEquals(0, resultMatrixPlainText0.getDefaultStdDevWidth());\n assertTrue(resultMatrixPlainText0.getPrintRowNames());\n assertTrue(resultMatrixPlainText0.getDefaultPrintRowNames());\n assertEquals(2, resultMatrixPlainText0.getDefaultMeanPrec());\n assertFalse(resultMatrixPlainText0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixPlainText0.showStdDevTipText());\n assertEquals(0, resultMatrixPlainText0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultMeanWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixPlainText0.countWidthTipText());\n assertEquals(25, resultMatrixPlainText0.getDefaultRowNameWidth());\n assertFalse(resultMatrixPlainText0.getDefaultRemoveFilterName());\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n \n boolean boolean1 = resultMatrixSignificance0.isSignificance(0);\n assertTrue(boolean1 == boolean0);\n assertFalse(boolean1);\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(2, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertTrue(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n \n resultMatrixPlainText0.assign(resultMatrixSignificance0);\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(2, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertTrue(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertEquals(1, resultMatrixPlainText0.getVisibleRowCount());\n assertEquals(40, resultMatrixPlainText0.getRowNameWidth());\n assertEquals(2, resultMatrixPlainText0.getStdDevWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixPlainText0.rowNameWidthTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateRowNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixPlainText0.meanPrecTipText());\n assertEquals(5, resultMatrixPlainText0.getDefaultCountWidth());\n assertEquals(2, resultMatrixPlainText0.getDefaultStdDevPrec());\n assertEquals(2, resultMatrixPlainText0.getMeanPrec());\n assertFalse(resultMatrixPlainText0.getDefaultShowStdDev());\n assertFalse(resultMatrixPlainText0.getDefaultShowAverage());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixPlainText0.printRowNamesTipText());\n assertEquals(0, resultMatrixPlainText0.getCountWidth());\n assertEquals(\"Generates the output as plain text (for fixed width fonts).\", resultMatrixPlainText0.globalInfo());\n assertFalse(resultMatrixPlainText0.getPrintColNames());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixPlainText0.colNameWidthTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixPlainText0.showAverageTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixPlainText0.stdDevPrecTipText());\n assertTrue(resultMatrixPlainText0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixPlainText0.getColNameWidth());\n assertEquals(\"Plain Text\", resultMatrixPlainText0.getDisplayName());\n assertEquals(0, resultMatrixPlainText0.getMeanWidth());\n assertTrue(resultMatrixPlainText0.getEnumerateColNames());\n assertFalse(resultMatrixPlainText0.getShowStdDev());\n assertFalse(resultMatrixPlainText0.getShowAverage());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixPlainText0.meanWidthTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixPlainText0.removeFilterNameTipText());\n assertEquals(2, resultMatrixPlainText0.getStdDevPrec());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateColNamesTipText());\n assertEquals(1, resultMatrixPlainText0.getRowCount());\n assertEquals(0, resultMatrixPlainText0.getSignificanceWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixPlainText0.stdDevWidthTipText());\n assertTrue(resultMatrixPlainText0.getRemoveFilterName());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixPlainText0.significanceWidthTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixPlainText0.printColNamesTipText());\n assertTrue(resultMatrixPlainText0.getDefaultEnumerateColNames());\n assertEquals(1, resultMatrixPlainText0.getColCount());\n assertFalse(resultMatrixPlainText0.getEnumerateRowNames());\n assertEquals(1, resultMatrixPlainText0.getVisibleColCount());\n assertEquals(0, resultMatrixPlainText0.getDefaultStdDevWidth());\n assertTrue(resultMatrixPlainText0.getPrintRowNames());\n assertTrue(resultMatrixPlainText0.getDefaultPrintRowNames());\n assertEquals(2, resultMatrixPlainText0.getDefaultMeanPrec());\n assertFalse(resultMatrixPlainText0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixPlainText0.showStdDevTipText());\n assertEquals(0, resultMatrixPlainText0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultMeanWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixPlainText0.countWidthTipText());\n assertEquals(25, resultMatrixPlainText0.getDefaultRowNameWidth());\n assertFalse(resultMatrixPlainText0.getDefaultRemoveFilterName());\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n \n ResultMatrixGnuPlot resultMatrixGnuPlot0 = new ResultMatrixGnuPlot();\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertNotNull(resultMatrixGnuPlot0);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n \n String string3 = resultMatrixGnuPlot0.getRevision();\n assertFalse(string3.equals((Object)string0));\n assertFalse(string3.equals((Object)string2));\n assertEquals(\"8034\", string3);\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertNotNull(string3);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n \n String string4 = resultMatrixPlainText0.enumerateColNamesTipText();\n assertFalse(string4.equals((Object)string0));\n assertFalse(string4.equals((Object)string2));\n assertFalse(string4.equals((Object)string3));\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", string4);\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(2, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertTrue(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertEquals(1, resultMatrixPlainText0.getVisibleRowCount());\n assertEquals(40, resultMatrixPlainText0.getRowNameWidth());\n assertEquals(2, resultMatrixPlainText0.getStdDevWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixPlainText0.rowNameWidthTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateRowNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixPlainText0.meanPrecTipText());\n assertEquals(5, resultMatrixPlainText0.getDefaultCountWidth());\n assertEquals(2, resultMatrixPlainText0.getDefaultStdDevPrec());\n assertEquals(2, resultMatrixPlainText0.getMeanPrec());\n assertFalse(resultMatrixPlainText0.getDefaultShowStdDev());\n assertFalse(resultMatrixPlainText0.getDefaultShowAverage());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixPlainText0.printRowNamesTipText());\n assertEquals(0, resultMatrixPlainText0.getCountWidth());\n assertEquals(\"Generates the output as plain text (for fixed width fonts).\", resultMatrixPlainText0.globalInfo());\n assertFalse(resultMatrixPlainText0.getPrintColNames());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixPlainText0.colNameWidthTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixPlainText0.showAverageTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixPlainText0.stdDevPrecTipText());\n assertTrue(resultMatrixPlainText0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixPlainText0.getColNameWidth());\n assertEquals(\"Plain Text\", resultMatrixPlainText0.getDisplayName());\n assertEquals(0, resultMatrixPlainText0.getMeanWidth());\n assertTrue(resultMatrixPlainText0.getEnumerateColNames());\n assertFalse(resultMatrixPlainText0.getShowStdDev());\n assertFalse(resultMatrixPlainText0.getShowAverage());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixPlainText0.meanWidthTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixPlainText0.removeFilterNameTipText());\n assertEquals(2, resultMatrixPlainText0.getStdDevPrec());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateColNamesTipText());\n assertEquals(1, resultMatrixPlainText0.getRowCount());\n assertEquals(0, resultMatrixPlainText0.getSignificanceWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixPlainText0.stdDevWidthTipText());\n assertTrue(resultMatrixPlainText0.getRemoveFilterName());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixPlainText0.significanceWidthTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixPlainText0.printColNamesTipText());\n assertTrue(resultMatrixPlainText0.getDefaultEnumerateColNames());\n assertEquals(1, resultMatrixPlainText0.getColCount());\n assertFalse(resultMatrixPlainText0.getEnumerateRowNames());\n assertEquals(1, resultMatrixPlainText0.getVisibleColCount());\n assertEquals(0, resultMatrixPlainText0.getDefaultStdDevWidth());\n assertTrue(resultMatrixPlainText0.getPrintRowNames());\n assertTrue(resultMatrixPlainText0.getDefaultPrintRowNames());\n assertEquals(2, resultMatrixPlainText0.getDefaultMeanPrec());\n assertFalse(resultMatrixPlainText0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixPlainText0.showStdDevTipText());\n assertEquals(0, resultMatrixPlainText0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultMeanWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixPlainText0.countWidthTipText());\n assertEquals(25, resultMatrixPlainText0.getDefaultRowNameWidth());\n assertFalse(resultMatrixPlainText0.getDefaultRemoveFilterName());\n assertNotNull(string4);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n \n ResultMatrixLatex resultMatrixLatex0 = new ResultMatrixLatex(0, 1);\n assertEquals(0, resultMatrixLatex0.getDefaultRowNameWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateRowNamesTipText());\n assertFalse(resultMatrixLatex0.getDefaultEnumerateRowNames());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex0.rowNameWidthTipText());\n assertEquals(1, resultMatrixLatex0.getVisibleRowCount());\n assertFalse(resultMatrixLatex0.getEnumerateRowNames());\n assertEquals(2, resultMatrixLatex0.getMeanPrec());\n assertFalse(resultMatrixLatex0.getPrintColNames());\n assertFalse(resultMatrixLatex0.getDefaultShowStdDev());\n assertFalse(resultMatrixLatex0.getDefaultShowAverage());\n assertFalse(resultMatrixLatex0.getDefaultPrintColNames());\n assertTrue(resultMatrixLatex0.getPrintRowNames());\n assertTrue(resultMatrixLatex0.getDefaultPrintRowNames());\n assertEquals(0, resultMatrixLatex0.getSignificanceWidth());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex0.globalInfo());\n assertEquals(2, resultMatrixLatex0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixLatex0.getCountWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex0.showStdDevTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultStdDevWidth());\n assertFalse(resultMatrixLatex0.getDefaultRemoveFilterName());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex0.countWidthTipText());\n assertEquals(0, resultMatrixLatex0.getColCount());\n assertEquals(0, resultMatrixLatex0.getDefaultSignificanceWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex0.removeFilterNameTipText());\n assertEquals(0, resultMatrixLatex0.getMeanWidth());\n assertEquals(0, resultMatrixLatex0.getVisibleColCount());\n assertEquals(0, resultMatrixLatex0.getColNameWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultMeanWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex0.stdDevWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex0.significanceWidthTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex0.printColNamesTipText());\n assertEquals(2, resultMatrixLatex0.getStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex0.stdDevPrecTipText());\n assertFalse(resultMatrixLatex0.getRemoveFilterName());\n assertFalse(resultMatrixLatex0.getShowStdDev());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateColNamesTipText());\n assertEquals(\"LaTeX\", resultMatrixLatex0.getDisplayName());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex0.meanWidthTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex0.showAverageTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex0.printRowNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex0.meanPrecTipText());\n assertEquals(2, resultMatrixLatex0.getDefaultStdDevPrec());\n assertEquals(1, resultMatrixLatex0.getRowCount());\n assertEquals(0, resultMatrixLatex0.getDefaultCountWidth());\n assertTrue(resultMatrixLatex0.getDefaultEnumerateColNames());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex0.colNameWidthTipText());\n assertFalse(resultMatrixLatex0.getShowAverage());\n assertEquals(0, resultMatrixLatex0.getStdDevWidth());\n assertEquals(0, resultMatrixLatex0.getRowNameWidth());\n assertTrue(resultMatrixLatex0.getEnumerateColNames());\n assertNotNull(resultMatrixLatex0);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n \n // Undeclared exception!\n try { \n resultMatrixLatex0.toStringMatrix();\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // 0\n //\n verifyException(\"weka.experiment.ResultMatrix\", e);\n }\n }", "title": "" }, { "docid": "0aa0fe58a30ca1e83c7bf060c20ab536", "score": "0.5733629", "text": "@Test(timeout = 4000)\n public void test20() throws Throwable {\n Discretize discretize0 = new Discretize(\"modulo\");\n double[][] doubleArray0 = new double[0][9];\n discretize0.m_CutPoints = doubleArray0;\n // Undeclared exception!\n try { \n discretize0.getCutPoints(53);\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // 53\n //\n verifyException(\"weka.filters.unsupervised.attribute.Discretize\", e);\n }\n }", "title": "" }, { "docid": "86f6cd4c13a419f97823cef9f759a740", "score": "0.5732926", "text": "@Test(timeout = 4000)\n public void test19() throws Throwable {\n double[] doubleArray0 = new double[8];\n doubleArray0[0] = 0.0;\n doubleArray0[1] = 100.0;\n doubleArray0[2] = 0.0;\n doubleArray0[3] = 45.0;\n doubleArray0[4] = (-1654.7007184771);\n doubleArray0[5] = 100.0;\n doubleArray0[6] = 1271.8;\n doubleArray0[7] = 100.0;\n InputMappedClassifier inputMappedClassifier0 = new InputMappedClassifier();\n OneR oneR0 = new OneR();\n Capabilities capabilities0 = oneR0.getCapabilities();\n TestInstances.forCapabilities(capabilities0);\n TestInstances testInstances0 = TestInstances.forCapabilities(capabilities0);\n Instances instances0 = testInstances0.generate();\n J48.main(testInstances0.DEFAULT_WORDS);\n RandomCommittee randomCommittee0 = new RandomCommittee();\n Random.setNextRandom(2818);\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.toSummaryString(\"@relation\", true);\n evaluation0.toCumulativeMarginDistributionString();\n GaussianProcesses gaussianProcesses0 = new GaussianProcesses();\n SparseInstance sparseInstance0 = null;\n try {\n sparseInstance0 = new SparseInstance((-1132887188));\n fail(\"Expecting exception: NegativeArraySizeException\");\n \n } catch(NegativeArraySizeException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"weka.core.SparseInstance\", e);\n }\n }", "title": "" } ]
8e4e0e882dfeda4d264b47e010b63f36
Attempts to load the specified filename from the local file system as a dynamic library. The filename argument must be a complete path name.
[ { "docid": "b0c45cb9844b83cdc1abba8c819a5105", "score": "0.56086755", "text": "protected boolean canLoad(String pathToLibrary)\n {\n try\n {\n System.load(pathToLibrary);\n\n return true;\n }\n catch (Throwable t)\n {\n Logging.logger().finest(WWUtil.extractExceptionReason(t));\n }\n return false;\n }", "title": "" } ]
[ { "docid": "cbbca6a690e391c1d15954434a29b5fc", "score": "0.66408926", "text": "public static org.irisa.triskell.MT.BasicMTL.BasicMTLTLL.Java.Library load(\n String Filename)\n {\njava.io.ObjectInputStream in;\n\t\torg.irisa.triskell.MT.BasicMTL.BasicMTLTLL.Java.Library Lib=null;\n\t\ttry { in=new java.io.ObjectInputStream(new java.io.FileInputStream(Filename));\n\t\t\t\t\t Lib=(org.irisa.triskell.MT.BasicMTL.BasicMTLTLL.Java.Library)in.readObject();\n\t\t\t\t\t in.close();\n\t\t\t } catch(Exception e) {} //System.err.println(\"Load: inputstream problem=>\"+Filename); }\t\n return(Lib);\n }", "title": "" }, { "docid": "06d527c1998e624ddc732165ae834c81", "score": "0.6511222", "text": "public static IR loadFileByName(String filename) {\n try {\n File fileIn = new File(filename);\n FileInputStream fileInputStream = new FileInputStream(fileIn);\n return loadFile(fileInputStream);\n } catch (Exception e) {\n return null;\n }\n }", "title": "" }, { "docid": "2e0b751cad7ea25d24bf9497986baca9", "score": "0.6059944", "text": "String load(String fName) throws Exception;", "title": "" }, { "docid": "19dd81942b43cc4ec3da27727900bee2", "score": "0.599398", "text": "@Override\n\t\tpublic void Load(String filename) {\n\t\t}", "title": "" }, { "docid": "8bf4c70fe358606c8ee4138015eb6df2", "score": "0.58637464", "text": "void load(String path);", "title": "" }, { "docid": "2ffcd66abf76f865a550a71e65774f75", "score": "0.58398134", "text": "private void load(String filename) {\r\n try {\r\n load(new FileInputStream(filename), filename);\r\n } catch (FileNotFoundException e) {\r\n e.printStackTrace();\r\n }\r\n }", "title": "" }, { "docid": "4a0f45fc53dca94ffe298ad6b10d8295", "score": "0.5811919", "text": "public void loadROM(String fileName);", "title": "" }, { "docid": "7a506c567ab01554a5c51ec670e820ea", "score": "0.57872087", "text": "public static native int openFile(String filename);", "title": "" }, { "docid": "9966aad69b331d6a56004105a3dcbcb8", "score": "0.5652301", "text": "private static final boolean loadFromResource(boolean optimized) {\n String resourceName = getResourceName(optimized);\n if (resourceName == null) return false;\n URL resource = NativeBigInteger.class.getClassLoader().getResource(resourceName);\n if (resource == null) {\n if (_doLog)\n System.err.println(\"NOTICE: Resource name [\" + resourceName + \"] was not found\");\n return false;\n }\n \n File outFile = null;\n try {\n InputStream libStream = resource.openStream();\n outFile = File.createTempFile(\"jbigi\", \"lib.tmp\");\n FileOutputStream fos = new FileOutputStream(outFile);\n byte buf[] = new byte[4096*1024];\n while (true) {\n int read = libStream.read(buf);\n if (read < 0) break;\n fos.write(buf, 0, read);\n }\n fos.close();\n System.load(outFile.getAbsolutePath()); //System.load requires an absolute path to the lib\n return true;\n } catch (UnsatisfiedLinkError ule) {\n if (_doLog) {\n System.err.println(\"ERROR: The resource \" + resourceName \n + \" was not a valid library for this platform\");\n ule.printStackTrace();\n }\n return false;\n } catch (IOException ioe) {\n if (_doLog) {\n System.err.println(\"ERROR: Problem writing out the temporary native library data\");\n ioe.printStackTrace();\n }\n return false;\n } finally {\n if (outFile != null) {\n outFile.deleteOnExit();\n }\n }\n }", "title": "" }, { "docid": "36afdcf099405dcd559e2c5eb7846107", "score": "0.56491166", "text": "public void loadStr(String str, String filename) throws Exceptions.OsoException {\n ffiPolar.load(str, filename);\n checkInlineQueries();\n }", "title": "" }, { "docid": "9d8f07c25419d0554893706caf736ef5", "score": "0.5642955", "text": "@sun.reflect.CallerSensitive\npublic static void load(String pathName) {\n\tSecurityManager smngr = System.getSecurityManager();\n\tif (smngr != null)\n\t\tsmngr.checkLink(pathName);\n\tClassLoader.loadLibraryWithPath(pathName, ClassLoader.callerClassLoader(), null);\n}", "title": "" }, { "docid": "614ac3248ad35f0959b67f0a945e83eb", "score": "0.56129646", "text": "public static void loadJniLib(String name, File dirPath) {\n final String filename;\n switch (CURRENT_PLATFORM) {\n case UNKNOWN:\n throw new CtzJniException(\"Cannot determine platform, os.name: [\" + getProperty(\"os.name\") + \"],\" +\n \" os.arch: [\" + getProperty(\"os.arch\") + \"]\");\n default:\n filename = name + \"-\" + CURRENT_PLATFORM.getClassifier() + \".\" + CURRENT_PLATFORM.getType();\n }\n File target = new File(dirPath, filename);\n if (!(target.exists() && target.isFile())) throw new CtzJniException(\"File not found: [\" + target.getPath() + \"]\");\n try {\n System.load(target.getPath());\n } catch (Exception e) {\n throw new CtzJniException(e);\n } catch (Error e) {\n throw new CtzJniException(e);\n }\n }", "title": "" }, { "docid": "017574d929028ab09a750ef1fbb8053c", "score": "0.55568385", "text": "public static Object objectLoader(String filename) throws IOException, ClassNotFoundException {\n\t\t// Creat file input stream\n\t\tFileInputStream fileInStr = new FileInputStream(filename);\n\t\t// Create object input steam\n\t\tObjectInputStream objInStr = new ObjectInputStream(fileInStr);\n\t\tObject obj = (Object) objInStr.readObject();\n\t\t// Closing all streams\n\t\tobjInStr.close();\n\t\tfileInStr.close();\n\t\tSystem.out.printf(\"Deserialized data - \" + filename); // Printing message plus file name that was saved\n\t\treturn obj;\n\t}", "title": "" }, { "docid": "ce8d777f6cdeac07809a899697df79a0", "score": "0.55427295", "text": "public File resolveDdsFile(String bundleId, String filename) {\n\t\ttry {\n\t\t\tBundle bundle = Platform.getBundle(bundleId);\n\t\t\tPath path = new Path(filename);\n\t\t\tURL bndlUrl = FileLocator.find(bundle, path, null);\n\t\t\tif (bndlUrl == null)\n\t\t\t\tthrow new IOException(\"FileLocator could not find \\\"\" + filename + \"\\\" in \" + bundle);\n\t\t\tURL fileUrl = FileLocator.toFileURL(bndlUrl);\n\t\t\treturn new File(fileUrl.getFile());\n\t\t} catch (Throwable t) {\n\t\t\tlogger.error(\"error resolving file \" + filename + \": \" + t.getMessage());\n\t\t}\n\t\treturn null;\n\t}", "title": "" }, { "docid": "99902ae43d4f610a8f39c329b0adbc7f", "score": "0.55384094", "text": "public boolean load(String filename)\n\t{\n\t\tloader.setFilename(filename);\n\t\tif(!loader.load(errorList))\n\t\t{\n\t\t\tprintAndClearErrors();\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\tString src = loader.get();\n\t\t\n\t\tif(!compiler.compile(src,errorList))\n\t\t{\n\t\t\tprintAndClearErrors();\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\treturn true;\n\t}", "title": "" }, { "docid": "d567ca9effef019b87c8ab7f72149b66", "score": "0.5519395", "text": "public void load(String filename){\n\t\tDecoder p1 = new Decoder();\n\t\ttry{\n\t\t\tp1.decode(filename,track.getPath());\n\t\t\tplayer = Manager.createRealizedPlayer(track.toURL());\n\t\t}catch(Exception e){e.printStackTrace();}\n\t}", "title": "" }, { "docid": "95a93a49b8bbb7c4746cd914939573a3", "score": "0.548697", "text": "public interface LibLoader {\n void loadLibrary(String libName) throws UnsatisfiedLinkError,\n SecurityException;\n}", "title": "" }, { "docid": "b0053e1a0c74d87072844a793309e629", "score": "0.5464877", "text": "private void loadDVDLibrary(String type) {\n\n String path = \"C:/DVDLibrary/temp\";\n File dirPath = new File(path);\n String fileName = \"\";\n File file = new File(fileName);\n String currentLine = \"\";\n if (type.equalsIgnoreCase(\"manual\")) {\n do {\n fileName = cio.promptForString(\"Enter file name: \");\n file = new File(path + \"/\" + fileName);\n if (!file.exists()) {\n cio.prompt(\"\\nInvalid File Name\\n\\nCurrent Files:\\n\");\n String[] files = dirPath.list();\n for (String f : files) {\n cio.prompt(\"\\t\" + f);\n }\n }\n } while (!file.exists());\n } else {\n fileName = \"dvdLibrary.txt\";\n libraryOpen = true;\n }\n\n try {\n Scanner sc = new Scanner(\n new BufferedReader(new FileReader(path + \"/\" + fileName)));\n // go through the file line by line\n while (sc.hasNext()) {\n currentLine = sc.nextLine();\n DVD d = decode(currentLine);\n dvdLibrary.add(d);\n }\n } catch (FileNotFoundException ex) {\n Logger.getLogger(DVDLibraryV2Impl.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "title": "" }, { "docid": "37e86cddcd4cfafe56253eabd3c11d31", "score": "0.5454886", "text": "private static final boolean loadGeneric(boolean optimized) {\n try {\n \tString name = getMiddleName(optimized);\n \tif(name == null)\n \t\treturn false;\n System.loadLibrary(name);\n return true;\n } catch (UnsatisfiedLinkError ule) {\n return false;\n }\n }", "title": "" }, { "docid": "091af0a7adbe991c505463fabac4f378", "score": "0.5450192", "text": "public static File locateFile(String filename) {\n\t\tFile file = getExternalFile(filename);\n\t\t\n\t\tif (file.exists())\n\t\t\tlog.info(\"Located external \" + filename + \" at: \" + file.getAbsolutePath());\n\t\telse if (JAR_PATH != null)\n\t\t\tfile = getJarBundledFile(filename);\n\t\telse\n\t\t\tfile = getLooseBundledFile(filename);\n\t\t\n\t\treturn file;\n\t}", "title": "" }, { "docid": "32d2c4ebd405c347408073ec9dba2583", "score": "0.5441161", "text": "@NonNull\n Resource loadFileAsResource(@NonNull String fileName);", "title": "" }, { "docid": "fe15c9c87c245b2b3b4288abbac63bf2", "score": "0.5433918", "text": "public boolean loadLib(String name) {\n try {\n System.loadLibrary(name);\n Log.i(\"\", \"Library \" + name + \" loaded\");\n return true;\n }\n catch (UnsatisfiedLinkError e)\n {\n Log.d(\"\", \"Cannot load library \\\"\" + name + \"\\\"\");\n e.printStackTrace();\n return false;\n }\n }", "title": "" }, { "docid": "fb368947410382ce626c8fc968800ef7", "score": "0.53566587", "text": "void loadAgentLibrary(String library) throws IOException;", "title": "" }, { "docid": "b50eb7fa7c5209ec8d99ac931e60a653", "score": "0.5345443", "text": "@Override\n public Resource load(String filename) throws FileOpenFailedException, FileNotFoundException {\n Path filePath = Paths.get(rootDir.toString(), filename);\n if (!Files.exists(filePath)) {\n throw new FileNotFoundException(\"Cannot find file '\" + filename + \"'\");\n }\n InputStream inputStream = new FileInputStream(filePath.toFile());\n\n byte content[] = new byte[(int) filePath.toFile().length()];\n try {\n inputStream.read(content);\n } catch (IOException e) {\n throw new FileOpenFailedException(\"Could not open file for reading. \" + filePath.toString());\n } finally {\n try {\n inputStream.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return new ByteArrayResource(content);\n }", "title": "" }, { "docid": "d2544005901a751391936a0fc9635ef2", "score": "0.53130424", "text": "private DeviceApi initDevice(String filename){\n try{\n DeviceApi deviceApi = new DeviceApi();\n ClassLoader classLoader = DeviceAtlas.class.getClassLoader();\n deviceApi.loadDataFromStream(classLoader.getResourceAsStream(filename));\n return deviceApi;\n }\n catch(Exception e){ e.printStackTrace(); }\n return null;\n }", "title": "" }, { "docid": "be36260432936185c3fc00280009e7c7", "score": "0.5308259", "text": "public void load(String file)\r\n/* 95: */ throws FileNotFoundException, IOException, InvalidConfigurationException\r\n/* 96: */ {\r\n/* 97:169 */ Preconditions.checkNotNull(file, \"File cannot be null\");\r\n/* 98: */ \r\n/* 99:171 */ load(new File(file));\r\n/* 100: */ }", "title": "" }, { "docid": "879a4db4de0531275737136c2220af32", "score": "0.5292799", "text": "WidgetClassLoader(String osFilePath) throws FileNotFoundException {\n mOsFilePath = osFilePath;\n mReader = new BufferedReader(new FileReader(osFilePath));\n }", "title": "" }, { "docid": "28aa9606987e1dc5e054ec9207e5694c", "score": "0.5284648", "text": "public void LoadMusic(String filename) {\n try {\n File midiFile = new File(\"resources/\" + filename);\n System.out.println(\"Working Directory = \" + System.getProperty(\"user.dir\"));\n song = MidiSystem.getSequence(midiFile);\n } catch (InvalidMidiDataException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n }", "title": "" }, { "docid": "4407ec50c2ab2db89e6612224218ca77", "score": "0.5284298", "text": "public SystemStorage readFromStorage(String filename) {\n try {\n File file = new File(filename);\n FileReader f = new FileReader(file);\n Gson gson = new Gson();\n String jsonstring = new String(Files.readAllBytes(Paths.get(filename)));\n SystemStorage read = gson.fromJson(jsonstring, SystemStorage.class);\n return read;\n } catch (IOException e) {\n return null;\n }\n\n }", "title": "" }, { "docid": "1f2bf8ece225a08179c87e6b3906bf10", "score": "0.5258623", "text": "public void load(String filename) {\n try {\n BufferedReader rd = null;\n IOException failure = null;\n try {\n rd = new BufferedReader(new FileReader(filename));\n } catch (IOException ex) {\n failure = ex;\n }\n if (!filename.contains(\".\")) {\n rd = new BufferedReader(new FileReader(filename + \".txt\"));\n }\n if (rd == null) throw new RuntimeException(failure.toString());\n read(rd);\n rd.close();\n } catch (IOException ex) {\n throw new RuntimeException(ex.toString());\n }\n }", "title": "" }, { "docid": "3d296e5fa2a3b0c3738ecdce244e9a5f", "score": "0.5221375", "text": "private static String loadSource(String filename) {\n if (!sourceCache.containsKey(filename)) {\n sourceCache.put(filename, Gdx.files.internal(\"core/\"+filename+\".js\").readString());\n }\n\n return sourceCache.get(filename);\n }", "title": "" }, { "docid": "efe41b09e2edead1ce1e769c5fb0f433", "score": "0.5216939", "text": "private void loadFromDisk(String filename) throws IOException {\n Reader r = new FileReader(filename);\n load(r);\n\n }", "title": "" }, { "docid": "f12f652133da543d756729e6c3f8c4cc", "score": "0.52150744", "text": "public static void main(String[] args) {\n Runtime.getRuntime().loadLibrary(\"/home/saket/Desktop/File\");\n\n System.out.println(\"Library Loaded Successfully\");\n }", "title": "" }, { "docid": "bed81851079bafd4b59091acc8ed8b21", "score": "0.5199628", "text": "private FileReader loadFileFromPath(String fileName) {\n FileReader file;\n try {\n file = new FileReader(fileName);\n } catch (FileNotFoundException e) {\n throw new IllegalArgumentException(\"Cannot load given file name\");\n }\n return file;\n }", "title": "" }, { "docid": "2a55429e63d1198bb3ef2e6ca9c50798", "score": "0.5197049", "text": "public T load(File configFile) throws IOException;", "title": "" }, { "docid": "884196d821dc3095ed8521c0c2cb7c97", "score": "0.51551145", "text": "public static void loadFile(AbductionEngineConnection abd, String file) {\n\t\ttry {\n\t\t\tabd.getProxy().loadFile(file);\n\t\t}\n\t\tcatch (FileReadErrorException ex) {\n\t\t\tlog(\"abducer:\" + abd.getEngineName(), \"file read error: \" + ex.filename);\n\t\t}\n\t\tcatch (SyntaxErrorException ex) {\n\t\t\tlog(\"abducer:\" + abd.getEngineName(), \"syntax error: \" + ex.error + \" in \" + ex.filename + \" on line \" + ex.line);\n\t\t}\n\t}", "title": "" }, { "docid": "3cf3e3e57f6881f71d137af54420fbb0", "score": "0.51345724", "text": "public int Open(String filename) throws HandleNotInitializedException, NativeException, Exception\r\n {\r\n if (handle == null)\r\n throw new HandleNotInitializedException(\"Handle is not initialized.\");\r\n\r\n /* Setting the memory with the byte array returned in UTF-8 format */\r\n Pointer fileNamePointer = createPointer(filename);\r\n\r\n /*JNative call */\r\n JNative jnative = new JNative(libraryName, \"MediaInfoA_Open\");\r\n jnative.setRetVal(Type.INT);\r\n jnative.setParameter(0, Type.INT, handle);\r\n jnative.setParameter(1, fileNamePointer);\r\n jnative.invoke();\r\n\r\n /* Retrieving data */\r\n int ret = Integer.parseInt(jnative.getRetVal());\r\n\r\n return ret;\r\n }", "title": "" }, { "docid": "925f48c5dae4a780f27365428cf8261a", "score": "0.5127407", "text": "public void loadState(String fileName);", "title": "" }, { "docid": "de967f82e6a7961c6909f585215cfb02", "score": "0.51203877", "text": "public static synchronized void loadLibraryFromJar(String path, Class<?> loadClass) throws IOException {\n \tFile temp = copyToTempFromJar(path,loadClass);\n System.load(temp.getAbsolutePath());\n }", "title": "" }, { "docid": "eba9733703aadc76b46c7bcabfd48d5b", "score": "0.51200974", "text": "public void loadFile() {\n\t\ttry {\n\t\t\tInputStream in = new BufferedInputStream(new FileInputStream(filename));\n\t\t\tp.load(in);\n\t\t} catch (FileNotFoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "title": "" }, { "docid": "4e20cbdb46efd50a743a984b6f395c7d", "score": "0.5106367", "text": "@Override\r\n\tpublic void load(String path) {\n\t\t\r\n\t}", "title": "" }, { "docid": "08e899800ee5f023e226afe99e4772c5", "score": "0.5102745", "text": "public BufferedReader LoadFile(String filename){\n\t\tBufferedReader br=null;\n\t\ttry {\n\t\t\tFileReader fr = new FileReader(filename);\n\t\t\t br = new BufferedReader(fr);\n\t\t\t\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn br;\n\t}", "title": "" }, { "docid": "f5a21858b2e6c296835d4c5f351a3054", "score": "0.5069946", "text": "public abstract void load();", "title": "" }, { "docid": "f5a21858b2e6c296835d4c5f351a3054", "score": "0.5069946", "text": "public abstract void load();", "title": "" }, { "docid": "73d58b66d1669ad751adc5f175e7d158", "score": "0.50554514", "text": "protected abstract void load();", "title": "" }, { "docid": "f17a29dd57b2bc095dfe7a27ce88560a", "score": "0.50535494", "text": "public abstract void loadDocument(String fileName);", "title": "" }, { "docid": "afdeb840687f265c67028175c1e5546b", "score": "0.50186485", "text": "public static synchronized void forceLoad() throws IOException {\n if (libraryLoaded) {\n return;\n }\n loader =\n new RuntimeLoader<>(\"wpinetjni\", RuntimeLoader.getDefaultExtractionRoot(), WPINetJNI.class);\n loader.loadLibrary();\n libraryLoaded = true;\n }", "title": "" }, { "docid": "0234e15f0fff70559b56ad44c0820ea2", "score": "0.5006152", "text": "void loadGame(File fileToOpen);", "title": "" }, { "docid": "0b40bd779f8b7377f5f5b3262fea35c6", "score": "0.4994709", "text": "public <T> T load(String identifier)\n throws IOException\n {\n FileInputStream fis = null;\n ObjectInputStream is = null;\n\n try\n {\n fis = context.openFileInput(identifier);\n is = new ObjectInputStream(fis);\n T obj = (T) is.readObject();\n return obj;\n }\n catch (IOException | ClassNotFoundException | ClassCastException ex)\n {\n throw new IOException(\"Object deserialization failed\");\n }\n finally\n {\n try\n {\n if (is != null)\n {\n is.close();\n }\n if (fis != null)\n {\n fis.close();\n }\n }\n catch (IOException ex)\n {\n }\n }\n }", "title": "" }, { "docid": "445a8d57b5ea1d596537ac55984ff32a", "score": "0.49942812", "text": "public static Library loadLibrary() {\n try {\n if (!new File(resourcePath + libraryPath).exists()) {\n deleteAllResources();\n return new Library();\n }\n FileInputStream file = new FileInputStream(resourcePath + libraryPath);\n ObjectInputStream objIn = new ObjectInputStream(file);\n return (Library) objIn.readObject();\n }\n catch (Exception e) {\n System.out.println(\"Library not compatible or damaged! Resetting\");\n deleteAllResources();\n return new Library();\n }\n }", "title": "" }, { "docid": "b96af9d5735ea61534a190a12020eae2", "score": "0.49930587", "text": "public static Object readFromGame(String filename) throws IOException, ClassNotFoundException {\n FileHandle file = Gdx.files.internal(DATA_DIR + filename);\n InputStream is = file.read();\n ObjectInputStream ois = new ObjectInputStream(is);\n return ois.readObject();\n }", "title": "" }, { "docid": "dc34f91f284e37d87929d4f609c2b79d", "score": "0.49863377", "text": "public GameEngine runLoadGame(String p_FileName) {\n loadGame(p_FileName);\n return d_loadGameEngine;\n }", "title": "" }, { "docid": "bd9d5fe430cad3bbeb943396a1a5f88d", "score": "0.49802393", "text": "@SuppressWarnings(\"unused\")\n\tpublic static Object load(String fileName)\n\t{\t\n\t\ttry\n\t\t{\n\t\t\t//open file to read\n\t\t\tFileInputStream fileIn = new FileInputStream(fileName);\n\t\t\t//open stream to file\n\t\t\tObjectInputStream in = new ObjectInputStream(fileIn);\n\t\t\t//read contents and cast as specific data type\n\t\t\tObject map = in.readObject();\n\t\t\t//close file streams\n\t\t\tin.close();\n\t\t\tfileIn.close();\n\t\t\t//return loaded data\n\t\t\treturn map;\t\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t\t//fail\n\t\treturn null;\n\t}", "title": "" }, { "docid": "1d15229e78adb89c7bdbd38dcb977e13", "score": "0.49690327", "text": "public boolean load(String fileName) {\n\t\treturn true;\n\t}", "title": "" }, { "docid": "af0ca474d2020e424d1d44fb5ceaadfe", "score": "0.49569288", "text": "@SuppressWarnings(\"unchecked\")\r\n\t\tpublic static LinkedPositionalList<DvdType> readDVDListFromFile(String fileName) throws IOException, ClassNotFoundException\r\n\t\t{\r\n\t\t\ttry {\r\n\t\t\t\tObjectInputStream in = new ObjectInputStream(new FileInputStream(fileName));\r\n\t\t\t\tLinkedPositionalList<DvdType> newDVDList = (LinkedPositionalList<DvdType>) in.readObject();\r\n\t\t\t\treturn newDVDList;\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t\treturn null;\r\n\t\t}", "title": "" }, { "docid": "2cadd114fa8210af4e60fd6fb13ff35b", "score": "0.49504393", "text": "private File getFile(String filename) throws IOException {\r\n File file = new File(filename);\r\n \r\n if ((Thread.currentThread().getContextClassLoader().getResource(filename) == null) \r\n && !file.exists()) {\r\n throw new IOException(\"can not locate \" + filename);\r\n } else {\r\n return file;\r\n }\r\n }", "title": "" }, { "docid": "2f5c93b96554c5517cc8e3457c96befd", "score": "0.49481162", "text": "void loadModel(String fileName);", "title": "" }, { "docid": "9258ebae7ce29bed2d1c424a89f53be8", "score": "0.49357548", "text": "private void loadLibrary() {\n try {\n library = jsonReader.read();\n out.println(\"Loaded your quotes from \" + JSON_FILE_LOCATION);\n } catch (IOException e) {\n out.println(\"Unable to read from file: \" + JSON_FILE_LOCATION);\n }\n }", "title": "" }, { "docid": "3b9f3c51b9e862246165b95e00c801ef", "score": "0.49267027", "text": "public static IData reflect(String filename) throws ServiceException {\n\t return reflect(tundra.support.file.construct(filename));\n\t}", "title": "" }, { "docid": "aaf15f3a835b41785ebc478b2f4c6571", "score": "0.49220306", "text": "void load(String path, PluginLoadCallback callback);", "title": "" }, { "docid": "622e1913a6e61ff3c034033859c6740c", "score": "0.49128383", "text": "public void load(String path, PtinyOSDirector director);", "title": "" }, { "docid": "fc0c4303f4d434f63c94eb6bbc82640e", "score": "0.4910104", "text": "public Object LoadFile(String path) {\n File file = new File(path);\r\n Object loadedInfo = null;\r\n if (file.exists()) {\r\n try {\r\n FileInputStream fis = new FileInputStream(path);\r\n ObjectInputStream ois = new ObjectInputStream(fis);\r\n loadedInfo = ois.readObject();\r\n ois.close();\r\n } catch (FileNotFoundException e) { // This exception shouldn't ever execute as we do file.exists() before the\r\n // try block, however the file may disappear in the meantime, so included\r\n // here as safeguard\r\n e.printStackTrace();\r\n System.out.println(\"File not found.\");\r\n System.out.println(e.getMessage());\r\n } catch (IOException | ClassNotFoundException e){ // Other IO exceptions handled here\r\n e.printStackTrace();\r\n System.out.println(\"Error when opening the file.\");\r\n System.out.println(e.getMessage());\r\n }\r\n }\r\n return loadedInfo;\r\n }", "title": "" }, { "docid": "2b0fd3fe89ab09300fffbcddeaba9e93", "score": "0.49007696", "text": "IPersistenceManager create(String fileName, String pluginName){\n Loader loader = new Loader();\n return (IPersistenceManager) loader.loadClass(fileName,pluginName);\n }", "title": "" }, { "docid": "7c52227e1b3be57095fafc7da23f44ea", "score": "0.49003866", "text": "void load();", "title": "" }, { "docid": "7c52227e1b3be57095fafc7da23f44ea", "score": "0.49003866", "text": "void load();", "title": "" }, { "docid": "7c52227e1b3be57095fafc7da23f44ea", "score": "0.49003866", "text": "void load();", "title": "" }, { "docid": "50c53265c3ccfc6ba7988b2f1c064f0c", "score": "0.48990837", "text": "static public String getFile(String filename) {\n if (filename.length() == 0) {\n return null;\n }\n URL url;\n InputStream stream = null;\n String openMe;\n byte temp[] = new byte[65536]; // 64k, 16k was too small\n \n try {\n // if running as an application, get file from disk\n stream = new FileInputStream(filename);\n \n } catch (Exception e1) { try {\n url = frame.getClass().getResource(filename);\n stream = url.openStream();\n \n } catch (Exception e2) { try {\n // Try to open the param string as a URL\n url = new URL(filename);\n stream = url.openStream();\n \t\n } catch (Exception e3) {\n return null;\n } } }\n \n try {\n int offset = 0;\n while (true) {\n \tint byteCount = stream.read(temp, offset, 1024);\n \tif (byteCount <= 0) break;\n \toffset += byteCount;\n }\n byte program[] = new byte[offset];\n System.arraycopy(temp, 0, program, 0, offset);\n \n //return languageEncode(program);\n // convert the bytes based on the current encoding\n try {\n \tif (encoding == null)\n \t return new String(program);\n \treturn new String(program, encoding);\n } catch (UnsupportedEncodingException e) {\n \te.printStackTrace();\n \tencoding = null;\n \treturn new String(program);\n }\n \n } catch (Exception e) {\n System.err.println(\"problem during download\");\n e.printStackTrace();\n return null;\n }\n }", "title": "" }, { "docid": "0ab5291f0ca54ae7f849638def427ae6", "score": "0.4895638", "text": "public static void load(String filename){\n\t\tentities = load(filename, Entity.class);\n\t}", "title": "" }, { "docid": "37ead571e77b3f52480acdce1c8274ad", "score": "0.48918793", "text": "public void loadImage(String file);", "title": "" }, { "docid": "9e41648bbe6808028b66110c098fee20", "score": "0.48777315", "text": "private void load(String fileNameRelative) throws SortException {\n\t\tString fileName = Environment.getAbsPath(fileNameRelative);\n\t\tFile workingFile = new File(fileName);\n\t\tVector<String> linesVector;\n\n\t\tif (workingFile.exists()) {\n\t\t\ttry {\n\t\t\t\tlinesVector = importFile(fileName);\n\t\t\t} catch (IOException e) {\n\t\t\t\tthrow new SortException(ERR_READ);\n\t\t\t}\n\t\t\tlines = linesVector.toArray(new String[linesVector.size()]);\n\n\t\t} else {\n\t\t\tthrow new SortException(FILE_NOT_FOUND);\n\t\t}\n\t}", "title": "" }, { "docid": "4aa9ebe68e38d51c59e84e0f8982e31f", "score": "0.48702997", "text": "public static Object read(String filename) throws IOException, ClassNotFoundException\n\t{\n\t\tFileInputStream file = new FileInputStream(filename);\n\t\tObjectInputStream in = new ObjectInputStream(file);\n\t\tObject obj = in.readObject();\n\t\tin.close();\n\t\tfile.close();\n\t\treturn obj;\n\t}", "title": "" }, { "docid": "aec8d9a187e173a87b096d52c30b9376", "score": "0.48681659", "text": "public AudioPlayer loadFile(String filename) {\n // this will load the complete audio file into memory\n AudioPlayer ap = new AudioPlayer(filename, sampleRate);\n audioThread.addAudioGenerator(ap);\n // now we need to tell the audiothread\n // to ask the audioplayer for samples\n return ap;\n }", "title": "" }, { "docid": "1a235cbe6c4cbce0ebc1aacb964bce33", "score": "0.4865126", "text": "public SwapFile(String filename) {\n\t\t\tswapf = ThreadedKernel.fileSystem.open(filename, true);\n\n\t\t}", "title": "" }, { "docid": "7b65bb48796e4ac6d927ed5580cb344e", "score": "0.48638508", "text": "public void unrarInit() {\n //if (new File(\"c:\\\\...\"))\n //File urfile = new File(\"c:\\\\windows\\\\unrar.dll\");\n \n }", "title": "" }, { "docid": "e215ec8ec211e6794dc843517139401a", "score": "0.48486403", "text": "private Key loadKey(String filename) throws FileNotFoundException {\r\n\t\tFileInputStream binFile = new FileInputStream(filename);\r\n\t\treturn loadKey(binFile);\r\n\t}", "title": "" }, { "docid": "c11dcc79bf7d86a13780f59606330a6e", "score": "0.48453817", "text": "public interface LoadPath {\n\n /**\n * Returns the contents of a file found in this LoadPath.\n * @param name the name of the file to try to locate.\n * @return the String contents of the found file.\n * @throws LoadError if no file is found.\n */\n String load(String name) throws LoadError;\n\n}", "title": "" }, { "docid": "3c47070b9ac4eb1985f809767b82b2f5", "score": "0.48410967", "text": "public void loadFile(T file) {\n this.file = file;\n }", "title": "" }, { "docid": "8118542363896ce66ba987b543978ec0", "score": "0.4832352", "text": "public abstract void loadModelData(String filename) throws IOException;", "title": "" }, { "docid": "f91a4e8b1198c4e1065088a3691d986a", "score": "0.4829155", "text": "abstract void load();", "title": "" }, { "docid": "39603a51bc66f2da648518b57cca5259", "score": "0.4825573", "text": "private File getFile(String fileName) {\r\n\t\tClassLoader classLoader = getClass().getClassLoader();\r\n\t\tFile file = new File(classLoader.getResource(fileName).getFile());\r\n\t\treturn file;\r\n\t}", "title": "" }, { "docid": "b5b5d0f50ea029c5cbe8ad22dbe4d0c4", "score": "0.48192218", "text": "public LispValue runCompiledFile(final String fileName) throws ParsingException {\n try (final FileInputStream fis = new FileInputStream(fileName);\n final ObjectInputStream dis = new ObjectInputStream(fis)) {\n final SList program = Values.asSList((LispValue) dis.readObject());\n return doRun(program);\n } catch (final Exception e) {\n throw new ParsingException(\"Failed to load compiled file \" + fileName, e, SourceInfo.UNKNOWN);\n }\n }", "title": "" }, { "docid": "61632718562d70a51ed0b4ee9094f444", "score": "0.48141694", "text": "void loadAsset(String path);", "title": "" }, { "docid": "6f4031145b3188b26952c1b759e30c3a", "score": "0.4809336", "text": "@Override\n\tpublic void loadPlatform(String filename) throws IOException, ClassNotFoundException {\n\t\n\t // Initializing array list for each object type.\n\n\t ArrayList<Endorsement> endorsementList;\n\t ArrayList<Comment> commentList;\n\t ArrayList<Post> postList;\n\t ArrayList<Account> accountList;\n\t \n\t try(ObjectInputStream in = new ObjectInputStream(new FileInputStream(filename))){\n\t\t \n\t\t endorsementList = (ArrayList<Endorsement>) in.readObject();\n\t\t Endorsements.setEndorsementList(endorsementList);\n\t\t \n\t\t commentList = (ArrayList<Comment>) in.readObject();\n\t\t Comments.setCommentList(commentList);\n\t\t \n\t\t postList = (ArrayList<Post>) in.readObject();\n\t\t Posts.setPostList(postList);\n\t\t \n\t\t accountList = (ArrayList<Account>) in.readObject();\n\t\t Accounts.setAccountList(accountList);\n\n\t }\n\t \n\t catch (IOException exc) {\n\t \tthrow new IOException(\"Problem experienced when trying to save the store contents to the file\");\n\t }\n\t}", "title": "" }, { "docid": "9f5448fdc0a2a175cc72a1f35a29b7eb", "score": "0.48081776", "text": "void load() throws IOException;", "title": "" }, { "docid": "eb745a6324191357cea83ebad50bba89", "score": "0.47870734", "text": "public static void loadByFullFileName(String fullFileName) {\r\n\r\n\t\tFile pFile = new File(fullFileName);\r\n\t\tFileInputStream pInStream = null;\r\n\t\ttry {\r\n\t\t\tpInStream = new FileInputStream(pFile);\r\n\t\t} catch (FileNotFoundException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\tpros = new Properties();\r\n\t\ttry {\r\n\t\t\tpros.load(pInStream);\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "298113c8d0aa4a59b5846010d07e312d", "score": "0.47846422", "text": "public File getFile(String fileName){\n\t ClassLoader classLoader = new PropertiesLoader().getClass().getClassLoader();\n File file = new File(classLoader.getResource(fileName).getFile());\n\treturn file;\n\t\n}", "title": "" }, { "docid": "6f93d403ba6f184fe160081d9e70597b", "score": "0.47700468", "text": "void loadImage(String fileName) throws IOException;", "title": "" }, { "docid": "c846b26bbd5be3da044c878ac52a3644", "score": "0.47694647", "text": "Object load();", "title": "" }, { "docid": "8dd89e04a6ef56cf127e4ec26bb82989", "score": "0.47617012", "text": "void loadSource();", "title": "" }, { "docid": "3d1cf7f56717e469dbf9a9a86b5984b1", "score": "0.47616562", "text": "ISGV loadState(String file) throws FileNotFoundException, IOException, ClassNotFoundException;", "title": "" }, { "docid": "d4e66d5305b7f09b5c5b23b96c60e7ff", "score": "0.4757219", "text": "public boolean load(String theFileName) {\n\t\tblockDraw = true;\n\t\tclear();\n\t\tSystem.out.println(\"loading..\" + theFileName);\n\t\tString[] myStrings = papplet.loadStrings(theFileName);\n\t\tString myString = \"\";\n\t\tfor (int i = 0; i < myStrings.length; i++) {\n\t\t\tmyString += myStrings[i];\n\t\t}\n\t\tif (myString.length() == 0) {\n\t\t\treturn false;\n\t\t}\n\n\t\ttry {\n\t\t\tThread.sleep(200);\n\t\t} catch (Exception e) {\n\t\t}\n\t\t_myControlP5IOHandler.parse(myString);\n\t\tblockDraw = false;\n\t\treturn true;\n\t}", "title": "" }, { "docid": "bee29e2d71525e5bab23e6ab60720116", "score": "0.4755586", "text": "public void loadFile(String fileName) {\r\n Importer readIn = new Importer(fileName, termsToFind);\r\n setEntries(readIn.readFile());\r\n }", "title": "" }, { "docid": "55f0b72b5f1f5d93e7007b51d571847d", "score": "0.47555283", "text": "private static void load(String name, FileHandle file)\n\t{\n\t\tname = name.toUpperCase(Locale.ROOT);\n\t\t\n\t\ttry {\n\t\t\tTextureRegion myTex = new TextureRegion(new Texture(file));\n\t\t\tmyTex.flip(false, true);\n\t\t\tif(EVars.FILTER)\n\t\t\t\tmyTex.getTexture().setFilter(Texture.TextureFilter.Linear, Texture.TextureFilter.Linear);\n\t\t\ttextures.put(name, myTex);\n\t\t} catch (Exception e) {\n\t\t\tSystem.err.println(\"Failed to load \" + name);\n\t\t}\n\t}", "title": "" }, { "docid": "1731c6e72ccbbb109b3f93690e962633", "score": "0.47444054", "text": "public void loadFile(String fileName, boolean sync) {\n String fileExtension = getExtension(fileName);\n if (mimeFileTypes.containsKey(fileExtension)) {\n assetManager.load(fileName, mimeFileTypes.get(fileExtension));\n } else {\n Gdx.app.error(getClass().getCanonicalName(), \"this file extension does not exits: \" + fileExtension);\n }\n\n if (sync) {\n assetManager.finishLoading();\n }\n\n Gdx.app.log(getClass().getCanonicalName(), \"loading finished for: \" + fileName);\n }", "title": "" }, { "docid": "35fa874ac1a1d59fe60d1d57a77e04e9", "score": "0.4742157", "text": "private void loadFromFile(String fileName) {\n\n try {\n InputStream inputStream = this.openFileInput(fileName);\n if (inputStream != null) {\n ObjectInputStream input = new ObjectInputStream(inputStream);\n boardManager = (BoardManager) input.readObject();\n inputStream.close();\n }\n } catch (FileNotFoundException e) {\n Log.e(\"login activity\", \"File not found: \" + e.toString());\n } catch (IOException e) {\n Log.e(\"login activity\", \"Can not read file: \" + e.toString());\n } catch (ClassNotFoundException e) {\n Log.e(\"login activity\", \"File contained unexpected data type: \" + e.toString());\n }\n }", "title": "" }, { "docid": "e24bc97b3cd95552454854d688cd9097", "score": "0.47395873", "text": "static void restoreFromFile(String filepath) throws IOException, ClassNotFoundException {\n\n }", "title": "" }, { "docid": "c95e273796b17c5d447bf9d5ddc4a3e4", "score": "0.47387117", "text": "protected String loadStringFileFromCurrentPackage(String fileName) {\n\n\t\tInputStream stream = null;\n\t\ttry {\n\t\t\tstream = new FileInputStream(fileName);\n\t\t} catch (FileNotFoundException e1) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te1.printStackTrace();\n\t\t}\n\n\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(stream));\n\t\t// allocate a string builder to add line per line\n\t\tStringBuilder strBuilder = new StringBuilder();\n\n\t\ttry {\n\t\t\tString line = reader.readLine();\n\t\t\t// get text from file, line per line\n\t\t\twhile (line != null) {\n\t\t\t\tstrBuilder.append(line + \"\\n\");\n\t\t\t\tline = reader.readLine();\n\t\t\t}\n\t\t\t// close resources\n\t\t\treader.close();\n\t\t\tstream.close();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\treturn strBuilder.toString();\n\t}", "title": "" }, { "docid": "474004f74fd345c3a2bad75fcd7b4453", "score": "0.4728329", "text": "public void load(String filepath)\n\t{\n\t\ttry\n\t\t{\n\t\t\tBufferedReader bf = new BufferedReader(new FileReader(filepath));\n\t\t\tString sCadena;\n\t\t\tList<String> lista = new ArrayList<String>();\n\t\t\n\t\t\twhile ((sCadena = bf.readLine()) != null) \n\t\t\t{\n\t\t\t\tlista.add(sCadena);\n\t\t\t}\n\t\t\n\t\t\tfromStringList(lista);\n\t\t\n\t\t\tbf.close();\n\t\t}\n\t\tcatch(IOException e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "title": "" }, { "docid": "003e9e4c7955f5b93bdfc004fc7ef324", "score": "0.47244847", "text": "void loadTestNativeLibrary();", "title": "" }, { "docid": "383fd08a7dcb0641e1d237c50f0bad7f", "score": "0.47168866", "text": "static void unpackAndLoadNativeLibrary(String[] libsToTry) {\n\n List<String> errorMessages = new ArrayList<>();\n for (String libToTry : libsToTry) {\n try (InputStream inputStream = NativeClient.class.getResourceAsStream(\n Paths.get(\"/jni\", libToTry).toString())) {\n if (inputStream == null) {\n throw new FileNotFoundException(\"Specified file not in the JAR: \" + libToTry);\n }\n Files.copy(inputStream, Paths.get(NATIVE_LIB_PATH), StandardCopyOption.REPLACE_EXISTING);\n System.load(NATIVE_LIB_PATH);\n return;\n } catch (UnsatisfiedLinkError | Exception e) {\n errorMessages.add(e.getMessage());\n }\n }\n\n for (int i = 0; i < libsToTry.length; ++i) {\n System.err.println(\"Failed to load the native runtime interface client library \" + libsToTry[i] +\n \". Exception: \" + errorMessages.get(i));\n }\n System.exit(-1);\n }", "title": "" } ]
30d4739637e332fc47b9c8dee09603fe
/Method to parse statement
[ { "docid": "835ad88399c4f96c983b98a1b20935ee", "score": "0.73889875", "text": "void ParseStmt() {\n\t\tTokenizer1 tokenizer = Tokenizer1.Instance();\n\t\tint tokNo = tokenizer.getToken().testDriverTokenNumber();\n\t\t\n\t\t/*Check which alternative this statement is*/\n\t\tif (tokNo == 32) { /*Assign statement*/\n\t\t\taltNo = 1;\n\t\t\ts1 = new Assign();\n\t\t\ts1.ParseAssign(); /*Parse assign statement*/\n\t\t}\n\t\tif (tokNo == 5) {/*If statement*/\n\t\t\taltNo = 2;\n\t\t\ts2 = new If();\n\t\t\ts2.ParseIf();/*Parse If statement*/\n\t\t}\n\t\tif (tokNo == 8) {/*Loop statement*/\n\t\t\taltNo = 3;\n\t\t\ts3 = new Loop();\n\t\t\ts3.ParseLoop();/*Parse Loop statement*/\n\t\t}\n\t\tif (tokNo == 10) {/*Input statement*/\n\t\t\taltNo = 4;\n\t\t\ts4 = new In();\n\t\t\ts4.ParseIn();/*Parse Input statement*/\n\t\t}\n\t\tif (tokNo == 11) {/*Output statement*/\n\t\t\taltNo = 5;\n\t\t\ts5 = new Out();\n\t\t\ts5.ParseOut();/*Parse Output statement*/\n\t\t}\n\t\t\n\t}", "title": "" } ]
[ { "docid": "4265edd0970e1228f10464d5cd14ef94", "score": "0.7689004", "text": "private NodeStmt parseStmt() throws SyntaxException {\n\t\tNodeAssn assn=parseAssn();\n\t\tmatch(\";\");\n\t\tNodeStmt stmt=new NodeStmt(assn);\n\t\treturn stmt;\n\t}", "title": "" }, { "docid": "a14a2d4c3f50c5bfa82be437ae8bf2db", "score": "0.7651853", "text": "private NodeStmt parseStmt() throws SyntaxException {\n\t\tNodeAssn assn = parseAssn();\n\t\tmatch(\";\");\n\t\tNodeStmt stmt = new NodeStmt(assn);\n\t\treturn stmt;\n\t}", "title": "" }, { "docid": "8d538a43050419950eae9285b18a5988", "score": "0.6868906", "text": "private void statement() {\r\n\t\tswitch (lookAhead.getIdentifier()) {\r\n\t\t\tcase \"mp_begin\": // statement -> statementSequence\r\n\t\t\t\tcompoundStatement();\r\n\t\t\t\tbreak;\r\n\t\t\tcase \"mp_for\": // statement -> forStatement\r\n\t\t\t\tforStatement();\r\n\t\t\t\tbreak;\r\n\t\t\tcase \"mp_if\": // statement -> ifStatement\r\n\t\t\t\tifStatement();\r\n\t\t\t\tbreak;\r\n\t\t\tcase \"mp_repeat\": // statement -> repeatStatement\r\n\t\t\t\trepeatStatement();\r\n\t\t\t\tbreak;\r\n\t\t\tcase \"mp_while\": // statement -> whileStatement\r\n\t\t\t\twhileStatement();\r\n\t\t\t\tbreak;\r\n\t\t\tcase \"mp_read\": // statement -> readStatement\r\n\t\t\t\treadStatement();\r\n\t\t\t\tbreak;\r\n\t\t\tcase \"mp_write\": // statement -> writeStatement\r\n\t\t\tcase \"mp_writeln\":\r\n\t\t\t\twriteStatement();\r\n\t\t\t\tbreak;\r\n\t\t\tcase \"mp_identifier\": // statement -> simpleStatement\r\n\t\t\t\tSymbol s = symbolTable.findSymbol(lookAhead);\r\n\t\t\t\tif (s!=null) {\r\n\t\t\t\t\tif (s.token==\"procedure\") {\r\n\t\t\t\t\t\tprocedureStatement();\r\n\t\t\t\t\t} else if (s.token==\"function\") {\r\n\t\t\t\t\t\tfunctionDesignator();\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tassignmentStatement();\r\n\t\t\t\t\t}\r\n\t\t\t\t} else {\r\n\t\t\t\t\thandleErrorGeneral(\"Undefined identifier\");\r\n\t\t\t\t}\r\n\t\t\t\tbreak;\r\n\t\t\tcase \"mp_scolon\": // statement -> emptyStatement\r\n\t\t\tcase \"mp_else\":\r\n\t\t\tcase \"mp_until\":\r\n\t\t\tcase \"mp_end\":\r\n\t\t\t\tbreak;\r\n\t\t\tdefault:\r\n\t\t\t\thandleError(false, \"Statement\");\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "a8939a72833d82d87ceab83bdd4a8afe", "score": "0.66910964", "text": "public Node parseStatement() throws ParserException {\n NodeType.StatementNodeType thing; // so no duplicates.\n Token letQM = tokenizer.seekToken();\n if (letQM.value.equals(\"let\")) {\n thing = NodeType.StatementNodeType.VAR_DEFINITION;\n tokenizer.nextToken();\n } else if(letQM.value.equals(\"if\")) {\n tokenizer.nextToken();\n //if(tokenizer.nextToken().id != TokenIdManager.getIdByDesc(\";\"))\n // throw new ParserException(\"Expected ';'\");\n return parseIf();\n } else if(letQM.value.equals(\"while\")) {\n tokenizer.nextToken();\n // if(tokenizer.nextToken().id != TokenIdManager.getIdByDesc(\";\"))\n// throw new ParserException(\"Expected ';'\");\n return parseLoop();\n } else {\n thing = NodeType.StatementNodeType.VAR_ASSIGNMENT;\n }\n Node name = parseVar();\n Token eqOperator = tokenizer.seekToken();\n if (eqOperator.id == TokenIdManager.getIdByDesc(\"=\")) {\n tokenizer.nextToken();\n Node val = parseExpr();\n Token semicolon = tokenizer.nextToken();\n if (semicolon.id == TokenIdManager.getIdByDesc(\";\")) {\n return new Node(NodeType.STATEMENT, thing, \"STATEMENT\", name, val, name.line);\n } else {\n throw new ParserException(\"Expected ';'\");\n }\n } else if (eqOperator.id == TokenIdManager.getIdByDesc(\"(\")) {\n Node n = parseFuncCallWithName((String)name.value, name.line);\n Token semicolon = tokenizer.nextToken();\n if(semicolon.id == TokenIdManager.getIdByDesc(\";\"))\n return n;\n else\n throw new ParserException(\"Expected ';'\");\n }\n throw new ParserException(\"Expected '=' or '('\");\n }", "title": "" }, { "docid": "4ddd8b51d35a9527e518101fbeaecd4e", "score": "0.66788626", "text": "public static Statement parseExpression(String expression)\n\t{\n\t\tStatement statement = recurseStatement(expression.replaceAll(\"\\\\s\", \"\"));\n\t\tif (statement != null)\n\t\t{\n//\t\t\tSystem.out.println(\"Expression: \" + statement.toString());\n//\t\t\tSystem.out.println(\"Constants: \" + statement.getConstants());\n//\t\t\tSystem.out.println(\"Variables: \" + statement.getVariables());\n\t\t\tif (statement.getVariables().size() != 0)\n\t\t\t{\n\t\t\t\tJOptionPane.showMessageDialog(null, \"This statement has unbound variables: \" +\n\t\t\t\t\tstatement.getVariables().toString());\n\t\t\t}\n\t\t}\n\t\treturn statement;\n\t}", "title": "" }, { "docid": "5d4005a48bfc1f23b21497025baa3da1", "score": "0.66256064", "text": "private void compoundStatement() {\r\n\t\tswitch (lookAhead.getIdentifier()) {\r\n\t\t\tcase \"mp_begin\": // compoundStatement -> \"begin\", statementSequence, \"end\"\r\n\t\t\t\tmatch(\"begin\");\r\n\t\t\t\tstatementSequence();\r\n\t\t\t\tmatch(\"end\");\r\n\t\t\t\tif(lookAhead.getIdentifier().equalsIgnoreCase(\"mp_scolon\")) {\r\n\t\t\t\t\tmatch(\";\");\r\n\t\t\t\t}\r\n\t\t\t\tbreak;\r\n\t\t\tdefault:\r\n\t\t\t\thandleError(false, \"Compound Statement\");\r\n\t\t}\r\n\r\n\t}", "title": "" }, { "docid": "1b178af6a43a756b4407c08d1bc139cd", "score": "0.65375704", "text": "public void read_stmt()\r\n {\r\n if(lexer.token != Symbol.READ)\r\n error.signal(\"Faltou o READ\");\r\n lexer.nextToken();\r\n \r\n if(lexer.token != Symbol.LPAR)\r\n error.signal(\"Faltou o '('\");\r\n lexer.nextToken();\r\n id_list();\r\n \r\n if(lexer.token != Symbol.RPAR)\r\n error.signal(\"Faltou o ')'\");\r\n lexer.nextToken();\r\n }", "title": "" }, { "docid": "6e843e555c02cce14c53920df53caf2e", "score": "0.64394164", "text": "public Node parse(String program) throws SyntaxException {\n\t\tscanner=new Scanner(program);\n\t\tscanner.next();\n\t\treturn parseStmt();\n\t}", "title": "" }, { "docid": "e4b7fd4d04c8106207330ede8e5b738a", "score": "0.63787955", "text": "public Node parse(String program) throws SyntaxException {\n\t\tscanner = new Scanner(program);\n\t\tscanner.next();\n\t\treturn parseStmt();\n\t}", "title": "" }, { "docid": "d83c9a0967ed69c1013634890ab63d31", "score": "0.6344477", "text": "abstract protected String getStatement();", "title": "" }, { "docid": "6a3fdd610e51a91f480d882c7d6c6feb", "score": "0.6277167", "text": "private Statement statement() {\r\n\t\tStatement statement = null;\r\n\t\tboolean checkSemiColon = true;\r\n\t\t\r\n\t\tswitch (lexer.token) {\r\n\t\t\tcase ASSIGN:\r\n\t\t\t\tstatement = assignExpr();\r\n\t\t\t\tbreak;\r\n\t\t\tcase IF:\r\n\t\t\t\tstatement = ifStat();\r\n\t\t\t\tcheckSemiColon = false;\r\n\t\t\t\tbreak;\r\n\t\t\tcase WHILE:\r\n\t\t\t\tstatement = whileStat();\r\n\t\t\t\tcheckSemiColon = false;\r\n\t\t\t\tbreak;\r\n\t\t\tcase RETURN:\r\n\t\t\t\tstatement = returnStat();\r\n\t\t\t\tbreak;\r\n\t\t\tcase BREAK:\r\n\t\t\t\tstatement = breakStat();\r\n\t\t\t\tbreak;\r\n\t\t\tcase SEMICOLON:\r\n\t\t\t\tnext();\r\n\t\t\t\treturn new NullStat();\r\n\t\t\tcase REPEAT:\r\n\t\t\t\tstatement = repeatStat();\r\n\t\t\t\tbreak;\r\n\t\t\tcase VAR:\r\n\t\t\t\tstatement = localDec();\r\n\t\t\t\tbreak;\r\n\t\t\tcase ASSERT:\r\n\t\t\t\tstatement = assertStat();\r\n\t\t\t\tbreak;\r\n\t\t\tdefault:\r\n\t\t\t\tif ( lexer.token == Token.ID && lexer.getStringValue().equals(\"Out\") ) {\r\n\t\t\t\t\tstatement = printStat();\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tstatement = assignExpr();\r\n\t\t\t\t}\r\n\t\t}\r\n\t\tif ( checkSemiColon ) {\r\n\t\t\tcheck(Token.SEMICOLON, \"';' missing\");\r\n\t\t\tnext();\r\n\t\t\t\r\n\t\t}\r\n\t\treturn statement;\r\n\t}", "title": "" }, { "docid": "476ff4a835299da34a22d295abe54eb7", "score": "0.62152594", "text": "public R visit(StmtExp n) {\n R _ret=null;\n String t1 = \"BEGIN\";\n String t2 = (String)n.f1.accept(this);\n String t3 = (String)n.f2.accept(this);\n return_flag = true;\n String t4 = (String)n.f3.accept(this);\n return_flag = false;\n String t5 = \"END\";\n String res = t1 + \" \" + t2 + \" \" + t3 + \" \" + t4 + \" \" + t5;\n return (R)res;\n }", "title": "" }, { "docid": "b6c0dc2f7d72c148940e336e644cf6f7", "score": "0.62129104", "text": "private void statementSequence() {\r\n\t\tswitch (lookAhead.getIdentifier()) {\r\n\t\t\tcase \"mp_begin\": // statementSequence -> statement\r\n\t\t\tcase \"mp_for\": // statementSequence -> statement\r\n\t\t\tcase \"mp_if\": // statementSequence -> statement\r\n\t\t\tcase \"mp_read\": // statementSequence -> statement\r\n\t\t\tcase \"mp_repeat\": // statementSequence -> statement\r\n\t\t\tcase \"mp_while\": // statementSequence -> statement\r\n\t\t\tcase \"mp_write\": // statementSequence -> statement\r\n\t\t\tcase \"mp_writeln\":\r\n\t\t\tcase \"mp_identifier\": // statementSequence -> statement\r\n\t\t\tcase \"mp_scolon\": // statementSequence -> statement\r\n\t\t\t\tstatement();\r\n\t\t\t\tstatementTail();\r\n\t\t\t\tbreak;\r\n\t\t\tcase \"mp_end\":\r\n\t\t\t\tbreak;\r\n\t\t\tdefault: // default case is an invalid lookAhead token in language\r\n\t\t\t\thandleError(false, \"Statement Sequence\");\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "9746eb88afe51c1c3f9b29412d8e6753", "score": "0.62127364", "text": "private StmtSeq parseStmtSeq() throws ParserException {\n\t\tvar stmt = parseStmt();\n\t\tif (buf_tokenizer.tokenType() == STMT_SEP){\n\t\t\tnextToken();\n\t\t\treturn new MoreStmt(stmt, parseStmtSeq());\n\t\t}\n\t\treturn new SingleStmt(stmt);\n\n\t}", "title": "" }, { "docid": "fb3b5c5eeeb721b3967345da88b1f147", "score": "0.6175519", "text": "private boolean statement(Token next){\n\n\t\tif(next.getType().equals(\"Gimmeh Keyword\")) return input(this.tokenStack.pop());\n\n\t\telse if(next.getType().equals(\"Visible Keyword\")) return output(this.tokenStack.pop());\n\n\t\telse if(next.getType().equals(\"Variable Declaration\")) return declaration(this.tokenStack.pop());\n\n\t\telse if(next.getType().equals(\"Variable Identifier\")) return assignment(this.tokenStack.pop());\n\n\t\telse if(next.getType().equals(\"Arithmetic\") || next.getType().equals(\"Division\")) return arithmeticExpression(next);\n\n\t\telse if(next.getType().equals(\"Boolean Binary\") || next.getType().equals(\"Boolean Unary\")) return booleanExpression(next);\n\n\t\telse if(next.getType().equals(\"Infinite And\") || next.getType().equals(\"Infinite Or\")) return infiniteBooleanExpression(next);\n\n\t\telse if(next.getType().equals(\"And\") || next.getType().equals(\"Different\")) return comparisonExpression(next);\n\n\t\telse if(next.getType().equals(\"String Concatenate\")) return concatenation(next);\n\n\t\telse if(next.getType().equals(\"If-else Start\")){\n\t\t\tif(lineBreak(this.tokenStack.pop())) return ifelseCondition(this.tokenStack.pop());\n\t\t\n\t\t}else if(next.getType().equals(\"Switch Start\")){\n\t\t\tif(lineBreak(this.tokenStack.pop())) return switchCondition(this.tokenStack.pop());\n\t\t\n\t\t}return false;\n\t}", "title": "" }, { "docid": "9b0aa992037213b2b15559190d2dc2a0", "score": "0.6174294", "text": "private void procStmt() throws IOException {\n switch(current.type){\n case ID:\n procAssignStmt();\n matchToken(TokenType.DOT_COMMA);\n break;\n case IF:\n procIfStmt();\n break;\n case DO:\n procWhileStmt();\n break;\n case SCAN:\n procReadStmt();\n matchToken(TokenType.DOT_COMMA);\n break;\n case PRINT:\n procWriteStmt();\n matchToken(TokenType.DOT_COMMA);\n break;\n }\n }", "title": "" }, { "docid": "45dbde332816068570f1468d404084e8", "score": "0.60998005", "text": "public void parse(String statement, Map dataTypeMap)\n {\n String[] classMethod = splitClassMethod(statement);\n if (classMethod == null)\n {\n m_methodPrefix = null;\n m_methodName = null;\n m_parameter = null;\n return;\n }\n\n m_methodPrefix = classMethod[0];\n if (dataTypeMap != null)\n {\n String fullClassName = (String) dataTypeMap.get(classMethod[0]);\n if (fullClassName != null)\n m_methodPrefix = fullClassName;\n }\n\n String method = classMethod[1];\n\n String[] methodPart = splitMethod(method);\n m_methodName = methodPart[0];\n m_parameter = methodPart[1];\n }", "title": "" }, { "docid": "b35482554adee5e0ca2eed378965988a", "score": "0.6095724", "text": "public void stmt()\r\n {\r\n /*if (lexer.token == )\r\n assign_stmt();\r\n else if(lexer.token ==)\r\n read_stmt();\r\n else if(lexer.token ==)\r\n write_stmt();\r\n else if(lexer.token ==)\r\n return_stmt();\r\n else if(lexer.token ==)\r\n if_stmt();\r\n else if(lexer.token ==)\r\n for_stmt();\r\n else\r\n error.signal(\"Erro de declaração\");*/\r\n }", "title": "" }, { "docid": "f7e86826fd195a9357ef14ce788657c2", "score": "0.6091078", "text": "AbstractCommand parse(@NotNull String statement) throws CliException;", "title": "" }, { "docid": "6bc738228f30bb10a99ab0dcb71c1817", "score": "0.6060179", "text": "ASTNode parse() throws SyntaxException {\n\t\tASTNode par = null;\n\t\tpar = program();\n\t\tmatchEOF();\n\t\treturn par;\n\t}", "title": "" }, { "docid": "fecafed76a9c1aa17757212d36bfc7f1", "score": "0.6034647", "text": "private void Statement() throws Exception {\n LexerToken next = nextToken();\n switch (nextToken().type) {\n case IDENTIFIER:\n Assignment();\n break;\n\n case OUTPUT:\n read(LexerTokenType.OUTPUT);\n read(LexerTokenType.LEFT_PARA);\n OutExp();\n\n int count = 1;\n while (nextToken().type == LexerTokenType.COMMA) {\n read(LexerTokenType.COMMA);\n OutExp();\n count++;\n }\n read(LexerTokenType.RIGHT_PARA);\n\n buildSubtreeFromStack(\"output\", count);\n break;\n\n case IF:\n read(LexerTokenType.IF);\n Expression();\n read(LexerTokenType.THEN);\n Statement();\n\n count = 2;\n if (nextToken().type == LexerTokenType.ELSE) {\n read(LexerTokenType.ELSE);\n Statement();\n count++;\n }\n\n buildSubtreeFromStack(\"if\", count);\n break;\n\n case WHILE:\n read(LexerTokenType.WHILE);\n Expression();\n read(LexerTokenType.DO);\n Statement();\n\n buildSubtreeFromStack(\"while\", 2);\n break;\n\n case REPEAT:\n read(LexerTokenType.REPEAT);\n Statement();\n\n count = 1;\n while (nextToken().type == LexerTokenType.SEMICOLON) {\n read(LexerTokenType.SEMICOLON);\n Statement();\n count++;\n }\n read(LexerTokenType.UNTIL);\n Expression();\n\n buildSubtreeFromStack(\"repeat\", ++count);\n break;\n\n case FOR:\n read(LexerTokenType.FOR);\n read(LexerTokenType.LEFT_PARA);\n ForStat();\n read(LexerTokenType.SEMICOLON);\n ForExp();\n read(LexerTokenType.SEMICOLON);\n ForStat();\n read(LexerTokenType.RIGHT_PARA);\n Statement();\n\n buildSubtreeFromStack(\"for\", 4);\n break;\n\n case LOOP:\n read(LexerTokenType.LOOP);\n Statement();\n\n count = 1;\n while (nextToken().type == LexerTokenType.SEMICOLON) {\n read(LexerTokenType.SEMICOLON);\n Statement();\n count++;\n }\n read(LexerTokenType.POOL);\n\n buildSubtreeFromStack(\"loop\", count);\n break;\n\n case CASE:\n Expression();\n read(LexerTokenType.OF);\n count = 1 + Caseclauses();\n OtherwiseClause();\n read(LexerTokenType.END);\n\n buildSubtreeFromStack(\"case\", 3);\n break;\n\n case READ:\n read(LexerTokenType.READ);\n read(LexerTokenType.LEFT_PARA);\n Name();\n\n count = 1;\n while (nextToken().type == LexerTokenType.COMMA) {\n read(LexerTokenType.COMMA);\n Name();\n count++;\n }\n read(LexerTokenType.RIGHT_PARA);\n\n buildSubtreeFromStack(\"read\", count);\n break;\n\n case EXIT:\n read(LexerTokenType.EXIT);\n\n buildSubtreeFromStack(\"exit\", 0);\n break;\n\n case RETURN:\n read(LexerTokenType.RETURN);\n Expression();\n\n buildSubtreeFromStack(\"return\", 1);\n break;\n\n case BEGIN:\n Body();\n\n default:\n buildSubtreeFromStack(\"<null>\", 0);\n break;\n\n }\n }", "title": "" }, { "docid": "8628724f91c8e53d433705e61432d3d2", "score": "0.6022121", "text": "public void parse() throws SyntaxException {\r\n\t\tprogram();\r\n\t\tmatchEOF();\r\n\t}", "title": "" }, { "docid": "df4888570ec903517c9053a41b9d3715", "score": "0.5998248", "text": "public void Parse(String parmString) throws Exception {\n ANTLRInputStream _input = new ANTLRInputStream(parmString);\n PLSQLLexer _lexer = new PLSQLLexer(_input);\n PLSQLTokens _tokenList = new PLSQLTokens();\n for (Token _token = _lexer.nextToken();\n _token.getType() != Token.EOF;\n _token = _lexer.nextToken())\n {\n PLSQLToken _plsqlToken = new PLSQLToken();\n _plsqlToken._line = _token.getLine();\n _plsqlToken._column = _token.getCharPositionInLine();\n _plsqlToken._tokenNumber = _token.getType();\n _plsqlToken._token = _token.getText();\n _tokenList.Add(_plsqlToken);\n }\n TokenTable _tokenTable = new TokenTable();\n _tokenTable.Delete(_project, _plsql);\n for (int _index = 0; _index < _tokenList.Size(); _index++)\n {\n System.out.printf(\"Line =[%05d], Column=[%05d], TokenNo=[%05d], Token=[%s]%s\", _tokenList.Get(_index)._line, _tokenList.Get(_index)._column, _tokenList.Get(_index)._tokenNumber, _tokenList.Get(_index)._token, System.getProperty(\"line.separator\"));\n _tokenTable.Insert(_project, _plsql, (_index + 1), _tokenList.Get(_index)._line, _tokenList.Get(_index)._column, _tokenList.Get(_index)._token);\n }\n\n ParsingTable _parsingTbl = new ParsingTable();\n _parsingTbl.Delete(_project, _plsql);\n\n ProxyPrintStream _outPrintStream = new ProxyPrintStream(System.out);\n ProxyPrintStream _errPrintStream = new ProxyPrintStream(System.err);\n System.setOut(_outPrintStream);\n System.setErr(_errPrintStream);\n\n _input = new ANTLRInputStream(parmString);\n _lexer = new PLSQLLexer(_input);\n CommonTokenStream _tokens = new CommonTokenStream(_lexer);\n enCub.PLSQL.Parser.PLSQLParser _parser = new enCub.PLSQL.Parser.PLSQLParser(_tokens);\n ParseTree _tree = _parser.start(); // parse; start at prog\n _parser.reset();\n _parser.setTrace(true);\n ParserRuleContext _context = _parser.start(); // parse; start at prog\n String _type = \"\";\n String _rule = \"\";\n int _line = 0;\n int _column = 0;\n int _length = 0;\n String _token = \"\";\n int _tokenNo = 0;\n int _tokenNameNo = 0;\n\n _errPrintStream.resetErr();\n _outPrintStream.resetOut();\n String[] _outList = _outPrintStream.getOutput().split(System.getProperty(\"line.separator\"));\n\n for(int i = 0; i < _outList.length; i++)\n {\n String _saveOut = _outList[i];\n if (_outList[i].trim().equals(\"\") ||\n _outList[i].trim().length() < 8)\n {\n _type = \"\";\n }\n else\n {\n _type = _outList[i].substring(0, 8).trim();\n }\n if (_type.equals(\"enter\") ||\n _type.equals(\"exit\"))\n {\n _rule = _outList[i].substring(8, _outList[i].indexOf(','));\n _line = 0;\n _column = 0;\n _length = 0;\n _token = \"\";\n _tokenNo = -1;\n _tokenNameNo = -1;\n }\n else if (_type.equals(\"consume\"))\n {\n _tokenNo = 0;\n _line = 0;\n _column = 0;\n _length = 0;\n _token = \"\";\n _rule = \"\";\n\n int _startPosition = 0;\n int _endPosition = 0;\n if (tryParseInt(_outList[i].substring(10, _outList[i].indexOf(','))))\n {\n _tokenNo = Integer.parseInt(_outList[i].substring(10, _outList[i].indexOf(',')));\n _outList[i] = _outList[i].substring(_outList[i].indexOf(',') + 1);\n if (tryParseInt(_outList[i].substring(0, _outList[i].indexOf(':'))))\n {\n _startPosition =Integer.parseInt(_outList[i].substring(0, _outList[i].indexOf(':')));\n _outList[i] = _outList[i].substring(_outList[i].indexOf(':') + 1);\n if (tryParseInt(_outList[i].substring(0, _outList[i].indexOf('='))))\n {\n _endPosition =Integer.parseInt(_outList[i].substring(0, _outList[i].indexOf('=')));\n _length = _endPosition - _startPosition + 1;\n _outList[i] = _outList[i].substring(_outList[i].indexOf('=') + 2); // EQUAL(=) + QUOTATION(')\n _token = _outList[i].substring(0, _length);\n _outList[i] = _outList[i].substring(_length + 3);\n if (tryParseInt(_outList[i].substring(0, _outList[i].indexOf('>'))))\n {\n _tokenNameNo = Integer.parseInt(_outList[i].substring(0, _outList[i].indexOf('>')));\n _outList[i] = _outList[i].substring(_outList[i].indexOf('>') + 2); // GT(>) + COMMA(,)\n if (tryParseInt(_outList[i].substring(0, _outList[i].indexOf(':'))))\n {\n _line = Integer.parseInt(_outList[i].substring(0, _outList[i].indexOf(':')));\n _outList[i] = _outList[i].substring(_outList[i].indexOf(':') + 1); // COLON(:)\n if (tryParseInt(_outList[i].substring(0, _outList[i].indexOf(']'))))\n {\n _column = Integer.parseInt(_outList[i].substring(0, _outList[i].indexOf(']')));\n _rule = _outList[i].substring(_outList[i].indexOf(']') + 7); // COLON(]) + \" rule \"\n }\n }\n }\n }\n }\n }\n }\n\n if (_type.equals(\"\"))\n {\n System.out.println(\"OUT=[\" + _outList[i] + \"]\");\n }\n else if (_type.equals(\"enter\") ||\n _type.equals(\"exit\"))\n {\n System.out.println(String.format(\"Type=[%-8s],Rule=[%-40s]\",_type, _rule));\n _parsingTbl.Insert(_project, _plsql, (i + 1), _type, _rule, 0, 0, 0, \"\", 0, \"\");\n }\n else\n {\n if(_tokenNameNo < 0)\n {\n System.out.println(String.format(\"Type=[%-8s],Rule=[%-40s],Line=[%05d],Column=[%+5d],Length=[%05d],Token=[%-40s],TokenNo=[%05d],TokenNameNo=[%05d]\",_type, _rule, _line, _column, _length, _token, _tokenNo, _tokenNameNo));\n _parsingTbl.Insert(_project, _plsql, (i + 1), _type, _rule, _line, _column, _length, _token, _tokenNo, \"\");\n }\n else\n {\n System.out.println(String.format(\"Type=[%-8s],Rule=[%-40s],Line=[%05d],Column=[%05d],Length=[%05d],Token=[%-40s],TokenNo=[%07d],TokenNameNo=[%05d],TokenName=[%-40s]\",_type, _rule, _line, _column, _length, _token, _tokenNo, _tokenNameNo, _parser.tokenNames[_tokenNameNo]));\n _parsingTbl.Insert(_project, _plsql, (i + 1), _type, _rule, _line, _column, _length, _token, _tokenNo, _parser.tokenNames[_tokenNameNo]);\n }\n }\n }\n String[] _errList = _errPrintStream.getOutput().split(System.getProperty(\"line.separator\"));\n String _msg = \"\";\n String _saveErr = \"\";\n\n ParsingErrLogTable _errLogTable = new ParsingErrLogTable();\n _errLogTable.Delete(_project, _plsql);\n\n for(int i = 0; i < _errList.length; i++)\n {\n if(_errList[i].trim().equals(\"\"))\n {\n continue;\n }\n _saveErr = _errList[i];\n _line = 0;\n _column = 0;\n _msg = \"\";\n if (tryParseInt(_errList[i].substring(5, _errList[i].indexOf(':'))))\n {\n _line = Integer.parseInt(_errList[i].substring(5, _errList[i].indexOf(':')));\n _errList[i] = _errList[i].substring(_errList[i].indexOf(':') + 1);\n if (tryParseInt(_errList[i].substring(0, _errList[i].indexOf(' '))))\n {\n _column = Integer.parseInt(_errList[i].substring(0, _errList[i].indexOf(' ')));\n _msg = _errList[i].substring(_errList[i].indexOf(' ') + 1);\n////// if(_msg.length() > 100)\n////// {\n////// _msg = _msg.substring(0, 100);\n////// }\n }\n }\n else\n {\n////// System.out.println(\"_errList[i].substring(6, _errList[i].indexOf(':'))=[\" + _errList[i].substring(6, _errList[i].indexOf(':')) + \"]\");\n _msg = _errList[i].substring(6, _errList[i].indexOf(':'));\n }\n////// if (_line == 0)\n////// {\n////// if(_msg.length() > 100)\n////// {\n////// System.out.println(\"_saveErr=[\" + _saveErr.substring(0,100) + \"]\");\n////// }\n////// else\n////// {\n////// System.out.println(\"_saveErr=[\" + _saveErr + \"]\");\n////// }\n////// }\n////// else\n////// {\n////// System.err.println(String.format(\"Line=[%05d],Column=[%05d],MSG=[%-100s]\", _line, _column, _msg));\n////// }\n System.err.println(String.format(\"Line=[%05d],Column=[%05d],MSG=[%-100s]\", _line, _column, _msg));\n _errLogTable.Insert(_project, _plsql, (i + 1), _line, _column, _msg);\n }\n ParseCRUD(_project, _plsql);\n }", "title": "" }, { "docid": "2356226865c75a401aa87f8dafdb8f68", "score": "0.59594584", "text": "private Stmt statement() {\n if (match(PRINT)) return printStatement();\n if (match(LEFT_BRACE)) return new Stmt.Block(block());\n\n return expressionStatement();\n }", "title": "" }, { "docid": "2c8d1afbaa28849249abff98baab8f38", "score": "0.58979267", "text": "private PrintStmt parsePrintStmt() throws ParserException {\n\t\tnextToken();\n\t\treturn new PrintStmt(parseExp());\n\t}", "title": "" }, { "docid": "0cdc0b6c99ced4d25fea74de0cc433d9", "score": "0.58588195", "text": "private Expr_stmt expr_stmt() {\n\t\tif(Tokens.peek() != null && Tokens.peek().value.equals(\";\")) {\n\t\t\tLexeme semi = Tokens.poll();\n\t\t\treturn new Expr_stmt(semi);\n\t\t}else {\n\t\t\tExpr e =expr();\n\t\t\tif(e!=null) {\n\t\t\t\tLexeme semi = Tokens.poll();\n\t\t\t\tif(semi != null && semi.value.equals(\";\")){\n\t\t\t\t\treturn new Expr_stmt(e,semi);\n\t\t\t\t}else {\n\t\t\t\t\tSystem.out.println(\"missing semicolom in expr\");\n\t\t\t\t\terror = true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "title": "" }, { "docid": "e85c8242cd982257affbb06735b5b238", "score": "0.58394027", "text": "@Test\n public void testAnalyze() {\n parseValidate(null, \"ANALYZE tbl\", new StatisticsTarget((String)null, \"TBL\"));\n\n parseValidate(null, \"ANALYZE tbl;\", new StatisticsTarget((String)null, \"TBL\"));\n\n parseValidate(null, \"ANALYZE schema.tbl\", new StatisticsTarget(\"SCHEMA\", \"TBL\"));\n\n parseValidate(null, \"ANALYZE schema.tbl;\", new StatisticsTarget(\"SCHEMA\", \"TBL\"));\n\n parseValidate(null, \"ANALYZE schema.tbl(a)\",\n new StatisticsTarget(\"SCHEMA\", \"TBL\", \"A\"));\n\n parseValidate(null, \"ANALYZE schema.tbl(a);\",\n new StatisticsTarget(\"SCHEMA\", \"TBL\", \"A\"));\n\n parseValidate(null, \"ANALYZE tbl(a)\", new StatisticsTarget((String)null, \"TBL\", \"A\"));\n\n parseValidate(null, \"ANALYZE tbl(a);\", new StatisticsTarget((String)null, \"TBL\", \"A\"));\n\n parseValidate(\"SOME_SCHEMA\", \"ANALYZE tbl, schema.tbl2\",\n new StatisticsTarget((String)null, \"TBL\"), new StatisticsTarget(\"SCHEMA\", \"TBL2\"));\n\n parseValidate(null, \"ANALYZE tbl(a, b, c)\",\n new StatisticsTarget((String)null, \"TBL\", \"A\", \"B\", \"C\"));\n\n parseValidate(null, \"ANALYZE tbl(a), schema.tbl2(a,B)\",\n new StatisticsTarget((String)null, \"TBL\", \"A\"),\n new StatisticsTarget(\"SCHEMA\", \"TBL2\", \"A\", \"B\"));\n\n assertParseError(null, \"ANALYZE p,\", \"Unexpected end of command\");\n assertParseError(null, \"ANALYZE p()\", \"Unexpected token: \\\")\\\"\");\n }", "title": "" }, { "docid": "8195bf86d4e744586fc70dd655d70d25", "score": "0.58156216", "text": "private String transformIWantToStatement(String statement)\n\t{\n\t\tstatement = statement.trim();\n\t\tString c = statement.substring(statement.length() - 1);\n\t\tif (c.equals(\".\"))\n\t\t{\n\t\t\tstatement = statement.substring(0, statement.length() - 1);\n\t\t}\n\t\tint psn = findKeyword (statement, \"I want to\", 0);\n\t\tString r = statement.substring(psn + 9);\n\t\treturn \"What would it mean to\" + r;\n\t}", "title": "" }, { "docid": "71820a16d0d3b0ec2a87b15642cc1abf", "score": "0.58086705", "text": "private void statementTail() {\r\n\t\tswitch (lookAhead.getIdentifier()) {\r\n\t\t\tcase \"mp_begin\": // statementTail -> statement\r\n\t\t\tcase \"mp_for\": // statementTail -> statement\r\n\t\t\tcase \"mp_if\": // statementTail -> statement\r\n\t\t\tcase \"mp_read\": // statementTail -> statement\r\n\t\t\tcase \"mp_repeat\": // statementTail -> statement\r\n\t\t\tcase \"mp_while\": // statementTail -> statement\r\n\t\t\tcase \"mp_write\": // statementTail -> statement\r\n\t\t\tcase \"mp_writeln\": // statementTail -> statement\r\n\t\t\tcase \"mp_identifier\": // statementTail -> statement\r\n\t\t\t\tstatement();\r\n\t\t\t\tstatementTail();\r\n\t\t\t\tbreak;\r\n\t\t\tcase \"mp_scolon\":\r\n\t\t\t\tmatch(\";\");\r\n\t\t\t\tstatement();\r\n\t\t\t\tstatementTail();\r\n\t\t\t\tbreak;\r\n\t\t\tcase \"mp_until\":\r\n\t\t\tcase \"mp_end\":\r\n\t\t\tcase \"mp_else\":\r\n\t\t\tcase \"mp_period\":\r\n\t\t\t\tbreak;\r\n\t\t\tdefault:\r\n\t\t\t\thandleError(false, \"statementTail\");\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "054bd3ba19eae3884b94bb8565900729", "score": "0.5796709", "text": "void statement() throws SyntaxException {\n\t\t\r\n\t\tif (t.isKind(IDENTIFIER)) {\r\n\t\t\tconsume();\r\n\t\t\tif (getpredictSets(\"AssignmentStatement\").contains(t.kind)) {\r\n\t\t\t\tassignmentStatement();\r\n\t\t\t} else if (getpredictSets(\"ImageOutStatement\").contains(t.kind)) {\r\n\t\t\t\timageOutStatement();\r\n\t\t\t} else if (getpredictSets(\"ImageInStatement\").contains(t.kind)) {\r\n\t\t\t\timageInStatement();\r\n\t\t\t}else {\r\n\t\t\t\tthrow new SyntaxException(t,\"Error while parsing program at \" + t.kind);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t} else {\r\n\t\t\tthrow new SyntaxException(t,\"Error while parsing program at \" + t.kind);\r\n\t\t}\r\n\t\t\r\n\t}", "title": "" }, { "docid": "9bbe3a8e401efaa5ab028a46726ff3b6", "score": "0.57947624", "text": "public static StmtNode parseStmt(TokenReader tokenReader)\n throws IOException, DCSyntaxErrorException\n {\n StmtNode node;\n\n\n //\n // GR 4.\n //\n // stmt : if-stmt\n //\n if (IfStmtNode.detectIfStmt(tokenReader)) {\n node = IfStmtNode.parseIfStmt(tokenReader);\n }\n\n //\n // GR 5.\n //\n // stmt : loop-stmt\n //\n else if (LoopStmtNode.detectLoopStmt(tokenReader)) {\n node = LoopStmtNode.parseLoopStmt(tokenReader);\n }\n\n //\n // GR 6.\n //\n // stmt : break-stmt\n //\n else if (BreakStmtNode.detectBreakStmt(tokenReader)) {\n node = BreakStmtNode.parseBreakStmt(tokenReader);\n }\n\n //\n // GR 7.\n //\n // stmt : assign-stmt\n //\n else if (AssignStmtNode.detectAssignStmt(tokenReader)) {\n node = AssignStmtNode.parseAssignStmt(tokenReader);\n }\n\n //\n // GR 8.\n //\n // stmt : read-stmt\n //\n else if (ReadStmtNode.detectReadStmt(tokenReader)) {\n node = ReadStmtNode.parseReadStmt(tokenReader);\n }\n\n //\n // GR 9.\n //\n // stmt : print-stmt\n //\n else if (PrintStmtNode.detectPrintStmt(tokenReader)) {\n node = PrintStmtNode.parsePrintStmt(tokenReader);\n }\n\n //\n // GR 10.\n //\n // stmt :\n //\n\n // If none of the above statement types were found, the\n // statement is empty.\n else {\n node = new StmtNode();\n }\n\n\n return node;\n }", "title": "" }, { "docid": "614d50d5955b323c664ae28751ccfcda", "score": "0.57881385", "text": "@SuppressWarnings(\"incomplete-switch\")\n\tprivate static Statement expectUnlabeledStatement() {\n\t\tint lineNumber=Parse.currentToken.lineNumber;\n\t\tif (Option.TRACE_PARSE)\n\t\t\tUtil.TRACE(\"Statement.doUnlabeledStatement: lineNumber=\"+lineNumber+\", current=\" + Parse.currentToken\t+ \", prev=\" + Parse.prevToken);\n\t\tswitch(Parse.currentToken.getKeyWord()) {\n\t\t case BEGIN: Parse.nextSymb(); return (new MaybeBlockDeclaration(null).parseMaybeBlock(lineNumber));\n\t\t case IF: Parse.nextSymb(); return (new ConditionalStatement(lineNumber));\n\t\t case GOTO: Parse.nextSymb(); return (new GotoStatement(lineNumber));\n\t\t case GO: Parse.nextSymb(); \n\t\t\t\t if (!Parse.accept(KeyWord.TO))\tUtil.error(\"Missing 'TO' after 'GO'\");\n\t\t\t\t return (new GotoStatement(lineNumber));\n\t\t case FOR: Parse.nextSymb(); return (new ForStatement(lineNumber));\n\t\t case WHILE: Parse.nextSymb(); return (new WhileStatement(lineNumber));\n\t\t case INSPECT: Parse.nextSymb(); return (new ConnectionStatement(lineNumber));\n\t\t case SWITCH:\t if(Option.EXTENSIONS) {\n\t\t \t\t\t\t\tParse.nextSymb(); return (new SwitchStatement(lineNumber));\n\t\t \t\t\t\t }\n\t\t case ACTIVATE: Parse.nextSymb(); return (new ActivationStatement(lineNumber));\n\t\t case REACTIVATE: Parse.nextSymb(); return (new ActivationStatement(lineNumber));\n\t\t case INNER: Parse.nextSymb(); return (new InnerStatement(lineNumber));\n\t\t case SEMICOLON: Parse.nextSymb(); return (new DummyStatement(lineNumber)); // Dummy Statement\n\t\t case END: return (new DummyStatement(lineNumber)); // Dummy Statement, keep END\n\t\t\n\t\t case IDENTIFIER: case NEW: case THIS: case BEGPAR:\n\t\t Expression expr = Expression.acceptExpression();\n\t\t if(expr!=null) {\n\t\t \t if(expr instanceof Variable var) {\n\t\t \t\t if (Parse.accept(KeyWord.BEGIN))\n\t\t \t\t\t return new BlockStatement(new PrefixedBlockDeclaration(var,false));\n\t\t \t }\n\t\t \t return (new StandaloneExpression(lineNumber,expr));\n\t\t }\n\t\t}\n \tParse.skipMisplacedCurrentSymbol();\n \treturn(new DummyStatement(lineNumber));\n\t}", "title": "" }, { "docid": "6700788a4658c39be470be6cbca78371", "score": "0.57821", "text": "private final DBReply execParseOnly(String[] params) throws Exception\n\t{\n\t\tDBModule mod = Database.getModuleByName(params[2]);\n\t\tif(!mod.isModuleLinked())\n\t\t\tlinker.linkModule(mod);\n\t\tif(!mod.isModuleCompiled())\n\t\t\tcompiler.compileModule(mod);\n\n\t\tboolean sbql = params[0].equalsIgnoreCase(\"sbql\");\n\t\tASTNode node;\n\t\tif(sbql)\n\t\t\tnode = BuilderUtils.parseSBQL(params[2], params[1]);\n\t\telse\n\t\t\tnode = (ASTNode)new OCLParser(new OCLLexer(new StringReader(params[1])), params[2]).parse().value;\n\n\t\tif(node instanceof Expression || node instanceof Statement)\n\t\t\treturn DBReply.createOKReply(new ASTSerializer().writeAST(node, true));\n\n\t\treturn DBReply.createERRReply(\"Unsupported SBQL program\", DBReply.STAT_NETWORK_ERROR);\n\t}", "title": "" }, { "docid": "4d21449c9faf8027e3baa05b68284476", "score": "0.57809174", "text": "abstract String getStatement() throws IOException;", "title": "" }, { "docid": "e6715e9562b8832a8a21f3746dd47e45", "score": "0.57796925", "text": "public interface SqlParserConstants {\n\n /** End of File. */\n int EOF = 0;\n /** RegularExpression Id. */\n int CTCMD = 7;\n /** RegularExpression Id. */\n int SELECTCMD = 8;\n /** RegularExpression Id. */\n int BOOLEAN_LITERALS = 9;\n /** RegularExpression Id. */\n int TRUE = 10;\n /** RegularExpression Id. */\n int FALSE = 11;\n /** RegularExpression Id. */\n int BOOLEAN_OPERATORS = 12;\n /** RegularExpression Id. */\n int UNION = 13;\n /** RegularExpression Id. */\n int AND = 14;\n /** RegularExpression Id. */\n int OR = 15;\n /** RegularExpression Id. */\n int NOT = 16;\n /** RegularExpression Id. */\n int DATATYPE = 17;\n /** RegularExpression Id. */\n int INT = 18;\n /** RegularExpression Id. */\n int REAL = 19;\n /** RegularExpression Id. */\n int SEMICOLON = 20;\n /** RegularExpression Id. */\n int OBRA = 21;\n /** RegularExpression Id. */\n int CBRA = 22;\n /** RegularExpression Id. */\n int COMMA = 23;\n /** RegularExpression Id. */\n int FROM = 24;\n /** RegularExpression Id. */\n int AS = 25;\n /** RegularExpression Id. */\n int JOIN = 26;\n /** RegularExpression Id. */\n int ON = 27;\n /** RegularExpression Id. */\n int FILE = 28;\n /** RegularExpression Id. */\n int USING = 29;\n /** RegularExpression Id. */\n int CSV = 30;\n /** RegularExpression Id. */\n int BOOLEAN_COMPARISON = 31;\n /** RegularExpression Id. */\n int COUNT = 32;\n /** RegularExpression Id. */\n int BINARYOPERATOR = 33;\n /** RegularExpression Id. */\n int FLOATING_POINT_LITERAL = 34;\n /** RegularExpression Id. */\n int EXPONENT = 35;\n /** RegularExpression Id. */\n int FILENAME = 36;\n /** RegularExpression Id. */\n int TEST = 37;\n /** RegularExpression Id. */\n int DAT = 38;\n /** RegularExpression Id. */\n int WHERE = 39;\n /** RegularExpression Id. */\n int AGGREGATE = 40;\n /** RegularExpression Id. */\n int MIN = 41;\n /** RegularExpression Id. */\n int SUM = 42;\n /** RegularExpression Id. */\n int AVG = 43;\n /** RegularExpression Id. */\n int MAX = 44;\n /** RegularExpression Id. */\n int EQUAL = 45;\n /** RegularExpression Id. */\n int COLNAME = 46;\n /** RegularExpression Id. */\n int DOT = 47;\n /** RegularExpression Id. */\n int STRING_LITERAL = 48;\n\n /** Lexical state. */\n int DEFAULT = 0;\n\n /** Literal token values. */\n String[] tokenImage = {\n \"<EOF>\",\n \"\\\"\\\\n\\\"\",\n \"\\\"\\\\r\\\"\",\n \"\\\"\\\\n\\\\r\\\"\",\n \"\\\"\\\\\\\\\\\"\",\n \"\\\"\\\\t\\\"\",\n \"\\\" \\\"\",\n \"\\\"CREATE TABLE\\\"\",\n \"\\\"Select\\\"\",\n \"<BOOLEAN_LITERALS>\",\n \"\\\"true\\\"\",\n \"\\\"false\\\"\",\n \"<BOOLEAN_OPERATORS>\",\n \"\\\"UNION\\\"\",\n \"\\\"AND\\\"\",\n \"\\\"OR\\\"\",\n \"\\\"NOT\\\"\",\n \"<DATATYPE>\",\n \"\\\"int\\\"\",\n \"\\\"real\\\"\",\n \"\\\";\\\"\",\n \"<OBRA>\",\n \"<CBRA>\",\n \"\\\",\\\"\",\n \"\\\"From\\\"\",\n \"\\\"AS\\\"\",\n \"\\\"JOIN\\\"\",\n \"\\\"ON\\\"\",\n \"\\\"File\\\"\",\n \"\\\"USING\\\"\",\n \"\\\"CSV\\\"\",\n \"<BOOLEAN_COMPARISON>\",\n \"\\\"COUNT\\\"\",\n \"<BINARYOPERATOR>\",\n \"<FLOATING_POINT_LITERAL>\",\n \"<EXPONENT>\",\n \"<FILENAME>\",\n \"\\\"test\\\"\",\n \"\\\"dat\\\"\",\n \"\\\"WHERE\\\"\",\n \"<AGGREGATE>\",\n \"\\\"MIN\\\"\",\n \"\\\"SUM\\\"\",\n \"\\\"AVG\\\"\",\n \"\\\"MAX\\\"\",\n \"\\\"=\\\"\",\n \"<COLNAME>\",\n \"\\\".\\\"\",\n \"<STRING_LITERAL>\",\n };\n\n}", "title": "" }, { "docid": "d7dbdfb2b88a10d66c8d75e03ab84dc7", "score": "0.577851", "text": "private String transformIWantToStatement(String statement)\n {\n statement = statement.trim();\n String lastChar = statement.substring(statement.length() - 1);\n if (lastChar.equals(\".\"))\n {\n statement = statement.substring(0, statement.length() - 1);\n }\n int psn = findKeyword(statement, \"I want to\", 0);\n String restOfStatement = statement.substring(psn + 9).trim();\n return \"What would it mean to \" + restOfStatement + \"?\";\n }", "title": "" }, { "docid": "24de01d5a42cc23bf36ee017d42a735a", "score": "0.5758825", "text": "public interface BankStatementParser {\n BankTransaction parseLineFrom(String line);\n List<BankTransaction> parseLinesFrom(List<String> lines);\n}", "title": "" }, { "docid": "80a4885be3679145a4c969bfe48e98f8", "score": "0.575217", "text": "private Stmt stmt() {\n\t\tExpr_stmt e = expr_stmt();\n\t\tif(e==null) {\n\t\t\tCompound_stmt c = compound_stmt();\n\t\t\tif(c==null) {\n\t\t\t\tIf_stmt i = if_stmt();\n\t\t\t\tif(i==null) {\n\t\t\t\t\tWhile_stmt w =while_stmt();\n\t\t\t\t\tif(w==null) {\n\t\t\t\t\t\tReturn_stmt r = return_stmt();\n\t\t\t\t\t\tif(r==null) {\n\t\t\t\t\t\t\tBreak_stmt b=break_stmt();\n\t\t\t\t\t\t\tif(b!=null) {\n\t\t\t\t\t\t\t\treturn new Stmt(b);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}else {\n\t\t\t\t\t\t\treturn new Stmt(r);\n\t\t\t\t\t\t}\n\t\t\t\t\t}else {\n\t\t\t\t\t\treturn new Stmt(w);\n\t\t\t\t\t}\n\t\t\t\t}else {\n\t\t\t\t\treturn new Stmt(i);\n\t\t\t\t}\n\t\t\t}else {\n\t\t\t\treturn new Stmt(c);\n\t\t\t}\n\t\t}else {\n\t\t\treturn new Stmt(e);\n\t\t}\n\t\treturn null;\n\t}", "title": "" }, { "docid": "e16279acf7863d4dbaf998f20e8635ff", "score": "0.5695831", "text": "public Expression parse() throws Exception {\n Expression result = parseLogical();\n if (current == '\\n' && result != null)\n return result;\n else\n throwException();\n return null;\n }", "title": "" }, { "docid": "91286183d70802c996e823e96c27bc53", "score": "0.5695111", "text": "private static String extractStatementResult(String result) {\n int pos = -1;\n if ((pos = result.indexOf(\"=\")) >= 0) {\n return result.substring(pos + 1).trim();\n } else {\n throw new RuntimeException(\"No result can be extracted from '\" + result + \"', \" +\n \"something must be wrong\");\n }\n }", "title": "" }, { "docid": "9cd4337288724984492cdb03039cdbb1", "score": "0.5667907", "text": "@Override\n\tpublic void visit(StatementNode s) {\n\t\t\n\t}", "title": "" }, { "docid": "0505bd4e2fb543e9b07f04fbcb88f615", "score": "0.5621973", "text": "private void procReadStmt() throws IOException {\n String id;\n matchToken(TokenType.SCAN);\n matchToken(TokenType.OPEN_PAR);\n id = current.token;\n matchToken(TokenType.ID);\n if (!global.containsKey(id))\n System.out.printf(\"%3d: variável não declarada: %s\\n\", lex.getLine(), id);\n matchToken(TokenType.CLOSE_PAR);\n }", "title": "" }, { "docid": "349bf0ae87dcb4101d308f84a169e9de", "score": "0.5595445", "text": "public R visit(Statement n, A argu) {\n R _ret=null;\n _ret=(R)\"\";\n _ret=(R)n.f0.accept(this,argu);\n return _ret;\n }", "title": "" }, { "docid": "f3d8258dda57910c81c5d0bddc97d87d", "score": "0.55954236", "text": "private NodeAssn parseAssn() throws SyntaxException {\n\t\tToken id=curr();\n\t\tmatch(\"id\");\n\t\tmatch(\"=\");\n\t\tNodeExpr expr=parseExpr();\n\t\tNodeAssn assn=new NodeAssn(id.lex(),expr);\n\t\treturn assn;\n\t}", "title": "" }, { "docid": "aeb9f860773e467daa3a86600f0459b4", "score": "0.55888855", "text": "public static Statement fromString(String string) throws Xdi2ParseException {\r\n\r\n\t\treturn fromXriReference(new XRI3Reference(string));\r\n\t}", "title": "" }, { "docid": "d76f9634f071f72afa77d7bceefb0414", "score": "0.55796987", "text": "private void escape() throws SQLException {\n\t\tchar tc = terminator;\n\t\tterminator = '}';\n\t\tStringBuffer escBuf = new StringBuffer();\n\t\ts++;\n\t\tskipWhiteSpace();\n\n\t\tif (in[s] == '?') {\n\t\t\tcopyParam(\"@return_status\", -1);\n\t\t\tskipWhiteSpace();\n\t\t\tmustbe('=', false);\n\t\t\tskipWhiteSpace();\n\n\t\t\twhile (Character.isLetter(in[s])) {\n\t\t\t\tescBuf.append(Character.toLowerCase(in[s++]));\n\t\t\t}\n\n\t\t\tskipWhiteSpace();\n\t\t\tString esc = escBuf.toString();\n\n\t\t\tif (\"call\".equals(esc)) {\n\t\t\t\tcallEscape();\n\t\t\t} else {\n\t\t\t\tthrow new SQLException(BaseMessages.getString(PKG, \"error.parsesql.syntax\",\n\t\t\t\t\t\t\"call\", String.valueOf(s)), \"22019\");\n\t\t\t}\n\t\t} else {\n\t\t\twhile (Character.isLetter(in[s])) {\n\t\t\t\tescBuf.append(Character.toLowerCase(in[s++]));\n\t\t\t}\n\n\t\t\tskipWhiteSpace();\n\t\t\tString esc = escBuf.toString();\n\n\t\t\tif (\"call\".equals(esc)) {\n\t\t\t\tcallEscape();\n\t\t\t} else if (\"t\".equals(esc)) {\n\t\t\t\tif (!getDateTimeField(timeMask)) {\n\t\t\t\t\tthrow new SQLException(\n\t\t\t\t\t\t\tBaseMessages.getString(PKG, \"error.parsesql.syntax\", \"time\",\n\t\t\t\t\t\t\t\t\tString.valueOf(s)), \"22019\");\n\t\t\t\t}\n\t\t\t} else if (\"d\".equals(esc)) {\n\t\t\t\tif (!getDateTimeField(dateMask)) {\n\t\t\t\t\tthrow new SQLException(\n\t\t\t\t\t\t\tBaseMessages.getString(PKG, \"error.parsesql.syntax\", \"date\",\n\t\t\t\t\t\t\t\t\tString.valueOf(s)), \"22019\");\n\t\t\t\t}\n\t\t\t} else if (\"ts\".equals(esc)) {\n\t\t\t\tif (!getDateTimeField(timestampMask)) {\n\t\t\t\t\tthrow new SQLException(BaseMessages.getString(PKG, \"error.parsesql.syntax\", \"timestamp\", String.valueOf(s)), \"22019\");\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tthrow new SQLException(BaseMessages.getString(PKG, \"error.parsesql.badesc\",\n\t\t\t\t\t\tesc, String.valueOf(s)), \"22019\");\n\t\t\t}\n\t\t}\n\n\t\tmustbe('}', false);\n\t\tterminator = tc;\n\t}", "title": "" }, { "docid": "a50d2620d1bd547414e3185e4dfd3611", "score": "0.5572278", "text": "private String select(String expr) {\n Matcher m = SELECT_CLS.matcher(expr);\n if (!m.matches()) {\n return \"ERROR: Malformed select: \" + expr + \"\\n\";\n }\n Pattern p1 = Pattern.compile(COMMA);\n Pattern p2 = Pattern.compile(AND);\n Pattern p3 = Pattern.compile(\"([']?\\\\w+[']?)\\\\s*\"\n + \"([><!=]+)\\\\s*([']?\\\\s*\\\\w+\\\\s*[']?)\");\n Pattern p4 = Pattern.compile(\"([']?\\\\w+\\\\.?\\\\w*[']?)\"\n + \"\\\\s*([\\\\+\\\\*\\\\-/]+)\\\\s*([']?\\\\w+\\\\.?\\\\w*[']?)\"\n + \"\\\\s*as\\\\s*(\\\\w+)\");\n Matcher m1;\n String[] exprs = p1.split(m.group(1));\n String[] tableNames = p1.split(m.group(2));\n for (String t : tableNames) {\n int i = Handler.isData(t, this);\n if (i != -1) {\n for (String c : exprs) {\n if ((m1 = p4.matcher(c)).matches()) {\n int g1 = Handler.isColumn(m1.group(1), i, this);\n int g2 = Handler.isColumn(m1.group(3), i, this);\n String val = expressionTypeCheck(g1, g2, m1.group(1),\n m1.group(3), i, m1.group(2));\n if (!val.equals(\"\")) {\n return val;\n }\n } else {\n int k = Handler.isColumn(c, i, this);\n if (k == -1) {\n return \"ERROR: No column \" + c + \" in table.\";\n }\n }\n }\n } else {\n return \"ERROR: No table \" + t + \" in database.\";\n }\n }\n String conditions = m.group(3);\n if (conditions == null) {\n return Handler.selectTable(tableNames, exprs, this);\n }\n String[] conds = p2.split(conditions);\n for (String c : conds) {\n if (!p3.matcher(c).matches()) {\n return \"ERROR: Incorrect condition statement: \" + c;\n }\n }\n return Handler.selectTable(tableNames, exprs, conds, this);\n }", "title": "" }, { "docid": "72bfe9683648e7674e7301d689022781", "score": "0.55655175", "text": "public void visit(Statements stmts) {\n \n }", "title": "" }, { "docid": "92f11843de091c27646443defaf85341", "score": "0.55496895", "text": "public final AstValidator.statement_return statement() throws RecognitionException {\n AstValidator.statement_return retval = new AstValidator.statement_return();\n retval.start = input.LT(1);\n\n\n CommonTree root_0 = null;\n\n CommonTree _first_0 = null;\n CommonTree _last = null;\n\n AstValidator.general_statement_return general_statement3 =null;\n\n AstValidator.split_statement_return split_statement4 =null;\n\n AstValidator.realias_statement_return realias_statement5 =null;\n\n\n\n try {\n // /Users/wrvhage/Dropbox/teaching/Information_Retrieval_2012_2013/Distributed/pig-0.10.0-lucene/src//org/apache/pig/parser/AstValidator.g:98:11: ( general_statement | split_statement | realias_statement )\n int alt2=3;\n switch ( input.LA(1) ) {\n case STATEMENT:\n {\n alt2=1;\n }\n break;\n case SPLIT:\n {\n alt2=2;\n }\n break;\n case REALIAS:\n {\n alt2=3;\n }\n break;\n default:\n if (state.backtracking>0) {state.failed=true; return retval;}\n NoViableAltException nvae =\n new NoViableAltException(\"\", 2, 0, input);\n\n throw nvae;\n\n }\n\n switch (alt2) {\n case 1 :\n // /Users/wrvhage/Dropbox/teaching/Information_Retrieval_2012_2013/Distributed/pig-0.10.0-lucene/src//org/apache/pig/parser/AstValidator.g:98:13: general_statement\n {\n root_0 = (CommonTree)adaptor.nil();\n\n\n _last = (CommonTree)input.LT(1);\n pushFollow(FOLLOW_general_statement_in_statement95);\n general_statement3=general_statement();\n\n state._fsp--;\n if (state.failed) return retval;\n if ( state.backtracking==0 ) \n adaptor.addChild(root_0, general_statement3.getTree());\n\n\n if ( state.backtracking==0 ) {\n }\n }\n break;\n case 2 :\n // /Users/wrvhage/Dropbox/teaching/Information_Retrieval_2012_2013/Distributed/pig-0.10.0-lucene/src//org/apache/pig/parser/AstValidator.g:99:13: split_statement\n {\n root_0 = (CommonTree)adaptor.nil();\n\n\n _last = (CommonTree)input.LT(1);\n pushFollow(FOLLOW_split_statement_in_statement109);\n split_statement4=split_statement();\n\n state._fsp--;\n if (state.failed) return retval;\n if ( state.backtracking==0 ) \n adaptor.addChild(root_0, split_statement4.getTree());\n\n\n if ( state.backtracking==0 ) {\n }\n }\n break;\n case 3 :\n // /Users/wrvhage/Dropbox/teaching/Information_Retrieval_2012_2013/Distributed/pig-0.10.0-lucene/src//org/apache/pig/parser/AstValidator.g:100:13: realias_statement\n {\n root_0 = (CommonTree)adaptor.nil();\n\n\n _last = (CommonTree)input.LT(1);\n pushFollow(FOLLOW_realias_statement_in_statement123);\n realias_statement5=realias_statement();\n\n state._fsp--;\n if (state.failed) return retval;\n if ( state.backtracking==0 ) \n adaptor.addChild(root_0, realias_statement5.getTree());\n\n\n if ( state.backtracking==0 ) {\n }\n }\n break;\n\n }\n if ( state.backtracking==0 ) {\n\n retval.tree = (CommonTree)adaptor.rulePostProcessing(root_0);\n }\n\n }\n\n catch(RecognitionException re) {\n throw re;\n }\n\n finally {\n \t// do for sure before leaving\n }\n return retval;\n }", "title": "" }, { "docid": "6c7dfae5a50807335112c10b9ef610cb", "score": "0.5537687", "text": "void ExecStmt() {\n\t\tif (altNo == 1) {/*Assign statement*/\n\t\t\ts1.ExecAssign();/*Execute assign statement*/\n\t\t}\n\t\tif (altNo == 2) {/*If statement*/\n\t\t\ts2.ExecIf();/*Execute If statement*/\n\t\t}\n\t\tif (altNo == 3) {/*Loop statement*/\n\t\t\ts3.ExecLoop();/*Execute Loop statement*/\n\t\t}\n\t\tif (altNo == 4) {/*Input statement*/\n\t\t\ts4.ExecIn();/*Execute Input statement*/\n\t\t}\n\t\tif (altNo == 5) {/*Output statement*/\n\t\t\ts5.ExecOut();/*Execute Output statement*/\n\t\t}\n\t}", "title": "" }, { "docid": "c9306f6abb92963ad11cac0d3a22704a", "score": "0.5537135", "text": "public static CreateTableStatement parse(String createTableStatement) throws ParseException {\n\t\tParser parser = new Parser(new ByteArrayInputStream((createTableStatement).getBytes()));\n\t\tCreateTableStatement cts;\n\t\ttry {\n\t\t\tcts = parser.CreateTableStatement();\n\t\t\tString s = parser.getNextToken().toString();\n\t\t\tif (s.length() != 0) {\n\t\t\t\tthrow new ParseException(\"Extra token after valid CREATE TABLE statement '\" + s + \"'\");\n\t\t\t}\n\t\t} catch (TokenMgrError e) {\n\t\t\tthrow new ParseException(e.getMessage());\n\t\t}\n\t\treturn cts;\n\t}", "title": "" }, { "docid": "0cf07e65acfbd6fbaef5982c69abc408", "score": "0.552127", "text": "private int breakStatement() {\n int openPar = 0;\n int index = 0;\n do {\n char c = statement.charAt(index);\n if (c == '(') {\n openPar++;\n } else if (c == ')') {\n openPar--;\n }\n index++;\n } while (openPar != 0 && index != statement.length());\n if (index == statement.length()) {\n if (openPar != 0) {\n throw new RuntimeException();\n }\n statement = statement.substring(1, statement.length() - 1);\n return breakStatement();\n }\n if (index == 1) {\n return statement.indexOf(\"|\");\n }\n return index;\n }", "title": "" }, { "docid": "39bc818716880a0b73866289ec2a89d8", "score": "0.5520489", "text": "private NodeAssn parseAssn() throws SyntaxException {\n\t\tToken id = curr();\n\t\tmatch(\"id\");\n\t\tmatch(\"=\");\n\t\tNodeExpr expr = parseExpr();\n\t\tNodeAssn assn = new NodeAssn(id.lex(), expr);\n\t\treturn assn;\n\t}", "title": "" }, { "docid": "353cd8ae59b7c21ad1c1716fe6ce6afd", "score": "0.5515672", "text": "@Override\r\n public Observable<Statement> parse(Reader input) {\n return null;\r\n }", "title": "" }, { "docid": "97c086786454fa48f0cb42b20c04c480", "score": "0.55131763", "text": "private Return_stmt return_stmt() {\n\t\tif(Tokens.peek()!=null&&Tokens.peek().value.equals(\"return\")) {\n\t\t\tLexeme re = Tokens.poll();\n\t\t\tif(Tokens.peek()!=null&&Tokens.peek().value.equals(\";\")) {\n\t\t\t\tLexeme semi = Tokens.poll();\n\t\t\t\treturn new Return_stmt(re, semi);\n\t\t\t}\n\t\t\tExpr e =expr();\n\t\t\tif(e!=null) {\n\t\t\t\tif(Tokens.peek()!=null&&Tokens.peek().value.equals(\";\")) {\n\t\t\t\t\tLexeme semi = Tokens.poll();\n\t\t\t\t\treturn new Return_stmt(re,e, semi);\n\t\t\t\t}else {\n\t\t\t\t\terror=true;\n\t\t\t\t\tSystem.out.println(\"missing semicolom\");\n\t\t\t\t}\n\t\t\t}else {\n\t\t\t\terror=true;\n\t\t\t\tSystem.out.println(\"missing expr or semicolom\");\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn null;\n\t}", "title": "" }, { "docid": "30b98dad67be943bb64ec22f05bc53d1", "score": "0.5512347", "text": "public void parse() {\r\n lc = Location.convertToRelative(Symbol.getSymb(\":START\"));\r\n lineNumber = 1;\r\n try {\r\n encodeHeader();\r\n line = a.io.getLine();\r\n } catch (final ParseException e) {\r\n errors.add(e.getError());\r\n }\r\n while (line != null) {\r\n try {\r\n final String[] parsed = checkLine(parseLine(line));\r\n inst = parsed[1] == null ? null : new InstructionLine(parsed);\r\n if (inst != null)\r\n if (inst.opcode.charAt(0) == '.') {\r\n if (inst.opcode.equals(\".STRZ\"))\r\n parseSTRZ();\r\n else if (inst.opcode.equals(\".FILL\"))\r\n parseFILL();\r\n else if (inst.opcode.equals(\".BLKW\"))\r\n parseBLKW();\r\n else\r\n write(new short[0], new int[0]);\r\n } else\r\n parseInstruction();\r\n } catch (final ParseException e) {\r\n errors.add(e.getError());\r\n }\r\n lineNumber++;\r\n try {\r\n line = a.io.getLine();\r\n } catch (final ParseException e) {\r\n errors.add(e.getError());\r\n }\r\n }\r\n try {\r\n encodeLiterals();\r\n } catch (final ParseException e) {\r\n errors.add(e.getError());\r\n }\r\n try {\r\n encodeExec();\r\n } catch (final ParseException e) {\r\n errors.add(e.getError());\r\n }\r\n }", "title": "" }, { "docid": "1f142e804f7e2faae427fcdfa167435f", "score": "0.55099434", "text": "public void parse() {\n myLexer.setImportantLineBreakHandler(myImportantLinebreakHandler);\n try {\n while (!myLexer.eof()) {\n ASTNode expr = parseExpression();\n if (!expr.isParsed()) {\n error(\"The last expression could not be parsed correctly.\");\n myLexer.advanceLexer();\n } else {\n System.out.println(\"Result: \" + expr.toString());\n }\n }\n } catch (CriticalParserError criticalParserError) {\n while (!myLexer.eof()) {\n myLexer.advanceLexer();\n }\n error(criticalParserError.getMessage());\n }\n }", "title": "" }, { "docid": "73059688ee3172ea801fc44ea1a231fb", "score": "0.5501183", "text": "private NodeExpr parseExpr() throws SyntaxException {\n\t\tNodeTerm term=parseTerm();\n\t\tNodeAddop addop=parseAddop();\n\t\tif (addop==null)\n\t\t\treturn new NodeExpr(term,null,null);\n\t\tNodeExpr expr=parseExpr();\n\t\texpr.append(new NodeExpr(term,addop,null));\n\t\treturn expr;\n\t}", "title": "" }, { "docid": "e89c3f114527f2816e87f81ec394856d", "score": "0.54890585", "text": "public void write_stmt()\r\n {\r\n if(lexer.token != Symbol.WRITE)\r\n error.signal(\"Faltou o WRITE\");\r\n lexer.nextToken();\r\n \r\n if(lexer.token != Symbol.LPAR)\r\n error.signal(\"Faltou o '('\");\r\n lexer.nextToken();\r\n id_list();\r\n \r\n if(lexer.token != Symbol.RPAR)\r\n error.signal(\"Faltou o ')'\");\r\n lexer.nextToken();\r\n }", "title": "" }, { "docid": "7ec65efad2ad631ab89bfd8618c45c6f", "score": "0.54563886", "text": "void analyzeStatement(){\n return ;\n }", "title": "" }, { "docid": "3fe60c189574b72d353fde063d46e327", "score": "0.54291636", "text": "private String transformIWantStatement(String statement)\n\t{\n\t\t// Remove the final period, if there is one\n\t\tstatement = statement.trim();\n\t\tString lastChar = statement.substring(statement\n\t\t\t\t.length() - 1);\n\t\tif (lastChar.equals(\".\"))\n\t\t{\n\t\t\tstatement = statement.substring(0, statement\n\t\t\t\t\t.length() - 1);\n\t\t}\n\t\tint psn = findKeyword (statement, \"I want\", 0);\n\t\tString restOfStatement = statement.substring(psn + 6).trim();\n\t\treturn \"Would you really be happy if you had \" + restOfStatement + \"?\";\n\t}", "title": "" }, { "docid": "1c5fbe0528daba436937d4e057dde144", "score": "0.54123616", "text": "public void parse(){\n\t\til = new IdList();\n\t\tTokenizerSingleton.checkAndSkip(11, \"write\");\n\t\til.parseOutList();\n\t\tTokenizerSingleton.checkAndSkip(12, \";\");\n\t}", "title": "" }, { "docid": "d01bf495043a76cd2ce59167542f95d3", "score": "0.54120624", "text": "public static void parse(String userCommand) {\n ArrayList<String> commandTokens = new ArrayList<String>(Arrays.asList(userCommand.split(\" \")));\n\n /*\n * This switch handles a very small list of hardcoded commands of known syntax.\n * You will want to rewrite this method to interpret more complex commands.\n */\n switch (commandTokens.get(0)) {\n case \"select\":\n parseQueryString(userCommand);\n break;\n case \"create\":\n if (commandTokens.get(1).equals(\"table\"))\n parseCreateString(userCommand);\n else parseCreateIndexString(userCommand);\n break;\n case \"insert\":\n parseInsertString(userCommand);\n break;\n case \"update\":\n parseUpdateString(userCommand);\n break;\n case \"drop\":\n if (commandTokens.get(1).equals(\"table\"))\n Processor.dropTable(commandTokens.get(2));\n else\n System.out.println(\"Syntax Error\");\n break;\n case \"delete\":\n parseDeleteString(userCommand);\n break;\n case \"show\":\n parseShowString(userCommand);\n break;\n case \"help\":\n Processor.help();\n break;\n case \"version\":\n Prompt.displayVersion();\n break;\n case \"exit\":\n DavisBase.isExit = true;\n break;\n case \"quit\":\n DavisBase.isExit = true;\n break;\n default:\n System.out.println(\"I didn't understand the command: \\\"\" + userCommand + \"\\\"\");\n break;\n }\n }", "title": "" }, { "docid": "e3c52667c65c8afd0204b0e5bcba033c", "score": "0.5410698", "text": "public SQLExecutionPlan analyzeStatement(String link, String stmt, List<Object> params);", "title": "" }, { "docid": "aea81dfa177da41b2b5382eab3340c35", "score": "0.5405317", "text": "public final CliParser.getStatement_return getStatement() throws RecognitionException {\n CliParser.getStatement_return retval = new CliParser.getStatement_return();\n retval.start = input.LT(1);\n\n CommonTree root_0 = null;\n\n Token limit=null;\n Token GET114=null;\n Token string_literal116=null;\n Token string_literal118=null;\n Token GET119=null;\n Token string_literal121=null;\n Token string_literal123=null;\n Token string_literal125=null;\n CliParser.columnFamilyExpr_return columnFamilyExpr115 = null;\n\n CliParser.typeIdentifier_return typeIdentifier117 = null;\n\n CliParser.columnFamily_return columnFamily120 = null;\n\n CliParser.getCondition_return getCondition122 = null;\n\n CliParser.getCondition_return getCondition124 = null;\n\n\n CommonTree limit_tree=null;\n CommonTree GET114_tree=null;\n CommonTree string_literal116_tree=null;\n CommonTree string_literal118_tree=null;\n CommonTree GET119_tree=null;\n CommonTree string_literal121_tree=null;\n CommonTree string_literal123_tree=null;\n CommonTree string_literal125_tree=null;\n RewriteRuleTokenStream stream_IntegerPositiveLiteral=new RewriteRuleTokenStream(adaptor,\"token IntegerPositiveLiteral\");\n RewriteRuleTokenStream stream_GET=new RewriteRuleTokenStream(adaptor,\"token GET\");\n RewriteRuleTokenStream stream_109=new RewriteRuleTokenStream(adaptor,\"token 109\");\n RewriteRuleTokenStream stream_110=new RewriteRuleTokenStream(adaptor,\"token 110\");\n RewriteRuleTokenStream stream_AND=new RewriteRuleTokenStream(adaptor,\"token AND\");\n RewriteRuleTokenStream stream_LIMIT=new RewriteRuleTokenStream(adaptor,\"token LIMIT\");\n RewriteRuleSubtreeStream stream_typeIdentifier=new RewriteRuleSubtreeStream(adaptor,\"rule typeIdentifier\");\n RewriteRuleSubtreeStream stream_getCondition=new RewriteRuleSubtreeStream(adaptor,\"rule getCondition\");\n RewriteRuleSubtreeStream stream_columnFamilyExpr=new RewriteRuleSubtreeStream(adaptor,\"rule columnFamilyExpr\");\n RewriteRuleSubtreeStream stream_columnFamily=new RewriteRuleSubtreeStream(adaptor,\"rule columnFamily\");\n try {\n // /usr/local/cassandra-trunk/src/java/org/apache/cassandra/cli/Cli.g:247:5: ( GET columnFamilyExpr ( 'AS' typeIdentifier )? ( 'LIMIT' limit= IntegerPositiveLiteral )? -> ^( NODE_THRIFT_GET columnFamilyExpr ( ^( CONVERT_TO_TYPE typeIdentifier ) )? ( ^( NODE_LIMIT $limit) )? ) | GET columnFamily 'WHERE' getCondition ( 'AND' getCondition )* ( 'LIMIT' limit= IntegerPositiveLiteral )? -> ^( NODE_THRIFT_GET_WITH_CONDITIONS columnFamily ^( CONDITIONS ( getCondition )+ ) ( ^( NODE_LIMIT $limit) )? ) )\n int alt12=2;\n int LA12_0 = input.LA(1);\n\n if ( (LA12_0==GET) ) {\n int LA12_1 = input.LA(2);\n\n if ( ((LA12_1>=IntegerPositiveLiteral && LA12_1<=StringLiteral)||LA12_1==IntegerNegativeLiteral) ) {\n int LA12_2 = input.LA(3);\n\n if ( (LA12_2==117) ) {\n alt12=1;\n }\n else if ( (LA12_2==110) ) {\n alt12=2;\n }\n else {\n if (state.backtracking>0) {state.failed=true; return retval;}\n NoViableAltException nvae =\n new NoViableAltException(\"\", 12, 2, input);\n\n throw nvae;\n }\n }\n else {\n if (state.backtracking>0) {state.failed=true; return retval;}\n NoViableAltException nvae =\n new NoViableAltException(\"\", 12, 1, input);\n\n throw nvae;\n }\n }\n else {\n if (state.backtracking>0) {state.failed=true; return retval;}\n NoViableAltException nvae =\n new NoViableAltException(\"\", 12, 0, input);\n\n throw nvae;\n }\n switch (alt12) {\n case 1 :\n // /usr/local/cassandra-trunk/src/java/org/apache/cassandra/cli/Cli.g:247:7: GET columnFamilyExpr ( 'AS' typeIdentifier )? ( 'LIMIT' limit= IntegerPositiveLiteral )?\n {\n GET114=(Token)match(input,GET,FOLLOW_GET_in_getStatement1634); if (state.failed) return retval; \n if ( state.backtracking==0 ) stream_GET.add(GET114);\n\n pushFollow(FOLLOW_columnFamilyExpr_in_getStatement1636);\n columnFamilyExpr115=columnFamilyExpr();\n\n state._fsp--;\n if (state.failed) return retval;\n if ( state.backtracking==0 ) stream_columnFamilyExpr.add(columnFamilyExpr115.getTree());\n // /usr/local/cassandra-trunk/src/java/org/apache/cassandra/cli/Cli.g:247:28: ( 'AS' typeIdentifier )?\n int alt8=2;\n int LA8_0 = input.LA(1);\n\n if ( (LA8_0==109) ) {\n alt8=1;\n }\n switch (alt8) {\n case 1 :\n // /usr/local/cassandra-trunk/src/java/org/apache/cassandra/cli/Cli.g:247:29: 'AS' typeIdentifier\n {\n string_literal116=(Token)match(input,109,FOLLOW_109_in_getStatement1639); if (state.failed) return retval; \n if ( state.backtracking==0 ) stream_109.add(string_literal116);\n\n pushFollow(FOLLOW_typeIdentifier_in_getStatement1641);\n typeIdentifier117=typeIdentifier();\n\n state._fsp--;\n if (state.failed) return retval;\n if ( state.backtracking==0 ) stream_typeIdentifier.add(typeIdentifier117.getTree());\n\n }\n break;\n\n }\n\n // /usr/local/cassandra-trunk/src/java/org/apache/cassandra/cli/Cli.g:247:51: ( 'LIMIT' limit= IntegerPositiveLiteral )?\n int alt9=2;\n int LA9_0 = input.LA(1);\n\n if ( (LA9_0==LIMIT) ) {\n alt9=1;\n }\n switch (alt9) {\n case 1 :\n // /usr/local/cassandra-trunk/src/java/org/apache/cassandra/cli/Cli.g:247:52: 'LIMIT' limit= IntegerPositiveLiteral\n {\n string_literal118=(Token)match(input,LIMIT,FOLLOW_LIMIT_in_getStatement1646); if (state.failed) return retval; \n if ( state.backtracking==0 ) stream_LIMIT.add(string_literal118);\n\n limit=(Token)match(input,IntegerPositiveLiteral,FOLLOW_IntegerPositiveLiteral_in_getStatement1650); if (state.failed) return retval; \n if ( state.backtracking==0 ) stream_IntegerPositiveLiteral.add(limit);\n\n\n }\n break;\n\n }\n\n\n\n // AST REWRITE\n // elements: typeIdentifier, limit, columnFamilyExpr\n // token labels: limit\n // rule labels: retval\n // token list labels: \n // rule list labels: \n // wildcard labels: \n if ( state.backtracking==0 ) {\n retval.tree = root_0;\n RewriteRuleTokenStream stream_limit=new RewriteRuleTokenStream(adaptor,\"token limit\",limit);\n RewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,\"rule retval\",retval!=null?retval.tree:null);\n\n root_0 = (CommonTree)adaptor.nil();\n // 248:9: -> ^( NODE_THRIFT_GET columnFamilyExpr ( ^( CONVERT_TO_TYPE typeIdentifier ) )? ( ^( NODE_LIMIT $limit) )? )\n {\n // /usr/local/cassandra-trunk/src/java/org/apache/cassandra/cli/Cli.g:248:12: ^( NODE_THRIFT_GET columnFamilyExpr ( ^( CONVERT_TO_TYPE typeIdentifier ) )? ( ^( NODE_LIMIT $limit) )? )\n {\n CommonTree root_1 = (CommonTree)adaptor.nil();\n root_1 = (CommonTree)adaptor.becomeRoot((CommonTree)adaptor.create(NODE_THRIFT_GET, \"NODE_THRIFT_GET\"), root_1);\n\n adaptor.addChild(root_1, stream_columnFamilyExpr.nextTree());\n // /usr/local/cassandra-trunk/src/java/org/apache/cassandra/cli/Cli.g:248:47: ( ^( CONVERT_TO_TYPE typeIdentifier ) )?\n if ( stream_typeIdentifier.hasNext() ) {\n // /usr/local/cassandra-trunk/src/java/org/apache/cassandra/cli/Cli.g:248:49: ^( CONVERT_TO_TYPE typeIdentifier )\n {\n CommonTree root_2 = (CommonTree)adaptor.nil();\n root_2 = (CommonTree)adaptor.becomeRoot((CommonTree)adaptor.create(CONVERT_TO_TYPE, \"CONVERT_TO_TYPE\"), root_2);\n\n adaptor.addChild(root_2, stream_typeIdentifier.nextTree());\n\n adaptor.addChild(root_1, root_2);\n }\n\n }\n stream_typeIdentifier.reset();\n // /usr/local/cassandra-trunk/src/java/org/apache/cassandra/cli/Cli.g:248:86: ( ^( NODE_LIMIT $limit) )?\n if ( stream_limit.hasNext() ) {\n // /usr/local/cassandra-trunk/src/java/org/apache/cassandra/cli/Cli.g:248:86: ^( NODE_LIMIT $limit)\n {\n CommonTree root_2 = (CommonTree)adaptor.nil();\n root_2 = (CommonTree)adaptor.becomeRoot((CommonTree)adaptor.create(NODE_LIMIT, \"NODE_LIMIT\"), root_2);\n\n adaptor.addChild(root_2, stream_limit.nextNode());\n\n adaptor.addChild(root_1, root_2);\n }\n\n }\n stream_limit.reset();\n\n adaptor.addChild(root_0, root_1);\n }\n\n }\n\n retval.tree = root_0;}\n }\n break;\n case 2 :\n // /usr/local/cassandra-trunk/src/java/org/apache/cassandra/cli/Cli.g:249:7: GET columnFamily 'WHERE' getCondition ( 'AND' getCondition )* ( 'LIMIT' limit= IntegerPositiveLiteral )?\n {\n GET119=(Token)match(input,GET,FOLLOW_GET_in_getStatement1695); if (state.failed) return retval; \n if ( state.backtracking==0 ) stream_GET.add(GET119);\n\n pushFollow(FOLLOW_columnFamily_in_getStatement1697);\n columnFamily120=columnFamily();\n\n state._fsp--;\n if (state.failed) return retval;\n if ( state.backtracking==0 ) stream_columnFamily.add(columnFamily120.getTree());\n string_literal121=(Token)match(input,110,FOLLOW_110_in_getStatement1699); if (state.failed) return retval; \n if ( state.backtracking==0 ) stream_110.add(string_literal121);\n\n pushFollow(FOLLOW_getCondition_in_getStatement1701);\n getCondition122=getCondition();\n\n state._fsp--;\n if (state.failed) return retval;\n if ( state.backtracking==0 ) stream_getCondition.add(getCondition122.getTree());\n // /usr/local/cassandra-trunk/src/java/org/apache/cassandra/cli/Cli.g:249:45: ( 'AND' getCondition )*\n loop10:\n do {\n int alt10=2;\n int LA10_0 = input.LA(1);\n\n if ( (LA10_0==AND) ) {\n alt10=1;\n }\n\n\n switch (alt10) {\n \tcase 1 :\n \t // /usr/local/cassandra-trunk/src/java/org/apache/cassandra/cli/Cli.g:249:46: 'AND' getCondition\n \t {\n \t string_literal123=(Token)match(input,AND,FOLLOW_AND_in_getStatement1704); if (state.failed) return retval; \n \t if ( state.backtracking==0 ) stream_AND.add(string_literal123);\n\n \t pushFollow(FOLLOW_getCondition_in_getStatement1706);\n \t getCondition124=getCondition();\n\n \t state._fsp--;\n \t if (state.failed) return retval;\n \t if ( state.backtracking==0 ) stream_getCondition.add(getCondition124.getTree());\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop10;\n }\n } while (true);\n\n // /usr/local/cassandra-trunk/src/java/org/apache/cassandra/cli/Cli.g:249:67: ( 'LIMIT' limit= IntegerPositiveLiteral )?\n int alt11=2;\n int LA11_0 = input.LA(1);\n\n if ( (LA11_0==LIMIT) ) {\n alt11=1;\n }\n switch (alt11) {\n case 1 :\n // /usr/local/cassandra-trunk/src/java/org/apache/cassandra/cli/Cli.g:249:68: 'LIMIT' limit= IntegerPositiveLiteral\n {\n string_literal125=(Token)match(input,LIMIT,FOLLOW_LIMIT_in_getStatement1711); if (state.failed) return retval; \n if ( state.backtracking==0 ) stream_LIMIT.add(string_literal125);\n\n limit=(Token)match(input,IntegerPositiveLiteral,FOLLOW_IntegerPositiveLiteral_in_getStatement1715); if (state.failed) return retval; \n if ( state.backtracking==0 ) stream_IntegerPositiveLiteral.add(limit);\n\n\n }\n break;\n\n }\n\n\n\n // AST REWRITE\n // elements: getCondition, columnFamily, limit\n // token labels: limit\n // rule labels: retval\n // token list labels: \n // rule list labels: \n // wildcard labels: \n if ( state.backtracking==0 ) {\n retval.tree = root_0;\n RewriteRuleTokenStream stream_limit=new RewriteRuleTokenStream(adaptor,\"token limit\",limit);\n RewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,\"rule retval\",retval!=null?retval.tree:null);\n\n root_0 = (CommonTree)adaptor.nil();\n // 250:9: -> ^( NODE_THRIFT_GET_WITH_CONDITIONS columnFamily ^( CONDITIONS ( getCondition )+ ) ( ^( NODE_LIMIT $limit) )? )\n {\n // /usr/local/cassandra-trunk/src/java/org/apache/cassandra/cli/Cli.g:250:12: ^( NODE_THRIFT_GET_WITH_CONDITIONS columnFamily ^( CONDITIONS ( getCondition )+ ) ( ^( NODE_LIMIT $limit) )? )\n {\n CommonTree root_1 = (CommonTree)adaptor.nil();\n root_1 = (CommonTree)adaptor.becomeRoot((CommonTree)adaptor.create(NODE_THRIFT_GET_WITH_CONDITIONS, \"NODE_THRIFT_GET_WITH_CONDITIONS\"), root_1);\n\n adaptor.addChild(root_1, stream_columnFamily.nextTree());\n // /usr/local/cassandra-trunk/src/java/org/apache/cassandra/cli/Cli.g:250:59: ^( CONDITIONS ( getCondition )+ )\n {\n CommonTree root_2 = (CommonTree)adaptor.nil();\n root_2 = (CommonTree)adaptor.becomeRoot((CommonTree)adaptor.create(CONDITIONS, \"CONDITIONS\"), root_2);\n\n if ( !(stream_getCondition.hasNext()) ) {\n throw new RewriteEarlyExitException();\n }\n while ( stream_getCondition.hasNext() ) {\n adaptor.addChild(root_2, stream_getCondition.nextTree());\n\n }\n stream_getCondition.reset();\n\n adaptor.addChild(root_1, root_2);\n }\n // /usr/local/cassandra-trunk/src/java/org/apache/cassandra/cli/Cli.g:250:87: ( ^( NODE_LIMIT $limit) )?\n if ( stream_limit.hasNext() ) {\n // /usr/local/cassandra-trunk/src/java/org/apache/cassandra/cli/Cli.g:250:87: ^( NODE_LIMIT $limit)\n {\n CommonTree root_2 = (CommonTree)adaptor.nil();\n root_2 = (CommonTree)adaptor.becomeRoot((CommonTree)adaptor.create(NODE_LIMIT, \"NODE_LIMIT\"), root_2);\n\n adaptor.addChild(root_2, stream_limit.nextNode());\n\n adaptor.addChild(root_1, root_2);\n }\n\n }\n stream_limit.reset();\n\n adaptor.addChild(root_0, root_1);\n }\n\n }\n\n retval.tree = root_0;}\n }\n break;\n\n }\n retval.stop = input.LT(-1);\n\n if ( state.backtracking==0 ) {\n\n retval.tree = (CommonTree)adaptor.rulePostProcessing(root_0);\n adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);\n }\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n \tretval.tree = (CommonTree)adaptor.errorNode(input, retval.start, input.LT(-1), re);\n\n }\n finally {\n }\n return retval;\n }", "title": "" }, { "docid": "81b18cd2f25ee69c82906d7371e89142", "score": "0.54015076", "text": "@Test\n public void testParsing3() throws IOException {\n String tree = testFile(\"testResources\\\\scs\\\\parsing\\\\parsing3.ppl\", \"[]\");\n Assert.assertEquals(\"\" +\n \"(program (statement if (expression ( (expression true) )) (statement { \\\\r\\\\n\" +\n \" (statement (type (primitiveType integer)) (id x) = (expression (num (ngWrittenNumber _ (ngsingle (nghprefix (ngonly (ngsingles Five))) (nghundred hundred) (ngonly (ngmain2 (ngdoubles Sixty) (ngseconds Four))))))) ; \\\\r\\\\n\" +\n \" ) (statement (target (id x)) = (expression (expression (id x)) (plusOp -) (expression (num 1))) ; \\\\r\\\\n\" +\n \" ) (statement (type (primitiveType boolean)) (id f) = (expression true) ; \\\\r\\\\n\" +\n \" ) (statement while (expression ( (expression (id f)) )) (statement { \\\\r\\\\n\" +\n \" (statement (target (id x)) = (expression (expression (id x)) (plusOp -) (expression (num 1))) ; \\\\r\\\\n\" +\n \" ) (statement if (expression ( (expression (expression (id x)) (compOp <) (expression (num 20))) )) (statement { \\\\r\\\\n\" +\n \" (statement (target (id f)) = (expression false) ; \\\\r\\\\n\" +\n \" ) } \\\\r\\\\n\" +\n \" )) } \\\\r\\\\n\" +\n \" )) (statement if (expression ( (expression (expression (id x)) (compOp ==) (expression (num 19))) )) (statement { \\\\r\\\\n\" +\n \" (statement (target (id x)) = (expression (num 20)) ; \\\\r\\\\n\" +\n \" ) } \\\\r\\\\n\" +\n \")) })) <EOF>)\", tree);\n }", "title": "" }, { "docid": "67582b2fdda13804008ffeb2bb7a4e56", "score": "0.537774", "text": "Statement createStatement();", "title": "" }, { "docid": "d5208628742d56c38a24ef380e0b890d", "score": "0.53761786", "text": "void source() throws SyntaxException {\n\t\tif (t.isKind(STRING_LITERAL)) {\r\n\t\t\tconsume();\r\n\t\t} else if (t.isKind(OP_AT)) {\r\n\t\t\tconsume();\r\n\t\t\tif (getpredictSets(\"Expression\").contains(t.kind)) {\r\n\t\t\t\texpression();\r\n\t\t\t}else {\r\n\t\t\t\tthrow new SyntaxException(t,\"Error while parsing program at \" + t.kind);\r\n\t\t\t}\r\n\t\t} else if (t.isKind(IDENTIFIER)) {\r\n\t\t\tconsume();\r\n\t\t}else {\r\n\t\t\tthrow new SyntaxException(t,\"Error while parsing program at \" + t.kind);\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "c3dd702c80a84141c7f718896c82d323", "score": "0.5371863", "text": "@Test\r\n\tpublic void testStatementsNodeType(){\r\n\t\tString sourceCode = \"if (true) int i = 1;\";\r\n\t\tASTParser parser = ASTParser.newParser(AST.JLS8);\r\n\t parser.setKind(ASTParser.K_STATEMENTS);\r\n\t parser.setSource(sourceCode.toCharArray());\r\n\t Statement st = (Statement)parser.createAST(null);\r\n\t st.accept(new ASTVisitor() {});\r\n\t assertEquals(ASTNode.BLOCK,st.getNodeType());\r\n\t}", "title": "" }, { "docid": "28978d12bfdebb56732304dee7ce8da1", "score": "0.53628695", "text": "private void procedureStatement() {\r\n\t\tswitch (lookAhead.getIdentifier()) {\r\n\t\t\tcase \"mp_identifier\":\r\n\t\t\t\tpassSymbol = symbolTable.findSymbol(lookAhead.getLexeme(), \"procedure\");\r\n\t\t\t\tprocedureIdentifier();\r\n\t\t\t\tbreak;\t\r\n\t\t\tdefault:\r\n\t\t\t\thandleError(false, \"Procedure Statement\");\r\n\t\t}\r\n\t\t\r\n\t\tString register = \"D\"+(passSymbol.getLevel()+1);\r\n\t\t// leave space for PC pushed by call later\r\n\t\tcompiler.add(\"SP\",\"#1\",\"SP\");\r\n\t\tcompiler.push(register);\r\n\t\t\r\n\t\tint count = 0;\r\n\t\tif (lookAhead.getIdentifier().equals(\"mp_lparen\")) {\r\n\t\t\tcount = actualParameterList();\r\n\t\t}\r\n\t\t\r\n\t\t// back up DX to point to beginning of activation record (had to wait because of recursive calls needing reference to current DX)\r\n\t\tcompiler.subtract(\"SP\", \"#\"+count, register);\r\n\t\t\r\n\t\tcompiler.subtract(register, \"#2\", \"SP\");\r\n\t\tcompiler.call(passSymbol.label);\r\n\t}", "title": "" }, { "docid": "515b5381991b7a609d093b873b09b4e6", "score": "0.53624874", "text": "private NodeExpr parseExpr() throws SyntaxException {\n\t\tNodeTerm term = parseTerm();\n\t\tNodeAddop addop = parseAddop();\n\t\tif (addop == null)\n\t\t\treturn new NodeExpr(term, null, null);\n\t\tNodeExpr expr = parseExpr();\n\t\texpr.append(new NodeExpr(term, addop, null));\n\t\treturn expr;\n\t}", "title": "" }, { "docid": "5f5179c44bda7a708bbeafff81ac94fe", "score": "0.5358945", "text": "private String tokenizerRule(String name, String rule)\n\t{\n\t\t//System.out.println(rule);\n\n\t\t//because this function is auto-converting rules from previous format to the new one,\n\t\t//we are dealing with two thingTypes, the first in the from clause, and the second in the where clause\n\t\tString whereThingType = \"\";\n\t\tString fromThingType = \"\";\n\t\tStringBuilder condition = new StringBuilder( \"\" );\n\n\t\trule = rule + \" \";\n\t\tchar car;\n\t\tboolean select = false;\n\t\tboolean asterisk = false;\n\t\tboolean from = false;\n\t\tboolean where = false;\n\n\n\t\tStringBuilder token = new StringBuilder(\"\");\n\n\t\tStringBuilder strPattern = new StringBuilder( \"\" );\n\t\tstrPattern.append( \"udf\" ); //udf//\n\t\tstrPattern.append( \"\\\\s*\" ); //udf //\n\t\tstrPattern.append( \"\\\\(\" ); //udf (//\n\t\tstrPattern.append( \"\\\\s*\" ); //udf ( //\n\t\tstrPattern.append( \"['\\\"]\" ); //udf ( \"//\n\t\tstrPattern.append( \"thingTypeCode\" ); //udf ( \"thingTypeCode//\n\t\tstrPattern.append( \"['\\\"]\" ); //udf ( \"thingTypeCode\"//\n\t\tstrPattern.append( \"\\\\s*\" ); //udf ( \"thingTypeCode\" //\n\t\tstrPattern.append( \"\\\\)\" ); //udf ( \"thingTypeCode\" )//\n\t\tstrPattern.append( \"\\\\s*\" ); //udf ( \"thingTypeCode\" ) //\n\t\tstrPattern.append( \"=\" ); //udf ( \"thingTypeCode\" ) =//\n\t\tstrPattern.append( \"\\\\s*\" ); //udf ( \"thingTypeCode\" ) = //\n\t\tstrPattern.append( \"['\\\"]\" ); //udf ( \"thingTypeCode\" ) = \"//\n\t\tstrPattern.append( \"(.*?)\" ); //udf ( \"thingTypeCode\" ) = \"assets//\n\t\tstrPattern.append( \"['\\\"]\" ); //udf ( \"thingTypeCode\" ) = \"assets\"//\n\t\tstrPattern.append( \"\\\\s*\" ); //udf ( \"thingTypeCode\" ) = \"assets\" //\n\t\tPattern pattern = Pattern.compile( strPattern.toString() );\n\t\tMatcher matcher = pattern.matcher( rule );\n\t\twhile (matcher.find()) {\n\t\t\twhereThingType = matcher.group(1);\n\t\t}\n\n\t\tfor (int i=0; i < rule.length() ; i++ ) {\n\t\t\tcar = rule.charAt( i );\n\t\t\tif ( car == '\\n' || car == '\\r' || car == ' ' || car == '\\t' || i == rule.length()-1) {\n\n\t\t\t\t//validate every important token\n\t\t\t\tif ( token.toString().toLowerCase().equals( \"select\" ) && !select) {\n\t\t\t\t\tselect = true;\n\t\t\t\t\ttoken = new StringBuilder(\"\");\n\t\t\t\t}\n\t\t\t\tif ( token.toString().toLowerCase().equals( \"*\" ) && select ) {\n\t\t\t\t\tasterisk = true;\n\t\t\t\t\ttoken = new StringBuilder(\"\");\n\t\t\t\t}\n\t\t\t\tif ( token.toString().toLowerCase().equals( \"from\" ) && asterisk ) {\n\t\t\t\t\tfrom = true;\n\t\t\t\t\ttoken = new StringBuilder(\"\");\n\t\t\t\t}\n\t\t\t\tif ( token.toString().toLowerCase().equals( \"where\" ) && fromThingType.length() > 0 ) {\n\t\t\t\t\twhere = true;\n\t\t\t\t\ttoken = new StringBuilder(\"\");\n\t\t\t\t}\n\t\t\t\t//fromThingType, we have the default thingtype\n\t\t\t\tif (select && asterisk && from && fromThingType.length() == 0) {\n\t\t\t\t\tfromThingType = token.toString();\n\t\t\t\t\ttoken = new StringBuilder(\"\");\n\t\t\t\t}\n\n\t\t\t\tif( token.length() > 0)\n\t\t\t\t{\n\t\t\t\t\tif (select && asterisk && from && fromThingType.length() > 0 && where ) {\n\t\t\t\t\t\tcondition.append( token.toString() );\n\t\t\t\t\t\tcondition.append( car );\n\t\t\t\t\t}\n\t\t\t\t\ttoken = new StringBuilder(\"\");\n\t\t\t\t}\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\ttoken = token.append( car );\n\t\t}\n\n\t\tStringBuilder newRule = new StringBuilder( \"\" );\n\n\t\tif (!whereThingType.equals(\"\") ) {\n\t\t\t//fromThingType = whereThingType;\n\t\t\tif ( fromThingType.equals( \"messageEventType\" )) {\n\t\t\t\tnewRule.append( rule );\n\t\t\t} else {\n\t\t\t\tnewRule.append( \"select * from messageEventType where udf('thingTypeCode') = '\" + whereThingType + \"'\" );\n\t\t\t\tif( condition.toString().length() > 0 )\n\t\t\t\t{\n\t\t\t\t\tnewRule.append( \" and ( \" + condition.toString() + \" ) \" );\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tnewRule.append( \"select * from messageEventType where udf('thingTypeCode') = '\" + fromThingType + \"'\" );\n\t\t\tif( condition.toString().length() > 0 )\n\t\t\t{\n\t\t\t\tnewRule.append( \" and ( \" + condition.toString() + \" ) \" );\n\t\t\t}\n\t\t}\n\t\tlogger.info(\"converting EdgeboxRule \" + name);\n\t\tlogger.info(\"from: \" + rule);\n\t\tlogger.info(\"to: \" + newRule.toString() );\n\n\t\treturn newRule.toString();\n\t}", "title": "" }, { "docid": "fe47aed8087dc5025bc312825b28be18", "score": "0.5357698", "text": "private String transformIWantToStatement(String statement)\n\t{\n\t\t// Remove the final period, if there is one\n\t\tstatement = statement.trim();\n\t\tString lastChar = statement.substring(statement\n\t\t\t\t.length() - 1);\n\t\tif (lastChar.equals(\".\"))\n\t\t{\n\t\t\tstatement = statement.substring(0, statement\n\t\t\t\t\t.length() - 1);\n\t\t}\n\t\tint psn = findKeyword (statement, \"I want to\", 0);\n\t\tString restOfStatement = statement.substring(psn + 9).trim();\n\t\treturn \"Why do you want to \" + restOfStatement + \"?\";\n\t}", "title": "" }, { "docid": "2b1d21578d084bea3024a5eb0c689437", "score": "0.5348789", "text": "Program parse(Reader r);", "title": "" }, { "docid": "07896f576efc2f80a84426b5fb1ed564", "score": "0.5345359", "text": "private void importStatements() throws JDOMException, IOException {\r\n\t\tSAXBuilder builder = new SAXBuilder();\r\n\t\tDocument doc = builder.build(statementsFile);\r\n\t\tstatements = new HashMap<String, String>();\r\n\t\tElement root = doc.getRootElement();\r\n\t\tList<Element> elements = root.getChildren(\"statement\");\r\n\t\tfor (Element element : elements) {\r\n\t\t\tString id = element.getAttribute(\"id\").getValue();\r\n\t\t\tString statement = element.getValue();\r\n\t\t\tstatements.put(id, statement);\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "634cff969b23426551744561aa237a2d", "score": "0.53433144", "text": "private static ASTNode createAST() {\n\t\tList<Statement> statements = new ArrayList<Statement>();\n\t\t\n\t\t// * First line\n\t\tExpression expression = new Variable(1, 6, \"a\");\n\t\tstatements.add(new Read(1, 6, expression));\n\t\t\n\t\texpression = new Variable(1, 9, \"b\");\n\t\tstatements.add(new Read(1, 8, expression));\n\t\t\n\t\t// * Second Line\n\t\tStatement statement = new Assignment(2, 3, \n\t\t\t\tnew Variable(2, 1, \"a\"),\t\t\t\n\t\t\t\tnew Arithmetic(2, 13,\n\t\t\t\t\t\tnew Arithmetic(2, 11,\n\t\t\t\t\t\t\tnew Arithmetic(2, 8, \n\t\t\t\t\t\t\t\t\tnew UnaryMinus(2, 6, \n\t\t\t\t\t\t\t\t\t\t\tnew Variable(2, 7, \"b\")\n\t\t\t\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\t\t\"+\",\n\t\t\t\t\t\t\t\t\tnew IntLiteral(2, 9, 3)\n\t\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\"*\",\n\t\t\t\t\t\t\tnew Variable(2, 12, \"c\")\n\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\"/\",\n\t\t\t\t\t\tnew IntLiteral(2, 14, 2)\n\t\t\t\t\t\t)\n\t\t\t\t);\n\t\tstatements.add(statement);\n\t\t\n\t\t// * Third line\n\t\texpression = new Variable(3, 7, \"a\");\n\t\tstatements.add(new Write(3, 7, expression));\n\t\t\n\t\texpression = new Arithmetic(3, 10, \n\t\t\t\tnew Variable(3, 10, \"c\"),\n\t\t\t\t\"*\",\n\t\t\t\tnew IntLiteral(3, 12, 2)\n\t\t\t\t);\n\t\tstatements.add(new Write(3, 10, expression));\n\t\t\n\t\t// * We build and return the AST\n\t\treturn new Program(1, 1, statements);\n\t}", "title": "" }, { "docid": "b8e9e453a6a7b711ccfda4d08218454c", "score": "0.5342876", "text": "private String getSqlStatement(Statement stmt, String query) {\n if (stmt == null) {\n return query;\n }\n try {\n String sql = stmt.toString();\n int pos = sql.indexOf(\": \");\n return pos < 0 ? sql : sql.substring(pos + 2);\n } catch (Exception x) {\n return query;\n }\n }", "title": "" }, { "docid": "6a2d743354b2e4482ccd87c471543002", "score": "0.53334284", "text": "public Object parse() throws SExprParserException, IOException {\r\n\t\treturn this.parse(this.readSkipWhite(), this);\r\n\t}", "title": "" }, { "docid": "20f2485eb0a0d08657b1e321dfd78b24", "score": "0.532534", "text": "private Expression parseExpression() throws CommandSyntaxException {\n Expression expr = parseTerm();\n reader.skipWhitespace();\n\n while (reader.canRead() && (reader.peek() == '+' || reader.peek() == '-')) {\n char operator = reader.read();\n reader.skipWhitespace();\n Expression right = parseTerm();\n if (operator == '+') {\n expr = new BinaryOpExpression(expr, right, Double::sum, \"addition\");\n } else {\n expr = new BinaryOpExpression(expr, right, (l, r) -> l - r, \"subtraction\");\n }\n }\n\n return expr;\n }", "title": "" }, { "docid": "143c883dd54c258d577eab1d54429538", "score": "0.5322937", "text": "public void parseSelectStatement(String queryText) throws NumberFormatException, IOException\n\t{\n\t\t\n\t\tint startIndex = 5, endIndex = queryText.toLowerCase().indexOf(\"from \");\n\t\t\n\t\t//Check if \"from\" keyword exists or not\n\t\tif(endIndex == - 1)\n\t\t{\n\t\t\terrorRoutine(queryText);\n\t\t\treturn;\n\t\t}\t\t\n\n\t\tArrayList<String> columns = new ArrayList<String>();\n\t\t\n\t\tStringBuilder tempColumn = new StringBuilder();\n\n\t\tif(queryText.charAt(startIndex + 1) != ' ' || queryText.charAt(endIndex - 1) != ' ') \n\t\t{\n\t\t\t// If the query is like select* from emp OR select *from emp--> throw error\n\t\t\terrorRoutine(queryText);\n\t\t\treturn;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tfor(int i = startIndex + 2; i < endIndex; i++)\n\t\t\t{\n\t\t\t\tif(queryText.charAt(i) == ',') \n\t\t\t\t{\n\t\t\t\t\tif(i == startIndex)\n\t\t\t\t\t{\n\t\t\t\t\t\t// If the query is like select ,* from emp --> throw error\n\t\t\t\t\t\terrorRoutine(queryText);\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t\t// else add to the columns list\n\t\t\t\t\tcolumns.add(tempColumn.toString());\n\t\t\t\t\ttempColumn.setLength(0);\n\t\t\t\t}\n\t\t\t\telse if(queryText.charAt(i) != ' ')\n\t\t\t\t{\n\t\t\t\t\ttempColumn.append(queryText.charAt(i));\n\t\t\t\t}\n\t\t\t\tif(i == endIndex - 1)\n\t\t\t\t{\n\t\t\t\t\tcolumns.add(tempColumn.toString());\n\t\t\t\t\ttempColumn.setLength(0);\n\t\t\t\t}\n\t\t\t}\t\t\t\n\t\t}\n\t\t\n\t\tint noOfColumns = columns.size();\n\t\tboolean conditionPresent = false;\n\t\t\n\t\t// Get the table names may be till the end of the query or till the end of the where clause\n\t\t// check for it\n\t\t\t\t\n\t\tstartIndex = endIndex + 5;\n\t\t\n\t\tendIndex = queryText.toLowerCase().indexOf(\"where\");\n\t\t\n\t\tif(endIndex > -1)\n\t\t\tconditionPresent = true;\n\n\t\tendIndex = (endIndex == -1? queryText.length() : endIndex);\n\t\t\n\t\tArrayList<String> tableNames = new ArrayList<String>();\n\t\t\n\t\tfor(int i = startIndex; i < endIndex; i++)\n\t\t{\n\t\t\tif(queryText.charAt(i) == ',')\n\t\t\t{\n\t\t\t\tif(i == startIndex)\n\t\t\t\t{\n\t\t\t\t\terrorRoutine(queryText);\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\ttableNames.add(tempColumn.toString());\n\t\t\t\ttempColumn.setLength(0);\n\t\t\t}\n\t\t\telse if(queryText.charAt(i) != ' ')\n\t\t\t{\n\t\t\t\ttempColumn.append(queryText.charAt(i));\n\t\t\t}\n\t\t\tif(i == endIndex - 1)\n\t\t\t{\n\t\t\t\ttableNames.add(tempColumn.toString());\n\t\t\t\ttempColumn.setLength(0);\n\t\t\t}\n\t\t}\n\t\t\n\t\tint andIndex = 0, orIndex = 0;\n\t\tboolean andCondition = false;\n\t\tboolean orCondition = false;\n\t\tStringBuilder conditionColumn1 = new StringBuilder();\n\t\tStringBuilder condition1 = new StringBuilder();\n\t\tStringBuilder conditionColumnValue1 = new StringBuilder();\n\t\tboolean lessThanEqTo1 = false, greaterThanEqTo1 = false, equalsTo1 = false, greaterThan1 = false, lessThan1 = false;\n\t\tboolean lessThanEqTo2 = false, greaterThanEqTo2 = false, equalsTo2 = false, greaterThan2 = false, lessThan2 = false;\n\t\tStringBuilder conditionColumn2 = new StringBuilder();\n\t\tStringBuilder condition2 = new StringBuilder();\n\t\tStringBuilder conditionColumnValue2 = new StringBuilder();\n\t\t\n\t\t// If where is present that means where is present parse it till the end of the query\n\t\t\n\t\tif(endIndex < queryText.length()) // means \"where\" condition was present in the last condition, hence where location must be less than that of the lenght of the string\n\t\t{\n\t\t\tif((andIndex = queryText.toLowerCase().indexOf(\" and \")) != -1)\n\t\t\t\tandCondition = true;\n\t\t\telse if((orIndex = queryText.toLowerCase().indexOf(\" or \")) != -1)\n\t\t\t\torCondition = true;\n\t\t\n\t\t\tstartIndex = endIndex + 6;\n\t\t\t\t\t\n\t\t\tint i = startIndex;\n\t\t\t\t\t\n\t\t\t// Get the index of \"and\" or \"or\" and loop till it\n\t\t\t// get condition Column 1\n\t\t\t\n\t\t\twhile( i < queryText.length() &&\n\t\t\t\t\tqueryText.charAt(i) != '<' &&\n\t\t\t\t\tqueryText.charAt(i) != '>' &&\n\t\t\t\t\tqueryText.charAt(i) != '=' &&\n\t\t\t\t\tqueryText.charAt(i) != ' ' )\n\t\t\t{\n\t\t\t\tconditionColumn1.append(queryText.charAt(i));\n\t\t\t\ti++;\n\t\t\t}\n\t\t\t\n\t\t\t//loop till nonspace character if it is there\n\t\t\tif(i < queryText.length() && queryText.charAt(i) == ' ')\n\t\t\t\twhile(queryText.charAt(++i) == ' ');\n\t\t\t\n\t\t\t//Get the condition\n\t\t\t\n\t\t\twhile(i < queryText.length() && queryText.charAt(i) != ' ' )\n\t\t\t{\n\t\t\t\tif(queryText.charAt(i) == '=')\n\t\t\t\t{\n\t\t\t\t\tcondition1.append(queryText.charAt(i));\n\t\t\t\t\ti++;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\telse if(queryText.charAt(i) == '>' || queryText.charAt(i) == '<')\n\t\t\t\t{\n\t\t\t\t\tcondition1.append(queryText.charAt(i));\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\ti++;\n\t\t\t}\n\t\t\t\n\t\t\t// < and > are not implemented yet\n\t\t\t\n\t\t\tswitch(condition1.toString())\n\t\t\t{\n\t\t\t\tcase \"=\":\n\t\t\t\t\tequalsTo1 = true;\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"<=\":\n\t\t\t\t\tlessThanEqTo1 = true;\n\t\t\t\t\tbreak;\n\t\t\t\tcase \">=\":\n\t\t\t\t\tgreaterThanEqTo1 = true;\n\t\t\t\t\tbreak;\n\t\t\t\tcase \">\":\n\t\t\t\t\tgreaterThan1 = true;\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"<\":\n\t\t\t\t\tlessThan1 = true;\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\terrorRoutine(queryText);\n\t\t\t\t\treturn;\t\t\t\t\n\t\t\t}\t\n\t\t\t\t\t\t\n\t\t\t//loop till nonspace character if it is there\n\t\t\tif(queryText.charAt(i) == ' ')\n\t\t\t\twhile(queryText.charAt(++i) == ' ');\n\t\t\t\n\t\t\twhile( i < queryText.length() &&\n\t\t\t\t\tqueryText.charAt(i) != ' ')\n\t\t\t{\n\t\t\t\tconditionColumnValue1.append(queryText.charAt(i));\n\t\t\t\ti++;\n\t\t\t}\n\t\t\t\n\t\t\t//Only get the next values if and or or condition is there else don't\n\t\t\tif(andCondition)\n\t\t\t\ti = andIndex + 5;\n\t\t\telse if(orCondition)\n\t\t\t\ti = orIndex + 4;\n\t\t\t\n\t\t\tif(andCondition || orCondition)\n\t\t\t{\n\t\t\t\t//loop till nonspace character if it is there\n\t\t\t\tif(queryText.charAt(i) == ' ')\n\t\t\t\t\twhile(queryText.charAt(++i) == ' ');\n\t\t\t\t\n\n\t\t\t\twhile( i < queryText.length() &&\n\t\t\t\t\t\tqueryText.charAt(i) != '<' &&\n\t\t\t\t\t\tqueryText.charAt(i) != '>' &&\n\t\t\t\t\t\tqueryText.charAt(i) != '=' &&\n\t\t\t\t\t\tqueryText.charAt(i) != ' ' )\n\t\t\t\t{\n\t\t\t\t\tconditionColumn2.append(queryText.charAt(i));\n\t\t\t\t\ti++;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//loop till nonspace character if it is there\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\tif(queryText.charAt(i) == ' ')\n\t\t\t\t\twhile(queryText.charAt(++i) == ' ');\n\t\t\t\t}\n\t\t\t\tcatch(Exception e)\n\t\t\t\t{\n\t\t\t\t\terrorRoutine(queryText);\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t//Get the condition\n\t\t\t\twhile(i < queryText.length() && queryText.charAt(i) != ' ' )\n\t\t\t\t{\n\t\t\t\t\tif(queryText.charAt(i) == '=')\n\t\t\t\t\t{\n\t\t\t\t\t\tcondition2.append(queryText.charAt(i));\n\t\t\t\t\t\ti++;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\telse if(queryText.charAt(i) == '>' || queryText.charAt(i) == '<')\n\t\t\t\t\t{\n\t\t\t\t\t\tcondition2.append(queryText.charAt(i));\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t\tbreak;\n\t\t\t\t\ti++;\n\t\t\t\t}\t\t\n\t\t\t\t\n\t\t\t\tswitch(condition2.toString())\n\t\t\t\t{\n\t\t\t\t\tcase \"=\":\n\t\t\t\t\t\tequalsTo2 = true;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase \"<=\":\n\t\t\t\t\t\tlessThanEqTo2 = true;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase \">=\":\n\t\t\t\t\t\tgreaterThanEqTo2 = true;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase \">\":\n\t\t\t\t\t\tgreaterThan2 = true;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase \"<\":\n\t\t\t\t\t\tgreaterThan2 = true;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tdefault:\n\t\t\t\t\t\terrorRoutine(queryText);\n\t\t\t\t\t\treturn;\t\t\t\t\n\t\t\t\t}\t\n\t\t\t\t\n\t\t\t\tif(queryText.charAt(i) == ' ')\n\t\t\t\t\twhile(queryText.charAt(++i) == ' ');\n\t\t\t\t\n\t\t\t\twhile( \ti < queryText.length() &&\n\t\t\t\t\t\tqueryText.charAt(i) != ' ')\n\t\t\t\t{\n\t\t\t\t\tconditionColumnValue2.append(queryText.charAt(i));\n\t\t\t\t\ti++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t/*\n\t\tSystem.out.println(\"No Of Columns in Select Query : \" + noOfColumns);\n\t\tfor(int i = 0; i < tableNames.size(); i++)\n\t\t\tSystem.out.println(\"Table : \" + tableNames.get(i));\n\t\t\n\t\tfor(int i = 0; i < columns.size(); i++)\n\t\t\tSystem.out.println(\"Rows : \" + columns.get(i));\n\t\t\n\t\tSystem.out.println(\t\"AND Condition : \" + andCondition +\n\t\t\t\t\t\t\t\"\\nOR Condition : \" + orCondition + \n\t\t\t\t\t\t\t\"\\n Condition Column 1 : \" + conditionColumn1 + \n\t\t\t\t\t\t\t\"\\n Condition 1 : \" + condition1 + \n\t\t\t\t\t\t\t\"\\n Condition Column Value 1 : \" + conditionColumnValue1 +\n\t\t\t\t\t\t\t\"\\n Condition columns value 2 : \" + conditionColumn2 + \n\t\t\t\t\t\t\t\"\\n Condition 2 : \" + condition2 +\n\t\t\t\t\t\t\t\"\\n Condition Column Value 2 \" + conditionColumnValue2 +\n\t\t\t\t\t\t\t\"\\n Is less than in first Condition 1: \" + lessThan1 +\n\t\t\t\t\t\t\t\"\\n Is greater than in first Condition 1 : \" + greaterThan1+\n\t\t\t\t\t\t\t\"\\n Is greater than eq in first Condition 1 : \" + greaterThanEqTo1+\n\t\t\t\t\t\t\t\"\\n Is less than eq in first Condition 1 : \" + lessThanEqTo1+\n\t\t\t\t\t\t\t\"\\n Is equals to in first Condition 1: \" + equalsTo1 +\n\t\t\t\t\t\t\t\"\\n Is less than in first Condition 1: \" + lessThan2 +\n\t\t\t\t\t\t\t\"\\n Is greater than in first Condition 1 : \" + greaterThan2 +\n\t\t\t\t\t\t\t\"\\n Is greater than eq in first Condition 1 : \" + greaterThanEqTo2 +\n\t\t\t\t\t\t\t\"\\n Is less than eq in first Condition 1 : \" + lessThanEqTo2 +\n\t\t\t\t\t\t\t\"\\n Is equals to in first Condition 1: \" + equalsTo2 \n\t\t\t\t\t\t\t);*/\n\t\t\n\t\t// First lets check for the * in the parsed select query\n\t\t\n\t\tif(columns.size() == 1) // means single column is present\n\t\t{\n\t\t\t//Check if the column is * or not\n\t\t\tif(columns.get(0).toString().equals(\"*\"))\n\t\t\t{\n\t\t\t\tif(conditionPresent)\n\t\t\t\t{\n\t\t\t\t\tif(andCondition == false && orCondition == false)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(tableNames.size() == 1)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t//Check whether the table is present or not\n\t\t\t\t\t\t\tif(!isTablePresent(tableNames.get(0)))\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tSystem.out.println(\"\\\"\" + tableNames.get(0) + \"\\\" is not present...\");\n\t\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t//Check whether the the column is present or not in the table \n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tfor(int i = 0; i < columns.size(); i++)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tif(!isColumnPresentInTable(tableNames.get(0), conditionColumn1.toString()))\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tSystem.out.println(\"Column is not part of the table...\");\n\t\t\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\t\t}\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tVector <String> colResult = new Vector <String>();\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tint index = getIndex(tableNames.get(0), conditionColumn1.toString());\n\t\n\t\t\t\t\t\t\tBufferedReader br = new BufferedReader(new FileReader(\"src/\"+tableNames.get(0)+\".csv\"));\n\t\t\t\t\t\t\tString line;\n\t\t\t\t\t\t\ttry \n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\twhile((line = br.readLine()) != null)\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tString colList[] = line.split(\",\");\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tif(equalsTo1)\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tif(colList[index].trim().equals(conditionColumnValue1.toString().trim()))\n\t\t\t\t\t\t\t\t\t\t\tcolResult.add(line);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\telse if(greaterThan1)\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tif(Float.parseFloat(colList[index].trim()) > Float.parseFloat(conditionColumnValue1.toString().trim()))\n\t\t\t\t\t\t\t\t\t\t\tcolResult.add(line);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\telse if(lessThan1)\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tif(Float.parseFloat(colList[index].trim()) < Float.parseFloat(conditionColumnValue1.toString().trim()))\n\t\t\t\t\t\t\t\t\t\t\tcolResult.add(line);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\telse if(lessThanEqTo1)\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tif(Float.parseFloat(colList[index].trim()) <= Float.parseFloat(conditionColumnValue1.toString().trim()))\n\t\t\t\t\t\t\t\t\t\t\tcolResult.add(line);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\telse if(greaterThanEqTo1)\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tif(Float.parseFloat(colList[index].trim()) >= Float.parseFloat(conditionColumnValue1.toString().trim()))\n\t\t\t\t\t\t\t\t\t\t\tcolResult.add(line);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\terrorRoutine(queryText);\n\t\t\t\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} \n\t\t\t\t\t\t\tcatch (NumberFormatException e) \n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\t} \n\t\t\t\t\t\t\tcatch (IOException e) \n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t//Display the result\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif(columns.get(0).equals(\"*\"))\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tfor(int i = 0; i < miniSqlParser.tablesCreated.get(tableNames.get(0)).size(); i++)\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tSystem.out.print(miniSqlParser.tablesCreated.get(tableNames.get(0)).get(i) + \"\\t\");\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tSystem.out.println();\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tfor(int i = 0; i < colResult.size(); i++)\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tString splittedRows[] = colResult.get(i).toString().split(\",\");\n\t\t\t\t\t\t\t\t\tfor(int j = 0; j < splittedRows.length; j++)\n\t\t\t\t\t\t\t\t\t\tSystem.out.print(splittedRows[j]+\"\\t\");\n\t\t\t\t\t\t\t\t\tSystem.out.println();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t//Print the column list\n\t\t\t\t\t\t\t\tfor(int j = 0; j < columns.size(); j++)\n\t\t\t\t\t\t\t\t\tSystem.out.print(columns.get(j)+\"\\t\");\n\t\t\t\t\t\t\t\tSystem.out.println();\n\t\t\t\t\t\t\t\t//for that may be I will get the display column list\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tfor(int k = 0; k < colResult.size(); k++)\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tString splitRow[] = colResult.get(k).split(\",\");\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tfor(int i = 0; i < miniSqlParser.tablesCreated.get(tableNames.get(0)).size(); i++)\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tfor(int j = 0; j < columns.size(); j++)\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\tif(getIndex(tableNames.get(0), miniSqlParser.tablesCreated.get(tableNames.get(0)).get(i))\n\t\t\t\t\t\t\t\t\t\t\t\t\t== getIndex(tableNames.get(0), columns.get(j)))\n\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\tSystem.out.print(splitRow[getIndex(tableNames.get(0), columns.get(j))]+ \"\\t\" );\n\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t}\t\t\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tSystem.out.println();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse// means a condition is true check for that condition\n\t\t\t\t\t{\t\t\n\t\t\t\t\t\t// why not to first check for the table to which the condition column they belong to\n\t\t\t\t\t\t//Check if tables exists or not\n\t\t\t\t\t\t\n\t\t\t\t\t\tfor(int i = 0; i < tableNames.size(); i++)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif(!isTablePresent(tableNames.get(i)))\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tSystem.out.println(\"\\\"\" + tableNames.get(i) + \"\\\" does not exists...\");\n\t\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\t//This variable is for the getting the table to which the first column belongs to in the condition\n\t\t\t\t\t\tString fstTable = null;\n\t\t\t\t\t\t\n\t\t\t\t\t\t//Check of the table to which fst column belongs if it does not belong to any table throw error\n\t\t\t\t\t\t//Iterate over the tablelist\n\t\t\t\t\t\t\n\t\t\t\t\t\tint flag = 0;\n\t\t\t\t\t\tfor(int i = 0; i < tableNames.size(); i++)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif(isColumnPresentInTable(tableNames.get(i),conditionColumn1.toString()))\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tfstTable = tableNames.get(i);\n\t\t\t\t\t\t\t\tflag = 1;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tif(flag == 0)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tSystem.out.println(\"\\\"\" + conditionColumn1 + \"\\\" column is not part of any table\");\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t//This variable is for the getting the table to which the sec column belongs to in the condition\n\t\t\t\t\t\tString secTable = null;\n\t\t\t\t\t\t\n\t\t\t\t\t\t//Check of the table to which sec column belongs if it does not belong to any table throw error\n\t\t\t\t\t\t//Iterate over the tablelist\n\t\t\t\t\t\t\n\t\t\t\t\t\tflag = 0;\n\t\t\t\t\t\tfor(int i = 0; i < tableNames.size(); i++)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif(isColumnPresentInTable(tableNames.get(i),conditionColumn2.toString()))\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tsecTable = tableNames.get(i);\n\t\t\t\t\t\t\t\tflag = 1;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tif(flag == 0)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tSystem.out.println(\"\\\"\" + conditionColumn2 + \"\\\" column is not part of any table\");\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tVector <String> colResult = new Vector <String>();\n\t\t\t\t\t\t// If \"or\" condition then no need to check anything just add the columns in the result vector\n\t\t\t\t\t\t//get the rows from the first table\n\t\t\t\t\t\tBufferedReader br = new BufferedReader(new FileReader(\"src/\" + fstTable + \".csv\"));\n\t\t\t\t\t\t\n\t\t\t\t\t\tint index = getIndex(fstTable, conditionColumn1.toString());\n\n\t\t\t\t\t\tString line;\n\t\t\t\t\t\ttry \n\t\t\t\t\t\t{\n\t\t\t\t\t\t\twhile((line = br.readLine()) != null)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tString colList[] = line.split(\",\");\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tif(equalsTo1)\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tif(colList[index].trim().equals(conditionColumnValue1.toString().trim()))\n\t\t\t\t\t\t\t\t\t\tcolResult.add(line);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\telse if(greaterThan1)\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tif(Float.parseFloat(colList[index].trim()) > Float.parseFloat(conditionColumnValue1.toString().trim()))\n\t\t\t\t\t\t\t\t\t\tcolResult.add(line);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\telse if(lessThan1)\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tif(Float.parseFloat(colList[index].trim()) < Float.parseFloat(conditionColumnValue1.toString().trim()))\n\t\t\t\t\t\t\t\t\t\tcolResult.add(line);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\telse if(lessThanEqTo1)\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tif(Float.parseFloat(colList[index].trim()) <= Float.parseFloat(conditionColumnValue1.toString().trim()))\n\t\t\t\t\t\t\t\t\t\tcolResult.add(line);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\telse if(greaterThanEqTo1)\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tif(Float.parseFloat(colList[index].trim()) >= Float.parseFloat(conditionColumnValue1.toString().trim()))\n\t\t\t\t\t\t\t\t\t\tcolResult.add(line);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\terrorRoutine(queryText);\n\t\t\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} \n\t\t\t\t\t\tcatch (NumberFormatException e) \n\t\t\t\t\t\t{\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t} \n\t\t\t\t\t\tcatch (IOException e) \n\t\t\t\t\t\t{\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tfinally\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tbr.close();\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tif(!fstTable.equals(secTable) && !orCondition)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tSystem.out.println(\"###\"+fstTable+\"###\"+secTable+\"###\");\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t//Get the rows from the second table\n\t\t\t\t\t\t\tbr = new BufferedReader(new FileReader(\"src/\" + secTable + \".csv\"));\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tindex = getIndex(secTable, conditionColumn2.toString());\n\t\n\t\t\t\t\t\t\ttry \n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\twhile((line = br.readLine()) != null)\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tString colList[] = line.split(\",\");\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tif(equalsTo2)\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tif(colList[index].trim().equals(conditionColumnValue2.toString().trim()) && !colResult.contains(line))\n\t\t\t\t\t\t\t\t\t\t\tcolResult.add(line);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\telse if(greaterThan2)\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tif(Float.parseFloat(colList[index].trim()) > Float.parseFloat(conditionColumnValue2.toString().trim()) && !colResult.contains(line))\n\t\t\t\t\t\t\t\t\t\t\tcolResult.add(line);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\telse if(lessThan2)\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tif(Float.parseFloat(colList[index].trim()) < Float.parseFloat(conditionColumnValue2.toString().trim()) && !colResult.contains(line))\n\t\t\t\t\t\t\t\t\t\t\tcolResult.add(line);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\telse if(lessThanEqTo2)\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tif(Float.parseFloat(colList[index].trim()) <= Float.parseFloat(conditionColumnValue2.toString().trim()) && !colResult.contains(line))\n\t\t\t\t\t\t\t\t\t\t\tcolResult.add(line);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\telse if(greaterThanEqTo2)\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tif(Float.parseFloat(colList[index].trim()) >= Float.parseFloat(conditionColumnValue2.toString().trim()) && !colResult.contains(line))\n\t\t\t\t\t\t\t\t\t\t\tcolResult.add(line);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\terrorRoutine(queryText);\n\t\t\t\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} \n\t\t\t\t\t\t\tcatch (NumberFormatException e) \n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\t} \n\t\t\t\t\t\t\tcatch (IOException e) \n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tfinally\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tbr.close();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tif(orCondition || !fstTable.equals(secTable))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t//print the result as per the columns asked by the user\n\t\t\t\t\t\t\tfor(int i = 0; i < colResult.size(); i++)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tString csv[] = colResult.get(i).toString().split(\",\");\n\t\t\t\t\t\t\t\tfor(int j = 0; j < csv.length; j++)\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tSystem.out.print(csv[j] + \"\\t\");\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tSystem.out.println();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse \n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t//\tmeans the table to which the first condition column belong is same as that of the second condition column\n\t\t\t\t\t\t\t// \tBoth are same\n\t\t\t\t\t\t\t//Need to check both the conditions\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tint indexOfColumn = getIndex(secTable, conditionColumn2.toString());\n\t\t\t\t\t\t\tVector <String> result = new Vector <String>();\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tfor(int i = 0; i < colResult.size(); i++)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tString csv[] = colResult.get(i).toString().split(\",\");\n\t\t\t\t\t\t\t\tfor(int j = 0; j < csv.length; j++)\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t//Check for the both the conditions at the same time\n\t\t\t\t\t\t\t\t\tif(equalsTo2)\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tif(csv[indexOfColumn].trim().equals(conditionColumnValue2.toString().trim()) && !result.contains(colResult.get(i)))\n\t\t\t\t\t\t\t\t\t\t\tresult.add(colResult.get(i));\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\telse if(greaterThan2)\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tif(Float.parseFloat(csv[indexOfColumn].trim()) > Float.parseFloat(conditionColumnValue2.toString().trim()) && !result.contains(colResult.get(i)))\n\t\t\t\t\t\t\t\t\t\t\tresult.add(colResult.get(i));\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\telse if(lessThan2)\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tif(Float.parseFloat(csv[indexOfColumn].trim()) < Float.parseFloat(conditionColumnValue2.toString().trim()) && !result.contains(colResult.get(i)))\n\t\t\t\t\t\t\t\t\t\t\tresult.add(colResult.get(i));\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\telse if(lessThanEqTo2)\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tif(Float.parseFloat(csv[indexOfColumn].trim()) <= Float.parseFloat(conditionColumnValue2.toString().trim()) && !result.contains(colResult.get(i)))\n\t\t\t\t\t\t\t\t\t\t\tresult.add(colResult.get(i));\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\telse if(greaterThanEqTo2)\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tif(Float.parseFloat(csv[indexOfColumn].trim()) >= Float.parseFloat(conditionColumnValue2.toString().trim()) && !result.contains(colResult.get(i)))\n\t\t\t\t\t\t\t\t\t\t\tresult.add(colResult.get(i));\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\terrorRoutine(queryText);\n\t\t\t\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\t\t\t}\t\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tfor(int i = 0; i < result.size(); i++)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tString csv[] = result.get(i).toString().split(\",\");\n\t\t\t\t\t\t\t\tfor(int j = 0; j < csv.length; j++)\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tSystem.out.print(csv[j] + \"\\t\");\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tSystem.out.println();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\n\t\t\t\t\tVector<String> result = new Vector<String>();\n\t\t\t\t\t\n\t\t\t\t\t// This is required if the query contains more than one table\n\t\t\t\t\n\t\t\t\t\tfor(int i = 0; i< tableNames.size(); i++)\n\t\t\t\t\t{\n\t\t\t\t\t\tString tableName = \"src/\" + tableNames.get(i).toString() + \".csv\";\n\t\t\t\t\t\tFile f = new File(tableName);\n\t\t\t\t\t\t\n\t\t\t\t\t\tVector<String> tempResult = new Vector<String>();\n\t\t\t\t\t\t\n\t\t\t\t\t\tif(f.exists())\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t// \tFirst get all the rows \n\t\t\t\t\t\t\tBufferedReader tableFileReader = new BufferedReader(new FileReader(f));\n\t\t\t\t\t\t\tString rowInTable;\n\t\t\t\t\t\t\ttry \n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\twhile((rowInTable = tableFileReader.readLine()) != null) \n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\ttempResult.add(rowInTable);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tcatch (IOException e) \n\t\t\t\t\t\t\t{\t\t\t\t\n\t\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t//Merge with the previous result\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t// If first time then directly copy the result in the result vector\n\t\t\t\t\t\t\tif(i == 0)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tresult = (Vector<String>) tempResult.clone();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tVector<String> temp = new Vector<String>();\n\t\t\t\t\t\t\t\tint j, k;\n\t\t\t\t\t\t\t\tfor(j = 0; j < result.size(); j++)\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tString tempCol = result.get(j);\n\t\t\t\t\t\t\t\t\tfor(k = 0; k < tempResult.size(); k++)\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\ttemp.add(j + k, tempCol + \",\" + tempResult.get(k));\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tresult.clear();\n\t\t\t\t\t\t\t\ttempResult.clear();\n\t\t\t\t\t\t\t\tresult = (Vector<String>) temp.clone();\n\t\t\t\t\t\t\t\ttemp.clear();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tSystem.out.println(\"Table does not exists!!!\");\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tfor(int i = 0; i < tableNames.size(); i++)\n\t\t\t\t\t{\n\t\t\t\t\t\tfor(int j = 0; j < miniSqlParser.tablesCreated.get(tableNames.get(i)).size(); j++)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tSystem.out.print(miniSqlParser.tablesCreated.get(tableNames.get(i)).get(j)+\"\\t\");\n\t\t\t\t\t\t}\t\n\t\t\t\t\t}\t\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t\t\n\t\t\t\t\t//Show the result\n\t\t\t\t\tif(tableNames.size() > 1)\n\t\t\t\t\t\tCollections.reverse(result);\n\t\t\t\t\t\n\t\t\t\t\tfor(int j = 0; j < result.size(); j++)\n\t\t\t\t\t{\n\t\t\t\t\t\tString temp[] = result.get(j).split(\",\");\n\t\t\t\t\t\tfor(int k = 0; k < temp.length; k++)\n\t\t\t\t\t\t\tSystem.out.print(temp[k] + \"\\t\");\n\t\t\t\t\t\tSystem.out.print(\"\\n\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t//Check if the column name is in the table list or not or check if the column is any aggreagate function or not\n\t\t\t\t// like if the user enters the query \"select colName from table1, table2;\n\t\t\t\n\t\t\t\tString currentQueryName = columns.get(0).trim();\n\t\t\t\t\n\t\t\t\tif(currentQueryName.matches(\".*\\\\(.*\\\\)\"))\n\t\t\t\t{\n\t\t\t\t\tStringBuilder aggrFunctionName = new StringBuilder();\n\t\t\t\t\tStringBuilder currentColName = new StringBuilder();\n\t\t\t\t\tint i;\n\t\t\t\t\n\t\t\t\t\t//To get the name of the aggregate function\n\t\t\t\t\tfor(i = 0; i < currentQueryName.length(); i++)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(currentQueryName.charAt(i) == '(')\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t} \n\t\t\t\t\t\telse if(currentQueryName.charAt(i) != ' ')\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\taggrFunctionName.append(currentQueryName.charAt(i)); \n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\t//To get the name of the column on which it is performed \n\t\t\t\t\t//AND YES REMEMBER CAN BE ON * TOO\n\t\t\t\t\tfor(i = i + 1; i < currentQueryName.length(); i++) \n\t\t\t\t\t{\n\t\t\t\t\t\tif(currentQueryName.charAt(i) == ')')\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(currentQueryName.charAt(i) != ' ') \n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tcurrentColName.append(currentQueryName.charAt(i)); \n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tswitch(aggrFunctionName.toString().toLowerCase())\n\t\t\t\t\t{\n\t\t\t\t\t\tcase \"sum\":\n\t\t\t\t\t\t\tif(tableNames.size() > 1)\n\t\t\t\t\t\t\t\tSystem.out.println(\"More than one table isn't supported...\");\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tfloat sum = getSumAggr(currentColName.toString(), tableNames.get(0).toString());\n\t\t\t\t\t\t\t\tif(sum == -1)\n\t\t\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\t\tSystem.out.println(aggrFunctionName+\"(\"+currentColName+\")\\n \"+sum);\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase \"avg\":\n\t\t\t\t\t\t\tif(tableNames.size() > 1)\n\t\t\t\t\t\t\t\tSystem.out.println(\"More than one table isn't supported...\");\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tfloat avg = getAvgAggr(currentColName.toString(), tableNames.get(0).toString());\n\t\t\t\t\t\t\t\tif(avg == -1)\n\t\t\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\t\tSystem.out.println(aggrFunctionName+\"(\"+currentColName+\")\\n \"+avg);\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase \"max\":\n\t\t\t\t\t\t\tif(tableNames.size() > 1)\n\t\t\t\t\t\t\t\tSystem.out.println(\"More than one table isn't supported...\");\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tfloat max = getMaxAggr(currentColName.toString(), tableNames.get(0).toString());\n\t\t\t\t\t\t\t\tif(max == -1)\n\t\t\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\t\tSystem.out.println(aggrFunctionName+\"(\"+currentColName+\")\\n \" + max);\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase \"min\":\n\t\t\t\t\t\t\tif(tableNames.size() > 1)\n\t\t\t\t\t\t\t\tSystem.out.println(\"More than one table isn't supported...\");\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tfloat min = getMinAggr(currentColName.toString(), tableNames.get(0).toString());\n\t\t\t\t\t\t\t\tif(min == -1)\n\t\t\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\t\tSystem.out.println(aggrFunctionName+\"(\"+currentColName+\")\\n \" + min);\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase \"distinct\":\n\t\t\t\t\t\t\tif(tableNames.size() > 1)\n\t\t\t\t\t\t\t\tSystem.out.println(\"More than one table isn't supported...\");\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tint retValue = getDistinctRows(currentColName.toString(), tableNames.get(0).toString());\n\t\t\t\t\t\t\t\tif(retValue == -1)\n\t\t\t\t\t\t\t\t\treturn;\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tdefault :\n\t\t\t\t\t\t\terrorRoutine(queryText);\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t}\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\telse // it can be single column name run the loop for it\n\t\t\t\t{\n\t\t\t\t\tif(conditionPresent)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(tableNames.size() == 1)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t//Check whether the table is present or not\n\t\t\t\t\t\t\tif(!isTablePresent(tableNames.get(0)))\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tSystem.out.println(\"\\\"\" + tableNames.get(0) + \"\\\" is not present...\");\n\t\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t//Check whether the the column is present or not in the table \n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tfor(int i = 0; i < columns.size(); i++)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tif(!isColumnPresentInTable(tableNames.get(0), columns.get(i)))\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tSystem.out.println(\"Column is not part of the table...\");\n\t\t\t\t\t\t\t\t}\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tVector <String> colResult = new Vector <String>();\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tint index = getIndex(tableNames.get(0), conditionColumn1.toString());\n\n\t\t\t\t\t\t\tBufferedReader br = new BufferedReader(new FileReader(\"src/\"+tableNames.get(0)+\".csv\"));\n\t\t\t\t\t\t\tString line;\n\t\t\t\t\t\t\ttry \n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\twhile((line = br.readLine()) != null)\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tString colList[] = line.split(\",\");\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tif(equalsTo1)\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tif(colList[index].trim().equals(conditionColumnValue1.toString().trim()))\n\t\t\t\t\t\t\t\t\t\t\tcolResult.add(line);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\telse if(greaterThan1)\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tif(Float.parseFloat(colList[index].trim()) > Float.parseFloat(conditionColumnValue1.toString().trim()))\n\t\t\t\t\t\t\t\t\t\t\tcolResult.add(line);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\telse if(lessThan1)\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tif(Float.parseFloat(colList[index].trim()) < Float.parseFloat(conditionColumnValue1.toString().trim()))\n\t\t\t\t\t\t\t\t\t\t\tcolResult.add(line);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\telse if(lessThanEqTo1)\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tif(Float.parseFloat(colList[index].trim()) <= Float.parseFloat(conditionColumnValue1.toString().trim()))\n\t\t\t\t\t\t\t\t\t\t\tcolResult.add(line);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\telse if(greaterThanEqTo1)\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tif(Float.parseFloat(colList[index].trim()) >= Float.parseFloat(conditionColumnValue1.toString().trim()))\n\t\t\t\t\t\t\t\t\t\t\tcolResult.add(line);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\terrorRoutine(queryText);\n\t\t\t\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} \n\t\t\t\t\t\t\tcatch (NumberFormatException e) \n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\t} \n\t\t\t\t\t\t\tcatch (IOException e) \n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t//Display the result\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t//Print the column list\n\t\t\t\t\t\t\tfor(int j = 0; j < columns.size(); j++)\n\t\t\t\t\t\t\t\tSystem.out.print(columns.get(j)+\"\\t\");\n\t\t\t\t\t\t\tSystem.out.println();\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t//for that may be I will get the display column list\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tfor(int k = 0; k < colResult.size(); k++)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tString splitRow[] = colResult.get(k).split(\",\");\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tfor(int i = 0; i < miniSqlParser.tablesCreated.get(tableNames.get(0)).size(); i++)\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tfor(int j = 0; j < columns.size(); j++)\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tif(getIndex(tableNames.get(0), miniSqlParser.tablesCreated.get(tableNames.get(0)).get(i))\n\t\t\t\t\t\t\t\t\t\t\t\t== getIndex(tableNames.get(0), columns.get(j)))\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\tSystem.out.print(splitRow[getIndex(tableNames.get(0), columns.get(j))]+ \"\\t\" );\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t}\t\t\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tSystem.out.println();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\n\t\t\t\t\t\t// First check for the tables whether they are present or not\t\t\t\n\t\t\t\t\t\tfor(int i = 0; i < tableNames.size(); i++) \n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif(!isTablePresent(tableNames.get(i)))\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tSystem.out.println(\"\\\"\" +tableNames.get(i)+\"\\\" Table does not exists.\");\n\t\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\t//\tThen check for the column whether they are present in one of the table or not\n\t\t\t\t\t\t// again we can check for the ambigius column name in the table\n\t\t\t\t\t\tfor(int i = 0; i < tableNames.size(); i++) \n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tint ctr = 0;\n\t\t\t\t\t\t\tfor(int j = 0; j < columns.size(); j++) \n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tif(isColumnPresentInTable(tableNames.get(i), columns.get(j)))\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tctr++;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tSystem.out.println(\"\\\"\" +columns.get(i)+\"\\\" column does not exists.\");\n\t\t\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif(ctr == 2)\n\t\t\t\t\t\t\t\tSystem.out.println(\"One or more ambigiuous column in tables...\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t\t// \tNow get the index of the columns from the tablecreated hashmap and loop over the tables i.e. csv file\n\t\t\t\t\t\n\n\t\t\t\t\t\tfor(int i = 0; i < columns.size(); i++)\n\t\t\t\t\t\t\tSystem.out.print(columns.get(i)+\"\\t\");\n\t\t\t\t\t\tSystem.out.println();\n\t\t\t\t\t\n\t\t\t\t\t\tVector<String> result = new Vector<String>();\n\t\t\t\t\t\n\t\t\t\t\t\tfor(int i = 0; i < columns.size(); i++)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tfor(int j = 0; j < tableNames.size(); j++)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tif(isColumnPresentInTable(tableNames.get(j), columns.get(i)))\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tint colIndex = getIndex(tableNames.get(j), columns.get(i));\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t// Now read the file of the specific index after the tokenization\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tString tableName = \"src/\" + tableNames.get(j).toString() + \".csv\";\n\t\t\t\t\t\t\t\t\tFile f = new File(tableName);\n\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tif(f.exists())\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t// First get all the rows \n\t\t\t\t\t\t\t\t\t\tBufferedReader tableFileReader = new BufferedReader(new FileReader(f));\n\t\t\t\t\t\t\t\t\t\tString rowInTable;\n\t\t\t\t\t\t\t\t\t\ttry \n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\twhile((rowInTable = tableFileReader.readLine()) != null) \n\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\tString fields[] = rowInTable.split(\",\");\n\t\t\t\t\t\t\t\t\t\t\t\tresult.add(fields[colIndex]);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\tcatch (IOException e) \n\t\t\t\t\t\t\t\t\t\t{\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\t\t\t\t}\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\t\t\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tfor (String string : result) \n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tString outputColumns[] = string.split(\",\");\n\t\t\t\t\t\t\tfor(int i = 0; i < outputColumns.length; i++)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tSystem.out.print(outputColumns[i]+\"\\t\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tSystem.out.println();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse //More than one column\n\t\t{\n\t\t\tif(conditionPresent)\n\t\t\t{\n\t\t\t\tif(tableNames.size() == 1)\n\t\t\t\t{\n\t\t\t\t\t//Check whether the table is present or not\n\t\t\t\t\tif(!isTablePresent(tableNames.get(0)))\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.println(\"\\\"\" + tableNames.get(0) + \"\\\" is not present...\");\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t//Check whether the the column is present or not in the table \n\t\t\t\t\t\n\t\t\t\t\tfor(int i = 0; i < columns.size(); i++)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(!isColumnPresentInTable(tableNames.get(0), columns.get(i)))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tSystem.out.println(\"Column is not part of the table...\");\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t}\t\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t//\tAlso check for the condition column \n\t\t\t\t\t\n\t\t\t\t\tfor(int i = 0; i < columns.size(); i++)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(!isColumnPresentInTable(tableNames.get(0), conditionColumn1.toString()))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tSystem.out.println(\"Column is not part of the table...\");\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t}\t\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tVector <String> colResult = new Vector <String>();\n\t\t\t\t\t\n\t\t\t\t\tint index = getIndex(tableNames.get(0), conditionColumn1.toString());\n\n\t\t\t\t\tBufferedReader br = new BufferedReader(new FileReader(\"src/\"+tableNames.get(0)+\".csv\"));\n\t\t\t\t\tString line;\n\t\t\t\t\ttry \n\t\t\t\t\t{\n\t\t\t\t\t\twhile((line = br.readLine()) != null)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tString colList[] = line.split(\",\");\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif(equalsTo1)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tif(colList[index].trim().equals(conditionColumnValue1.toString().trim()))\n\t\t\t\t\t\t\t\t\tcolResult.add(line);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse if(greaterThan1)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tif(Float.parseFloat(colList[index].trim()) > Float.parseFloat(conditionColumnValue1.toString().trim()))\n\t\t\t\t\t\t\t\t\tcolResult.add(line);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse if(lessThan1)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tif(Float.parseFloat(colList[index].trim()) < Float.parseFloat(conditionColumnValue1.toString().trim()))\n\t\t\t\t\t\t\t\t\tcolResult.add(line);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse if(lessThanEqTo1)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tif(Float.parseFloat(colList[index].trim()) <= Float.parseFloat(conditionColumnValue1.toString().trim()))\n\t\t\t\t\t\t\t\t\tcolResult.add(line);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse if(greaterThanEqTo1)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tif(Float.parseFloat(colList[index].trim()) >= Float.parseFloat(conditionColumnValue1.toString().trim()))\n\t\t\t\t\t\t\t\t\tcolResult.add(line);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\terrorRoutine(queryText);\n\t\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tcatch (NumberFormatException e) \n\t\t\t\t\t{\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t} \n\t\t\t\t\tcatch (IOException e) \n\t\t\t\t\t{\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t//Display the result\n\t\t\t\t\t\n\t\t\t\t\t//Print the column list\n\t\t\t\t\tfor(int j = 0; j < columns.size(); j++)\n\t\t\t\t\t\tSystem.out.print(columns.get(j)+\"\\t\");\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t\t\n\t\t\t\t\t//for that may be I will get the display column list\n\t\t\t\t\t\n\t\t\t\t\tfor(int k = 0; k < colResult.size(); k++)\n\t\t\t\t\t{\n\t\t\t\t\t\tString splitRow[] = colResult.get(k).split(\",\");\n\t\t\t\t\t\t\n\t\t\t\t\t\tfor(int i = 0; i < miniSqlParser.tablesCreated.get(tableNames.get(0)).size(); i++)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tfor(int j = 0; j < columns.size(); j++)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tif(getIndex(tableNames.get(0), miniSqlParser.tablesCreated.get(tableNames.get(0)).get(i))\n\t\t\t\t\t\t\t\t\t\t== getIndex(tableNames.get(0), columns.get(j)))\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tSystem.out.print(splitRow[getIndex(tableNames.get(0), columns.get(j))]+ \"\\t\" );\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t}\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tSystem.out.println();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\n\t\t\t\t/*\n\t\t\t\t * Error handling\n\t\t\t\t */\n\t\t\t\t\n\t\t\t\t// First check for the tables whether they are present or not\t\t\t\n\t\t\t\tfor(int i = 0; i < tableNames.size(); i++) \n\t\t\t\t{\n\t\t\t\t\tif(!isTablePresent(tableNames.get(i)))\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.println(\"\\\"\" +tableNames.get(i)+\"\\\" Table does not exists.\");\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//Then check for the column whether they are present in one of the table or not\n\t\t\t\t// again we can check for the ambigius column name in the table\n\t\t\t\t\n\t\t\t\tHashMap<String, Integer> isDone = new HashMap<String, Integer>();\n\t\t\t\t\n\t\t\t\tfor(int i = 0; i < tableNames.size(); i++) \n\t\t\t\t{\n\t\t\t\t\tfor(int j = 0; j < columns.size(); j++) \n\t\t\t\t\t{\n\t\t\t\t\t\tif(isColumnPresentInTable(tableNames.get(i), columns.get(j)))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif(!isDone.containsKey(columns.get(j)))\n\t\t\t\t\t\t\t\tisDone.put(columns.get(j), 1);\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tSystem.out.println(\"One or more ambigiuous column in tables...\");\n\t\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\t\n\t\t\t\t}\n\t\t\t\n\t\t\t\t// \tNow get the index of the columns from the tablecreated hashmap and loop over the tables i.e. csv file\n\t\t\t\t\n\t\t\t\tVector<String> result = new Vector<String>();\n\t\t\t\t\n\t\t\t\tfor(int i = 0; i < columns.size(); i++)\n\t\t\t\t{\n\t\t\t\t\tfor(int j = 0; j < tableNames.size(); j++)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(isColumnPresentInTable(tableNames.get(j), columns.get(i)))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tint colIndex = getIndex(tableNames.get(j), columns.get(i));\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t// Now read the file of the specific index after the tokenization\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tString tableName = \"src/\" + tableNames.get(j).toString() + \".csv\";\n\t\t\t\t\t\t\tFile f = new File(tableName);\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif(f.exists())\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t// First get all the rows \n\t\t\t\t\t\t\t\tBufferedReader tableFileReader = new BufferedReader(new FileReader(f));\n\t\t\t\t\t\t\t\tString rowInTable;\n\t\t\t\t\t\t\t\tint ctr = 0;\n\t\t\t\t\t\t\t\ttry \n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\twhile((rowInTable = tableFileReader.readLine()) != null) \n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tString fields[] = rowInTable.split(\",\");\n\t\t\t\t\t\t\t\t\t\tif(ctr >= result.size() )\n\t\t\t\t\t\t\t\t\t\t\tresult.add(ctr, fields[colIndex]);\n\t\t\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t\t\t\tresult.set(ctr, result.get(ctr) + \",\" + fields[colIndex]);\n\t\t\t\t\t\t\t\t\t\tctr++;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tcatch (IOException e) \n\t\t\t\t\t\t\t\t{\t\t\t\t\n\t\t\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\t\t}\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tfor (String string : result) \n\t\t\t\t{\n\t\t\t\t\tString outputColumns[] = string.split(\",\");\n\t\t\t\t\tfor(int i = 0; i < outputColumns.length; i++)\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.print(outputColumns[i]+\"\\t\");\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "2d90e6b10c4fa6d05c8db5964f05d1f6", "score": "0.53145516", "text": "private String parseMatchingParens() throws ParseException {\n return parseMatchingSegment('(', ')', 1);\n }", "title": "" }, { "docid": "2dcfc5a27475982c404f88def94e30da", "score": "0.53051394", "text": "private VarStmt parseVarStmt() throws ParserException {\n\t nextToken();\n\t VarIdent ident = parseVarIdent();\n\t consume(ASSIGN);\n\t return new VarStmt(ident,parseExp());\n\t}", "title": "" }, { "docid": "584ea33b2432465d93f25f3b1a4b069f", "score": "0.5286095", "text": "public void visit(SelectionStmt ss) throws Exception\r\n\t{\n\t\tint lc = 1;\r\n\r\n\t\tss.cond.accept(this);\r\n\t\tlc += ss.cond.ast_rep.length;\r\n\r\n\t\tss.if_clause.accept(this);\r\n\t\tlc += ss.if_clause.ast_rep.length;\r\n\r\n\t\tif (ss.else_clause != null)\r\n\t\t{\r\n\t\t\tss.else_clause.accept(this);\r\n\t\t\tlc += ss.else_clause.ast_rep.length;\r\n\t\t}\r\n\r\n\t\t// initialize format\r\n\t\tss.ast_rep = new String[lc];\r\n\t\tss.ast_rep[0] = leading + \"SelectionStmt\";\r\n\t\tfor (int i = 1; i < lc; i++)\r\n\t\t\tss.ast_rep[i] = seperator;\r\n\r\n\t\t// add contents\r\n\t\tint cl = 1;\r\n\r\n\t\tfor (String str : ss.cond.ast_rep)\r\n\t\t\tss.ast_rep[cl++] += str;\r\n\r\n\t\tfor (String str : ss.if_clause.ast_rep)\r\n\t\t\tss.ast_rep[cl++] += str;\r\n\r\n\t\tif (ss.else_clause != null)\r\n\t\t\tfor (String str : ss.else_clause.ast_rep)\r\n\t\t\t\tss.ast_rep[cl++] += str;\r\n\t}", "title": "" }, { "docid": "2495234a651fa0aa4eb49e4bd9742d48", "score": "0.5272925", "text": "public final Tree<String> statement() throws RecognitionException {\r\n Tree<String> subtree = null;\r\n\r\n Tree<String> labelDefinition9 = null;\r\n\r\n Tree<String> act10 = null;\r\n\r\n Tree<String> orScope11 = null;\r\n\r\n Tree<String> dynCondStatement12 = null;\r\n\r\n\r\n try {\r\n // C:\\\\Documents and Settings\\\\Administrator\\\\workspace\\\\task-module\\\\src\\\\main\\\\java\\\\taskmodule\\\\conglogcompiler\\\\ConGlog.g:193:2: ( labelDefinition | act | orScope | dynCondStatement )\r\n int alt9=4;\r\n switch ( input.LA(1) ) {\r\n case 41:\r\n {\r\n alt9=1;\r\n }\r\n break;\r\n case IDENT:\r\n {\r\n int LA9_2 = input.LA(2);\r\n\r\n if ( (LA9_2==40) ) {\r\n alt9=4;\r\n }\r\n else if ( (LA9_2==19) ) {\r\n alt9=2;\r\n }\r\n else {\r\n NoViableAltException nvae =\r\n new NoViableAltException(\"\", 9, 2, input);\r\n\r\n throw nvae;\r\n }\r\n }\r\n break;\r\n case 37:\r\n {\r\n alt9=3;\r\n }\r\n break;\r\n default:\r\n NoViableAltException nvae =\r\n new NoViableAltException(\"\", 9, 0, input);\r\n\r\n throw nvae;\r\n }\r\n\r\n switch (alt9) {\r\n case 1 :\r\n // C:\\\\Documents and Settings\\\\Administrator\\\\workspace\\\\task-module\\\\src\\\\main\\\\java\\\\taskmodule\\\\conglogcompiler\\\\ConGlog.g:193:4: labelDefinition\r\n {\r\n pushFollow(FOLLOW_labelDefinition_in_statement576);\r\n labelDefinition9=labelDefinition();\r\n\r\n state._fsp--;\r\n\r\n subtree = labelDefinition9; \r\n\r\n }\r\n break;\r\n case 2 :\r\n // C:\\\\Documents and Settings\\\\Administrator\\\\workspace\\\\task-module\\\\src\\\\main\\\\java\\\\taskmodule\\\\conglogcompiler\\\\ConGlog.g:194:4: act\r\n {\r\n pushFollow(FOLLOW_act_in_statement584);\r\n act10=act();\r\n\r\n state._fsp--;\r\n\r\n subtree = act10; \r\n\r\n }\r\n break;\r\n case 3 :\r\n // C:\\\\Documents and Settings\\\\Administrator\\\\workspace\\\\task-module\\\\src\\\\main\\\\java\\\\taskmodule\\\\conglogcompiler\\\\ConGlog.g:195:4: orScope\r\n {\r\n pushFollow(FOLLOW_orScope_in_statement595);\r\n orScope11=orScope();\r\n\r\n state._fsp--;\r\n\r\n subtree = orScope11; \r\n\r\n }\r\n break;\r\n case 4 :\r\n // C:\\\\Documents and Settings\\\\Administrator\\\\workspace\\\\task-module\\\\src\\\\main\\\\java\\\\taskmodule\\\\conglogcompiler\\\\ConGlog.g:196:4: dynCondStatement\r\n {\r\n pushFollow(FOLLOW_dynCondStatement_in_statement605);\r\n dynCondStatement12=dynCondStatement();\r\n\r\n state._fsp--;\r\n\r\n subtree = dynCondStatement12; \r\n\r\n }\r\n break;\r\n\r\n }\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n }\r\n return subtree;\r\n }", "title": "" }, { "docid": "6d84b993915804b430340e566137004d", "score": "0.52613753", "text": "Tree readParse(String lhs, Boolean addToTable) {\n String line = in.nextLine();\n\n List<String> tokens = tokenize(line);\n // System.out.println(tokens);\n Tree ret = new Tree();\n ret.rule = tokens;\n if (addToTable) {\n if (line.indexOf(\"INT STAR\") != -1) {\n type = \"int*\";\n }\n else if (line.indexOf(\"INT\") != -1) {\n type = \"int\";\n }\n else if (line.indexOf(\"ID\") != -1) {\n String id = line.split(\" \")[1];\n for (int x = 0; x < symbols.size(); x++) {\n if (symbols.get(x).id.equals(id)) {\n System.err.println(\"ERROR duplicate id \" + id);\n System.exit(0);\n }\n }\n symbols.add(new SymbolPair(type,id, (globalOffset)++ * -4, 0));\n needValue = true;\n }\n }\n else if (line.startsWith(\"ID\")) {\n variableDeclaration(line.split(\" \")[1]);\n }\n else if (line.startsWith(\"NUM\") && needValue) {\n symbols.get(symbols.size()-1).value = Integer.parseInt(line.split(\" \")[1]);\n needValue = false;\n }\n if (!terminals.contains(lhs)) {\n Scanner sc = new Scanner(line);\n String left = sc.next(); // discard lhs\n while (sc.hasNext()) {\n String s = sc.next();\n ret.children.add(readParse(s, (left.equals(\"dcl\"))));\n }\n }\n return ret;\n }", "title": "" }, { "docid": "0fcb9e87403f6161ed7d25bf78e38e7e", "score": "0.5254762", "text": "private Instruction parseInstruction() {\n Instruction instruction;\n if (fields[4].toLowerCase().equals(\"r\")) {\n instruction = new RightInstruction(parseCharField(\"char to write\", 3));\n } else if (fields[4].toLowerCase().equals(\"l\")) {\n instruction = new LeftInstruction(parseCharField(\"char to write\", 3));\n } else {\n throw new InvalidInputException(\"Invalid direction on line \" + lineNumber + \": \\\"\" +\n fields[4] + \"\\\". Must be either \\\"l\\\" or \\\"r\\\"\");\n }\n return instruction;\n }", "title": "" }, { "docid": "902aa55b15c7d76d30961e110535997d", "score": "0.52416015", "text": "public Program parse() throws SyntaxException {\r\n\t\tProgram p = program();\r\n\t\tmatchEOF();\r\n\t\treturn p;\r\n\t}", "title": "" }, { "docid": "f6da405f6385bf80e6976943277ed8ad", "score": "0.5239052", "text": "private void emptyStatement() {\r\n\t\twhile(lookAhead.getIdentifier().equals(\"mp_scolon\")){\r\n\t\t\tmatch(\";\");\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "06c3ae8f922866c41048a75d5700ce8d", "score": "0.5236762", "text": "protected abstract void parse(ResultSet resultSet) throws SQLException;", "title": "" }, { "docid": "7c7b139afeb81c9ddaa94ebc521e2718", "score": "0.5236044", "text": "private static List<String[]> getStatements(String inputString){\n\t\tinputString = inputString.substring(inputString.indexOf(\"<\"));\n\t\tString[] triples = inputString.split(\" .\\n|\\n\");\n\t\tif(triples[triples.length-1].contains(\"<\")){\n\t\t\ttriples[triples.length-1] = triples[triples.length-1].split(\". }|}\")[0];\n\t\t}\n\t\tList<String[]> tripleParts = new ArrayList<String[]>();\n\t\tboolean tripleSegment = false;\n\t\tString[] correctedTriple = new String[3];\n\n\t\tfor(String string : triples){\n\t\t\tList<String> temp = new ArrayList<String>();\n\t\t\tif(string.contains(\"<\")){\n\t\t\t\tif(!(string.contains(\"\\\"\"))){\n\t\t\t\t\tString[] currentTriple = string.split(\"<\");\n\t\t\t\t\tfor(String triplePart : currentTriple){\n\t\t\t\t\t\tif(triplePart.contains(\">\")){\n\t\t\t\t\t\t\ttripleSegment=true;\n\t\t\t\t\t\t}\n\t\t\t\t\t\ttriplePart = \"<\" + triplePart.split(\">\")[0] + \">\";\n\t\t\t\t\t\tif(tripleSegment){\n\t\t\t\t\t\t\ttemp.add(triplePart);\n\t\t\t\t\t\t\ttripleSegment=false;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\ttemp.toArray(correctedTriple);\n\t\t\t\t}else{\n\t\t\t\t\tString[] objectDivider = string.split(\"\\\"\");\n\t\t\t\t\tString[] subjectPredicateDivider = objectDivider[0].split(\"<\");\n\t\t\t\t\tfor(String triplePart : subjectPredicateDivider){\n\t\t\t\t\t\tif(triplePart.contains(\">\")){\n\t\t\t\t\t\t\ttripleSegment=true;\n\t\t\t\t\t\t}\n\t\t\t\t\t\ttriplePart = \"<\" + triplePart.split(\">\")[0] + \">\";\n\t\t\t\t\t\tif(tripleSegment){\n\t\t\t\t\t\t\ttemp.add(triplePart);\n\t\t\t\t\t\t\ttripleSegment=false;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tString literal = \"\\\"\" + objectDivider[1].split(\"\\\"\")[0] + \"\\\"\";\n\t\t\t\t\ttemp.add(literal);\n\t\t\t\t\ttemp.toArray(correctedTriple);\n\t\t\t\t}\n\t\t\t\ttripleParts.add(correctedTriple);\n\t\t\t\tcorrectedTriple = new String[3];\n\t\t\t}\n\t\t}\n\t\treturn tripleParts;\n\t}", "title": "" }, { "docid": "2d706c009a6c29a1ba6885e07a90a58d", "score": "0.5234817", "text": "protected WhereCondition parseSelectWhere(String sql, int wherePos, int endPos) {\n\r\n\t\tStringBuilder builder = new StringBuilder();\r\n\t\tString leftKey = null;\r\n\r\n\t\tLinkedList<BracketsCondition> stack = new LinkedList<BracketsCondition>();\r\n\t\tBracketsCondition bracketsCondition = new BracketsCondition(false);\r\n\t\tboolean isString = false; // 是否进入字符串采集\r\n\t\tfor (int i = wherePos; i < endPos; i++) {\r\n\t\t\tchar key = sql.charAt(i);\r\n\t\t\tswitch (key) {\r\n\t\t\tcase '(':\r\n\t\t\t\tif (isString) {\r\n\t\t\t\t\tbuilder.append(key);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tif (builder.length() > 0) {\r\n\t\t\t\t\t\tthrow new SqlParseException(\"Illegal where [(]: \" + sql);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tstack.push(bracketsCondition);\r\n\t\t\t\t\tBracketsCondition newBracketsCondition = new BracketsCondition(true);\r\n\t\t\t\t\tbracketsCondition.addCondition(newBracketsCondition);\r\n\t\t\t\t\tbracketsCondition = newBracketsCondition;\r\n\t\t\t\t}\r\n\t\t\t\tbreak;\r\n\t\t\tcase ')':\r\n\t\t\t\t// if (builder.length() > 0) {\r\n\t\t\t\t// bracketsCondition.setValue(parseValueVo(builder.toString().trim(), false));\r\n\t\t\t\t// leftKey = null;\r\n\t\t\t\t// builder = new StringBuilder();\r\n\t\t\t\t// }\r\n\t\t\t\t// bracketsCondition = stack.pop();\r\n\t\t\t\t// break;\r\n\r\n\t\t\t\t// fix bug\r\n\t\t\t\tif (isString) {\r\n\t\t\t\t\tbuilder.append(key);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tif (builder.length() > 0) {\r\n\t\t\t\t\t\tbracketsCondition.setValue(parseValueVo(builder.toString().trim(), false));\r\n\t\t\t\t\t\tleftKey = null;\r\n\t\t\t\t\t\tbuilder = new StringBuilder();\r\n\t\t\t\t\t}\r\n\t\t\t\t\tbracketsCondition = stack.pop();\r\n\t\t\t\t}\r\n\t\t\t\tbreak;\r\n\t\t\tcase '=':\r\n\t\t\t\tif (isString) {\r\n\t\t\t\t\tbuilder.append(key);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tif (builder.length() > 0) {\r\n\t\t\t\t\t\tleftKey = builder.toString();\r\n\t\t\t\t\t\tbuilder = new StringBuilder();\r\n\t\t\t\t\t}\r\n\t\t\t\t\tEqualCondition condition = new EqualCondition();\r\n\t\t\t\t\tcondition.setName(leftKey);\r\n\t\t\t\t\tbracketsCondition.addCondition(condition);\r\n\t\t\t\t}\r\n\t\t\t\tbreak;\r\n\t\t\tcase '!':\r\n\t\t\t\tif (isString) {\r\n\t\t\t\t\tbuilder.append(key);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t\tif (((i + 1) < endPos) && ('=' == sql.charAt(i + 1))) {\r\n\t\t\t\t\tif (builder.length() > 0) {\r\n\t\t\t\t\t\tleftKey = builder.toString();\r\n\t\t\t\t\t\tbuilder = new StringBuilder();\r\n\t\t\t\t\t}\r\n\t\t\t\t\tNotEqualCondition condition = new NotEqualCondition();\r\n\t\t\t\t\tcondition.setName(leftKey);\r\n\t\t\t\t\tbracketsCondition.addCondition(condition);\r\n\t\t\t\t\ti++;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\tcase '>':\r\n\t\t\t\tif (isString) {\r\n\t\t\t\t\tbuilder.append(key);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tif (builder.length() > 0) {\r\n\t\t\t\t\t\tleftKey = builder.toString();\r\n\t\t\t\t\t\tbuilder = new StringBuilder();\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif ((i + 1) < endPos && '=' == sql.charAt(i + 1)) {\r\n\t\t\t\t\t\tGreaterEqualCondition condition = new GreaterEqualCondition();\r\n\t\t\t\t\t\tcondition.setName(leftKey);\r\n\t\t\t\t\t\tbracketsCondition.addCondition(condition);\r\n\t\t\t\t\t\ti++;\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tMoreThanCondition condition = new MoreThanCondition();\r\n\t\t\t\t\t\tcondition.setName(leftKey);\r\n\t\t\t\t\t\tbracketsCondition.addCondition(condition);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tbreak;\r\n\t\t\tcase '<':\r\n\t\t\t\tif (isString) {\r\n\t\t\t\t\tbuilder.append(key);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tif (builder.length() > 0) {\r\n\t\t\t\t\t\tleftKey = builder.toString();\r\n\t\t\t\t\t\tbuilder = new StringBuilder();\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif ((i + 1) < endPos && '=' == sql.charAt(i + 1)) {\r\n\t\t\t\t\t\tLessThanEqualCondition condition = new LessThanEqualCondition();\r\n\t\t\t\t\t\tcondition.setName(leftKey);\r\n\t\t\t\t\t\tbracketsCondition.addCondition(condition);\r\n\t\t\t\t\t\ti++;\r\n\t\t\t\t\t} else if ((i + 1) < endPos && '>' == sql.charAt(i + 1)) {\r\n\t\t\t\t\t\tNotEqualCondition condition = new NotEqualCondition();\r\n\t\t\t\t\t\tcondition.setName(leftKey);\r\n\t\t\t\t\t\tbracketsCondition.addCondition(condition);\r\n\t\t\t\t\t\ti++;\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tLessThanCondition condition = new LessThanCondition();\r\n\t\t\t\t\t\tcondition.setName(leftKey);\r\n\t\t\t\t\t\tbracketsCondition.addCondition(condition);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tbreak;\r\n\t\t\tcase '\\r':\r\n\t\t\tcase '\\n':\r\n\t\t\tcase '\\t':\r\n\t\t\tcase ' ':\r\n\t\t\t\tif (isString) {\r\n\t\t\t\t\tbuilder.append(key);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tif (builder.length() > 0) {\r\n\t\t\t\t\t\tString str = builder.toString();\r\n\t\t\t\t\t\tbuilder = new StringBuilder();\r\n\t\t\t\t\t\tif (\"LIKE\".equalsIgnoreCase(str)) {\r\n\t\t\t\t\t\t\tLikeCondition condition = new LikeCondition();\r\n\t\t\t\t\t\t\tcondition.setName(leftKey);\r\n\t\t\t\t\t\t\tbracketsCondition.addCondition(condition);\r\n\t\t\t\t\t\t} else if (\"IN\".equalsIgnoreCase(str)) {\r\n\t\t\t\t\t\t\tInCondition condition = new InCondition();\r\n\t\t\t\t\t\t\tcondition.setName(leftKey);\r\n\t\t\t\t\t\t\tbracketsCondition.addCondition(condition);\r\n\t\t\t\t\t\t\ti = findIn(bracketsCondition, sql, i, endPos);\r\n\t\t\t\t\t\t} else if (\"NOT\".equalsIgnoreCase(str)) {\r\n\t\t\t\t\t\t\tNotInCondition condition = new NotInCondition();\r\n\t\t\t\t\t\t\tcondition.setName(leftKey);\r\n\t\t\t\t\t\t\tbracketsCondition.addCondition(condition);\r\n\t\t\t\t\t\t\ti = findNotIn(bracketsCondition, sql, i, endPos);\r\n\t\t\t\t\t\t} else if (\"AND\".equalsIgnoreCase(str)) {\r\n\t\t\t\t\t\t\tbracketsCondition.setAndOr(true);\r\n\t\t\t\t\t\t\tleftKey = null;\r\n\t\t\t\t\t\t} else if (\"OR\".equalsIgnoreCase(str)) {\r\n\t\t\t\t\t\t\tbracketsCondition.setAndOr(false);\r\n\t\t\t\t\t\t\tleftKey = null;\r\n\t\t\t\t\t\t} else {// left or rigth\r\n\t\t\t\t\t\t\tif (null == leftKey) {\r\n\t\t\t\t\t\t\t\tleftKey = str.trim();\r\n\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\tbracketsCondition.setValue(parseValueVo(str.trim(), false));\r\n\t\t\t\t\t\t\t\tleftKey = null;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tbreak;\r\n\t\t\tcase '\\'':\r\n\t\t\t\tif (isString) {\r\n\t\t\t\t\tString str = builder.toString();\r\n\t\t\t\t\tbuilder = new StringBuilder();\r\n\t\t\t\t\tbracketsCondition.setValue(parseValueVo(str.trim(), true));\r\n\t\t\t\t\tleftKey = null;\r\n\t\t\t\t\tisString = false;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tisString = true;\r\n\t\t\t\t}\r\n\t\t\t\tbreak;\r\n\t\t\tdefault:\r\n\t\t\t\tbuilder.append(key);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif (builder.length() > 0) {\r\n\t\t\tString str = builder.toString();\r\n\t\t\tbracketsCondition.setValue(parseValueVo(str.trim(), false));\r\n\t\t}\r\n\r\n\t\t// TODO: 需要判断bracketsCondition是否合法\r\n\r\n\t\treturn bracketsCondition;\r\n\t}", "title": "" }, { "docid": "170695db1a3aa21c22eb46fdc7125a03", "score": "0.520272", "text": "QueryStatement getQueryStatement();", "title": "" }, { "docid": "4e053d8b17625e0a432b9bd4555afa53", "score": "0.52004373", "text": "public static int find_statement(CharSequence buffer){\n Matcher matcher = comline.matcher(buffer);\n int offset = 0;\n while (matcher.find()) {\n offset = matcher.end(0);\n }\n\n Matcher nextmatcher = asmline.matcher(buffer.subSequence(offset,buffer.length())) ;\n if (nextmatcher.find())\n return offset + nextmatcher.end();\n return -1;\n }", "title": "" }, { "docid": "315e412fa6a9bbe8e6a745688731b661", "score": "0.51994306", "text": "public void parse(String inputLine, int lineNum){\n String otherThanQuote = \" [^\\\"] \";\n String quotedString = String.format(\" \\\" %s* \\\" \", otherThanQuote);\n String regex = String.format(\"(?x) \"+ // enable comments, ignore white spaces\n \", \"+ // match a comma\n \"(?= \"+ // start positive look ahead\n \" ( \"+ // start group 1\n \" %s* \"+ // match 'otherThanQuote' zero or more times\n \" %s \"+ // match 'quotedString'\n \" )* \"+ // end group 1 and repeat it zero or more times\n \" %s* \"+ // match 'otherThanQuote'\n \" $ \"+ // match the end of the string\n \") \", // stop positive look ahead\n otherThanQuote, quotedString, otherThanQuote);\n\n String[] tokens = inputLine.split(regex);\n int i = 0;\n for(String t : tokens) {\n //duplicate string with whitespace stripped for numerical checks\n //String st = t.replaceAll(\"\\\\s\",\"\");\n String st2 = t.trim();\n\n if (lineNum == 0) { //line 0 should contain column names... so we make new columns\n columns.add(new Column(t));\n } else if(st2.isEmpty()){\n columns.get(i).setType(\"varchar\");\n columns.get(i).lenMax(t.length());\n i++;\n } else {\n if (columns.get(i).getType().equals(\"UNASSIGNED\")){\n\n //initial check to see if column is numerical/decimal/varchar\n if (isNumeric(st2)){\n columns.get(i).setType(\"num\");\n columns.get(i).doMinMaxNum(Long.valueOf(st2));\n columns.get(i).lenMax(t.length());\n } else if(isDecimal(st2) || isSI(st2)){\n columns.get(i).setType(\"double\");\n columns.get(i).lenMax(t.length());\n } else {\n columns.get(i).setType(\"varchar\");\n columns.get(i).lenMax(t.length());\n }\n } else if (columns.get(i).getType().equals(\"varchar\")){ //if already a varchar, keep it a varchar\n columns.get(i).lenMax(t.length());\n } else if (columns.get(i).getType().equals(\"num\")){ //if it is numerical it can still become a varchar or a double\n if (isNumeric(st2)){\n columns.get(i).doMinMaxNum(Long.valueOf(st2));\n columns.get(i).lenMax(t.length());\n } else if (isDecimal(st2) || isSI(st2)){ //if it is already a double it can only become a varchar\n columns.get(i).setType(\"double\");\n columns.get(i).lenMax(t.length());\n } else {\n columns.get(i).setType(\"varchar\");\n columns.get(i).lenMax(t.length());\n }\n } else if (columns.get(i).getType().equals(\"double\")){\n if (isNumeric(t) || isDecimal(t) || isSI(t)){\n columns.get(i).lenMax(t.length());\n } else {\n columns.get(i).lenMax(t.length());\n columns.get(i).setType(\"varchar\");\n }\n }\n i++;\n }\n }\n }", "title": "" }, { "docid": "2219a420d37a07fb32fa13320ebb23ef", "score": "0.51907986", "text": "static void statement() throws Exception {\n switch (Scanner.la) {\n case Token.RETURN:\n returnStatement();\n break;\n case Token.IF:\n ifStatement();\n break;\n case Token.WHILE:\n whileStatement();\n break;\n case Token.LCBRACK:\n blockStatement();\n break;\n default:\n assignement();\n }\n }", "title": "" }, { "docid": "0e699c23bbe8c1fc3a110eaa447058f6", "score": "0.5187648", "text": "public interface ParserConstants {\n\n /** End of File. */\n int EOF = 0;\n /** RegularExpression Id. */\n int SPACE = 4;\n /** RegularExpression Id. */\n int XOR = 5;\n /** RegularExpression Id. */\n int NOT = 6;\n /** RegularExpression Id. */\n int IN = 7;\n /** RegularExpression Id. */\n int DISTINCT = 8;\n /** RegularExpression Id. */\n int STARTS = 9;\n /** RegularExpression Id. */\n int ENDS = 10;\n /** RegularExpression Id. */\n int WITH = 11;\n /** RegularExpression Id. */\n int CONTAINS = 12;\n /** RegularExpression Id. */\n int IS = 13;\n /** RegularExpression Id. */\n int NULL = 14;\n /** RegularExpression Id. */\n int LIKE = 15;\n /** RegularExpression Id. */\n int FROM = 16;\n /** RegularExpression Id. */\n int EOL = 17;\n /** RegularExpression Id. */\n int PLUS = 18;\n /** RegularExpression Id. */\n int MINUS = 19;\n /** RegularExpression Id. */\n int MULTIPLY = 20;\n /** RegularExpression Id. */\n int DIVIDE = 21;\n /** RegularExpression Id. */\n int EXP = 22;\n /** RegularExpression Id. */\n int MOD = 23;\n /** RegularExpression Id. */\n int STARTLIST = 24;\n /** RegularExpression Id. */\n int ENDLIST = 25;\n /** RegularExpression Id. */\n int SELECT = 26;\n /** RegularExpression Id. */\n int GROUP = 27;\n /** RegularExpression Id. */\n int MATCH = 28;\n /** RegularExpression Id. */\n int WHERE = 29;\n /** RegularExpression Id. */\n int JOIN = 30;\n /** RegularExpression Id. */\n int PROJECT = 31;\n /** RegularExpression Id. */\n int STARTSWITH = 32;\n /** RegularExpression Id. */\n int ENDSWITH = 33;\n /** RegularExpression Id. */\n int MAX = 34;\n /** RegularExpression Id. */\n int MIN = 35;\n /** RegularExpression Id. */\n int COUNT = 36;\n /** RegularExpression Id. */\n int AVG = 37;\n /** RegularExpression Id. */\n int SUM = 38;\n /** RegularExpression Id. */\n int CONDITIONALOPERATOR = 39;\n /** RegularExpression Id. */\n int LOGICALOPERATOR = 40;\n /** RegularExpression Id. */\n int NUMERIC = 41;\n /** RegularExpression Id. */\n int IDENTIFIER = 42;\n /** RegularExpression Id. */\n int LETTER = 43;\n /** RegularExpression Id. */\n int DIGIT = 44;\n /** RegularExpression Id. */\n int OPEN_STRING = 45;\n /** RegularExpression Id. */\n int STRING_BODY = 46;\n /** RegularExpression Id. */\n int CLOSE_STRING = 47;\n\n /** Lexical state. */\n int DEFAULT = 0;\n /** Lexical state. */\n int STRING = 1;\n\n /** Literal token values. */\n String[] tokenImage = {\n \"<EOF>\",\n \"\\\"\\\\t\\\"\",\n \"\\\"\\\\r\\\"\",\n \"\\\"\\\\f\\\"\",\n \"\\\" \\\"\",\n \"\\\"XOR\\\"\",\n \"\\\"NOT\\\"\",\n \"\\\"IN\\\"\",\n \"\\\"DISTINCT\\\"\",\n \"\\\"STARTS\\\"\",\n \"\\\"ENDS\\\"\",\n \"\\\"WITH\\\"\",\n \"\\\"CONTAINS\\\"\",\n \"\\\"IS\\\"\",\n \"\\\"NULL\\\"\",\n \"\\\"LIKE\\\"\",\n \"\\\"FROM\\\"\",\n \"\\\"\\\\n\\\"\",\n \"\\\"+\\\"\",\n \"\\\"-\\\"\",\n \"\\\"*\\\"\",\n \"\\\"/\\\"\",\n \"\\\"^\\\"\",\n \"\\\"%\\\"\",\n \"\\\"[\\\"\",\n \"\\\"]\\\"\",\n \"\\\"SELECT\\\"\",\n \"\\\"GROUP BY\\\"\",\n \"\\\"MATCH\\\"\",\n \"\\\"WHERE\\\"\",\n \"\\\"JOIN\\\"\",\n \"\\\"PROJECT\\\"\",\n \"<STARTSWITH>\",\n \"<ENDSWITH>\",\n \"\\\"MAX\\\"\",\n \"\\\"MIN\\\"\",\n \"\\\"COUNT\\\"\",\n \"\\\"AVG\\\"\",\n \"\\\"SUM\\\"\",\n \"<CONDITIONALOPERATOR>\",\n \"<LOGICALOPERATOR>\",\n \"<NUMERIC>\",\n \"<IDENTIFIER>\",\n \"<LETTER>\",\n \"<DIGIT>\",\n \"\\\"\\\\\\\"\\\"\",\n \"<STRING_BODY>\",\n \"\\\"\\\\\\\"\\\"\",\n \"\\\".\\\"\",\n \"\\\"(\\\"\",\n \"\\\")\\\"\",\n };\n\n}", "title": "" }, { "docid": "617d1fa67e2c43318d7e931e3b790142", "score": "0.5184943", "text": "public final PythonParser.stmt_return stmt() throws RecognitionException {\n PythonParser.stmt_return retval = new PythonParser.stmt_return();\n retval.start = input.LT(1);\n\n PythonTree root_0 = null;\n\n PythonParser.simple_stmt_return simple_stmt58 = null;\n\n PythonParser.compound_stmt_return compound_stmt59 = null;\n\n\n\n try {\n // /usr/local/lib/jython/grammar/Python.g:599:5: ( simple_stmt | compound_stmt )\n int alt27=2;\n int LA27_0 = input.LA(1);\n\n if ( (LA27_0==NAME||LA27_0==NOT||LA27_0==LPAREN||(LA27_0>=PLUS && LA27_0<=MINUS)||(LA27_0>=TILDE && LA27_0<=LBRACK)||LA27_0==LCURLY||LA27_0==BACKQUOTE) ) {\n alt27=1;\n }\n else if ( (LA27_0==PRINT) && (((!printFunction)||(printFunction)))) {\n alt27=1;\n }\n else if ( ((LA27_0>=ASSERT && LA27_0<=BREAK)||LA27_0==CONTINUE||LA27_0==DELETE||LA27_0==EXEC||LA27_0==FROM||LA27_0==GLOBAL||LA27_0==IMPORT||LA27_0==LAMBDA||(LA27_0>=PASS && LA27_0<=RETURN)||LA27_0==YIELD||(LA27_0>=INT && LA27_0<=STRING)) ) {\n alt27=1;\n }\n else if ( (LA27_0==CLASS||LA27_0==DEF||LA27_0==FOR||LA27_0==IF||(LA27_0>=TRY && LA27_0<=WITH)||LA27_0==AT) ) {\n alt27=2;\n }\n else {\n if (state.backtracking>0) {state.failed=true; return retval;}\n NoViableAltException nvae =\n new NoViableAltException(\"\", 27, 0, input);\n\n throw nvae;\n }\n switch (alt27) {\n case 1 :\n // /usr/local/lib/jython/grammar/Python.g:599:7: simple_stmt\n {\n root_0 = (PythonTree)adaptor.nil();\n\n pushFollow(FOLLOW_simple_stmt_in_stmt1423);\n simple_stmt58=simple_stmt();\n\n state._fsp--;\n if (state.failed) return retval;\n if ( state.backtracking==0 ) adaptor.addChild(root_0, simple_stmt58.getTree());\n if ( state.backtracking==0 ) {\n\n retval.stypes = (simple_stmt58!=null?simple_stmt58.stypes:null);\n \n }\n\n }\n break;\n case 2 :\n // /usr/local/lib/jython/grammar/Python.g:603:7: compound_stmt\n {\n root_0 = (PythonTree)adaptor.nil();\n\n pushFollow(FOLLOW_compound_stmt_in_stmt1439);\n compound_stmt59=compound_stmt();\n\n state._fsp--;\n if (state.failed) return retval;\n if ( state.backtracking==0 ) adaptor.addChild(root_0, compound_stmt59.getTree());\n if ( state.backtracking==0 ) {\n\n retval.stypes = new ArrayList();\n retval.stypes.add((compound_stmt59!=null?((PythonTree)compound_stmt59.tree):null));\n \n }\n\n }\n break;\n\n }\n retval.stop = input.LT(-1);\n\n if ( state.backtracking==0 ) {\n\n retval.tree = (PythonTree)adaptor.rulePostProcessing(root_0);\n adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);\n }\n }\n\n catch (RecognitionException re) {\n reportError(re);\n errorHandler.recover(this, input,re);\n retval.tree = (PythonTree)adaptor.errorNode(input, retval.start, input.LT(-1), re);\n }\n finally {\n }\n return retval;\n }", "title": "" }, { "docid": "0cd58e00ab485fb98f914a40cd925fe5", "score": "0.51797926", "text": "public String toSQL() throws ParseException;", "title": "" }, { "docid": "86041ec66d6a960f31efcfb53823a066", "score": "0.5170977", "text": "public QueryParserNode parse(Query query);", "title": "" }, { "docid": "083163872b58bb94b468b79cb0c1b85d", "score": "0.5162469", "text": "public java.lang.String getStatement() {\r\n return statement;\r\n }", "title": "" } ]
a49651c8ccac11fbe9fb748b29df49a4
Returns the square of specified coordinates
[ { "docid": "6d2e1fe0d8555e9179c5a56f226884b5", "score": "0.6579954", "text": "public Square getSquare(int x, int y) {\r\n\t\tif (x > 7 || y > 7 || x < 0 || y < 0) return null;\r\n\t\treturn squares[x][y];\r\n\t}", "title": "" } ]
[ { "docid": "2c91e483a0f6f2ff6286740afb98e7b3", "score": "0.80603456", "text": "String getSquare(int x, int y);", "title": "" }, { "docid": "d7aceafdb24edd197f60398925b4dbf0", "score": "0.75055283", "text": "private static Square coordToSquare(int x, int y) {\r\n\t\tint xS = (int) Math.ceil(x / getSquareDimension());\r\n\t\tint yS = (int) Math.ceil(y / getSquareDimension());\r\n\t\treturn squares[xS][yS];\r\n\t\t//System.out.println(\"xS: \" + xS + '\\n' + \"yS: \" + yS);\r\n\t}", "title": "" }, { "docid": "720150b8d7b60ca5f11068d3fe0341dc", "score": "0.71092004", "text": "public final static int getSquare(int x, int y) {\n return y * 8 + x;\n }", "title": "" }, { "docid": "c19866d10fe9ea30efa2a5f55537f7d9", "score": "0.6966289", "text": "public SquareIF getSquare(Position fromP);", "title": "" }, { "docid": "b69db54006687eaa38d0033cde58a296", "score": "0.6911428", "text": "public FutoshikiSquare getSquare(int x, int y) { \n return grid[x][y];\n }", "title": "" }, { "docid": "b7decb5f0079c17514b27c806a3ad228", "score": "0.67113286", "text": "public DrawSquares(Integer[] coordinates) {\n\t\tthis.coordinates = coordinates;\n\t}", "title": "" }, { "docid": "d0ff2a9db5a9401878d5e16b9c656c20", "score": "0.6405615", "text": "public Square getSquare() {Api.hit(\"/src/main/java/nl/tudelft/jpacman/board/Unit.java\", \"getSquare\", \"lines 52:2 - 52:21\"); assert invariant(); Api.hit(\"/src/main/java/nl/tudelft/jpacman/board/Unit.java\", \"getSquare\", \"lines 53:2 - 53:16\"); return square;}", "title": "" }, { "docid": "f953b215101e9f4d844e274aa2a85726", "score": "0.63056993", "text": "public Square squareAt(int x, int y) {Collect.Hit(\"Board.java\",\"squareAt(int x, int y)\");assert withinBorders(x, y); Collect.Hit(\"Board.java\",\"squareAt(int x, int y)\", \"1598\"); Square result = board[x][y]; Collect.Hit(\"Board.java\",\"squareAt(int x, int y)\", \"1629\"); assert result != null : \"Follows from invariant.\"; Collect.Hit(\"Board.java\",\"squareAt(int x, int y)\", \"1661\"); Collect.Hit(\"Board.java\",\"squareAt(int x, int y)\", \"1715\");return result ; }", "title": "" }, { "docid": "15111aee2ad8162a5a3fe66de32604d1", "score": "0.6232666", "text": "void setSquare(int x, int y, String t);", "title": "" }, { "docid": "c59f93c268733e9721838a621c1e70b6", "score": "0.6231402", "text": "double square(double x);", "title": "" }, { "docid": "7d67ffcec3ccb4776128574a06fb6fb5", "score": "0.622419", "text": "static Square apply(int x, int y) {\n return new AbsoluteSquare(x, y);\n }", "title": "" }, { "docid": "d3ccc927090fad8f7feaedbd50c0e5ec", "score": "0.6196533", "text": "public double squareDistance(double xPos, double yPos){\n double X = (x - xPos);\n double Y = (y - yPos);\n return X*X + Y*Y;\n }", "title": "" }, { "docid": "f17d9b72630f706d32518cc4325c61d7", "score": "0.6159776", "text": "@Test\n\tpublic void testGetCoord()\n\t{\n\t\tCoordinate c = new Coordinate(5, 5);\n\t\tSquare square = new Square(c);\n\t\tCoordinate returned = square.getCoord();\n\t\tassertEquals(returned.getX(), c.getX());\n\t\tassertEquals(returned.getY(), c.getY());\n\t}", "title": "" }, { "docid": "f592a75bfe0067c322dc43d910a585df", "score": "0.6100068", "text": "public SquareState getSquare(Location loc){\n int x = loc.getX();\n int y = loc.getY();\n if (x < 0 || x > width-1 || y < 0 || y > height-1) return SquareState.out_of_bound;\n return map[x][y];\n }", "title": "" }, { "docid": "39d15556ccb0beb78b801731919642fa", "score": "0.60729724", "text": "Square(Coordinate coordinate, Color color, Piece piece) {\n this.coordinate = coordinate;\n this.color = color;\n this.piece = piece;\n }", "title": "" }, { "docid": "116dea943b4fd20fcbb461274b4d118f", "score": "0.6060957", "text": "public boolean isSquare() {\n return rows() == cols();\n }", "title": "" }, { "docid": "4a89fe22e48e6ae4f25e0064a22a047e", "score": "0.6056821", "text": "public static Pair<Integer, Integer> calcSquareNumber(int x, int y){\n int squareX = (1 + (x-1)) / Table.SQUARE_SIZE;\n int squareY = (1 + (y-1)) / Table.SQUARE_SIZE;\n return new Pair<>(squareX, squareY);\n }", "title": "" }, { "docid": "4ce9632c78f2a192a187fa21f2a0270a", "score": "0.6049495", "text": "public Square getSquareSol(int x, int y){\n for (Square square : solutionGrid) {\n if (square.x == x && square.y == y)\n return square;\n }\n return null;\n }", "title": "" }, { "docid": "15efd1ec420268a0e209e6da5684032b", "score": "0.60259235", "text": "public boolean isSquare() {\n return (nrow == ncol);\n }", "title": "" }, { "docid": "20e2936aeaaadc7d4eb8b48f32b9a7bf", "score": "0.60029864", "text": "public int getSolvedSquare(int x, int y) {\n return solved[x][y].getSquareValue();\n }", "title": "" }, { "docid": "c1bafacc74e096bc22c176d62dee9bce", "score": "0.5995284", "text": "public boolean isSquareOnBoard(int x , int y) {\n if ((x >= 0 && x < size) && (y >= 0 && y < size)) {\n return true;\n } else {\n return false;\n }\n }", "title": "" }, { "docid": "9b3c267cae907c206a06eab4db4a88bb", "score": "0.5990711", "text": "public Square findSquare(int i) {\n\t\tint x = ((int[]) places.get(\"\" + i))[0];\n\t\tint y = ((int[]) places.get(\"\" + i))[1];\n\t\treturn grid[x][y];\n\t}", "title": "" }, { "docid": "64319d76f55b0badd98119583526abb4", "score": "0.59696835", "text": "public float square(int x){\n\t\treturn x*x;\n\t}", "title": "" }, { "docid": "65f4e2ab7e22a0402cbb5081a3958fe1", "score": "0.59540075", "text": "public final static int getY(int square) {\n return square >> 3;\n }", "title": "" }, { "docid": "0e05eb9bb98a07695cdfaff416336a29", "score": "0.5953833", "text": "String square(double num);", "title": "" }, { "docid": "b80c066b1e3af09a1378a6a740b0e78c", "score": "0.59524506", "text": "private boolean isSameSquare() { \n\t\tif (x1 == x2 && y1 == y2) \n\t\t\treturn true;\n\t\treturn false;\n\t}", "title": "" }, { "docid": "d3aeedb8e8424ea3ff1e3f79d494574c", "score": "0.59390783", "text": "Coordinate getCoordinates();", "title": "" }, { "docid": "e167de4a7103c8e9c2b3071eb8199a6d", "score": "0.5923306", "text": "public static int getSquare(int n) {\r\n // ADD YOUR CODE HERE\r\n \treturn n * n;\r\n }", "title": "" }, { "docid": "1718e38704500a08779f132238b7469e", "score": "0.589069", "text": "public Square getSquare(Coord c){\n\t\treturn chessbord.get(c);\n\t}", "title": "" }, { "docid": "148635967399b79d50a0571dbbca7915", "score": "0.5877769", "text": "abstract Square getCurrentSquare();", "title": "" }, { "docid": "64701739a39ee1764c87f02ed49ad8ec", "score": "0.5869713", "text": "public int whichSquare(int x, int y) {\n\n // Increment through gridRects for a square containing supplied coordinates\n for (int i = 0; i < numRows; i++) {\n for (int j = 0; j < numRows; j++) {\n if(gridRects[i][j].square.left < x && gridRects[i][j].square.right > x) {\n if (gridRects[i][j].square.top < y && gridRects[i][j].square.bottom > y) {\n\n // return the position of the gridRect object as found in the int array position\n return (i * numRows) + (j);\n }\n }\n }\n }\n\n // Return -1 if clicked on a border\n return -1;\n }", "title": "" }, { "docid": "67a907feb946092a0d94d00f000ed799", "score": "0.5863932", "text": "private Rectangle getSquare(double x, double y, double d) {\n Rectangle rectangle = new Rectangle(d, d);\n rectangle.setX(x-d/2);\n rectangle.setY(y-d/2);\n Random random = new Random();\n rectangle.setFill(Color.color(random.nextDouble(), random.nextDouble(), random.nextDouble()));\n return rectangle;\n }", "title": "" }, { "docid": "21b862d1768930604b2f56175531de76", "score": "0.5848408", "text": "public void squareSelected(Point point);", "title": "" }, { "docid": "e3ae6109819c69388b478fb9110a860c", "score": "0.58304036", "text": "public int squaredDistanceFrom( int x, int y )\n\t\t{\n\t\t\tint xDist=this.x+width/2-x;\n\t\t\tint yDist=this.y+height/2-y;\n\t\t\treturn xDist*xDist+yDist*yDist;\n\t\t}", "title": "" }, { "docid": "5e8679704d862d3f307215e1ed1f4b85", "score": "0.58181834", "text": "private void getSquare() {\r\n \t\tint h = img.getHeight();\r\n \t\tint w = img.getWidth();\r\n \t\tSystem.out.println(img.getType());\r\n \t\tif(h > w)\r\n \t\timg = img.getSubimage(0,(h-w)/2,w,w);\r\n \t\tif(w > h)\r\n \timg = img.getSubimage((w-h)/2,0,h,h);\r\n\r\n\t}", "title": "" }, { "docid": "1b7151c6449c49b780e9b992ab6c3085", "score": "0.58081543", "text": "static boolean isSquare(Flat.Room r) {\r\n return (r.width==r.height);\r\n }", "title": "" }, { "docid": "9257a055f5c91264ad6fb94d1dfe40aa", "score": "0.57747334", "text": "public boolean isSquare() {\n return _m==_n;\n }", "title": "" }, { "docid": "02d8231da0ff00fb632dd52532113e65", "score": "0.5751263", "text": "public ArrayList<int[]> getPossibleSquares(int x, int y){\n\t\tArrayList<int[]> coordList = new ArrayList<int[]>();\n\t\tif (checkBounds(x+2, y+1)){\n\t\t\tif (!isIn(x+2, y+1, path))\n\t\t\tcoordList.add(new int[]{x+2, y+1});\n\t\t}\n\t\tif (checkBounds(x+2, y-1)){\n\t\t\tif (!isIn(x+2, y-1, path))\n\t\t\tcoordList.add(new int[]{x+2, y-1});\n\t\t}\n\t\tif (checkBounds(x-2, y+1)){\n\t\t\tif (!isIn(x-2, y+1, path))\n\t\t\tcoordList.add(new int[]{x-2, y+1});\n\t\t}\n\t\tif (checkBounds(x-2, y-1)){\n\t\t\tif (!isIn(x-2, y-1, path))\n\t\t\tcoordList.add(new int[]{x-2, y-1});\n\t\t}\n\t\tif (checkBounds(x+1, y+2)){\n\t\t\tif (!isIn(x+1, y+2, path))\n\t\t\tcoordList.add(new int[]{x+1, y+2});\n\t\t}\n\t\tif (checkBounds(x-1, y+2)){\n\t\t\tif (!isIn(x-1, y+2, path))\n\t\t\tcoordList.add(new int[]{x-1, y+2});\n\t\t}\n\t\tif (checkBounds(x+1, y-2)){\n\t\t\tif (!isIn(x+1, y-2, path))\n\t\t\tcoordList.add(new int[]{x+1, y-2});\n\t\t}\n\t\tif (checkBounds(x-1, y-2)){\n\t\t\tif (!isIn(x-1, y-2, path))\n\t\t\tcoordList.add(new int[]{x-1, y-2});\n\t\t}\n\t\treturn coordList;\n\t}", "title": "" }, { "docid": "0c1d9bb6fe81e5b1f8af6074f8ed8334", "score": "0.5747221", "text": "public boolean isSquare() { return NMatrix.isSquare(this); }", "title": "" }, { "docid": "3eff937f759321da1c9801d4345507d7", "score": "0.5731618", "text": "public static int square(int operand){\r\n\t int square = operand*operand;\r\n\t\t\t return square;\r\n\t}", "title": "" }, { "docid": "baccc2c4b1e11a54eb54e618e851e1e1", "score": "0.5730905", "text": "public SquareIF[][] getSquares();", "title": "" }, { "docid": "2d3d22d1cef558434f31f868b36cff6a", "score": "0.57193494", "text": "public int getSquares(int y) {\r\n\t\treturn squares[y - 1];\r\n\t}", "title": "" }, { "docid": "56fe022599d8cb2a303a1d3265179a82", "score": "0.57084805", "text": "@Override\r\n\tpublic void square(int x) {\n\t\tSystem.out.println(\"Area: \"+(x*x));\r\n\t\t\r\n\t}", "title": "" }, { "docid": "564d78b6ae64cba8942c7bf39e8712fc", "score": "0.56987715", "text": "Square(Coordinate coordinate, Color color) {\n this(coordinate, color,null);\n }", "title": "" }, { "docid": "16f728dbe913a5ccdb6d3fc735e5aa9b", "score": "0.5696795", "text": "public MapSquare(LowerMapSquare lowerMapSquare, UpperMapSquare upperMapSquare, Actor actor, FinalPoint coordinates) {\n this.lowerMapSquare = lowerMapSquare;\n this.upperMapSquare = upperMapSquare;\n this.occupant = actor;\n this.coordinates = coordinates;\n }", "title": "" }, { "docid": "52c5e5443e622e075bc327f0e506c56c", "score": "0.56898963", "text": "private static int squareDistToHero(State.CreepState s, int heroX, int heroY) {\n return (s.x - heroX) * (s.x - heroX) + (s.y - heroY) * (s.y - heroY);\n }", "title": "" }, { "docid": "26e63f610eed276c67593887822eac0e", "score": "0.56888324", "text": "public static double square(double x){\n return x*x;\n }", "title": "" }, { "docid": "89e3fa39cfa7b22007d2e2d4c715d3dd", "score": "0.56522185", "text": "public Point getPoint(int square, int location){\n\t\treturn this.points[square][location];\n\t}", "title": "" }, { "docid": "80503d62e09904bb80672a73cbe5fbb5", "score": "0.5647951", "text": "public Square convertToSquare(Board b, Square root) {\n\t\t\tint row = (-1 * coord[1]) + root.getRow();\n\t\t\tint col = coord[0] + root.getCol();\n\t\t\t\n\t\t\tSystem.out.println(\"converting \" + coord[0] \n\t\t\t\t\t+ \" \" + coord[1] + \" to row/col nums (centered at \" \n\t\t\t\t\t+ root.getRow() + \" \" + root.getCol() + \")\");\n\t\t\tSystem.out.println(\"getting square at \" + row + \" \" + col);\n\t\t\t\n\t\t\tif (b.inBounds(row, col)) {\n\t\t\t\treturn b.getSquare(row, col);\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(\"row and col nums out of bounds\");\n\t\t\t\n\t\t\treturn null;\n\t\t\t\n\t\t}", "title": "" }, { "docid": "a1aca15e9bc31e6468b7dec195c3698b", "score": "0.56464547", "text": "void squareChanged(int row, int col);", "title": "" }, { "docid": "d6588a9aae633c828948626a281684ff", "score": "0.5639851", "text": "protected GridSquare getSquare(int row, int col)\n\t{\n\t\treturn grid[row][col];\n\t}", "title": "" }, { "docid": "2ab47b4210876e5eb53a0d52a61d28f3", "score": "0.5633802", "text": "public double euclidean(int x, int y){\n return euclidean(new Location(x, y));\n }", "title": "" }, { "docid": "531158a3afee959ab98e480b60720d4d", "score": "0.5633072", "text": "public Square squareAt(Location location) {\n\t\treturn (squares.inBounds(location) ? ((Square) squares\n\t\t\t\t.elementAt(location)) : null);\n\t}", "title": "" }, { "docid": "1bff40a89d0efa8adce9cf9422eb84e5", "score": "0.56330305", "text": "public double getChiSquare();", "title": "" }, { "docid": "e49bf082a659e9fe92bfaff5c82f42c3", "score": "0.56205934", "text": "public Complex getSquare() {\n double squaredReal = realPart * realPart - imaginaryPart * imaginaryPart;\n double squaredImaginary = 2 * realPart * imaginaryPart;\n return new Complex(squaredReal, squaredImaginary);\n }", "title": "" }, { "docid": "87942d0051d345992f1af068dd22e884", "score": "0.5617011", "text": "public boolean isSquare() {\n if(length == height)\r\n return true;\r\n else\r\n return false;\r\n }", "title": "" }, { "docid": "e116151c37368d14932c40d0cb55717f", "score": "0.5571957", "text": "static Subsquare findSquareWithSize(SquareCell[][] processed, int square_size) {\n int count = processed.length - square_size + 1; \n\n // Iterate through all squares with side length square_size.\n for (int row = 0; row < count; row++) {\n for (int col = 0; col < count; col++) {\n if (isSquare(processed, row, col, square_size)) {\n return new Subsquare(row, col, square_size);\n }\n }\n }\n return null;\n }", "title": "" }, { "docid": "c54b6fe5779a59454ebb2560b0582982", "score": "0.5549822", "text": "public Square(int x, int y) {\r\n\t\t// Set X and Y\r\n\t\tX = x;\r\n\t\tY = y;\r\n\r\n\t\t// Set Squares border\r\n\t\tBorder border = LineBorder.createBlackLineBorder();\r\n\t\tsetBorder(border);\r\n\t\t// Set each tile to specific size\r\n\t\tsetPreferredSize(new Dimension(190, 190));\r\n\t\tsetLayout(new GridLayout(2, 2, 0, 0));\r\n\t\t// Initialize charactersInSquare arraylist\r\n\t\tcharactersInSquare = new ArrayList<Character>();\r\n\t\t// Construct Tile\r\n\t\tconstructTileForCharacters();\r\n\t}", "title": "" }, { "docid": "cc1cf7ddd068d3b82a65ddd96e57ab73", "score": "0.5548598", "text": "public Square location() \r\n\t{\r\n\t\treturn loc;\r\n\t}", "title": "" }, { "docid": "563af8095a6678672fc1884e9d6e39e7", "score": "0.5541263", "text": "public static int maximumSquareSize(int x, int y) {\n int longSide = Math.max(x, y);\n int shortSide = Math.min(x, y);\n\n if (shortSide <= longSide / 2) {\n return shortSide;\n }\n\n return longSide / 2;\n }", "title": "" }, { "docid": "833c7bd11f859732cc291d7d8a7da277", "score": "0.55328953", "text": "public final static int getX(int square) {\n return square & 7;\n }", "title": "" }, { "docid": "a59c5c0d2b868e454bdae619497e5e01", "score": "0.54941696", "text": "public boolean isSquare(){\n return mLength ==mWidth;\n}", "title": "" }, { "docid": "099606c495a22b82b3232651ec1fc98c", "score": "0.54932195", "text": "public void drawSquare()\n {\n Pen pen = new Pen(320, 260, myCanvas);\n pen.setColor(Color.BLUE);\n\n square(pen);\n }", "title": "" }, { "docid": "8632c8b2d3194734c0c52611cb9ba016", "score": "0.54872715", "text": "public Square getSquare()\r\n\t{\r\n\t\treturn currSq;\r\n\t}", "title": "" }, { "docid": "c2b9ed606773663e0c39a5efee316949", "score": "0.54723966", "text": "public static int square(int number) {\r\n\t\treturn number*number;\r\n\t}", "title": "" }, { "docid": "9ce1f49bd88dc4080f67f3cb23725ae2", "score": "0.54703885", "text": "public static double square (double operand) {\r\n\t\t\tdouble square = operand * operand;\r\n\t\t\treturn square; \r\n\t\t}", "title": "" }, { "docid": "d7e5005df4e48ec49905b9b49d24d51e", "score": "0.54640496", "text": "private static Rectangle drawSquare(int x, int y, Color colour) {\n Rectangle rectangle = new Rectangle();\n rectangle.setHeight(5);\n rectangle.setWidth(5);\n rectangle.setLayoutX(x);\n rectangle.setLayoutY(y);\n rectangle.setFill(colour);\n\n return rectangle;\n }", "title": "" }, { "docid": "c35df22b3cf29d8068e07fc35c8f6fcf", "score": "0.54620725", "text": "double sumOfSquares();", "title": "" }, { "docid": "a69504b8be4cb52058a36aadb0b35b3b", "score": "0.5457204", "text": "public Piece getPiece(Coordinate coordinate)\n\t{\n\t\treturn squares[coordinate.width][coordinate.height];\n\t}", "title": "" }, { "docid": "7870a3b0638fc2b74cab3f3e68846fb7", "score": "0.5450837", "text": "public double sqrNorm() {\n\t\treturn x * x + y * y;\n\t}", "title": "" }, { "docid": "48d0cdb1c41fcf6500bab967edeaf358", "score": "0.545025", "text": "public static double area_square(double side) {\n double area;\n area = Math.pow(side, 2);\n return area;\n\n }", "title": "" }, { "docid": "5ad86d51272683fea8d4857f0dcd3e58", "score": "0.5448761", "text": "private StackPane getSquare(Position position) {\n for (var child : board.getChildren()) {\n if (GridPane.getRowIndex(child) == position.row() && GridPane.getColumnIndex(child) == position.col()) {\n return (StackPane) child;\n }\n }\n throw new AssertionError();\n }", "title": "" }, { "docid": "b91cd316faa6d7a495f70a0693a0b883", "score": "0.5436917", "text": "int main()\n{\n int x1=3,x2,y1=4,y2,res;\n std::cin>>x2>>y2;\n int x=abs(x1-x2);\n int y=abs(y1-y2);\n res=sqrt(pow(x,2)+pow(y,2));\n std::cout<<res;\n}", "title": "" }, { "docid": "bfe4b6b2e57a305788a282fe1e1cd338", "score": "0.54262877", "text": "private static double square (double a)\r\n {\r\n return a*a;\r\n }", "title": "" }, { "docid": "f0b43062348716438af5c5c694a38f0e", "score": "0.54249233", "text": "private static int squares(int a, int b) {\n int count = 0;\n for(int i = a; i <= b; i++) {\n\n for (int j=1; j * j <= i; j++ ) {\n if (j * j ==i) {\n count ++;\n }\n }\n }\n return count;\n }", "title": "" }, { "docid": "b74658dc1406412567128ee8d5dbb414", "score": "0.541357", "text": "public float lengthSq() {\n\t\treturn x*x+y*y;\r\n\t}", "title": "" }, { "docid": "9b99d5a4698d4e629f2c38d31d0ecf4f", "score": "0.540725", "text": "public double calcFigureSquare(IFigure2D figure) throws FigurePointsException {\n List<Point> figurePoints = figure.getFigurePoints();\n if (figurePoints.size() != POINTS_COUNT){\n throw new FigurePointsException(\"Invalid points count in figure.\");\n }\n\n double perimeterHalf = calcFigurePerimeter(figure) / 2;\n\n return Math.sqrt(perimeterHalf * (perimeterHalf - calculateFigureSide(figurePoints.get(0), figurePoints.get(1)))\n * (perimeterHalf - calculateFigureSide(figurePoints.get(1), figurePoints.get(2)))\n * (perimeterHalf - calculateFigureSide(figurePoints.get(2), figurePoints.get(0))));\n }", "title": "" }, { "docid": "f4959deaa6c6055fd6594cf7e55ce713", "score": "0.5406991", "text": "public int getSquareId() {\n return this.squareId;\n }", "title": "" }, { "docid": "ddf71512b4f18ba57ac99261facee5ba", "score": "0.5391024", "text": "public SquareType getSquareType(int column, int row) { return poly[column][row]; }", "title": "" }, { "docid": "0a2c47ea4e4ee521d875f6ae691db983", "score": "0.5388441", "text": "public static void main(String[] args) {\n\t\tSystem.out.println(square(new int[] {0,2,7},new int[] {0,4,9}, 2));\n\t}", "title": "" }, { "docid": "64f022735a009c171e7469f12107cb45", "score": "0.53862476", "text": "Coordinate2D createCoordinate2D();", "title": "" }, { "docid": "5c2cf24e9f58f49cf217beec4fa70524", "score": "0.53751105", "text": "private static Subsquare findSquareWithSize(int[][] matrix, int squareSize){\n int count=matrix.length - squareSize +1;\n\n //iterate through all squares with side length square_size\n for(int row=0; row<count; row++){\n for(int col=0; col<count; col++){\n if(isSquare(matrix, row, col, squareSize) ){\n return new Subsquare(row, col, squareSize);\n }\n }\n }\n return null;\n }", "title": "" }, { "docid": "e1acd219aec0c3ef75020209f126305c", "score": "0.5358578", "text": "public static int generateSquare(int start, int end){\n\t\treturn ((int) Math.pow(Math.random()*(end-start)+start , 2));\n\t}", "title": "" }, { "docid": "e45eb9d31d1544bea66ed15b84692569", "score": "0.5354571", "text": "public static double square(double n) {\n\n double sq = n * n; // The square of a number is that number multiplied by itself\n return sq;\n\n }", "title": "" }, { "docid": "3e59f7e81a31b4c86d70762592968ba8", "score": "0.5352917", "text": "public Square(int x, int y) {\n col = x;\n row = y;\n occupant = null;\n rightWall = null;\n bottomWall = null;\n }", "title": "" }, { "docid": "48f8f67834ddbd8dd8eba218982d027d", "score": "0.5349387", "text": "public List<int[]> getAdjacentSquares(int x, int y) {\n return board.getAdjacentSquares(x, y);\n }", "title": "" }, { "docid": "b9181ca7e6dc2741d0d842faf175b0b3", "score": "0.5343306", "text": "public void createSquares() {\n\n\t\tfor (int xspot = 0; xspot < cols; xspot++) {\n\n\t\t\tfor (int yspot = 0; yspot < rows; yspot++) {\n\n\t\t\t\tsquarespot = new BorderPane();\n\t\t\t\tsquarespot.setPrefWidth(squaresize);\n\t\t\t\tsquarespot.setPrefHeight(squaresize);\n\n\t\t\t\tif ((xspot & 1) == 0) {\n\t\t\t\t\tif ((yspot & 1) == 0) {\n\t\t\t\t\t\tsquarespot.setBackground(new Background(new BackgroundFill(Color.BLACK, null, null)));\n\t\t\t\t\t} \n\t\t\t\t\telse {\n\t\t\t\t\t\tsquarespot.setBackground(new Background(new BackgroundFill(Color.valueOf(\"#1a1a1a\"), null, null)));\n\t\t\t\t\t}\n\t\t\t\t} \n\t\t\t\telse {\n\t\t\t\t\tif ((yspot & 1) == 0) {\n\t\t\t\t\t\tsquarespot.setBackground(new Background(new BackgroundFill(Color.valueOf(\"#1a1a1a\"), null, null)));\n\t\t\t\t\t} \n\t\t\t\t\telse {\n\t\t\t\t\t\tsquarespot.setBackground(new Background(new BackgroundFill(Color.valueOf(\"#333333\"), null, null)));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tgridpane.add(squarespot, xspot, yspot);\n\t\t\t}\n\t\t}\n\n\t}", "title": "" }, { "docid": "38ba92b89bcaf5893a48e9d6c40c0baa", "score": "0.5339203", "text": "public static int calculateSquare (int num) {\n return num*num;\n }", "title": "" }, { "docid": "ffcc715af59b34a2b72e80770335e90e", "score": "0.5336717", "text": "private StringBuilder createSquare(int[][] sudokuGrid, int startPointX, int startPointY){\n\t\tStringBuilder chainSquare = new StringBuilder();\n\t\tfor (int i = startPointX; i < startPointX + 3; i++){\n\t\t\t\n\t\t\tfor (int j = startPointY; j < startPointY + 3; j++) {\n\t\t\t\tchainSquare.append(sudokuGrid[i][j]);\n\t\t\t}\n\t\t}\n\t\treturn chainSquare;\n\t}", "title": "" }, { "docid": "9ad86655c350925b02378e7ceb504d9f", "score": "0.5336194", "text": "public double getArea() {\n return squareArea;\n }", "title": "" }, { "docid": "45cc1c80540d294ea1305d62e5cbbea9", "score": "0.53283197", "text": "@Override\n\tpublic String type() {\n\t\treturn \"Square\";\n\t}", "title": "" }, { "docid": "f5444c6cbf9dd14fc22ad2aa6e4dc745", "score": "0.53275937", "text": "private static int squared (int a) {\n\t\treturn a * a;\n\t}", "title": "" }, { "docid": "e26cbf037c5140670b94226fda376707", "score": "0.531758", "text": "public long getWindowSquareSum() {\n return stats.getSquareSum(offsetX, offsetY, windowWidth, windowHeight);\n }", "title": "" }, { "docid": "47894b4a99e8b30d7e41a42fa15d4603", "score": "0.53078437", "text": "private int calculateSize(int x0, int x1, int y0, int y1) {\r\n\t\tint x = x1 - x0;\r\n\t\tint y = y1 - y0;\r\n\r\n\t\treturn (int) Math.sqrt(x * x + y * y);\r\n\t}", "title": "" }, { "docid": "bedb1fa71a560749fe9d0eadd2ad5a3a", "score": "0.53044397", "text": "SquareMap(V[] values) {\n\t\tstore = Stores.objects(values);\n\t\tsquares = squares(store);\n\t}", "title": "" }, { "docid": "44f26a690395dd2f6adbdab3216bd6d8", "score": "0.529873", "text": "public Square getSquare() { return square; }", "title": "" }, { "docid": "b23de6dd818f1351beb5584046277444", "score": "0.52948475", "text": "public static String convertPosToSquare(Pos p)\n {\n String file = \"\";\n \n if (p.x == 0) file = \"a\";\n if (p.x == 1) file = \"b\";\n if (p.x == 2) file = \"c\";\n if (p.x == 3) file = \"d\";\n if (p.x == 4) file = \"e\";\n if (p.x == 5) file = \"f\";\n if (p.x == 6) file = \"g\";\n if (p.x == 7) file = \"h\";\n \n return file + (p.y + 1); \n }", "title": "" }, { "docid": "c86096989e57e31bc5d932954097391f", "score": "0.5293707", "text": "CoordinatesType getCoordinates();", "title": "" }, { "docid": "1e28e6bd60dcba4e7b99d089abcc25d8", "score": "0.5282119", "text": "public void findArea(){ //method to find the area\r\nSystem.out.println(\"Area of Triangle is :\"+(Math.sqrt(3)*dim1*dim1)/4);\r\n}", "title": "" }, { "docid": "ed882626ce8b8888105fe89a5ee3ea74", "score": "0.5278633", "text": "public String getCoordinates();", "title": "" } ]
87f73b6fd9b006cf9f2148272c6e999d
Convert the given object to string with each line indented by 4 spaces (except the first line).
[ { "docid": "b903fcab4b14ca87d4e227121a31edfa", "score": "0.0", "text": "private String toIndentedString(java.lang.Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" } ]
[ { "docid": "9e6d1b5dcd4619e079c1bbb422051363", "score": "0.7617954", "text": "private String toIndentedString(Object o) {\nif (o == null) {\nreturn \"null\";\n}\nreturn o.toString().replace(\"\\n\", \"\\n \");\n}", "title": "" }, { "docid": "67c02f75fe4aba72712a894854fed42e", "score": "0.7490535", "text": "private String toIndentedString(Object o)\n/* */ {\n/* 81 */ if (o == null) {\n/* 82 */ return \"null\";\n/* */ }\n/* 84 */ return o.toString().replace(\"\\n\", \"\\n \");\n/* */ }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.746168", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.746168", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.746168", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.746168", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.746168", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.746168", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.746168", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.746168", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.746168", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.746168", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.746168", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.746168", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.746168", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.746168", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.746168", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.746168", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.746168", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.746168", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.746168", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.746168", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.746168", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.746168", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.746168", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.746168", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.746168", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.746168", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.746168", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.746168", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.746168", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.746168", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.746168", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.746168", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.746168", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.746168", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.746168", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.746168", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.746168", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.746168", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.746168", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.746168", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.746168", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.746168", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.746168", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.746168", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.746168", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.746168", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.746168", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.746168", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.746168", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.746168", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.746168", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.746168", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.746168", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.746168", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.746168", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.746168", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.746168", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.746168", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.746168", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.746168", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.746168", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.746168", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.746168", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.746168", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.746168", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.746168", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.746168", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.746168", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.746168", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.746168", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.746168", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.746168", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.746168", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.746168", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.746168", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.746168", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.746168", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.746168", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.746168", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.746168", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.746168", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.746168", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.746168", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.746168", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.746168", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.746168", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.746168", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.746168", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.746168", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.746168", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.746168", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.746168", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.746168", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.746168", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.746168", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.746168", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.746168", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.746168", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.746168", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" } ]
535119337e71262a7658825d1bf19d62
$ANTLR end "entryRuleExpression" $ANTLR start "ruleExpression" InternalArithmetic.g:421:1: ruleExpression returns [EObject current=null] : this_Addition_0= ruleAddition ;
[ { "docid": "03e09937315f9d62024f4a3e22e44677", "score": "0.77402496", "text": "public final EObject ruleExpression() throws RecognitionException {\n EObject current = null;\n\n EObject this_Addition_0 = null;\n\n\n\n \tenterRule();\n\n try {\n // InternalArithmetic.g:427:2: (this_Addition_0= ruleAddition )\n // InternalArithmetic.g:428:2: this_Addition_0= ruleAddition\n {\n\n \t\tnewCompositeNode(grammarAccess.getExpressionAccess().getAdditionParserRuleCall());\n \t\n pushFollow(FOLLOW_2);\n this_Addition_0=ruleAddition();\n\n state._fsp--;\n\n\n \t\tcurrent = this_Addition_0;\n \t\tafterParserOrEnumRuleCall();\n \t\n\n }\n\n\n \tleaveRule();\n\n }\n\n catch (RecognitionException re) {\n recover(input,re);\n appendSkippedTokens();\n }\n finally {\n }\n return current;\n }", "title": "" } ]
[ { "docid": "ddcecf4e045998d3aa8573b523e2625a", "score": "0.75690705", "text": "public final EObject entryRuleAddition() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleAddition = null;\n\n\n try {\n // InternalArithmetic.g:439:49: (iv_ruleAddition= ruleAddition EOF )\n // InternalArithmetic.g:440:2: iv_ruleAddition= ruleAddition EOF\n {\n newCompositeNode(grammarAccess.getAdditionRule()); \n pushFollow(FOLLOW_1);\n iv_ruleAddition=ruleAddition();\n\n state._fsp--;\n\n current =iv_ruleAddition; \n match(input,EOF,FOLLOW_2); \n\n }\n\n }\n\n catch (RecognitionException re) {\n recover(input,re);\n appendSkippedTokens();\n }\n finally {\n }\n return current;\n }", "title": "" }, { "docid": "e69211807fb3463194846237f376f1f4", "score": "0.7377773", "text": "public final EObject entryRuleAddition() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleAddition = null;\n\n\n try {\n // InternalThingML.g:6235:49: (iv_ruleAddition= ruleAddition EOF )\n // InternalThingML.g:6236:2: iv_ruleAddition= ruleAddition EOF\n {\n newCompositeNode(grammarAccess.getAdditionRule()); \n pushFollow(FOLLOW_1);\n iv_ruleAddition=ruleAddition();\n\n state._fsp--;\n\n current =iv_ruleAddition; \n match(input,EOF,FOLLOW_2); \n\n }\n\n }\n\n catch (RecognitionException re) {\n recover(input,re);\n appendSkippedTokens();\n }\n finally {\n }\n return current;\n }", "title": "" }, { "docid": "0f189059e07df8e9009a4c4fcdc12b1b", "score": "0.73768914", "text": "public final EObject entryRulearithmetic_expression() throws RecognitionException {\r\n EObject current = null;\r\n\r\n EObject iv_rulearithmetic_expression = null;\r\n\r\n\r\n try {\r\n // ../org.openmodelica.modelicaml.editor.xtext.valuebinding.provider/src-gen/org/openmodelica/modelicaml/editor/xtext/valuebinding/parser/antlr/internal/InternalProvider.g:827:2: (iv_rulearithmetic_expression= rulearithmetic_expression EOF )\r\n // ../org.openmodelica.modelicaml.editor.xtext.valuebinding.provider/src-gen/org/openmodelica/modelicaml/editor/xtext/valuebinding/parser/antlr/internal/InternalProvider.g:828:2: iv_rulearithmetic_expression= rulearithmetic_expression EOF\r\n {\r\n newCompositeNode(grammarAccess.getArithmetic_expressionRule()); \r\n pushFollow(FOLLOW_rulearithmetic_expression_in_entryRulearithmetic_expression1624);\r\n iv_rulearithmetic_expression=rulearithmetic_expression();\r\n\r\n state._fsp--;\r\n\r\n current =iv_rulearithmetic_expression; \r\n match(input,EOF,FOLLOW_EOF_in_entryRulearithmetic_expression1634); \r\n\r\n }\r\n\r\n }\r\n \r\n catch (RecognitionException re) { \r\n recover(input,re); \r\n appendSkippedTokens();\r\n } \r\n finally {\r\n }\r\n return current;\r\n }", "title": "" }, { "docid": "1af1e727c397d82d9c6592257c9f6814", "score": "0.7368141", "text": "public final void ruleExpression() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalCalculator.g:192:2: ( ( ruleAddition ) )\n // InternalCalculator.g:193:2: ( ruleAddition )\n {\n // InternalCalculator.g:193:2: ( ruleAddition )\n // InternalCalculator.g:194:3: ruleAddition\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getExpressionAccess().getAdditionParserRuleCall()); \n }\n pushFollow(FOLLOW_2);\n ruleAddition();\n\n state._fsp--;\n if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getExpressionAccess().getAdditionParserRuleCall()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "2cde40983c329f3e634dd3699f76f303", "score": "0.69701874", "text": "public final EObject entryRuleExpression() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleExpression = null;\n\n\n try {\n // InternalArithmetic.g:414:51: (iv_ruleExpression= ruleExpression EOF )\n // InternalArithmetic.g:415:2: iv_ruleExpression= ruleExpression EOF\n {\n newCompositeNode(grammarAccess.getExpressionRule()); \n pushFollow(FOLLOW_1);\n iv_ruleExpression=ruleExpression();\n\n state._fsp--;\n\n current =iv_ruleExpression; \n match(input,EOF,FOLLOW_2); \n\n }\n\n }\n\n catch (RecognitionException re) {\n recover(input,re);\n appendSkippedTokens();\n }\n finally {\n }\n return current;\n }", "title": "" }, { "docid": "e464fd9412b5803cbf83d1c742c8f8b3", "score": "0.6862982", "text": "public final EObject entryRuleAdditionTerm() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleAdditionTerm = null;\n\n\n try {\n // InternalMIRoN.g:6423:53: (iv_ruleAdditionTerm= ruleAdditionTerm EOF )\n // InternalMIRoN.g:6424:2: iv_ruleAdditionTerm= ruleAdditionTerm EOF\n {\n newCompositeNode(grammarAccess.getAdditionTermRule()); \n pushFollow(FOLLOW_1);\n iv_ruleAdditionTerm=ruleAdditionTerm();\n\n state._fsp--;\n\n current =iv_ruleAdditionTerm; \n match(input,EOF,FOLLOW_2); \n\n }\n\n }\n\n catch (RecognitionException re) {\n recover(input,re);\n appendSkippedTokens();\n }\n finally {\n }\n return current;\n }", "title": "" }, { "docid": "9f8cfd6d715d9588baecb47d79a8525d", "score": "0.6855342", "text": "public final void entryRuleAddition() throws RecognitionException {\n try {\n // InternalCalculator.g:205:1: ( ruleAddition EOF )\n // InternalCalculator.g:206:1: ruleAddition EOF\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getAdditionRule()); \n }\n pushFollow(FOLLOW_1);\n ruleAddition();\n\n state._fsp--;\n if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getAdditionRule()); \n }\n match(input,EOF,FOLLOW_2); if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n }\n return ;\n }", "title": "" }, { "docid": "b3bcd8882221db7dea7fcaa47f6d8ff6", "score": "0.68289894", "text": "public final void entryRuleAddition() throws RecognitionException {\n try {\n // ../../Client/com.netxforge.netxscript.ui/src-gen/com/netxforge/ui/contentassist/antlr/internal/InternalNetxscript.g:542:1: ( ruleAddition EOF )\n // ../../Client/com.netxforge.netxscript.ui/src-gen/com/netxforge/ui/contentassist/antlr/internal/InternalNetxscript.g:543:1: ruleAddition EOF\n {\n before(grammarAccess.getAdditionRule()); \n pushFollow(FOLLOW_ruleAddition_in_entryRuleAddition1084);\n ruleAddition();\n\n state._fsp--;\n\n after(grammarAccess.getAdditionRule()); \n match(input,EOF,FOLLOW_EOF_in_entryRuleAddition1091); \n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n }\n return ;\n }", "title": "" }, { "docid": "92c6e2e1e9dc76b7aa0c969c8d014d34", "score": "0.68089455", "text": "public final EObject rulearithmetic_expression() throws RecognitionException {\r\n EObject current = null;\r\n\r\n AntlrDatatypeRuleToken lv_opr_0_1 = null;\r\n\r\n AntlrDatatypeRuleToken lv_opr_0_2 = null;\r\n\r\n AntlrDatatypeRuleToken lv_opr_0_3 = null;\r\n\r\n AntlrDatatypeRuleToken lv_opr_0_4 = null;\r\n\r\n EObject lv_Term_1_0 = null;\r\n\r\n AntlrDatatypeRuleToken lv_Oper1_2_1 = null;\r\n\r\n AntlrDatatypeRuleToken lv_Oper1_2_2 = null;\r\n\r\n AntlrDatatypeRuleToken lv_Oper1_2_3 = null;\r\n\r\n AntlrDatatypeRuleToken lv_Oper1_2_4 = null;\r\n\r\n EObject lv_Term1_3_0 = null;\r\n\r\n\r\n enterRule(); \r\n \r\n try {\r\n // ../org.openmodelica.modelicaml.editor.xtext.valuebinding.provider/src-gen/org/openmodelica/modelicaml/editor/xtext/valuebinding/parser/antlr/internal/InternalProvider.g:838:28: ( ( ( ( (lv_opr_0_1= ruleadd_op_plus | lv_opr_0_2= ruleadd_op_minus | lv_opr_0_3= ruleadd_op_dotplus | lv_opr_0_4= ruleadd_op_dotminus ) ) )? ( (lv_Term_1_0= ruleterm ) ) ( ( ( (lv_Oper1_2_1= ruleadd_op_plus | lv_Oper1_2_2= ruleadd_op_minus | lv_Oper1_2_3= ruleadd_op_dotplus | lv_Oper1_2_4= ruleadd_op_dotminus ) ) ) ( (lv_Term1_3_0= ruleterm ) ) )* ) )\r\n // ../org.openmodelica.modelicaml.editor.xtext.valuebinding.provider/src-gen/org/openmodelica/modelicaml/editor/xtext/valuebinding/parser/antlr/internal/InternalProvider.g:839:1: ( ( ( (lv_opr_0_1= ruleadd_op_plus | lv_opr_0_2= ruleadd_op_minus | lv_opr_0_3= ruleadd_op_dotplus | lv_opr_0_4= ruleadd_op_dotminus ) ) )? ( (lv_Term_1_0= ruleterm ) ) ( ( ( (lv_Oper1_2_1= ruleadd_op_plus | lv_Oper1_2_2= ruleadd_op_minus | lv_Oper1_2_3= ruleadd_op_dotplus | lv_Oper1_2_4= ruleadd_op_dotminus ) ) ) ( (lv_Term1_3_0= ruleterm ) ) )* )\r\n {\r\n // ../org.openmodelica.modelicaml.editor.xtext.valuebinding.provider/src-gen/org/openmodelica/modelicaml/editor/xtext/valuebinding/parser/antlr/internal/InternalProvider.g:839:1: ( ( ( (lv_opr_0_1= ruleadd_op_plus | lv_opr_0_2= ruleadd_op_minus | lv_opr_0_3= ruleadd_op_dotplus | lv_opr_0_4= ruleadd_op_dotminus ) ) )? ( (lv_Term_1_0= ruleterm ) ) ( ( ( (lv_Oper1_2_1= ruleadd_op_plus | lv_Oper1_2_2= ruleadd_op_minus | lv_Oper1_2_3= ruleadd_op_dotplus | lv_Oper1_2_4= ruleadd_op_dotminus ) ) ) ( (lv_Term1_3_0= ruleterm ) ) )* )\r\n // ../org.openmodelica.modelicaml.editor.xtext.valuebinding.provider/src-gen/org/openmodelica/modelicaml/editor/xtext/valuebinding/parser/antlr/internal/InternalProvider.g:839:2: ( ( (lv_opr_0_1= ruleadd_op_plus | lv_opr_0_2= ruleadd_op_minus | lv_opr_0_3= ruleadd_op_dotplus | lv_opr_0_4= ruleadd_op_dotminus ) ) )? ( (lv_Term_1_0= ruleterm ) ) ( ( ( (lv_Oper1_2_1= ruleadd_op_plus | lv_Oper1_2_2= ruleadd_op_minus | lv_Oper1_2_3= ruleadd_op_dotplus | lv_Oper1_2_4= ruleadd_op_dotminus ) ) ) ( (lv_Term1_3_0= ruleterm ) ) )*\r\n {\r\n // ../org.openmodelica.modelicaml.editor.xtext.valuebinding.provider/src-gen/org/openmodelica/modelicaml/editor/xtext/valuebinding/parser/antlr/internal/InternalProvider.g:839:2: ( ( (lv_opr_0_1= ruleadd_op_plus | lv_opr_0_2= ruleadd_op_minus | lv_opr_0_3= ruleadd_op_dotplus | lv_opr_0_4= ruleadd_op_dotminus ) ) )?\r\n int alt18=2;\r\n int LA18_0 = input.LA(1);\r\n\r\n if ( ((LA18_0>=43 && LA18_0<=46)) ) {\r\n alt18=1;\r\n }\r\n switch (alt18) {\r\n case 1 :\r\n // ../org.openmodelica.modelicaml.editor.xtext.valuebinding.provider/src-gen/org/openmodelica/modelicaml/editor/xtext/valuebinding/parser/antlr/internal/InternalProvider.g:840:1: ( (lv_opr_0_1= ruleadd_op_plus | lv_opr_0_2= ruleadd_op_minus | lv_opr_0_3= ruleadd_op_dotplus | lv_opr_0_4= ruleadd_op_dotminus ) )\r\n {\r\n // ../org.openmodelica.modelicaml.editor.xtext.valuebinding.provider/src-gen/org/openmodelica/modelicaml/editor/xtext/valuebinding/parser/antlr/internal/InternalProvider.g:840:1: ( (lv_opr_0_1= ruleadd_op_plus | lv_opr_0_2= ruleadd_op_minus | lv_opr_0_3= ruleadd_op_dotplus | lv_opr_0_4= ruleadd_op_dotminus ) )\r\n // ../org.openmodelica.modelicaml.editor.xtext.valuebinding.provider/src-gen/org/openmodelica/modelicaml/editor/xtext/valuebinding/parser/antlr/internal/InternalProvider.g:841:1: (lv_opr_0_1= ruleadd_op_plus | lv_opr_0_2= ruleadd_op_minus | lv_opr_0_3= ruleadd_op_dotplus | lv_opr_0_4= ruleadd_op_dotminus )\r\n {\r\n // ../org.openmodelica.modelicaml.editor.xtext.valuebinding.provider/src-gen/org/openmodelica/modelicaml/editor/xtext/valuebinding/parser/antlr/internal/InternalProvider.g:841:1: (lv_opr_0_1= ruleadd_op_plus | lv_opr_0_2= ruleadd_op_minus | lv_opr_0_3= ruleadd_op_dotplus | lv_opr_0_4= ruleadd_op_dotminus )\r\n int alt17=4;\r\n switch ( input.LA(1) ) {\r\n case 43:\r\n {\r\n alt17=1;\r\n }\r\n break;\r\n case 44:\r\n {\r\n alt17=2;\r\n }\r\n break;\r\n case 45:\r\n {\r\n alt17=3;\r\n }\r\n break;\r\n case 46:\r\n {\r\n alt17=4;\r\n }\r\n break;\r\n default:\r\n NoViableAltException nvae =\r\n new NoViableAltException(\"\", 17, 0, input);\r\n\r\n throw nvae;\r\n }\r\n\r\n switch (alt17) {\r\n case 1 :\r\n // ../org.openmodelica.modelicaml.editor.xtext.valuebinding.provider/src-gen/org/openmodelica/modelicaml/editor/xtext/valuebinding/parser/antlr/internal/InternalProvider.g:842:3: lv_opr_0_1= ruleadd_op_plus\r\n {\r\n \r\n \t newCompositeNode(grammarAccess.getArithmetic_expressionAccess().getOprAdd_op_plusParserRuleCall_0_0_0()); \r\n \t \r\n pushFollow(FOLLOW_ruleadd_op_plus_in_rulearithmetic_expression1682);\r\n lv_opr_0_1=ruleadd_op_plus();\r\n\r\n state._fsp--;\r\n\r\n\r\n \t if (current==null) {\r\n \t current = createModelElementForParent(grammarAccess.getArithmetic_expressionRule());\r\n \t }\r\n \t\tset(\r\n \t\t\tcurrent, \r\n \t\t\t\"opr\",\r\n \t\tlv_opr_0_1, \r\n \t\t\"add_op_plus\");\r\n \t afterParserOrEnumRuleCall();\r\n \t \r\n\r\n }\r\n break;\r\n case 2 :\r\n // ../org.openmodelica.modelicaml.editor.xtext.valuebinding.provider/src-gen/org/openmodelica/modelicaml/editor/xtext/valuebinding/parser/antlr/internal/InternalProvider.g:857:8: lv_opr_0_2= ruleadd_op_minus\r\n {\r\n \r\n \t newCompositeNode(grammarAccess.getArithmetic_expressionAccess().getOprAdd_op_minusParserRuleCall_0_0_1()); \r\n \t \r\n pushFollow(FOLLOW_ruleadd_op_minus_in_rulearithmetic_expression1701);\r\n lv_opr_0_2=ruleadd_op_minus();\r\n\r\n state._fsp--;\r\n\r\n\r\n \t if (current==null) {\r\n \t current = createModelElementForParent(grammarAccess.getArithmetic_expressionRule());\r\n \t }\r\n \t\tset(\r\n \t\t\tcurrent, \r\n \t\t\t\"opr\",\r\n \t\tlv_opr_0_2, \r\n \t\t\"add_op_minus\");\r\n \t afterParserOrEnumRuleCall();\r\n \t \r\n\r\n }\r\n break;\r\n case 3 :\r\n // ../org.openmodelica.modelicaml.editor.xtext.valuebinding.provider/src-gen/org/openmodelica/modelicaml/editor/xtext/valuebinding/parser/antlr/internal/InternalProvider.g:872:8: lv_opr_0_3= ruleadd_op_dotplus\r\n {\r\n \r\n \t newCompositeNode(grammarAccess.getArithmetic_expressionAccess().getOprAdd_op_dotplusParserRuleCall_0_0_2()); \r\n \t \r\n pushFollow(FOLLOW_ruleadd_op_dotplus_in_rulearithmetic_expression1720);\r\n lv_opr_0_3=ruleadd_op_dotplus();\r\n\r\n state._fsp--;\r\n\r\n\r\n \t if (current==null) {\r\n \t current = createModelElementForParent(grammarAccess.getArithmetic_expressionRule());\r\n \t }\r\n \t\tset(\r\n \t\t\tcurrent, \r\n \t\t\t\"opr\",\r\n \t\tlv_opr_0_3, \r\n \t\t\"add_op_dotplus\");\r\n \t afterParserOrEnumRuleCall();\r\n \t \r\n\r\n }\r\n break;\r\n case 4 :\r\n // ../org.openmodelica.modelicaml.editor.xtext.valuebinding.provider/src-gen/org/openmodelica/modelicaml/editor/xtext/valuebinding/parser/antlr/internal/InternalProvider.g:887:8: lv_opr_0_4= ruleadd_op_dotminus\r\n {\r\n \r\n \t newCompositeNode(grammarAccess.getArithmetic_expressionAccess().getOprAdd_op_dotminusParserRuleCall_0_0_3()); \r\n \t \r\n pushFollow(FOLLOW_ruleadd_op_dotminus_in_rulearithmetic_expression1739);\r\n lv_opr_0_4=ruleadd_op_dotminus();\r\n\r\n state._fsp--;\r\n\r\n\r\n \t if (current==null) {\r\n \t current = createModelElementForParent(grammarAccess.getArithmetic_expressionRule());\r\n \t }\r\n \t\tset(\r\n \t\t\tcurrent, \r\n \t\t\t\"opr\",\r\n \t\tlv_opr_0_4, \r\n \t\t\"add_op_dotminus\");\r\n \t afterParserOrEnumRuleCall();\r\n \t \r\n\r\n }\r\n break;\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n\r\n }\r\n break;\r\n\r\n }\r\n\r\n // ../org.openmodelica.modelicaml.editor.xtext.valuebinding.provider/src-gen/org/openmodelica/modelicaml/editor/xtext/valuebinding/parser/antlr/internal/InternalProvider.g:905:3: ( (lv_Term_1_0= ruleterm ) )\r\n // ../org.openmodelica.modelicaml.editor.xtext.valuebinding.provider/src-gen/org/openmodelica/modelicaml/editor/xtext/valuebinding/parser/antlr/internal/InternalProvider.g:906:1: (lv_Term_1_0= ruleterm )\r\n {\r\n // ../org.openmodelica.modelicaml.editor.xtext.valuebinding.provider/src-gen/org/openmodelica/modelicaml/editor/xtext/valuebinding/parser/antlr/internal/InternalProvider.g:906:1: (lv_Term_1_0= ruleterm )\r\n // ../org.openmodelica.modelicaml.editor.xtext.valuebinding.provider/src-gen/org/openmodelica/modelicaml/editor/xtext/valuebinding/parser/antlr/internal/InternalProvider.g:907:3: lv_Term_1_0= ruleterm\r\n {\r\n \r\n \t newCompositeNode(grammarAccess.getArithmetic_expressionAccess().getTermTermParserRuleCall_1_0()); \r\n \t \r\n pushFollow(FOLLOW_ruleterm_in_rulearithmetic_expression1764);\r\n lv_Term_1_0=ruleterm();\r\n\r\n state._fsp--;\r\n\r\n\r\n \t if (current==null) {\r\n \t current = createModelElementForParent(grammarAccess.getArithmetic_expressionRule());\r\n \t }\r\n \t\tset(\r\n \t\t\tcurrent, \r\n \t\t\t\"Term\",\r\n \t\tlv_Term_1_0, \r\n \t\t\"term\");\r\n \t afterParserOrEnumRuleCall();\r\n \t \r\n\r\n }\r\n\r\n\r\n }\r\n\r\n // ../org.openmodelica.modelicaml.editor.xtext.valuebinding.provider/src-gen/org/openmodelica/modelicaml/editor/xtext/valuebinding/parser/antlr/internal/InternalProvider.g:923:2: ( ( ( (lv_Oper1_2_1= ruleadd_op_plus | lv_Oper1_2_2= ruleadd_op_minus | lv_Oper1_2_3= ruleadd_op_dotplus | lv_Oper1_2_4= ruleadd_op_dotminus ) ) ) ( (lv_Term1_3_0= ruleterm ) ) )*\r\n loop20:\r\n do {\r\n int alt20=2;\r\n int LA20_0 = input.LA(1);\r\n\r\n if ( ((LA20_0>=43 && LA20_0<=46)) ) {\r\n alt20=1;\r\n }\r\n\r\n\r\n switch (alt20) {\r\n \tcase 1 :\r\n \t // ../org.openmodelica.modelicaml.editor.xtext.valuebinding.provider/src-gen/org/openmodelica/modelicaml/editor/xtext/valuebinding/parser/antlr/internal/InternalProvider.g:923:3: ( ( (lv_Oper1_2_1= ruleadd_op_plus | lv_Oper1_2_2= ruleadd_op_minus | lv_Oper1_2_3= ruleadd_op_dotplus | lv_Oper1_2_4= ruleadd_op_dotminus ) ) ) ( (lv_Term1_3_0= ruleterm ) )\r\n \t {\r\n \t // ../org.openmodelica.modelicaml.editor.xtext.valuebinding.provider/src-gen/org/openmodelica/modelicaml/editor/xtext/valuebinding/parser/antlr/internal/InternalProvider.g:923:3: ( ( (lv_Oper1_2_1= ruleadd_op_plus | lv_Oper1_2_2= ruleadd_op_minus | lv_Oper1_2_3= ruleadd_op_dotplus | lv_Oper1_2_4= ruleadd_op_dotminus ) ) )\r\n \t // ../org.openmodelica.modelicaml.editor.xtext.valuebinding.provider/src-gen/org/openmodelica/modelicaml/editor/xtext/valuebinding/parser/antlr/internal/InternalProvider.g:924:1: ( (lv_Oper1_2_1= ruleadd_op_plus | lv_Oper1_2_2= ruleadd_op_minus | lv_Oper1_2_3= ruleadd_op_dotplus | lv_Oper1_2_4= ruleadd_op_dotminus ) )\r\n \t {\r\n \t // ../org.openmodelica.modelicaml.editor.xtext.valuebinding.provider/src-gen/org/openmodelica/modelicaml/editor/xtext/valuebinding/parser/antlr/internal/InternalProvider.g:924:1: ( (lv_Oper1_2_1= ruleadd_op_plus | lv_Oper1_2_2= ruleadd_op_minus | lv_Oper1_2_3= ruleadd_op_dotplus | lv_Oper1_2_4= ruleadd_op_dotminus ) )\r\n \t // ../org.openmodelica.modelicaml.editor.xtext.valuebinding.provider/src-gen/org/openmodelica/modelicaml/editor/xtext/valuebinding/parser/antlr/internal/InternalProvider.g:925:1: (lv_Oper1_2_1= ruleadd_op_plus | lv_Oper1_2_2= ruleadd_op_minus | lv_Oper1_2_3= ruleadd_op_dotplus | lv_Oper1_2_4= ruleadd_op_dotminus )\r\n \t {\r\n \t // ../org.openmodelica.modelicaml.editor.xtext.valuebinding.provider/src-gen/org/openmodelica/modelicaml/editor/xtext/valuebinding/parser/antlr/internal/InternalProvider.g:925:1: (lv_Oper1_2_1= ruleadd_op_plus | lv_Oper1_2_2= ruleadd_op_minus | lv_Oper1_2_3= ruleadd_op_dotplus | lv_Oper1_2_4= ruleadd_op_dotminus )\r\n \t int alt19=4;\r\n \t switch ( input.LA(1) ) {\r\n \t case 43:\r\n \t {\r\n \t alt19=1;\r\n \t }\r\n \t break;\r\n \t case 44:\r\n \t {\r\n \t alt19=2;\r\n \t }\r\n \t break;\r\n \t case 45:\r\n \t {\r\n \t alt19=3;\r\n \t }\r\n \t break;\r\n \t case 46:\r\n \t {\r\n \t alt19=4;\r\n \t }\r\n \t break;\r\n \t default:\r\n \t NoViableAltException nvae =\r\n \t new NoViableAltException(\"\", 19, 0, input);\r\n\r\n \t throw nvae;\r\n \t }\r\n\r\n \t switch (alt19) {\r\n \t case 1 :\r\n \t // ../org.openmodelica.modelicaml.editor.xtext.valuebinding.provider/src-gen/org/openmodelica/modelicaml/editor/xtext/valuebinding/parser/antlr/internal/InternalProvider.g:926:3: lv_Oper1_2_1= ruleadd_op_plus\r\n \t {\r\n \t \r\n \t \t newCompositeNode(grammarAccess.getArithmetic_expressionAccess().getOper1Add_op_plusParserRuleCall_2_0_0_0()); \r\n \t \t \r\n \t pushFollow(FOLLOW_ruleadd_op_plus_in_rulearithmetic_expression1788);\r\n \t lv_Oper1_2_1=ruleadd_op_plus();\r\n\r\n \t state._fsp--;\r\n\r\n\r\n \t \t if (current==null) {\r\n \t \t current = createModelElementForParent(grammarAccess.getArithmetic_expressionRule());\r\n \t \t }\r\n \t \t\tadd(\r\n \t \t\t\tcurrent, \r\n \t \t\t\t\"Oper1\",\r\n \t \t\tlv_Oper1_2_1, \r\n \t \t\t\"add_op_plus\");\r\n \t \t afterParserOrEnumRuleCall();\r\n \t \t \r\n\r\n \t }\r\n \t break;\r\n \t case 2 :\r\n \t // ../org.openmodelica.modelicaml.editor.xtext.valuebinding.provider/src-gen/org/openmodelica/modelicaml/editor/xtext/valuebinding/parser/antlr/internal/InternalProvider.g:941:8: lv_Oper1_2_2= ruleadd_op_minus\r\n \t {\r\n \t \r\n \t \t newCompositeNode(grammarAccess.getArithmetic_expressionAccess().getOper1Add_op_minusParserRuleCall_2_0_0_1()); \r\n \t \t \r\n \t pushFollow(FOLLOW_ruleadd_op_minus_in_rulearithmetic_expression1807);\r\n \t lv_Oper1_2_2=ruleadd_op_minus();\r\n\r\n \t state._fsp--;\r\n\r\n\r\n \t \t if (current==null) {\r\n \t \t current = createModelElementForParent(grammarAccess.getArithmetic_expressionRule());\r\n \t \t }\r\n \t \t\tadd(\r\n \t \t\t\tcurrent, \r\n \t \t\t\t\"Oper1\",\r\n \t \t\tlv_Oper1_2_2, \r\n \t \t\t\"add_op_minus\");\r\n \t \t afterParserOrEnumRuleCall();\r\n \t \t \r\n\r\n \t }\r\n \t break;\r\n \t case 3 :\r\n \t // ../org.openmodelica.modelicaml.editor.xtext.valuebinding.provider/src-gen/org/openmodelica/modelicaml/editor/xtext/valuebinding/parser/antlr/internal/InternalProvider.g:956:8: lv_Oper1_2_3= ruleadd_op_dotplus\r\n \t {\r\n \t \r\n \t \t newCompositeNode(grammarAccess.getArithmetic_expressionAccess().getOper1Add_op_dotplusParserRuleCall_2_0_0_2()); \r\n \t \t \r\n \t pushFollow(FOLLOW_ruleadd_op_dotplus_in_rulearithmetic_expression1826);\r\n \t lv_Oper1_2_3=ruleadd_op_dotplus();\r\n\r\n \t state._fsp--;\r\n\r\n\r\n \t \t if (current==null) {\r\n \t \t current = createModelElementForParent(grammarAccess.getArithmetic_expressionRule());\r\n \t \t }\r\n \t \t\tadd(\r\n \t \t\t\tcurrent, \r\n \t \t\t\t\"Oper1\",\r\n \t \t\tlv_Oper1_2_3, \r\n \t \t\t\"add_op_dotplus\");\r\n \t \t afterParserOrEnumRuleCall();\r\n \t \t \r\n\r\n \t }\r\n \t break;\r\n \t case 4 :\r\n \t // ../org.openmodelica.modelicaml.editor.xtext.valuebinding.provider/src-gen/org/openmodelica/modelicaml/editor/xtext/valuebinding/parser/antlr/internal/InternalProvider.g:971:8: lv_Oper1_2_4= ruleadd_op_dotminus\r\n \t {\r\n \t \r\n \t \t newCompositeNode(grammarAccess.getArithmetic_expressionAccess().getOper1Add_op_dotminusParserRuleCall_2_0_0_3()); \r\n \t \t \r\n \t pushFollow(FOLLOW_ruleadd_op_dotminus_in_rulearithmetic_expression1845);\r\n \t lv_Oper1_2_4=ruleadd_op_dotminus();\r\n\r\n \t state._fsp--;\r\n\r\n\r\n \t \t if (current==null) {\r\n \t \t current = createModelElementForParent(grammarAccess.getArithmetic_expressionRule());\r\n \t \t }\r\n \t \t\tadd(\r\n \t \t\t\tcurrent, \r\n \t \t\t\t\"Oper1\",\r\n \t \t\tlv_Oper1_2_4, \r\n \t \t\t\"add_op_dotminus\");\r\n \t \t afterParserOrEnumRuleCall();\r\n \t \t \r\n\r\n \t }\r\n \t break;\r\n\r\n \t }\r\n\r\n\r\n \t }\r\n\r\n\r\n \t }\r\n\r\n \t // ../org.openmodelica.modelicaml.editor.xtext.valuebinding.provider/src-gen/org/openmodelica/modelicaml/editor/xtext/valuebinding/parser/antlr/internal/InternalProvider.g:989:2: ( (lv_Term1_3_0= ruleterm ) )\r\n \t // ../org.openmodelica.modelicaml.editor.xtext.valuebinding.provider/src-gen/org/openmodelica/modelicaml/editor/xtext/valuebinding/parser/antlr/internal/InternalProvider.g:990:1: (lv_Term1_3_0= ruleterm )\r\n \t {\r\n \t // ../org.openmodelica.modelicaml.editor.xtext.valuebinding.provider/src-gen/org/openmodelica/modelicaml/editor/xtext/valuebinding/parser/antlr/internal/InternalProvider.g:990:1: (lv_Term1_3_0= ruleterm )\r\n \t // ../org.openmodelica.modelicaml.editor.xtext.valuebinding.provider/src-gen/org/openmodelica/modelicaml/editor/xtext/valuebinding/parser/antlr/internal/InternalProvider.g:991:3: lv_Term1_3_0= ruleterm\r\n \t {\r\n \t \r\n \t \t newCompositeNode(grammarAccess.getArithmetic_expressionAccess().getTerm1TermParserRuleCall_2_1_0()); \r\n \t \t \r\n \t pushFollow(FOLLOW_ruleterm_in_rulearithmetic_expression1869);\r\n \t lv_Term1_3_0=ruleterm();\r\n\r\n \t state._fsp--;\r\n\r\n\r\n \t \t if (current==null) {\r\n \t \t current = createModelElementForParent(grammarAccess.getArithmetic_expressionRule());\r\n \t \t }\r\n \t \t\tadd(\r\n \t \t\t\tcurrent, \r\n \t \t\t\t\"Term1\",\r\n \t \t\tlv_Term1_3_0, \r\n \t \t\t\"term\");\r\n \t \t afterParserOrEnumRuleCall();\r\n \t \t \r\n\r\n \t }\r\n\r\n\r\n \t }\r\n\r\n\r\n \t }\r\n \t break;\r\n\r\n \tdefault :\r\n \t break loop20;\r\n }\r\n } while (true);\r\n\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n leaveRule(); \r\n }\r\n \r\n catch (RecognitionException re) { \r\n recover(input,re); \r\n appendSkippedTokens();\r\n } \r\n finally {\r\n }\r\n return current;\r\n }", "title": "" }, { "docid": "a254a81271bfd05f077b6811d83a32e1", "score": "0.6751283", "text": "public final EObject entryRuleExpression() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleExpression = null;\n\n\n try {\n // InternalThingML.g:5838:51: (iv_ruleExpression= ruleExpression EOF )\n // InternalThingML.g:5839:2: iv_ruleExpression= ruleExpression EOF\n {\n newCompositeNode(grammarAccess.getExpressionRule()); \n pushFollow(FOLLOW_1);\n iv_ruleExpression=ruleExpression();\n\n state._fsp--;\n\n current =iv_ruleExpression; \n match(input,EOF,FOLLOW_2); \n\n }\n\n }\n\n catch (RecognitionException re) {\n recover(input,re);\n appendSkippedTokens();\n }\n finally {\n }\n return current;\n }", "title": "" }, { "docid": "72ca5240746fd4ce7e61b255357c9873", "score": "0.67226875", "text": "public final void entryRulearithmetic_expression() throws RecognitionException {\r\n try {\r\n // ../org.openmodelica.modelicaml.editor.xtext.modification.ui/src-gen/org/openmodelica/modelicaml/editor/xtext/modification/ui/contentassist/antlr/internal/InternalModification.g:1573:1: ( rulearithmetic_expression EOF )\r\n // ../org.openmodelica.modelicaml.editor.xtext.modification.ui/src-gen/org/openmodelica/modelicaml/editor/xtext/modification/ui/contentassist/antlr/internal/InternalModification.g:1574:1: rulearithmetic_expression EOF\r\n {\r\n before(grammarAccess.getArithmetic_expressionRule()); \r\n pushFollow(FOLLOW_rulearithmetic_expression_in_entryRulearithmetic_expression3299);\r\n rulearithmetic_expression();\r\n\r\n state._fsp--;\r\n\r\n after(grammarAccess.getArithmetic_expressionRule()); \r\n match(input,EOF,FOLLOW_EOF_in_entryRulearithmetic_expression3306); \r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "11fab9b12f3cd3e0259a076b272d882d", "score": "0.6677719", "text": "public final EObject entryRuleexpression() throws RecognitionException {\r\n EObject current = null;\r\n\r\n EObject iv_ruleexpression = null;\r\n\r\n\r\n try {\r\n // ../org.openmodelica.modelicaml.editor.xtext.valuebinding.provider/src-gen/org/openmodelica/modelicaml/editor/xtext/valuebinding/parser/antlr/internal/InternalProvider.g:273:2: (iv_ruleexpression= ruleexpression EOF )\r\n // ../org.openmodelica.modelicaml.editor.xtext.valuebinding.provider/src-gen/org/openmodelica/modelicaml/editor/xtext/valuebinding/parser/antlr/internal/InternalProvider.g:274:2: iv_ruleexpression= ruleexpression EOF\r\n {\r\n newCompositeNode(grammarAccess.getExpressionRule()); \r\n pushFollow(FOLLOW_ruleexpression_in_entryRuleexpression500);\r\n iv_ruleexpression=ruleexpression();\r\n\r\n state._fsp--;\r\n\r\n current =iv_ruleexpression; \r\n match(input,EOF,FOLLOW_EOF_in_entryRuleexpression510); \r\n\r\n }\r\n\r\n }\r\n \r\n catch (RecognitionException re) { \r\n recover(input,re); \r\n appendSkippedTokens();\r\n } \r\n finally {\r\n }\r\n return current;\r\n }", "title": "" }, { "docid": "a17622227b6550712dbd1882779dc063", "score": "0.6495299", "text": "public final void entryRuleArithmeticExpression() throws RecognitionException {\n try {\n // InternalACMECNl.g:330:1: ( ruleArithmeticExpression EOF )\n // InternalACMECNl.g:331:1: ruleArithmeticExpression EOF\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getArithmeticExpressionRule()); \n }\n pushFollow(FOLLOW_1);\n ruleArithmeticExpression();\n\n state._fsp--;\n if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getArithmeticExpressionRule()); \n }\n match(input,EOF,FOLLOW_2); if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n }\n return ;\n }", "title": "" }, { "docid": "dd024ad36997b52afe91e4728d5c0c47", "score": "0.63896185", "text": "public final void entryRuleexpression() throws RecognitionException {\r\n try {\r\n // ../org.openmodelica.modelicaml.editor.xtext.modification.ui/src-gen/org/openmodelica/modelicaml/editor/xtext/modification/ui/contentassist/antlr/internal/InternalModification.g:1377:1: ( ruleexpression EOF )\r\n // ../org.openmodelica.modelicaml.editor.xtext.modification.ui/src-gen/org/openmodelica/modelicaml/editor/xtext/modification/ui/contentassist/antlr/internal/InternalModification.g:1378:1: ruleexpression EOF\r\n {\r\n before(grammarAccess.getExpressionRule()); \r\n pushFollow(FOLLOW_ruleexpression_in_entryRuleexpression2879);\r\n ruleexpression();\r\n\r\n state._fsp--;\r\n\r\n after(grammarAccess.getExpressionRule()); \r\n match(input,EOF,FOLLOW_EOF_in_entryRuleexpression2886); \r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "66f84e1d107fcaa50a461bc524f81a88", "score": "0.63719064", "text": "public final String entryRuleadd_op_plus() throws RecognitionException {\r\n String current = null;\r\n\r\n AntlrDatatypeRuleToken iv_ruleadd_op_plus = null;\r\n\r\n\r\n try {\r\n // ../org.openmodelica.modelicaml.editor.xtext.valuebinding.provider/src-gen/org/openmodelica/modelicaml/editor/xtext/valuebinding/parser/antlr/internal/InternalProvider.g:2397:2: (iv_ruleadd_op_plus= ruleadd_op_plus EOF )\r\n // ../org.openmodelica.modelicaml.editor.xtext.valuebinding.provider/src-gen/org/openmodelica/modelicaml/editor/xtext/valuebinding/parser/antlr/internal/InternalProvider.g:2398:2: iv_ruleadd_op_plus= ruleadd_op_plus EOF\r\n {\r\n newCompositeNode(grammarAccess.getAdd_op_plusRule()); \r\n pushFollow(FOLLOW_ruleadd_op_plus_in_entryRuleadd_op_plus5011);\r\n iv_ruleadd_op_plus=ruleadd_op_plus();\r\n\r\n state._fsp--;\r\n\r\n current =iv_ruleadd_op_plus.getText(); \r\n match(input,EOF,FOLLOW_EOF_in_entryRuleadd_op_plus5022); \r\n\r\n }\r\n\r\n }\r\n \r\n catch (RecognitionException re) { \r\n recover(input,re); \r\n appendSkippedTokens();\r\n } \r\n finally {\r\n }\r\n return current;\r\n }", "title": "" }, { "docid": "f4a4644a664d13ef23df952be2800c77", "score": "0.63266015", "text": "public final void entryRuleExpression() throws RecognitionException {\n try {\n // InternalCalculator.g:180:1: ( ruleExpression EOF )\n // InternalCalculator.g:181:1: ruleExpression EOF\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getExpressionRule()); \n }\n pushFollow(FOLLOW_1);\n ruleExpression();\n\n state._fsp--;\n if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getExpressionRule()); \n }\n match(input,EOF,FOLLOW_2); if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n }\n return ;\n }", "title": "" }, { "docid": "652882e655b8d05cf22587f82e1e5ce1", "score": "0.63155836", "text": "public final EObject entryRuleExpr() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleExpr = null;\n\n\n try {\n // ../com.rockwellcollins.atc.resolute/src-gen/com/rockwellcollins/atc/resolute/parser/antlr/internal/InternalResolute.g:1282:2: (iv_ruleExpr= ruleExpr EOF )\n // ../com.rockwellcollins.atc.resolute/src-gen/com/rockwellcollins/atc/resolute/parser/antlr/internal/InternalResolute.g:1283:2: iv_ruleExpr= ruleExpr EOF\n {\n if ( state.backtracking==0 ) {\n newCompositeNode(grammarAccess.getExprRule()); \n }\n pushFollow(FOLLOW_ruleExpr_in_entryRuleExpr2816);\n iv_ruleExpr=ruleExpr();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n current =iv_ruleExpr; \n }\n match(input,EOF,FOLLOW_EOF_in_entryRuleExpr2826); if (state.failed) return current;\n\n }\n\n }\n \n catch (RecognitionException re) { \n recover(input,re); \n appendSkippedTokens();\n } \n finally {\n }\n return current;\n }", "title": "" }, { "docid": "31a5bbfca84aeece0dfb8e134f9674d7", "score": "0.63099223", "text": "public final EObject entryRuleFunctionCallExpression() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleFunctionCallExpression = null;\n\n\n try {\n // InternalThingML.g:7101:63: (iv_ruleFunctionCallExpression= ruleFunctionCallExpression EOF )\n // InternalThingML.g:7102:2: iv_ruleFunctionCallExpression= ruleFunctionCallExpression EOF\n {\n newCompositeNode(grammarAccess.getFunctionCallExpressionRule()); \n pushFollow(FOLLOW_1);\n iv_ruleFunctionCallExpression=ruleFunctionCallExpression();\n\n state._fsp--;\n\n current =iv_ruleFunctionCallExpression; \n match(input,EOF,FOLLOW_2); \n\n }\n\n }\n\n catch (RecognitionException re) {\n recover(input,re);\n appendSkippedTokens();\n }\n finally {\n }\n return current;\n }", "title": "" }, { "docid": "e695bb99c14c6ef73f4267f02d0c6d25", "score": "0.62645155", "text": "public final EObject ruleEvaluation() throws RecognitionException {\n EObject current = null;\n\n Token otherlv_1=null;\n EObject lv_expression_0_0 = null;\n\n\n\n \tenterRule();\n\n try {\n // InternalArithmetic.g:385:2: ( ( ( (lv_expression_0_0= ruleExpression ) ) otherlv_1= ';' ) )\n // InternalArithmetic.g:386:2: ( ( (lv_expression_0_0= ruleExpression ) ) otherlv_1= ';' )\n {\n // InternalArithmetic.g:386:2: ( ( (lv_expression_0_0= ruleExpression ) ) otherlv_1= ';' )\n // InternalArithmetic.g:387:3: ( (lv_expression_0_0= ruleExpression ) ) otherlv_1= ';'\n {\n // InternalArithmetic.g:387:3: ( (lv_expression_0_0= ruleExpression ) )\n // InternalArithmetic.g:388:4: (lv_expression_0_0= ruleExpression )\n {\n // InternalArithmetic.g:388:4: (lv_expression_0_0= ruleExpression )\n // InternalArithmetic.g:389:5: lv_expression_0_0= ruleExpression\n {\n\n \t\t\t\t\tnewCompositeNode(grammarAccess.getEvaluationAccess().getExpressionExpressionParserRuleCall_0_0());\n \t\t\t\t\n pushFollow(FOLLOW_10);\n lv_expression_0_0=ruleExpression();\n\n state._fsp--;\n\n\n \t\t\t\t\tif (current==null) {\n \t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getEvaluationRule());\n \t\t\t\t\t}\n \t\t\t\t\tset(\n \t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\"expression\",\n \t\t\t\t\t\tlv_expression_0_0,\n \t\t\t\t\t\t\"org.xtext.arithmetic.Arithmetic.Expression\");\n \t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\n\n }\n\n\n }\n\n otherlv_1=(Token)match(input,19,FOLLOW_2); \n\n \t\t\tnewLeafNode(otherlv_1, grammarAccess.getEvaluationAccess().getSemicolonKeyword_1());\n \t\t\n\n }\n\n\n }\n\n\n \tleaveRule();\n\n }\n\n catch (RecognitionException re) {\n recover(input,re);\n appendSkippedTokens();\n }\n finally {\n }\n return current;\n }", "title": "" }, { "docid": "c03bcc0bc19e85eb83699286625c28a2", "score": "0.625274", "text": "public final void entryRuleExpression() throws RecognitionException {\n try {\n // ../../Client/com.netxforge.netxscript.ui/src-gen/com/netxforge/ui/contentassist/antlr/internal/InternalNetxscript.g:430:1: ( ruleExpression EOF )\n // ../../Client/com.netxforge.netxscript.ui/src-gen/com/netxforge/ui/contentassist/antlr/internal/InternalNetxscript.g:431:1: ruleExpression EOF\n {\n before(grammarAccess.getExpressionRule()); \n pushFollow(FOLLOW_ruleExpression_in_entryRuleExpression845);\n ruleExpression();\n\n state._fsp--;\n\n after(grammarAccess.getExpressionRule()); \n match(input,EOF,FOLLOW_EOF_in_entryRuleExpression852); \n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n }\n return ;\n }", "title": "" }, { "docid": "5fb6e2c35b79f98bdf1f31ab3633b220", "score": "0.6207336", "text": "public final void entryRuleExpression() throws RecognitionException {\r\n try {\r\n // InternalDsl.g:904:1: ( ruleExpression EOF )\r\n // InternalDsl.g:905:1: ruleExpression EOF\r\n {\r\n before(grammarAccess.getExpressionRule()); \r\n pushFollow(FOLLOW_1);\r\n ruleExpression();\r\n\r\n state._fsp--;\r\n\r\n after(grammarAccess.getExpressionRule()); \r\n match(input,EOF,FOLLOW_2); \r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "7d25c756b55aa63ba794e1da9eff493a", "score": "0.62000453", "text": "public final String entryRuleOpAdd() throws RecognitionException {\r\n String current = null;\r\n\r\n AntlrDatatypeRuleToken iv_ruleOpAdd = null;\r\n\r\n\r\n try {\r\n // InternalSqlQueryDsl.g:1524:45: (iv_ruleOpAdd= ruleOpAdd EOF )\r\n // InternalSqlQueryDsl.g:1525:2: iv_ruleOpAdd= ruleOpAdd EOF\r\n {\r\n if ( state.backtracking==0 ) {\r\n newCompositeNode(grammarAccess.getOpAddRule()); \r\n }\r\n pushFollow(FOLLOW_1);\r\n iv_ruleOpAdd=ruleOpAdd();\r\n\r\n state._fsp--;\r\n if (state.failed) return current;\r\n if ( state.backtracking==0 ) {\r\n current =iv_ruleOpAdd.getText(); \r\n }\r\n match(input,EOF,FOLLOW_2); if (state.failed) return current;\r\n\r\n }\r\n\r\n }\r\n\r\n catch (RecognitionException re) {\r\n recover(input,re);\r\n appendSkippedTokens();\r\n }\r\n finally {\r\n }\r\n return current;\r\n }", "title": "" }, { "docid": "97d2f74871c67968149c39746d418e78", "score": "0.61772966", "text": "public final EObject entryRulePlusExpr() throws RecognitionException {\n EObject current = null;\n\n EObject iv_rulePlusExpr = null;\n\n\n try {\n // ../com.rockwellcollins.atc.resolute/src-gen/com/rockwellcollins/atc/resolute/parser/antlr/internal/InternalResolute.g:1739:2: (iv_rulePlusExpr= rulePlusExpr EOF )\n // ../com.rockwellcollins.atc.resolute/src-gen/com/rockwellcollins/atc/resolute/parser/antlr/internal/InternalResolute.g:1740:2: iv_rulePlusExpr= rulePlusExpr EOF\n {\n if ( state.backtracking==0 ) {\n newCompositeNode(grammarAccess.getPlusExprRule()); \n }\n pushFollow(FOLLOW_rulePlusExpr_in_entryRulePlusExpr3957);\n iv_rulePlusExpr=rulePlusExpr();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n current =iv_rulePlusExpr; \n }\n match(input,EOF,FOLLOW_EOF_in_entryRulePlusExpr3967); if (state.failed) return current;\n\n }\n\n }\n \n catch (RecognitionException re) { \n recover(input,re); \n appendSkippedTokens();\n } \n finally {\n }\n return current;\n }", "title": "" }, { "docid": "ea13729fedc9124684fb50da5322c94f", "score": "0.61592716", "text": "public final EObject entryRuleEvaluation() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleEvaluation = null;\n\n\n try {\n // InternalArithmetic.g:372:51: (iv_ruleEvaluation= ruleEvaluation EOF )\n // InternalArithmetic.g:373:2: iv_ruleEvaluation= ruleEvaluation EOF\n {\n newCompositeNode(grammarAccess.getEvaluationRule()); \n pushFollow(FOLLOW_1);\n iv_ruleEvaluation=ruleEvaluation();\n\n state._fsp--;\n\n current =iv_ruleEvaluation; \n match(input,EOF,FOLLOW_2); \n\n }\n\n }\n\n catch (RecognitionException re) {\n recover(input,re);\n appendSkippedTokens();\n }\n finally {\n }\n return current;\n }", "title": "" }, { "docid": "38a4dc6be0e6d0f5b009b676f0468134", "score": "0.6074687", "text": "public final void entryRuleexpression() throws RecognitionException {\n try {\n // InternalAle.g:555:1: ( ruleexpression EOF )\n // InternalAle.g:556:1: ruleexpression EOF\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getExpressionRule()); \n }\n pushFollow(FOLLOW_1);\n ruleexpression();\n\n state._fsp--;\n if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getExpressionRule()); \n }\n match(input,EOF,FOLLOW_2); if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n }\n return ;\n }", "title": "" }, { "docid": "dc7261969ff0ca156f30e52959176928", "score": "0.6070143", "text": "public SymbolicExpression visit(Addition a) {\n a.getLHS().accept(this);\n a.getRHS().accept(this);\n return a;\n }", "title": "" }, { "docid": "39710e30050985e226ddd65d41fc3980", "score": "0.60153717", "text": "public final EObject entryRuleASTNode() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleASTNode = null;\n\n\n try {\n // ../fr.irisa.cairn.model.mathematica.xtext/src-gen/fr/irisa/cairn/model/parser/antlr/internal/InternalMathematica.g:130:2: (iv_ruleASTNode= ruleASTNode EOF )\n // ../fr.irisa.cairn.model.mathematica.xtext/src-gen/fr/irisa/cairn/model/parser/antlr/internal/InternalMathematica.g:131:2: iv_ruleASTNode= ruleASTNode EOF\n {\n currentNode = createCompositeNode(grammarAccess.getASTNodeRule(), currentNode); \n pushFollow(FOLLOW_ruleASTNode_in_entryRuleASTNode221);\n iv_ruleASTNode=ruleASTNode();\n _fsp--;\n\n current =iv_ruleASTNode; \n match(input,EOF,FOLLOW_EOF_in_entryRuleASTNode231); \n\n }\n\n }\n \n catch (RecognitionException re) { \n recover(input,re); \n appendSkippedTokens();\n } \n finally {\n }\n return current;\n }", "title": "" }, { "docid": "90dfcd8f71777c69c875cee1d56afe7f", "score": "0.60029435", "text": "public final EObject rulerelation() throws RecognitionException {\r\n EObject current = null;\r\n\r\n EObject this_arithmetic_expression_0 = null;\r\n\r\n AntlrDatatypeRuleToken lv_op_1_1 = null;\r\n\r\n AntlrDatatypeRuleToken lv_op_1_2 = null;\r\n\r\n AntlrDatatypeRuleToken lv_op_1_3 = null;\r\n\r\n AntlrDatatypeRuleToken lv_op_1_4 = null;\r\n\r\n AntlrDatatypeRuleToken lv_op_1_5 = null;\r\n\r\n AntlrDatatypeRuleToken lv_op_1_6 = null;\r\n\r\n EObject lv_Arithmetic_expression_2_0 = null;\r\n\r\n\r\n enterRule(); \r\n \r\n try {\r\n // ../org.openmodelica.modelicaml.editor.xtext.valuebinding.provider/src-gen/org/openmodelica/modelicaml/editor/xtext/valuebinding/parser/antlr/internal/InternalProvider.g:694:28: ( (this_arithmetic_expression_0= rulearithmetic_expression ( ( ( (lv_op_1_1= rulerel_op_Less_then | lv_op_1_2= rulerel_op_Less_equal | lv_op_1_3= rulerel_op_greater_then | lv_op_1_4= rulerel_op_greater_equal | lv_op_1_5= rulerel_op_assignment | lv_op_1_6= rulerel_op_Oper ) ) ) ( (lv_Arithmetic_expression_2_0= rulearithmetic_expression ) ) )? ) )\r\n // ../org.openmodelica.modelicaml.editor.xtext.valuebinding.provider/src-gen/org/openmodelica/modelicaml/editor/xtext/valuebinding/parser/antlr/internal/InternalProvider.g:695:1: (this_arithmetic_expression_0= rulearithmetic_expression ( ( ( (lv_op_1_1= rulerel_op_Less_then | lv_op_1_2= rulerel_op_Less_equal | lv_op_1_3= rulerel_op_greater_then | lv_op_1_4= rulerel_op_greater_equal | lv_op_1_5= rulerel_op_assignment | lv_op_1_6= rulerel_op_Oper ) ) ) ( (lv_Arithmetic_expression_2_0= rulearithmetic_expression ) ) )? )\r\n {\r\n // ../org.openmodelica.modelicaml.editor.xtext.valuebinding.provider/src-gen/org/openmodelica/modelicaml/editor/xtext/valuebinding/parser/antlr/internal/InternalProvider.g:695:1: (this_arithmetic_expression_0= rulearithmetic_expression ( ( ( (lv_op_1_1= rulerel_op_Less_then | lv_op_1_2= rulerel_op_Less_equal | lv_op_1_3= rulerel_op_greater_then | lv_op_1_4= rulerel_op_greater_equal | lv_op_1_5= rulerel_op_assignment | lv_op_1_6= rulerel_op_Oper ) ) ) ( (lv_Arithmetic_expression_2_0= rulearithmetic_expression ) ) )? )\r\n // ../org.openmodelica.modelicaml.editor.xtext.valuebinding.provider/src-gen/org/openmodelica/modelicaml/editor/xtext/valuebinding/parser/antlr/internal/InternalProvider.g:696:5: this_arithmetic_expression_0= rulearithmetic_expression ( ( ( (lv_op_1_1= rulerel_op_Less_then | lv_op_1_2= rulerel_op_Less_equal | lv_op_1_3= rulerel_op_greater_then | lv_op_1_4= rulerel_op_greater_equal | lv_op_1_5= rulerel_op_assignment | lv_op_1_6= rulerel_op_Oper ) ) ) ( (lv_Arithmetic_expression_2_0= rulearithmetic_expression ) ) )?\r\n {\r\n \r\n newCompositeNode(grammarAccess.getRelationAccess().getArithmetic_expressionParserRuleCall_0()); \r\n \r\n pushFollow(FOLLOW_rulearithmetic_expression_in_rulerelation1444);\r\n this_arithmetic_expression_0=rulearithmetic_expression();\r\n\r\n state._fsp--;\r\n\r\n \r\n current = this_arithmetic_expression_0; \r\n afterParserOrEnumRuleCall();\r\n \r\n // ../org.openmodelica.modelicaml.editor.xtext.valuebinding.provider/src-gen/org/openmodelica/modelicaml/editor/xtext/valuebinding/parser/antlr/internal/InternalProvider.g:704:1: ( ( ( (lv_op_1_1= rulerel_op_Less_then | lv_op_1_2= rulerel_op_Less_equal | lv_op_1_3= rulerel_op_greater_then | lv_op_1_4= rulerel_op_greater_equal | lv_op_1_5= rulerel_op_assignment | lv_op_1_6= rulerel_op_Oper ) ) ) ( (lv_Arithmetic_expression_2_0= rulearithmetic_expression ) ) )?\r\n int alt16=2;\r\n int LA16_0 = input.LA(1);\r\n\r\n if ( ((LA16_0>=47 && LA16_0<=52)) ) {\r\n alt16=1;\r\n }\r\n switch (alt16) {\r\n case 1 :\r\n // ../org.openmodelica.modelicaml.editor.xtext.valuebinding.provider/src-gen/org/openmodelica/modelicaml/editor/xtext/valuebinding/parser/antlr/internal/InternalProvider.g:704:2: ( ( (lv_op_1_1= rulerel_op_Less_then | lv_op_1_2= rulerel_op_Less_equal | lv_op_1_3= rulerel_op_greater_then | lv_op_1_4= rulerel_op_greater_equal | lv_op_1_5= rulerel_op_assignment | lv_op_1_6= rulerel_op_Oper ) ) ) ( (lv_Arithmetic_expression_2_0= rulearithmetic_expression ) )\r\n {\r\n // ../org.openmodelica.modelicaml.editor.xtext.valuebinding.provider/src-gen/org/openmodelica/modelicaml/editor/xtext/valuebinding/parser/antlr/internal/InternalProvider.g:704:2: ( ( (lv_op_1_1= rulerel_op_Less_then | lv_op_1_2= rulerel_op_Less_equal | lv_op_1_3= rulerel_op_greater_then | lv_op_1_4= rulerel_op_greater_equal | lv_op_1_5= rulerel_op_assignment | lv_op_1_6= rulerel_op_Oper ) ) )\r\n // ../org.openmodelica.modelicaml.editor.xtext.valuebinding.provider/src-gen/org/openmodelica/modelicaml/editor/xtext/valuebinding/parser/antlr/internal/InternalProvider.g:705:1: ( (lv_op_1_1= rulerel_op_Less_then | lv_op_1_2= rulerel_op_Less_equal | lv_op_1_3= rulerel_op_greater_then | lv_op_1_4= rulerel_op_greater_equal | lv_op_1_5= rulerel_op_assignment | lv_op_1_6= rulerel_op_Oper ) )\r\n {\r\n // ../org.openmodelica.modelicaml.editor.xtext.valuebinding.provider/src-gen/org/openmodelica/modelicaml/editor/xtext/valuebinding/parser/antlr/internal/InternalProvider.g:705:1: ( (lv_op_1_1= rulerel_op_Less_then | lv_op_1_2= rulerel_op_Less_equal | lv_op_1_3= rulerel_op_greater_then | lv_op_1_4= rulerel_op_greater_equal | lv_op_1_5= rulerel_op_assignment | lv_op_1_6= rulerel_op_Oper ) )\r\n // ../org.openmodelica.modelicaml.editor.xtext.valuebinding.provider/src-gen/org/openmodelica/modelicaml/editor/xtext/valuebinding/parser/antlr/internal/InternalProvider.g:706:1: (lv_op_1_1= rulerel_op_Less_then | lv_op_1_2= rulerel_op_Less_equal | lv_op_1_3= rulerel_op_greater_then | lv_op_1_4= rulerel_op_greater_equal | lv_op_1_5= rulerel_op_assignment | lv_op_1_6= rulerel_op_Oper )\r\n {\r\n // ../org.openmodelica.modelicaml.editor.xtext.valuebinding.provider/src-gen/org/openmodelica/modelicaml/editor/xtext/valuebinding/parser/antlr/internal/InternalProvider.g:706:1: (lv_op_1_1= rulerel_op_Less_then | lv_op_1_2= rulerel_op_Less_equal | lv_op_1_3= rulerel_op_greater_then | lv_op_1_4= rulerel_op_greater_equal | lv_op_1_5= rulerel_op_assignment | lv_op_1_6= rulerel_op_Oper )\r\n int alt15=6;\r\n switch ( input.LA(1) ) {\r\n case 47:\r\n {\r\n alt15=1;\r\n }\r\n break;\r\n case 48:\r\n {\r\n alt15=2;\r\n }\r\n break;\r\n case 49:\r\n {\r\n alt15=3;\r\n }\r\n break;\r\n case 50:\r\n {\r\n alt15=4;\r\n }\r\n break;\r\n case 51:\r\n {\r\n alt15=5;\r\n }\r\n break;\r\n case 52:\r\n {\r\n alt15=6;\r\n }\r\n break;\r\n default:\r\n NoViableAltException nvae =\r\n new NoViableAltException(\"\", 15, 0, input);\r\n\r\n throw nvae;\r\n }\r\n\r\n switch (alt15) {\r\n case 1 :\r\n // ../org.openmodelica.modelicaml.editor.xtext.valuebinding.provider/src-gen/org/openmodelica/modelicaml/editor/xtext/valuebinding/parser/antlr/internal/InternalProvider.g:707:3: lv_op_1_1= rulerel_op_Less_then\r\n {\r\n \r\n \t newCompositeNode(grammarAccess.getRelationAccess().getOpRel_op_Less_thenParserRuleCall_1_0_0_0()); \r\n \t \r\n pushFollow(FOLLOW_rulerel_op_Less_then_in_rulerelation1467);\r\n lv_op_1_1=rulerel_op_Less_then();\r\n\r\n state._fsp--;\r\n\r\n\r\n \t if (current==null) {\r\n \t current = createModelElementForParent(grammarAccess.getRelationRule());\r\n \t }\r\n \t\tset(\r\n \t\t\tcurrent, \r\n \t\t\t\"op\",\r\n \t\tlv_op_1_1, \r\n \t\t\"rel_op_Less_then\");\r\n \t afterParserOrEnumRuleCall();\r\n \t \r\n\r\n }\r\n break;\r\n case 2 :\r\n // ../org.openmodelica.modelicaml.editor.xtext.valuebinding.provider/src-gen/org/openmodelica/modelicaml/editor/xtext/valuebinding/parser/antlr/internal/InternalProvider.g:722:8: lv_op_1_2= rulerel_op_Less_equal\r\n {\r\n \r\n \t newCompositeNode(grammarAccess.getRelationAccess().getOpRel_op_Less_equalParserRuleCall_1_0_0_1()); \r\n \t \r\n pushFollow(FOLLOW_rulerel_op_Less_equal_in_rulerelation1486);\r\n lv_op_1_2=rulerel_op_Less_equal();\r\n\r\n state._fsp--;\r\n\r\n\r\n \t if (current==null) {\r\n \t current = createModelElementForParent(grammarAccess.getRelationRule());\r\n \t }\r\n \t\tset(\r\n \t\t\tcurrent, \r\n \t\t\t\"op\",\r\n \t\tlv_op_1_2, \r\n \t\t\"rel_op_Less_equal\");\r\n \t afterParserOrEnumRuleCall();\r\n \t \r\n\r\n }\r\n break;\r\n case 3 :\r\n // ../org.openmodelica.modelicaml.editor.xtext.valuebinding.provider/src-gen/org/openmodelica/modelicaml/editor/xtext/valuebinding/parser/antlr/internal/InternalProvider.g:737:8: lv_op_1_3= rulerel_op_greater_then\r\n {\r\n \r\n \t newCompositeNode(grammarAccess.getRelationAccess().getOpRel_op_greater_thenParserRuleCall_1_0_0_2()); \r\n \t \r\n pushFollow(FOLLOW_rulerel_op_greater_then_in_rulerelation1505);\r\n lv_op_1_3=rulerel_op_greater_then();\r\n\r\n state._fsp--;\r\n\r\n\r\n \t if (current==null) {\r\n \t current = createModelElementForParent(grammarAccess.getRelationRule());\r\n \t }\r\n \t\tset(\r\n \t\t\tcurrent, \r\n \t\t\t\"op\",\r\n \t\tlv_op_1_3, \r\n \t\t\"rel_op_greater_then\");\r\n \t afterParserOrEnumRuleCall();\r\n \t \r\n\r\n }\r\n break;\r\n case 4 :\r\n // ../org.openmodelica.modelicaml.editor.xtext.valuebinding.provider/src-gen/org/openmodelica/modelicaml/editor/xtext/valuebinding/parser/antlr/internal/InternalProvider.g:752:8: lv_op_1_4= rulerel_op_greater_equal\r\n {\r\n \r\n \t newCompositeNode(grammarAccess.getRelationAccess().getOpRel_op_greater_equalParserRuleCall_1_0_0_3()); \r\n \t \r\n pushFollow(FOLLOW_rulerel_op_greater_equal_in_rulerelation1524);\r\n lv_op_1_4=rulerel_op_greater_equal();\r\n\r\n state._fsp--;\r\n\r\n\r\n \t if (current==null) {\r\n \t current = createModelElementForParent(grammarAccess.getRelationRule());\r\n \t }\r\n \t\tset(\r\n \t\t\tcurrent, \r\n \t\t\t\"op\",\r\n \t\tlv_op_1_4, \r\n \t\t\"rel_op_greater_equal\");\r\n \t afterParserOrEnumRuleCall();\r\n \t \r\n\r\n }\r\n break;\r\n case 5 :\r\n // ../org.openmodelica.modelicaml.editor.xtext.valuebinding.provider/src-gen/org/openmodelica/modelicaml/editor/xtext/valuebinding/parser/antlr/internal/InternalProvider.g:767:8: lv_op_1_5= rulerel_op_assignment\r\n {\r\n \r\n \t newCompositeNode(grammarAccess.getRelationAccess().getOpRel_op_assignmentParserRuleCall_1_0_0_4()); \r\n \t \r\n pushFollow(FOLLOW_rulerel_op_assignment_in_rulerelation1543);\r\n lv_op_1_5=rulerel_op_assignment();\r\n\r\n state._fsp--;\r\n\r\n\r\n \t if (current==null) {\r\n \t current = createModelElementForParent(grammarAccess.getRelationRule());\r\n \t }\r\n \t\tset(\r\n \t\t\tcurrent, \r\n \t\t\t\"op\",\r\n \t\tlv_op_1_5, \r\n \t\t\"rel_op_assignment\");\r\n \t afterParserOrEnumRuleCall();\r\n \t \r\n\r\n }\r\n break;\r\n case 6 :\r\n // ../org.openmodelica.modelicaml.editor.xtext.valuebinding.provider/src-gen/org/openmodelica/modelicaml/editor/xtext/valuebinding/parser/antlr/internal/InternalProvider.g:782:8: lv_op_1_6= rulerel_op_Oper\r\n {\r\n \r\n \t newCompositeNode(grammarAccess.getRelationAccess().getOpRel_op_OperParserRuleCall_1_0_0_5()); \r\n \t \r\n pushFollow(FOLLOW_rulerel_op_Oper_in_rulerelation1562);\r\n lv_op_1_6=rulerel_op_Oper();\r\n\r\n state._fsp--;\r\n\r\n\r\n \t if (current==null) {\r\n \t current = createModelElementForParent(grammarAccess.getRelationRule());\r\n \t }\r\n \t\tset(\r\n \t\t\tcurrent, \r\n \t\t\t\"op\",\r\n \t\tlv_op_1_6, \r\n \t\t\"rel_op_Oper\");\r\n \t afterParserOrEnumRuleCall();\r\n \t \r\n\r\n }\r\n break;\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n // ../org.openmodelica.modelicaml.editor.xtext.valuebinding.provider/src-gen/org/openmodelica/modelicaml/editor/xtext/valuebinding/parser/antlr/internal/InternalProvider.g:800:2: ( (lv_Arithmetic_expression_2_0= rulearithmetic_expression ) )\r\n // ../org.openmodelica.modelicaml.editor.xtext.valuebinding.provider/src-gen/org/openmodelica/modelicaml/editor/xtext/valuebinding/parser/antlr/internal/InternalProvider.g:801:1: (lv_Arithmetic_expression_2_0= rulearithmetic_expression )\r\n {\r\n // ../org.openmodelica.modelicaml.editor.xtext.valuebinding.provider/src-gen/org/openmodelica/modelicaml/editor/xtext/valuebinding/parser/antlr/internal/InternalProvider.g:801:1: (lv_Arithmetic_expression_2_0= rulearithmetic_expression )\r\n // ../org.openmodelica.modelicaml.editor.xtext.valuebinding.provider/src-gen/org/openmodelica/modelicaml/editor/xtext/valuebinding/parser/antlr/internal/InternalProvider.g:802:3: lv_Arithmetic_expression_2_0= rulearithmetic_expression\r\n {\r\n \r\n \t newCompositeNode(grammarAccess.getRelationAccess().getArithmetic_expressionArithmetic_expressionParserRuleCall_1_1_0()); \r\n \t \r\n pushFollow(FOLLOW_rulearithmetic_expression_in_rulerelation1586);\r\n lv_Arithmetic_expression_2_0=rulearithmetic_expression();\r\n\r\n state._fsp--;\r\n\r\n\r\n \t if (current==null) {\r\n \t current = createModelElementForParent(grammarAccess.getRelationRule());\r\n \t }\r\n \t\tset(\r\n \t\t\tcurrent, \r\n \t\t\t\"Arithmetic_expression\",\r\n \t\tlv_Arithmetic_expression_2_0, \r\n \t\t\"arithmetic_expression\");\r\n \t afterParserOrEnumRuleCall();\r\n \t \r\n\r\n }\r\n\r\n\r\n }\r\n\r\n\r\n }\r\n break;\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n leaveRule(); \r\n }\r\n \r\n catch (RecognitionException re) { \r\n recover(input,re); \r\n appendSkippedTokens();\r\n } \r\n finally {\r\n }\r\n return current;\r\n }", "title": "" }, { "docid": "4042f1bdef3170f65b9e3c1242b5ff49", "score": "0.5994574", "text": "public final EObject entryRuleExp() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleExp = null;\n\n\n try {\n // InternalProjectDSL.g:669:44: (iv_ruleExp= ruleExp EOF )\n // InternalProjectDSL.g:670:2: iv_ruleExp= ruleExp EOF\n {\n newCompositeNode(grammarAccess.getExpRule()); \n pushFollow(FOLLOW_1);\n iv_ruleExp=ruleExp();\n\n state._fsp--;\n\n current =iv_ruleExp; \n match(input,EOF,FOLLOW_2); \n\n }\n\n }\n\n catch (RecognitionException re) {\n recover(input,re);\n appendSkippedTokens();\n }\n finally {\n }\n return current;\n }", "title": "" }, { "docid": "c40bbdefda9907e1bb20f4ae385325df", "score": "0.59881634", "text": "public final EObject entryRuleNode() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleNode = null;\n\n\n try {\n // ../fr.irisa.cairn.model.mathematica.xtext/src-gen/fr/irisa/cairn/model/parser/antlr/internal/InternalMathematica.g:78:2: (iv_ruleNode= ruleNode EOF )\n // ../fr.irisa.cairn.model.mathematica.xtext/src-gen/fr/irisa/cairn/model/parser/antlr/internal/InternalMathematica.g:79:2: iv_ruleNode= ruleNode EOF\n {\n currentNode = createCompositeNode(grammarAccess.getNodeRule(), currentNode); \n pushFollow(FOLLOW_ruleNode_in_entryRuleNode75);\n iv_ruleNode=ruleNode();\n _fsp--;\n\n current =iv_ruleNode; \n match(input,EOF,FOLLOW_EOF_in_entryRuleNode85); \n\n }\n\n }\n \n catch (RecognitionException re) { \n recover(input,re); \n appendSkippedTokens();\n } \n finally {\n }\n return current;\n }", "title": "" }, { "docid": "bd5bbab1564f004a44a3221eba7981f8", "score": "0.59831005", "text": "public final void entryRuleadd_op_plus() throws RecognitionException {\r\n try {\r\n // ../org.openmodelica.modelicaml.editor.xtext.modification.ui/src-gen/org/openmodelica/modelicaml/editor/xtext/modification/ui/contentassist/antlr/internal/InternalModification.g:2281:1: ( ruleadd_op_plus EOF )\r\n // ../org.openmodelica.modelicaml.editor.xtext.modification.ui/src-gen/org/openmodelica/modelicaml/editor/xtext/modification/ui/contentassist/antlr/internal/InternalModification.g:2282:1: ruleadd_op_plus EOF\r\n {\r\n before(grammarAccess.getAdd_op_plusRule()); \r\n pushFollow(FOLLOW_ruleadd_op_plus_in_entryRuleadd_op_plus4807);\r\n ruleadd_op_plus();\r\n\r\n state._fsp--;\r\n\r\n after(grammarAccess.getAdd_op_plusRule()); \r\n match(input,EOF,FOLLOW_EOF_in_entryRuleadd_op_plus4814); \r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "5196f0aaab89392f14339346a428264f", "score": "0.59797335", "text": "public final EObject entryRuleRule() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleRule = null;\n\n\n try {\n // InternalMIRoN.g:1651:45: (iv_ruleRule= ruleRule EOF )\n // InternalMIRoN.g:1652:2: iv_ruleRule= ruleRule EOF\n {\n newCompositeNode(grammarAccess.getRuleRule()); \n pushFollow(FOLLOW_1);\n iv_ruleRule=ruleRule();\n\n state._fsp--;\n\n current =iv_ruleRule; \n match(input,EOF,FOLLOW_2); \n\n }\n\n }\n\n catch (RecognitionException re) {\n recover(input,re);\n appendSkippedTokens();\n }\n finally {\n }\n return current;\n }", "title": "" }, { "docid": "b44b647ca25ce974c037d967121d23e0", "score": "0.5957887", "text": "public final EObject entryRuleAdditiveExpression() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleAdditiveExpression = null;\n\n\n try {\n // ../com.dexels.navajo.dsl.expression/src-gen/com/dexels/navajo/dsl/expression/parser/antlr/internal/InternalNavajoExpression.g:972:2: (iv_ruleAdditiveExpression= ruleAdditiveExpression EOF )\n // ../com.dexels.navajo.dsl.expression/src-gen/com/dexels/navajo/dsl/expression/parser/antlr/internal/InternalNavajoExpression.g:973:2: iv_ruleAdditiveExpression= ruleAdditiveExpression EOF\n {\n newCompositeNode(grammarAccess.getAdditiveExpressionRule()); \n pushFollow(FOLLOW_ruleAdditiveExpression_in_entryRuleAdditiveExpression1830);\n iv_ruleAdditiveExpression=ruleAdditiveExpression();\n\n state._fsp--;\n\n current =iv_ruleAdditiveExpression; \n match(input,EOF,FOLLOW_EOF_in_entryRuleAdditiveExpression1840); \n\n }\n\n }\n \n catch (RecognitionException re) { \n recover(input,re); \n appendSkippedTokens();\n } \n finally {\n }\n return current;\n }", "title": "" }, { "docid": "4f17fe4b17d8dc08349cb09ed8114c8a", "score": "0.5954436", "text": "public final EObject entryRuleStatement() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleStatement = null;\n\n\n try {\n // InternalArithmetic.g:179:50: (iv_ruleStatement= ruleStatement EOF )\n // InternalArithmetic.g:180:2: iv_ruleStatement= ruleStatement EOF\n {\n newCompositeNode(grammarAccess.getStatementRule()); \n pushFollow(FOLLOW_1);\n iv_ruleStatement=ruleStatement();\n\n state._fsp--;\n\n current =iv_ruleStatement; \n match(input,EOF,FOLLOW_2); \n\n }\n\n }\n\n catch (RecognitionException re) {\n recover(input,re);\n appendSkippedTokens();\n }\n finally {\n }\n return current;\n }", "title": "" }, { "docid": "bf02c29f143938fb3b2b6e98c284f372", "score": "0.59458303", "text": "public final void entryRuleExpression() throws RecognitionException {\n try {\n // InternalVizualizer.g:479:1: ( ruleExpression EOF )\n // InternalVizualizer.g:480:1: ruleExpression EOF\n {\n before(grammarAccess.getExpressionRule()); \n pushFollow(FOLLOW_1);\n ruleExpression();\n\n state._fsp--;\n\n after(grammarAccess.getExpressionRule()); \n match(input,EOF,FOLLOW_2); \n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n }\n return ;\n }", "title": "" }, { "docid": "5e42b23cf549b9a6428e743b1a57822e", "score": "0.59334606", "text": "public final spinaParser.addition_return addition() throws RecognitionException {\n spinaParser.addition_return retval = new spinaParser.addition_return();\n retval.start = input.LT(1);\n\n Object root_0 = null;\n\n Token PLUS12=null;\n spinaParser.variable_return var1 = null;\n\n spinaParser.indexer_return ind1 = null;\n\n spinaParser.literal_return lit1 = null;\n\n spinaParser.variable_return var2 = null;\n\n spinaParser.indexer_return ind2 = null;\n\n spinaParser.literal_return lit2 = null;\n\n\n Object PLUS12_tree=null;\n\n\n retval.ret = new AdditionOperationElement();\n\n try {\n // spina.g:55:3: ( (var1= variable | ind1= indexer | lit1= literal ) PLUS (var2= variable | ind2= indexer | lit2= literal ) )\n // spina.g:55:5: (var1= variable | ind1= indexer | lit1= literal ) PLUS (var2= variable | ind2= indexer | lit2= literal )\n {\n root_0 = (Object)adaptor.nil();\n\n // spina.g:55:5: (var1= variable | ind1= indexer | lit1= literal )\n int alt5=3;\n int LA5_0 = input.LA(1);\n\n if ( (LA5_0==VARIABLE) ) {\n int LA5_1 = input.LA(2);\n\n if ( (LA5_1==ANG_BRACKET_LEFT) ) {\n alt5=2;\n }\n else if ( (LA5_1==PLUS) ) {\n alt5=1;\n }\n else {\n NoViableAltException nvae =\n new NoViableAltException(\"\", 5, 1, input);\n\n throw nvae;\n }\n }\n else if ( ((LA5_0>=INTEGER && LA5_0<=SQU_BRACKET_LEFT)) ) {\n alt5=3;\n }\n else {\n NoViableAltException nvae =\n new NoViableAltException(\"\", 5, 0, input);\n\n throw nvae;\n }\n switch (alt5) {\n case 1 :\n // spina.g:55:6: var1= variable\n {\n pushFollow(FOLLOW_variable_in_addition200);\n var1=variable();\n\n state._fsp--;\n\n adaptor.addChild(root_0, var1.getTree());\n retval.ret.setLhs((var1!=null?var1.ret:null)); \n\n }\n break;\n case 2 :\n // spina.g:56:7: ind1= indexer\n {\n pushFollow(FOLLOW_indexer_in_addition212);\n ind1=indexer();\n\n state._fsp--;\n\n adaptor.addChild(root_0, ind1.getTree());\n retval.ret.setLhs((ind1!=null?ind1.ret:null)); \n\n }\n break;\n case 3 :\n // spina.g:57:7: lit1= literal\n {\n pushFollow(FOLLOW_literal_in_addition224);\n lit1=literal();\n\n state._fsp--;\n\n adaptor.addChild(root_0, lit1.getTree());\n retval.ret.setLhs((lit1!=null?lit1.ret:null)); \n\n }\n break;\n\n }\n\n PLUS12=(Token)match(input,PLUS,FOLLOW_PLUS_in_addition233); \n PLUS12_tree = (Object)adaptor.create(PLUS12);\n adaptor.addChild(root_0, PLUS12_tree);\n\n // spina.g:59:5: (var2= variable | ind2= indexer | lit2= literal )\n int alt6=3;\n int LA6_0 = input.LA(1);\n\n if ( (LA6_0==VARIABLE) ) {\n int LA6_1 = input.LA(2);\n\n if ( (LA6_1==ANG_BRACKET_LEFT) ) {\n alt6=2;\n }\n else if ( (LA6_1==END_OF_STATEMENT) ) {\n alt6=1;\n }\n else {\n NoViableAltException nvae =\n new NoViableAltException(\"\", 6, 1, input);\n\n throw nvae;\n }\n }\n else if ( ((LA6_0>=INTEGER && LA6_0<=SQU_BRACKET_LEFT)) ) {\n alt6=3;\n }\n else {\n NoViableAltException nvae =\n new NoViableAltException(\"\", 6, 0, input);\n\n throw nvae;\n }\n switch (alt6) {\n case 1 :\n // spina.g:59:6: var2= variable\n {\n pushFollow(FOLLOW_variable_in_addition242);\n var2=variable();\n\n state._fsp--;\n\n adaptor.addChild(root_0, var2.getTree());\n retval.ret.setRhs((var2!=null?var2.ret:null)); \n\n }\n break;\n case 2 :\n // spina.g:60:7: ind2= indexer\n {\n pushFollow(FOLLOW_indexer_in_addition254);\n ind2=indexer();\n\n state._fsp--;\n\n adaptor.addChild(root_0, ind2.getTree());\n retval.ret.setRhs((ind2!=null?ind2.ret:null)); \n\n }\n break;\n case 3 :\n // spina.g:61:7: lit2= literal\n {\n pushFollow(FOLLOW_literal_in_addition266);\n lit2=literal();\n\n state._fsp--;\n\n adaptor.addChild(root_0, lit2.getTree());\n retval.ret.setRhs((lit2!=null?lit2.ret:null)); \n\n }\n break;\n\n }\n\n\n }\n\n retval.stop = input.LT(-1);\n\n retval.tree = (Object)adaptor.rulePostProcessing(root_0);\n adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n \tretval.tree = (Object)adaptor.errorNode(input, retval.start, input.LT(-1), re);\n\n }\n finally {\n }\n return retval;\n }", "title": "" }, { "docid": "aaa7cee9d9ed5d047d66544cc37c95b0", "score": "0.5919161", "text": "public final EObject entryRuleMathExp() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleMathExp = null;\n\n\n try {\n // InternalProjectDSL.g:633:48: (iv_ruleMathExp= ruleMathExp EOF )\n // InternalProjectDSL.g:634:2: iv_ruleMathExp= ruleMathExp EOF\n {\n newCompositeNode(grammarAccess.getMathExpRule()); \n pushFollow(FOLLOW_1);\n iv_ruleMathExp=ruleMathExp();\n\n state._fsp--;\n\n current =iv_ruleMathExp; \n match(input,EOF,FOLLOW_2); \n\n }\n\n }\n\n catch (RecognitionException re) {\n recover(input,re);\n appendSkippedTokens();\n }\n finally {\n }\n return current;\n }", "title": "" }, { "docid": "52c30426ef1a345985ea7364de3691bb", "score": "0.5899772", "text": "public final void rule__Relation__Arithmetic_expressionAssignment_1_1() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.openmodelica.modelicaml.editor.xtext.modification.ui/src-gen/org/openmodelica/modelicaml/editor/xtext/modification/ui/contentassist/antlr/internal/InternalModification.g:19102:1: ( ( rulearithmetic_expression ) )\r\n // ../org.openmodelica.modelicaml.editor.xtext.modification.ui/src-gen/org/openmodelica/modelicaml/editor/xtext/modification/ui/contentassist/antlr/internal/InternalModification.g:19103:1: ( rulearithmetic_expression )\r\n {\r\n // ../org.openmodelica.modelicaml.editor.xtext.modification.ui/src-gen/org/openmodelica/modelicaml/editor/xtext/modification/ui/contentassist/antlr/internal/InternalModification.g:19103:1: ( rulearithmetic_expression )\r\n // ../org.openmodelica.modelicaml.editor.xtext.modification.ui/src-gen/org/openmodelica/modelicaml/editor/xtext/modification/ui/contentassist/antlr/internal/InternalModification.g:19104:1: rulearithmetic_expression\r\n {\r\n before(grammarAccess.getRelationAccess().getArithmetic_expressionArithmetic_expressionParserRuleCall_1_1_0()); \r\n pushFollow(FOLLOW_rulearithmetic_expression_in_rule__Relation__Arithmetic_expressionAssignment_1_138612);\r\n rulearithmetic_expression();\r\n\r\n state._fsp--;\r\n\r\n after(grammarAccess.getRelationAccess().getArithmetic_expressionArithmetic_expressionParserRuleCall_1_1_0()); \r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "2e3989d6b46e9c3db21cf19f7f0e3bb9", "score": "0.5897976", "text": "public final void entryRuleaddOp() throws RecognitionException {\n try {\n // InternalAle.g:680:1: ( ruleaddOp EOF )\n // InternalAle.g:681:1: ruleaddOp EOF\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getAddOpRule()); \n }\n pushFollow(FOLLOW_1);\n ruleaddOp();\n\n state._fsp--;\n if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getAddOpRule()); \n }\n match(input,EOF,FOLLOW_2); if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n }\n return ;\n }", "title": "" }, { "docid": "cbf87dc5ebf30bbe291bae1885ad383d", "score": "0.5891263", "text": "public final EObject entryRuleRule() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleRule = null;\n\n\n try {\n // ../org.yazgel.regex.s2m/src-gen/org/yazgel/regex/s2m/parser/antlr/internal/InternalS2M.g:274:2: (iv_ruleRule= ruleRule EOF )\n // ../org.yazgel.regex.s2m/src-gen/org/yazgel/regex/s2m/parser/antlr/internal/InternalS2M.g:275:2: iv_ruleRule= ruleRule EOF\n {\n newCompositeNode(grammarAccess.getRuleRule()); \n pushFollow(FOLLOW_ruleRule_in_entryRuleRule567);\n iv_ruleRule=ruleRule();\n\n state._fsp--;\n\n current =iv_ruleRule; \n match(input,EOF,FOLLOW_EOF_in_entryRuleRule577); \n\n }\n\n }\n \n catch (RecognitionException re) { \n recover(input,re); \n appendSkippedTokens();\n } \n finally {\n }\n return current;\n }", "title": "" }, { "docid": "b14a872f050f242c4570d1260f80fcc8", "score": "0.5845285", "text": "public final String entryRuleadd_op_minus() throws RecognitionException {\r\n String current = null;\r\n\r\n AntlrDatatypeRuleToken iv_ruleadd_op_minus = null;\r\n\r\n\r\n try {\r\n // ../org.openmodelica.modelicaml.editor.xtext.valuebinding.provider/src-gen/org/openmodelica/modelicaml/editor/xtext/valuebinding/parser/antlr/internal/InternalProvider.g:2424:2: (iv_ruleadd_op_minus= ruleadd_op_minus EOF )\r\n // ../org.openmodelica.modelicaml.editor.xtext.valuebinding.provider/src-gen/org/openmodelica/modelicaml/editor/xtext/valuebinding/parser/antlr/internal/InternalProvider.g:2425:2: iv_ruleadd_op_minus= ruleadd_op_minus EOF\r\n {\r\n newCompositeNode(grammarAccess.getAdd_op_minusRule()); \r\n pushFollow(FOLLOW_ruleadd_op_minus_in_entryRuleadd_op_minus5099);\r\n iv_ruleadd_op_minus=ruleadd_op_minus();\r\n\r\n state._fsp--;\r\n\r\n current =iv_ruleadd_op_minus.getText(); \r\n match(input,EOF,FOLLOW_EOF_in_entryRuleadd_op_minus5110); \r\n\r\n }\r\n\r\n }\r\n \r\n catch (RecognitionException re) { \r\n recover(input,re); \r\n appendSkippedTokens();\r\n } \r\n finally {\r\n }\r\n return current;\r\n }", "title": "" }, { "docid": "d541e4dcf69404cf2130e581e4e0f611", "score": "0.5842983", "text": "public final EObject entryRuleAndExpression() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleAndExpression = null;\n\n\n try {\n // InternalThingML.g:5922:54: (iv_ruleAndExpression= ruleAndExpression EOF )\n // InternalThingML.g:5923:2: iv_ruleAndExpression= ruleAndExpression EOF\n {\n newCompositeNode(grammarAccess.getAndExpressionRule()); \n pushFollow(FOLLOW_1);\n iv_ruleAndExpression=ruleAndExpression();\n\n state._fsp--;\n\n current =iv_ruleAndExpression; \n match(input,EOF,FOLLOW_2); \n\n }\n\n }\n\n catch (RecognitionException re) {\n recover(input,re);\n appendSkippedTokens();\n }\n finally {\n }\n return current;\n }", "title": "" }, { "docid": "359394bc02391afd34f95521c0ea38b1", "score": "0.58406854", "text": "public final Node expr() throws RecognitionException {\n Node value = null;\n\n Node e = null;\n\n\n try {\n // D:\\\\workspace_gz\\\\myosotis\\\\grammar\\\\Calc.g:25:1: (e= mulexpr ( '+' e= mulexpr | '-' e= mulexpr )* )\n // D:\\\\workspace_gz\\\\myosotis\\\\grammar\\\\Calc.g:25:3: e= mulexpr ( '+' e= mulexpr | '-' e= mulexpr )*\n {\n pushFollow(FOLLOW_mulexpr_in_expr89);\n e=mulexpr();\n\n state._fsp--;\n\n value = e;\n // D:\\\\workspace_gz\\\\myosotis\\\\grammar\\\\Calc.g:26:1: ( '+' e= mulexpr | '-' e= mulexpr )*\n loop3:\n do {\n int alt3=3;\n int LA3_0 = input.LA(1);\n\n if ( (LA3_0==17) ) {\n alt3=1;\n }\n else if ( (LA3_0==18) ) {\n alt3=2;\n }\n\n\n switch (alt3) {\n \tcase 1 :\n \t // D:\\\\workspace_gz\\\\myosotis\\\\grammar\\\\Calc.g:26:3: '+' e= mulexpr\n \t {\n \t match(input,17,FOLLOW_17_in_expr95); \n \t pushFollow(FOLLOW_mulexpr_in_expr99);\n \t e=mulexpr();\n\n \t state._fsp--;\n\n\n \t \tNode temp = new Node(); \n \t \ttemp.op = Node.OP_PLUS;\n \t \ttemp.left = value;\n \t \ttemp.right = e;\n \t \tvalue = temp;\n\n\n \t }\n \t break;\n \tcase 2 :\n \t // D:\\\\workspace_gz\\\\myosotis\\\\grammar\\\\Calc.g:34:3: '-' e= mulexpr\n \t {\n \t match(input,18,FOLLOW_18_in_expr106); \n \t pushFollow(FOLLOW_mulexpr_in_expr110);\n \t e=mulexpr();\n\n \t state._fsp--;\n\n\n \t \tNode temp = new Node(); \n \t \ttemp.op = Node.OP_MINUS;\n \t \ttemp.left = value;\n \t \ttemp.right = e;\n \t \tvalue = temp;\n\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop3;\n }\n } while (true);\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n }\n return value;\n }", "title": "" }, { "docid": "545440942e2dc416a0ec955fa521fa99", "score": "0.58402157", "text": "public final void ruleAddition() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalCalculator.g:217:2: ( ( ( rule__Addition__Group__0 ) ) )\n // InternalCalculator.g:218:2: ( ( rule__Addition__Group__0 ) )\n {\n // InternalCalculator.g:218:2: ( ( rule__Addition__Group__0 ) )\n // InternalCalculator.g:219:3: ( rule__Addition__Group__0 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getAdditionAccess().getGroup()); \n }\n // InternalCalculator.g:220:3: ( rule__Addition__Group__0 )\n // InternalCalculator.g:220:4: rule__Addition__Group__0\n {\n pushFollow(FOLLOW_2);\n rule__Addition__Group__0();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getAdditionAccess().getGroup()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "5304ac74a3feaec99cdc06f52dc06ff4", "score": "0.58171386", "text": "ArithmeticExpression getRhs();", "title": "" }, { "docid": "fa0de6fecc93c8a5d7e06c14d274c0a6", "score": "0.5809192", "text": "public final Expression addExpr() throws RecognitionException {\n Expression result = null;\n\n int addExpr_StartIndex = input.index();\n\n Token op = null;\n Expression lhs = null;\n Expression rhs = null;\n\n try {\n if (state.backtracking > 0 && alreadyParsedRule(input, 12)) {\n return result;\n }\n\n // /home/sander/Documents/workspace/freshSeaOfQL/SanderBenschop/QLJava/src/main/java/org/uva/sea/ql/parsing/antlr/QL.g:141:5: (lhs= mulExpr (op= ( '+' | '-' ) rhs= mulExpr )* )\n // /home/sander/Documents/workspace/freshSeaOfQL/SanderBenschop/QLJava/src/main/java/org/uva/sea/ql/parsing/antlr/QL.g:141:9: lhs= mulExpr (op= ( '+' | '-' ) rhs= mulExpr )*\n {\n pushFollow(FOLLOW_mulExpr_in_addExpr576);\n lhs = mulExpr();\n state._fsp--;\n if (state.failed) return result;\n if (state.backtracking == 0) {\n result = lhs;\n }\n // /home/sander/Documents/workspace/freshSeaOfQL/SanderBenschop/QLJava/src/main/java/org/uva/sea/ql/parsing/antlr/QL.g:141:46: (op= ( '+' | '-' ) rhs= mulExpr )*\n loop8:\n while (true) {\n int alt8 = 2;\n int LA8_0 = input.LA(1);\n if (((LA8_0 >= 17 && LA8_0 <= 18))) {\n alt8 = 1;\n }\n\n switch (alt8) {\n case 1:\n // /home/sander/Documents/workspace/freshSeaOfQL/SanderBenschop/QLJava/src/main/java/org/uva/sea/ql/parsing/antlr/QL.g:141:48: op= ( '+' | '-' ) rhs= mulExpr\n {\n op = input.LT(1);\n if ((input.LA(1) >= 17 && input.LA(1) <= 18)) {\n input.consume();\n state.errorRecovery = false;\n state.failed = false;\n } else {\n if (state.backtracking > 0) {\n state.failed = true;\n return result;\n }\n MismatchedSetException mse = new MismatchedSetException(null, input);\n throw mse;\n }\n pushFollow(FOLLOW_mulExpr_in_addExpr594);\n rhs = mulExpr();\n state._fsp--;\n if (state.failed) return result;\n if (state.backtracking == 0) {\n SourceCodeInformation sourceCodeInformation = createSourceCodeInformation(op);\n if ((op != null ? op.getText() : null).equals(\"+\")) {\n result = new Add(result, rhs, sourceCodeInformation);\n }\n if ((op != null ? op.getText() : null).equals(\"-\")) {\n result = new Subtract(result, rhs, sourceCodeInformation);\n }\n }\n }\n break;\n\n default:\n break loop8;\n }\n }\n\n }\n\n } catch (RecognitionException re) {\n reportError(re);\n recover(input, re);\n } finally {\n // do for sure before leaving\n if (state.backtracking > 0) {\n memoize(input, 12, addExpr_StartIndex);\n }\n\n }\n return result;\n }", "title": "" }, { "docid": "f01e84117f225733e4da0f9fd5338c69", "score": "0.57938063", "text": "public final EObject entryRulePrimaryExpression() throws RecognitionException {\n EObject current = null;\n\n EObject iv_rulePrimaryExpression = null;\n\n\n try {\n // InternalArithmetic.g:593:58: (iv_rulePrimaryExpression= rulePrimaryExpression EOF )\n // InternalArithmetic.g:594:2: iv_rulePrimaryExpression= rulePrimaryExpression EOF\n {\n newCompositeNode(grammarAccess.getPrimaryExpressionRule()); \n pushFollow(FOLLOW_1);\n iv_rulePrimaryExpression=rulePrimaryExpression();\n\n state._fsp--;\n\n current =iv_rulePrimaryExpression; \n match(input,EOF,FOLLOW_2); \n\n }\n\n }\n\n catch (RecognitionException re) {\n recover(input,re);\n appendSkippedTokens();\n }\n finally {\n }\n return current;\n }", "title": "" }, { "docid": "3f15eca96e609e86ef6c54a8eecb5b50", "score": "0.5764958", "text": "public final EObject entryRuleIncrement() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleIncrement = null;\n\n\n try {\n // InternalThingML.g:5355:50: (iv_ruleIncrement= ruleIncrement EOF )\n // InternalThingML.g:5356:2: iv_ruleIncrement= ruleIncrement EOF\n {\n newCompositeNode(grammarAccess.getIncrementRule()); \n pushFollow(FOLLOW_1);\n iv_ruleIncrement=ruleIncrement();\n\n state._fsp--;\n\n current =iv_ruleIncrement; \n match(input,EOF,FOLLOW_2); \n\n }\n\n }\n\n catch (RecognitionException re) {\n recover(input,re);\n appendSkippedTokens();\n }\n finally {\n }\n return current;\n }", "title": "" }, { "docid": "a45cbb45c979d1fc2321b39a59d93134", "score": "0.5763657", "text": "public final EObject entryRuleUnaryExpression() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleUnaryExpression = null;\n\n\n try {\n // ../com.dexels.navajo.dsl.expression/src-gen/com/dexels/navajo/dsl/expression/parser/antlr/internal/InternalNavajoExpression.g:1165:2: (iv_ruleUnaryExpression= ruleUnaryExpression EOF )\n // ../com.dexels.navajo.dsl.expression/src-gen/com/dexels/navajo/dsl/expression/parser/antlr/internal/InternalNavajoExpression.g:1166:2: iv_ruleUnaryExpression= ruleUnaryExpression EOF\n {\n newCompositeNode(grammarAccess.getUnaryExpressionRule()); \n pushFollow(FOLLOW_ruleUnaryExpression_in_entryRuleUnaryExpression2201);\n iv_ruleUnaryExpression=ruleUnaryExpression();\n\n state._fsp--;\n\n current =iv_ruleUnaryExpression; \n match(input,EOF,FOLLOW_EOF_in_entryRuleUnaryExpression2211); \n\n }\n\n }\n \n catch (RecognitionException re) { \n recover(input,re); \n appendSkippedTokens();\n } \n finally {\n }\n return current;\n }", "title": "" }, { "docid": "f3aed7e4031701b5f8a03b31ae859136", "score": "0.576312", "text": "public final myCheckerParser.arith_expression_return arith_expression() throws RecognitionException {\n\t\tmyCheckerParser.arith_expression_return retval = new myCheckerParser.arith_expression_return();\n\t\tretval.start = input.LT(1);\n\n\t\tToken ADD_OP5=null;\n\t\tToken SUB_OP6=null;\n\t\tToken EQ_OP7=null;\n\t\tToken LE_OP8=null;\n\t\tToken GE_OP9=null;\n\t\tToken NE_OP10=null;\n\t\tToken GREATER_OP11=null;\n\t\tToken LESS_OP12=null;\n\t\tParserRuleReturnScope a =null;\n\t\tParserRuleReturnScope b =null;\n\n\t\ttry {\n\t\t\t// myChecker.g:88:41: (a= multExpr ( ADD_OP b= multExpr | SUB_OP b= multExpr | EQ_OP b= multExpr | LE_OP b= multExpr | GE_OP b= multExpr | NE_OP b= multExpr | GREATER_OP b= multExpr | LESS_OP b= multExpr )* )\n\t\t\t// myChecker.g:88:43: a= multExpr ( ADD_OP b= multExpr | SUB_OP b= multExpr | EQ_OP b= multExpr | LE_OP b= multExpr | GE_OP b= multExpr | NE_OP b= multExpr | GREATER_OP b= multExpr | LESS_OP b= multExpr )*\n\t\t\t{\n\t\t\tpushFollow(FOLLOW_multExpr_in_arith_expression194);\n\t\t\ta=multExpr();\n\t\t\tstate._fsp--;\n\n\t\t\t \n\t\t\t if (TRACEON) System.out.println(\"arith_expression: multExpr ( ADD_OP multExpr| SUB_OP multExpr | EQ_OP multExpr | LE_OP multExpr | GE_OP multExpr | NE_OP multExpr | GREATER_OP multExpr | LESS_OP multExpr)*\");\n\t\t\t retval.attr_type = Math.abs((a!=null?((myCheckerParser.multExpr_return)a).attr_type:0)); \n\t\t\t \n\t\t\t// myChecker.g:92:7: ( ADD_OP b= multExpr | SUB_OP b= multExpr | EQ_OP b= multExpr | LE_OP b= multExpr | GE_OP b= multExpr | NE_OP b= multExpr | GREATER_OP b= multExpr | LESS_OP b= multExpr )*\n\t\t\tloop7:\n\t\t\twhile (true) {\n\t\t\t\tint alt7=9;\n\t\t\t\tswitch ( input.LA(1) ) {\n\t\t\t\tcase ADD_OP:\n\t\t\t\t\t{\n\t\t\t\t\talt7=1;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase SUB_OP:\n\t\t\t\t\t{\n\t\t\t\t\talt7=2;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase EQ_OP:\n\t\t\t\t\t{\n\t\t\t\t\talt7=3;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase LE_OP:\n\t\t\t\t\t{\n\t\t\t\t\talt7=4;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase GE_OP:\n\t\t\t\t\t{\n\t\t\t\t\talt7=5;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase NE_OP:\n\t\t\t\t\t{\n\t\t\t\t\talt7=6;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase GREATER_OP:\n\t\t\t\t\t{\n\t\t\t\t\talt7=7;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase LESS_OP:\n\t\t\t\t\t{\n\t\t\t\t\talt7=8;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tswitch (alt7) {\n\t\t\t\tcase 1 :\n\t\t\t\t\t// myChecker.g:92:9: ADD_OP b= multExpr\n\t\t\t\t\t{\n\t\t\t\t\tADD_OP5=(Token)match(input,ADD_OP,FOLLOW_ADD_OP_in_arith_expression206); \n\t\t\t\t\tpushFollow(FOLLOW_multExpr_in_arith_expression212);\n\t\t\t\t\tb=multExpr();\n\t\t\t\t\tstate._fsp--;\n\n\t\t\t\t\t \n\t\t\t\t\t if (!match_operands((a!=null?((myCheckerParser.multExpr_return)a).attr_type:0), (b!=null?((myCheckerParser.multExpr_return)b).attr_type:0), (a!=null?(a.start):null).getLine(), (ADD_OP5!=null?ADD_OP5.getText():null))) retval.attr_type = 0;\n\t\t\t\t\t \n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase 2 :\n\t\t\t\t\t// myChecker.g:95:6: SUB_OP b= multExpr\n\t\t\t\t\t{\n\t\t\t\t\tSUB_OP6=(Token)match(input,SUB_OP,FOLLOW_SUB_OP_in_arith_expression221); \n\t\t\t\t\tpushFollow(FOLLOW_multExpr_in_arith_expression227);\n\t\t\t\t\tb=multExpr();\n\t\t\t\t\tstate._fsp--;\n\n\t\t\t\t\t \n\t\t\t\t\t if (!match_operands((a!=null?((myCheckerParser.multExpr_return)a).attr_type:0), (b!=null?((myCheckerParser.multExpr_return)b).attr_type:0), (a!=null?(a.start):null).getLine(), (SUB_OP6!=null?SUB_OP6.getText():null))) retval.attr_type = 0;\n\t\t\t\t\t \n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase 3 :\n\t\t\t\t\t// myChecker.g:98:9: EQ_OP b= multExpr\n\t\t\t\t\t{\n\t\t\t\t\tEQ_OP7=(Token)match(input,EQ_OP,FOLLOW_EQ_OP_in_arith_expression239); \n\t\t\t\t\tpushFollow(FOLLOW_multExpr_in_arith_expression245);\n\t\t\t\t\tb=multExpr();\n\t\t\t\t\tstate._fsp--;\n\n\t\t\t\t\t \n\t\t\t\t\t if (!match_operands((a!=null?((myCheckerParser.multExpr_return)a).attr_type:0), (b!=null?((myCheckerParser.multExpr_return)b).attr_type:0), (a!=null?(a.start):null).getLine(), (EQ_OP7!=null?EQ_OP7.getText():null))) retval.attr_type = 0;\n\t\t\t\t\t \n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase 4 :\n\t\t\t\t\t// myChecker.g:101:9: LE_OP b= multExpr\n\t\t\t\t\t{\n\t\t\t\t\tLE_OP8=(Token)match(input,LE_OP,FOLLOW_LE_OP_in_arith_expression257); \n\t\t\t\t\tpushFollow(FOLLOW_multExpr_in_arith_expression263);\n\t\t\t\t\tb=multExpr();\n\t\t\t\t\tstate._fsp--;\n\n\t\t\t\t\t \n\t\t\t\t\t if (!match_operands((a!=null?((myCheckerParser.multExpr_return)a).attr_type:0), (b!=null?((myCheckerParser.multExpr_return)b).attr_type:0), (a!=null?(a.start):null).getLine(), (LE_OP8!=null?LE_OP8.getText():null))) retval.attr_type = 0;\n\t\t\t\t\t \n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase 5 :\n\t\t\t\t\t// myChecker.g:104:9: GE_OP b= multExpr\n\t\t\t\t\t{\n\t\t\t\t\tGE_OP9=(Token)match(input,GE_OP,FOLLOW_GE_OP_in_arith_expression275); \n\t\t\t\t\tpushFollow(FOLLOW_multExpr_in_arith_expression281);\n\t\t\t\t\tb=multExpr();\n\t\t\t\t\tstate._fsp--;\n\n\t\t\t\t\t \n\t\t\t\t\t if (!match_operands((a!=null?((myCheckerParser.multExpr_return)a).attr_type:0), (b!=null?((myCheckerParser.multExpr_return)b).attr_type:0), (a!=null?(a.start):null).getLine(), (GE_OP9!=null?GE_OP9.getText():null))) retval.attr_type = 0;\n\t\t\t\t\t \n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase 6 :\n\t\t\t\t\t// myChecker.g:107:9: NE_OP b= multExpr\n\t\t\t\t\t{\n\t\t\t\t\tNE_OP10=(Token)match(input,NE_OP,FOLLOW_NE_OP_in_arith_expression293); \n\t\t\t\t\tpushFollow(FOLLOW_multExpr_in_arith_expression299);\n\t\t\t\t\tb=multExpr();\n\t\t\t\t\tstate._fsp--;\n\n\t\t\t\t\t \n\t\t\t\t\t if (!match_operands((a!=null?((myCheckerParser.multExpr_return)a).attr_type:0), (b!=null?((myCheckerParser.multExpr_return)b).attr_type:0), (a!=null?(a.start):null).getLine(), (NE_OP10!=null?NE_OP10.getText():null))) retval.attr_type = 0;\n\t\t\t\t\t \n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase 7 :\n\t\t\t\t\t// myChecker.g:110:9: GREATER_OP b= multExpr\n\t\t\t\t\t{\n\t\t\t\t\tGREATER_OP11=(Token)match(input,GREATER_OP,FOLLOW_GREATER_OP_in_arith_expression311); \n\t\t\t\t\tpushFollow(FOLLOW_multExpr_in_arith_expression317);\n\t\t\t\t\tb=multExpr();\n\t\t\t\t\tstate._fsp--;\n\n\t\t\t\t\t \n\t\t\t\t\t if (!match_operands((a!=null?((myCheckerParser.multExpr_return)a).attr_type:0), (b!=null?((myCheckerParser.multExpr_return)b).attr_type:0), (a!=null?(a.start):null).getLine(), (GREATER_OP11!=null?GREATER_OP11.getText():null))) retval.attr_type = 0;\n\t\t\t\t\t \n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase 8 :\n\t\t\t\t\t// myChecker.g:113:9: LESS_OP b= multExpr\n\t\t\t\t\t{\n\t\t\t\t\tLESS_OP12=(Token)match(input,LESS_OP,FOLLOW_LESS_OP_in_arith_expression329); \n\t\t\t\t\tpushFollow(FOLLOW_multExpr_in_arith_expression335);\n\t\t\t\t\tb=multExpr();\n\t\t\t\t\tstate._fsp--;\n\n\t\t\t\t\t \n\t\t\t\t\t if (!match_operands((a!=null?((myCheckerParser.multExpr_return)a).attr_type:0), (b!=null?((myCheckerParser.multExpr_return)b).attr_type:0), (a!=null?(a.start):null).getLine(), (LESS_OP12!=null?LESS_OP12.getText():null))) retval.attr_type = 0;\n\t\t\t\t\t \n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\n\t\t\t\tdefault :\n\t\t\t\t\tbreak loop7;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t}\n\n\t\t\tretval.stop = input.LT(-1);\n\n\t\t}\n\t\tcatch (RecognitionException re) {\n\t\t\treportError(re);\n\t\t\trecover(input,re);\n\t\t}\n\t\tfinally {\n\t\t\t// do for sure before leaving\n\t\t}\n\t\treturn retval;\n\t}", "title": "" }, { "docid": "9ac7eead2cea294c4f7dccec6fe82991", "score": "0.5747036", "text": "public final EObject entryRuleTerminalExpression() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleTerminalExpression = null;\n\n\n try {\n // InternalEsper.g:1416:59: (iv_ruleTerminalExpression= ruleTerminalExpression EOF )\n // InternalEsper.g:1417:2: iv_ruleTerminalExpression= ruleTerminalExpression EOF\n {\n if ( state.backtracking==0 ) {\n newCompositeNode(grammarAccess.getTerminalExpressionRule()); \n }\n pushFollow(FOLLOW_1);\n iv_ruleTerminalExpression=ruleTerminalExpression();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n current =iv_ruleTerminalExpression; \n }\n match(input,EOF,FOLLOW_2); if (state.failed) return current;\n\n }\n\n }\n\n catch (RecognitionException re) {\n recover(input,re);\n appendSkippedTokens();\n }\n finally {\n }\n return current;\n }", "title": "" }, { "docid": "85213c316d1aeacd45dfdd4ed84dc10e", "score": "0.5744543", "text": "public final EObject entryRuleFunctionCall() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleFunctionCall = null;\n\n\n try {\n // ../com.dexels.navajo.dsl.expression/src-gen/com/dexels/navajo/dsl/expression/parser/antlr/internal/InternalNavajoExpression.g:1323:2: (iv_ruleFunctionCall= ruleFunctionCall EOF )\n // ../com.dexels.navajo.dsl.expression/src-gen/com/dexels/navajo/dsl/expression/parser/antlr/internal/InternalNavajoExpression.g:1324:2: iv_ruleFunctionCall= ruleFunctionCall EOF\n {\n newCompositeNode(grammarAccess.getFunctionCallRule()); \n pushFollow(FOLLOW_ruleFunctionCall_in_entryRuleFunctionCall2593);\n iv_ruleFunctionCall=ruleFunctionCall();\n\n state._fsp--;\n\n current =iv_ruleFunctionCall; \n match(input,EOF,FOLLOW_EOF_in_entryRuleFunctionCall2603); \n\n }\n\n }\n \n catch (RecognitionException re) { \n recover(input,re); \n appendSkippedTokens();\n } \n finally {\n }\n return current;\n }", "title": "" }, { "docid": "1956574984764344109246bda0ce8ec7", "score": "0.572432", "text": "Apfloat parseExpression() {\n Apfloat x = parseTerm();\n for (;;) {\n if (eat('+')) x = x.add(parseTerm()); // addition\n else if (eat('-')) x = x.subtract(parseTerm()); // subtraction\n else return x;\n }\n }", "title": "" }, { "docid": "78d297423f70490d4db353602469f4f4", "score": "0.57153976", "text": "public final EObject entryRuleXExpression() throws RecognitionException {\r\n EObject current = null;\r\n\r\n EObject iv_ruleXExpression = null;\r\n\r\n\r\n try {\r\n // InternalSqlQueryDsl.g:419:52: (iv_ruleXExpression= ruleXExpression EOF )\r\n // InternalSqlQueryDsl.g:420:2: iv_ruleXExpression= ruleXExpression EOF\r\n {\r\n if ( state.backtracking==0 ) {\r\n newCompositeNode(grammarAccess.getXExpressionRule()); \r\n }\r\n pushFollow(FOLLOW_1);\r\n iv_ruleXExpression=ruleXExpression();\r\n\r\n state._fsp--;\r\n if (state.failed) return current;\r\n if ( state.backtracking==0 ) {\r\n current =iv_ruleXExpression; \r\n }\r\n match(input,EOF,FOLLOW_2); if (state.failed) return current;\r\n\r\n }\r\n\r\n }\r\n\r\n catch (RecognitionException re) {\r\n recover(input,re);\r\n appendSkippedTokens();\r\n }\r\n finally {\r\n }\r\n return current;\r\n }", "title": "" }, { "docid": "8f4ebe9091cf1e9fb0cafb1d1178551f", "score": "0.5710901", "text": "public final EObject entryRuleFunctionCallStatement() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleFunctionCallStatement = null;\n\n\n try {\n // InternalThingML.g:5752:62: (iv_ruleFunctionCallStatement= ruleFunctionCallStatement EOF )\n // InternalThingML.g:5753:2: iv_ruleFunctionCallStatement= ruleFunctionCallStatement EOF\n {\n newCompositeNode(grammarAccess.getFunctionCallStatementRule()); \n pushFollow(FOLLOW_1);\n iv_ruleFunctionCallStatement=ruleFunctionCallStatement();\n\n state._fsp--;\n\n current =iv_ruleFunctionCallStatement; \n match(input,EOF,FOLLOW_2); \n\n }\n\n }\n\n catch (RecognitionException re) {\n recover(input,re);\n appendSkippedTokens();\n }\n finally {\n }\n return current;\n }", "title": "" }, { "docid": "ff84a6bce6617daad59520037e80510e", "score": "0.5692202", "text": "public final EObject ruleStatement() throws RecognitionException {\n EObject current = null;\n\n EObject this_Definition_0 = null;\n\n EObject this_Evaluation_1 = null;\n\n\n\n \tenterRule();\n\n try {\n // InternalArithmetic.g:192:2: ( (this_Definition_0= ruleDefinition | this_Evaluation_1= ruleEvaluation ) )\n // InternalArithmetic.g:193:2: (this_Definition_0= ruleDefinition | this_Evaluation_1= ruleEvaluation )\n {\n // InternalArithmetic.g:193:2: (this_Definition_0= ruleDefinition | this_Evaluation_1= ruleEvaluation )\n int alt3=2;\n int LA3_0 = input.LA(1);\n\n if ( (LA3_0==14) ) {\n alt3=1;\n }\n else if ( ((LA3_0>=RULE_ID && LA3_0<=RULE_NUMBER)||LA3_0==15) ) {\n alt3=2;\n }\n else {\n NoViableAltException nvae =\n new NoViableAltException(\"\", 3, 0, input);\n\n throw nvae;\n }\n switch (alt3) {\n case 1 :\n // InternalArithmetic.g:194:3: this_Definition_0= ruleDefinition\n {\n\n \t\t\tnewCompositeNode(grammarAccess.getStatementAccess().getDefinitionParserRuleCall_0());\n \t\t\n pushFollow(FOLLOW_2);\n this_Definition_0=ruleDefinition();\n\n state._fsp--;\n\n\n \t\t\tcurrent = this_Definition_0;\n \t\t\tafterParserOrEnumRuleCall();\n \t\t\n\n }\n break;\n case 2 :\n // InternalArithmetic.g:203:3: this_Evaluation_1= ruleEvaluation\n {\n\n \t\t\tnewCompositeNode(grammarAccess.getStatementAccess().getEvaluationParserRuleCall_1());\n \t\t\n pushFollow(FOLLOW_2);\n this_Evaluation_1=ruleEvaluation();\n\n state._fsp--;\n\n\n \t\t\tcurrent = this_Evaluation_1;\n \t\t\tafterParserOrEnumRuleCall();\n \t\t\n\n }\n break;\n\n }\n\n\n }\n\n\n \tleaveRule();\n\n }\n\n catch (RecognitionException re) {\n recover(input,re);\n appendSkippedTokens();\n }\n finally {\n }\n return current;\n }", "title": "" }, { "docid": "cf30457e2e8c10042c084b074a636a91", "score": "0.5682863", "text": "public final void entryRuleOpAdd() throws RecognitionException {\n try {\n // ../org.eclipse.xtext.xbase.testlanguages.ui/src-gen/org/eclipse/xtext/xbase/testlanguages/ui/contentassist/antlr/internal/InternalXImportSectionTestLang.g:519:1: ( ruleOpAdd EOF )\n // ../org.eclipse.xtext.xbase.testlanguages.ui/src-gen/org/eclipse/xtext/xbase/testlanguages/ui/contentassist/antlr/internal/InternalXImportSectionTestLang.g:520:1: ruleOpAdd EOF\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getOpAddRule()); \n }\n pushFollow(FOLLOW_ruleOpAdd_in_entryRuleOpAdd1032);\n ruleOpAdd();\n\n state._fsp--;\n if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getOpAddRule()); \n }\n match(input,EOF,FOLLOW_EOF_in_entryRuleOpAdd1039); if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n }\n return ;\n }", "title": "" }, { "docid": "660dd8bb318313e0e9a75838f011264c", "score": "0.5681436", "text": "public final void entryRuleUnaryExpression() throws RecognitionException {\n try {\n // InternalCalculator.g:255:1: ( ruleUnaryExpression EOF )\n // InternalCalculator.g:256:1: ruleUnaryExpression EOF\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getUnaryExpressionRule()); \n }\n pushFollow(FOLLOW_1);\n ruleUnaryExpression();\n\n state._fsp--;\n if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getUnaryExpressionRule()); \n }\n match(input,EOF,FOLLOW_2); if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n }\n return ;\n }", "title": "" }, { "docid": "41842311f93a8bc9abd1b9b15995dd4a", "score": "0.5675451", "text": "public final void entryRuleequation() throws RecognitionException {\r\n try {\r\n // ../org.openmodelica.modelicaml.editor.xtext.modification.ui/src-gen/org/openmodelica/modelicaml/editor/xtext/modification/ui/contentassist/antlr/internal/InternalModification.g:873:1: ( ruleequation EOF )\r\n // ../org.openmodelica.modelicaml.editor.xtext.modification.ui/src-gen/org/openmodelica/modelicaml/editor/xtext/modification/ui/contentassist/antlr/internal/InternalModification.g:874:1: ruleequation EOF\r\n {\r\n before(grammarAccess.getEquationRule()); \r\n pushFollow(FOLLOW_ruleequation_in_entryRuleequation1799);\r\n ruleequation();\r\n\r\n state._fsp--;\r\n\r\n after(grammarAccess.getEquationRule()); \r\n match(input,EOF,FOLLOW_EOF_in_entryRuleequation1806); \r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "2979f59f423e7340a9d1dc83d6a82cfa", "score": "0.56599563", "text": "public final Object add_expr() throws RecognitionException {\n Object node = null;\n\n Token t=null;\n Object e1 = null;\n\n Object e2 = null;\n\n\n try {\n // /Users/blanchet/tum/nitpick/Kodkodi/src/Kodkodi.g:1275:31: (e1= mult_expr (t= ( PLUS | MINUS ) e2= mult_expr )* )\n // /Users/blanchet/tum/nitpick/Kodkodi/src/Kodkodi.g:1276:9: e1= mult_expr (t= ( PLUS | MINUS ) e2= mult_expr )*\n {\n pushFollow(FOLLOW_mult_expr_in_add_expr2262);\n e1=mult_expr();\n\n state._fsp--;\n\n node = e1; \n // /Users/blanchet/tum/nitpick/Kodkodi/src/Kodkodi.g:1277:9: (t= ( PLUS | MINUS ) e2= mult_expr )*\n loop38:\n do {\n int alt38=2;\n int LA38_0 = input.LA(1);\n\n if ( ((LA38_0>=PLUS && LA38_0<=MINUS)) ) {\n alt38=1;\n }\n\n\n switch (alt38) {\n \tcase 1 :\n \t // /Users/blanchet/tum/nitpick/Kodkodi/src/Kodkodi.g:1277:10: t= ( PLUS | MINUS ) e2= mult_expr\n \t {\n \t t=(Token)input.LT(1);\n \t if ( (input.LA(1)>=PLUS && input.LA(1)<=MINUS) ) {\n \t input.consume();\n \t state.errorRecovery=false;\n \t }\n \t else {\n \t MismatchedSetException mse = new MismatchedSetException(null,input);\n \t throw mse;\n \t }\n\n \t pushFollow(FOLLOW_mult_expr_in_add_expr2291);\n \t e2=mult_expr();\n\n \t state._fsp--;\n\n\n \t if (isExpression(node)) {\n \t try {\n \t node = E(t, node).compose(\n \t (t!=null?t.getType():0) == PLUS\n \t ? ExprOperator.UNION\n \t : ExprOperator.DIFFERENCE,\n \t E(t, e2));\n \t } catch (IllegalArgumentException except) {\n \t int arity1 = E(t, node).arity();\n \t int arity2 = E(t, e2).arity();\n \t if (arity1 == arity2) {\n \t panic();\n \t } else {\n \t huh(t, \"arity mismatch (\" + arity1 + \" vs. \" + arity2\n \t + \")\");\n \t }\n \t }\n \t } else if (isIntExpression(node)) {\n \t node = I(t, node).compose(\n \t (t!=null?t.getType():0) == PLUS\n \t ? IntOperator.PLUS\n \t : IntOperator.MINUS,\n \t I(t, e2));\n \t } else {\n \t huh(t, \"operands may not be formulas\");\n \t }\n \t \n\n \t }\n \t break;\n\n \tdefault :\n \t break loop38;\n }\n } while (true);\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n }\n return node;\n }", "title": "" }, { "docid": "e13522d270b87b6b7fb556b0c930cc11", "score": "0.5645918", "text": "public final EObject entryRuleDefinition() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleDefinition = null;\n\n\n try {\n // InternalArithmetic.g:215:51: (iv_ruleDefinition= ruleDefinition EOF )\n // InternalArithmetic.g:216:2: iv_ruleDefinition= ruleDefinition EOF\n {\n newCompositeNode(grammarAccess.getDefinitionRule()); \n pushFollow(FOLLOW_1);\n iv_ruleDefinition=ruleDefinition();\n\n state._fsp--;\n\n current =iv_ruleDefinition; \n match(input,EOF,FOLLOW_2); \n\n }\n\n }\n\n catch (RecognitionException re) {\n recover(input,re);\n appendSkippedTokens();\n }\n finally {\n }\n return current;\n }", "title": "" }, { "docid": "42ded96c6eed2f9ca05879afcfb00051", "score": "0.5630437", "text": "public final EObject ruleAddition() throws RecognitionException {\n EObject current = null;\n\n Token otherlv_2=null;\n Token otherlv_5=null;\n EObject this_Multiplication_0 = null;\n\n EObject lv_rhs_3_0 = null;\n\n EObject lv_rhs_6_0 = null;\n\n\n\n \tenterRule();\n\n try {\n // InternalThingML.g:6248:2: ( (this_Multiplication_0= ruleMultiplication ( ( () otherlv_2= '+' ( (lv_rhs_3_0= ruleMultiplication ) ) ) | ( () otherlv_5= '-' ( (lv_rhs_6_0= ruleMultiplication ) ) ) )* ) )\n // InternalThingML.g:6249:2: (this_Multiplication_0= ruleMultiplication ( ( () otherlv_2= '+' ( (lv_rhs_3_0= ruleMultiplication ) ) ) | ( () otherlv_5= '-' ( (lv_rhs_6_0= ruleMultiplication ) ) ) )* )\n {\n // InternalThingML.g:6249:2: (this_Multiplication_0= ruleMultiplication ( ( () otherlv_2= '+' ( (lv_rhs_3_0= ruleMultiplication ) ) ) | ( () otherlv_5= '-' ( (lv_rhs_6_0= ruleMultiplication ) ) ) )* )\n // InternalThingML.g:6250:3: this_Multiplication_0= ruleMultiplication ( ( () otherlv_2= '+' ( (lv_rhs_3_0= ruleMultiplication ) ) ) | ( () otherlv_5= '-' ( (lv_rhs_6_0= ruleMultiplication ) ) ) )*\n {\n\n \t\t\tnewCompositeNode(grammarAccess.getAdditionAccess().getMultiplicationParserRuleCall_0());\n \t\t\n pushFollow(FOLLOW_87);\n this_Multiplication_0=ruleMultiplication();\n\n state._fsp--;\n\n\n \t\t\tcurrent = this_Multiplication_0;\n \t\t\tafterParserOrEnumRuleCall();\n \t\t\n // InternalThingML.g:6258:3: ( ( () otherlv_2= '+' ( (lv_rhs_3_0= ruleMultiplication ) ) ) | ( () otherlv_5= '-' ( (lv_rhs_6_0= ruleMultiplication ) ) ) )*\n loop123:\n do {\n int alt123=3;\n int LA123_0 = input.LA(1);\n\n if ( (LA123_0==97) ) {\n alt123=1;\n }\n else if ( (LA123_0==98) ) {\n alt123=2;\n }\n\n\n switch (alt123) {\n \tcase 1 :\n \t // InternalThingML.g:6259:4: ( () otherlv_2= '+' ( (lv_rhs_3_0= ruleMultiplication ) ) )\n \t {\n \t // InternalThingML.g:6259:4: ( () otherlv_2= '+' ( (lv_rhs_3_0= ruleMultiplication ) ) )\n \t // InternalThingML.g:6260:5: () otherlv_2= '+' ( (lv_rhs_3_0= ruleMultiplication ) )\n \t {\n \t // InternalThingML.g:6260:5: ()\n \t // InternalThingML.g:6261:6: \n \t {\n\n \t \t\t\t\t\t\tcurrent = forceCreateModelElementAndSet(\n \t \t\t\t\t\t\t\tgrammarAccess.getAdditionAccess().getPlusExpressionLhsAction_1_0_0(),\n \t \t\t\t\t\t\t\tcurrent);\n \t \t\t\t\t\t\n\n \t }\n\n \t otherlv_2=(Token)match(input,97,FOLLOW_22); \n\n \t \t\t\t\t\tnewLeafNode(otherlv_2, grammarAccess.getAdditionAccess().getPlusSignKeyword_1_0_1());\n \t \t\t\t\t\n \t // InternalThingML.g:6271:5: ( (lv_rhs_3_0= ruleMultiplication ) )\n \t // InternalThingML.g:6272:6: (lv_rhs_3_0= ruleMultiplication )\n \t {\n \t // InternalThingML.g:6272:6: (lv_rhs_3_0= ruleMultiplication )\n \t // InternalThingML.g:6273:7: lv_rhs_3_0= ruleMultiplication\n \t {\n\n \t \t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getAdditionAccess().getRhsMultiplicationParserRuleCall_1_0_2_0());\n \t \t\t\t\t\t\t\n \t pushFollow(FOLLOW_87);\n \t lv_rhs_3_0=ruleMultiplication();\n\n \t state._fsp--;\n\n\n \t \t\t\t\t\t\t\tif (current==null) {\n \t \t\t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getAdditionRule());\n \t \t\t\t\t\t\t\t}\n \t \t\t\t\t\t\t\tset(\n \t \t\t\t\t\t\t\t\tcurrent,\n \t \t\t\t\t\t\t\t\t\"rhs\",\n \t \t\t\t\t\t\t\t\tlv_rhs_3_0,\n \t \t\t\t\t\t\t\t\t\"org.thingml.xtext.ThingML.Multiplication\");\n \t \t\t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t \t\t\t\t\t\t\n\n \t }\n\n\n \t }\n\n\n \t }\n\n\n \t }\n \t break;\n \tcase 2 :\n \t // InternalThingML.g:6292:4: ( () otherlv_5= '-' ( (lv_rhs_6_0= ruleMultiplication ) ) )\n \t {\n \t // InternalThingML.g:6292:4: ( () otherlv_5= '-' ( (lv_rhs_6_0= ruleMultiplication ) ) )\n \t // InternalThingML.g:6293:5: () otherlv_5= '-' ( (lv_rhs_6_0= ruleMultiplication ) )\n \t {\n \t // InternalThingML.g:6293:5: ()\n \t // InternalThingML.g:6294:6: \n \t {\n\n \t \t\t\t\t\t\tcurrent = forceCreateModelElementAndSet(\n \t \t\t\t\t\t\t\tgrammarAccess.getAdditionAccess().getMinusExpressionLhsAction_1_1_0(),\n \t \t\t\t\t\t\t\tcurrent);\n \t \t\t\t\t\t\n\n \t }\n\n \t otherlv_5=(Token)match(input,98,FOLLOW_22); \n\n \t \t\t\t\t\tnewLeafNode(otherlv_5, grammarAccess.getAdditionAccess().getHyphenMinusKeyword_1_1_1());\n \t \t\t\t\t\n \t // InternalThingML.g:6304:5: ( (lv_rhs_6_0= ruleMultiplication ) )\n \t // InternalThingML.g:6305:6: (lv_rhs_6_0= ruleMultiplication )\n \t {\n \t // InternalThingML.g:6305:6: (lv_rhs_6_0= ruleMultiplication )\n \t // InternalThingML.g:6306:7: lv_rhs_6_0= ruleMultiplication\n \t {\n\n \t \t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getAdditionAccess().getRhsMultiplicationParserRuleCall_1_1_2_0());\n \t \t\t\t\t\t\t\n \t pushFollow(FOLLOW_87);\n \t lv_rhs_6_0=ruleMultiplication();\n\n \t state._fsp--;\n\n\n \t \t\t\t\t\t\t\tif (current==null) {\n \t \t\t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getAdditionRule());\n \t \t\t\t\t\t\t\t}\n \t \t\t\t\t\t\t\tset(\n \t \t\t\t\t\t\t\t\tcurrent,\n \t \t\t\t\t\t\t\t\t\"rhs\",\n \t \t\t\t\t\t\t\t\tlv_rhs_6_0,\n \t \t\t\t\t\t\t\t\t\"org.thingml.xtext.ThingML.Multiplication\");\n \t \t\t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t \t\t\t\t\t\t\n\n \t }\n\n\n \t }\n\n\n \t }\n\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop123;\n }\n } while (true);\n\n\n }\n\n\n }\n\n\n \tleaveRule();\n\n }\n\n catch (RecognitionException re) {\n recover(input,re);\n appendSkippedTokens();\n }\n finally {\n }\n return current;\n }", "title": "" }, { "docid": "b7df9c7874dff053313c4a9ea99d7487", "score": "0.56176496", "text": "ArithmeticExpression getLhs();", "title": "" }, { "docid": "0970a23fd415cca7dde1e0f57af64964", "score": "0.56102884", "text": "public final EObject entryRuleOperation() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleOperation = null;\n\n\n try {\n // InternalDsl.g:2172:50: (iv_ruleOperation= ruleOperation EOF )\n // InternalDsl.g:2173:2: iv_ruleOperation= ruleOperation EOF\n {\n newCompositeNode(grammarAccess.getOperationRule()); \n pushFollow(FOLLOW_1);\n iv_ruleOperation=ruleOperation();\n\n state._fsp--;\n\n current =iv_ruleOperation; \n match(input,EOF,FOLLOW_2); \n\n }\n\n }\n\n catch (RecognitionException re) {\n recover(input,re);\n appendSkippedTokens();\n }\n finally {\n }\n return current;\n }", "title": "" }, { "docid": "3cd1c4a5841ef20caed2683f6b564238", "score": "0.55928826", "text": "ArithmeticExpression createArithmeticExpression();", "title": "" }, { "docid": "7026519236f357b0e914e4b7291b9f62", "score": "0.5590318", "text": "static Rule Expression() {\n return SignedTerm.seq(SumOp);\n }", "title": "" }, { "docid": "d707eb06cc73f62186a96bb62f3c1db3", "score": "0.55858946", "text": "public final void rule__RecExpression__Group_0_1__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalAle.g:4413:1: ( ( ruleexpression ) )\n // InternalAle.g:4414:1: ( ruleexpression )\n {\n // InternalAle.g:4414:1: ( ruleexpression )\n // InternalAle.g:4415:2: ruleexpression\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getRecExpressionAccess().getExpressionParserRuleCall_0_1_1()); \n }\n pushFollow(FOLLOW_2);\n ruleexpression();\n\n state._fsp--;\n if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getRecExpressionAccess().getExpressionParserRuleCall_0_1_1()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "7011d611abd816b52e7e453828bef3f4", "score": "0.558404", "text": "public final EObject entryRuleAndExpr() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleAndExpr = null;\n\n\n try {\n // ../com.rockwellcollins.atc.resolute/src-gen/com/rockwellcollins/atc/resolute/parser/antlr/internal/InternalResolute.g:1464:2: (iv_ruleAndExpr= ruleAndExpr EOF )\n // ../com.rockwellcollins.atc.resolute/src-gen/com/rockwellcollins/atc/resolute/parser/antlr/internal/InternalResolute.g:1465:2: iv_ruleAndExpr= ruleAndExpr EOF\n {\n if ( state.backtracking==0 ) {\n newCompositeNode(grammarAccess.getAndExprRule()); \n }\n pushFollow(FOLLOW_ruleAndExpr_in_entryRuleAndExpr3270);\n iv_ruleAndExpr=ruleAndExpr();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n current =iv_ruleAndExpr; \n }\n match(input,EOF,FOLLOW_EOF_in_entryRuleAndExpr3280); if (state.failed) return current;\n\n }\n\n }\n \n catch (RecognitionException re) { \n recover(input,re); \n appendSkippedTokens();\n } \n finally {\n }\n return current;\n }", "title": "" }, { "docid": "017705919d57517a245cb8d716264561", "score": "0.5582661", "text": "public final EObject entryRuleFunction() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleFunction = null;\n\n\n try {\n // InternalThingML.g:1121:49: (iv_ruleFunction= ruleFunction EOF )\n // InternalThingML.g:1122:2: iv_ruleFunction= ruleFunction EOF\n {\n newCompositeNode(grammarAccess.getFunctionRule()); \n pushFollow(FOLLOW_1);\n iv_ruleFunction=ruleFunction();\n\n state._fsp--;\n\n current =iv_ruleFunction; \n match(input,EOF,FOLLOW_2); \n\n }\n\n }\n\n catch (RecognitionException re) {\n recover(input,re);\n appendSkippedTokens();\n }\n finally {\n }\n return current;\n }", "title": "" }, { "docid": "d77316722e0ef4fa4903b71f89436294", "score": "0.55717504", "text": "public final EObject entryRuleexpression_list() throws RecognitionException {\r\n EObject current = null;\r\n\r\n EObject iv_ruleexpression_list = null;\r\n\r\n\r\n try {\r\n // ../org.openmodelica.modelicaml.editor.xtext.valuebinding.provider/src-gen/org/openmodelica/modelicaml/editor/xtext/valuebinding/parser/antlr/internal/InternalProvider.g:1629:2: (iv_ruleexpression_list= ruleexpression_list EOF )\r\n // ../org.openmodelica.modelicaml.editor.xtext.valuebinding.provider/src-gen/org/openmodelica/modelicaml/editor/xtext/valuebinding/parser/antlr/internal/InternalProvider.g:1630:2: iv_ruleexpression_list= ruleexpression_list EOF\r\n {\r\n newCompositeNode(grammarAccess.getExpression_listRule()); \r\n pushFollow(FOLLOW_ruleexpression_list_in_entryRuleexpression_list3218);\r\n iv_ruleexpression_list=ruleexpression_list();\r\n\r\n state._fsp--;\r\n\r\n current =iv_ruleexpression_list; \r\n match(input,EOF,FOLLOW_EOF_in_entryRuleexpression_list3228); \r\n\r\n }\r\n\r\n }\r\n \r\n catch (RecognitionException re) { \r\n recover(input,re); \r\n appendSkippedTokens();\r\n } \r\n finally {\r\n }\r\n return current;\r\n }", "title": "" }, { "docid": "282daff9599d2516588088fb1ee5a5f8", "score": "0.5565122", "text": "public final EObject entryRuleAndExpression() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleAndExpression = null;\n\n\n try {\n // ../com.dexels.navajo.dsl.expression/src-gen/com/dexels/navajo/dsl/expression/parser/antlr/internal/InternalNavajoExpression.g:602:2: (iv_ruleAndExpression= ruleAndExpression EOF )\n // ../com.dexels.navajo.dsl.expression/src-gen/com/dexels/navajo/dsl/expression/parser/antlr/internal/InternalNavajoExpression.g:603:2: iv_ruleAndExpression= ruleAndExpression EOF\n {\n newCompositeNode(grammarAccess.getAndExpressionRule()); \n pushFollow(FOLLOW_ruleAndExpression_in_entryRuleAndExpression1172);\n iv_ruleAndExpression=ruleAndExpression();\n\n state._fsp--;\n\n current =iv_ruleAndExpression; \n match(input,EOF,FOLLOW_EOF_in_entryRuleAndExpression1182); \n\n }\n\n }\n \n catch (RecognitionException re) { \n recover(input,re); \n appendSkippedTokens();\n } \n finally {\n }\n return current;\n }", "title": "" }, { "docid": "e7113dab58313e38ff5027a42fb05bea", "score": "0.5551389", "text": "public final void entryRuleEvaluation() throws RecognitionException {\n try {\n // InternalCalculator.g:155:1: ( ruleEvaluation EOF )\n // InternalCalculator.g:156:1: ruleEvaluation EOF\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getEvaluationRule()); \n }\n pushFollow(FOLLOW_1);\n ruleEvaluation();\n\n state._fsp--;\n if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getEvaluationRule()); \n }\n match(input,EOF,FOLLOW_2); if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n }\n return ;\n }", "title": "" }, { "docid": "36679de33fa1b5ce1053151f8684668f", "score": "0.5545109", "text": "public final void ruleAddition() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../../Client/com.netxforge.netxscript.ui/src-gen/com/netxforge/ui/contentassist/antlr/internal/InternalNetxscript.g:554:2: ( ( ( rule__Addition__Group__0 ) ) )\n // ../../Client/com.netxforge.netxscript.ui/src-gen/com/netxforge/ui/contentassist/antlr/internal/InternalNetxscript.g:555:1: ( ( rule__Addition__Group__0 ) )\n {\n // ../../Client/com.netxforge.netxscript.ui/src-gen/com/netxforge/ui/contentassist/antlr/internal/InternalNetxscript.g:555:1: ( ( rule__Addition__Group__0 ) )\n // ../../Client/com.netxforge.netxscript.ui/src-gen/com/netxforge/ui/contentassist/antlr/internal/InternalNetxscript.g:556:1: ( rule__Addition__Group__0 )\n {\n before(grammarAccess.getAdditionAccess().getGroup()); \n // ../../Client/com.netxforge.netxscript.ui/src-gen/com/netxforge/ui/contentassist/antlr/internal/InternalNetxscript.g:557:1: ( rule__Addition__Group__0 )\n // ../../Client/com.netxforge.netxscript.ui/src-gen/com/netxforge/ui/contentassist/antlr/internal/InternalNetxscript.g:557:2: rule__Addition__Group__0\n {\n pushFollow(FOLLOW_rule__Addition__Group__0_in_ruleAddition1117);\n rule__Addition__Group__0();\n\n state._fsp--;\n\n\n }\n\n after(grammarAccess.getAdditionAccess().getGroup()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "b0a9873c8ef93f418ac33cd588b43259", "score": "0.55330217", "text": "public final void rulearithmetic_expression() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.openmodelica.modelicaml.editor.xtext.modification.ui/src-gen/org/openmodelica/modelicaml/editor/xtext/modification/ui/contentassist/antlr/internal/InternalModification.g:1585:2: ( ( ( rule__Arithmetic_expression__Group__0 ) ) )\r\n // ../org.openmodelica.modelicaml.editor.xtext.modification.ui/src-gen/org/openmodelica/modelicaml/editor/xtext/modification/ui/contentassist/antlr/internal/InternalModification.g:1586:1: ( ( rule__Arithmetic_expression__Group__0 ) )\r\n {\r\n // ../org.openmodelica.modelicaml.editor.xtext.modification.ui/src-gen/org/openmodelica/modelicaml/editor/xtext/modification/ui/contentassist/antlr/internal/InternalModification.g:1586:1: ( ( rule__Arithmetic_expression__Group__0 ) )\r\n // ../org.openmodelica.modelicaml.editor.xtext.modification.ui/src-gen/org/openmodelica/modelicaml/editor/xtext/modification/ui/contentassist/antlr/internal/InternalModification.g:1587:1: ( rule__Arithmetic_expression__Group__0 )\r\n {\r\n before(grammarAccess.getArithmetic_expressionAccess().getGroup()); \r\n // ../org.openmodelica.modelicaml.editor.xtext.modification.ui/src-gen/org/openmodelica/modelicaml/editor/xtext/modification/ui/contentassist/antlr/internal/InternalModification.g:1588:1: ( rule__Arithmetic_expression__Group__0 )\r\n // ../org.openmodelica.modelicaml.editor.xtext.modification.ui/src-gen/org/openmodelica/modelicaml/editor/xtext/modification/ui/contentassist/antlr/internal/InternalModification.g:1588:2: rule__Arithmetic_expression__Group__0\r\n {\r\n pushFollow(FOLLOW_rule__Arithmetic_expression__Group__0_in_rulearithmetic_expression3332);\r\n rule__Arithmetic_expression__Group__0();\r\n\r\n state._fsp--;\r\n\r\n\r\n }\r\n\r\n after(grammarAccess.getArithmetic_expressionAccess().getGroup()); \r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "378c0a10c8cc81e8aae1661f6b3dc2c6", "score": "0.5532597", "text": "public final EObject ruleAddition() throws RecognitionException {\n EObject current = null;\n\n Token otherlv_2=null;\n Token otherlv_4=null;\n EObject this_Multiplication_0 = null;\n\n EObject lv_right_5_0 = null;\n\n\n\n \tenterRule();\n\n try {\n // InternalArithmetic.g:452:2: ( (this_Multiplication_0= ruleMultiplication ( ( ( () otherlv_2= '+' ) | ( () otherlv_4= '-' ) ) ( (lv_right_5_0= ruleMultiplication ) ) )* ) )\n // InternalArithmetic.g:453:2: (this_Multiplication_0= ruleMultiplication ( ( ( () otherlv_2= '+' ) | ( () otherlv_4= '-' ) ) ( (lv_right_5_0= ruleMultiplication ) ) )* )\n {\n // InternalArithmetic.g:453:2: (this_Multiplication_0= ruleMultiplication ( ( ( () otherlv_2= '+' ) | ( () otherlv_4= '-' ) ) ( (lv_right_5_0= ruleMultiplication ) ) )* )\n // InternalArithmetic.g:454:3: this_Multiplication_0= ruleMultiplication ( ( ( () otherlv_2= '+' ) | ( () otherlv_4= '-' ) ) ( (lv_right_5_0= ruleMultiplication ) ) )*\n {\n\n \t\t\tnewCompositeNode(grammarAccess.getAdditionAccess().getMultiplicationParserRuleCall_0());\n \t\t\n pushFollow(FOLLOW_11);\n this_Multiplication_0=ruleMultiplication();\n\n state._fsp--;\n\n\n \t\t\tcurrent = this_Multiplication_0;\n \t\t\tafterParserOrEnumRuleCall();\n \t\t\n // InternalArithmetic.g:462:3: ( ( ( () otherlv_2= '+' ) | ( () otherlv_4= '-' ) ) ( (lv_right_5_0= ruleMultiplication ) ) )*\n loop7:\n do {\n int alt7=2;\n int LA7_0 = input.LA(1);\n\n if ( ((LA7_0>=20 && LA7_0<=21)) ) {\n alt7=1;\n }\n\n\n switch (alt7) {\n \tcase 1 :\n \t // InternalArithmetic.g:463:4: ( ( () otherlv_2= '+' ) | ( () otherlv_4= '-' ) ) ( (lv_right_5_0= ruleMultiplication ) )\n \t {\n \t // InternalArithmetic.g:463:4: ( ( () otherlv_2= '+' ) | ( () otherlv_4= '-' ) )\n \t int alt6=2;\n \t int LA6_0 = input.LA(1);\n\n \t if ( (LA6_0==20) ) {\n \t alt6=1;\n \t }\n \t else if ( (LA6_0==21) ) {\n \t alt6=2;\n \t }\n \t else {\n \t NoViableAltException nvae =\n \t new NoViableAltException(\"\", 6, 0, input);\n\n \t throw nvae;\n \t }\n \t switch (alt6) {\n \t case 1 :\n \t // InternalArithmetic.g:464:5: ( () otherlv_2= '+' )\n \t {\n \t // InternalArithmetic.g:464:5: ( () otherlv_2= '+' )\n \t // InternalArithmetic.g:465:6: () otherlv_2= '+'\n \t {\n \t // InternalArithmetic.g:465:6: ()\n \t // InternalArithmetic.g:466:7: \n \t {\n\n \t \t\t\t\t\t\t\tcurrent = forceCreateModelElementAndSet(\n \t \t\t\t\t\t\t\t\tgrammarAccess.getAdditionAccess().getPlusLeftAction_1_0_0_0(),\n \t \t\t\t\t\t\t\t\tcurrent);\n \t \t\t\t\t\t\t\n\n \t }\n\n \t otherlv_2=(Token)match(input,20,FOLLOW_9); \n\n \t \t\t\t\t\t\tnewLeafNode(otherlv_2, grammarAccess.getAdditionAccess().getPlusSignKeyword_1_0_0_1());\n \t \t\t\t\t\t\n\n \t }\n\n\n \t }\n \t break;\n \t case 2 :\n \t // InternalArithmetic.g:478:5: ( () otherlv_4= '-' )\n \t {\n \t // InternalArithmetic.g:478:5: ( () otherlv_4= '-' )\n \t // InternalArithmetic.g:479:6: () otherlv_4= '-'\n \t {\n \t // InternalArithmetic.g:479:6: ()\n \t // InternalArithmetic.g:480:7: \n \t {\n\n \t \t\t\t\t\t\t\tcurrent = forceCreateModelElementAndSet(\n \t \t\t\t\t\t\t\t\tgrammarAccess.getAdditionAccess().getMinusLeftAction_1_0_1_0(),\n \t \t\t\t\t\t\t\t\tcurrent);\n \t \t\t\t\t\t\t\n\n \t }\n\n \t otherlv_4=(Token)match(input,21,FOLLOW_9); \n\n \t \t\t\t\t\t\tnewLeafNode(otherlv_4, grammarAccess.getAdditionAccess().getHyphenMinusKeyword_1_0_1_1());\n \t \t\t\t\t\t\n\n \t }\n\n\n \t }\n \t break;\n\n \t }\n\n \t // InternalArithmetic.g:492:4: ( (lv_right_5_0= ruleMultiplication ) )\n \t // InternalArithmetic.g:493:5: (lv_right_5_0= ruleMultiplication )\n \t {\n \t // InternalArithmetic.g:493:5: (lv_right_5_0= ruleMultiplication )\n \t // InternalArithmetic.g:494:6: lv_right_5_0= ruleMultiplication\n \t {\n\n \t \t\t\t\t\t\tnewCompositeNode(grammarAccess.getAdditionAccess().getRightMultiplicationParserRuleCall_1_1_0());\n \t \t\t\t\t\t\n \t pushFollow(FOLLOW_11);\n \t lv_right_5_0=ruleMultiplication();\n\n \t state._fsp--;\n\n\n \t \t\t\t\t\t\tif (current==null) {\n \t \t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getAdditionRule());\n \t \t\t\t\t\t\t}\n \t \t\t\t\t\t\tset(\n \t \t\t\t\t\t\t\tcurrent,\n \t \t\t\t\t\t\t\t\"right\",\n \t \t\t\t\t\t\t\tlv_right_5_0,\n \t \t\t\t\t\t\t\t\"org.xtext.arithmetic.Arithmetic.Multiplication\");\n \t \t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t \t\t\t\t\t\n\n \t }\n\n\n \t }\n\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop7;\n }\n } while (true);\n\n\n }\n\n\n }\n\n\n \tleaveRule();\n\n }\n\n catch (RecognitionException re) {\n recover(input,re);\n appendSkippedTokens();\n }\n finally {\n }\n return current;\n }", "title": "" }, { "docid": "375314e786681bad5b2ac759d46a5e15", "score": "0.5531241", "text": "public final EObject ruleComparaison() throws RecognitionException {\n EObject current = null;\n\n Token otherlv_2=null;\n Token otherlv_5=null;\n Token otherlv_8=null;\n Token otherlv_11=null;\n EObject this_Addition_0 = null;\n\n EObject lv_rhs_3_0 = null;\n\n EObject lv_rhs_6_0 = null;\n\n EObject lv_rhs_9_0 = null;\n\n EObject lv_rhs_12_0 = null;\n\n\n\n \tenterRule();\n\n try {\n // InternalThingML.g:6088:2: ( (this_Addition_0= ruleAddition ( ( () otherlv_2= '>' ( (lv_rhs_3_0= ruleAddition ) ) ) | ( () otherlv_5= '<' ( (lv_rhs_6_0= ruleAddition ) ) ) | ( () otherlv_8= '>=' ( (lv_rhs_9_0= ruleAddition ) ) ) | ( () otherlv_11= '<=' ( (lv_rhs_12_0= ruleAddition ) ) ) )* ) )\n // InternalThingML.g:6089:2: (this_Addition_0= ruleAddition ( ( () otherlv_2= '>' ( (lv_rhs_3_0= ruleAddition ) ) ) | ( () otherlv_5= '<' ( (lv_rhs_6_0= ruleAddition ) ) ) | ( () otherlv_8= '>=' ( (lv_rhs_9_0= ruleAddition ) ) ) | ( () otherlv_11= '<=' ( (lv_rhs_12_0= ruleAddition ) ) ) )* )\n {\n // InternalThingML.g:6089:2: (this_Addition_0= ruleAddition ( ( () otherlv_2= '>' ( (lv_rhs_3_0= ruleAddition ) ) ) | ( () otherlv_5= '<' ( (lv_rhs_6_0= ruleAddition ) ) ) | ( () otherlv_8= '>=' ( (lv_rhs_9_0= ruleAddition ) ) ) | ( () otherlv_11= '<=' ( (lv_rhs_12_0= ruleAddition ) ) ) )* )\n // InternalThingML.g:6090:3: this_Addition_0= ruleAddition ( ( () otherlv_2= '>' ( (lv_rhs_3_0= ruleAddition ) ) ) | ( () otherlv_5= '<' ( (lv_rhs_6_0= ruleAddition ) ) ) | ( () otherlv_8= '>=' ( (lv_rhs_9_0= ruleAddition ) ) ) | ( () otherlv_11= '<=' ( (lv_rhs_12_0= ruleAddition ) ) ) )*\n {\n\n \t\t\tnewCompositeNode(grammarAccess.getComparaisonAccess().getAdditionParserRuleCall_0());\n \t\t\n pushFollow(FOLLOW_86);\n this_Addition_0=ruleAddition();\n\n state._fsp--;\n\n\n \t\t\tcurrent = this_Addition_0;\n \t\t\tafterParserOrEnumRuleCall();\n \t\t\n // InternalThingML.g:6098:3: ( ( () otherlv_2= '>' ( (lv_rhs_3_0= ruleAddition ) ) ) | ( () otherlv_5= '<' ( (lv_rhs_6_0= ruleAddition ) ) ) | ( () otherlv_8= '>=' ( (lv_rhs_9_0= ruleAddition ) ) ) | ( () otherlv_11= '<=' ( (lv_rhs_12_0= ruleAddition ) ) ) )*\n loop122:\n do {\n int alt122=5;\n switch ( input.LA(1) ) {\n case 19:\n {\n alt122=1;\n }\n break;\n case 18:\n {\n alt122=2;\n }\n break;\n case 95:\n {\n alt122=3;\n }\n break;\n case 96:\n {\n alt122=4;\n }\n break;\n\n }\n\n switch (alt122) {\n \tcase 1 :\n \t // InternalThingML.g:6099:4: ( () otherlv_2= '>' ( (lv_rhs_3_0= ruleAddition ) ) )\n \t {\n \t // InternalThingML.g:6099:4: ( () otherlv_2= '>' ( (lv_rhs_3_0= ruleAddition ) ) )\n \t // InternalThingML.g:6100:5: () otherlv_2= '>' ( (lv_rhs_3_0= ruleAddition ) )\n \t {\n \t // InternalThingML.g:6100:5: ()\n \t // InternalThingML.g:6101:6: \n \t {\n\n \t \t\t\t\t\t\tcurrent = forceCreateModelElementAndSet(\n \t \t\t\t\t\t\t\tgrammarAccess.getComparaisonAccess().getGreaterExpressionLhsAction_1_0_0(),\n \t \t\t\t\t\t\t\tcurrent);\n \t \t\t\t\t\t\n\n \t }\n\n \t otherlv_2=(Token)match(input,19,FOLLOW_22); \n\n \t \t\t\t\t\tnewLeafNode(otherlv_2, grammarAccess.getComparaisonAccess().getGreaterThanSignKeyword_1_0_1());\n \t \t\t\t\t\n \t // InternalThingML.g:6111:5: ( (lv_rhs_3_0= ruleAddition ) )\n \t // InternalThingML.g:6112:6: (lv_rhs_3_0= ruleAddition )\n \t {\n \t // InternalThingML.g:6112:6: (lv_rhs_3_0= ruleAddition )\n \t // InternalThingML.g:6113:7: lv_rhs_3_0= ruleAddition\n \t {\n\n \t \t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getComparaisonAccess().getRhsAdditionParserRuleCall_1_0_2_0());\n \t \t\t\t\t\t\t\n \t pushFollow(FOLLOW_86);\n \t lv_rhs_3_0=ruleAddition();\n\n \t state._fsp--;\n\n\n \t \t\t\t\t\t\t\tif (current==null) {\n \t \t\t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getComparaisonRule());\n \t \t\t\t\t\t\t\t}\n \t \t\t\t\t\t\t\tset(\n \t \t\t\t\t\t\t\t\tcurrent,\n \t \t\t\t\t\t\t\t\t\"rhs\",\n \t \t\t\t\t\t\t\t\tlv_rhs_3_0,\n \t \t\t\t\t\t\t\t\t\"org.thingml.xtext.ThingML.Addition\");\n \t \t\t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t \t\t\t\t\t\t\n\n \t }\n\n\n \t }\n\n\n \t }\n\n\n \t }\n \t break;\n \tcase 2 :\n \t // InternalThingML.g:6132:4: ( () otherlv_5= '<' ( (lv_rhs_6_0= ruleAddition ) ) )\n \t {\n \t // InternalThingML.g:6132:4: ( () otherlv_5= '<' ( (lv_rhs_6_0= ruleAddition ) ) )\n \t // InternalThingML.g:6133:5: () otherlv_5= '<' ( (lv_rhs_6_0= ruleAddition ) )\n \t {\n \t // InternalThingML.g:6133:5: ()\n \t // InternalThingML.g:6134:6: \n \t {\n\n \t \t\t\t\t\t\tcurrent = forceCreateModelElementAndSet(\n \t \t\t\t\t\t\t\tgrammarAccess.getComparaisonAccess().getLowerExpressionLhsAction_1_1_0(),\n \t \t\t\t\t\t\t\tcurrent);\n \t \t\t\t\t\t\n\n \t }\n\n \t otherlv_5=(Token)match(input,18,FOLLOW_22); \n\n \t \t\t\t\t\tnewLeafNode(otherlv_5, grammarAccess.getComparaisonAccess().getLessThanSignKeyword_1_1_1());\n \t \t\t\t\t\n \t // InternalThingML.g:6144:5: ( (lv_rhs_6_0= ruleAddition ) )\n \t // InternalThingML.g:6145:6: (lv_rhs_6_0= ruleAddition )\n \t {\n \t // InternalThingML.g:6145:6: (lv_rhs_6_0= ruleAddition )\n \t // InternalThingML.g:6146:7: lv_rhs_6_0= ruleAddition\n \t {\n\n \t \t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getComparaisonAccess().getRhsAdditionParserRuleCall_1_1_2_0());\n \t \t\t\t\t\t\t\n \t pushFollow(FOLLOW_86);\n \t lv_rhs_6_0=ruleAddition();\n\n \t state._fsp--;\n\n\n \t \t\t\t\t\t\t\tif (current==null) {\n \t \t\t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getComparaisonRule());\n \t \t\t\t\t\t\t\t}\n \t \t\t\t\t\t\t\tset(\n \t \t\t\t\t\t\t\t\tcurrent,\n \t \t\t\t\t\t\t\t\t\"rhs\",\n \t \t\t\t\t\t\t\t\tlv_rhs_6_0,\n \t \t\t\t\t\t\t\t\t\"org.thingml.xtext.ThingML.Addition\");\n \t \t\t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t \t\t\t\t\t\t\n\n \t }\n\n\n \t }\n\n\n \t }\n\n\n \t }\n \t break;\n \tcase 3 :\n \t // InternalThingML.g:6165:4: ( () otherlv_8= '>=' ( (lv_rhs_9_0= ruleAddition ) ) )\n \t {\n \t // InternalThingML.g:6165:4: ( () otherlv_8= '>=' ( (lv_rhs_9_0= ruleAddition ) ) )\n \t // InternalThingML.g:6166:5: () otherlv_8= '>=' ( (lv_rhs_9_0= ruleAddition ) )\n \t {\n \t // InternalThingML.g:6166:5: ()\n \t // InternalThingML.g:6167:6: \n \t {\n\n \t \t\t\t\t\t\tcurrent = forceCreateModelElementAndSet(\n \t \t\t\t\t\t\t\tgrammarAccess.getComparaisonAccess().getGreaterOrEqualExpressionLhsAction_1_2_0(),\n \t \t\t\t\t\t\t\tcurrent);\n \t \t\t\t\t\t\n\n \t }\n\n \t otherlv_8=(Token)match(input,95,FOLLOW_22); \n\n \t \t\t\t\t\tnewLeafNode(otherlv_8, grammarAccess.getComparaisonAccess().getGreaterThanSignEqualsSignKeyword_1_2_1());\n \t \t\t\t\t\n \t // InternalThingML.g:6177:5: ( (lv_rhs_9_0= ruleAddition ) )\n \t // InternalThingML.g:6178:6: (lv_rhs_9_0= ruleAddition )\n \t {\n \t // InternalThingML.g:6178:6: (lv_rhs_9_0= ruleAddition )\n \t // InternalThingML.g:6179:7: lv_rhs_9_0= ruleAddition\n \t {\n\n \t \t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getComparaisonAccess().getRhsAdditionParserRuleCall_1_2_2_0());\n \t \t\t\t\t\t\t\n \t pushFollow(FOLLOW_86);\n \t lv_rhs_9_0=ruleAddition();\n\n \t state._fsp--;\n\n\n \t \t\t\t\t\t\t\tif (current==null) {\n \t \t\t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getComparaisonRule());\n \t \t\t\t\t\t\t\t}\n \t \t\t\t\t\t\t\tset(\n \t \t\t\t\t\t\t\t\tcurrent,\n \t \t\t\t\t\t\t\t\t\"rhs\",\n \t \t\t\t\t\t\t\t\tlv_rhs_9_0,\n \t \t\t\t\t\t\t\t\t\"org.thingml.xtext.ThingML.Addition\");\n \t \t\t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t \t\t\t\t\t\t\n\n \t }\n\n\n \t }\n\n\n \t }\n\n\n \t }\n \t break;\n \tcase 4 :\n \t // InternalThingML.g:6198:4: ( () otherlv_11= '<=' ( (lv_rhs_12_0= ruleAddition ) ) )\n \t {\n \t // InternalThingML.g:6198:4: ( () otherlv_11= '<=' ( (lv_rhs_12_0= ruleAddition ) ) )\n \t // InternalThingML.g:6199:5: () otherlv_11= '<=' ( (lv_rhs_12_0= ruleAddition ) )\n \t {\n \t // InternalThingML.g:6199:5: ()\n \t // InternalThingML.g:6200:6: \n \t {\n\n \t \t\t\t\t\t\tcurrent = forceCreateModelElementAndSet(\n \t \t\t\t\t\t\t\tgrammarAccess.getComparaisonAccess().getLowerOrEqualExpressionLhsAction_1_3_0(),\n \t \t\t\t\t\t\t\tcurrent);\n \t \t\t\t\t\t\n\n \t }\n\n \t otherlv_11=(Token)match(input,96,FOLLOW_22); \n\n \t \t\t\t\t\tnewLeafNode(otherlv_11, grammarAccess.getComparaisonAccess().getLessThanSignEqualsSignKeyword_1_3_1());\n \t \t\t\t\t\n \t // InternalThingML.g:6210:5: ( (lv_rhs_12_0= ruleAddition ) )\n \t // InternalThingML.g:6211:6: (lv_rhs_12_0= ruleAddition )\n \t {\n \t // InternalThingML.g:6211:6: (lv_rhs_12_0= ruleAddition )\n \t // InternalThingML.g:6212:7: lv_rhs_12_0= ruleAddition\n \t {\n\n \t \t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getComparaisonAccess().getRhsAdditionParserRuleCall_1_3_2_0());\n \t \t\t\t\t\t\t\n \t pushFollow(FOLLOW_86);\n \t lv_rhs_12_0=ruleAddition();\n\n \t state._fsp--;\n\n\n \t \t\t\t\t\t\t\tif (current==null) {\n \t \t\t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getComparaisonRule());\n \t \t\t\t\t\t\t\t}\n \t \t\t\t\t\t\t\tset(\n \t \t\t\t\t\t\t\t\tcurrent,\n \t \t\t\t\t\t\t\t\t\"rhs\",\n \t \t\t\t\t\t\t\t\tlv_rhs_12_0,\n \t \t\t\t\t\t\t\t\t\"org.thingml.xtext.ThingML.Addition\");\n \t \t\t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t \t\t\t\t\t\t\n\n \t }\n\n\n \t }\n\n\n \t }\n\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop122;\n }\n } while (true);\n\n\n }\n\n\n }\n\n\n \tleaveRule();\n\n }\n\n catch (RecognitionException re) {\n recover(input,re);\n appendSkippedTokens();\n }\n finally {\n }\n return current;\n }", "title": "" }, { "docid": "14cad4c9dccfa1ddd93a9ff3a070ec54", "score": "0.5530978", "text": "public final void entryRuleOpAdd() throws RecognitionException {\n try {\n // InternalJexTest.g:1284:1: ( ruleOpAdd EOF )\n // InternalJexTest.g:1285:1: ruleOpAdd EOF\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getOpAddRule()); \n }\n pushFollow(FOLLOW_1);\n ruleOpAdd();\n\n state._fsp--;\n if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getOpAddRule()); \n }\n match(input,EOF,FOLLOW_2); if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n }\n return ;\n }", "title": "" }, { "docid": "e9c14cc1b633b1c1b48d1d54bbc1180b", "score": "0.5525994", "text": "public final void rule__DmxAdditiveExpression__OperatorAssignment_1_0_0_1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalSus.g:26254:1: ( ( ruleOpAdd ) )\n // InternalSus.g:26255:2: ( ruleOpAdd )\n {\n // InternalSus.g:26255:2: ( ruleOpAdd )\n // InternalSus.g:26256:3: ruleOpAdd\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getDmxAdditiveExpressionAccess().getOperatorOpAddEnumRuleCall_1_0_0_1_0()); \n }\n pushFollow(FOLLOW_2);\n ruleOpAdd();\n\n state._fsp--;\n if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getDmxAdditiveExpressionAccess().getOperatorOpAddEnumRuleCall_1_0_0_1_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "afbc5997b25e7390294befddceafeae2", "score": "0.5525448", "text": "public final CymbolParser.expression_return expression() throws RecognitionException {\n CymbolParser.expression_return retval = new CymbolParser.expression_return();\n retval.start = input.LT(1);\n\n CymbolAST root_0 = null;\n\n CymbolParser.expr_return expr74 = null;\n\n RewriteRuleSubtreeStream stream_expr = new RewriteRuleSubtreeStream(adaptor, \"rule expr\");\n try {\n // /Users/parrt/research/book/TPDSL/Book/code/semantics/oo/Cymbol.g:110:5: ( expr -> ^( EXPR expr ) )\n // /Users/parrt/research/book/TPDSL/Book/code/semantics/oo/Cymbol.g:110:9: expr\n {\n pushFollow(FOLLOW_expr_in_expression1046);\n expr74 = expr();\n\n state._fsp--;\n if (state.failed) {\n return retval;\n }\n if (state.backtracking == 0) {\n stream_expr.add(expr74.getTree());\n }\n\n // AST REWRITE\n // elements: expr\n // token labels:\n // rule labels: retval\n // token list labels:\n // rule list labels:\n // wildcard labels:\n if (state.backtracking == 0) {\n retval.tree = root_0;\n RewriteRuleSubtreeStream stream_retval = new RewriteRuleSubtreeStream(adaptor,\n \"rule retval\", retval != null ? retval.tree : null);\n\n root_0 = (CymbolAST) adaptor.nil();\n // 110:14: -> ^( EXPR expr )\n {\n // /Users/parrt/research/book/TPDSL/Book/code/semantics/oo/Cymbol.g:110:17: ^( EXPR expr )\n {\n CymbolAST root_1 = (CymbolAST) adaptor.nil();\n root_1 = (CymbolAST) adaptor\n .becomeRoot(adaptor.create(EXPR, \"EXPR\"), root_1);\n\n adaptor.addChild(root_1, stream_expr.nextTree());\n\n adaptor.addChild(root_0, root_1);\n }\n\n }\n\n retval.tree = root_0;\n }\n }\n\n retval.stop = input.LT(-1);\n\n if (state.backtracking == 0) {\n\n retval.tree = (CymbolAST) adaptor.rulePostProcessing(root_0);\n adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);\n }\n } catch (RecognitionException re) {\n reportError(re);\n recover(input, re);\n retval.tree = (CymbolAST) adaptor.errorNode(input, retval.start, input.LT(-1), re);\n\n } finally {\n }\n return retval;\n }", "title": "" }, { "docid": "f89b3bf088cecd027ed1aaed4d035a4e", "score": "0.5515522", "text": "public final void rule__ComparisonExpression__RhsAssignment_1_1_6_2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalACMECNl.g:12277:1: ( ( ruleArithmeticExpression ) )\n // InternalACMECNl.g:12278:2: ( ruleArithmeticExpression )\n {\n // InternalACMECNl.g:12278:2: ( ruleArithmeticExpression )\n // InternalACMECNl.g:12279:3: ruleArithmeticExpression\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getComparisonExpressionAccess().getRhsArithmeticExpressionParserRuleCall_1_1_6_2_0()); \n }\n pushFollow(FOLLOW_2);\n ruleArithmeticExpression();\n\n state._fsp--;\n if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getComparisonExpressionAccess().getRhsArithmeticExpressionParserRuleCall_1_1_6_2_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "f653583183b68407e9a55ebb5b7dabde", "score": "0.5503875", "text": "private int ExprTail(int input) throws IOException, ParseError{\n\n\n int result = -1;\n this.unchanged_expr = false;\n\n if (lookaheadToken == '+'){ //If we have an addition\n consume(lookaheadToken);\n\n int num2 = Term(); //We get our second number by evaluating a Term() function\n\n result = input + num2;\n \n if (lookaheadToken == '+' || lookaheadToken == '-' ){ //Recursively calling ExprTail if another addition or subtraction follows\n return ExprTail(result);\n } else if(lookaheadToken == '\\n' || lookaheadToken == ')' ){ //Or if it's one of these symbols, we return our result\n return result;\n } else{\n throw new ParseError();\n }\n }\n\n if (lookaheadToken == '-'){ //Same thing for subtraction\n consume(lookaheadToken);\n\n int num2 = Term();\n\n result = input - num2;\n\n if (lookaheadToken == '+' || lookaheadToken == '-' ){\n return ExprTail(result);\n } else if(lookaheadToken == '\\n' || lookaheadToken == ')'){\n return result;\n } else{\n throw new ParseError();\n }\n }\n\n\n this.unchanged_expr = true; //If we ended up with some other symbol this mean ExprTail is of no value.\n\n return result;\n\n }", "title": "" }, { "docid": "9742fff67fb0a6c1b5e6ae6ea61441ec", "score": "0.55027074", "text": "@Override\n public Integer visitAddSub(LabeledExprParser.AddSubContext ctx) {\n Integer left = visit(ctx.expr(0));\n Integer right = visit(ctx.expr(1));\n\n\n if(ctx.op.getType() == LabeledExprParser.ADD) return left + right;\n\n return left - right;\n\n }", "title": "" }, { "docid": "9ed4d1d1a77e7cfc8d7a279d1834b183", "score": "0.5496928", "text": "public final void rule__ComparisonExpression__RhsAssignment_1_1_7_2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalACMECNl.g:12292:1: ( ( ruleArithmeticExpression ) )\n // InternalACMECNl.g:12293:2: ( ruleArithmeticExpression )\n {\n // InternalACMECNl.g:12293:2: ( ruleArithmeticExpression )\n // InternalACMECNl.g:12294:3: ruleArithmeticExpression\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getComparisonExpressionAccess().getRhsArithmeticExpressionParserRuleCall_1_1_7_2_0()); \n }\n pushFollow(FOLLOW_2);\n ruleArithmeticExpression();\n\n state._fsp--;\n if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getComparisonExpressionAccess().getRhsArithmeticExpressionParserRuleCall_1_1_7_2_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "ecd7ec04b33bff3c2d59601907c9e860", "score": "0.54949236", "text": "@Test\n public void processAdditionExpressionTest() throws ParseException {\n }", "title": "" }, { "docid": "b282b53850afb84c72be5ae0547295a7", "score": "0.5494282", "text": "public final String entryRulePlusMinus() throws RecognitionException {\n String current = null;\n\n AntlrDatatypeRuleToken iv_rulePlusMinus = null;\n\n\n try {\n // ../org.osate.xtext.aadl2.properties/src-gen/org/osate/xtext/aadl2/properties/parser/antlr/internal/InternalPropertiesParser.g:1179:1: (iv_rulePlusMinus= rulePlusMinus EOF )\n // ../org.osate.xtext.aadl2.properties/src-gen/org/osate/xtext/aadl2/properties/parser/antlr/internal/InternalPropertiesParser.g:1180:2: iv_rulePlusMinus= rulePlusMinus EOF\n {\n newCompositeNode(grammarAccess.getPlusMinusRule()); \n pushFollow(FollowSets000.FOLLOW_rulePlusMinus_in_entryRulePlusMinus2610);\n iv_rulePlusMinus=rulePlusMinus();\n\n state._fsp--;\n\n current =iv_rulePlusMinus.getText(); \n match(input,EOF,FollowSets000.FOLLOW_EOF_in_entryRulePlusMinus2621); \n\n }\n\n }\n \n \tcatch (RecognitionException re) { \n \t recover(input,re); \n \t appendSkippedTokens();\n \t}\n finally {\n }\n return current;\n }", "title": "" }, { "docid": "870fb6dce7f135233e50e00d0c759fb4", "score": "0.5487711", "text": "public final EObject entryRuleDeclaration() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleDeclaration = null;\n\n\n try {\n // InternalProjectDSL.g:124:52: (iv_ruleDeclaration= ruleDeclaration EOF )\n // InternalProjectDSL.g:125:2: iv_ruleDeclaration= ruleDeclaration EOF\n {\n newCompositeNode(grammarAccess.getDeclarationRule()); \n pushFollow(FOLLOW_1);\n iv_ruleDeclaration=ruleDeclaration();\n\n state._fsp--;\n\n current =iv_ruleDeclaration; \n match(input,EOF,FOLLOW_2); \n\n }\n\n }\n\n catch (RecognitionException re) {\n recover(input,re);\n appendSkippedTokens();\n }\n finally {\n }\n return current;\n }", "title": "" }, { "docid": "37be195ffc2717b527c069e6539b0f57", "score": "0.54812104", "text": "public final additiveExpr_return additiveExpr() throws RecognitionException {\r\n additiveExpr_return retval = new additiveExpr_return();\r\n retval.start = input.LT(1);\r\n\r\n CommonTree root_0 = null;\r\n\r\n Token PLUS12=null;\r\n Token MINUS13=null;\r\n multiplicativeExpr_return e = null;\r\n\r\n multiplicativeExpr_return multiplicativeExpr11 = null;\r\n\r\n\r\n CommonTree PLUS12_tree=null;\r\n CommonTree MINUS13_tree=null;\r\n\r\n try {\r\n // C:\\\\eclipse\\\\workspace_vct\\\\com.nokia.tools.vct.confml.expressions\\\\src\\\\com\\\\nokia\\\\tools\\\\vct\\\\confml\\\\expressions\\\\confml\\\\grammar\\\\Confml.g:89:13: ( multiplicativeExpr ( PLUS e= multiplicativeExpr | MINUS e= multiplicativeExpr )* )\r\n // C:\\\\eclipse\\\\workspace_vct\\\\com.nokia.tools.vct.confml.expressions\\\\src\\\\com\\\\nokia\\\\tools\\\\vct\\\\confml\\\\expressions\\\\confml\\\\grammar\\\\Confml.g:90:2: multiplicativeExpr ( PLUS e= multiplicativeExpr | MINUS e= multiplicativeExpr )*\r\n {\r\n root_0 = (CommonTree)adaptor.nil();\r\n\r\n pushFollow(FOLLOW_multiplicativeExpr_in_additiveExpr397);\r\n multiplicativeExpr11=multiplicativeExpr();\r\n _fsp--;\r\n\r\n adaptor.addChild(root_0, multiplicativeExpr11.getTree());\r\n // C:\\\\eclipse\\\\workspace_vct\\\\com.nokia.tools.vct.confml.expressions\\\\src\\\\com\\\\nokia\\\\tools\\\\vct\\\\confml\\\\expressions\\\\confml\\\\grammar\\\\Confml.g:91:2: ( PLUS e= multiplicativeExpr | MINUS e= multiplicativeExpr )*\r\n loop5:\r\n do {\r\n int alt5=3;\r\n int LA5_0 = input.LA(1);\r\n\r\n if ( (LA5_0==PLUS) ) {\r\n alt5=1;\r\n }\r\n else if ( (LA5_0==MINUS) ) {\r\n alt5=2;\r\n }\r\n\r\n\r\n switch (alt5) {\r\n \tcase 1 :\r\n \t // C:\\\\eclipse\\\\workspace_vct\\\\com.nokia.tools.vct.confml.expressions\\\\src\\\\com\\\\nokia\\\\tools\\\\vct\\\\confml\\\\expressions\\\\confml\\\\grammar\\\\Confml.g:92:4: PLUS e= multiplicativeExpr\r\n \t {\r\n \t PLUS12=(Token)input.LT(1);\r\n \t match(input,PLUS,FOLLOW_PLUS_in_additiveExpr405); \r\n \t PLUS12_tree = (CommonTree)adaptor.create(PLUS12);\r\n \t root_0 = (CommonTree)adaptor.becomeRoot(PLUS12_tree, root_0);\r\n\r\n \t pushFollow(FOLLOW_multiplicativeExpr_in_additiveExpr414);\r\n \t e=multiplicativeExpr();\r\n \t _fsp--;\r\n\r\n \t adaptor.addChild(root_0, e.getTree());\r\n\r\n \t }\r\n \t break;\r\n \tcase 2 :\r\n \t // C:\\\\eclipse\\\\workspace_vct\\\\com.nokia.tools.vct.confml.expressions\\\\src\\\\com\\\\nokia\\\\tools\\\\vct\\\\confml\\\\expressions\\\\confml\\\\grammar\\\\Confml.g:93:7: MINUS e= multiplicativeExpr\r\n \t {\r\n \t MINUS13=(Token)input.LT(1);\r\n \t match(input,MINUS,FOLLOW_MINUS_in_additiveExpr423); \r\n \t MINUS13_tree = (CommonTree)adaptor.create(MINUS13);\r\n \t root_0 = (CommonTree)adaptor.becomeRoot(MINUS13_tree, root_0);\r\n\r\n \t pushFollow(FOLLOW_multiplicativeExpr_in_additiveExpr432);\r\n \t e=multiplicativeExpr();\r\n \t _fsp--;\r\n\r\n \t adaptor.addChild(root_0, e.getTree());\r\n\r\n \t }\r\n \t break;\r\n\r\n \tdefault :\r\n \t break loop5;\r\n }\r\n } while (true);\r\n\r\n\r\n }\r\n\r\n retval.stop = input.LT(-1);\r\n\r\n retval.tree = (CommonTree)adaptor.rulePostProcessing(root_0);\r\n adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n }\r\n return retval;\r\n }", "title": "" }, { "docid": "78f8105d06d73534cd7eb71cebda2953", "score": "0.5480209", "text": "private Result pAdditiveExpression$$Tail1(final int yyStart) \n throws IOException {\n\n Result yyResult;\n Action yyValue;\n ParseError yyError = ParseError.DUMMY;\n\n // Alternative <Recursion>.\n\n yyResult = pAdditiveOperator(yyStart);\n yyError = yyResult.select(yyError);\n if (yyResult.hasValue()) {\n final String v$g$2 = (String)yyResult.semanticValue();\n\n yyResult = pMultiplicativeExpression(yyResult.index);\n yyError = yyResult.select(yyError);\n if (yyResult.hasValue()) {\n final GNode v$g$3 = (GNode)yyResult.semanticValue();\n\n yyValue = new Action() {\n public Object run(Object v$1) {\n return GNode.create(\"AdditiveExpression\", v$1, v$g$2, v$g$3);\n }};\n return yyResult.createValue(yyValue, yyError);\n }\n }\n\n // Done.\n return yyError;\n }", "title": "" }, { "docid": "3cb7b2dc4c62fd17a0e800b3d552f0c0", "score": "0.5476731", "text": "public final EObject entryRulelogical_expression() throws RecognitionException {\r\n EObject current = null;\r\n\r\n EObject iv_rulelogical_expression = null;\r\n\r\n\r\n try {\r\n // ../org.openmodelica.modelicaml.editor.xtext.valuebinding.provider/src-gen/org/openmodelica/modelicaml/editor/xtext/valuebinding/parser/antlr/internal/InternalProvider.g:536:2: (iv_rulelogical_expression= rulelogical_expression EOF )\r\n // ../org.openmodelica.modelicaml.editor.xtext.valuebinding.provider/src-gen/org/openmodelica/modelicaml/editor/xtext/valuebinding/parser/antlr/internal/InternalProvider.g:537:2: iv_rulelogical_expression= rulelogical_expression EOF\r\n {\r\n newCompositeNode(grammarAccess.getLogical_expressionRule()); \r\n pushFollow(FOLLOW_rulelogical_expression_in_entryRulelogical_expression1024);\r\n iv_rulelogical_expression=rulelogical_expression();\r\n\r\n state._fsp--;\r\n\r\n current =iv_rulelogical_expression; \r\n match(input,EOF,FOLLOW_EOF_in_entryRulelogical_expression1034); \r\n\r\n }\r\n\r\n }\r\n \r\n catch (RecognitionException re) { \r\n recover(input,re); \r\n appendSkippedTokens();\r\n } \r\n finally {\r\n }\r\n return current;\r\n }", "title": "" }, { "docid": "19ed7a623b9cb9a8f892c7ccd0af0177", "score": "0.5472491", "text": "public final EObject entryRuleAction() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleAction = null;\n\n\n try {\n // InternalMIRoN.g:3021:47: (iv_ruleAction= ruleAction EOF )\n // InternalMIRoN.g:3022:2: iv_ruleAction= ruleAction EOF\n {\n newCompositeNode(grammarAccess.getActionRule()); \n pushFollow(FOLLOW_1);\n iv_ruleAction=ruleAction();\n\n state._fsp--;\n\n current =iv_ruleAction; \n match(input,EOF,FOLLOW_2); \n\n }\n\n }\n\n catch (RecognitionException re) {\n recover(input,re);\n appendSkippedTokens();\n }\n finally {\n }\n return current;\n }", "title": "" }, { "docid": "42d597af201c752904367f5e42e1fe1a", "score": "0.5472124", "text": "public final CymbolParser.unaryExpression_return unaryExpression() throws RecognitionException {\n CymbolParser.unaryExpression_return retval = new CymbolParser.unaryExpression_return();\n retval.start = input.LT(1);\n\n CymbolAST root_0 = null;\n\n Token op = null;\n CymbolParser.unaryExpression_return unaryExpression94 = null;\n\n CymbolParser.unaryExpression_return unaryExpression95 = null;\n\n CymbolParser.unaryExpression_return unaryExpression96 = null;\n\n CymbolParser.unaryExpression_return unaryExpression97 = null;\n\n CymbolParser.postfixExpression_return postfixExpression98 = null;\n\n CymbolAST op_tree = null;\n RewriteRuleTokenStream stream_52 = new RewriteRuleTokenStream(adaptor, \"token 52\");\n RewriteRuleTokenStream stream_35 = new RewriteRuleTokenStream(adaptor, \"token 35\");\n RewriteRuleTokenStream stream_50 = new RewriteRuleTokenStream(adaptor, \"token 50\");\n RewriteRuleTokenStream stream_53 = new RewriteRuleTokenStream(adaptor, \"token 53\");\n RewriteRuleSubtreeStream stream_unaryExpression = new RewriteRuleSubtreeStream(adaptor,\n \"rule unaryExpression\");\n try {\n // /Users/parrt/research/book/TPDSL/Book/code/semantics/oo/Cymbol.g:141:5: (op= '-' unaryExpression -> ^( UNARY_MINUS[$op] unaryExpression ) | op= '!' unaryExpression -> ^( UNARY_NOT[$op] unaryExpression ) | op= '&' unaryExpression -> ^( ADDR[$op] unaryExpression ) | op= '*' unaryExpression -> ^( DEREF[$op] unaryExpression ) | postfixExpression )\n int alt27 = 5;\n switch (input.LA(1)) {\n case 50: {\n alt27 = 1;\n }\n break;\n case 52: {\n alt27 = 2;\n }\n break;\n case 53: {\n alt27 = 3;\n }\n break;\n case 35: {\n alt27 = 4;\n }\n break;\n case ID:\n case INT:\n case FLOAT:\n case CHAR:\n case 31:\n case 57:\n case 58: {\n alt27 = 5;\n }\n break;\n default:\n if (state.backtracking > 0) {\n state.failed = true;\n return retval;\n }\n NoViableAltException nvae =\n new NoViableAltException(\"\", 27, 0, input);\n\n throw nvae;\n }\n\n switch (alt27) {\n case 1:\n // /Users/parrt/research/book/TPDSL/Book/code/semantics/oo/Cymbol.g:141:9: op= '-' unaryExpression\n {\n op = (Token) match(input, 50, FOLLOW_50_in_unaryExpression1367);\n if (state.failed) {\n return retval;\n }\n if (state.backtracking == 0) {\n stream_50.add(op);\n }\n\n pushFollow(FOLLOW_unaryExpression_in_unaryExpression1369);\n unaryExpression94 = unaryExpression();\n\n state._fsp--;\n if (state.failed) {\n return retval;\n }\n if (state.backtracking == 0) {\n stream_unaryExpression.add(unaryExpression94.getTree());\n }\n\n // AST REWRITE\n // elements: unaryExpression\n // token labels:\n // rule labels: retval\n // token list labels:\n // rule list labels:\n // wildcard labels:\n if (state.backtracking == 0) {\n retval.tree = root_0;\n RewriteRuleSubtreeStream stream_retval = new RewriteRuleSubtreeStream(adaptor,\n \"rule retval\", retval != null ? retval.tree : null);\n\n root_0 = (CymbolAST) adaptor.nil();\n // 141:32: -> ^( UNARY_MINUS[$op] unaryExpression )\n {\n // /Users/parrt/research/book/TPDSL/Book/code/semantics/oo/Cymbol.g:141:35: ^( UNARY_MINUS[$op] unaryExpression )\n {\n CymbolAST root_1 = (CymbolAST) adaptor.nil();\n root_1 = (CymbolAST) adaptor\n .becomeRoot(adaptor.create(UNARY_MINUS, op), root_1);\n\n adaptor.addChild(root_1, stream_unaryExpression.nextTree());\n\n adaptor.addChild(root_0, root_1);\n }\n\n }\n\n retval.tree = root_0;\n }\n }\n break;\n case 2:\n // /Users/parrt/research/book/TPDSL/Book/code/semantics/oo/Cymbol.g:142:9: op= '!' unaryExpression\n {\n op = (Token) match(input, 52, FOLLOW_52_in_unaryExpression1390);\n if (state.failed) {\n return retval;\n }\n if (state.backtracking == 0) {\n stream_52.add(op);\n }\n\n pushFollow(FOLLOW_unaryExpression_in_unaryExpression1392);\n unaryExpression95 = unaryExpression();\n\n state._fsp--;\n if (state.failed) {\n return retval;\n }\n if (state.backtracking == 0) {\n stream_unaryExpression.add(unaryExpression95.getTree());\n }\n\n // AST REWRITE\n // elements: unaryExpression\n // token labels:\n // rule labels: retval\n // token list labels:\n // rule list labels:\n // wildcard labels:\n if (state.backtracking == 0) {\n retval.tree = root_0;\n RewriteRuleSubtreeStream stream_retval = new RewriteRuleSubtreeStream(adaptor,\n \"rule retval\", retval != null ? retval.tree : null);\n\n root_0 = (CymbolAST) adaptor.nil();\n // 142:32: -> ^( UNARY_NOT[$op] unaryExpression )\n {\n // /Users/parrt/research/book/TPDSL/Book/code/semantics/oo/Cymbol.g:142:35: ^( UNARY_NOT[$op] unaryExpression )\n {\n CymbolAST root_1 = (CymbolAST) adaptor.nil();\n root_1 = (CymbolAST) adaptor\n .becomeRoot(adaptor.create(UNARY_NOT, op), root_1);\n\n adaptor.addChild(root_1, stream_unaryExpression.nextTree());\n\n adaptor.addChild(root_0, root_1);\n }\n\n }\n\n retval.tree = root_0;\n }\n }\n break;\n case 3:\n // /Users/parrt/research/book/TPDSL/Book/code/semantics/oo/Cymbol.g:143:9: op= '&' unaryExpression\n {\n op = (Token) match(input, 53, FOLLOW_53_in_unaryExpression1413);\n if (state.failed) {\n return retval;\n }\n if (state.backtracking == 0) {\n stream_53.add(op);\n }\n\n pushFollow(FOLLOW_unaryExpression_in_unaryExpression1415);\n unaryExpression96 = unaryExpression();\n\n state._fsp--;\n if (state.failed) {\n return retval;\n }\n if (state.backtracking == 0) {\n stream_unaryExpression.add(unaryExpression96.getTree());\n }\n\n // AST REWRITE\n // elements: unaryExpression\n // token labels:\n // rule labels: retval\n // token list labels:\n // rule list labels:\n // wildcard labels:\n if (state.backtracking == 0) {\n retval.tree = root_0;\n RewriteRuleSubtreeStream stream_retval = new RewriteRuleSubtreeStream(adaptor,\n \"rule retval\", retval != null ? retval.tree : null);\n\n root_0 = (CymbolAST) adaptor.nil();\n // 143:32: -> ^( ADDR[$op] unaryExpression )\n {\n // /Users/parrt/research/book/TPDSL/Book/code/semantics/oo/Cymbol.g:143:35: ^( ADDR[$op] unaryExpression )\n {\n CymbolAST root_1 = (CymbolAST) adaptor.nil();\n root_1 = (CymbolAST) adaptor\n .becomeRoot(adaptor.create(ADDR, op), root_1);\n\n adaptor.addChild(root_1, stream_unaryExpression.nextTree());\n\n adaptor.addChild(root_0, root_1);\n }\n\n }\n\n retval.tree = root_0;\n }\n }\n break;\n case 4:\n // /Users/parrt/research/book/TPDSL/Book/code/semantics/oo/Cymbol.g:144:9: op= '*' unaryExpression\n {\n op = (Token) match(input, 35, FOLLOW_35_in_unaryExpression1436);\n if (state.failed) {\n return retval;\n }\n if (state.backtracking == 0) {\n stream_35.add(op);\n }\n\n pushFollow(FOLLOW_unaryExpression_in_unaryExpression1438);\n unaryExpression97 = unaryExpression();\n\n state._fsp--;\n if (state.failed) {\n return retval;\n }\n if (state.backtracking == 0) {\n stream_unaryExpression.add(unaryExpression97.getTree());\n }\n\n // AST REWRITE\n // elements: unaryExpression\n // token labels:\n // rule labels: retval\n // token list labels:\n // rule list labels:\n // wildcard labels:\n if (state.backtracking == 0) {\n retval.tree = root_0;\n RewriteRuleSubtreeStream stream_retval = new RewriteRuleSubtreeStream(adaptor,\n \"rule retval\", retval != null ? retval.tree : null);\n\n root_0 = (CymbolAST) adaptor.nil();\n // 144:32: -> ^( DEREF[$op] unaryExpression )\n {\n // /Users/parrt/research/book/TPDSL/Book/code/semantics/oo/Cymbol.g:144:35: ^( DEREF[$op] unaryExpression )\n {\n CymbolAST root_1 = (CymbolAST) adaptor.nil();\n root_1 = (CymbolAST) adaptor\n .becomeRoot(adaptor.create(DEREF, op), root_1);\n\n adaptor.addChild(root_1, stream_unaryExpression.nextTree());\n\n adaptor.addChild(root_0, root_1);\n }\n\n }\n\n retval.tree = root_0;\n }\n }\n break;\n case 5:\n // /Users/parrt/research/book/TPDSL/Book/code/semantics/oo/Cymbol.g:145:9: postfixExpression\n {\n root_0 = (CymbolAST) adaptor.nil();\n\n pushFollow(FOLLOW_postfixExpression_in_unaryExpression1457);\n postfixExpression98 = postfixExpression();\n\n state._fsp--;\n if (state.failed) {\n return retval;\n }\n if (state.backtracking == 0) {\n adaptor.addChild(root_0, postfixExpression98.getTree());\n }\n\n }\n break;\n\n }\n retval.stop = input.LT(-1);\n\n if (state.backtracking == 0) {\n\n retval.tree = (CymbolAST) adaptor.rulePostProcessing(root_0);\n adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);\n }\n } catch (RecognitionException re) {\n reportError(re);\n recover(input, re);\n retval.tree = (CymbolAST) adaptor.errorNode(input, retval.start, input.LT(-1), re);\n\n } finally {\n }\n return retval;\n }", "title": "" }, { "docid": "daba2e1ee86d043fc9c8a59b0d7ef100", "score": "0.5471001", "text": "public final EObject entryRuleAndEventTerm() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleAndEventTerm = null;\n\n\n try {\n // InternalMIRoN.g:5875:53: (iv_ruleAndEventTerm= ruleAndEventTerm EOF )\n // InternalMIRoN.g:5876:2: iv_ruleAndEventTerm= ruleAndEventTerm EOF\n {\n newCompositeNode(grammarAccess.getAndEventTermRule()); \n pushFollow(FOLLOW_1);\n iv_ruleAndEventTerm=ruleAndEventTerm();\n\n state._fsp--;\n\n current =iv_ruleAndEventTerm; \n match(input,EOF,FOLLOW_2); \n\n }\n\n }\n\n catch (RecognitionException re) {\n recover(input,re);\n appendSkippedTokens();\n }\n finally {\n }\n return current;\n }", "title": "" }, { "docid": "db1227ddb041f56ac867719f0fce5365", "score": "0.5468086", "text": "double parseExpression() {\n double x = parseTerm();\n for (;;) {\n if (eat('+')) {\n x += parseTerm(); // addition\n } else if (eat('-')) {\n x -= parseTerm(); // subtraction\n } else {\n return x;\n }\n }\n }", "title": "" }, { "docid": "eade99335bc22787617c513cc1e0bdc0", "score": "0.5467692", "text": "public final void rule__ComparisonExpression__Group_1__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalACMECNl.g:5442:1: ( ( ruleArithmeticExpression ) )\n // InternalACMECNl.g:5443:1: ( ruleArithmeticExpression )\n {\n // InternalACMECNl.g:5443:1: ( ruleArithmeticExpression )\n // InternalACMECNl.g:5444:2: ruleArithmeticExpression\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getComparisonExpressionAccess().getArithmeticExpressionParserRuleCall_1_0()); \n }\n pushFollow(FOLLOW_2);\n ruleArithmeticExpression();\n\n state._fsp--;\n if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getComparisonExpressionAccess().getArithmeticExpressionParserRuleCall_1_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "f95c6752c275b609c84b30bc3d48017f", "score": "0.5465446", "text": "@Override\n \tpublic IMatchingResult visitExpressionAddition(Addition x) {\n \t\tthrow new UnsupportedPatternError(x.toString(), x);\n \t}", "title": "" }, { "docid": "d33cba60df040348e43504121cb7ddf0", "score": "0.54589635", "text": "public final EObject entryRuleCode() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleCode = null;\n\n\n try {\n // ../org.eclipse.xtext.xdoc/src-gen/org/eclipse/xtext/xdoc/parser/antlr/internal/InternalXdoc.g:3134:2: (iv_ruleCode= ruleCode EOF )\n // ../org.eclipse.xtext.xdoc/src-gen/org/eclipse/xtext/xdoc/parser/antlr/internal/InternalXdoc.g:3135:2: iv_ruleCode= ruleCode EOF\n {\n newCompositeNode(grammarAccess.getCodeRule()); \n pushFollow(FOLLOW_ruleCode_in_entryRuleCode6955);\n iv_ruleCode=ruleCode();\n\n state._fsp--;\n\n current =iv_ruleCode; \n match(input,EOF,FOLLOW_EOF_in_entryRuleCode6965); \n\n }\n\n }\n \n catch (RecognitionException re) { \n recover(input,re); \n appendSkippedTokens();\n } \n finally {\n }\n return current;\n }", "title": "" }, { "docid": "676cfb088a7ce618f1e8fff973454062", "score": "0.5458353", "text": "public final tmpParser.unaryExpression_return unaryExpression() throws RecognitionException {\n tmpParser.unaryExpression_return retval = new tmpParser.unaryExpression_return();\n retval.start = input.LT(1);\n\n int unaryExpression_StartIndex = input.index();\n\n Object root_0 = null;\n\n Token char_literal331=null;\n Token char_literal333=null;\n Token string_literal335=null;\n Token string_literal337=null;\n tmpParser.unaryExpression_return unaryExpression332 =null;\n\n tmpParser.unaryExpression_return unaryExpression334 =null;\n\n tmpParser.unaryExpression_return unaryExpression336 =null;\n\n tmpParser.unaryExpression_return unaryExpression338 =null;\n\n tmpParser.unaryExpressionNotPlusMinus_return unaryExpressionNotPlusMinus339 =null;\n\n\n Object char_literal331_tree=null;\n Object char_literal333_tree=null;\n Object string_literal335_tree=null;\n Object string_literal337_tree=null;\n\n try {\n if ( state.backtracking>0 && alreadyParsedRule(input, 34) ) { return retval; }\n\n // org\\\\aries\\\\tmp.g:242:2: ( '+' unaryExpression | '-' unaryExpression | '++' unaryExpression | '--' unaryExpression | unaryExpressionNotPlusMinus )\n int alt46=5;\n switch ( input.LA(1) ) {\n case 54:\n {\n alt46=1;\n }\n break;\n case 58:\n {\n alt46=2;\n }\n break;\n case 55:\n {\n alt46=3;\n }\n break;\n case 59:\n {\n alt46=4;\n }\n break;\n case CHARLITERAL:\n case DoubleLiteral:\n case EXCEPTION:\n case FALSE:\n case FloatLiteral:\n case Identifier:\n case IntegerLiteral:\n case MESSAGE:\n case NULL:\n case STRINGLITERAL:\n case TRUE:\n case 43:\n case 50:\n case 78:\n case 81:\n case 84:\n case 91:\n case 95:\n case 102:\n case 108:\n case 129:\n case 143:\n {\n alt46=5;\n }\n break;\n default:\n if (state.backtracking>0) {state.failed=true; return retval;}\n NoViableAltException nvae =\n new NoViableAltException(\"\", 46, 0, input);\n\n throw nvae;\n\n }\n\n switch (alt46) {\n case 1 :\n // org\\\\aries\\\\tmp.g:242:4: '+' unaryExpression\n {\n root_0 = (Object)adaptor.nil();\n\n\n char_literal331=(Token)match(input,54,FOLLOW_54_in_unaryExpression1526); if (state.failed) return retval;\n if ( state.backtracking==0 ) {\n char_literal331_tree = \n (Object)adaptor.create(char_literal331)\n ;\n adaptor.addChild(root_0, char_literal331_tree);\n }\n\n pushFollow(FOLLOW_unaryExpression_in_unaryExpression1528);\n unaryExpression332=unaryExpression();\n\n state._fsp--;\n if (state.failed) return retval;\n if ( state.backtracking==0 ) adaptor.addChild(root_0, unaryExpression332.getTree());\n\n }\n break;\n case 2 :\n // org\\\\aries\\\\tmp.g:243:4: '-' unaryExpression\n {\n root_0 = (Object)adaptor.nil();\n\n\n char_literal333=(Token)match(input,58,FOLLOW_58_in_unaryExpression1533); if (state.failed) return retval;\n if ( state.backtracking==0 ) {\n char_literal333_tree = \n (Object)adaptor.create(char_literal333)\n ;\n adaptor.addChild(root_0, char_literal333_tree);\n }\n\n pushFollow(FOLLOW_unaryExpression_in_unaryExpression1535);\n unaryExpression334=unaryExpression();\n\n state._fsp--;\n if (state.failed) return retval;\n if ( state.backtracking==0 ) adaptor.addChild(root_0, unaryExpression334.getTree());\n\n }\n break;\n case 3 :\n // org\\\\aries\\\\tmp.g:244:4: '++' unaryExpression\n {\n root_0 = (Object)adaptor.nil();\n\n\n string_literal335=(Token)match(input,55,FOLLOW_55_in_unaryExpression1540); if (state.failed) return retval;\n if ( state.backtracking==0 ) {\n string_literal335_tree = \n (Object)adaptor.create(string_literal335)\n ;\n adaptor.addChild(root_0, string_literal335_tree);\n }\n\n pushFollow(FOLLOW_unaryExpression_in_unaryExpression1542);\n unaryExpression336=unaryExpression();\n\n state._fsp--;\n if (state.failed) return retval;\n if ( state.backtracking==0 ) adaptor.addChild(root_0, unaryExpression336.getTree());\n\n }\n break;\n case 4 :\n // org\\\\aries\\\\tmp.g:245:4: '--' unaryExpression\n {\n root_0 = (Object)adaptor.nil();\n\n\n string_literal337=(Token)match(input,59,FOLLOW_59_in_unaryExpression1547); if (state.failed) return retval;\n if ( state.backtracking==0 ) {\n string_literal337_tree = \n (Object)adaptor.create(string_literal337)\n ;\n adaptor.addChild(root_0, string_literal337_tree);\n }\n\n pushFollow(FOLLOW_unaryExpression_in_unaryExpression1549);\n unaryExpression338=unaryExpression();\n\n state._fsp--;\n if (state.failed) return retval;\n if ( state.backtracking==0 ) adaptor.addChild(root_0, unaryExpression338.getTree());\n\n }\n break;\n case 5 :\n // org\\\\aries\\\\tmp.g:246:4: unaryExpressionNotPlusMinus\n {\n root_0 = (Object)adaptor.nil();\n\n\n pushFollow(FOLLOW_unaryExpressionNotPlusMinus_in_unaryExpression1554);\n unaryExpressionNotPlusMinus339=unaryExpressionNotPlusMinus();\n\n state._fsp--;\n if (state.failed) return retval;\n if ( state.backtracking==0 ) adaptor.addChild(root_0, unaryExpressionNotPlusMinus339.getTree());\n\n }\n break;\n\n }\n retval.stop = input.LT(-1);\n\n\n if ( state.backtracking==0 ) {\n\n retval.tree = (Object)adaptor.rulePostProcessing(root_0);\n adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);\n }\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n \tretval.tree = (Object)adaptor.errorNode(input, retval.start, input.LT(-1), re);\n\n }\n\n finally {\n \t// do for sure before leaving\n if ( state.backtracking>0 ) { memoize(input, 34, unaryExpression_StartIndex); }\n\n }\n return retval;\n }", "title": "" }, { "docid": "45a75a8bfb821899637870e50e7b356d", "score": "0.54553324", "text": "public final void rule__Arithmetic_expression__Oper1Alternatives_2_0_0() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.openmodelica.modelicaml.editor.xtext.modification.ui/src-gen/org/openmodelica/modelicaml/editor/xtext/modification/ui/contentassist/antlr/internal/InternalModification.g:3418:1: ( ( ruleadd_op_plus ) | ( ruleadd_op_minus ) | ( ruleadd_op_dotplus ) | ( ruleadd_op_dotminus ) )\r\n int alt30=4;\r\n switch ( input.LA(1) ) {\r\n case 18:\r\n {\r\n alt30=1;\r\n }\r\n break;\r\n case 19:\r\n {\r\n alt30=2;\r\n }\r\n break;\r\n case 20:\r\n {\r\n alt30=3;\r\n }\r\n break;\r\n case 21:\r\n {\r\n alt30=4;\r\n }\r\n break;\r\n default:\r\n NoViableAltException nvae =\r\n new NoViableAltException(\"\", 30, 0, input);\r\n\r\n throw nvae;\r\n }\r\n\r\n switch (alt30) {\r\n case 1 :\r\n // ../org.openmodelica.modelicaml.editor.xtext.modification.ui/src-gen/org/openmodelica/modelicaml/editor/xtext/modification/ui/contentassist/antlr/internal/InternalModification.g:3419:1: ( ruleadd_op_plus )\r\n {\r\n // ../org.openmodelica.modelicaml.editor.xtext.modification.ui/src-gen/org/openmodelica/modelicaml/editor/xtext/modification/ui/contentassist/antlr/internal/InternalModification.g:3419:1: ( ruleadd_op_plus )\r\n // ../org.openmodelica.modelicaml.editor.xtext.modification.ui/src-gen/org/openmodelica/modelicaml/editor/xtext/modification/ui/contentassist/antlr/internal/InternalModification.g:3420:1: ruleadd_op_plus\r\n {\r\n before(grammarAccess.getArithmetic_expressionAccess().getOper1Add_op_plusParserRuleCall_2_0_0_0()); \r\n pushFollow(FOLLOW_ruleadd_op_plus_in_rule__Arithmetic_expression__Oper1Alternatives_2_0_07431);\r\n ruleadd_op_plus();\r\n\r\n state._fsp--;\r\n\r\n after(grammarAccess.getArithmetic_expressionAccess().getOper1Add_op_plusParserRuleCall_2_0_0_0()); \r\n\r\n }\r\n\r\n\r\n }\r\n break;\r\n case 2 :\r\n // ../org.openmodelica.modelicaml.editor.xtext.modification.ui/src-gen/org/openmodelica/modelicaml/editor/xtext/modification/ui/contentassist/antlr/internal/InternalModification.g:3425:6: ( ruleadd_op_minus )\r\n {\r\n // ../org.openmodelica.modelicaml.editor.xtext.modification.ui/src-gen/org/openmodelica/modelicaml/editor/xtext/modification/ui/contentassist/antlr/internal/InternalModification.g:3425:6: ( ruleadd_op_minus )\r\n // ../org.openmodelica.modelicaml.editor.xtext.modification.ui/src-gen/org/openmodelica/modelicaml/editor/xtext/modification/ui/contentassist/antlr/internal/InternalModification.g:3426:1: ruleadd_op_minus\r\n {\r\n before(grammarAccess.getArithmetic_expressionAccess().getOper1Add_op_minusParserRuleCall_2_0_0_1()); \r\n pushFollow(FOLLOW_ruleadd_op_minus_in_rule__Arithmetic_expression__Oper1Alternatives_2_0_07448);\r\n ruleadd_op_minus();\r\n\r\n state._fsp--;\r\n\r\n after(grammarAccess.getArithmetic_expressionAccess().getOper1Add_op_minusParserRuleCall_2_0_0_1()); \r\n\r\n }\r\n\r\n\r\n }\r\n break;\r\n case 3 :\r\n // ../org.openmodelica.modelicaml.editor.xtext.modification.ui/src-gen/org/openmodelica/modelicaml/editor/xtext/modification/ui/contentassist/antlr/internal/InternalModification.g:3431:6: ( ruleadd_op_dotplus )\r\n {\r\n // ../org.openmodelica.modelicaml.editor.xtext.modification.ui/src-gen/org/openmodelica/modelicaml/editor/xtext/modification/ui/contentassist/antlr/internal/InternalModification.g:3431:6: ( ruleadd_op_dotplus )\r\n // ../org.openmodelica.modelicaml.editor.xtext.modification.ui/src-gen/org/openmodelica/modelicaml/editor/xtext/modification/ui/contentassist/antlr/internal/InternalModification.g:3432:1: ruleadd_op_dotplus\r\n {\r\n before(grammarAccess.getArithmetic_expressionAccess().getOper1Add_op_dotplusParserRuleCall_2_0_0_2()); \r\n pushFollow(FOLLOW_ruleadd_op_dotplus_in_rule__Arithmetic_expression__Oper1Alternatives_2_0_07465);\r\n ruleadd_op_dotplus();\r\n\r\n state._fsp--;\r\n\r\n after(grammarAccess.getArithmetic_expressionAccess().getOper1Add_op_dotplusParserRuleCall_2_0_0_2()); \r\n\r\n }\r\n\r\n\r\n }\r\n break;\r\n case 4 :\r\n // ../org.openmodelica.modelicaml.editor.xtext.modification.ui/src-gen/org/openmodelica/modelicaml/editor/xtext/modification/ui/contentassist/antlr/internal/InternalModification.g:3437:6: ( ruleadd_op_dotminus )\r\n {\r\n // ../org.openmodelica.modelicaml.editor.xtext.modification.ui/src-gen/org/openmodelica/modelicaml/editor/xtext/modification/ui/contentassist/antlr/internal/InternalModification.g:3437:6: ( ruleadd_op_dotminus )\r\n // ../org.openmodelica.modelicaml.editor.xtext.modification.ui/src-gen/org/openmodelica/modelicaml/editor/xtext/modification/ui/contentassist/antlr/internal/InternalModification.g:3438:1: ruleadd_op_dotminus\r\n {\r\n before(grammarAccess.getArithmetic_expressionAccess().getOper1Add_op_dotminusParserRuleCall_2_0_0_3()); \r\n pushFollow(FOLLOW_ruleadd_op_dotminus_in_rule__Arithmetic_expression__Oper1Alternatives_2_0_07482);\r\n ruleadd_op_dotminus();\r\n\r\n state._fsp--;\r\n\r\n after(grammarAccess.getArithmetic_expressionAccess().getOper1Add_op_dotminusParserRuleCall_2_0_0_3()); \r\n\r\n }\r\n\r\n\r\n }\r\n break;\r\n\r\n }\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "994bb1a60e92afc2c2a32cc747c95f7e", "score": "0.54482484", "text": "public AddingExpr(Expression leftOperand, Token operator, Expression rightOperand)\n {\n assert operator.getSymbol().isAddingOperator();\n this.leftOperand = leftOperand;\n this.operator = operator;\n this.rightOperand = rightOperand;\n }", "title": "" }, { "docid": "5f6541ccbe2740c3333fa2242a42d839", "score": "0.54455334", "text": "UnaryExpression getUnaryExpression();", "title": "" } ]
9b8da1f87dcf926a14b4b15681ff098e
Returns the port number.
[ { "docid": "bf735c526620ffd822269eabdcbd0436", "score": "0.84116757", "text": "public int getPort() {\n\t\treturn port;\n\t}", "title": "" } ]
[ { "docid": "1dc3d1dd8a9803c46f0d6012e2fef012", "score": "0.8948034", "text": "public int getPort() {\n\t\treturn Integer.parseInt(port);\n }", "title": "" }, { "docid": "1f5c58674fbdc1b63e0a87c71fc9d574", "score": "0.87486386", "text": "public static int getPort() {\r\n\t\t\r\n\t\treturn port;\r\n\t\t\r\n\t}", "title": "" }, { "docid": "1e36e6c0991a8c2072dfb4db808039f9", "score": "0.86044633", "text": "public int getPort(){\n return addressHelper.getPort();\n }", "title": "" }, { "docid": "513d166ccf22d147c80387b6f3c8c2e6", "score": "0.8599155", "text": "public String getPort() {\n return getValue(\"port\");\n }", "title": "" }, { "docid": "0cd631c7ed22c9c56173895bfc0d6488", "score": "0.85766387", "text": "public static int getPort() {\n return port;\n }", "title": "" }, { "docid": "58f36d82f7dcc1ab9270ee5f7cc31233", "score": "0.8510241", "text": "public int getPort()\n\t{\n\t\treturn port;\n\t}", "title": "" }, { "docid": "58f36d82f7dcc1ab9270ee5f7cc31233", "score": "0.8510241", "text": "public int getPort()\n\t{\n\t\treturn port;\n\t}", "title": "" }, { "docid": "9b1d6b370543b229e4160d0cc8e25e23", "score": "0.84934294", "text": "public int getPort() {\n try {\n return Integer.parseInt(port.getText());\n } catch (Exception e) {\n return ServerController.defaultPort;\n }\n }", "title": "" }, { "docid": "5d4ad01ba067583a762680dc8f204f35", "score": "0.8475728", "text": "public static int getPort() {\n\t\treturn PORT;\n\t}", "title": "" }, { "docid": "29615849b0d7ab92f24196948ab8e603", "score": "0.84562427", "text": "public int getPort() {\n \t\treturn port;\n \t}", "title": "" }, { "docid": "851ab807b53b4113e572f36dee76be1c", "score": "0.8431694", "text": "public long getPort(){\n\t\treturn this.port;\n\t}", "title": "" }, { "docid": "eac307964c0232c61238f67fba815005", "score": "0.8428368", "text": "public int getPort() {\r\n\t\treturn port;\r\n\t}", "title": "" }, { "docid": "eac307964c0232c61238f67fba815005", "score": "0.8428368", "text": "public int getPort() {\r\n\t\treturn port;\r\n\t}", "title": "" }, { "docid": "7b55386d78451ccb6796b35f88674fc1", "score": "0.84207934", "text": "public int getPortNumber(){\n\t\treturn portNumber;\n\t}", "title": "" }, { "docid": "1bbebbbae7802e72be7605834edd17c7", "score": "0.84070563", "text": "public int getPortNumber() {\r\n return portNumber;\r\n }", "title": "" }, { "docid": "4a5aa40c7ec509d45821ae6805f9f931", "score": "0.8397768", "text": "public int getPortNumber() {\n return portNumber;\n }", "title": "" }, { "docid": "0658999c5cea4ba082b575467cd95b94", "score": "0.83973783", "text": "public int getPort() {\r\n\t\treturn this.port;\r\n\t}", "title": "" }, { "docid": "810082c803c50e3b51e26a7830167791", "score": "0.8395078", "text": "public int getPortNumber() {\n\n if (portNumber.equals(\"\")) {\n portNumber = \"9001\";\n return 9001;\n } else\n return Integer.parseInt(portNumber);\n\n }", "title": "" }, { "docid": "cd667cd16f93388480b09d644e4ce6ab", "score": "0.8377269", "text": "public final int getPort() {\n return port;\n }", "title": "" }, { "docid": "7ec420ca3f00de829e338a220658ac51", "score": "0.837318", "text": "public int getPort()\r\n {\r\n return this.port;\r\n }", "title": "" }, { "docid": "cff04483af9301012016ef943680299c", "score": "0.83604866", "text": "public int getPort() {\n return port_;\n }", "title": "" }, { "docid": "cff04483af9301012016ef943680299c", "score": "0.83604866", "text": "public int getPort() {\n return port_;\n }", "title": "" }, { "docid": "cff04483af9301012016ef943680299c", "score": "0.83604866", "text": "public int getPort() {\n return port_;\n }", "title": "" }, { "docid": "cff04483af9301012016ef943680299c", "score": "0.83604866", "text": "public int getPort() {\n return port_;\n }", "title": "" }, { "docid": "cff04483af9301012016ef943680299c", "score": "0.83604866", "text": "public int getPort() {\n return port_;\n }", "title": "" }, { "docid": "cff04483af9301012016ef943680299c", "score": "0.83604866", "text": "public int getPort() {\n return port_;\n }", "title": "" }, { "docid": "cff04483af9301012016ef943680299c", "score": "0.83604866", "text": "public int getPort() {\n return port_;\n }", "title": "" }, { "docid": "cff04483af9301012016ef943680299c", "score": "0.83604866", "text": "public int getPort() {\n return port_;\n }", "title": "" }, { "docid": "cff04483af9301012016ef943680299c", "score": "0.83604866", "text": "public int getPort() {\n return port_;\n }", "title": "" }, { "docid": "cff04483af9301012016ef943680299c", "score": "0.83599365", "text": "public int getPort() {\n return port_;\n }", "title": "" }, { "docid": "cff04483af9301012016ef943680299c", "score": "0.83599365", "text": "public int getPort() {\n return port_;\n }", "title": "" }, { "docid": "73a1292490000dc6e153e32dce82f917", "score": "0.83530134", "text": "public int getPort() {\n return port_;\n }", "title": "" }, { "docid": "73a1292490000dc6e153e32dce82f917", "score": "0.83530134", "text": "public int getPort() {\n return port_;\n }", "title": "" }, { "docid": "73a1292490000dc6e153e32dce82f917", "score": "0.8352949", "text": "public int getPort() {\n return port_;\n }", "title": "" }, { "docid": "73a1292490000dc6e153e32dce82f917", "score": "0.8352949", "text": "public int getPort() {\n return port_;\n }", "title": "" }, { "docid": "73a1292490000dc6e153e32dce82f917", "score": "0.8352949", "text": "public int getPort() {\n return port_;\n }", "title": "" }, { "docid": "73a1292490000dc6e153e32dce82f917", "score": "0.8352949", "text": "public int getPort() {\n return port_;\n }", "title": "" }, { "docid": "73a1292490000dc6e153e32dce82f917", "score": "0.8352949", "text": "public int getPort() {\n return port_;\n }", "title": "" }, { "docid": "73a1292490000dc6e153e32dce82f917", "score": "0.8352949", "text": "public int getPort() {\n return port_;\n }", "title": "" }, { "docid": "73a1292490000dc6e153e32dce82f917", "score": "0.8352949", "text": "public int getPort() {\n return port_;\n }", "title": "" }, { "docid": "9e5d657f05849858626e60df1c59ae69", "score": "0.8351215", "text": "public int getPort() {\n return port_;\n }", "title": "" }, { "docid": "3560bcc9156d7ef45f7424e25f65ced0", "score": "0.83335584", "text": "public int get_port() {\n return this.port;\n }", "title": "" }, { "docid": "aac2bbc9b65d4e503091296a484aba09", "score": "0.8331406", "text": "public int getPort() {\n return port_;\n }", "title": "" }, { "docid": "1b4a203e135875c27f097aff4b9df91c", "score": "0.83234626", "text": "public int getPort() {\n return this.port;\n }", "title": "" }, { "docid": "1b4a203e135875c27f097aff4b9df91c", "score": "0.83234626", "text": "public int getPort() {\n return this.port;\n }", "title": "" }, { "docid": "1b4a203e135875c27f097aff4b9df91c", "score": "0.83234626", "text": "public int getPort() {\n return this.port;\n }", "title": "" }, { "docid": "caa9ac59a3168160029b2ce0baade630", "score": "0.83202285", "text": "public int getPortNum() {\n\t\treturn portNum;\n\t}", "title": "" }, { "docid": "366c7554d3538e650846d38c3b4a37ee", "score": "0.830417", "text": "public int getPort(){\n\t\treturn port;\n\t}", "title": "" }, { "docid": "366c7554d3538e650846d38c3b4a37ee", "score": "0.830417", "text": "public int getPort(){\n\t\treturn port;\n\t}", "title": "" }, { "docid": "366c7554d3538e650846d38c3b4a37ee", "score": "0.830417", "text": "public int getPort(){\n\t\treturn port;\n\t}", "title": "" }, { "docid": "a6baf4214adc977995626850b13f5213", "score": "0.82966083", "text": "public int getPort() {\r\n return port;\r\n }", "title": "" }, { "docid": "9b378645e568a81d4d9b0d86bcbc6947", "score": "0.8287671", "text": "public String getPortNo() {\n\t\treturn portNo;\n\t}", "title": "" }, { "docid": "69208436a52a4164d491bf2200597dc2", "score": "0.82858694", "text": "public Integer getPort() {\n return port;\n }", "title": "" }, { "docid": "3a4aef1f57e90bc65dbb57747d37816d", "score": "0.8283401", "text": "public int getPort();", "title": "" }, { "docid": "3a4aef1f57e90bc65dbb57747d37816d", "score": "0.8283401", "text": "public int getPort();", "title": "" }, { "docid": "ce592ddcde45af2f3922dc2b468f07ca", "score": "0.82829124", "text": "public int getPort (){\n return this.m_port;\n }", "title": "" }, { "docid": "07604cc46c09def96522b17abff1101a", "score": "0.82651174", "text": "public int getPort() {\n return port_;\n }", "title": "" }, { "docid": "07604cc46c09def96522b17abff1101a", "score": "0.82651174", "text": "public int getPort() {\n return port_;\n }", "title": "" }, { "docid": "24d16cf5352d1aef5b030c8dd5165ea5", "score": "0.82567763", "text": "public int getPort() {\n return port;\n }", "title": "" }, { "docid": "24d16cf5352d1aef5b030c8dd5165ea5", "score": "0.82567763", "text": "public int getPort() {\n return port;\n }", "title": "" }, { "docid": "ba1e533f922f358d9e62de24ac5b5d0a", "score": "0.8255744", "text": "public int getPort() {\n return port;\n }", "title": "" }, { "docid": "ba1e533f922f358d9e62de24ac5b5d0a", "score": "0.8255744", "text": "public int getPort() {\n return port;\n }", "title": "" }, { "docid": "ba1e533f922f358d9e62de24ac5b5d0a", "score": "0.8255744", "text": "public int getPort() {\n return port;\n }", "title": "" }, { "docid": "ba1e533f922f358d9e62de24ac5b5d0a", "score": "0.8255744", "text": "public int getPort() {\n return port;\n }", "title": "" }, { "docid": "ba1e533f922f358d9e62de24ac5b5d0a", "score": "0.8255744", "text": "public int getPort() {\n return port;\n }", "title": "" }, { "docid": "ba1e533f922f358d9e62de24ac5b5d0a", "score": "0.8255744", "text": "public int getPort() {\n return port;\n }", "title": "" }, { "docid": "ba1e533f922f358d9e62de24ac5b5d0a", "score": "0.8255744", "text": "public int getPort() {\n return port;\n }", "title": "" }, { "docid": "ba1e533f922f358d9e62de24ac5b5d0a", "score": "0.8255744", "text": "public int getPort() {\n return port;\n }", "title": "" }, { "docid": "ba1e533f922f358d9e62de24ac5b5d0a", "score": "0.8255744", "text": "public int getPort() {\n return port;\n }", "title": "" }, { "docid": "ba1e533f922f358d9e62de24ac5b5d0a", "score": "0.8255744", "text": "public int getPort() {\n return port;\n }", "title": "" }, { "docid": "6df2637acc62055ef95334f1713e88ac", "score": "0.8238909", "text": "public int getPortNo() {\n\t\treturn this.portNo; \n\t}", "title": "" }, { "docid": "604bb06a4e18df79abb16842a615ac1f", "score": "0.8232996", "text": "public int getPort() {\n\n return port;\n }", "title": "" }, { "docid": "f93ba36ed451757db5940eb8f3b7f6be", "score": "0.8223189", "text": "public int getPort()\n {\n return port;\n }", "title": "" }, { "docid": "f93ba36ed451757db5940eb8f3b7f6be", "score": "0.8223189", "text": "public int getPort()\n {\n return port;\n }", "title": "" }, { "docid": "31be252b23250776b25b9c904c1975ae", "score": "0.8198319", "text": "public Integer port() {\n return this.port;\n }", "title": "" }, { "docid": "a624787ebae5bd00c6c5cf2e0d0ad1bc", "score": "0.81657505", "text": "public int port() {\n return this.port;\n }", "title": "" }, { "docid": "d525cf1e9683fc022f7fd2b94bd544f3", "score": "0.8137275", "text": "int getPort();", "title": "" }, { "docid": "d525cf1e9683fc022f7fd2b94bd544f3", "score": "0.8137275", "text": "int getPort();", "title": "" }, { "docid": "d525cf1e9683fc022f7fd2b94bd544f3", "score": "0.8137275", "text": "int getPort();", "title": "" }, { "docid": "d525cf1e9683fc022f7fd2b94bd544f3", "score": "0.8137275", "text": "int getPort();", "title": "" }, { "docid": "d525cf1e9683fc022f7fd2b94bd544f3", "score": "0.8137275", "text": "int getPort();", "title": "" }, { "docid": "d525cf1e9683fc022f7fd2b94bd544f3", "score": "0.8137275", "text": "int getPort();", "title": "" }, { "docid": "d525cf1e9683fc022f7fd2b94bd544f3", "score": "0.8137275", "text": "int getPort();", "title": "" }, { "docid": "d525cf1e9683fc022f7fd2b94bd544f3", "score": "0.8137275", "text": "int getPort();", "title": "" }, { "docid": "d525cf1e9683fc022f7fd2b94bd544f3", "score": "0.8137275", "text": "int getPort();", "title": "" }, { "docid": "d525cf1e9683fc022f7fd2b94bd544f3", "score": "0.8137275", "text": "int getPort();", "title": "" }, { "docid": "d525cf1e9683fc022f7fd2b94bd544f3", "score": "0.8137275", "text": "int getPort();", "title": "" }, { "docid": "d525cf1e9683fc022f7fd2b94bd544f3", "score": "0.8137275", "text": "int getPort();", "title": "" }, { "docid": "d525cf1e9683fc022f7fd2b94bd544f3", "score": "0.8137275", "text": "int getPort();", "title": "" }, { "docid": "d525cf1e9683fc022f7fd2b94bd544f3", "score": "0.8137275", "text": "int getPort();", "title": "" }, { "docid": "d525cf1e9683fc022f7fd2b94bd544f3", "score": "0.8137275", "text": "int getPort();", "title": "" }, { "docid": "d525cf1e9683fc022f7fd2b94bd544f3", "score": "0.8137275", "text": "int getPort();", "title": "" }, { "docid": "d525cf1e9683fc022f7fd2b94bd544f3", "score": "0.8137275", "text": "int getPort();", "title": "" }, { "docid": "d525cf1e9683fc022f7fd2b94bd544f3", "score": "0.8137275", "text": "int getPort();", "title": "" }, { "docid": "f3479c3f09f1eae00a423c23c4e3d15c", "score": "0.8131789", "text": "@SuppressLint(\"NewApi\")\n public int getPort()\n {\n return request.getPort();\n }", "title": "" }, { "docid": "0c0d8e84ee5e3865c12511fd27bcd4ae", "score": "0.8122951", "text": "@java.lang.Override\n public long getPort() {\n return port_;\n }", "title": "" } ]
eecc4416354825831391de7d4bb282f7
The home state does not contain movies, so a message is printed to tell the user to switch to an app in order to show movies.
[ { "docid": "2997bdddc65612e8c0189e0290e3fdea", "score": "0.71520454", "text": "@Override\n public void pressMovieButton(){\n System.out.println(\"Home: You must pick an app to show movies\");\n }", "title": "" } ]
[ { "docid": "25610d349b1c51529362a0d3d3c620e8", "score": "0.6255228", "text": "public void displayHomePage() {\n boolean exit = false;\n while(!exit){\n UserInputOutput.displayHeader(\"Staff Portal\");\n System.out.println(\n \"1. Create/Update/Remove movie listing\\n\" +\n \"2. Create/Remove cinema showtimes\\n\" +\n \"3. Configure system settings\\n\" +\n \"4. List top 5 movies\\n\"+\n \"5. Exit\\n\"\n );\n switch (UserInputOutput.getUserChoice(1, 5)) {\n case 1:\n displayStaffMovieOptions();\n break;\n case 2:\n displayStaffShowtimeOptions();\n break;\n case 3:\n displayStaffConfigurationOptions();\n break;\n case 4:\n staffControl.listTopMovies();\n break;\n case 5:\n exit = true;\n }\n }\n }", "title": "" }, { "docid": "68fdb59cdd8df971e7b7e786bb6f51de", "score": "0.6201302", "text": "@Override\n public void pressHomeButton(){\n System.out.println(\"TV is already on the home screen\");\n }", "title": "" }, { "docid": "76c5c88b183d0dc3395bd06b58f05aa1", "score": "0.6097596", "text": "@Override\n public void pressTVButton(){\n System.out.println(\"Home: You must pick an app to show tv shows\");\n }", "title": "" }, { "docid": "4fad27ee6b71f715c8f69af71d35c3c3", "score": "0.60751534", "text": "@Override\n public void pressMovieButton() {\n System.out.println(\"Hulu Movies:\\n- Cars\\n- Cinderella\\n- Wall-E\\n- ET\\n\");\n \n }", "title": "" }, { "docid": "40b3b5323eabe711fe1173dca97daef8", "score": "0.60594714", "text": "@Override\n public void pressHomebutton() {\n System.out.println(\"Loading Home Screen...\\n\");\n tv.setState(tv.getHomeState());\n \n }", "title": "" }, { "docid": "09f3cf995a6bc81e93c6bed97e32ac3f", "score": "0.60334694", "text": "private static void movieHomeListen(){\n\t\tmovieFr.getHomeButton().addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\tSystem.out.println(\"Going home!\");\n\t\t\t\tmovieFr.setVisible(false);\n\t\t\t\tuserFr.setVisible(true);\n\t\t\t}\n\t\t});\n\t}", "title": "" }, { "docid": "97f2ad8800aeeb5ade84b2d9e0581633", "score": "0.5844065", "text": "private void startApplication() {\r\n\t\t\r\n\t\tshowUserLoginDialog();\r\n\t\t\r\n\t\tif (currentUser != null) {\r\n\t\t\tthis.primaryStage.setTitle(\"MovieOverview - \" + currentUser.getFirstName() + \" \" + currentUser.getLastName());\r\n\t\t\tinitRootLayout();\r\n\t\t\tshowMovieOverview();\r\n\t\t} else {\r\n\t\t\tSystem.exit(0);\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "af4b7bbb232703f737002494e7b3021b", "score": "0.580869", "text": "@Override\r\n\tpublic void switchOn() {\n\t\tSystem.out.println(\"Switch On Home Theatre\");\r\n\t}", "title": "" }, { "docid": "815ec4edeaffba677bec5c6c302ca616", "score": "0.5783793", "text": "@FXML\r\n private void goHome(ActionEvent event) {\r\n actionTarget.setText(\"log on pressed\");\r\n Stage stage = (Stage) actionTarget.getScene().getWindow();\r\n stage.hide();\r\n \r\n NavigationCntl.getNavigationCntl(stage).setUpNavigationScene();\r\n }", "title": "" }, { "docid": "c5e8997450ada3365c794a7bc35c84e9", "score": "0.57463723", "text": "@Override\n public void onClick(View v) {\n Toast.makeText(MainActivity.this, \"You are on Home screen\", Toast.LENGTH_SHORT).show(); // Toast to notify user that they are on the same screen\n }", "title": "" }, { "docid": "b7c40175c096d7d1077e41e7664a5800", "score": "0.57304066", "text": "private void showHowToPlay() {\n\t\t\t\t\r\n\t\t\t}", "title": "" }, { "docid": "92507899eb34dd65924651c6983b18e9", "score": "0.5691714", "text": "public void showWelcome(){\nSystem.out.println(\"\\nWelcome Captain Morgan to your app, here you will be able to manage your clients' cargo \\n\");\n}", "title": "" }, { "docid": "b4744b7cbb814571bca0f0035a4d418b", "score": "0.5679304", "text": "public static void menu() {\n\n System.out.println(\"---- SpotifyLikeApp ----\");\n System.out.println(\"[H]ome\");\n System.out.println(\"[S}earch by title\");\n System.out.println(\"[L]ibrary\");\n System.out.println(\"[F]avorites\");\n System.out.println(\"[Q]uit\");\n System.out.println(\"\");\n\n System.out.println(\"\");\n System.out.print(\"Please press the first letter of the menu screen.\");\n\n }", "title": "" }, { "docid": "8cbe1768d350fbae17cefa447fc329d1", "score": "0.5676235", "text": "public void displayStaffMovieOptions() {\n UserInputOutput.displayHeader(\"Modify Movie Listing\");\n System.out.println(\n \"1. Create movie listing\\n\" +\n \"2. Update movie listing\\n\" +\n \"3. Remove movie listing\\n\"+\n \"4. Go back\");\n switch (UserInputOutput.getUserChoice(1, 4)) {\n case 1:\n staffControl.addMovieListing();\n break;\n case 2:\n staffControl.editMovieListing();\n break;\n case 3:\n staffControl.deleteMovieListing();\n break;\n case 4:\n displayHomePage();\n break;\n }\n }", "title": "" }, { "docid": "730d935828d8e65534b092711ed9f195", "score": "0.5657289", "text": "public static void title() {\r\n print(\"*****************************\\n* NEW GAME CONTINUE *\\n*****************************\");\r\n String choice = input(\"\");\r\n if (choice.matches(\"NEW GAME|CONTINUE\")) {\r\n if (choice.matches(\"NEW GAME\")) { // Return to main\r\n } else { // choice.matches(\"CONTINUE\")\r\n unprogram();\r\n title();\r\n }\r\n } else {\r\n error();\r\n title();\r\n }\r\n }", "title": "" }, { "docid": "c7a44cb3b6d4db7f13d21fa17b072762", "score": "0.56341314", "text": "@Override\n\tpublic void showState() {\n\t\tSystem.out.println(\"听主人的命令\");\n\t}", "title": "" }, { "docid": "40ca4e66ac24f70d6256a8239a7d3317", "score": "0.5619624", "text": "public void AltimeterHomePage() {\r\n\r\n\t}", "title": "" }, { "docid": "530c89a6ead29041aa6546b9111426ad", "score": "0.5619195", "text": "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_movie_detail);\n\n movie = getMovieFromIntentOrState(savedInstanceState);\n\n mDB = AppDatabase.getInstance(this);\n\n if(movie != null) {\n initializeUI();\n checkForMovieInFavoritesDB();\n }\n else{\n showErrorMessage();\n }\n }", "title": "" }, { "docid": "9b7fef70e36e20da1646e6fb2e3ec112", "score": "0.561861", "text": "public void onHomeClicked() {\n\t\t\t//Grumble, grumble... OVERRIDE ME!\n\t\t}", "title": "" }, { "docid": "08f3e30b8ced4703a2e08058aea78d90", "score": "0.5569725", "text": "public void displayMovieGenresListState() {\r\n if (_movie.getGenres().size() < 1) {\r\n _rvGenres.setVisibility(View.GONE);\r\n _btnNoGenres.setVisibility(View.VISIBLE);\r\n } else {\r\n _btnNoGenres.setVisibility(View.GONE);\r\n _rvGenres.setVisibility(View.VISIBLE);\r\n }\r\n }", "title": "" }, { "docid": "37b20a05ac7591d5badf8c9b061c8b03", "score": "0.55694145", "text": "public void toTitleScreen() {\n\n defaultSetup();\n vm.showTitleScreen();\n }", "title": "" }, { "docid": "450a61c05ccd6736fa575b3eac77f50f", "score": "0.5536955", "text": "public void onResume() {\n super.onResume();\n ((MainActivity) getActivity())\n .setActionBarTitle(\"Search Movie Rating\");\n }", "title": "" }, { "docid": "107b9f34e73bf80f1d1d90279bbda32f", "score": "0.5533465", "text": "private void showMovieOverview() {\r\n\t\ttry {\r\n\t\t\tmovieList = logicController.getAllMovies();\t\r\n\t\t\tuserMovieList = logicController.getAllOwnedMovies();\r\n\t\t\t\r\n\t\t\tFXMLLoader loader = new FXMLLoader();\r\n\t\t\tloader.setLocation(View.class.getResource(\"MovieOverview.fxml\"));\r\n\t\t\t\r\n\t\t\tloader.setControllerFactory(new Callback<Class<?>, Object>() {\t\t\t\t\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic Object call(Class<?> controllerClass) {\r\n\t\t\t\t\tif (controllerClass == MovieViewController.class) {\r\n\t\t\t\t\t\tviewController = new MovieViewController(movieList, userMovieList, View.this);\r\n\t\t\t\t\t\treturn viewController;\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\treturn controllerClass.newInstance();\r\n\t\t\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\treturn controllerClass;\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t\t\r\n\t\t\tAnchorPane movieOverview = (AnchorPane) loader.load();\r\n\t\t\trootLayout.setCenter(movieOverview);\r\n\t\t\t\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t}", "title": "" }, { "docid": "9f0193c03beeb04cbe9c24c585c9a244", "score": "0.5527326", "text": "public void showAppInRoom(){\n\t\t\tSystem.out.println(\"*****************************************\");\n\t\t\tSystem.out.println(\"This is the list of the Appliance in Room \" + name);\n\t\t\tfor(String item : applianceMap.keySet()){\n\t\t\t\tSystem.out.println(applianceMap.get(item).showInfo());\n\t\t\t\tapplianceMap.get(item).showAllStatus();\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "1b240bd2548557100eab853b4a6ac22a", "score": "0.5520823", "text": "private void backButtonAction() {\n CurrentUI.changeScene(SceneNames.HOMEPAGE);\n }", "title": "" }, { "docid": "0223193bb1c8d70492ee5e78946ea7da", "score": "0.5517424", "text": "public void showWelcomeInfo() {\n JOptionPane.showMessageDialog(null,\n \"Welcome in program Moon Phase, this program display \"\n + \"information about phase of moon for selected day.\",\n \"Moon Phase\", JOptionPane.NO_OPTION);\n }", "title": "" }, { "docid": "2763e358fb6638a1be708c50ba19cbea", "score": "0.55122334", "text": "private void viewMenu() {\r\n System.out.println(\"\\nWelcome to Scheduler App:\");\r\n System.out.println(\"\\tn -> create a new task\");\r\n System.out.println(\"\\tc -> clear a time\");\r\n System.out.println(\"\\tf -> find a time and task\");\r\n System.out.println(\"\\tv -> view schedule\");\r\n System.out.println(\"\\ts -> save schedule\");\r\n System.out.println(\"\\tl -> load previous schedule\");\r\n System.out.println(\"\\tq -> quit\");\r\n }", "title": "" }, { "docid": "456ab2a75c55384da7373a6b11a54a0b", "score": "0.5501943", "text": "public void homeAct() {\r\n\t\t\tHomeUI h=new HomeUI();\r\n\t\t\th.build(container);\r\n\t\t\tdisappear();\r\n\t\t}", "title": "" }, { "docid": "96f67483b5c93ecf90f2a914beecb331", "score": "0.5500306", "text": "public void startTitle()\n\t{\n\t\tif (!inGameState(\"Pause\"))\n\t\t{\n\t\t\tgetCurrentState().start();\n\t\t}\n\t}", "title": "" }, { "docid": "6f9ea76554839916cae7d8622c69eb09", "score": "0.5468933", "text": "@Override\n public void onMovieSelected(Movie movie) {\n Intent movieIntent = new Intent(MainActivity.this, DetailActivity.class);\n movieIntent.putExtra(MOVIE_INTENT_KEY, movie);\n startActivity(movieIntent);\n }", "title": "" }, { "docid": "da990f0f4951b44f29b8b782a0c6b699", "score": "0.5467936", "text": "@Override\n\tpublic void onResume()\n\t{\n\t\tTextView title = (TextView) getActivity().findViewById(R.id.actionBarTitle);\n\t\ttitle.setText(\"Verkefni\");\n\t\tsuper.onResume();\n\t}", "title": "" }, { "docid": "ab2577fac8e58071715d58e848acbd91", "score": "0.54521316", "text": "@Override\n public void noFavorites() {\n view.noFavorites(\"Nemate dogadaja oznacenih kao favorit!\");\n }", "title": "" }, { "docid": "6a4cb2db98d143ca6f72fa32ff4e63e7", "score": "0.5451382", "text": "private void showMainMenu() {\r\n ArrayList<String> strings = new ArrayList<>();\r\n strings.add(\"1: Accéder au magasin\");\r\n strings.add(\"2: Accéder à la banque\");\r\n strings.add(\"3: Accéder à la gestion du parc '\" + Park.getInstance().getName() + \"'\");\r\n strings.add(\"Q: Quitter le programme\");\r\n String[] valid = {\"1\", \"2\", \"3\", /*\"4\",*/ \"Q\", \"q\"};\r\n String action = this.view.showMenu(\"Main menu\", strings, valid);\r\n switch (action) {\r\n case \"1\":\r\n this.showShopMenu();\r\n break;\r\n case \"2\":\r\n this.showBankMenu();\r\n break;\r\n case \"3\":\r\n this.showParkMenu();\r\n break;\r\n case \"Q\":\r\n case \"q\":\r\n this.quitProgram();\r\n break;\r\n }\r\n }", "title": "" }, { "docid": "16ba90d51880d03ff46ba68c115ac513", "score": "0.54511577", "text": "public void listMovies() {\n for (Movie m : movies) {\n System.out.println(m.movieName());\n }\n }", "title": "" }, { "docid": "de3a4ce198bbd9ac8f32d342c35c3846", "score": "0.54301333", "text": "private void printWelcomeScreen() {\n System.out.println(\"Welcome\");\n System.out.println(\"Please insert your card\");\n }", "title": "" }, { "docid": "80aaa2e389b6de7bea768a4f6b6f9104", "score": "0.54182273", "text": "private void setupScreen() {\n removeEmptyListMessage();\n loadHomeData();\n }", "title": "" }, { "docid": "f86d87c2f07da0ed3287397fb1766717", "score": "0.54168475", "text": "@Override\n public void didShowMoreApps() {\n Log.i(TAG, \"MORE APPS SHOWED\");\n }", "title": "" }, { "docid": "1b436b813f273824512104936a7f94cd", "score": "0.5411443", "text": "private void goToMainScreen() {\n\t\tdisplay.resetView();\n\t\tdisplay.makeMainScreen(user.getSchedulableTypes());\n\t}", "title": "" }, { "docid": "b5f56558c6bf65197148c977df9c78e1", "score": "0.5400906", "text": "@Override\n\tprotected void onResume() {\n \tsuper.onResume();\n\t\tsetCurrentView(MenuItems.ABOUT);\n\t}", "title": "" }, { "docid": "26142866f59691a3cbb4ff4c3aec66e2", "score": "0.5387058", "text": "@Override\n\t/**\n\t * Override the SideMenuScene home function so the current \n\t * page is not reloaded.\n\t */\n\tpublic void home() {\n\t}", "title": "" }, { "docid": "4efcec19970985fe34c71a6f09e73a06", "score": "0.53858274", "text": "public void aboutToShow() {\n basicGradleUI.aboutToShow();\n }", "title": "" }, { "docid": "3c994f9ea130835ddb28c4e8f0952bfa", "score": "0.5376778", "text": "private void showSelectedMovie(MovieItems items){\n Intent intent = new Intent(UpcomingActivity.this, DetailMovieItem.class);\n intent.putExtra(EXTRA_TITLE, items.getTitle());\n intent.putExtra(EXTRA_OVERVIEW, items.getOverview());\n intent.putExtra(EXTRA_IMAGE, items.getPosterPath());\n startActivity(intent);\n }", "title": "" }, { "docid": "1df90dd3071c15004dd18ad30c3229eb", "score": "0.53669965", "text": "public void splashScreen() {\n System.out.println(\"Welcome to the Traveling Alchemist\");\n System.out.println();\n }", "title": "" }, { "docid": "0bc60963a43b725a26f06fa3f51ffd81", "score": "0.5366108", "text": "public interface HomeActionListener {\n /**\n * 从桌面返回到 app 的标准入口\n * */\n void onBackFromHome();\n\n /**\n * 按下 home 键\n * */\n void onHome();\n\n\n /**\n * 最近任务菜单\n * */\n void onRecentApps();\n}", "title": "" }, { "docid": "fde6a82680226184ae815d74975f0fc7", "score": "0.5362992", "text": "private void showAppInfo() {\n\n returnActionAppInfo=alertDialogBox.appInfoDialog();\n\n /* returnActionAppInfo= alertDialogBox.appInfoDialog(msg);\n if(returnActionAppInfo!=null)\n {\n if(!returnActionAppInfo.equals(\"server not changed\"))\n sharedDatabase.setTargetServer(returnActionAppInfo);\n else\n sharedDatabase.setTargetServer(Constants.BASE_URL);\n }*/\n\n\n }", "title": "" }, { "docid": "135106d78e504cc92cc0bcc6e777a0db", "score": "0.5352282", "text": "private void openHomeView() {\n\t\t\n\t\t try {\n\t\t\tFXMLLoader loader = new FXMLLoader();\n\t\t\tloader.setLocation(getClass().getResource(\"/Presentation/View/FXML/Home.fxml\"));\n\t\t\tParent root = (Parent) loader.load();\n\t\t\tStage infouts = new Stage();\n\t\t infouts.setScene(new Scene (root));\n\t\t infouts.setTitle(\"Biblioteca Digitale UNIVAQ: Home\");\n\t\t infouts.show();\n\t\t infouts.setResizable(false);\n\t\t Stage windows = (Stage) userLab.getScene().getWindow();\n\t\t windows.close();\n\t\t } catch (Exception e) {e.printStackTrace();}\n\t\t \n\t}", "title": "" }, { "docid": "6fd03a19951c7b769b52465f3e724bf5", "score": "0.5351462", "text": "private void printWelcome()\n {\n String strext;\n writeToDisplay(\"\");\n writeToDisplay(\"Welcome to AMAZE!\");\n writeToDisplay(\"Navigate your way around until you find an exit.\");\n writeToDisplay(\"Beware of traps!!\");\n writeToDisplay(\"Type 'help' if you need help.\");\n writeToDisplay(\"\");\n writeToDisplay(\"You are at \" + currentRoom.getDescription());\n strext = \"Exits: \";\n if(currentRoom.northExit != null)\n {\n strext += \"north \";\n DrawSpace.hasNorth = true;\n }\n if(currentRoom.eastExit != null)\n { \n strext += \"east \";\n DrawSpace.hasEast = true;\n }\n if(currentRoom.southExit != null)\n {\n strext += \"south \";\n DrawSpace.hasSouth = true;\n }\n if(currentRoom.westExit != null)\n { \n strext += \"west \";\n DrawSpace.hasWest = true;\n }\n writeToDisplay(strext);\n writeToDisplay(\"\");\n //ds.repaint();\n }", "title": "" }, { "docid": "676672d9ab1c58684e3a805f111651d9", "score": "0.5349919", "text": "@Override\n\tpublic void printState() {\n\t\tif(state)System.out.println(\"Gladna\");\n\t\telse System.out.println(\"nije gladna\");\n\t}", "title": "" }, { "docid": "81fecfc890c069385649a2a12dbb0225", "score": "0.5344175", "text": "private void startScreen() {\n createTitle();\n refresh();\n }", "title": "" }, { "docid": "541d1f00e6f01e7cc300eef398a31a23", "score": "0.5340271", "text": "public void showHome() throws IOException {\n FXMLLoader loader = new FXMLLoader(getClass().getResource(\"/jelly/ui/view/user/home.fxml\"));\n Parent root;\n root = loader.load();\n this.scene.setRoot(root);\n ((HomeController)loader.getController()).connectedUser = connectedUser;\n ((HomeController)loader.getController()).jellyFacade = jellyFacade;\n\t\t((HomeController)loader.getController()).notificationNumber.setText(\"\"+jellyFacade.getUnreadNotificationList(connectedUser).size());\n ((HomeController)loader.getController()).setScene(scene);\n }", "title": "" }, { "docid": "72dd27252dac934eb47eae82c8026ec2", "score": "0.5336042", "text": "public void displayMainMenu() {\r\n System.out.println(\"\\nBack to Main Menu. \");\r\n }", "title": "" }, { "docid": "ab82157a1b834a5b37975e6b2fccb0ba", "score": "0.53285456", "text": "private void goToInitialScreen() {\n\t\tdisplay.resetView();\n\t\tdisplay.initialScreen();\n\t}", "title": "" }, { "docid": "18d79dd41c999d6cf264044b172a6e53", "score": "0.53271866", "text": "public void landingmenu() {\n System.out.println(\"Conference System\\n\");\n System.out.println(\"1: Log in\");\n System.out.println(\"2: Sign up\");\n\n System.out.println(\"\\n0: Quit\");\n }", "title": "" }, { "docid": "7c6e28bbc023167ec11b6f6cc5191be8", "score": "0.5324092", "text": "@SuppressWarnings(\"StatementWithEmptyBody\")\n @Override\n public boolean onNavigationItemSelected(MenuItem item) {\n int id = item.getItemId();\n toolbar.setTitle(item.getTitle());\n if (id == R.id.mn_log_out) {\n if (Conections.isOnline(this))\n appLog.removeByName(this, APP_LOG, LOG_INFOR_SV);\n startActivityLogin();\n } else if (id == R.id.mn_top_he) {\n adsFull.showADSFull();\n setViewTop(KEY_TOP_HE);\n } else if (id == R.id.mn_top_khoa) {\n adsFull.showADSFull();\n setViewTop(KEY_TOP_KHOA);\n } else if (id == R.id.mn_top_nganh) {\n adsFull.showADSFull();\n setViewTop(KEY_TOP_NGANH);\n } else if (id == R.id.mn_top_lop) {\n adsFull.showADSFull();\n setViewTop(KEY_TOP_LOP);\n } else if (id == R.id.mn_ca_nhan) {\n adsFull.showADSFull();\n setViewSinhVien(sinhVien);\n } else if (id == R.id.mn_feedback)\n setViewFeedBack();\n else if (id == R.id.mn_danh_ngon)\n setViewDanhNgon();\n else if (id == R.id.mn_help)\n setViewHelp();\n else if (id == R.id.mn_vnews) {\n Uri uri = Uri.parse(\"market://details?id=com.duongstudio.videotintuc\");\n Intent goToMarket = new Intent(Intent.ACTION_VIEW, uri);\n goToMarket.addFlags(Intent.FLAG_ACTIVITY_NO_HISTORY |\n Intent.FLAG_ACTIVITY_NEW_DOCUMENT |\n Intent.FLAG_ACTIVITY_MULTIPLE_TASK);\n try {\n this.startActivity(goToMarket);\n } catch (ActivityNotFoundException e) {\n this.startActivity(new Intent(Intent.ACTION_VIEW,\n Uri.parse(\"http://play.google.com/store/apps/details?id=com.duongstudio.videotintuc\")));\n }\n }\n DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout);\n drawer.closeDrawer(GravityCompat.START);\n return true;\n }", "title": "" }, { "docid": "76f548f26b4ffc15345cc776fc68546b", "score": "0.53118664", "text": "private void winnerState() {\n System.out.println(MarioConstants.GAME_OVER_WIN);\n System.exit(0);\n }", "title": "" }, { "docid": "1f1ebc3c01aa4dc0713e669f11e0f4ad", "score": "0.5310425", "text": "@Override\n public void navigateToHome() {\n }", "title": "" }, { "docid": "7ed636cb8cbcfc0051408176c85e9c10", "score": "0.53033924", "text": "private void printWelcome()\n\t{\n\t\tSystem.out.println();\n\t\tSystem.out.println(\"Welcome to Zork!\");\n\t\tSystem.out.println(\"Zork is a new, incredibly boring adventure game.\");\n\t\tSystem.out.println(\"Type 'help' if you need help.\");\n\t\tSystem.out.println();\n\t\tSystem.out.println(currentRoom.longDescription());\n\t}", "title": "" }, { "docid": "a0cb9946f704a0a6500681af8b3a3ecc", "score": "0.5292459", "text": "private void showGlobalContextActionBar() {\n ActionBar actionBar = getActionBar();\n actionBar.setDisplayShowTitleEnabled(true);\n actionBar.setNavigationMode(ActionBar.NAVIGATION_MODE_STANDARD);\n actionBar.setTitle(R.string.app_name);\n }", "title": "" }, { "docid": "a0cb9946f704a0a6500681af8b3a3ecc", "score": "0.5292459", "text": "private void showGlobalContextActionBar() {\n ActionBar actionBar = getActionBar();\n actionBar.setDisplayShowTitleEnabled(true);\n actionBar.setNavigationMode(ActionBar.NAVIGATION_MODE_STANDARD);\n actionBar.setTitle(R.string.app_name);\n }", "title": "" }, { "docid": "5a6252d589606df4aa41976719f34fc4", "score": "0.52921474", "text": "public void printWelcome()\n {\n System.out.println();\n System.out.println(\"==================Welcome to AUTOPAL!===================\");\n System.out.println(\" Here you can store and overview all expences about \");\n System.out.println(\"your vehicles and save future tasks that you need to do.\");\n System.out.println();\n\n }", "title": "" }, { "docid": "3656ddbe6db324735dda038c03197ccd", "score": "0.52848756", "text": "private void pickActiveMovie() {\n\n // If the user doesn't have any movies, let them know how to get some.\n // Otherwise, pick a random one to showcase in the info bar.\n if (movieList.size() == 0)\n activeMovie = new MovieModel(\"\", \"No Movies.\", \"\", \"Be sure to set up a folder on\" +\n \" your drive to store your movies with FILE > SET TARGET DIRECTORY. Then, you can add movies with\" +\n \" FILE > ADD. Enjoy watching!\", \"\");\n else {\n Random rand = new Random();\n int index = rand.nextInt(movieList.size());\n activeMovie = movieList.get(index);\n }\n }", "title": "" }, { "docid": "94443d9c6a62e969dc95c16e9d99f819", "score": "0.52749056", "text": "private void showGlobalContextActionBar() {\r\n ActionBar actionBar = getActionBar();\r\n actionBar.setDisplayShowTitleEnabled(true);\r\n actionBar.setNavigationMode(ActionBar.NAVIGATION_MODE_STANDARD);\r\n actionBar.setTitle(R.string.app_name);\r\n }", "title": "" }, { "docid": "1ab1d4358bac0140326c6d8205a10afd", "score": "0.5272929", "text": "@FXML @Override\n\tpublic boolean loadHomeScreen() {\n\t\tboolean exit = super.loadHomeScreen();\n\t\tif (exit) { stopAnimations(); }\n\t\treturn exit;\n\t}", "title": "" }, { "docid": "22a1c513d978388d684693ec51a2c081", "score": "0.52684015", "text": "public void print() {\n\t\tSystem.out.println(\"Song: \" + title + \"\\n\" + \n\t\t\t\t\"Artist: \" + artist + \"\\n\" + \n\t\t\t\t\"Genre: \" + (genre == \"\" ? \"N/A\": genre)); //Prints N/A if genre is Not Available\n\t}", "title": "" }, { "docid": "f9472ce08977cfbe69aed3600b0306c4", "score": "0.5267687", "text": "private void launchHomeScreen() {\n prefManager.setFirstTimeLaunch(false);\n startActivity(new Intent(Welcome.this, StartScreenActivity.class));\n finish();\n }", "title": "" }, { "docid": "70ebecaa696d2411e8663f4ccbca24c3", "score": "0.52566457", "text": "public void onBackButtonClick(ActionEvent event) throws IOException {\n Main.switchScenes(\"Brigham and Women's\", \"/HomePage.fxml\");\n }", "title": "" }, { "docid": "480fe90b059f5b4bf255e6ae24b801f5", "score": "0.5252223", "text": "public void homeClicked(){\n if(appTrayFadeInOut){\n appDrawerClickListener.resetVisibilityAndOther();\n appDrawerToggleWithAnim();\n }\n else if(appTraySlideInOUt){\n appDrawerClickListener.resetVisibilityAndOther();\n appDrawerToggleWithAnim();\n }\n }", "title": "" }, { "docid": "ba166ab1028767ea0ab505138cb554c9", "score": "0.52482456", "text": "public void showTitleScreen() {\n try {\n FXMLLoader loader = new FXMLLoader();\n loader.setLocation(Main.class\n .getResource(\"../view/TitleScreen.fxml\"));\n AnchorPane personOverview = (AnchorPane) loader.load();\n rootLayout.setCenter(personOverview);\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "b78551aecc2f26ccba8f18b44cedb25c", "score": "0.5245774", "text": "private void connected() {\n\t\tsetTitle(\"Air Module Connected\");\n\t}", "title": "" }, { "docid": "c56798d5406dbe2473e30ec5d6e6b150", "score": "0.5245447", "text": "public void menu() {\n System.out.println(\"\\nPlease select from the following options\");\n System.out.println(\"\\titem -> filters log by item\");\n System.out.println(\"\\tcategory -> filters log by category\");\n System.out.println(\"\\tremove -> remove an expense\");\n System.out.println(\"\\thome -> see home menu\");\n }", "title": "" }, { "docid": "1d82c09cd127d0547b7f66bafdae03d0", "score": "0.52326524", "text": "@FXML\n private void forfeit(ActionEvent event) {\n Navigator.loadScreen(new MainMenuController());\n }", "title": "" }, { "docid": "7d37c6716bf29f3168e653798286d6b2", "score": "0.5226247", "text": "@Override\n public void actionPerformed(ActionEvent ae)\n {\n // WE ONLY LET THIS HAPPEN IF THE SPLASH SCREEN IS VISIBLE\n \n \n if (miniGame.isCurrentScreenState(LEVEL_SCORE_SCREEN_STATE) )\n {\n \n //no need to load the level, the levelselect button did that in order to\n //display past scores.\n \n // GO TO THE GAME\n miniGame.switchToGameplayScreen();\n }\n }", "title": "" }, { "docid": "5258e033710fd7dc383da70f6627b1f4", "score": "0.5225304", "text": "private VocabularyManagerState runMainMenu()\n {\n printMainMenu();\n return handleMainMenuInput(InputHandler.get());\n }", "title": "" }, { "docid": "6ab2ecc8286ca634237a2959b7260bb1", "score": "0.5224763", "text": "private void printWelcome() {\n\t\tSystem.out.println(\"This is the story of Bob the Bored Worker.\");\n\t\tSystem.out.println(\"He lives the ordinary life.\");\n\t\tSystem.out.println(\"Until one day...\");\n\t\tprintRoom();\n\t}", "title": "" }, { "docid": "1c17c014ae1a119d69d574cefa1be970", "score": "0.52137554", "text": "@FXML\n private void switchToHome() throws IOException {\n \tSystem.out.println(\"\\n\\nswitchToHome method in DeckStatsPageController class has been activated...\\n\\n\");\n App.setRoot(\"primary\");\n }", "title": "" }, { "docid": "08fb0a807071fccd3243d19c4baef14a", "score": "0.5212227", "text": "@Override\n public void onEmptyHomeList() {\n showEmptyListMessage();\n }", "title": "" }, { "docid": "e8a9800d4f6975979eefca2f5a33da5c", "score": "0.5210394", "text": "private void printWelcome()\r\n\t {\r\n\t\t System.out.println(\"Welcome to the Hair and Tortoise game!\\n\");\t \r\n\t }", "title": "" }, { "docid": "8769d166428f9701be54f61ed7b68dae", "score": "0.5204948", "text": "public void switchToMainScreen() {\r\n this.mainView.resetMainView();\r\n this.windowCards.show(this.getContentPane(), \"MainView\");\r\n }", "title": "" }, { "docid": "64fad7fcc5da9df6d3ef5d3e1f802de0", "score": "0.52017254", "text": "private void loadGameOverScreen() {\n\t\tgame_screen = GAME_OVER_SCREEN;\n\t}", "title": "" }, { "docid": "f7dfbede034faf4cc9945a6cc8f9d168", "score": "0.5201271", "text": "public interface MainView {\n\n void showLoading(boolean show);\n\n void displayMovies(List<Movie> results);\n\n void showError(String message);\n}", "title": "" }, { "docid": "1f90db78812ce613910cda94ee1962d3", "score": "0.52007014", "text": "@Override\n public void showMainScreen() {\n showScreen(BalloonScreenTypeEnum.MAINMENU_SCREEN);\n }", "title": "" }, { "docid": "047bff053f660131027df777e5c13c8d", "score": "0.5197724", "text": "public static void noFavoriteMoviesToast(Context context) {\n Toast.makeText(context, R.string.no_favorite_movies, Toast.LENGTH_LONG).show();\n\n }", "title": "" }, { "docid": "5ffda5794b23de2b9701783573070bc8", "score": "0.519223", "text": "@Override\n \t\tpublic void didShowMoreApps() {\n \t\t\t\n \t\t}", "title": "" }, { "docid": "5ab522e6abfe2c988fc90d93aa67f44d", "score": "0.5191834", "text": "private void initHome() {\n\t\tLXHUser user = new LXHUserDao(this).getCurrentUserInfo(App.pre.getInt(Global.UID, -1));\r\n\t\tcurrentCity = user.getHome();\r\n\t\tpublishHomeText.setText(user.getHome()+\"话\");\r\n\t}", "title": "" }, { "docid": "855e2556d84da8b831f991f421ecbbba", "score": "0.5190563", "text": "@FXML\n void goHome(ActionEvent event) \n {\n \t\n \tbtnHome.getScene().getWindow().hide(); //hiding primary window\n\t\t\n \t \tStage primaryStage = new Stage();\n \t \tCustomerMainWindow aFrame = new CustomerMainWindow();\n\t\t\ttry {\n\t\t\t\taFrame.start(primaryStage);\n\t\t\t} catch (IOException e) {\n\t\t\t\tSystem.out.println(\"Cannot start Customer main Window\");\n\t\t\t}\n }", "title": "" }, { "docid": "16f8ec293005d735acb9267b60d252ff", "score": "0.5190376", "text": "@FXML\r\n void home(ActionEvent event) throws Exception {\r\n \tGeneralMethods.ChangeScene(\"MainMenu\", \"MainMenu\");\r\n }", "title": "" }, { "docid": "809f1c5a3d4c8a21747d8c6bc5fc4785", "score": "0.51885235", "text": "public abstract void onShow();", "title": "" }, { "docid": "e53cc231c53074869e59c5f55e2a66e7", "score": "0.518766", "text": "protected void homeButtonActionPerformed(ActionEvent evt) {\n\t\tnew ViewMenuPage().setVisible(true);\n\t\tthis.setVisible(false);\t\t\n\t}", "title": "" }, { "docid": "8167ee5db3c02b4cc9fc54d9b2d3cd46", "score": "0.51816124", "text": "public void display_main(View view) {\n play_screen.score = 0;\n Intent intent = new Intent(this, main_screen.class);\n startActivity(intent);\n }", "title": "" }, { "docid": "d5230822b88e6ea7e53f310db1d5be1e", "score": "0.5181424", "text": "public void introDisplay() {\r\n System.out.println(\"Welcome to a game of Domino!\");\r\n }", "title": "" }, { "docid": "53729401ff134935a4529e7e3bc8fc81", "score": "0.5181422", "text": "private void FavJump(){\n if(favorite_set.isEmpty()){ //User has nothing saved\n Toast.makeText(getApplicationContext(), R.string.empty_favorites, Toast.LENGTH_LONG).show();\n } else{\n List<String> favorites_list = new ArrayList<String>(favorite_set);\n Intent launchIntent = new Intent(this, ListActivity.class);\n launchIntent.putExtra(\"page_title\", \"Favorites\"); //Title to be set\n launchIntent.putExtra(\"title_list\", new SerializableList(favorites_list)); //Send list as serializable\n this.startActivity(launchIntent);\n }\n }", "title": "" }, { "docid": "dc239e618cd0637e10b0d01098af4ec0", "score": "0.5179604", "text": "@Override\n public void onStart() {\n super.onStart();\n updateMovies();\n }", "title": "" }, { "docid": "5a2f5659932b47f137f25a2be3eb8851", "score": "0.51766557", "text": "public void mainMenu() {\r\n clearScreen(OS);\r\n System.out.println(CONGKAK); \r\n System.out.println(\" +-------------------------+ \");\r\n System.out.println(\" | MAIN MENU | \");\r\n System.out.println(\" +-------------------------+ \");\r\n System.out.println(\" | 1 Play | \");\r\n System.out.println(\" | 2 About | \");\r\n System.out.println(\" | 3 Highscores | \");\r\n System.out.println(\" | 4 Exit | \");\r\n System.out.println(\" +-------------------------+ \");\r\n System.out.println();\r\n }", "title": "" }, { "docid": "0924319595940cfd091019080f46edb5", "score": "0.517447", "text": "public void printWelcomeScreen() {\n printFile(\"res/home.txt\");\n }", "title": "" }, { "docid": "7f5b14cf698c7b7841f77baa32546192", "score": "0.51709116", "text": "public abstract void onWelcome();", "title": "" }, { "docid": "791f8ca00b9b8eaabc2d6caf2c47ad20", "score": "0.5169876", "text": "public void welcomeToGame() {\r\n\t\tSystem.out.println(\"Welcome to the game Pig.\");\r\n\t}", "title": "" }, { "docid": "930cfb07e922fd5d4042f6fb476bb87b", "score": "0.5167366", "text": "private void homemenu() \n\n\t{\n\tstartActivity (new Intent(getApplicationContext(), Home.class));\n\n\n\t}", "title": "" }, { "docid": "9423f95f40af824e0f47a167f4c62096", "score": "0.5159352", "text": "public void startApp() {\n display.setCurrent(sample);\n }", "title": "" }, { "docid": "074a0d5ef824c4610795a4dd46d93585", "score": "0.5158389", "text": "@Override\r\n\tpublic void moodReceived(MoodEvent event) {\n\t\tif( event.mood() == Mood.HAPPY ) {\r\n System.out.println( \"Sun is shining!\" );\r\n }\r\n else if(event.mood() == Mood.ANNOYED) {\r\n System.out.println( \"Cloudy Skies!\" );\r\n }\r\n else {\r\n System.out.println( \"Lightning rains from the heavens!\" );\r\n }\r\n\t}", "title": "" }, { "docid": "bcaa1e65c4adc931bece8d918d916d87", "score": "0.5150827", "text": "@Override\n public void onStart () {\n super.onStart();\n updateMovies();\n }", "title": "" } ]
0c3568fc4d2ef3c17fcb4c390626244c
Get real file path from URI
[ { "docid": "31383a7ca2ef61deeaa7c97ed069113e", "score": "0.68429804", "text": "public String getRealPathFromUri(Uri contentUri) {\n String path = \"\";\n if (getContentResolver() != null) {\n Cursor cursor = getContentResolver().query(contentUri, null, null, null, null);\n if (cursor != null) {\n cursor.moveToFirst();\n int idx = cursor.getColumnIndex(MediaStore.Images.ImageColumns.DATA);\n path = cursor.getString(idx);\n cursor.close();\n }\n }\n return path;\n\n }", "title": "" } ]
[ { "docid": "afae55be5fcc49ebee964d2d6b754b46", "score": "0.7742195", "text": "private String getRealPathFromURI(Uri uri) {\n // Will return \"image:x*\"\n String wholeID = DocumentsContract.getDocumentId(uri);\n\n // Split at colon, use second item in the array\n String id = wholeID.split(\":\")[1];\n\n String[] column = { MediaStore.Images.Media.DATA };\n\n // where id is equal to\n String sel = MediaStore.Images.Media._ID + \"=?\";\n\n Cursor cursor = getContentResolver().\n query(MediaStore.Images.Media.EXTERNAL_CONTENT_URI,\n column, sel, new String[]{ id }, null);\n\n String filePath = \"\";\n int columnIndex = cursor.getColumnIndex(column[0]);\n if (cursor.moveToFirst()) {\n filePath = cursor.getString(columnIndex);\n }\n\n cursor.close();\n return filePath;\n }", "title": "" }, { "docid": "91e7ac0ee4097503d396bd400f68a166", "score": "0.75166726", "text": "public static String getRealFilePath( final Context context, final Uri uri ) {\n\t if ( null == uri ) return null;\n\t final String scheme = uri.getScheme();\n\t String path = null;\n\t if ( scheme == null )\n\t path = uri.getPath();\n\t else if ( ContentResolver.SCHEME_FILE.equals( scheme ) ) {\n\t path = uri.getPath();\n\t } else if ( ContentResolver.SCHEME_CONTENT.equals( scheme ) ) {\n\t Cursor cursor = context.getContentResolver().query( uri, new String[] { ImageColumns.DATA }, null, null, null );\n\t if ( null != cursor ) {\n\t if ( cursor.moveToFirst() ) {\n\t int index = cursor.getColumnIndex( ImageColumns.DATA );\n\t if ( index > -1 ) {\n\t path = cursor.getString( index );\n\t }\n\t }\n\t cursor.close();\n\t }\n\t }\n\t return path;\n\t}", "title": "" }, { "docid": "1d9f874723e40ef5e98773e442bcaf7c", "score": "0.74818456", "text": "private String getRealPathFromURI(Uri contentUri) {\r\n\t\tString path = null;\r\n\t\tString[] proj = { MediaStore.MediaColumns.DATA };\r\n\t\tCursor cursor = getContentResolver().query(contentUri, proj, null,\r\n\t\t\t\tnull, null);\r\n\t\tif (cursor.moveToFirst()) {\r\n\t\t\tint column_index = cursor\r\n\t\t\t\t\t.getColumnIndexOrThrow(MediaStore.MediaColumns.DATA);\r\n\t\t\tpath = cursor.getString(column_index);\r\n\t\t}\r\n\t\tcursor.close();\r\n\t\treturn path;\r\n\t}", "title": "" }, { "docid": "77e0287ce89ee4b768df54ebcf70c548", "score": "0.7465066", "text": "String fileName(URI uri) {\n String urlString = uri.getPath();\n int begin = urlString.lastIndexOf('/') + 1;\n return urlString.substring(begin).split(\"\\\\?\")[0].split(\"#\")[0];\n }", "title": "" }, { "docid": "2893f5fafffd797dd2ff09278192aa7e", "score": "0.72250104", "text": "private String getPath(Uri uri) {\n String[] projection = { MediaStore.MediaColumns.DATA};\n Cursor cursor = getContentResolver().query(uri, projection, null, null, null);\n if(cursor != null) {\n cursor.moveToFirst();\n int columnIndex = cursor.getColumnIndexOrThrow(MediaStore.MediaColumns.DATA);\n String filePath = cursor.getString(columnIndex);\n cursor.close();\n return filePath;\n }\n else\n return uri.getPath(); // FOR OI/ASTRO/Dropbox etc\n }", "title": "" }, { "docid": "22ff02d74848ac13d51ac39722edac5d", "score": "0.7168115", "text": "private String getRealPathFromURI(Uri data) {\n\t\tif (\"content\".equalsIgnoreCase(data.getScheme())) {\n\t\t\tCursor cursor = null;\n\t\t\tfinal String column = \"_data\";\n\t\t\tfinal String[] projection = { column };\n\t\t\ttry {\n\t\t\t\tcursor = getContentResolver().query(data, projection, null,\n\t\t\t\t\t\tnull, null);\n\t\t\t\tif (cursor != null && cursor.moveToFirst()) {\n\t\t\t\t\tfinal int column_index = cursor\n\t\t\t\t\t\t\t.getColumnIndexOrThrow(column);\n\t\t\t\t\treturn cursor.getString(column_index);\n\t\t\t\t}\n\t\t\t} finally {\n\t\t\t\tif (cursor != null)\n\t\t\t\t\tcursor.close();\n\t\t\t}\n\t\t}\n\t\t// File\n\t\telse if (\"file\".equalsIgnoreCase(data.getScheme())) {\n\t\t\treturn data.getPath();\n\t\t}\n\t\treturn null;\n\t}", "title": "" }, { "docid": "ff978db5bf19d39d6169ac481f3af08d", "score": "0.71420944", "text": "public static String getRealFilePath( final Context context, final Uri uri ) {\n if ( null == uri ) return null;\n final String scheme = uri.getScheme();\n String data = null;\n if ( scheme == null )\n data = uri.getPath();\n else if ( ContentResolver.SCHEME_FILE.equals( scheme ) ) {\n data = uri.getPath();\n } else if ( ContentResolver.SCHEME_CONTENT.equals( scheme ) ) {\n Cursor cursor = context.getContentResolver().query( uri, new String[] { MediaStore.Images.ImageColumns.DATA }, null, null, null );\n if ( null != cursor ) {\n if ( cursor.moveToFirst() ) {\n int index = cursor.getColumnIndex( MediaStore.Images.ImageColumns.DATA );\n if ( index > -1 ) {\n data = cursor.getString( index );\n }\n }\n cursor.close();\n }\n }\n return data;\n }", "title": "" }, { "docid": "fec3188fb234339686f2a9ffc4fa31a0", "score": "0.7056147", "text": "private String getPath(Uri uri) {\n // just some safety built in\n if( uri == null ) {\n // TODO perform some logging or show user feedback\n return null;\n }\n Cursor cursor = getContentResolver().query(uri, null, null, null, null);\n cursor.moveToFirst();\n String document_id = cursor.getString(0);\n document_id = document_id.substring(document_id.lastIndexOf(\":\")+1);\n cursor.close();\n\n cursor = getContentResolver().query(\n android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI,\n null, MediaStore.Images.Media._ID + \" = ? \", new String[]{document_id}, null);\n cursor.moveToFirst();\n String path = cursor.getString(cursor.getColumnIndex(MediaStore.Images.Media.DATA));\n cursor.close();\n\n return path;\n }", "title": "" }, { "docid": "984d7bf049a684f012346c35e64768cc", "score": "0.7008684", "text": "public abstract String getUriPath();", "title": "" }, { "docid": "308877d0b5ea809869010d3344846727", "score": "0.67852116", "text": "public String getPath(Uri uri) {\n Cursor cursor = getActivity().getContentResolver().query(uri, null, null, null, null);\n cursor.moveToFirst();\n String document_id = cursor.getString(0);\n document_id = document_id.substring(document_id.lastIndexOf(\":\") + 1);\n cursor.close();\n\n cursor = getActivity().getContentResolver().query(\n MediaStore.Images.Media.EXTERNAL_CONTENT_URI,\n null, MediaStore.Images.Media._ID + \" = ? \", new String[]{document_id}, null);\n cursor.moveToFirst();\n String path = cursor.getString(cursor.getColumnIndex(MediaStore.Images.Media.DATA));\n cursor.close();\n\n return path;\n }", "title": "" }, { "docid": "85646f69b834a34a6e473459455b015a", "score": "0.67187613", "text": "public static String getRealPathFromURI(Uri contentUri, Activity activity) {\n String pathFromURI = null;\n String[] proj = {MediaStore.Images.Media.DATA};\n Cursor cursor = activity.getContentResolver().query(contentUri, proj, null, null, null);\n if (cursor != null) {\n if (cursor.moveToFirst()) {\n int column_index = cursor.getColumnIndexOrThrow(MediaStore.Images.Media.DATA);\n pathFromURI = cursor.getString(column_index);\n }\n cursor.close();\n }\n return pathFromURI;\n }", "title": "" }, { "docid": "ec70911c2517c96b7354a1c8b09f59e8", "score": "0.66721183", "text": "public String getFileName(Uri uri){\n\n String result=null;\n\n if(uri.getScheme().equals(\"content\")){\n\n Cursor cursor=getContentResolver().query(uri,null,null,null,null);\n\n try{\n if(cursor!=null && cursor.moveToFirst()){\n result=cursor.getString(cursor.getColumnIndex(OpenableColumns.DISPLAY_NAME));\n }\n }finally {\n cursor.close();\n }\n\n }\n else if(result==null){\n\n result=uri.getPath();\n int cut=result.lastIndexOf('/');\n\n if(cut!=1){\n result=result.substring(cut+1);\n }\n }\n return result;\n\n }", "title": "" }, { "docid": "c937c51b120793df614ec6faadd0332f", "score": "0.66639805", "text": "public String getPath(Uri uri){\n String path = \"\";\n Cursor cursor = getContentResolver().query(uri,null,null,null,null);\n cursor.moveToFirst();\n String document_id = cursor.getString(0);\n document_id = document_id.substring(document_id.lastIndexOf(\":\")+1);\n cursor.close();\n\n cursor = getContentResolver().query(\n MediaStore.Images.Media.EXTERNAL_CONTENT_URI,null,MediaStore.Images.Media._ID+\" = ? \",new String[]{document_id},null);\n cursor.moveToFirst();\n if (cursor != null && cursor.moveToFirst()) {\n path = cursor.getString(cursor.getColumnIndex(MediaStore.Images.Media.DATA));\n }\n cursor.close();\n return path;\n }", "title": "" }, { "docid": "7d8f84caef9ea97a25e0b87595a8a979", "score": "0.6652546", "text": "public String getFilePath(Uri uri) {\n\n String[] strArr = { MediaStore.Images.Media.DATA };\n String str = null;\n Cursor cursor = getContentResolver().query(uri, strArr, null, null, null);\n if(cursor.moveToFirst()){;\n int column = cursor.getColumnIndexOrThrow(MediaStore.Images.Media.DATA);\n str = cursor.getString(column);\n }\n cursor.close();\n return str;\n }", "title": "" }, { "docid": "578df9250e4b6e645bf4d28ada90211c", "score": "0.6620728", "text": "String uri();", "title": "" }, { "docid": "cdbe7601b1f0f8153fdc2d9582485b3a", "score": "0.6596205", "text": "private String getFilenameFromUricontent(Uri uri) {\n\t\tString[] proj = { MediaStore.Images.Media.DATA }; \r\n\t\tCursor actualimagecursor = TopicSendActivity.this.managedQuery(uri,proj,null,null,null); \r\n\t\tint actual_image_column_index = actualimagecursor.getColumnIndexOrThrow(MediaStore.Images.Media.DATA); \r\n\t\tactualimagecursor.moveToFirst(); \r\n\t\tString img_path = actualimagecursor.getString(actual_image_column_index); \r\n\t\treturn img_path;\r\n\t}", "title": "" }, { "docid": "e4dc9e0730780da9ecc7afcdf9f30f48", "score": "0.6585557", "text": "public static String getFilePathFromURI(Context context, Uri contentUri) {\n String fileName = getFileName(contentUri);\n if (!TextUtils.isEmpty(fileName)) {\n File copyFile = new File(TEMP_DIR_PATH + File.separator + fileName);\n copy(context, contentUri, copyFile);\n return copyFile.getAbsolutePath();\n }\n return null;\n }", "title": "" }, { "docid": "e7f2a1735e9ea62ac375eaa310a248f2", "score": "0.655004", "text": "public String getFileName(Uri uri) {\n String result = null;\n if (uri.getScheme().equals(\"content\")) {\n Cursor cursor = getContentResolver().query(uri, null, null, null, null);\n try {\n if (cursor != null && cursor.moveToFirst()) {\n result = cursor.getString(cursor.getColumnIndex(OpenableColumns.DISPLAY_NAME));\n }\n } finally {\n cursor.close();\n }\n }\n if (result == null) {\n result = uri.getPath();\n int cut = result.lastIndexOf('/');\n if (cut != -1) {\n result = result.substring(cut + 1);\n }\n }\n return result;\n }", "title": "" }, { "docid": "5ded45c50261688b570de6552a180f40", "score": "0.6548404", "text": "public String getPath(Uri uri) {\n if( uri == null ) {\n // TODO perform some logging or show user feedback\n return null;\n }\n // try to retrieve the image from the media store first\n // this will only work for images selected from gallery\n String[] projection = { MediaStore.Images.Media.DATA };\n Cursor cursor = getActivity().managedQuery(uri, projection, null, null, null);\n if( cursor != null ){\n int column_index = cursor\n .getColumnIndexOrThrow(MediaStore.Images.Media.DATA);\n cursor.moveToFirst();\n return cursor.getString(column_index);\n }\n // this is our fallback here\n return uri.getPath();\n }", "title": "" }, { "docid": "ce88c77739fb5eb09cf82cb504700a9a", "score": "0.6543645", "text": "java.lang.String getUri();", "title": "" }, { "docid": "ce88c77739fb5eb09cf82cb504700a9a", "score": "0.6543645", "text": "java.lang.String getUri();", "title": "" }, { "docid": "ce88c77739fb5eb09cf82cb504700a9a", "score": "0.6543645", "text": "java.lang.String getUri();", "title": "" }, { "docid": "ce88c77739fb5eb09cf82cb504700a9a", "score": "0.6543645", "text": "java.lang.String getUri();", "title": "" }, { "docid": "ce88c77739fb5eb09cf82cb504700a9a", "score": "0.6543637", "text": "java.lang.String getUri();", "title": "" }, { "docid": "b4392d652127c9c3a748bd70fa74dad9", "score": "0.6534874", "text": "private IPath toLocalPath(URI uri) {\n\t\ttry {\n\t\t\treturn new Path(EFS.getStore(uri).toLocalFile(EFS.NONE, null).getAbsolutePath());\n\t\t} catch (CoreException e) {\n\t\t\treturn FileUtil.toPath(uri);\n\t\t}\n\t}", "title": "" }, { "docid": "38e2144ee73ada0818f26f3ce544ff93", "score": "0.6521319", "text": "public static String getPath(Uri uri, FragmentActivity fragment) {\n String[] projection = {MediaStore.Images.Media.DATA};\n Cursor cursor = fragment.getContentResolver().query(uri, projection, null, null, null);\n if (cursor == null) return null;\n int colum_index = cursor.getColumnIndexOrThrow(MediaStore.Images.Media.DATA);\n cursor.moveToFirst();\n String s = cursor.getString(colum_index);\n cursor.close();\n return s; // Devuelve la ruta.\n }", "title": "" }, { "docid": "f443ef727eb821301a260c092e2124ed", "score": "0.6519698", "text": "public static String getRealPathFromURI(Context aContext, Uri contentUri) {\r\n String[] proj = { MediaStore.Images.Media.DATA };\r\n ContentResolver contentResolver = aContext.getContentResolver();\r\n Cursor cursor = contentResolver.query(contentUri, proj, null, null, null);\r\n int column_index = cursor.getColumnIndexOrThrow(MediaStore.Images.Media.DATA);\r\n cursor.moveToFirst();\r\n String strPath = cursor.getString(column_index);\r\n cursor.close();\r\n return strPath;\r\n }", "title": "" }, { "docid": "049e22c1bf1370410d0e0a3d38589e86", "score": "0.65194947", "text": "private String getFilename(Uri uri) {\n String filename = uri.getLastPathSegment();\n String[] projection = {\n MediaStore.MediaColumns.DISPLAY_NAME,\n };\n Cursor cursor = getContentResolver().query(uri, projection, null, null, null);\n if (cursor != null) {\n cursor.moveToFirst();\n try {\n String columnValue = cursor.getString(cursor.getColumnIndexOrThrow(\n MediaStore.MediaColumns.DISPLAY_NAME));\n if (columnValue != null) {\n filename = new File(columnValue).getName();\n }\n } catch (IllegalArgumentException ignored) {\n }\n cursor.close();\n }\n return filename;\n }", "title": "" }, { "docid": "c020d86be0476f343417b8a04b16fafb", "score": "0.6506731", "text": "public String handleFileUri(Uri beamUri) {\n String fileName = beamUri.getPath();\n return fileName;\n }", "title": "" }, { "docid": "97ae8128599d229422ceb3099d9165c9", "score": "0.6499319", "text": "public String getRealPathFromUri(Uri contentUri) {\n Cursor cursor = null;\n try {\n String[] proj = {MediaStore.Images.Media.DATA};\n cursor = context.getContentResolver().query(contentUri, proj, null, null, null);\n assert cursor != null;\n int column_index = cursor.getColumnIndexOrThrow(MediaStore.Images.Media.DATA);\n cursor.moveToFirst();\n return cursor.getString(column_index);\n } finally {\n if (cursor != null) {\n cursor.close();\n }\n }\n }", "title": "" }, { "docid": "0e60efefe2d11be8e6b3cd0d40d1a50b", "score": "0.64966184", "text": "public String getPathFromGooglePhotosUri(Uri uriPhoto) {\r\n if (uriPhoto == null)\r\n return null;\r\n\r\n FileInputStream input = null;\r\n FileOutputStream output = null;\r\n try {\r\n ParcelFileDescriptor pfd = getContentResolver().openFileDescriptor(uriPhoto, \"r\");\r\n FileDescriptor fd = pfd.getFileDescriptor();\r\n input = new FileInputStream(fd);\r\n\r\n String tempFilename = getTempFilename(this);\r\n output = new FileOutputStream(tempFilename);\r\n\r\n int read;\r\n byte[] bytes = new byte[4096];\r\n while ((read = input.read(bytes)) != -1) {\r\n output.write(bytes, 0, read);\r\n }\r\n return tempFilename;\r\n } catch (IOException ignored) {\r\n // Nothing we can do\r\n } finally {\r\n closeSilently(input);\r\n closeSilently(output);\r\n }\r\n return null;\r\n }", "title": "" }, { "docid": "86f96d4b7e9116b093bd655f475344e2", "score": "0.6494685", "text": "public String getPath(Uri uri) {\n // just some safety built in\n if (uri == null) {\n // TODO perform some logging or show user feedback\n return null;\n }\n // try to retrieve the image from the media store first\n // this will only work for images selected from gallery\n String[] projection = {MediaStore.Images.Media.DATA};\n\n Cursor cursor = getContentResolver().query(uri, projection, null, null, null);\n if (cursor != null) {\n int column_index = cursor\n .getColumnIndexOrThrow(MediaStore.Images.Media.DATA);\n cursor.moveToFirst();\n String path = cursor.getString(column_index);\n cursor.close();\n return path;\n }\n // this is our fallback here\n return uri.getPath();\n }", "title": "" }, { "docid": "78c32213077c2dc386551a8944e3e0c4", "score": "0.6493684", "text": "public String getPath(Uri uri) {\n // just some safety built in\n if (uri == null) {\n // TODO perform some logging or show user feedback\n return null;\n }\n // try to retrieve the image from the media store first\n // this will only work for images selected from gallery\n String[] projection = {MediaStore.Images.Media.DATA};\n Cursor cursor = getContentResolver().query(uri, projection, null, null, null);\n if (cursor != null) {\n int column_index = cursor\n .getColumnIndexOrThrow(MediaStore.Images.Media.DATA);\n cursor.moveToFirst();\n String path = cursor.getString(column_index);\n cursor.close();\n return path;\n }\n\n // this is our fallback here\n return uri.getPath();\n }", "title": "" }, { "docid": "e356e2a0c9093056cba8f9a9d8545dfb", "score": "0.6481299", "text": "public String getPathFromUri(Uri uriPhoto) {\r\n if (uriPhoto == null)\r\n return null;\r\n\r\n if (SCHEME_FILE.equals(uriPhoto.getScheme())) {\r\n return uriPhoto.getPath();\r\n } else if (SCHEME_CONTENT.equals(uriPhoto.getScheme())) {\r\n final String[] filePathColumn = {MediaStore.MediaColumns.DATA,\r\n MediaStore.MediaColumns.DISPLAY_NAME};\r\n Cursor cursor = null;\r\n try {\r\n cursor = getContentResolver().query(uriPhoto, filePathColumn, null, null, null);\r\n if (cursor != null && cursor.moveToFirst()) {\r\n final int columnIndex = (uriPhoto.toString()\r\n .startsWith(\"content://com.google.android.gallery3d\")) ? cursor\r\n .getColumnIndex(MediaStore.MediaColumns.DISPLAY_NAME)\r\n : cursor.getColumnIndex(MediaStore.MediaColumns.DATA);\r\n\r\n // Picasa images on API 13+\r\n if (columnIndex != -1) {\r\n String filePath = cursor.getString(columnIndex);\r\n if (!TextUtils.isEmpty(filePath)) {\r\n return filePath;\r\n }\r\n }\r\n }\r\n } catch (IllegalArgumentException e) {\r\n // Nothing we can do\r\n Log.d(TAG, \"IllegalArgumentException\");\r\n e.printStackTrace();\r\n } catch (SecurityException ignored) {\r\n Log.d(TAG, \"SecurityException\");\r\n // Nothing we can do\r\n ignored.printStackTrace();\r\n } finally {\r\n if (cursor != null)\r\n cursor.close();\r\n }\r\n }\r\n return null;\r\n }", "title": "" }, { "docid": "9c613d96e18fae3f9ec8050a5784b799", "score": "0.6475838", "text": "public String getPath(Uri uri) {\n // just some safety built in\n if( uri == null ) {\n // TODO perform some logging or show user feedback\n return null;\n }\n // try to retrieve the image from the media store first\n // this will only work for images selected from gallery\n String[] projection = { MediaStore.Images.Media.DATA };\n Cursor cursor = managedQuery(uri, projection, null, null, null);\n if( cursor != null ){\n int column_index = cursor\n .getColumnIndexOrThrow(MediaStore.Images.Media.DATA);\n cursor.moveToFirst();\n return cursor.getString(column_index);\n }\n // this is our fallback here\n return uri.getPath();\n }", "title": "" }, { "docid": "360a5d0978246ba4dfe826902d60f4cf", "score": "0.6475529", "text": "java.lang.String getAbsolutePath();", "title": "" }, { "docid": "b689d1494aacb0ab3c72e6948a193ca0", "score": "0.64703846", "text": "public String getURL()\n {\n if (! isWindows())\n return escapeURL(\"file:\" + getFullPath());\n \n String path = getFullPath();\n int length = path.length();\n CharBuffer cb = new CharBuffer();\n \n // #2725, server/1495\n cb.append(\"file:\");\n \n char ch;\n int offset = 0;\n // For windows, convert /c: to c:\n if (length >= 3\n \t&& path.charAt(0) == '/'\n \t&& path.charAt(2) == ':'\n \t&& ('a' <= (ch = path.charAt(1)) && ch <= 'z'\n \t || 'A' <= ch && ch <= 'Z')) {\n // offset = 1;\n }\n else if (length >= 3\n \t && path.charAt(0) == '/'\n \t && path.charAt(1) == ':'\n \t && path.charAt(2) == '/') {\n cb.append('/');\n cb.append('/');\n cb.append('/');\n cb.append('/');\n offset = 3;\n }\n \n for (; offset < length; offset++) {\n ch = path.charAt(offset);\n \n if (ch == '\\\\')\n \tcb.append('/');\n else\n \tcb.append(ch);\n }\n \n return escapeURL(cb.toString());\n \n }", "title": "" }, { "docid": "fe083925a8abfd8d8d7792482f5e2c5b", "score": "0.64621025", "text": "public String getFileName(Uri uri) {\n String filename = null;\n /** Determines the name of the uri through the use of cursors */\n if (uri.getScheme().equals(\"content\")) {\n Cursor cursor = requireActivity().getContentResolver().query(uri, null, null, null, null);\n try {\n if (cursor != null && cursor.moveToFirst()) {\n filename = cursor.getString(cursor.getColumnIndex(OpenableColumns.DISPLAY_NAME));\n }\n } finally {\n cursor.close();\n }\n }\n if (filename==null) {\n filename = uri.getPath();\n int cut = filename.lastIndexOf('/');\n if (cut != -1) {\n filename = filename.substring(cut + 1);\n }\n }\n return filename;\n }", "title": "" }, { "docid": "75373e2af8aa45131ad2a62ff0a0e690", "score": "0.64294004", "text": "String getURI();", "title": "" }, { "docid": "75373e2af8aa45131ad2a62ff0a0e690", "score": "0.64294004", "text": "String getURI();", "title": "" }, { "docid": "7da8d922ee5ba71c97f974c08a1c4d95", "score": "0.64078474", "text": "public abstract String getFullPath();", "title": "" }, { "docid": "c04cdc79dc74c8beb2d21cfc8ad6baca", "score": "0.64041173", "text": "public String getPath(Uri uri) \n {\n // just some safety built in \n if( uri == null ) {\n return null;\n }\n // try to retrieve the image from the media store first\n // this will only work for images selected from gallery\n String[] projection = { MediaStore.Images.Media.DATA };\n @SuppressWarnings(\"deprecation\")\n\t\tCursor cursor = managedQuery(uri, projection, null, null, null);\n if( cursor != null ){\n int column_index = cursor\n .getColumnIndexOrThrow(MediaStore.Images.Media.DATA);\n cursor.moveToFirst();\n return cursor.getString(column_index);\n }\n // this is our fallback here\n return uri.getPath();\n }", "title": "" }, { "docid": "35588d106460907a5c12c12eb5f48875", "score": "0.63842636", "text": "public String getPath(Uri uri) {\n String[] projection = { MediaStore.Images.Media.DATA };\n Cursor cursor = managedQuery(uri, projection, null, null, null);\n int column_index = cursor\n .getColumnIndexOrThrow(MediaStore.Images.Media.DATA);\n cursor.moveToFirst();\n return cursor.getString(column_index);\n }", "title": "" }, { "docid": "abaf42229c942c26d9efef150cf28d87", "score": "0.6368008", "text": "public String getAbsolutePath(Uri uri) {\n String[] projection = {MediaStore.MediaColumns.DATA};\n\n // Cursor cursor = ((Activity) context).managedQuery(uri, projection,\n // null, null, null);\n Cursor cursor = context.getContentResolver().query(uri, projection,\n null, null, null);\n if (cursor != null) {\n int column_index = cursor.getColumnIndexOrThrow(MediaStore.MediaColumns.DATA);\n cursor.moveToFirst();\n return cursor.getString(column_index);\n } else return null;\n }", "title": "" }, { "docid": "3bc060fe31f372e2aa3dc08f47fd6961", "score": "0.6350815", "text": "public String getPathFromURI(Uri contentUri) {\n String res = null;\n String[] proj = {MediaStore.Images.Media.DATA};\n Cursor cursor = getContentResolver().query(contentUri, proj, null, null, null);\n if (cursor.moveToFirst()) {\n int column_index = cursor.getColumnIndexOrThrow(MediaStore.Images.Media.DATA);\n res = cursor.getString(column_index);\n }\n cursor.close();\n return res;\n }", "title": "" }, { "docid": "b2e59e20f27079862a2735fdf8e545af", "score": "0.6333901", "text": "private String getFilePathFromContentUri(Uri selectedVideoUri) {\n String filePath = null;\n String[] filePathColumn = {MediaStore.MediaColumns.DATA};\n\n ContentResolver contentResolver = pictureView.getContext().getContentResolver();\n\n Cursor cursor = contentResolver.query(selectedVideoUri, filePathColumn, null, null, null);\n if (cursor != null) {\n cursor.moveToFirst();\n int columnIndex = cursor.getColumnIndex(filePathColumn[0]);\n filePath = cursor.getString(columnIndex);\n cursor.close();\n }\n return filePath;\n }", "title": "" }, { "docid": "7ccee08c89d348b758b1397fb591eba6", "score": "0.63216275", "text": "private static File getFileFromContentUri(Uri contentUri, Context context) {\n if (contentUri == null) {\n return null;\n }\n File file = null;\n String filePath;\n String fileName;\n String[] filePathColumn = {MediaStore.MediaColumns.DATA, MediaStore.MediaColumns.DISPLAY_NAME};\n ContentResolver contentResolver = context.getContentResolver();\n Cursor cursor = contentResolver.query(contentUri, filePathColumn, null,\n null, null);\n if (cursor != null) {\n cursor.moveToFirst();\n filePath = cursor.getString(cursor.getColumnIndex(filePathColumn[0]));\n fileName = cursor.getString(cursor.getColumnIndex(filePathColumn[1]));\n cursor.close();\n if (!TextUtils.isEmpty(filePath)) {\n file = new File(filePath);\n }\n if (!file.exists() || file.length() <= 0 || TextUtils.isEmpty(filePath)) {\n filePath = getPathFromInputStreamUri(context, contentUri, fileName);\n }\n if (!TextUtils.isEmpty(filePath)) {\n file = new File(filePath);\n }\n }\n return file;\n }", "title": "" }, { "docid": "79596d5b6c7ff3b41957eb5d4fb27fe0", "score": "0.63169014", "text": "public String getPath(Uri uri) {\n String[] projection = { MediaStore.Images.Media.DATA };\n @SuppressWarnings(\"deprecation\")\n Cursor cursor = managedQuery(uri, projection, null, null, null);\n int column_index = cursor\n .getColumnIndexOrThrow(MediaStore.Images.Media.DATA);\n cursor.moveToFirst();\n return cursor.getString(column_index);\n }", "title": "" }, { "docid": "6e364262ffbed1b0b0a0e557a375d07e", "score": "0.63073015", "text": "public static String getPathFromHttpURI(final String uri)\n {\n // Return everything after (and including) the third slash\n // \"http://\" is (and always will be) 7 characters. And we only support http here\n return (uri == null) ? null : uri.substring(uri.indexOf('/', 7));\n }", "title": "" }, { "docid": "40e15e784947ea2ba0f46bee1ddd7884", "score": "0.62892723", "text": "URI uri();", "title": "" }, { "docid": "f0cee760256d629521a77d6fcf5ed66c", "score": "0.62865704", "text": "private static String extractPath(URI uri) {\n String path = uri.getRawPath();\n String query = uri.getRawQuery();\n if (query != null && !query.trim().isEmpty()) {\n path = path + \"?\" + query;\n }\n return path;\n }", "title": "" }, { "docid": "b7bbdca22f00fb762a1436bacd32f9bd", "score": "0.62797123", "text": "public static Path UriToPath(URI uri) throws IOException\n\t{\n\t\ttry\n\t\t{\n\t\t\t\n\t\t\treturn Paths.get(uri);\n\t\t}\n\t\tcatch(FileSystemNotFoundException e)\n\t\t{\n\t\t\tFileSystems.newFileSystem(uri, Collections.<String, Object> emptyMap());\n\t\t\treturn Paths.get(uri);\n\t\t\t\n\t\t}\n\t}", "title": "" }, { "docid": "ae78f45f836b4d59c49b2ab31f1b8272", "score": "0.62467146", "text": "String absolutePath();", "title": "" }, { "docid": "9371e2c492f1a65dd293d955ff796086", "score": "0.62438613", "text": "public String getPathFromURI(Uri contentUri) {\n String res = null;\n String[] proj = {MediaStore.Images.Media.DATA};\n for (int i = 0; i == proj.length; i++) {\n }\n\n Cursor cursor = getContentResolver().query(contentUri, proj, null, null, null);\n if (cursor.moveToFirst()) {\n int column_index = cursor.getColumnIndexOrThrow(MediaStore.Images.Media.DATA);\n res = cursor.getString(column_index);\n }\n cursor.close();\n return res;\n }", "title": "" }, { "docid": "ed4b6fd8cea9977c376ae5811e7492ed", "score": "0.62374556", "text": "public File getAsFile() {\n return new File(fileURI);\n }", "title": "" }, { "docid": "7d1c4ccd8beb3a16c16e96928f88abb1", "score": "0.6230096", "text": "java.lang.String getPath();", "title": "" }, { "docid": "7d1c4ccd8beb3a16c16e96928f88abb1", "score": "0.6230096", "text": "java.lang.String getPath();", "title": "" }, { "docid": "7d1c4ccd8beb3a16c16e96928f88abb1", "score": "0.6230096", "text": "java.lang.String getPath();", "title": "" }, { "docid": "4774048e909ff4169cc34ce0594bf9e9", "score": "0.6187065", "text": "public String getFilePath(String url) {\n assert mNativeImageFetcherBridge != 0;\n return nativeGetFilePath(mNativeImageFetcherBridge, url);\n }", "title": "" }, { "docid": "450e6ebfd3a94bc6eed04cb68f1918a6", "score": "0.61783946", "text": "public static Uri getUriFromFilename(String filename){\n Uri fileUri;\n File directory = getDocumentsDir();\n File file = new File(directory, filename);\n fileUri = Uri.fromFile(file);\n return fileUri;\n }", "title": "" }, { "docid": "42afbdddc9a0fd0b78396f90105dc46c", "score": "0.61661327", "text": "protected String decodePath(String uri){\n \n String path =null;\n \n try {\n path = URLDecoder.decode(uri.toString(), \"UTF-8\");\n \n } catch (UnsupportedEncodingException ex) {\n // oops\n }\n return path;\n }", "title": "" }, { "docid": "64339a6381d3758740ed01da4a2cc041", "score": "0.61632395", "text": "public String getPath(Uri uri) {\n if( uri == null ) {\n // TODO perform some logging or show user feedback\n return null;\n }\n // try to retrieve the image from the media store first\n // this will only work for images selected from gallery\n String[] projection = { MediaStore.Images.Media.DATA };\n Cursor cursor = getContentResolver().query(uri, projection, null, null, null);\n if( cursor != null ){\n int column_index = cursor.getColumnIndexOrThrow(MediaStore.Images.Media.DATA);\n cursor.moveToFirst();\n int columnIndex = cursor.getColumnIndex(projection[0]);\n String path = cursor.getString(columnIndex);\n cursor.close();\n //yourSelectedImage = BitmapFactory.decodeFile(filePath);\n return path;\n }\n // this is our fallback here\n return uri.getPath();\n }", "title": "" }, { "docid": "b00743b0c8b331cf6d12ccd83ae072ff", "score": "0.616007", "text": "public String getFileNameWithExtension(URI uri) {\n FileManagementInterface fileManagementModule = getFileManagementModule();\n return fileManagementModule.getFileNameWithExtension(uri);\n }", "title": "" }, { "docid": "7a2e356ea877fa04114013d9231a884f", "score": "0.6136224", "text": "public String getFileName(URI uri) {\n FileManagementInterface fileManagementModule = getFileManagementModule();\n String fileNameWithExtension = fileManagementModule.getFileNameWithExtension(uri);\n if (fileNameWithExtension.contains(\".\")) {\n return fileNameWithExtension.substring(0, fileNameWithExtension.indexOf('.'));\n }\n return fileNameWithExtension;\n }", "title": "" }, { "docid": "e9aec313a490012b4552e8597c131c54", "score": "0.61319536", "text": "public static String getPath(\n final Context context,\n final Uri uri\n )\n {\n\n // DocumentProvider\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT &&\n DocumentsContract.isDocumentUri(context, uri))\n {\n\n // ExternalStorageProvider\n if (isExternalStorageDocument(uri)) {\n final String docId = DocumentsContract.getDocumentId(uri);\n final String[] split = docId.split(\":\");\n final String type = split[0];\n\n if (\"primary\".equalsIgnoreCase(type)) {\n return Environment.getExternalStorageDirectory() + \"/\"\n + split[1];\n }\n }\n // DownloadsProvider\n else if (isDownloadsDocument(uri)) {\n\n final String id = DocumentsContract.getDocumentId(uri);\n final Uri contentUri = ContentUris.withAppendedId(\n Uri.parse(\"content://downloads/public_downloads\"),\n Long.valueOf(id));\n\n return getDataColumn(context, contentUri, null, null);\n }\n // MediaProvider\n else if (isMediaDocument(uri)) {\n final String docId = DocumentsContract.getDocumentId(uri);\n final String[] split = docId.split(\":\");\n final String type = split[0];\n\n Uri contentUri = null;\n if (\"image\".equals(type)) {\n contentUri = MediaStore.Images.Media.EXTERNAL_CONTENT_URI;\n } else if (\"video\".equals(type)) {\n contentUri = MediaStore.Video.Media.EXTERNAL_CONTENT_URI;\n } else if (\"audio\".equals(type)) {\n contentUri = MediaStore.Audio.Media.EXTERNAL_CONTENT_URI;\n }\n\n final String selection = \"_id=?\";\n final String[] selectionArgs = new String[]{split[1]};\n\n return getDataColumn(context, contentUri, selection,\n selectionArgs);\n }\n }\n // MediaStore (and general)\n else if (\"content\".equalsIgnoreCase(uri.getScheme())) {\n\n // Return the remote address\n if (isGooglePhotosUri(uri))\n return uri.getLastPathSegment();\n\n return getDataColumn(context, uri, null, null);\n }\n // File\n else if (\"file\".equalsIgnoreCase(uri.getScheme())) {\n return uri.getPath();\n }\n\n return null;\n }", "title": "" }, { "docid": "452f5c5bff3e6563418843559420d5c6", "score": "0.6121053", "text": "protected abstract Uri getBaseUri();", "title": "" }, { "docid": "141e6f8791a51f5aaea1d056b80f8d05", "score": "0.6114079", "text": "abstract public String getAbsolutePath();", "title": "" }, { "docid": "4ecd04eadbe7ca4ff7dc8565c6ce61f7", "score": "0.6108694", "text": "String path();", "title": "" }, { "docid": "3a2f9d8688b6471b4542bab41684e8d8", "score": "0.6085337", "text": "public File getPath();", "title": "" }, { "docid": "e73e4c9e13c89f410d4655aa328fdd75", "score": "0.604493", "text": "public static Uri generateUriFromFilePath(String path){\n if(path == null)\n return null;\n File file = new File(path);\n if(file.exists())\n return Uri.fromFile(file);\n else return null;\n }", "title": "" }, { "docid": "8ba1b719d5a86b65df5879d746c22ee1", "score": "0.603771", "text": "public static Uri getUriForFile(Context context, String path) {\n File requestFile = new File(path);\n try {\n return FileProvider.getUriForFile(\n context,\n context.getPackageName() + \".provider\",\n requestFile);\n } catch (Exception e) {\n e.printStackTrace();\n }\n return null;\n }", "title": "" }, { "docid": "4ca38cbf64775ecb6d36bb2ea705750d", "score": "0.6020807", "text": "public String getPath(Uri contentUri) {\n\n\t\t// can post image\n\t\tString[] proj = { MediaStore.Images.Media.DATA };\n\t\tCursor cursor = managedQuery(contentUri, proj, // Which columns to\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t// return\n\t\t\t\tnull, // WHERE clause; which rows to return (all rows)\n\t\t\t\tnull, // WHERE clause selection arguments (none)\n\t\t\t\tnull); // Order-by clause (ascending by name)\n\t\tint column_index = cursor\n\t\t\t\t.getColumnIndexOrThrow(MediaStore.Images.Media.DATA);\n\t\tcursor.moveToFirst();\n\n\t\treturn cursor.getString(column_index);\n\t}", "title": "" }, { "docid": "bff2e4b814685665d48bf9de8183a6f3", "score": "0.60167724", "text": "public String getURI();", "title": "" }, { "docid": "32c3ea5ebdbd83daf098f521fa973017", "score": "0.60141", "text": "public String getRealImagePathFromUri(Uri uri) {\n return UriUtils.getImagePathByUri(this, uri);\n }", "title": "" }, { "docid": "c8f31467b8501d84c9950993ffe78d59", "score": "0.6004261", "text": "public String getFilePath(String url) {\n assert mNativeCachedImageFetcherBridge != 0;\n return nativeGetFilePath(mNativeCachedImageFetcherBridge, url);\n }", "title": "" }, { "docid": "19c3b17aeb8f734a6c27d1f8e6803f76", "score": "0.6003293", "text": "String getPath();", "title": "" }, { "docid": "19c3b17aeb8f734a6c27d1f8e6803f76", "score": "0.6003293", "text": "String getPath();", "title": "" }, { "docid": "19c3b17aeb8f734a6c27d1f8e6803f76", "score": "0.6003293", "text": "String getPath();", "title": "" }, { "docid": "19c3b17aeb8f734a6c27d1f8e6803f76", "score": "0.6003293", "text": "String getPath();", "title": "" }, { "docid": "19c3b17aeb8f734a6c27d1f8e6803f76", "score": "0.6003293", "text": "String getPath();", "title": "" }, { "docid": "19c3b17aeb8f734a6c27d1f8e6803f76", "score": "0.6003293", "text": "String getPath();", "title": "" }, { "docid": "19c3b17aeb8f734a6c27d1f8e6803f76", "score": "0.6003293", "text": "String getPath();", "title": "" }, { "docid": "19c3b17aeb8f734a6c27d1f8e6803f76", "score": "0.6003293", "text": "String getPath();", "title": "" }, { "docid": "19c3b17aeb8f734a6c27d1f8e6803f76", "score": "0.6003293", "text": "String getPath();", "title": "" }, { "docid": "be8986f9d12338578b542d652a1c8268", "score": "0.5993357", "text": "private static String getUriString(HttpExchange exchange) {\n\t\tURI uri = exchange.getRequestURI();\n\t\tString uriStr = uri.toString();\n\t\turiStr = uriStr.substring(1);\n\t\treturn uriStr;\n\t}", "title": "" }, { "docid": "04faa05d99e11c59b2abcf63b5744314", "score": "0.59891474", "text": "public String getPathString();", "title": "" }, { "docid": "9c237d1ceb6d4b9bfcde2200b739332c", "score": "0.5981851", "text": "private String getFilePath (String fileName) {\r\n\t\t\r\n\t\t// Get the resource URL.\r\n URL resource = Stream.class.getResource(\"/\" + fileName);\r\n\t\tURI uri = null;\r\n\t\tString filePath = null;\r\n\t\ttry {\r\n\t\t\t// Get the resources URI.\r\n\t\t\turi = resource.toURI();\r\n\t\t\t// Get the file.\r\n\t\t\tFile currentFile = Paths.get(uri).toFile();\r\n\t\t\t// Get the file path and add the prefix file for the\r\n\t\t\t// expected format.\r\n\t\t\tfilePath = currentFile.getPath();\r\n\t\t} catch (URISyntaxException e1) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te1.printStackTrace();\r\n\t\t}\r\n \r\n\t\t// Return the file path.\r\n\t\treturn filePath;\r\n\r\n\t}", "title": "" }, { "docid": "1e689044aebafd177460c132a8333a0b", "score": "0.5972472", "text": "@Override\n\tpublic URL url()\n\t{\n\t\tURL url = null;\n\t\ttry\n\t\t{\n\t\t\turl = file.toURI().toURL();\n\t\t}\n\t\tcatch (MalformedURLException e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn url;\n\t}", "title": "" }, { "docid": "5d5f387115c927cb805cad671bb154a9", "score": "0.5962719", "text": "public String mapURI(String filenameOrURI) {\n return baseFileManager.mapURI(filenameOrURI);\n }", "title": "" }, { "docid": "08d70d3ac9a4735a5688756c55c34f12", "score": "0.5943719", "text": "private static String getPath(final Context context, final Uri uri) {\n // DocumentProvider\n if (DocumentsContract.isDocumentUri(context, uri)) {\n // ExternalStorageProvider\n if (isExternalStorageDocument(uri)) {\n final String docId = DocumentsContract.getDocumentId(uri);\n final String[] split = docId.split(\":\");\n final String type = split[0];\n\n if (\"primary\".equalsIgnoreCase(type)) {\n Log.d(TAG, \"getPath: Primary : \" + Environment.getExternalStorageDirectory() + \"/\" + split[1]);\n return Environment.getExternalStorageDirectory() + \"/\" + split[1];\n }\n\n // TODO handle non-primary volumes\n }\n // DownloadsProvider\n else if (isDownloadsDocument(uri)) {\n\n final String id = DocumentsContract.getDocumentId(uri);\n final Uri contentUri = ContentUris.withAppendedId(\n Uri.parse(\"content://downloads/public_downloads\"), Long.valueOf(id));\n\n Log.d(TAG, \"getPath: isDownloadsDocument(uri) : \" + getDataColumn(context, contentUri, null, null));\n return getDataColumn(context, contentUri, null, null);\n }\n // MediaProvider\n else if (isMediaDocument(uri)) {\n final String docId = DocumentsContract.getDocumentId(uri);\n final String[] split = docId.split(\":\");\n final String type = split[0];\n\n Uri contentUri = null;\n if (\"image\".equals(type)) {\n contentUri = MediaStore.Images.Media.EXTERNAL_CONTENT_URI;\n } else if (\"video\".equals(type)) {\n contentUri = MediaStore.Video.Media.EXTERNAL_CONTENT_URI;\n } else if (\"audio\".equals(type)) {\n contentUri = MediaStore.Audio.Media.EXTERNAL_CONTENT_URI;\n }\n\n final String selection = \"_id=?\";\n final String[] selectionArgs = new String[]{\n split[1]\n };\n\n return getDataColumn(context, contentUri, selection, selectionArgs);\n }\n }\n // MediaStore (and general)\n else if (\"content\".equalsIgnoreCase(uri.getScheme())) {\n return getDataColumn(context, uri, null, null);\n }\n // File\n else if (\"file\".equalsIgnoreCase(uri.getScheme())) {\n return uri.getPath();\n }\n\n return null;\n }", "title": "" }, { "docid": "6361de3c71071f6488a845d8ac6cdc07", "score": "0.59322137", "text": "Path getArticlePath(URL url);", "title": "" }, { "docid": "df8c059c9b2d252d9a3d15b8c940afd5", "score": "0.59286636", "text": "public URI getUri();", "title": "" }, { "docid": "39fd1566485445825bbf0bbee7a9063f", "score": "0.5927084", "text": "URI uiUri(String path);", "title": "" }, { "docid": "b34b421cd4071ce934bf363daaa4bcb4", "score": "0.5925137", "text": "String getLocalPath();", "title": "" }, { "docid": "98f5fd58f900b3c148de8ac21c849413", "score": "0.59173274", "text": "private String getAbsolutePath(String fname)\n\t\t throws ServletException {\n\t\treturn new File(GeneralServletTools.getAbsolutePath(fname, servletContext)).getAbsolutePath();\n\t}", "title": "" }, { "docid": "6c46a4c083462a40d22ba623bd99bd1a", "score": "0.5915271", "text": "private String getSingleFilePath() {\n\t\tlogger.debug(\"-> getSingleFilePath()\");\n\n\t\tString path = null;\n\n\t\t// This is for internal testing, so for firmware is use for the single\n\t\t// file name;\n\t\tpath = uploadInputData.getSingleFileRootPath() + uploadInputData.getFirmwareName();\n\t\tFile filePath = new File(path);\n\t\tif (!filePath.exists()) {\n\t\t\tlogger.error(\"FILE NOT FOUND in \" + path);\n\t\t\tSystem.exit(0);\n\t\t}\n\n\t\treturn path;\n\t}", "title": "" }, { "docid": "74ce14bffe865404dc2cb74158909dcd", "score": "0.59134364", "text": "public String getPath();", "title": "" }, { "docid": "74ce14bffe865404dc2cb74158909dcd", "score": "0.59134364", "text": "public String getPath();", "title": "" }, { "docid": "8df9956924bc556c342fe4f31eaea5b2", "score": "0.59048355", "text": "URI publicUri(String path);", "title": "" }, { "docid": "0f1fa581a32f27235e67b48fe08f3838", "score": "0.58935106", "text": "public static String getPath(final Context context, final Uri uri) {\n final boolean isKitKat = Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT;\n\n // DocumentProvider\n if (isKitKat && DocumentsContract.isDocumentUri(context, uri)) {\n\n // ExternalStorageProviderif (isMediaDocument(uri)) {\n final String docId = DocumentsContract.getDocumentId(uri);\n final String[] split = docId.split(\":\");\n final String type = split[0];\n\n Uri contentUri = null;\n if (\"image\".equals(type)) {\n contentUri = MediaStore.Images.Media.EXTERNAL_CONTENT_URI;\n } else if (\"video\".equals(type)) {\n contentUri = MediaStore.Video.Media.EXTERNAL_CONTENT_URI;\n } else if (\"audio\".equals(type)) {\n contentUri = MediaStore.Audio.Media.EXTERNAL_CONTENT_URI;\n }\n\n final String selection = \"_id=?\";\n final String[] selectionArgs = new String[] { split[1] };\n\n return getDataColumn(context, contentUri, selection,\n selectionArgs);\n }\n // MediaStore (and general)\n // File\n else if (\"file\".equalsIgnoreCase(uri.getScheme())) {\n return uri.getPath();\n }\n\n return null;\n }", "title": "" } ]
fc37311465429ed3dd849a6dea0f51af
Lets a user import a key pair from a PKCS 12 keystore file to the Keystore.
[ { "docid": "1dceda7d80b63f3b94f1d17b20969b43", "score": "0.8115134", "text": "private void importKeyPair() {\n\t\t/*\n\t\t * Let the user choose a PKCS #12 file (keystore) containing a public\n\t\t * and private key pair to import\n\t\t */\n\t\tFile importFile = selectImportExportFile(\n\t\t\t\t\"PKCS #12 file to import from\", // title\n\t\t\t\tnew String[] { \".p12\", \".pfx\" }, // array of file extensions\n\t\t\t\t// for the file filter\n\t\t\t\t\"PKCS#12 Files (*.p12, *.pfx)\", // description of the filter\n\t\t\t\t\"Import\", // text for the file chooser's approve button\n\t\t\t\t\"keyPairDir\"); // preference string for saving the last chosen directory\n\n\t\tif (importFile == null)\n\t\t\treturn;\n\n\t\t// The PKCS #12 keystore is not a file\n\t\tif (!importFile.isFile()) {\n\t\t\tshowMessageDialog(this, \"Your selection is not a file\",\n\t\t\t\t\tALERT_TITLE, WARNING_MESSAGE);\n\t\t\treturn;\n\t\t}\n\n\t\t// Get the user to enter the password that was used to encrypt the\n\t\t// private key contained in the PKCS #12 file\n\t\tGetPasswordDialog getPasswordDialog = new GetPasswordDialog(this,\n\t\t\t\t\"Import key pair entry\", true,\n\t\t\t\t\"Enter the password that was used to encrypt the PKCS #12 file\");\n\t\tgetPasswordDialog.setLocationRelativeTo(this);\n\t\tgetPasswordDialog.setVisible(true);\n\n\t\tString pkcs12Password = getPasswordDialog.getPassword();\n\n\t\tif (pkcs12Password == null) // user cancelled\n\t\t\treturn;\n\t\telse if (pkcs12Password.isEmpty()) // empty password\n\t\t\t// FIXME: Maybe user did not have the password set for the private key???\n\t\t\treturn;\n\n\t\ttry {\n\t\t\t// Load the PKCS #12 keystore from the file\n\t\t\t// (this is using the BouncyCastle provider !!!)\n\t\t\tKeyStore pkcs12Keystore = credManager.loadPKCS12Keystore(importFile,\n\t\t\t\t\tpkcs12Password);\n\n\t\t\t/*\n\t\t\t * Display the import key pair dialog supplying all the private keys\n\t\t\t * stored in the PKCS #12 file (normally there will be only one\n\t\t\t * private key inside, but could be more as this is a keystore after\n\t\t\t * all).\n\t\t\t */\n\t\t\tNewKeyPairEntryDialog importKeyPairDialog = new NewKeyPairEntryDialog(\n\t\t\t\t\tthis, \"Credential Manager\", true, pkcs12Keystore, dnParser);\n\t\t\timportKeyPairDialog.setLocationRelativeTo(this);\n\t\t\timportKeyPairDialog.setVisible(true);\n\n\t\t\t// Get the private key and certificate chain of the key pair\n\t\t\tKey privateKey = importKeyPairDialog.getPrivateKey();\n\t\t\tCertificate[] certChain = importKeyPairDialog.getCertificateChain();\n\n\t\t\tif (privateKey == null || certChain == null)\n\t\t\t\t// User did not select a key pair for import or cancelled\n\t\t\t\treturn;\n\n\t\t\t/*\n\t\t\t * Check if a key pair entry with the same alias already exists in\n\t\t\t * the Keystore\n\t\t\t */\n\t\t\tif (credManager.hasKeyPair(privateKey, certChain)\n\t\t\t\t\t&& showConfirmDialog(this,\n\t\t\t\t\t\t\t\"The keystore already contains the key pair entry with the same private key.\\n\"\n\t\t\t\t\t\t\t\t\t+ \"Do you want to overwrite it?\",\n\t\t\t\t\t\t\tALERT_TITLE, YES_NO_OPTION) != YES_OPTION)\n\t\t\t\treturn;\n\n\t\t\t// Place the private key and certificate chain into the Keystore\n\t\t\tcredManager.addKeyPair(privateKey, certChain);\n\n\t\t\t// Display success message\n\t\t\tshowMessageDialog(this, \"Key pair import successful\", ALERT_TITLE,\n\t\t\t\t\tINFORMATION_MESSAGE);\n\t\t} catch (Exception ex) { // too many exceptions to catch separately\n\t\t\tString exMessage = \"Failed to import the key pair entry to the Keystore. \"\n\t\t\t\t\t+ ex.getMessage();\n\t\t\tlogger.error(exMessage, ex);\n\t\t\tshowMessageDialog(this, exMessage, ERROR_TITLE, ERROR_MESSAGE);\n\t\t}\n\t}", "title": "" } ]
[ { "docid": "d2818b209871f26d9e267ab12218872b", "score": "0.641797", "text": "void importPKCS12Certificate(InputStream is)\n {\n\tKeyStore myKeySto = null;\n\t// passord\n\tchar[] password = null;\n\t\n\ttry\n\t{\n\t myKeySto = KeyStore.getInstance(\"PKCS12\");\n\n\t // Pop up password dialog box\n Object dialogMsg = getMessage(\"dialog.password.text\");\n JPasswordField passwordField = new JPasswordField();\n\n Object[] msgs = new Object[2];\n msgs[0] = new JLabel(dialogMsg.toString());\n msgs[1] = passwordField;\n\n JButton okButton = new JButton(getMessage(\"dialog.password.okButton\"));\n JButton cancelButton = new JButton(getMessage(\"dialog.password.cancelButton\"));\n\n String title = getMessage(\"dialog.password.caption\");\n Object[] options = {okButton, cancelButton};\n int selectValue = DialogFactory.showOptionDialog(this, msgs, title, options, options[0]);\n\n\t // for security purpose, DO NOT put password into String. Reset password as soon as \n\t // possible.\n\t password = passwordField.getPassword();\n\n\t // User click OK button\n if (selectValue == 0)\n {\n\t // Load KeyStore based on the password\n\t myKeySto.load(is,password);\n\n\t // Get Alias list from KeyStore.\n\t Enumeration aliasList = myKeySto.aliases();\n\n\t while (aliasList.hasMoreElements())\n\t {\n\t\t\tX509Certificate cert = null;\n\n\t\t\t// Get Certificate based on the alias name\n\t\t\tString certAlias = (String)aliasList.nextElement();\n\t\t\tcert = (X509Certificate)myKeySto.getCertificate(certAlias);\n\n\t\t\t// Add to import list based on radio button selection\n\t\t\t\tif (getRadioPos() == mh.getMessage(\"SignedApplet_value\"))\n \t\t\t\t model.deactivateImpCertificate(cert);\n\t\t\t\telse if (getRadioPos() == mh.getMessage(\"SecureSite_value\"))\n \t\t\t\t model.deactivateImpHttpsCertificate(cert);\n\t }\n\t } // OK button\n\t}\n\tcatch(Throwable e)\n\t{\n\t // Show up Error dialog box if the user enter wrong password\n\t // Avoid to convert password array into String - security reason\n\t String uninitializedValue = \"uninitializedValue\";\n\t if (!compareCharArray(password, uninitializedValue.toCharArray()))\n\t {\n\t\t\tString errorMsg = getMessage(\"dialog.import.password.text\");\n\t\t\t\t\tString errorTitle = getMessage(\"dialog.import.error.caption\");\n\t \t\tDialogFactory.showExceptionDialog(this, e, errorMsg, errorTitle);\n\t }\n\t}\n\tfinally {\n\t\t// Reset password\n\t\tif(password != null) {\n\t\t\tjava.util.Arrays.fill(password, ' ');\n\t\t}\n\t}\n }", "title": "" }, { "docid": "4690000e91a272a48b2e9cd975e3b73c", "score": "0.6224494", "text": "private void exportKeyPair() {\n\t\t// Which key pair entry has been selected?\n\t\tint selectedRow = keyPairsTable.getSelectedRow();\n\t\tif (selectedRow == -1) // no row currently selected\n\t\t\treturn;\n\n\t\t// Get the key pair entry's Keystore alias\n\t\tString alias = (String) keyPairsTable.getModel().getValueAt(selectedRow, 6);\n\n\t\t// Let the user choose a PKCS #12 file (keystore) to export public and\n\t\t// private key pair to\n\t\tFile exportFile = selectImportExportFile(\"Select a file to export to\", // title\n\t\t\t\tnew String[] { \".p12\", \".pfx\" }, // array of file extensions\n\t\t\t\t// for the file filter\n\t\t\t\t\"PKCS#12 Files (*.p12, *.pfx)\", // description of the filter\n\t\t\t\t\"Export\", // text for the file chooser's approve button\n\t\t\t\t\"keyPairDir\"); // preference string for saving the last chosen directory\n\n\t\tif (exportFile == null)\n\t\t\treturn;\n\n\t\t// If file already exist - ask the user if he wants to overwrite it\n\t\tif (exportFile.isFile()\n\t\t\t\t&& showConfirmDialog(this,\n\t\t\t\t\t\t\"The file with the given name already exists.\\n\"\n\t\t\t\t\t\t\t\t+ \"Do you want to overwrite it?\", ALERT_TITLE,\n\t\t\t\t\t\tYES_NO_OPTION) == NO_OPTION)\n\t\t\treturn;\n\n\t\t// Get the user to enter the password for the PKCS #12 keystore file\n\t\tGetPasswordDialog getPasswordDialog = new GetPasswordDialog(this,\n\t\t\t\t\"Credential Manager\", true,\n\t\t\t\t\"Enter the password for protecting the exported key pair\");\n\t\tgetPasswordDialog.setLocationRelativeTo(this);\n\t\tgetPasswordDialog.setVisible(true);\n\n\t\tString pkcs12Password = getPasswordDialog.getPassword();\n\n\t\tif (pkcs12Password == null) { // user cancelled or empty password\n\t\t\t// Warn the user\n\t\t\tshowMessageDialog(\n\t\t\t\t\tthis,\n\t\t\t\t\t\"You must supply a password for protecting the exported key pair.\",\n\t\t\t\t\tALERT_TITLE, INFORMATION_MESSAGE);\n\t\t\treturn;\n\t\t}\n\n\t\t// Export the key pair\n\t\ttry {\n\t\t\tcredManager.exportKeyPair(alias, exportFile, pkcs12Password);\n\t\t\tshowMessageDialog(this, \"Key pair export successful\", ALERT_TITLE,\n\t\t\t\t\tINFORMATION_MESSAGE);\n\t\t} catch (CMException cme) {\n\t\t\tshowMessageDialog(this, cme.getMessage(), ERROR_TITLE,\n\t\t\t\t\tERROR_MESSAGE);\n\t\t}\n\t}", "title": "" }, { "docid": "a3a2b2600448c19bbf9534b9600cf129", "score": "0.6188113", "text": "public void importCA(File certfile){\n try {\n File keystoreFile = new File(archivo);\n \n //copia .cer -> formato manipulacion\n FileInputStream fis = new FileInputStream(certfile);\n DataInputStream dis = new DataInputStream(fis);\n byte[] bytes = new byte[dis.available()];\n dis.readFully(bytes);\n ByteArrayInputStream bais = new ByteArrayInputStream(bytes);\n bais.close();\n CertificateFactory cf = CertificateFactory.getInstance(\"X.509\");\n Certificate certs = cf.generateCertificate(bais);\n //System.out.println(certs.toString());\n //inic keystore\n FileInputStream newib = new FileInputStream(keystoreFile);\n KeyStore keystore = KeyStore.getInstance(INSTANCE);\n keystore.load(newib,ksPass );\n String alias = (String)keystore.aliases().nextElement();\n newib.close();\n \n //recupero el array de certificado del keystore generado para CA\n Certificate[] certChain = keystore.getCertificateChain(alias);\n certChain[0]= certs; //inserto el certificado entregado por CA\n //LOG.info(\"Inserto certifica CA: \"+certChain[0].toString());\n //recupero la clave privada para generar la nueva entrada\n Key pk = (PrivateKey)keystore.getKey(alias, ksPass); \n keystore.setKeyEntry(alias, pk, ksPass, certChain);\n LOG.info(\"Keystore actualizado: [OK]\");\n \n FileOutputStream fos = new FileOutputStream(keystoreFile);\n keystore.store(fos,ksPass);\n fos.close(); \n \n } catch (FileNotFoundException ex) {\n LOG.error(\"Error - no se encuentra el archivo\",ex);\n } catch (IOException | NoSuchAlgorithmException | CertificateException | KeyStoreException ex) {\n LOG.error(\"Error con el certificado\",ex);\n } catch (UnrecoverableKeyException ex) {\n LOG.error(ex);\n }\n }", "title": "" }, { "docid": "0ec362c8190e91f8906d194ede5db952", "score": "0.6175454", "text": "private static void importCommand(File meKeystoreFile, String[] args)\n throws Exception {\n String jcaKeystoreFilename = null;\n String keystorePassword = null;\n String alias = null;\n String domain = \"identified\";\n MEKeyTool keyTool;\n\n for (int i = 1; i < args.length; i++) {\n try {\n if (args[i].equals(\"-MEkeystore\")) {\n i++;\n meKeystoreFile = new File(args[i]); \n } else if (args[i].equals(\"-keystore\")) {\n i++;\n jcaKeystoreFilename = args[i]; \n } else if (args[i].equals(\"-storepass\")) {\n i++;\n keystorePassword = args[i]; \n } else if (args[i].equals(\"-alias\")) {\n i++;\n alias = args[i];\n } else if (args[i].equals(\"-domain\")) {\n i++;\n domain = args[i];\n } else {\n throw new UsageException(\n \"Invalid argument for import command: \" + args[i]);\n }\n } catch (ArrayIndexOutOfBoundsException e) {\n throw new UsageException(\"Missing value for \" + args[--i]);\n }\n }\n\n if (jcaKeystoreFilename == null) {\n jcaKeystoreFilename = System.getProperty(\n DEFAULT_KEYSTORE_PROPERTY, \n System.getProperty(\"user.home\") + \n File.separator + \".keystore\");\n }\n \n if (alias == null) {\n throw new Exception(\"J2SE key alias was not given\");\n }\n\n try {\n keyTool = new MEKeyTool(meKeystoreFile);\n } catch (FileNotFoundException fnfe) {\n keyTool = new MEKeyTool();\n }\n\n keyTool.importKeyFromJcaKeystore(jcaKeystoreFilename,\n keystorePassword,\n alias, domain);\n keyTool.saveKeystore(meKeystoreFile);\n }", "title": "" }, { "docid": "60386ae1ffb00e23e585f4d83fd6be39", "score": "0.6068079", "text": "public void importKeyFromJcaKeystore(String jcakeystoreFilename,\n String keystorePassword,\n String alias, String domain)\n throws IOException, GeneralSecurityException {\n FileInputStream keystoreStream;\n KeyStore jcaKeystore;\n\n // Load the keystore\n keystoreStream = new FileInputStream(new File(jcakeystoreFilename));\n\n try {\n jcaKeystore = KeyStore.getInstance(KeyStore.getDefaultType());\n\n if (keystorePassword == null) {\n jcaKeystore.load(keystoreStream, null);\n } else {\n jcaKeystore.load(keystoreStream,\n keystorePassword.toCharArray());\n }\n } finally {\n keystoreStream.close();\n }\n\n importKeyFromJcaKeystore(jcaKeystore,\n alias,\n domain);\n }", "title": "" }, { "docid": "f01c6d262d81bbbbcb166579e6eacd74", "score": "0.5750738", "text": "private void loadWalletFromKeystore(String password, String keyStoreFileName) {\n mCredentials = Web3jWalletHelper.onInstance(mContext).getWallet(password, walletSuffixDir, keyStoreFileName);\n SharedPref.write(WALLET_ADDRESS, mCredentials.getAddress());\n // SharedPref.write(PUBLIC_KEY, mCredentials.getEcKeyPair().getPublicKey().toString(16));\n SharedPref.write(PRIVATE_KEY, mCredentials.getEcKeyPair().getPrivateKey().toString(16));\n SharedPref.write(PUBLIC_KEY, ECDSA.getHexEncodedPoint(SharedPref.read(PRIVATE_KEY)));\n }", "title": "" }, { "docid": "5a0137625801201e1898e172aaee51f8", "score": "0.57142913", "text": "@Override\n public KeyStore loadKeyStore(File file, String keyStoreType, String password) {\n KeyStore keyStore;\n try {\n keyStore = KeyStore.getInstance(keyStoreType);\n } catch (KeyStoreException e) {\n throw new KeyStoreAccessException(\"Unable to get KeyStore instance of type: \" + keyStoreType, e);\n }\n\n try (InputStream keystoreAsStream = new FileInputStream(file)) {\n keyStore.load(keystoreAsStream, password.toCharArray());\n } catch (IOException e) {\n throw new ImportException(\"Unable to read KeyStore from file: \" + file.getName(), e);\n } catch (CertificateException | NoSuchAlgorithmException e) {\n throw new ImportException(\"Error while reading KeyStore\", e);\n }\n\n return keyStore;\n }", "title": "" }, { "docid": "8a8d8cd8a8c1597b2c58f143aae3717b", "score": "0.57141393", "text": "public KeyStore createPKCS12KeyStore(String alias, char[] password) {\n try {\r\n KeyStore keyStore = KeyStore.getInstance(CertificateHelper.TOLVEN_CREDENTIAL_FORMAT_PKCS12);\r\n try {\r\n keyStore.load(null, password);\r\n } catch (IOException ex) {\r\n throw new RuntimeException(\"Could not load keystore for alias: \" + alias, ex);\r\n }\r\n X509Certificate[] certificateChain = new X509Certificate[1];\r\n certificateChain[0] = getX509Certificate();\r\n keyStore.setKeyEntry(alias, getPrivateKey(), password, certificateChain);\r\n return keyStore;\r\n } catch (GeneralSecurityException ex) {\r\n throw new RuntimeException(\"Could not create a PKCS12 keystore for alias: \" + alias, ex);\r\n }\r\n }", "title": "" }, { "docid": "f2234cc7e4b8f47805bb4bfab2c279c1", "score": "0.5673712", "text": "public void importKey(IsoBuffer isoBuffer);", "title": "" }, { "docid": "180c7ab0a90430617ec65eb116d6922f", "score": "0.56255424", "text": "private static void readPrivateKeyFromPKCS11() throws KeyStoreException {\n String configFileName = jarPath + \"pkcs11.cfg\";\r\n\r\n Provider p = null;\r\n try {\r\n p = new SunPKCS11(configFileName);\r\n Security.addProvider(p);\r\n } catch (ProviderException e) {\r\n LanzaError( \"no es correcto el fichero de configuración de la tarjeta\" );\r\n }\r\n \r\n KeyStore ks = null;\r\n try {\r\n ks = KeyStore.getInstance(\"pkcs11\", p);\r\n ks.load(null, clave );\r\n } catch (NoSuchAlgorithmException e) {\r\n LanzaError( \"leyendo la tarjeta (n.1)\" );\r\n } catch (CertificateException e) {\r\n LanzaError( \"leyendo la tarjeta (n.2)\" );\r\n } catch (IOException e) {\r\n LanzaError( \"leyendo la tarjeta (n.3)\" );\r\n }\r\n\r\n String alias = \"\";\r\n try {\r\n alias = (String) ks.aliases().nextElement();\r\n privateKey = (PrivateKey) ks.getKey(alias, clave);\r\n } catch (NoSuchElementException e) {\r\n LanzaError( \"leyendo la clave de la tarjeta (n.1)\" );\r\n } catch (NoSuchAlgorithmException e) {\r\n LanzaError( \"leyendo la clave de la tarjeta (n.2)\" );\r\n } catch (UnrecoverableKeyException e) {\r\n LanzaError( \"leyendo la clave de la tarjeta (n.3)\" );\r\n }\r\n certificateChain = ks.getCertificateChain(alias);\r\n }", "title": "" }, { "docid": "19521212b01845a30095c3edeae90515", "score": "0.5592827", "text": "@Override\n public void run() throws Exception {\n InputStream in = getClass().getResourceAsStream(\"/keystore.p12\");\n char[] password = \"password\".toCharArray();\n KeyStore keystore = new JavaKeyStore(\"PKCS12\", in, password);\n System.out.println(\"Loaded keystore: \" + keystore);\n\n // create walletapi with loaded one\n WalletApi walletApi = new WalletApiFactory().create(keystore);\n System.out.println(\"Walletapi with loaded keystore: \" + walletApi);\n\n // unlocked key\n Authentication authentication = Authentication.of(new KeyAlias(\"keyalias\"), \"password\");\n boolean unlockResult = walletApi.unlock(authentication);\n System.out.println(\"Unlock result: \" + unlockResult);\n System.out.println(\"Unlocked account: \" + walletApi.getPrincipal());\n }", "title": "" }, { "docid": "894c4a3504f24bbbda4a70ef1fca12a3", "score": "0.5524043", "text": "public static void main(String args[]) throws Exception{\n\t KeyStore keyStore = KeyStore.getInstance(\"JCEKS\");\r\n\r\n //Cargar el objeto KeyStore \r\n char[] password = \"changeit\".toCharArray();\r\n java.io.FileInputStream fis = new FileInputStream(\r\n \t\t \"/usr/lib/jvm/java-11-openjdk-amd64/lib/security/cacerts\");\r\n \r\n keyStore.load(fis, password);\r\n \r\n //Crear el objeto KeyStore.ProtectionParameter \r\n ProtectionParameter protectionParam = new KeyStore.PasswordProtection(password);\r\n\r\n //Crear el objeto SecretKey \r\n SecretKey mySecretKey = new SecretKeySpec(\"myPassword\".getBytes(), \"DSA\");\r\n \r\n //Crear el objeto SecretKeyEntry \r\n SecretKeyEntry secretKeyEntry = new SecretKeyEntry(mySecretKey);\r\n keyStore.setEntry(\"AliasClaveSecreta\", secretKeyEntry, protectionParam);\r\n\r\n //Almacenar el objeto KeyStore \r\n java.io.FileOutputStream fos = null;\r\n fos = new java.io.FileOutputStream(\"newKeyStoreName\");\r\n keyStore.store(fos, password);\r\n \r\n //Crear el objeto KeyStore.SecretKeyEntry \r\n SecretKeyEntry secretKeyEnt = (SecretKeyEntry)keyStore.getEntry(\"AliasClaveSecreta\", protectionParam);\r\n\r\n //Crear el objeto SecretKey \r\n SecretKey mysecretKey = secretKeyEnt.getSecretKey(); \r\n System.out.println(\"Algoritmo usado para generar la clave: \"+mysecretKey.getAlgorithm()); \r\n System.out.println(\"Formato usado para la clave: \"+mysecretKey.getFormat());\r\n }", "title": "" }, { "docid": "5b4f0ba34b40eea9b7a6e5e006d6546f", "score": "0.5516694", "text": "public void loadKey(File in, File privateKeyFile) throws GeneralSecurityException, IOException {\n\t byte[] encodedKey = new byte[(int)privateKeyFile.length()];\n\t FileInputStream is = new FileInputStream(privateKeyFile);\n\t is.read(encodedKey);\n\t \n\t // create private key\n\t PKCS8EncodedKeySpec privateKeySpec = new PKCS8EncodedKeySpec(encodedKey);\n\t KeyFactory kf = KeyFactory.getInstance(\"RSA\");\n\t PrivateKey pk = kf.generatePrivate(privateKeySpec);\n\t \n\t // read AES key\n\t pkCipher.init(Cipher.DECRYPT_MODE, pk);\n\t aesKey = new byte[256/8];\n\t CipherInputStream cis = new CipherInputStream(new FileInputStream(in), pkCipher);\n\t cis.read(aesKey);\n\t aesKeySpec = new SecretKeySpec(aesKey, \"AES\");\n\t cis.close();\n\t is.close();\n\t }", "title": "" }, { "docid": "ade89fcea6cb9eff0078bef11babc9ef", "score": "0.54157966", "text": "public static void createKeyStore(String filename,\n String password, String keyPassword, String alias,\n Key privateKey, Certificate cert)\n throws GeneralSecurityException, IOException {\n KeyStore ks = createEmptyKeyStore();\n ks.setKeyEntry(alias, privateKey, keyPassword.toCharArray(),\n new Certificate[]{cert});\n saveKeyStore(ks, filename, password);\n }", "title": "" }, { "docid": "c6ae78bfb207a68f4961ead1d57ec3cd", "score": "0.53886616", "text": "public void writeToP12(X509Certificate[] certChain, PrivateKey key, char[] password, File file) {\n OutputStream stream = null;\n try {\n \tX509Certificate targetCert = certChain[0];\n stream = new FileOutputStream(file);\n KeyStore ks = KeyStore.getInstance(\"PKCS12\", \"BC\"); \n ks.load(null,null);\n ks.setCertificateEntry(targetCert.getSerialNumber().toString(), targetCert);\n ks.setKeyEntry(targetCert.getSerialNumber().toString(), key, password, certChain);\n ks.store(stream, password);\n } catch (RuntimeException | IOException | GeneralSecurityException e) {\n throw new RuntimeException(\"Failed to write PKCS12 to [\"+file+\"]\", e);\n } finally {\n CloseablesExt.closeQuietly(stream);\n }\n }", "title": "" }, { "docid": "7e27eff12ac8912f19b9042fb82ed93a", "score": "0.53866905", "text": "public static void main(String[] args) {\n KeyStore myStore = null;\n try {\n\n /* Note: could also use a keystore file, which contains the token label or slot no. to use. Load that via\n * \"new FileInputStream(ksFileName)\" instead of ByteArrayInputStream. Save objects to the keystore via a\n * FileOutputStream. */\n\n ByteArrayInputStream is1 = new ByteArrayInputStream((\"slot:\" + slot).getBytes());\n myStore = KeyStore.getInstance(keystoreProvider);\n myStore.load(is1, passwd.toCharArray());\n } catch (KeyStoreException kse) {\n System.out.println(\"Unable to create keystore object\");\n System.exit(-1);\n } catch (NoSuchAlgorithmException nsae) {\n System.out.println(\"Unexpected NoSuchAlgorithmException while loading keystore\");\n System.exit(-1);\n } catch (CertificateException e) {\n System.out.println(\"Unexpected CertificateException while loading keystore\");\n System.exit(-1);\n } catch (IOException e) {\n // this should never happen\n System.out.println(\"Unexpected IOException while loading keystore.\");\n System.exit(-1);\n }\n\n KeyPairGenerator keyGen = null;\n KeyPair keyPair = null;\n try {\n // Generate an ECDSA KeyPair\n /* The KeyPairGenerator class is used to determine the type of KeyPair being generated. For more information\n * concerning the algorithms available in the Luna provider please see the Luna Development Guide. For more\n * information concerning other providers, please read the documentation available for the provider in question. */\n System.out.println(\"Generating ECDSA Keypair\");\n /* The KeyPairGenerator.getInstance method also supports specifying providers as a parameter to the method. Many\n * other methods will allow you to specify the provider as a parameter. Please see the Sun JDK class reference at\n * http://java.sun.org for more information. */\n keyGen = KeyPairGenerator.getInstance(\"ECDSA\", provider);\n /* ECDSA keys need to know what curve to use. If you know the curve ID to use you can specify it directly. In the\n * Luna Provider all supported curves are defined in LunaECCurve */\n ECGenParameterSpec ecSpec = new ECGenParameterSpec(\"c2pnb304w1\");\n keyGen.initialize(ecSpec);\n keyPair = keyGen.generateKeyPair();\n } catch (Exception e) {\n System.out.println(\"Exception during Key Generation - \" + e.getMessage());\n System.exit(1);\n }\n\n // generate a self-signed ECDSA certificate.\n Date notBefore = new Date();\n Date notAfter = new Date(notBefore.getTime() + 1000000000);\n BigInteger serialNum = new BigInteger(\"123456\");\n LunaCertificateX509 cert = null;\n try {\n cert = LunaCertificateX509.SelfSign(keyPair, \"CN=ECDSA Sample Cert\", serialNum, notBefore, notAfter);\n } catch (InvalidKeyException ike) {\n System.out.println(\"Unexpected InvalidKeyException while generating cert.\");\n System.exit(-1);\n } catch (CertificateEncodingException cee) {\n System.out.println(\"Unexpected CertificateEncodingException while generating cert.\");\n System.exit(-1);\n }\n\n byte[] bytes = \"Some Text to Sign as an Example\".getBytes();\n System.out.println(\"PlainText = \" + com.safenetinc.luna.LunaUtils.getHexString(bytes, true));\n\n Signature ecdsaSig = null;\n byte[] signatureBytes = null;\n try {\n // Create a Signature Object and signUsingI2p the encrypted text\n /* Sign/Verify operations like Encrypt/Decrypt operations can be performed in either singlepart or multipart\n * steps. Single part Signing and Verify examples are given in this code. Multipart signatures use the\n * Signature.update() method to load all the bytes and then invoke the Signature.signUsingI2p() method to get the result.\n * For more information please see the class documentation for the java.security.Signature class with respect to\n * the version of the JDK you are using. */\n System.out.println(\"Signing encrypted text\");\n ecdsaSig = Signature.getInstance(\"ECDSA\", provider);\n ecdsaSig = Signature.getInstance(\"SHA256withECDSA\", provider);\n ecdsaSig.initSign(keyPair.getPrivate());\n ecdsaSig.update(bytes);\n signatureBytes = ecdsaSig.sign();\n\n // Verify the signature\n System.out.println(\"Verifying signature(via Signature.verify)\");\n ecdsaSig.initVerify(keyPair.getPublic());\n ecdsaSig.update(bytes);\n boolean verifies = ecdsaSig.verify(signatureBytes);\n if (verifies == true) {\n System.out.println(\"Signature passed verification\");\n } else {\n System.out.println(\"Signature failed verification\");\n }\n\n } catch (Exception e) {\n System.out.println(\"Exception during Signing - \" + e.getMessage());\n System.exit(1);\n }\n\n try {\n // Verify the signature\n System.out.println(\"Verifying signature(via cert)\");\n ecdsaSig.initVerify(cert);\n ecdsaSig.update(bytes);\n boolean verifies = ecdsaSig.verify(signatureBytes);\n if (verifies == true) {\n System.out.println(\"Signature passed verification\");\n } else {\n System.out.println(\"Signature failed verification\");\n }\n } catch (Exception e) {\n System.out.println(\"Exception during Verification - \" + e.getMessage());\n System.exit(1);\n }\n\n// // Logout of the token\n// HSM_Manager.hsmLogout();\n }", "title": "" }, { "docid": "d894f8acc3debb88ad5f38d26ad82c1b", "score": "0.5375837", "text": "private void openKeystoreAndOutputJad() throws Exception {\n File ksfile;\n FileInputStream ksstream;\n\n if (alias == null) {\n usageError(command + \" requires -alias\");\n }\n\n if (outfile == null) {\n usageError(command + \" requires an output JAD\");\n }\n\n if (keystore == null) {\n keystore = System.getProperty(\"user.home\") + File.separator\n + \".keystore\";\n }\n\n try {\n ksfile = new File(keystore);\n // Check if keystore file is empty\n if (ksfile.exists() && ksfile.length() == 0) {\n throw new Exception(\"Keystore exists, but is empty: \" +\n keystore);\n }\n\n ksstream = new FileInputStream(ksfile);\n } catch (FileNotFoundException fnfe) {\n throw new Exception(\"Keystore does not exist: \" + keystore);\n }\n\n try {\n try {\n // the stream will be closed later\n outstream = new FileOutputStream(outfile);\n } catch (IOException ioe) {\n throw new Exception(\"Error opening output JAD: \" +\n outfile);\n }\n\n try {\n // load the keystore into the AppDescriptor\n appdesc.loadKeyStore(ksstream, storepass);\n } catch (Exception e) {\n throw new Exception(\"Keystore could not be loaded: \" +\n e.toString());\n }\n } finally {\n try {\n ksstream.close();\n } catch (IOException e) {\n // ignore\n }\n }\n }", "title": "" }, { "docid": "e963ff241533a98e783b03e21885a0a2", "score": "0.5336126", "text": "public MEKeyTool(File meKeystoreFile)\n throws FileNotFoundException, IOException {\n\n FileInputStream input;\n\n input = new FileInputStream(meKeystoreFile);\n\n try {\n keystore = new PublicKeyStoreBuilderBase(input);\n } finally {\n input.close();\n }\n }", "title": "" }, { "docid": "cbc30a0a46871f2e0d21e9b639a2ecf2", "score": "0.5302707", "text": "private void getKeyAndCerts(String filePath, String pw)\n throws GeneralSecurityException, IOException {\n System.out\n .println(\"reading signature key and certificates from file \" + filePath + \".\");\n\n FileInputStream fis = new FileInputStream(filePath);\n KeyStore store = KeyStore.getInstance(\"PKCS12\", \"IAIK\");\n store.load(fis, pw.toCharArray());\n\n Enumeration<String> aliases = store.aliases();\n String alias = (String) aliases.nextElement();\n privKey_ = (PrivateKey) store.getKey(alias, pw.toCharArray());\n certChain_ = Util.convertCertificateChain(store.getCertificateChain(alias));\n fis.close();\n }", "title": "" }, { "docid": "11ef7b5c3c9aaac71a64fa433eaa39f8", "score": "0.5293373", "text": "@Nonnull\n public static KeyStore loadKeyStore(String filename, String password)\n throws IOException, GeneralSecurityException {\n return loadKeyStore(FileUtil.getContextFile(filename), password);\n }", "title": "" }, { "docid": "2aaff1b926fa8496dd4dc50ff434f8ae", "score": "0.52909166", "text": "private void importTrustedCertificate() {\n\t\t// Let the user choose a file containing trusted certificate(s) to\n\t\t// import\n\t\tFile certFile = selectImportExportFile(\n\t\t\t\t\"Certificate file to import from\", // title\n\t\t\t\tnew String[] { \".pem\", \".crt\", \".cer\", \".der\", \"p7\", \".p7c\" }, // file extensions filters\n\t\t\t\t\"Certificate Files (*.pem, *.crt, , *.cer, *.der, *.p7, *.p7c)\", // filter descriptions\n\t\t\t\t\"Import\", // text for the file chooser's approve button\n\t\t\t\t\"trustedCertDir\"); // preference string for saving the last chosen directory\n\t\tif (certFile == null)\n\t\t\treturn;\n\n\t\t// Load the certificate(s) from the file\n\t\tArrayList<X509Certificate> trustCertsList = new ArrayList<>();\n\t\tCertificateFactory cf;\n\t\ttry {\n\t\t\tcf = CertificateFactory.getInstance(\"X.509\");\n\t\t} catch (Exception e) {\n\t\t\t// Nothing we can do! Things are badly misconfigured\n\t\t\tcf = null;\n\t\t}\n\n\t\tif (cf != null) {\n\t\t\ttry (FileInputStream fis = new FileInputStream(certFile)) {\n\t\t\t\tfor (Certificate cert : cf.generateCertificates(fis))\n\t\t\t\t\ttrustCertsList.add((X509Certificate) cert);\n\t\t\t} catch (Exception cex) {\n\t\t\t\t// Do nothing\n\t\t\t}\n\n\t\t\tif (trustCertsList.size() == 0) {\n\t\t\t\t// Could not load certificates as any of the above types\n\t\t\t\ttry (FileInputStream fis = new FileInputStream(certFile);\n\t\t\t\t\t\tPEMReader pr = new PEMReader(\n\t\t\t\t\t\t\t\tnew InputStreamReader(fis), null, cf\n\t\t\t\t\t\t\t\t\t\t.getProvider().getName())) {\n\t\t\t\t\t/*\n\t\t\t\t\t * Try as openssl PEM format - which sligtly differs from\n\t\t\t\t\t * the one supported by JCE\n\t\t\t\t\t */\n\t\t\t\t\tObject cert;\n\t\t\t\t\twhile ((cert = pr.readObject()) != null)\n\t\t\t\t\t\tif (cert instanceof X509Certificate)\n\t\t\t\t\t\t\ttrustCertsList.add((X509Certificate) cert);\n\t\t\t\t} catch (Exception cex) {\n\t\t\t\t\t// do nothing\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif (trustCertsList.size() == 0) {\n\t\t\t/* Failed to load certifcate(s) using any of the known encodings */\n\t\t\tshowMessageDialog(this,\n\t\t\t\t\t\"Failed to load certificate(s) using any of the known encodings -\\n\"\n\t\t\t\t\t\t\t+ \"file format not recognised.\", ERROR_TITLE,\n\t\t\t\t\tERROR_MESSAGE);\n\t\t\treturn;\n\t\t}\n\n\t\t// Show the list of certificates contained in the file for the user to\n\t\t// select the ones to import\n\t\tNewTrustCertsDialog importTrustCertsDialog = new NewTrustCertsDialog(this,\n\t\t\t\t\"Credential Manager\", true, trustCertsList, dnParser);\n\n\t\timportTrustCertsDialog.setLocationRelativeTo(this);\n\t\timportTrustCertsDialog.setVisible(true);\n\t\tList<X509Certificate> selectedTrustCerts = importTrustCertsDialog\n\t\t\t\t.getTrustedCertificates(); // user-selected trusted certs to import\n\n\t\t// If user cancelled or did not select any cert to import\n\t\tif (selectedTrustCerts == null || selectedTrustCerts.isEmpty())\n\t\t\treturn;\n\n\t\ttry {\n\t\t\tfor (X509Certificate cert : selectedTrustCerts)\n\t\t\t\t// Import the selected trusted certificates\n\t\t\t\tcredManager.addTrustedCertificate(cert);\n\n\t\t\t// Display success message\n\t\t\tshowMessageDialog(this, \"Trusted certificate(s) import successful\",\n\t\t\t\t\tALERT_TITLE, INFORMATION_MESSAGE);\n\t\t} catch (CMException cme) {\n\t\t\tString exMessage = \"Failed to import trusted certificate(s) to the Truststore\";\n\t\t\tlogger.error(exMessage, cme);\n\t\t\tshowMessageDialog(this, exMessage, ERROR_TITLE, ERROR_MESSAGE);\n\t\t}\n\t}", "title": "" }, { "docid": "175f1840e0814af3d88fcf411154cb76", "score": "0.52843004", "text": "@SuppressFBWarnings(value = \"EXS_EXCEPTION_SOFTENING_NO_CONSTRAINTS\",\n\t\t\tjustification = \"converting checked to unchecked exceptions that must not be thrown\")\n\tpublic static KeyStore loadKeyStore(final Path jksFilePath, final String password)\n\t\t\tthrows CertificateException, IOException {\n\t\ttry (InputStream inputStream = Files.newInputStream(jksFilePath)) {\n\t\t\tfinal KeyStore keyStore = KeyStore.getInstance(\"JKS\");\n\t\t\tkeyStore.load(inputStream, password.toCharArray());\n\t\t\treturn keyStore;\n\t\t} catch (final KeyStoreException | NoSuchAlgorithmException e) {\n\t\t\tthrow new SneakyException(e);\n\t\t}\n\t}", "title": "" }, { "docid": "06324b4add2eacb2e903580a059647ec", "score": "0.52766997", "text": "public void createKeyStore(String master_key) throws AEADBadTagException {\n SharedPreferences.Editor editor = getEncryptedSharedPreferences(master_key).edit();\n editor.putString(MASTER_KEY, master_key);\n editor.apply();\n\n Log.d(TAG, \"Encrypted SharedPreferences created...\");\n }", "title": "" }, { "docid": "48d1440e13a0c9d05371bcecc3ed731d", "score": "0.5268729", "text": "public KeyStore getKeyStore(InputStream keystoreIS, String password) throws CertException;", "title": "" }, { "docid": "957ecd36895030b31b889cf0716ed6a3", "score": "0.52114725", "text": "public void importKeys() {\n\n if (mListFragment.getSelectedEntries().size() == 0) {\n Notify.create(this, R.string.error_nothing_import_selected, Notify.Style.ERROR)\n .show((ViewGroup) findViewById(R.id.import_snackbar));\n return;\n }\n\n ServiceProgressHandler serviceHandler = new ServiceProgressHandler(this) {\n @Override\n public void handleMessage(Message message) {\n // handle messages by standard KeychainIntentServiceHandler first\n super.handleMessage(message);\n\n ImportKeysActivity.this.handleMessage(message);\n }\n };\n\n // Send all information needed to service to import key in other thread\n Intent intent = new Intent(this, KeychainNewService.class);\n ImportKeyringParcel operationInput = null;\n CryptoInputParcel cryptoInput = null;\n\n ImportKeysListFragment.LoaderState ls = mListFragment.getLoaderState();\n if (ls instanceof ImportKeysListFragment.BytesLoaderState) {\n Log.d(Constants.TAG, \"importKeys started\");\n\n // get DATA from selected key entries\n IteratorWithSize<ParcelableKeyRing> selectedEntries = mListFragment.getSelectedData();\n\n // instead of giving the entries by Intent extra, cache them into a\n // file to prevent Java Binder problems on heavy imports\n // read FileImportCache for more info.\n try {\n // We parcel this iteratively into a file - anything we can\n // display here, we should be able to import.\n ParcelableFileCache<ParcelableKeyRing> cache =\n new ParcelableFileCache<>(this, \"key_import.pcl\");\n cache.writeCache(selectedEntries);\n\n operationInput = new ImportKeyringParcel(null, null);\n cryptoInput = new CryptoInputParcel();\n\n } catch (IOException e) {\n Log.e(Constants.TAG, \"Problem writing cache file\", e);\n Notify.create(this, \"Problem writing cache file!\", Notify.Style.ERROR)\n .show((ViewGroup) findViewById(R.id.import_snackbar));\n }\n } else if (ls instanceof ImportKeysListFragment.CloudLoaderState) {\n ImportKeysListFragment.CloudLoaderState sls = (ImportKeysListFragment.CloudLoaderState) ls;\n\n // get selected key entries\n ArrayList<ParcelableKeyRing> keys = new ArrayList<>();\n {\n // change the format into ParcelableKeyRing\n ArrayList<ImportKeysListEntry> entries = mListFragment.getSelectedEntries();\n for (ImportKeysListEntry entry : entries) {\n keys.add(new ParcelableKeyRing(\n entry.getFingerprintHex(), entry.getKeyIdHex(), entry.getExtraData())\n );\n }\n }\n\n operationInput = new ImportKeyringParcel(keys, sls.mCloudPrefs.keyserver);\n if (mProxyPrefs != null) { // if not null means we have specified an explicit proxy\n cryptoInput = new CryptoInputParcel(mProxyPrefs.parcelableProxy);\n } else {\n cryptoInput = new CryptoInputParcel();\n }\n }\n\n intent.putExtra(KeychainNewService.EXTRA_OPERATION_INPUT, operationInput);\n intent.putExtra(KeychainNewService.EXTRA_CRYPTO_INPUT, cryptoInput);\n\n // Create a new Messenger for the communication back\n Messenger messenger = new Messenger(serviceHandler);\n intent.putExtra(KeychainService.EXTRA_MESSENGER, messenger);\n\n // show progress dialog\n serviceHandler.showProgressDialog(\n getString(R.string.progress_importing),\n ProgressDialog.STYLE_HORIZONTAL, true\n );\n\n // start service with intent\n startService(intent);\n }", "title": "" }, { "docid": "48c25f23e87a59f334179de1c1825060", "score": "0.52088135", "text": "KeyStore loadKeystore(char[] keystorePassword) {\n try {\n // Load the keystore in the user's home directory\n bufferedInputStream.reset();\n keystore.load(bufferedInputStream, keystorePassword);\n return keystore;\n // TODO: EOFException might mean we're skipping guesses\n } catch (CertificateException | NoSuchAlgorithmException | FileNotFoundException e) {\n throw new KeystoreException(e);\n } catch (IOException e) {\n if ((e.getCause() instanceof UnrecoverableKeyException) &&\n (e.getCause().getMessage().contains(\"Password verification failed\"))) return null;\n\n throw new KeystoreException(e);\n }\n }", "title": "" }, { "docid": "77687ef0323a0f65d1e8887fe1cfe72a", "score": "0.51982725", "text": "public KeyStore readKeyStore(File file, char[] password) {\n FileInputStream stream = null;\n try {\n stream = new FileInputStream(file);\n KeyStore ks = KeyStore.getInstance(\"JKS\"); \n ks.load(stream, password);\n return ks;\n } catch (RuntimeException | IOException | GeneralSecurityException e) {\n throw new RuntimeException(\"Failed to read keystore from [\"+file+\"]\", e);\n } finally {\n CloseablesExt.closeQuietly(stream);\n }\n }", "title": "" }, { "docid": "008ce6505caaab226e5b2e02f7528794", "score": "0.5182541", "text": "private void loadStore() throws Exception {\n\t\tkeyStore = KeyStore.getInstance(keyStoreType.toUpperCase());\n\t\tFileInputStream fis = null;\n\t\ttry {\n\t\t\tfis = new FileInputStream(keyStorePath);\n\t\t\tkeyStore.load(fis, keyStorePass.toCharArray());\n\t\t} catch (CertificateException | IOException e) {\n\t\t\twriteToLog(\"Error while trying to load the key-store\");\n\t\t\tLogWriter.close();\n\t\t\tthrow new Exception(\"Error while trying to load the key-store\", e);\n\t\t} finally {\n\t\t\tif (fis != null) {\n\t\t\t\tfis.close();\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "f3b971ddc5dbcd3126a99d62803982b0", "score": "0.51703346", "text": "@Nonnull\n public static KeyStore loadKeyStore(File file, String password)\n throws IOException, GeneralSecurityException {\n KeyStore keyStore = KeyStore.getInstance(\"jks\");\n FileInputStream stream = new FileInputStream(file);\n try {\n keyStore.load(stream, password.toCharArray());\n } finally {\n stream.close();\n }\n return keyStore;\n }", "title": "" }, { "docid": "615d24397d59bc6dbfe6c346eef99448", "score": "0.51583433", "text": "@Override\n public void saveKeyStore(File file, KeyStore keyStore, String keystorePassword) {\n try (FileOutputStream fos = new FileOutputStream(file)) {\n keyStore.store(fos, keystorePassword.toCharArray());\n } catch (CertificateException | NoSuchAlgorithmException | IOException | KeyStoreException e) {\n throw new KeyStoreAccessException(\"Unable to save KeyStore to file: \" + file.getName(), e);\n }\n }", "title": "" }, { "docid": "b3a0cd1b073aa5c121e2f11fda4cc3d4", "score": "0.5146115", "text": "@Test\n\tpublic void testAddX509CertificateToKeyStore() throws KeyStoreException, CertificateException, IOException, NoSuchAlgorithmException, InvalidKeySpecException {\n\t\t\n\t\tX509Certificate cert = DbMock.readCert(\"apache-tomcat.pem\");\n\t\t\n\t\tKeyStore keyStore = KeyStore.getInstance(\"JKS\");\n\t\t//initialize keystore\n\t\tkeyStore.load(null, null);\n\t\t\n\t\tJcaUtils.addX509CertificateToKeyStore(keyStore, \"alias1\", cert);\n\t\t\n\t\t// Save the new keystore contents\n\t\tFileOutputStream out = new FileOutputStream(\"/Users/davide/Downloads/ks.dat\");\n\t\tkeyStore.store(out, \"davidedc\".toCharArray());\n\t\tout.close();\n\t}", "title": "" }, { "docid": "f245a27f8902382a9c9b68d73d0e40c9", "score": "0.51425713", "text": "public void setKeyfile(File keyfile) {\n this.keyfile = keyfile;\n }", "title": "" }, { "docid": "eb6e0d7b1300a74b84b1ddfa22a14d24", "score": "0.5129574", "text": "public MEKeyTool(String meKeystoreFilename)\n throws FileNotFoundException, IOException {\n\n FileInputStream input;\n\n input = new FileInputStream(new File(meKeystoreFilename));\n\n try {\n keystore = new PublicKeyStoreBuilderBase(input);\n } finally {\n input.close();\n }\n }", "title": "" }, { "docid": "84b66bbd4e46ea5d4ffff26a602e89d8", "score": "0.5116678", "text": "public KeyPair loadKeystoreKeyPair(String privateKeyAlias) throws ProviderException {\n try {\n return HwUniversalKeyStoreProvider.loadAndroidKeyStoreKeyPairFromKeystore(this.mKeyStore, privateKeyAlias, this.mEntryUid);\n } catch (UnrecoverableKeyException e) {\n throw new ProviderException(\"Failed to load generated key pair from keystore\", e);\n }\n }", "title": "" }, { "docid": "dd43ae7e36d5c2cbd165d5d12a322db9", "score": "0.51139957", "text": "private static KeyStore getLoadKeyStore(File keyStoreFile, String keyStorePwd) throws Exception {\n\t\tKeyStore ks = null;\n\t\tInputStream ksInput = null;\n\t\ttry {\n\t\t\t//ks = KeyStore.getInstance(DEFAULT_KEYSTORE_TYPE, new BouncyCastleProvider());\n\t\t\tks = KeyStore.getInstance(DEFAULT_KEYSTORE_TYPE);\n\t\t\tksInput = new BufferedInputStream(new FileInputStream(keyStoreFile));\n\t\t\tks.load(ksInput, keyStorePwd.toCharArray());\n\t\t} catch (Exception ex) {\n\t\t\tex.printStackTrace();\n\t\t\tthrow new Exception(\"加载证书密钥库[\" + keyStoreFile.getName() + \"]失败,原因[\" + ex.getMessage() + \"]\");\n\t\t} finally {\n\t\t\t//IOUtils.closeQuietly(ksInput);\n\t\t}\n\t\treturn ks;\n\t}", "title": "" }, { "docid": "8f17d6d5188b35b385387e84cd54d6a6", "score": "0.51068157", "text": "void saveKeys(String publicKeyFileLocation, String secretKeyFileLocation) throws IOException;", "title": "" }, { "docid": "a63722eb3fbcbac4e8fd037f812d9a55", "score": "0.5093254", "text": "boolean importCertificate(InputStream is)\n {\n\tCertificateFactory cf = null;\n\tX509Certificate cert = null;\n\n\ttry\n\t{\n\t cf = CertificateFactory.getInstance(\"X.509\");\n\t cert = (X509Certificate)cf.generateCertificate(is);\n\n\t // Changed the certificate from the active set into the \n\t // inactive Import set. This is for import the certificate from\n\t // the store when the user clicks on Apply.\n\t //\n\t if (getRadioPos() == mh.getMessage(\"SignedApplet_value\"))\n \t model.deactivateImpCertificate(cert);\n\t else if (getRadioPos() == mh.getMessage(\"SecureSite_value\"))\n \t model.deactivateImpHttpsCertificate(cert);\n\t}\n\tcatch (CertificateParsingException cpe)\n\t{\n\t // It is PKCS#12 format.\n\t return false;\n\t}\n\tcatch (CertificateException e)\n\t{\n\t // Wrong format of the selected file\n\t DialogFactory.showExceptionDialog(this, e, getMessage(\"dialog.import.format.text\"), getMessage(\"dialog.import.error.caption\"));\n\t}\n\n\treturn true;\n }", "title": "" }, { "docid": "fc12dc9a6af0e4061f64ad23ed81d031", "score": "0.50902057", "text": "private static void createKeyFiles(String pass, String publicKeyFilename, String privateKeyFilename) throws Exception {\n\t\tString password = null;\n\t\tif (pass.isEmpty()) {\n\t\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tSystem.out.print(\"Password to encrypt the private key: \");\n\t\t\tpassword = in.readLine();\n\t\t\tSystem.out.println(\"Generating an RSA keypair...\");\n\t\t} else {\n\t\t\tpassword = pass;\n\t\t}\n\t\t\n\t\t// Create an RSA key\n\t\tKeyPairGenerator keyPairGenerator = KeyPairGenerator.getInstance(\"RSA\");\n\t\tkeyPairGenerator.initialize(1024);\n\t\tKeyPair keyPair = keyPairGenerator.genKeyPair();\n\n\t\tSystem.out.println(\"Done generating the keypair.\\n\");\n\n\t\t// Now we need to write the public key out to a file\n\t\tSystem.out.print(\"Public key filename: \");\n\n\t\t// Get the encoded form of the public key so we can\n\t\t// use it again in the future. This is X.509 by default.\n\t\tbyte[] publicKeyBytes = keyPair.getPublic().getEncoded();\n\n\t\t// Write the encoded public key out to the filesystem\n\t\tFileOutputStream fos = new FileOutputStream(publicKeyFilename);\n\t\tfos.write(publicKeyBytes);\n\t\tfos.close();\n\n\t\t// Now we need to do the same thing with the private key,\n\t\t// but we need to password encrypt it as well.\n\t\tSystem.out.print(\"Private key filename: \");\n \n\t\t// Get the encoded form. This is PKCS#8 by default.\n\t\tbyte[] privateKeyBytes = keyPair.getPrivate().getEncoded();\n\n\t\t// Here we actually encrypt the private key\n\t\tbyte[] encryptedPrivateKeyBytes = passwordEncrypt(password.toCharArray(), privateKeyBytes);\n\n\t\tfos = new FileOutputStream(privateKeyFilename);\n\t\tfos.write(encryptedPrivateKeyBytes);\n\t\tfos.close();\n\t}", "title": "" }, { "docid": "28463b5e2c610ed397ce50ba66fe62b7", "score": "0.5074675", "text": "private void loadTM() throws ERMgmtException{\n try{\n KeyStore ts = KeyStore.getInstance(KeyStore.getDefaultType());\n //random number generate to generated aliases for the new keystore\n Random generator = new Random();\n \n ts.load(null, null);\n \n if(mCertList.size() > 0){\n for(int i=0; i<mCertList.size(); i++){\n int randomInt = generator.nextInt();\n while(ts.containsAlias(\"certificate\"+randomInt)){\n randomInt = generator.nextInt();\n }\n ts.setCertificateEntry(\"certificate\"+randomInt, (X509Certificate) mCertList.get(i));\n } \n mTrustManagerFactory.init(ts); \n } else { \n mTrustManagerFactory.init((KeyStore) null);\n }\n \n TrustManager[] tm = mTrustManagerFactory.getTrustManagers();\n for(int i=0; i<tm.length; i++){\n if (tm[i] instanceof X509TrustManager) {\n mTrustManager = (X509TrustManager)tm[i]; \n break;\n }\n }\n \n } catch (Exception e){ \n throw new ERMgmtException(\"Trust Manager Error\", e);\n }\n \n }", "title": "" }, { "docid": "1ad0f7577695282edcd5b066662ac450", "score": "0.50576496", "text": "private void initKeystore(Properties props) throws KeyStoreInitException {\n\t\tkeystorePassword = props.getProperty(\"keystorePassword\");\n\t\tkeystoreLocation = props.getProperty(\"keystoreLocation\");\n\t\tsecretKeyAlias = props.getProperty(\"secretKeyAlias\");\n\n\t\ttry {\n\t\t\tks = loadKeyStore();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t\tthrow new KeyStoreInitException(e.getMessage());\n\t\t} catch (KeyStoreException e) {\n\t\t\te.printStackTrace();\n\t\t\tthrow new KeyStoreInitException(e.getMessage());\n\t\t} catch (NoSuchAlgorithmException e) {\n\t\t\te.printStackTrace();\n\t\t\tthrow new KeyStoreInitException(e.getMessage());\n\t\t} catch (CertificateException e) {\n\t\t\te.printStackTrace();\n\t\t\tthrow new KeyStoreInitException(e.getMessage());\n\t\t}\n\t}", "title": "" }, { "docid": "c75fd3691545253697cf453f4109f983", "score": "0.5042431", "text": "public static KeyManagerFactory loadKeyStore( String keyStoreFile, String keyStorePasswordStr ) throws Exception\n {\n char[] keyStorePassword = Strings.isEmpty( keyStorePasswordStr ) ? null : keyStorePasswordStr.toCharArray();\n\n if ( !Strings.isEmpty( keyStoreFile ) )\n {\n // We have a provided KeyStore file: read it\n KeyStore keyStore = KeyStore.getInstance( KeyStore.getDefaultType() );\n\n try ( InputStream is = Files.newInputStream( Paths.get( keyStoreFile ) ) )\n {\n keyStore.load( is, keyStorePassword );\n }\n \n /*\n * Verify key store:\n * * Must only contain one entry which must be a key entry\n * * Must contain a certificate chain\n * * The private key must be recoverable by the key store password\n */\n Enumeration<String> aliases = keyStore.aliases();\n \n if ( !aliases.hasMoreElements() )\n {\n throw new KeyStoreException( \"Key store is empty\" );\n }\n \n String alias = aliases.nextElement();\n \n if ( aliases.hasMoreElements() )\n {\n throw new KeyStoreException( \"Key store contains more than one entry\" );\n }\n \n if ( !keyStore.isKeyEntry( alias ) )\n {\n throw new KeyStoreException( \"Key store must contain a key entry\" );\n }\n \n if ( keyStore.getCertificateChain( alias ) == null )\n {\n throw new KeyStoreException( \"Key store must contain a certificate chain\" );\n }\n \n if ( keyStore.getKey( alias, keyStorePassword ) == null )\n {\n throw new KeyStoreException( \"Private key must be recoverable by the key store password\" );\n }\n \n // Set up key manager factory to use our key store\n String algorithm = Security.getProperty( \"ssl.KeyManagerFactory.algorithm\" );\n \n if ( algorithm == null )\n {\n algorithm = KeyManagerFactory.getDefaultAlgorithm();\n }\n \n KeyManagerFactory keyManagerFactory = KeyManagerFactory.getInstance( algorithm );\n \n keyManagerFactory.init( keyStore, keyStorePassword );\n \n return keyManagerFactory;\n }\n else\n {\n return null;\n }\n }", "title": "" }, { "docid": "679d7400243dd3e4411603af4c14e03d", "score": "0.4987725", "text": "@Override\n public KeyStoreView fromKeyStore(KeyStore keyStore, Function<String, char[]> keyPassword) {\n return new DefaultKeyStoreView(\n new DefaultKeyStoreSourceImpl(metadataOper, keyStore, oper, keyPassword)\n );\n }", "title": "" }, { "docid": "8421e08db7f7a0bf3e2cc63eb5dd074c", "score": "0.4984036", "text": "public String importKey(final String keyName, final String publicKeyMaterial) {\n final ImportKeyPairRequest request = new ImportKeyPairRequest(keyName, publicKeyMaterial);\n final ImportKeyPairResult result = ec2Client.importKeyPair(request);\n return result.getKeyName();\n }", "title": "" }, { "docid": "f7aabaf0981002219627972f17f90292", "score": "0.4947433", "text": "public static void main(String... args) throws Exception {\n String password = CipherFactory.KEYSTORE_PASSWORD;\n KeyStore store = CipherFactory.getKeyStore(password);\n printKeystore(store, password);\n }", "title": "" }, { "docid": "e405df74874ba6f43b25568b82b93324", "score": "0.4932039", "text": "public static KeyStore getKeyStoreFromFile(String keystoreName, String password,\n String home) throws Exception {\n Path tenantKeystorePath = Paths.get(home, \"repository\", \"resources\", \"security\", keystoreName);\n FileInputStream file = new FileInputStream(tenantKeystorePath.toString());\n KeyStore keystore = KeyStore.getInstance(KeyStore.getDefaultType());\n keystore.load(file, password.toCharArray());\n return keystore;\n }", "title": "" }, { "docid": "d2f6d75d0a34d833697fb850a4245568", "score": "0.49282867", "text": "@Override\n public void load(String keyWord, String fileName){\n FileReader loadDetails;\n String record;\n try{\n loadDetails=new FileReader(fileName);\n BufferedReader bin=new BufferedReader(loadDetails);\n while (((record=bin.readLine()) != null)){\n if ((record).contentEquals(keyWord)){\n setUsername(record);\n setPassword(bin.readLine());\n setFirstname(bin.readLine());\n setLastname(bin.readLine());\n setDoB((Date)DMY.parse(bin.readLine()));\n setContactNumber(bin.readLine());\n setEmail(bin.readLine());\n setSalary(Float.valueOf(bin.readLine()));\n setPositionStatus(bin.readLine());\n homeAddress.load(bin);\n }//end if\n }//end while\n bin.close();\n }//end try\n catch (IOException ioe){}//end catch\n catch (ParseException ex) {\n Logger.getLogger(Product.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "title": "" }, { "docid": "a524bb7a7520898c939d7f8d1f56eb48", "score": "0.4916362", "text": "ExportedKeyData makeKeyPairs(PGPKeyPair masterKey, PGPKeyPair subKey, String username, String email, String password) throws PGPException, IOException;", "title": "" }, { "docid": "d23d3d5edde0f0f0ed14acc8bcecdc97", "score": "0.49064952", "text": "private KeyStore askForPin() throws KeyStoreException, NoSuchAlgorithmException, CertificateException, IOException {\n char newPin[] = PinDialog.getPIN(this.providerDesc);\n try {\n KeyStore ks = getKeyStore(newPin);\n pin = newPin;\n return ks;\n } catch (IOException e2) {\n e2.printStackTrace();\n if (e2.getCause() instanceof LoginException) {\n JOptionPane.showMessageDialog(null, \"Wrong PIN\", \"Cryptographic card\", JOptionPane.WARNING_MESSAGE);\n }\n throw e2;\n }\n }", "title": "" }, { "docid": "5f0fe0c462fc7edf6e4416e7e598b89d", "score": "0.48768175", "text": "public void importKeyFromJcaKeystore(KeyStore jcaKeystore,\n String alias, String domain)\n throws IOException, GeneralSecurityException {\n X509Certificate cert;\n byte[] der;\n TLV tbsCert;\n TLV subjectName;\n RSAPublicKey rsaKey;\n String owner;\n long notBefore;\n long notAfter;\n byte[] rawModulus;\n int i;\n int keyLen;\n byte[] modulus;\n byte[] exponent;\n Vector keys;\n\n // get the cert from the keystore\n try {\n cert = (X509Certificate)jcaKeystore.getCertificate(alias);\n } catch (ClassCastException cce) {\n throw new CertificateException(\"Certificate not X.509 type\");\n }\n\n if (cert == null) {\n throw new CertificateException(\"Certificate not found\");\n }\n\n /*\n * J2SE reorders the attributes when building a printable name\n * so we must build a printable name on our own.\n */\n\n /*\n * TBSCertificate ::= SEQUENCE {\n * version [0] EXPLICIT Version DEFAULT v1,\n * serialNumber CertificateSerialNumber,\n * signature AlgorithmIdentifier,\n * issuer Name,\n * validity Validity,\n * subject Name,\n * subjectPublicKeyInfo SubjectPublicKeyInfo,\n * issuerUniqueID [1] IMPLICIT UniqueIdentifier OPTIONAL,\n * -- If present, version shall be v2 or v3\n * subjectUniqueID [2] IMPLICIT UniqueIdentifier OPTIONAL,\n * -- If present, version shall be v2 or v3\n * extensions [3] EXPLICIT Extensions OPTIONAL\n * -- If present, version shall be v3\n * }\n */\n der = cert.getTBSCertificate();\n tbsCert = new TLV(der, 0);\n\n // walk down the tree of TLVs to find the subject name\n try {\n // Top level a is Sequence, drop down to the first child\n subjectName = tbsCert.child;\n\n // skip the version if present.\n if (subjectName.type == TLV.VERSION_TYPE) {\n subjectName = subjectName.next;\n }\n\n // skip the serial number\n subjectName = subjectName.next;\n \n // skip the signature alg. id.\n subjectName = subjectName.next;\n \n // skip the issuer\n subjectName = subjectName.next;\n \n // skip the validity\n subjectName = subjectName.next;\n\n owner = parseDN(der, subjectName);\n } catch (NullPointerException e) {\n throw new CertificateException(\"TBSCertificate corrupt 1\");\n } catch (IndexOutOfBoundsException e) {\n throw new CertificateException(\"TBSCertificate corrupt 2\");\n }\n\n notBefore = cert.getNotBefore().getTime();\n notAfter = cert.getNotAfter().getTime();\n\n // get the key from the cert\n try {\n rsaKey = (RSAPublicKey)cert.getPublicKey();\n } catch (ClassCastException cce) {\n throw new RuntimeException(\"Key in certificate is not an RSA key\");\n }\n\n // get the key parameters from the key\n rawModulus = rsaKey.getModulus().toByteArray();\n\n /*\n * the modulus is given as the minimum positive integer,\n * will not padded to the bit size of the key, or may have a extra\n * pad to make it positive. SSL expects the key to be signature\n * bit size. but we cannot get that from the key, so we should\n * remove any zero pad bytes and then pad out to a multiple of 8 bytes\n */\n for (i = 0; i < rawModulus.length && rawModulus[i] == 0; i++);\n\n keyLen = rawModulus.length - i;\n keyLen = (keyLen + 7) / 8 * 8;\n modulus = new byte[keyLen];\n\n int k, j;\n for (k = rawModulus.length - 1, j = keyLen - 1;\n k >= 0 && j >= 0; k--, j--) {\n modulus[j] = rawModulus[k];\n }\n\n exponent = rsaKey.getPublicExponent().toByteArray();\n\n // add the key\n keys = keystore.findKeys(owner);\n if (keys != null) {\n boolean duplicateKey = false;\n\n for (int n = 0; !duplicateKey && n < keys.size(); n++) {\n PublicKeyInfo key = (PublicKeyInfo)keys.elementAt(n);\n\n if (key.getOwner().equals(owner)) {\n byte[] temp = key.getModulus();\n\n if (modulus.length == temp.length) {\n duplicateKey = true;\n for (int m = 0; j < modulus.length && m < temp.length;\n m++) {\n if (modulus[m] != temp[m]) {\n duplicateKey = false;\n break;\n }\n }\n }\n }\n }\n \n if (duplicateKey) {\n throw new CertificateException(\n \"Owner already has this key in the ME keystore\");\n }\n }\n \n keystore.addKey(new PublicKeyInfo(owner, notBefore, notAfter,\n modulus, exponent, domain));\n }", "title": "" }, { "docid": "31a1857e2c178c83c92ae041a4caa48d", "score": "0.4846692", "text": "private KeyManager getKeyManager() {\n\t\tDefaultResourceLoader loader = new FileSystemResourceLoader();\n\t\tResource storeFile = loader.getResource(\"file:\" + samlProps.get(\"keyStoreFilePath\"));\n\t\tMap<String, String> keyPasswords = new HashMap<String, String>();\n\t\tkeyPasswords.put(samlProps.get(\"keyAlias\"), samlProps.get(\"keyPasswd\"));\n\n\t\treturn new JKSKeyManager(storeFile, samlProps.get(\"keyStorePasswd\"), keyPasswords, samlProps.get(\"keyAlias\"));\n\t}", "title": "" }, { "docid": "5adb907dab48c40a0d13007353f8f6bf", "score": "0.48462427", "text": "@Nullable\n private synchronized KeyPair readKeyPair() throws GeneralSecurityException, IOException {\n final String methodTag = TAG + \":readKeyPair\";\n\n Logger.v(methodTag, \"Reading Key entry\");\n try {\n final KeyStore keyStore = KeyStore.getInstance(ANDROID_KEY_STORE);\n keyStore.load(null);\n\n final Certificate cert = keyStore.getCertificate(KEY_STORE_CERT_ALIAS);\n final Key privateKey = keyStore.getKey(KEY_STORE_CERT_ALIAS, null);\n\n if (cert == null || privateKey == null) {\n Logger.v(methodTag, \"Key entry doesn't exist.\");\n return null;\n }\n\n return new KeyPair(cert.getPublicKey(), (PrivateKey) privateKey);\n } catch (final RuntimeException e) {\n // There is an issue in android keystore that resets keystore\n // Issue 61989: AndroidKeyStore deleted after changing screen lock type\n // https://code.google.com/p/android/issues/detail?id=61989\n // in this case getEntry throws\n // java.lang.RuntimeException: error:0D07207B:asn1 encoding routines:ASN1_get_object:header too long\n // handle it as regular KeyStoreException\n throw new KeyStoreException(e);\n }\n }", "title": "" }, { "docid": "f469ad2cc2c014a3bc0e6d441110f005", "score": "0.4836105", "text": "public KeyStore initializeUser(UserInfo userInfo, String keyPassword) throws CertException;", "title": "" }, { "docid": "7bf7ac72b71c1ac838fba69f77fb5b7f", "score": "0.48078716", "text": "@Test\n\tpublic void pkcs12_exceptions() {\n\t\t// No algorithm\n\t\ttry {\n\t\t\tassertPkcs12LoadException(new Pkcs12LoadException(new NoSuchAlgorithmException()),\n\t\t\t\t\tPkcs12LoadException.Reason.ALGORITHM_NOT_FOUND);\n\t\t} catch (Pkcs12LoadException e) {\n\t\t\t// ignore\n\t\t}\n\n\t\t// cert error\n\t\ttry {\n\t\t\tassertPkcs12LoadException(new Pkcs12LoadException(new CertificateException()),\n\t\t\t\t\tPkcs12LoadException.Reason.CERTIFICATE_ERROR);\n\t\t} catch (Pkcs12LoadException e) {\n\t\t\t// ignore\n\t\t}\n\t}", "title": "" }, { "docid": "f4dee52e47419d1f491f554de4b763dd", "score": "0.47870353", "text": "@Bean\n public KeyManager keyManager() {\n final Resource storeFile\n = this.resourceLoader.getResource(\"classpath:\" + this.samlProperties.getKeystore().getName());\n final Map<String, String> passwords = new HashMap<>();\n passwords.put(\n this.samlProperties.getKeystore().getDefaultKey().getName(),\n this.samlProperties.getKeystore().getDefaultKey().getPassword()\n );\n return new JKSKeyManager(\n storeFile,\n this.samlProperties.getKeystore().getPassword(),\n passwords,\n this.samlProperties.getKeystore().getDefaultKey().getName()\n );\n }", "title": "" }, { "docid": "7c6afa7eb158a6ef6dcdfd62ce349c8d", "score": "0.47868454", "text": "public LocalRsaKeyLoader( CryptoService crypto, KeyStorageApi keyClient, DataStore dataStore )\n throws KodexException {\n if ( crypto == null || dataStore == null || keyClient == null ) {\n throw new KodexException(\n \"Crypto service, key network client, and data store are required to load from disk\" );\n }\n this.keyClient = keyClient;\n this.crypto = crypto;\n this.dataStore = dataStore;\n }", "title": "" }, { "docid": "bc7808254794e334ba4a56e141a0eeee", "score": "0.47856823", "text": "@Override public int doIt(){\r\n log.println();\r\n log.println(twoLineStartMsg().append('\\n'));\r\n \r\n if (isTest()) {\r\n log.println(prop.toString());\r\n } // >= TEST\r\n \r\n try { // open input\r\n if (fromCert) {\r\n certFileName = w0;\r\n } else if (certFileName == null) {\r\n certFileName = System.getProperty(\"user.home\") + \"/.keystore\"; \r\n }\r\n fis = new FileInputStream(certFileName);\r\n } catch (FileNotFoundException e) {\r\n if (isTest()) {\r\n log.println(formMessage(\"openexcp\", certFileName));\r\n e.printStackTrace(log);\r\n }\r\n return errMeld(17, formMessage(\"openexcp\", e));\r\n } // open input\r\n \r\n if (fromCert) { // cert (else keystore)\r\n pubKeyFil = w1;\r\n try {\r\n cFac = CertificateFactory.getInstance(certType);\r\n cert = cFac.generateCertificate(fis);\r\n } catch (CertificateException e1) {\r\n log.println(formMessage(\"pukynotgtb\", certFileName));\r\n return errMeld(19, e1);\r\n }\r\n pubKey = cert.getPublicKey();\r\n log.println(formMessage(\"pukyfrcert\", certFileName));\r\n } else { // cert else keystore\r\n keyAlias = w0;\r\n pubKeyFil = w1;\r\n storePassW = TextHelper.trimUq(storePassW, null);\r\n if (storePassW != null) {\r\n passWord = storePassW.toCharArray();\r\n } else {\r\n passWord = AskDialog.getAnswerText(\r\n valueLang(\"pkexpdtit\"), // titel PKextr password dialog\r\n keyAlias, // upper\r\n true, // upper monospaced\r\n valueLang(\"pkexpasye\"), valueLang(\"pkexpasno\"), // yes, cancel\r\n 990, // waitMax = 99s\r\n valueLang(\"pkexpassr\"),\r\n null, true); //Color bg password \r\n } // storePassw \r\n \r\n try {\r\n ks = KeyStore.getInstance(certType);\r\n } catch (KeyStoreException e1) {\r\n return errMeld(21, e1);\r\n }\r\n\r\n try {\r\n ks.load(fis, passWord);\r\n fis.close();\r\n cert = ks.getCertificate(keyAlias);\r\n } catch (Exception e2) {\r\n return errMeld(29, e2);\r\n }\r\n // alias \r\n if (exportPrivate) {\r\n Key key = null;\r\n try {\r\n key = ks.getKey(keyAlias, passWord);\r\n } catch (Exception e) {\r\n return errorExit(39, e, \"could not get the key from keystore.\");\r\n }\r\n if (key instanceof PrivateKey) {\r\n // ex history: BASE64Encoder myB64 = new BASE64Encoder();\r\n // since 24.06.2016 String b64 = myB64.encode(key.getEncoded());\r\n Base64.Encoder mimeEncoder = java.util.Base64.getMimeEncoder();\r\n String b64 = mimeEncoder.encodeToString( key.getEncoded());\r\n \r\n log.println(\"-----BEGIN PRIVATE KEY-----\");\r\n log.println(b64);\r\n log.println(\"-----END PRIVATE KEY-----\\n\\n\");\r\n\r\n if (pubKeyFil == null) return 0;\r\n \r\n log.println(formMessage(\"prkywrite\", pubKeyFil));\r\n try {\r\n keyfos = new FileOutputStream(pubKeyFil);\r\n } catch (FileNotFoundException e1) {\r\n return errMeld(31, e1);\r\n }\r\n Writer osw = new OutputStreamWriter(keyfos); \r\n try {\r\n osw.write(\"-----BEGIN PRIVATE KEY-----\\n\");\r\n osw.write(b64);\r\n osw.write(\"\\n-----END PRIVATE KEY-----\\n\");\r\n osw.close();\r\n } catch (IOException e2) {\r\n return errMeld(31, e2);\r\n }\r\n\r\n return 0;\r\n \r\n }\r\n return errorExit(39, \"no private key found\");\r\n } // export private \r\n pubKey = cert.getPublicKey();\r\n log.println(formMessage(\"pukyfrstor\",\r\n new String[]{keyAlias, certFileName}));\r\n } // else from keystore\r\n \r\n log.println(\"\\n----\\n\" + pubKey.toString() + \"\\n----\\n\\n\");\r\n \r\n if (pubKeyFil == null) return 0;\r\n\r\n // got the public key and listed it to log\r\n log.println(formMessage(\"pukywrite\", pubKeyFil));\r\n //\" Write public key to \\\"\" + pubKeyFil + \"\\\"\\n\");\r\n byte[] key = pubKey.getEncoded();\r\n try {\r\n keyfos = new FileOutputStream(pubKeyFil);\r\n } catch (FileNotFoundException e1) {\r\n return errMeld(31, e1);\r\n }\r\n try {\r\n keyfos.write(key);\r\n keyfos.close();\r\n } catch (IOException e2) {\r\n return errMeld(31, e2);\r\n }\r\n return 0;\r\n }", "title": "" }, { "docid": "626ee5e616014c3739a13aa60c1d89c0", "score": "0.47784865", "text": "public void newKeystore(String alias,String password, String bodyCert) {\n try {\n CertAndKeyGen keyGen = new CertAndKeyGen(\"RSA\", ALGORITHM, null);\n try {\n keyGen.generate(KEY_LEN);\n PrivateKey pk = keyGen.getPrivateKey();\n X509Certificate cert;\n cert = keyGen.getSelfCertificate(new X500Name(bodyCert), (long) EXPIRATION * 24 * 60 * 60);\n X509Certificate[] chain = new X509Certificate[1];\n chain[0]= cert;\n //creo el request PKCS10\n PKCS10 certreq = new PKCS10 (keyGen.getPublicKey());\n Signature signature = Signature.getInstance(ALGORITHM);\n signature.initSign(pk);\n certreq.encodeAndSign(new X500Name(bodyCert), signature);\n //-creo el archivo CSR-\n //FileOutputStream filereq = new FileOutputStream(\"C:\\\\test\\\\certreq.csr\");\n FileOutputStream filereq = new FileOutputStream(OUTPUTCERT_PATH);\n PrintStream ps = new PrintStream(filereq);\n certreq.print(ps);\n ps.close();\n filereq.close();\n \n this.ks = KeyStore.getInstance(INSTANCE);\n this.ksPass = password.toCharArray();\n try (FileOutputStream newkeystore = new FileOutputStream(archivo)) {\n ks.load(null,null);\n ks.setKeyEntry(alias, pk, ksPass, chain);\n ks.store(newkeystore, ksPass);\n }\n } catch (InvalidKeyException | IOException | CertificateException | SignatureException | KeyStoreException ex) {\n LOG.error(\"Error a manipular el archivo: \"+archivo,ex);\n }\n \n } \n catch (NoSuchAlgorithmException | NoSuchProviderException ex) {\n LOG.error(ex);\n }\n }", "title": "" }, { "docid": "0b9310327c49449d441f21c390192cf4", "score": "0.47769094", "text": "public void saveKeystore(File meKeystoreFile) throws IOException {\n FileOutputStream output;\n\n output = new FileOutputStream(meKeystoreFile);\n\n keystore.serialize(output);\n output.close();\n }", "title": "" }, { "docid": "c4110b5af3dea81b723d3fa913c03739", "score": "0.4734816", "text": "protected static void setKeyStorePath(String keyStorePath) {\n Program.keyStorePath = keyStorePath;\n Program.authType = AUTH_TYPE.CERT;\n }", "title": "" }, { "docid": "29f29a3aa1fae127b073c0568cd92232", "score": "0.4727735", "text": "public void storeCertificate(KeyStore keystore, OutputStream os, String keystorePassword) throws CertException;", "title": "" }, { "docid": "3e2aacc6d664d17777dfcc0bea889b36", "score": "0.47266945", "text": "public void testKeyGeneratedFromUserPassword() {\n final String prefFileName = generatePrefFileNameForTest();\n\n SecurePreferences securePrefs = new SecurePreferences(getContext(), \"password\", prefFileName);\n SharedPreferences normalPrefs = getContext().getSharedPreferences(prefFileName, Context.MODE_PRIVATE);\n\n Map<String, ?> allTheSecurePrefs = securePrefs.getAll();\n Map<String, ?> allThePrefs = normalPrefs.getAll();\n\n assertTrue(\n \"the preference file should not contain any enteries as the key is generated via user password.\",\n allThePrefs.isEmpty());\n\n\n //clean up here as pref file created for each test\n deletePrefFile(prefFileName);\n }", "title": "" }, { "docid": "6f1e3351bdc0996c337c07960ec2d1b5", "score": "0.47192264", "text": "public void restoreFromFile(String fileName) throws KVException {\n this.resetStore();\n \n File f = new File(fileName);\n\t\tDocumentBuilderFactory docFactory = DocumentBuilderFactory.newInstance();\n\t\tDocumentBuilder docBuilder;\n\t\ttry {\n\t\t\tdocBuilder = docFactory.newDocumentBuilder();\n\t\t} catch (ParserConfigurationException e1) {\n\t\t\tKVMessage exceptionMessage = new KVMessage(\"resp\", \"Unknown Error: Parser Configuration Exception\");\n\t\t\tKVException exception = new KVException(exceptionMessage);\n\t\t\tthrow exception;\n\t\t}\n\t\tDocument doc;\n\t\ttry {\n\t\t\tdoc = docBuilder.parse(f);\n\t\t} catch (SAXException e1) {\n\t\t\tKVMessage exceptionMessage = new KVMessage(\"resp\", \"Unknown Error: SAX Exception\");\n\t\t\tKVException exception = new KVException(exceptionMessage);\n\t\t\tthrow exception;\n\t\t} catch (IOException e1) {\n\t\t\tKVMessage exceptionMessage = new KVMessage(\"resp\", \"IO Error\");\n\t\t\tKVException exception = new KVException(exceptionMessage);\n\t\t\tthrow exception;\n\t\t}\n\t\tdoc.getDocumentElement().normalize();\n\t\t\n\t\tNodeList nList = doc.getElementsByTagName(\"KVPair\");\n\t\t\n\t\tfor (int i = 0; i < nList.getLength(); i++) {\n\t\t\tNode curNode = nList.item(i);\n\t\t\t\n\t\t\tif (curNode.getNodeType() == Node.ELEMENT_NODE) {\n\t\t\t\tElement e = (Element) curNode;\n\t\t\t\tString key = e.getElementsByTagName(\"Key\").item(0).getTextContent();\n\t\t\t\tString val = e.getElementsByTagName(\"Value\").item(0).getTextContent();\n\t\t\t\tstore.put(key, val);\n\t\t\t}\n\t\t}\n }", "title": "" }, { "docid": "6f6ce26f08c3150e655549f6471f4bcf", "score": "0.47158143", "text": "public KeyStore getKeyStore();", "title": "" }, { "docid": "4cde46c248e4111f47edd53c22c8bdf6", "score": "0.46955785", "text": "@Test\n public void testSslJks_loadTrustStoreFromFile() throws Exception {\n final InputStream inputStream = this.getClass().getResourceAsStream(\"/keystore.jks\");\n final String tempDirectoryPath = System.getProperty(\"java.io.tmpdir\");\n final File jks = new File(tempDirectoryPath + File.separator + \"keystore.jks\");\n final FileOutputStream outputStream = new FileOutputStream(jks);\n final byte[] buffer = new byte[1024];\n int noOfBytes = 0;\n while ((noOfBytes = inputStream.read(buffer)) != -1) {\n outputStream.write(buffer, 0, noOfBytes);\n }\n\n final MockVault mockVault = new MockVault(200, \"{\\\"data\\\":{\\\"value\\\":\\\"mock\\\"}}\");\n final Server server = VaultTestUtils.initHttpsMockVault(mockVault);\n server.start();\n\n final VaultConfig vaultConfig = new VaultConfig()\n .address(\"https://127.0.0.1:9998\")\n .token(\"mock_token\")\n .sslConfig(new SslConfig().trustStoreFile(jks).build())\n .build();\n final Vault vault = new Vault(vaultConfig);\n final LogicalResponse response = vault.logical().read(\"secret/hello\");\n\n VaultTestUtils.shutdownMockVault(server);\n }", "title": "" }, { "docid": "3e35d21223432671278ba4e7d8260a47", "score": "0.46846956", "text": "public void save(File file, char[] password)\n\t\t\tthrows GeneralSecurityException, IOException {\n\t\tsynchronized (keyStore) {\n\t\t\tOutputStream out = new FileOutputStream(file);\n\t\t\ttry {\n\t\t\t\tkeyStore.store(out, password);\n\t\t\t} finally {\n\t\t\t\tout.close();\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "09c4fde9f9cbf4ecda8cfd189f0b0f49", "score": "0.46561837", "text": "private void Initiat_Service(Object serviceAdm,Utilisateur user_en_cours) {\n\t\tlog.debug(\"user_en_cours.trustedApplication:\"+user_en_cours.trustedApplication);\n\t\t\t\tString filename =propIdentification.getProperty(Long.toString(user_en_cours.trustedApplication));\n\t\t\t\tlog.debug(\"filename:\"+filename);\n\t\t\t\t//System.out.println(\"my file \"+filename);\n\t\t\t\tFileInputStream is=null;\n\t\t\t\ttry {\n\t\t\t\t\tis = new FileInputStream(filename);\n\t\t\t\t} catch (FileNotFoundException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\tKeyStore myKeyStore=null;\n\t\t\t\ttry {\n\t\t\t\t\tmyKeyStore = KeyStore.getInstance(KeyStore.getDefaultType());\n\t\t\t\t} catch (KeyStoreException e2) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te2.printStackTrace();\n\t\t\t\t}\n\t\t\t\tString password =propIdentification.getProperty(Long.toString(user_en_cours.trustedApplication)+\".password\");\n\n\t\t\t\ttry {\n\t\t\t\t\tmyKeyStore.load(is, password.toCharArray());\n\t\t\t\t} catch (NoSuchAlgorithmException e2) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te2.printStackTrace();\n\t\t\t\t} catch (CertificateException e2) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te2.printStackTrace();\n\t\t\t\t} catch (IOException e2) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te2.printStackTrace();\n\t\t\t\t}\n\n\t\t\t\tString filenameTrust =prop.getProperty(\"clienttrustore\");\n\t\t\t\tFileInputStream myKeys = null;\n\t\t\t\ttry {\n\t\t\t\t\tmyKeys = new FileInputStream(filenameTrust);\n\t\t\t\t} catch (FileNotFoundException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\t// Load your TrustedStore\n\t\t\t\tKeyStore myTrustedStore=null;\n\t\t\t\ttry {\n\t\t\t\t\tmyTrustedStore = KeyStore.getInstance(KeyStore.getDefaultType());\n\t\t\t\t} catch (KeyStoreException e2) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te2.printStackTrace();\n\t\t\t\t}\n\t\t\t\ttry {\n\t\t\t\t\tmyTrustedStore.load(myKeys, prop.getProperty(\"clienttrustore.password\").toCharArray());\n\t\t\t\t} catch (NoSuchAlgorithmException e1) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t} catch (CertificateException e1) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\ttry {\n\t\t\t\t\tWSConnection.setupTLS(serviceAdm, myKeyStore, password, myTrustedStore);\n\t\t\t\t} catch (GeneralSecurityException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t}", "title": "" }, { "docid": "fd52437045bbac76da4ac6bb391035fd", "score": "0.46536773", "text": "public static boolean validateKeyFile(String file) throws CommandException {\n boolean ret = false;\n //if key exists, set prompt flag\n File f = new File(file);\n if (f.exists()) {\n if (!f.getName().endsWith(\".pub\")) {\n String key = null;\n try {\n key = FileUtils.readSmallFile(file);\n }\n catch (IOException ioe) {\n throw new CommandException(Strings.get(\"unable.to.read.key\", file, ioe.getMessage()));\n }\n if (!key.startsWith(\"-----BEGIN \") && !key.endsWith(\" PRIVATE KEY-----\" + NL)) {\n throw new CommandException(Strings.get(\"invalid.key.file\", file));\n }\n }\n ret = true;\n }\n else {\n throw new CommandException(Strings.get(\"key.does.not.exist\", file));\n }\n return ret;\n }", "title": "" }, { "docid": "1e5117a22d8c55968c6d5c72a3f3b0af", "score": "0.46443978", "text": "@Override\n public void setKeyStore(KeyStore keyStore) {\n this.keyStore = keyStore;\n }", "title": "" }, { "docid": "ccb71ade6ff259d4b55c984efa64fe1d", "score": "0.46435332", "text": "public SecretKey LoadAESKey(String keyFile) {\n\t\t\tObject[] keyb = null;\n\t\t\tbyte[] kb = null;\n\t\t\ttry {\n\t\t\t\t//keyb = Files.readAllBytes(Paths.get(keyFile));\n\t\t\t\tkeyb = this.ProcessAfterBytes(new File(keyFile), 16);\n\t\t\t\tkb = new byte[keyb.length];\n\t\t\t\tfor(int i=0; i<keyb.length;i+=1)\n\t\t\t\t\tkb[i]=(byte)keyb[i];\n\t\t\t} catch (IOException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\tSecretKeySpec skey = new SecretKeySpec(kb, \"AES\");\n\t\t\treturn skey;\n\t\t}", "title": "" }, { "docid": "89eb9a4b322214465b35e190e6b520a9", "score": "0.46301633", "text": "public void setKeyStore(KeyStore keyStore) {\n this.keyStore = keyStore;\n }", "title": "" }, { "docid": "02fb7e957e5371533b294c4ac057cb91", "score": "0.46150598", "text": "void saveFrom(String key, InputStream stream);", "title": "" }, { "docid": "08face30081efc9e3daadf70066646e7", "score": "0.46099454", "text": "OpenSSLKey mo134201a();", "title": "" }, { "docid": "da23ecbf76d60b5f6280be7467b3f3d3", "score": "0.46005628", "text": "public EC2SSHKeyPair importKeyPair(EC2ImportKeyPair request) {\n EC2SSHKeyPair response = new EC2SSHKeyPair();\n try {\n CloudStackKeyPair resp = getApi().registerSSHKeyPair(request.getKeyName(), request.getPublicKeyMaterial());\n if (resp == null) {\n throw new Exception(\"Ivalid CloudStack API response\");\n }\n response.setFingerprint(resp.getFingerprint());\n response.setKeyName(resp.getName());\n response.setPrivateKey(resp.getPrivatekey());\n } catch (Exception e) {\n logger.error(\"EC2 ImportKeyPair - \", e);\n handleException(e);\n }\n return response;\n }", "title": "" }, { "docid": "6a0f2b8f200f32618ec59ff1be38cdfe", "score": "0.459499", "text": "public void setAuthKeysFromTextFile(String textFile) {\n\n\t\ttry (Scanner scan = new Scanner(getClass().getResourceAsStream(textFile))) {\n\n\t\t\tString apikeyLine = scan.nextLine(), secretLine = scan.nextLine();\n\n\t\t\tapikey = apikeyLine.substring(apikeyLine.indexOf(\"\\\"\") + 1, apikeyLine.lastIndexOf(\"\\\"\"));\n\t\t\tsecret = secretLine.substring(secretLine.indexOf(\"\\\"\") + 1, secretLine.lastIndexOf(\"\\\"\"));\n\n\t\t} catch (NullPointerException | IndexOutOfBoundsException e) {\n\n\t\t\tSystem.err.println(\"Text file not found or corrupted - please attach key & secret in the format provided.\");\n\t\t}\n\t}", "title": "" }, { "docid": "2b1fcb0bca7848ab4a1a4207b772d25b", "score": "0.45947602", "text": "public static File createTempKeyStore( String keyStoreName, char[] keyStorePassword ) throws IOException, KeyStoreException,\n NoSuchAlgorithmException, CertificateException, InvalidKeyException, NoSuchProviderException, SignatureException\n {\n File keyStoreFile = Files.createTempFile( keyStoreName, \"ks\" ).toFile();\n keyStoreFile.deleteOnExit();\n \n KeyStore keyStore = KeyStore.getInstance( KeyStore.getDefaultType() );\n \n try ( InputStream keyStoreData = new FileInputStream( keyStoreFile ) )\n {\n keyStore.load( null, keyStorePassword );\n }\n\n // Generate the asymmetric keys, using EC algorithm\n KeyPairGenerator keyPairGenerator = KeyPairGenerator.getInstance( \"EC\" );\n KeyPair keyPair = keyPairGenerator.generateKeyPair();\n \n // Generate the subject's name\n X500Principal owner = new X500Principal( \"CN=apacheds,OU=directory,O=apache,C=US\" );\n\n // Create the self-signed certificate\n X509Certificate certificate = CertificateUtil.generateSelfSignedCertificate( owner, keyPair, 365, \"SHA256WithECDSA\" );\n \n keyStore.setKeyEntry( \"apachedsKey\", keyPair.getPrivate(), keyStorePassword, new X509Certificate[] { certificate } );\n \n try ( FileOutputStream out = new FileOutputStream( keyStoreFile ) )\n {\n keyStore.store( out, keyStorePassword );\n }\n \n return keyStoreFile;\n }", "title": "" }, { "docid": "f450dac69bdf3f46fff5bc3acea18b0a", "score": "0.45900625", "text": "@Test\n public void privatekeyFileTest() {\n // TODO: test privatekeyFile\n }", "title": "" }, { "docid": "eaa8ac7d6b6fe52ac80ea8e948272772", "score": "0.45825392", "text": "private void readKeyDataToIdentifyTransactions(){\n\t\t\n\t\tBufferedReader reader = null;\n\t\t\n\t\ttry{\n\t\t\treader = new BufferedReader(new FileReader(keyFile));\n\t\t\tString line;\n\t\t\twhile((line = reader.readLine()) != null){\n\t\t\t\tif((line.startsWith(\"#\")) || (line.equals(\"\")))\n\t\t\t\t\tcontinue;\n\t\t\t\telse{\n\t\t\t\t\tString transacName = line.split(\";\")[0];\n\t\t\t\t\tchar transacType = line.split(\";\")[1].charAt(0);\n\t\t\t\t\ttypeTransData.put(transacName,transacType);\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t\treader.close();\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\tSystem.out.println(\"Sorry!! \"+ keyFile +\" required for processing!!!\");\n\t\t\tSystem.out.println(\"Please try again !!!\");\n\t\t\tSystem.exit(1);\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "c9f7afe39f61deab535b4286d1d7eb56", "score": "0.45821035", "text": "public SingleCertKeyStoreProvider() {\r\n super(\"PKCS7\", PROVIDER_VERSION, \"KeyStore for a PKCS7 or X.509 certificate\"); //$NON-NLS-1$ //$NON-NLS-2$\r\n AccessController.doPrivileged(new java.security.PrivilegedAction<Object>() {\r\n \t/** {@inheritdoc} */\r\n @Override\r\n\t\t\tpublic Object run() {\r\n put(\"KeyStore.PKCS7\", \"es.gob.afirma.keystores.single.SingleCertKeyStore\"); //$NON-NLS-1$ //$NON-NLS-2$\r\n return null;\r\n }\r\n });\r\n }", "title": "" }, { "docid": "b9e5abd2230adf618e980a2348aa58f4", "score": "0.4580134", "text": "public KeyPair getKeyPair(KeyStore ks, String keyAlias, String certificateAlias, String keyPassword)\n throws CertException;", "title": "" }, { "docid": "6cdd55a3e2182c4d21f3ed398c984613", "score": "0.45781496", "text": "@Override\n public synchronized void saveKey(char[] key, String catalogName)\n throws SecurityKeyException\n {\n if (key == null || key.length < 1) {\n LOG.info(\"key is null or empty, will not create keystore for catalog[%s].\", catalogName);\n return;\n }\n createStoreDirIfNotExists();\n createAndSaveKeystore(key, catalogName);\n }", "title": "" }, { "docid": "ea71988ef81be0c44a139450b3eb9be7", "score": "0.4538106", "text": "public MEKeyTool() {\n keystore = new PublicKeyStoreBuilderBase();\n }", "title": "" }, { "docid": "ca58ac01de7325de105ca571dae8cd98", "score": "0.45346975", "text": "private void initKeystores(SupportedOS supportedOS, SupportedBrowser supportedBrowser)\r\n {\r\n this.keyStoreManager.flushKeyStoresTable();\r\n this.keyStoreManager.initBrowserStores(apph.getOs(), apph.getNavigator());\r\n \r\n // this.keyStoreManager.initClauer();\r\n\r\n // Solo mostraremos el soporte PKCS11 para sistemas operativos no Windows\r\n// if (!supportedBrowser.equals(SupportedBrowser.IEXPLORER))\r\n if (!supportedOS.equals(SupportedOS.WINDOWS))\r\n {\r\n ConfigManager conf = ConfigManager.getInstance();\r\n\r\n for (Device device : conf.getDeviceConfig())\r\n {\r\n try\r\n {\r\n keyStoreManager.initPKCS11Device(device, null);\r\n }\r\n catch (DeviceInitializationException die)\r\n {\r\n for (int i = 0; i < 3; i++)\r\n {\r\n PasswordPrompt passwordPrompt = new PasswordPrompt(null, device.getName(), \"Pin:\");\r\n \r\n if (passwordPrompt.getPassword() == null)\r\n {\r\n \tbreak;\r\n }\r\n \r\n try\r\n {\r\n this.keyStoreManager.initPKCS11Device(device, passwordPrompt.getPassword());\r\n break;\r\n }\r\n catch (Exception e)\r\n {\r\n JOptionPane.showMessageDialog(null, LabelManager.get(\"ERROR_INCORRECT_DNIE_PWD\"), \"\", JOptionPane.ERROR_MESSAGE);\r\n }\r\n }\r\n }\r\n }\r\n }\r\n }", "title": "" }, { "docid": "9a85cc98f5d1870741d60598226bf366", "score": "0.45345125", "text": "public MEKeyTool(InputStream meKeystoreStream)\n throws IOException {\n keystore = new PublicKeyStoreBuilderBase(meKeystoreStream);\n }", "title": "" }, { "docid": "4937073182ced18b8eb9cf2b43ad10a9", "score": "0.4534201", "text": "private synchronized void makeKey (Key key)\n throws KeyException {\n\n byte[] userkey = key.getEncoded();\n if (userkey == null)\n throw new KeyException(\"Null LOKI91 key\");\n\n // consider only 8 bytes if user data is longer than that\n if (userkey.length < 8)\n throw new KeyException(\"Invalid LOKI91 user key length\");\n\n // If native library available then use it. If not or if\n // native method returned error then revert to 100% Java.\n\n if (native_lock != null) {\n synchronized(native_lock) {\n try {\n linkStatus.check(native_ks(native_cookie, userkey));\n return;\n } catch (Error error) {\n native_finalize();\n native_lock = null;\nif (DEBUG && debuglevel > 0) debug(error + \". Will use 100% Java.\");\n }\n }\n }\n\n sKey[0] = (userkey[0] & 0xFF) << 24 |\n (userkey[1] & 0xFF) << 16 |\n (userkey[2] & 0xFF) << 8 |\n (userkey[3] & 0xFF);\n sKey[1] = sKey[0] << 12 | sKey[0] >>> 20;\n sKey[2] = (userkey[4] & 0xFF) << 24 |\n (userkey[5] & 0xFF) << 16 |\n (userkey[6] & 0xFF) << 8 |\n (userkey[7] & 0xFF);\n sKey[3] = sKey[2] << 12 | sKey[2] >>> 20;\n\n for (int i = 4; i < ROUNDS; i += 4) {\n sKey[i ] = sKey[i - 3] << 13 | sKey[i - 3] >>> 19;\n sKey[i + 1] = sKey[i ] << 12 | sKey[i ] >>> 20;\n sKey[i + 2] = sKey[i - 1] << 13 | sKey[i - 1] >>> 19;\n sKey[i + 3] = sKey[i + 2] << 12 | sKey[i + 2] >>> 20;\n }\n }", "title": "" }, { "docid": "ff197758954bd2a0bcb511b2e5b01fcb", "score": "0.45328128", "text": "public static CryptoToken initFromPkcs11(String configDir, String pin)\r\n\t\t\tthrows BkavSignaturesException {\r\n\t\tCryptoToken token = null;\r\n\t\tFileInputStream fis = null;\r\n\t\ttry {\r\n\t\t\tfis = new FileInputStream(configDir);\r\n\t\t\tProvider provider = null;\r\n\t\t\ttry {\r\n\t\t\t\tprovider = new sun.security.pkcs11.SunPKCS11(fis);\r\n\t\t\t} catch (Exception ex) {\r\n\t\t\t\tthrow new BkavSignaturesException(\"ProviderException\", ex);\r\n\t\t\t}\r\n\r\n\t\t\tif (Security.getProvider(provider.getName()) == null) {\r\n\t\t\t\tSecurity.addProvider(provider);\r\n\t\t\t}\r\n\t\t\tKeyStore keystore = KeyStore.getInstance(\"PKCS11\", provider);\r\n\t\t\tkeystore.load(null, pin.toCharArray());\r\n\r\n\t\t\tEnumeration<String> aliases = keystore.aliases();\r\n\t\t\tif (aliases == null) {\r\n\t\t\t\tthrow new BkavSignaturesException(\r\n\t\t\t\t\t\t\"No key alias was found in keystore\");\r\n\t\t\t}\r\n\t\t\tString alias = null;\r\n\r\n\t\t\twhile (aliases.hasMoreElements()) {\r\n\t\t\t\tString currentAlias = aliases.nextElement();\r\n\t\t\t\tif (keystore.isKeyEntry(currentAlias)) {\r\n\t\t\t\t\talias = currentAlias;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\t// Throw exception if no key entry was found\r\n\t\t\tif (alias == null) {\r\n\t\t\t\tthrow new BkavSignaturesException(\r\n\t\t\t\t\t\t\"No key entry was found in keystore\");\r\n\t\t\t}\r\n\r\n\t\t\ttoken = getFromKeystore(keystore, alias, pin);\r\n\t\t} catch (FileNotFoundException e) {\r\n\t\t\tthrow new BkavSignaturesException(\"FileNotFoundException\", e);\r\n\t\t} catch (KeyStoreException e) {\r\n\t\t\tthrow new BkavSignaturesException(\"KeyStoreException\", e);\r\n\t\t} catch (NoSuchAlgorithmException e) {\r\n\t\t\tthrow new BkavSignaturesException(\"NoSuchAlgorithmException\", e);\r\n\t\t} catch (CertificateException e) {\r\n\t\t\tthrow new BkavSignaturesException(\"CertificateException\", e);\r\n\t\t} catch (IOException e) {\r\n\t\t\tthrow new BkavSignaturesException(\"IOException\", e);\r\n\t\t} catch (UnrecoverableKeyException e) {\r\n\t\t\tthrow new BkavSignaturesException(\"UnrecoverableKeyException\", e);\r\n\t\t} finally {\r\n\t\t\tif (fis != null) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tfis.close();\r\n\t\t\t\t} catch (IOException e) {\r\n\t\t\t\t\t// Do nothing here\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn token;\r\n\t}", "title": "" }, { "docid": "95c170a03e68ab82da2d90c6ec978535", "score": "0.4528341", "text": "public interface CertService {\n\n /**\n * Retrieves the root certificate.\n * \n * @return\n * @throws CertException\n */\n public X509Certificate getRootCertificate() throws CertException;\n\n /**\n * Sets up a root service to be used for CA-related services like certificate request signing and certificate\n * revocation.\n * \n * @param keystore\n * @throws CertException\n */\n public void setRootService(RootService rootService) throws CertException;\n\n /**\n * Retrieves a KeyStore object from a supplied InputStream. Requires a keystore password.\n * \n * @param userId\n * @return\n */\n public KeyStore getKeyStore(InputStream keystoreIS, String password) throws CertException;\n\n /**\n * Retrieves existing private and public key from a KeyStore.\n * \n * @param userId\n * @return\n */\n public KeyPair getKeyPair(KeyStore ks, String keyAlias, String certificateAlias, String keyPassword)\n throws CertException;\n\n /**\n * Retrieves an existing certificate from a keystore using keystore's certificate alias.\n * \n * @param userId\n * @return\n */\n public X509Certificate getCertificate(KeyStore keystore, String certificateAlias) throws CertException;\n\n /**\n * Generates a private key and a public certificate for a user whose X.509 field information was enclosed in a\n * UserInfo parameter. Stores those artifacts in a password protected keystore. This is the principal method for\n * activating a new certificate and signing it with a root certificate.\n * \n * @param userId\n * @return KeyStore based on the provided userInfo\n */\n\n public KeyStore initializeUser(UserInfo userInfo, String keyPassword) throws CertException;\n\n /**\n * Wraps a certificate object into an OutputStream object secured by a keystore password\n * \n * @param keystore\n * @param os\n * @param keystorePassword\n * @throws CertException\n */\n public void storeCertificate(KeyStore keystore, OutputStream os, String keystorePassword) throws CertException;\n\n /**\n * Extracts the email address from a certificate\n * \n * @param certificate\n * @return\n * @throws CertException\n */\n public String getCertificateEmail(X509Certificate certificate) throws CertException;\n\n}", "title": "" }, { "docid": "8c42313e2969efaf382ad86e4a79ffa0", "score": "0.45241717", "text": "public void saveAsFile(File privateKeyFile, char[] password) throws IllegalArgumentException, IOException, NoSuchAlgorithmException, NoSuchPaddingException {\r\n\t\tString key = this.saveAsString(password);\r\n\t\tFiles.write(privateKeyFile.toPath(), key.getBytes(StandardCharsets.UTF_8));\r\n\t}", "title": "" }, { "docid": "408c4eecb15af127fdcee843b9f7c4a1", "score": "0.45179304", "text": "private void deleteKeyFile() {\n final String methodName = \":deleteKeyFile\";\n final File keyFile = new File(mContext.getDir(mContext.getPackageName(),\n Context.MODE_PRIVATE), ADALKS);\n if (keyFile.exists()) {\n Logger.v(TAG + methodName, \"Delete KeyFile\");\n if (!keyFile.delete()) {\n Logger.v(TAG + methodName, \"Delete KeyFile failed\");\n }\n }\n }", "title": "" }, { "docid": "b2ca65899f4101e4d9e34bd6d02a81c1", "score": "0.4489844", "text": "private static KeyStore buildKeyStore(Context context, int certRawResId) throws KeyStoreException, CertificateException, NoSuchAlgorithmException, IOException {\n String keyStoreType = KeyStore.getDefaultType();\n KeyStore keyStore = KeyStore.getInstance(keyStoreType);\n keyStore.load(null, null);\n\n // read and add certificate authority\n Certificate cert = readCert(context, certRawResId);\n keyStore.setCertificateEntry(\"ca\", cert);\n\n return keyStore;\n }", "title": "" }, { "docid": "91ce000b2b43368dd72fcaa92a6a2802", "score": "0.44813326", "text": "public void readPrivateKey(String filename) {\n FileHandler fh = new FileHandler();\n Map<String, BigInteger> skMap= fh.getKeyFromFile(filename);\n this.n = skMap.get(\"n\");\n this.d = skMap.get(\"key\");\n }", "title": "" }, { "docid": "b44d47fb431576755832ee7bd4920882", "score": "0.44761702", "text": "public void importFile() {\n \ttry {\n\t File account_file = new File(\"accounts/CarerAccounts.txt\");\n\n\t FileReader file_reader = new FileReader(account_file);\n\t BufferedReader buff_reader = new BufferedReader(file_reader);\n\n\t String row;\n\t while ((row = buff_reader.readLine()) != null) {\n\t String[] account = row.split(\",\"); //implementing comma seperated value (CSV)\n\t String[] users = account[6].split(\"-\");\n\t int[] usersNew = new int[users.length];\n\t for (int i = 0; i < users.length; i++) {\n\t \tusersNew[i] = Integer.parseInt(users[i].trim());\n\t }\n\t this.add(Integer.parseInt(account[0]), account[1], account[2], account[3], account[4], account[5], usersNew);\n\t }\n\t buff_reader.close();\n } catch (IOException e) {\n System.out.println(\"Unable to read text file this time.\");\n \t}\n\t}", "title": "" }, { "docid": "bd61efc5618e6ae556022863382cf0ca", "score": "0.4473627", "text": "private static int[] encrypt(File fileToEncrypt, File keystoreFile)\n\t{\n\n\t\tSecretKey symmetricKey = createSymmetricKey();\n\t\tAlgorithmParameters algoParams = fileEncryption(fileToEncrypt, symmetricKey, fileAfterEncryption);\n\t\treturn createConfigurationFile(fileToEncrypt, configFile, keystoreFile, symmetricKey, algoParams);\n\t}", "title": "" }, { "docid": "1605004532f4346ac31b853673e95032", "score": "0.44691727", "text": "public SSLConfig(@NonNull File jksFile, @NonNull String storePassword, @NonNull String keyPassword){\n this.sslCertificateType = JKS;\n this.jksFile = jksFile;\n this.storePassword = storePassword;\n this.keyPassword = keyPassword;\n }", "title": "" }, { "docid": "dcc656b048aba2aab08c2b4a8ff86699", "score": "0.44691637", "text": "@Override\n\tpublic PrivateKey readPrivateKey(String file, String alias, String password) {\n\t\tKeyStore ks;\n\t\ttry {\n\t\t\tks = KeyStore.getInstance(\"JKS\", \"SUN\");\n\t\t\tBufferedInputStream in = new BufferedInputStream(new FileInputStream(file));\n\t\t\tks.load(in, password.toCharArray());\n\n\t\t\tif (ks.isKeyEntry(alias)) {\n\t\t\t\tPrivateKey pk = (PrivateKey) ks.getKey(alias, password.toCharArray());\n\t\t\t\treturn pk;\n\t\t\t} else {\n\t\t\t\treturn null;\n\t\t\t}\n\t\t} catch (KeyStoreException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t} catch (NoSuchProviderException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t} catch (FileNotFoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t} catch (NoSuchAlgorithmException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t} catch (CertificateException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t} catch (UnrecoverableKeyException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t}\n\n\t}", "title": "" }, { "docid": "5168e1ed32bd7a402912da6442fee88e", "score": "0.44615695", "text": "@Test\n\tpublic void createNewMyKeys() {\n\t\tRsaKeyStore ks = new RsaKeyStore();\n\t\tboolean r1 = ks.createNewMyKeyPair(\"newkp\");\n\t\tboolean r2 = ks.createNewMyKeyPair(\"newtwo\");\n\t\tassertTrue(\"Should have added the key\", r1);\n\t\tassertTrue(\"Should have added the second key\", r2);\n\t}", "title": "" }, { "docid": "16ddb49cfdc515614cfb1e8e9f99d7ab", "score": "0.44513297", "text": "public KeyProvider getKeyProvider() {\n return keystore; \n }", "title": "" }, { "docid": "4014955e8a14e62f08a6da5f6caa311a", "score": "0.44428754", "text": "public void run(\n String encryptionPublicKeyHex,\n String outputFile,\n KeystoreKey keyToExport,\n Optional<KeystoreKey> keyToSignWith,\n boolean includeCertificate)\n throws Exception {\n KeyStore keyStoreForKeyToExport = keystoreHelper.getKeystore(keyToExport);\n PrivateKey privateKeyToExport =\n keystoreHelper.getPrivateKey(keyStoreForKeyToExport, keyToExport);\n byte[] privateKeyPem = privateKeyToPem(privateKeyToExport);\n byte[] encryptedPrivateKey = encryptPrivateKey(fromHex(encryptionPublicKeyHex), privateKeyPem);\n if (keyToSignWith.isPresent() || includeCertificate) {\n Certificate certificate = keystoreHelper.getCertificate(keyStoreForKeyToExport, keyToExport);\n Optional<byte[]> signature =\n keyToSignWith.isPresent()\n ? Optional.of(sign(encryptedPrivateKey, keyToSignWith.get()))\n : Optional.empty();\n writeToZipFile(outputFile, signature, encryptedPrivateKey, certificateToPem(certificate));\n } else {\n Files.write(Paths.get(outputFile), encryptedPrivateKey);\n }\n }", "title": "" }, { "docid": "5b7d13487ebe281bd7edf5564afd9b3c", "score": "0.44420367", "text": "public void importStudents(String fileName) throws FileNotFoundException\n {\n Scanner inf = new Scanner(new File(fileName));\n while(inf.hasNextLine())\n {\n String first = inf.nextLine();\n String last = inf.nextLine();\n String password = inf.nextLine();\n String p1 = inf.nextLine();\n String p2 = inf.nextLine();\n String p3 = inf.nextLine();\n String p4 = inf.nextLine();\n String p5 = inf.nextLine();\n String p6 = inf.nextLine();\n String p7 = inf.nextLine();\n String p8 = inf.nextLine();\n \n students.add(new Student(first, last, password, p1, p2, p3, p4, p5, p6, p7, p8, this));\n }\n }", "title": "" }, { "docid": "6adc670868cd844d80653b9c20d890af", "score": "0.44373763", "text": "public void readInPasswords(){\n String fileName = \"all_passwords.txt\";\n String nextLine = null;\n String [] temp;\n\n try{\n FileReader reader = new FileReader(fileName);\n BufferedReader bufferedReader = new BufferedReader(reader);\n \n while((nextLine = bufferedReader.readLine()) != null){\n temp = nextLine.split(\",\");\n if(temp[0].length() == 5)\n passwords.insertKey(temp[0], Double.parseDouble(temp[1]));\n }\n }catch(FileNotFoundException e){\n System.out.println(\"Unable to open file \" + fileName);\n }catch(IOException ex){\n System.out.println(\"Error reading file: \" + fileName);\n }\n \n }", "title": "" }, { "docid": "2380d2a4b3e30922d3f68101305ff8e7", "score": "0.44347605", "text": "public void readPublicKey(String filename){\n FileHandler fh = new FileHandler();\n Map<String, BigInteger> pkMap= fh.getKeyFromFile(filename);\n this.n = pkMap.get(\"n\");\n this.e = pkMap.get(\"key\");\n }", "title": "" } ]
16e7bcaee39c6d085a618276abda385a
Constructs a node to be used in the binary tree
[ { "docid": "f4a9c1f49e0bdd9b50624ff9ca21e15c", "score": "0.0", "text": "public Node(Comparable data) {\n this.data = data;\n left = null;\n right = null;\n }", "title": "" } ]
[ { "docid": "e56681d6e70d0ee04a086a330348afbb", "score": "0.7673171", "text": "abstract protected Node makeNode();", "title": "" }, { "docid": "0446fd1ad6dc2a9b3157ffe7b766ba79", "score": "0.7214558", "text": "public Node()\n {\n// if (Tree.DEBUG) {\n// // We can't print the Node because things aren't initialized yet\n// System.out.println(\" new node \" +\n// \t\t\t System.identityHashCode(this));\n// }\n \n parent = null;\n valueNumber = -1;\n key = 0;\n }", "title": "" }, { "docid": "888b41c15344083e743c0aa29dc151ad", "score": "0.7178359", "text": "public LeafNode createLeafNode(Ref<BranchNode> parent);", "title": "" }, { "docid": "be4e42eaa5eb4a1843d5dfeb1f3cc5dd", "score": "0.70748895", "text": "Node<E> createNewNode();", "title": "" }, { "docid": "4af027f27410f59457890a1d09346e68", "score": "0.70550203", "text": "public Node() {}", "title": "" }, { "docid": "ccb53f50fde361495c19601c97f8acae", "score": "0.69637525", "text": "BlankNode createBlankNode();", "title": "" }, { "docid": "ad4c25bd223ce7a8a8b768982efc13ee", "score": "0.6943442", "text": "public Node() { }", "title": "" }, { "docid": "ad4c25bd223ce7a8a8b768982efc13ee", "score": "0.6943442", "text": "public Node() { }", "title": "" }, { "docid": "92d4e5d611ffea497bf0791924c314d7", "score": "0.6915075", "text": "private BinaryTreeNode createTree() {\n BinaryTreeNode node1 = new BinaryTreeNode(1);\n BinaryTreeNode node2 = new BinaryTreeNode(2);\n BinaryTreeNode node3 = new BinaryTreeNode(3);\n BinaryTreeNode node4 = new BinaryTreeNode(4);\n BinaryTreeNode node5 = new BinaryTreeNode(5);\n BinaryTreeNode node6 = new BinaryTreeNode(6);\n BinaryTreeNode node7 = new BinaryTreeNode(7);\n\n SetSubTreeNode(node1, node2, node3);\n SetSubTreeNode(node2, node4, node5);\n SetSubTreeNode(node3, null, node6);\n SetSubTreeNode(node5, node7, null);\n\n return node1;\n }", "title": "" }, { "docid": "c754aff8dc490036959e568421529582", "score": "0.68659407", "text": "Node(){\n\t\tthis.name = null;\n\t\tthis.left = null;\n\t\tthis.right = null;\n\t}", "title": "" }, { "docid": "0d95aedaa302e398933c9a814c64e4e7", "score": "0.68392897", "text": "public Tree(){}", "title": "" }, { "docid": "3d11864bcd464a3a010cb290a0848cbf", "score": "0.6833558", "text": "private static Node constructBST() {\r\n Node root = new Node(30);\r\n root.left = new Node(8);\r\n root.right = new Node(52);\r\n root.left.left = new Node(3);\r\n root.left.right = new Node(20);\r\n root.left.right.left = new Node(10);\r\n root.left.right.right = new Node(29);\r\n return root;\r\n }", "title": "" }, { "docid": "c75596254903a777281dcca7c28abf65", "score": "0.6815077", "text": "private NODE createNode(int nVal, int pID)\r\n{\r\n\tNODE n = new NODE();\r\n\tn.niceValue = nVal;\r\n\tn.processID = pID;\r\n\treturn n;\r\n}", "title": "" }, { "docid": "e22e0332525b37a142002a9f3ef60a90", "score": "0.6810977", "text": "private TreeNode createNode(int id, int value) {\n TreeNode rootNode = new TreeNode(id, value);\n return rootNode;\n }", "title": "" }, { "docid": "5f9aeff7f81a2d38591fb25ce1154121", "score": "0.6810899", "text": "public abstract AbstractNode createNode(String name);", "title": "" }, { "docid": "92843cef25c99e29b2bd61b4c4dcc387", "score": "0.678627", "text": "private Node construct(Node parent, boolean ilc) {\n\n\t\tif (parent == null) {\n\t\t\tSystem.out.println(\"Enter the data for root node!\");\n\t\t} else {\n\t\t\tif (ilc) {\n\t\t\t\tSystem.out.println(\"Enter the data for left child of \" + parent.val);\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"Enter the data for right child of \" + parent.val);\n\t\t\t}\n\t\t}\n\n\t\tint data = sc.nextInt();\n\n\t\tNode node = new Node();\n\t\tnode.val = data;\n\n\t\tSystem.out.println(\"Kya \" + node.val + \" ka left child hai?\"); // 3\n\t\tboolean kyaLeftHai = sc.nextBoolean(); // true\n\n\t\tif (kyaLeftHai)\n\t\t\tnode.left = construct(node, true);\n\n\t\tSystem.out.println(\"Kya \" + node.val + \" ka right child hai?\"); // 3\n\t\tboolean kyaRightHai = sc.nextBoolean(); // true\n\n\t\tif (kyaRightHai)\n\t\t\tnode.right = construct(node, false);\n\n\t\treturn node; // 3k\n\t}", "title": "" }, { "docid": "d41a67dfc63ec520bb292b5143bf6829", "score": "0.6782163", "text": "public Tree() {}", "title": "" }, { "docid": "97fdf9dc66d917e835b5d8e6e87108b0", "score": "0.6745614", "text": "public TreeNode() {\n\t\tthis(null, null, null);\n\t}", "title": "" }, { "docid": "9ff49b501d1a4cad109eb214772fb549", "score": "0.6732392", "text": "private Node() { }", "title": "" }, { "docid": "f0344b9cd127c3a3f416919b3f073930", "score": "0.6720118", "text": "public BinaryTree()\n\t{\n\t\t\n\t}", "title": "" }, { "docid": "988df2018d974079c67bf5bfbe3dbc25", "score": "0.669917", "text": "public BinaryTree(T item){\n root = new TreeNode<T>(item);\n size = 1;\n }", "title": "" }, { "docid": "97d502b37f335fbaa8254d93f14bb245", "score": "0.66985947", "text": "public BinaryNode (T dataPortion)\n {\n this (dataPortion, null, null); // call next constructor\n }", "title": "" }, { "docid": "9296aa9d323336c4378231b97073bc11", "score": "0.6694193", "text": "public BranchNode createBranchNode(Ref<BranchNode> parentRef, int numChildren);", "title": "" }, { "docid": "aa5c3f54fe8dc4d793a14a1a8532e49f", "score": "0.6686902", "text": "protected Node<E> createNode(final E value) {\n return new Node<>(value);\n }", "title": "" }, { "docid": "a2c170a4ecc07643899b28c4861eac43", "score": "0.6685113", "text": "TripleNode createTripleNode();", "title": "" }, { "docid": "965fc6b13d9b9eceae2442c0899e5017", "score": "0.66457057", "text": "public BinaryTree(){\n //TreeNode<T> tree = new TreeNode<T>(null);\n root = null;\n size = 0;\n }", "title": "" }, { "docid": "f8f0e1494747bb6e6539af753852e5d6", "score": "0.66444755", "text": "static LeafNode create(Bytes data) {\n return new LeafNodeImpl(data);\n }", "title": "" }, { "docid": "be5953ac662b812a430d3d6a5c0a6fa8", "score": "0.6640427", "text": "public Node() {\n //Default constructor for the Node class\n }", "title": "" }, { "docid": "55df715f863ed764c4708ea1b4aa7fbc", "score": "0.66400486", "text": "public Node() {\n }", "title": "" }, { "docid": "e5fe97db187b6b84c22f04b1b7d7038b", "score": "0.66374034", "text": "protected abstract TreeType newTree();", "title": "" }, { "docid": "a44c3b91cf4f68edd28844258c3324f4", "score": "0.66369444", "text": "static Node newNode(int key) \n\t{ \n\t\tNode node = new Node(); \n\t\tnode.data= key; \n\t\tnode.left = null; \n\t\tnode.right = null; \n\t\treturn node; \n\t}", "title": "" }, { "docid": "02c8cdcebd1f7cbfa21c0f7f2379016a", "score": "0.6634621", "text": "public DNode<L> node(L label);", "title": "" }, { "docid": "3534e0c47d6c8522a4ec35ab42b9d893", "score": "0.662503", "text": "public BinaryTree() {\n }", "title": "" }, { "docid": "039e5791bb7a18911be01945eb72b472", "score": "0.6599774", "text": "public static TreeNode createBinaryTree() {\n\r\n\t\tTreeNode rootNode = new TreeNode(40);\r\n\r\n\t\tTreeNode node20 = new TreeNode(20);\r\n\t\tTreeNode node10 = new TreeNode(10);\r\n\t\tTreeNode node30 = new TreeNode(30);\r\n\r\n\t\tTreeNode node60 = new TreeNode(60);\r\n\t\tTreeNode node50 = new TreeNode(50);\r\n\t\tTreeNode node70 = new TreeNode(70);\r\n\r\n\t\trootNode.left = node20;\r\n\t\trootNode.right = node60;\r\n\r\n\t\tnode20.left = node10;\r\n\t\tnode20.right = node30;\r\n\r\n\t\tnode60.left = node50;\r\n\t\tnode60.right = node70;\r\n\r\n\t\treturn rootNode;\r\n\t}", "title": "" }, { "docid": "a28ee7aa3026bfe0013d69c68dbbcf46", "score": "0.65878206", "text": "public Node() {\n }", "title": "" }, { "docid": "f64fc6ea7e2fbf44796b9ec93d18dcff", "score": "0.6585213", "text": "public Node(){\r\n }", "title": "" }, { "docid": "eb08b5e8ed10fef971c5e7bc344836c9", "score": "0.6582031", "text": "private static Tree buildTree() {\n Node left = new Node(7,\n\n new Node(2,\n new Node(1,null,null),\n new Node(3,null,null)),\n new Node(8,\n new Node(6,null,null),\n new Node(9,null,null)));\n\n Node right = new Node(20,\n new Node(15,\n new Node(13,null,null),\n new Node(17,null,null)),\n new Node(30,\n new Node(25,\n new Node(24,null,null),\n new Node(27,null,null)),\n new Node(36,\n new Node(32,\n new Node(31,null,null),\n new Node(34,\n new Node(33,null,null),\n new Node(35,null,null))),\n new Node(38,null,null)))\n );\n\n\n Tree tree = new Node(10,left,right);\n return tree;\n }", "title": "" }, { "docid": "2cb32e10e21d309f7d947fb25cdc5fba", "score": "0.6568985", "text": "static Node newnode(int key)\n {\n\n Node node = new Node();\n node.key = key;\n node.left = node.right = null;\n return (node);\n }", "title": "" }, { "docid": "75669d4727795e349d9f33d710e0215a", "score": "0.6544951", "text": "private static Node createTree() {\n\t\t\n\t\tNode root = new Node(10);\n\t root.leftNode = new Node(8);\n\t root.rightNode = new Node(2);\n\t root.leftNode.leftNode = new Node(3);\n\t root.leftNode.rightNode = new Node(5);\n\t root.rightNode.leftNode = new Node(2);\n\t\t/*Node root = new Node(6);\n\t\troot.leftNode = new Node(3);\n\t\troot.leftNode.leftNode = new Node(2);\n\t\troot.leftNode.rightNode = new Node(5);\n\t\troot.leftNode.rightNode.leftNode = new Node(7);\n\t\troot.leftNode.rightNode.rightNode = new Node(4);\n\t\troot.rightNode = new Node(5);\n\t\troot.rightNode.rightNode = new Node(4);*/\n\t\treturn root;\n\t}", "title": "" }, { "docid": "3ad89476c7aa958ac84cb68cc73e3c8b", "score": "0.6542956", "text": "public INode makeNode(INode parent, String name);", "title": "" }, { "docid": "502c17fb31e37f39d23c4e6da9be07c0", "score": "0.6539653", "text": "public static Node CreateTree() {\n\t\tNode root = new Node(new ElemInteger(17));\n\t\tNode n_14 = new Node(new ElemInteger(14));\n\t\tNode n_13 = new Node(new ElemInteger(13));\n\t\tNode n_1 = new Node(new ElemInteger(1));\n\t\tNode n_7 = new Node(new ElemInteger(7));\n\t\tNode n_2 = new Node(new ElemInteger(2));\n\t\tNode n_3 = new Node(new ElemInteger(3));\n\t\tNode n_28 = new Node(new ElemInteger(28));\n\t\tNode n_29 = new Node(new ElemInteger(29));\n\t\tNode n_30 = new Node(new ElemInteger(30));\n\t\tNode n_31 = new Node(new ElemInteger(31));\n\t\tNode n_32 = new Node(new ElemInteger(32));\n\t\tNode n_33 = new Node(new ElemInteger(33));\n\t\tNode n_34 = new Node(new ElemInteger(34));\n\t\tNode n_35 = new Node(new ElemInteger(35));\n\t\t\n\t\troot.leftmostChild = n_14;\n\t\t\n\t\tn_14.leftmostChild = n_1;\n\t\tn_14.rightSibling = n_13;\n\t\t\n\t\tn_13.leftmostChild = n_7;\n\t\t\n\t\tn_7.rightSibling = n_30;\n\t\tn_30.rightSibling = n_31;\n\t\tn_31.rightSibling = n_32;\n\t\tn_32.rightSibling = n_33;\n\t\tn_33.leftmostChild = n_34;\n\t\tn_34.rightSibling = n_35;\n\t\t\n\t\tn_1.leftmostChild = n_2;\n\t\t\n\t\tn_2.rightSibling = n_3;\n\t\tn_3.rightSibling = n_28;\n\t\tn_28.rightSibling = n_29;\n\t\t\n\t\treturn root;\n\t}", "title": "" }, { "docid": "230996f13d155802477171894ab93465", "score": "0.65183157", "text": "NodeVariable createNodeVariable();", "title": "" }, { "docid": "3b9fcd355e4b08eb9be0a31f5e136e9d", "score": "0.65157306", "text": "public Node(Number number)\r\n\t{\r\n\t\tthis.number = number;\r\n\t}", "title": "" }, { "docid": "81f6aa856f57548acc7b590da6b0ae53", "score": "0.6515407", "text": "public Tree() {\r\n\t\tcreateEmptyNode();\r\n\t}", "title": "" }, { "docid": "d8be156dac5c5d5cef06637f96f1164e", "score": "0.6502457", "text": "private static BinaryTreeNode<Character> buildTree() throws java.io.IOException\n {\n BinaryTreeNode current = new BinaryTreeNode<Character>();\n\n int next = System.in.read();\n //0 indicates a new node to be made inorder.\n if ((char)next == '0')\n {\n //Recursively build the right and half sides of the trees inorder.\n current.setLeftChild(buildTree());\n current.setRightChild(buildTree());\n }\n // 1 indicates a new leaf to be made with the data being the character following the 1.\n else if ((char)next == '1')\n {\n current.setData((char)(System.in.read()));\n }\n\n return current;\n }", "title": "" }, { "docid": "326c7d08ec6374cb6b139d2a6cec2d78", "score": "0.65006524", "text": "public TreeNode<K, V> newTreeNode(int hash, K key, V value, Node<K, V> next) {\n return new TreeNode<>(hash, key, value, next);\n }", "title": "" }, { "docid": "6ad8eea1fcc0f99019f7c2d3e40a62eb", "score": "0.64946526", "text": "public RBNode() {\n\t}", "title": "" }, { "docid": "04eb6d81e65867d87b4ecfef9ab2bdf7", "score": "0.6491143", "text": "public Node(int value) {//Constructor to create a new node and insert data\n this.value = value;\n }", "title": "" }, { "docid": "34ea7ee49d232df288c124f29be031af", "score": "0.64824224", "text": "Node createNode(String name, Node parent, int depth) {\n String value;\n NodeType type;\n String content = name.substring(depth);\n\n // splits the input node names\n if (content.startsWith(\"<\") && content.endsWith(\">\")) {\n if ((content.substring(1, 4)).equals(\"INT\")) {\n value = content.substring(5, content.length() - 1);\n type = NodeType.INTEGER;\n } else if ((content.substring(1, 3)).equals(\"ID\")) {\n value = content.substring(4, content.length() - 1);\n type = NodeType.IDENTIFIER;\n } else if ((content.substring(1, 4)).equals(\"STR\")) {\n value = content.substring(5, content.length() - 1);\n type = NodeType.STRING;\n } else {\n value = content.substring(1, content.length() - 1);\n type = NodeType.BOOLEAN;\n }\n } else {\n value = content;\n type = NodeType.NONTERMINAL;\n }\n return new Node(value, parent, depth, type);\n\n }", "title": "" }, { "docid": "92177541d9d9d081b528f83af1f53020", "score": "0.6471481", "text": "protected TSTNode(char data, Integer value) //New node with null links.\n {\n this.value = value;\n this.data = data;\n left = null;\n mid = null;\n right = null;\n }", "title": "" }, { "docid": "1e488ca0b840b49f94a17cc7491eed82", "score": "0.646964", "text": "public Node(String label) {\n this(label, null, 0);\n }", "title": "" }, { "docid": "bcc0adca61d2d4db76cff47bdcce0ae6", "score": "0.64670396", "text": "Node(int d) \n\t { data = d; }", "title": "" }, { "docid": "5e2a71aa535ecccc178786516c72054f", "score": "0.6465542", "text": "private Node construct(Node parent, boolean isLeftChild) {\n\t\t// TODO Auto-generated method stub\n\n\t\tif (parent == null) {\n\t\t\tSystem.out.println(\"Enter the data for root node!\");\n\t\t} else {\n\t\t\tif (isLeftChild) {\n\t\t\t\tSystem.out.println(\"Enter the data for left child of \" + parent.val);\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"Enter the data for right child of \" + parent.val);\n\t\t\t}\n\t\t}\n\n\t\tint val = sc.nextInt();\n\n\t\tNode node = new Node(); // Node class ka constructor ka called\n\t\tnode.val = val;\n\n\t\tSystem.out.println(\"Kya \" + node.val + \"ka left child hai?\");\n\n\t\tboolean kyaLeftHai = sc.nextBoolean(); // true\n\n\t\tif (kyaLeftHai) {\n\t\t\tnode.left = construct(node, true);\n\t\t}\n\n\t\tSystem.out.println(\"Kya \" + node.val + \"ka right child hai?\");\n\n\t\tboolean kyaRightHai = sc.nextBoolean(); // true\n\n\t\tif (kyaRightHai) {\n\t\t\tnode.right = construct(node, false);\n\t\t}\n\t\treturn node;\n\t\t// final calls khtam hone ke baad from Construct function it will return that particular\n\t\t// node and connects it with the root node.\n\t}", "title": "" }, { "docid": "2b768693c5dfd1fddcd1764759eae974", "score": "0.6459081", "text": "protected Node instantiateNode(long lKey, long lValue)\n {\n return new PrimitiveNode(lKey, lValue);\n }", "title": "" }, { "docid": "d5c543b6e2155b3283cca46918d98174", "score": "0.6444261", "text": "@Override\n public A makeNode(int label) {\n return (A) new UndirectedNode(label);\n }", "title": "" }, { "docid": "1209bb4947de71d216b89e0ac9187be1", "score": "0.6441646", "text": "public Node() {\r\n\t\t\r\n\t\tthis.board = new Board(8,8);\r\n\t\tthis.n_children = 0;\r\n\t\tthis.heuristic_value = 0;\r\n\t\tthis.level = 0;\r\n\t\tthis.column = 0;\r\n\t\tthis.children = new Node[8];\r\n\t}", "title": "" }, { "docid": "b02211e5f513e4275ffd6b919ddd0c6e", "score": "0.6424091", "text": "public Node(String attr){this.attribute = attr;}", "title": "" }, { "docid": "943f76fc1146dfe7c6e880b0635887f3", "score": "0.6415316", "text": "@Test\n\tpublic void createH2OTreeLeafNode() {\n\t\tbyte[] binaryTreeArray = {(byte)8, (byte)255, (byte)255, (byte)0, (byte)0, (byte)0, (byte)0};\n\t\tAbstractNode result = NodeFactory.createH2OTree(binaryTreeArray, 0);\n\t\tLeaf leaf = (Leaf)result;\n\t\tassertTrue(leaf.getValue() == 0);\n\t}", "title": "" }, { "docid": "ad7867f93fd800eb6f269efc21a2643f", "score": "0.6414681", "text": "public Node(int value) {\n this.data = value;\n this.left = right = null;\n }", "title": "" }, { "docid": "6d97b2c154d8fef02e42e7998a835e1f", "score": "0.6410847", "text": "public Node(N category1, N2 category2, N3 category3){\r\n this.category1 = category1;\r\n this.category2 = category2;\r\n this.category3 = category3;\r\n this.right = null;\r\n this.left = null;\r\n this.down = null;\r\n }", "title": "" }, { "docid": "8d85b7240c2e2532f1fede617775f27e", "score": "0.6403383", "text": "public void CreateNode(int val,char single_char){\n this.letter = single_char;\n this.value = val;\n }", "title": "" }, { "docid": "8fa1c014cae6fcab60c3704198f711de", "score": "0.63988364", "text": "public Node() {\n this(true);\n }", "title": "" }, { "docid": "bcca96ea1042afa9fdb032ea2e55ed3d", "score": "0.6393578", "text": "public TreeNode(int x) {\n val = x;\n }", "title": "" }, { "docid": "5b0d812da833e861ba37193fb1703d31", "score": "0.6390184", "text": "static Node newNode(int data) \n { \n Node temp = new Node(); \n temp.data = data; \n temp.left = null; \n temp.right = null; \n return temp; \n }", "title": "" }, { "docid": "1ec6109151185d151466bedf8e8102bf", "score": "0.638056", "text": "static Node newNode(int val) {\n // allocate space\n Node temp = new Node();\n\n // put in the data\n temp.data = val;\n temp.left = null;\n temp.right = null;\n return temp;\n }", "title": "" }, { "docid": "b69aa5d2701ee896fa1fa526f253c8ae", "score": "0.638003", "text": "public NodeInfo(){}", "title": "" }, { "docid": "e8aba8779d77ea16f62a198009a2511a", "score": "0.6375561", "text": "public Node() {\n\t\t\tint size = 2;\n\t\t\ttype = size;\n\t\t\tthis.size = size;\n\t\t\tnumChild = 0;\n\t\t\tdata = new int[3];\n\t\t\tchildren = new Node[4];\n\t\t}", "title": "" }, { "docid": "b896b23f08f6875a21b7de5df2bb5151", "score": "0.6364065", "text": "Node(K k, V v) {\n // left and right default to null\n key = k;\n value = v;\n height = 0;\n }", "title": "" }, { "docid": "c6a35d0e3bdca2a27e4acf3a66bfc872", "score": "0.6360645", "text": "public Node () {\n\t\tthis (null, BLACK);\n\t}", "title": "" }, { "docid": "e9468ca6e635501f9d84b9cc710bdb19", "score": "0.63528645", "text": "public BinaryTreeNode()\r\n {\r\n left = null;\r\n right = null;\r\n }", "title": "" }, { "docid": "675f4a5ddcc0fe0bb708e852cb6d59ee", "score": "0.6344191", "text": "public BinaryTree() {\n index = 0;\n root = null;\n }", "title": "" }, { "docid": "62b2377f477e2628d488f6acede54730", "score": "0.6341229", "text": "public Node() {\r\n value = 0;\r\n }", "title": "" }, { "docid": "5d92298a284f9e27b720274cb65b7016", "score": "0.634072", "text": "public Node (int inputInt)\n {\n\tthis.data = inputInt;\n\tthis.left = null;\n\tthis.right = null;\n }", "title": "" }, { "docid": "412fade1d7b00e740dde696918f745c8", "score": "0.63406986", "text": "private long createNode(Object state)\n {\n //Give the Node a new random Id.\n Random random = new Random();\n long newId = random.nextLong();\n \n //Make sure the Id is unique.\n while(containsKey(newId))\n newId = random.nextLong();\n \n //Create the new Node and put it into the list.\n put(newId, new Node(state, newId));\n \n //Return the new Node's Id.\n return newId;\n }", "title": "" }, { "docid": "1e5835c33a01610955a7dbce8243fbe8", "score": "0.63400126", "text": "Node(String data) // a constructor that initilizes whatever data you have in the node\n {\n this.data = data;\n }", "title": "" }, { "docid": "fd0ad6868d8840582d60994d0a713415", "score": "0.63333154", "text": "public BSTNode()\r\n\t{\r\n\t}", "title": "" }, { "docid": "6482d1c25d523b176d98e98d5e6bc709", "score": "0.63252085", "text": "WorkflowNode createWorkflowNode();", "title": "" }, { "docid": "ba46357e7a5c5cc4ecc821785bc87d6c", "score": "0.63238347", "text": "Node newNode(String cityName);", "title": "" }, { "docid": "4143c2471308db138d8bc36afe96054c", "score": "0.63154894", "text": "public Node(String state) {\n this(null, state, 0);\n }", "title": "" }, { "docid": "6bccf3204ec62024ebc2a92787f0410a", "score": "0.63134396", "text": "protected Node<E> createNode(E e, Node<E> parent,\n Node<E> left, Node<E> right) {\n return new Node<E>(e, parent, left, right);\n }", "title": "" }, { "docid": "890c1396bb18319966bda756bc417ff1", "score": "0.6309024", "text": "public Node(int data){ \r\n this.data = data; \r\n this.left = null; \r\n this.right = null; \r\n }", "title": "" }, { "docid": "6978f9d1ceea6997657e66e8d5b3b63b", "score": "0.6302042", "text": "public Node() {\n\t\t\tthis(null);\n\t\t}", "title": "" }, { "docid": "4c1c94cad60615f5a62540fa2d3e852c", "score": "0.62983066", "text": "static Node newNode(int data) {\n Node temp = new Node();\n temp.data = data;\n temp.right = null;\n temp.left = null;\n return temp;\n }", "title": "" }, { "docid": "faf4a4a2e33e1f98db09c23359b75dc3", "score": "0.6297744", "text": "BinaryTree() {\n }", "title": "" }, { "docid": "222ccd84a8710fca970c4b4b1abc2e28", "score": "0.6296971", "text": "public Node(int key){\r\n\t\tthis.key = key;\r\n\t\t// Node objects initiated with empty subtrees.\r\n\t\tthis.left = null;\r\n\t\tthis.right = null;\r\n }", "title": "" }, { "docid": "90e02dfac482a5da3982eaee560c68df", "score": "0.62837374", "text": "public Node() {\n this(null);\n }", "title": "" }, { "docid": "99fa0eb9990f561b7ca632b415822a19", "score": "0.62836504", "text": "public static BfsNode create(DataInput in) throws IOException {\n BfsNode m = new BfsNode();\n m.readFields(in);\n\n return m;\n }", "title": "" }, { "docid": "197561a089ee7b78aec4d12ea614b15d", "score": "0.6276802", "text": "public Node (IBoard board) {\n\t\tdepth = 1;\n\t\tthis.board = board;\n\t\talpha = -10000;\n\t\tbeta = 10000;\n\t\tparent = null;\n\t\tchildOn = 0;\n\t\tthis.newNode = true;\n\t\tthis.maxNode = board.isMax();\n\t}", "title": "" }, { "docid": "29c89ebcc581ef5038ed79515d027dca", "score": "0.6276157", "text": "public Cnode() {\r\n }", "title": "" }, { "docid": "8cc40f8cd31c8a44f1ee6d2f43e7f105", "score": "0.6267966", "text": "public Node() //# create a node with a null element and next reference\n {\n this(null, null);\n }", "title": "" }, { "docid": "6af429ab8ff2a0ef09675a2a1093721c", "score": "0.6259395", "text": "public LinkedBinaryTree() {\n }", "title": "" }, { "docid": "452a8c97ba9512fe2729e764bd1827ed", "score": "0.625715", "text": "public Node(DataItem data) {\r\n\t\tthis.data = data;\r\n\t\tleftChild = new Node();\r\n\t\trightChild = new Node();\r\n\t\tparent = null;\r\n\t}", "title": "" }, { "docid": "7a15017d632c1ed49660664344e056c4", "score": "0.6248077", "text": "public Node(String name) {\n super(name);\n children = new ArrayList();\n LoggingSystem.getLogger().log(Level.INFO, \"Node created.\");\n }", "title": "" }, { "docid": "df9d181fc87abc32a4ea8ca1288f8578", "score": "0.6237297", "text": "public Tree (Node root){\r\n\t\tthis.root = root;\r\n\t}", "title": "" }, { "docid": "9e24ab294d3c473ddaa778eeb1fa2d51", "score": "0.62339765", "text": "public CFGNode() {\n \tnumber = CFGNodeNumber.getNext();\n }", "title": "" }, { "docid": "10bae89bbf482fb4df8b620af20325f2", "score": "0.6233875", "text": "public Node(String newWord){\n\t\tword = newWord;\n\t\twordLength = word.length();\n\t\tnumOfOccurence = 1;\n\t\tleftChild = null;\n\t\trightChild = null;\t\n\t\tMyLogger.writeMessage(\"Inside Node constructor\",MyLogger.DebugLevel.CONSTRUCTOR);\t\n\t}", "title": "" }, { "docid": "235e8288b3a64b8b25ed11ed96fa256f", "score": "0.6233228", "text": "public LinkedBinaryTreeNode(E data) {\n this.data = data;\n }", "title": "" }, { "docid": "cf70f5c0b3fd00158db2087253a84b55", "score": "0.6227132", "text": "public BinaryNode(double val) {\n this.value = val;\n }", "title": "" }, { "docid": "9903b16e8c9ae16440a22e91b0478acf", "score": "0.62245834", "text": "Node ()\n {\n children = new int [Letters];\n Arrays.fill (children, NA);\n position = NA;\n start = NA;\n length = 0;\n }", "title": "" }, { "docid": "705e9b12ad21246956ec798ee0f3517d", "score": "0.6212735", "text": "public Btree(int t) {\r\n\t\tthis.t=t;\r\n\t\tthis.root=new BNode(this.t);\r\n//\t\twrite_disk(this.root,this.root.x[0]+\".ptr\");\r\n\t}", "title": "" }, { "docid": "1daa8305f2539d3bd2ec62dc3034e20e", "score": "0.62049085", "text": "public BinaryTree()\n {\n value = null;\n parent = left = right = null;\n }", "title": "" } ]
6aabfb2005d2ecc8b41142451667a354
public abstract void onResponseReceived(ArrayList locations);
[ { "docid": "99d0c360ee77e9c848556cc6704e454e", "score": "0.0", "text": "@Override\n protected void onPostExecute(Result result) {\n if (result != null && mCallback != null) {\n if (result.mException != null) {\n mCallback.updateFromDownload(result.mException.getMessage());\n } else if (result.bankLocations != null) {\n mCallback.updateFromDownload(result.bankLocations);\n }\n mCallback.finishDownloading();\n }\n\n }", "title": "" } ]
[ { "docid": "6fe79757cc075901c4226ba358f77b5f", "score": "0.7018743", "text": "public abstract void onResponseReceived(String response);", "title": "" }, { "docid": "fbc2aa77f2648ebe18f94a1e908882ba", "score": "0.6960764", "text": "public abstract void locationResponseHandler(Location location);", "title": "" }, { "docid": "f72d533604cc79e539c3231bdaaef1fe", "score": "0.6926871", "text": "@Override\n\tpublic void onSuccess(ArrayList response) {\n\n\t}", "title": "" }, { "docid": "4e2a21ab19dce7acd23098ea8fcf4628", "score": "0.6565261", "text": "private void getLocationListAPICall() {\n if (!Utils.hasInternetConnection(context)) {\n showNoResult(true);\n MessageUtil.showSnackbar(context, getString(R.string.str_connection_error), true);\n return;\n }\n showSkeletonView();\n AndroidNetworking.get(Constants.API_END_POINT_LOCATION)\n .setPriority(Priority.HIGH)\n .build()\n .getAsJSONArray(new JSONArrayRequestListener() {\n @Override\n public void onResponse(JSONArray response) {\n try {\n Type listType = new TypeToken<ArrayList<LocationModel>>() {\n }.getType();\n ArrayList<LocationModel> locationModelArrayList = new Gson().fromJson(response.toString(), listType);\n\n populateRecyclerView(locationModelArrayList);\n Log.e(TAG, \"\" + response.toString());\n } catch (Exception e) {\n Log.e(TAG, \"\" + e.getMessage());\n }\n }\n\n @Override\n public void onError(ANError anError) {\n showNoResult(true);\n Log.e(TAG, \"\" + anError.toString());\n }\n });\n }", "title": "" }, { "docid": "12182ff937507949be52590a0da0c423", "score": "0.6508567", "text": "public interface ResultCallback {\n\n void onResult(List<SignalCoordinate> list);\n\n}", "title": "" }, { "docid": "31b880e819823d32e1a07538e152b520", "score": "0.63768363", "text": "public interface IMapCallback {\n public void getLocation(List<Double> list);\n}", "title": "" }, { "docid": "f2b02d77baa38524f23041e9420bcce5", "score": "0.6374373", "text": "public interface GetLocalityResponseListener {\n\n public void getLocalityResponse(ArrayList<LocalityDetails> localityList);\n\n}", "title": "" }, { "docid": "3ac0befd55a0eca31e17a3bcc0fb7db5", "score": "0.63492304", "text": "@Override\n public void onLocationsUpdated(List<String> locations) {\n\n Toast.makeText(this, \"Locations updated :\\n\" + locations, Toast.LENGTH_LONG).show();\n }", "title": "" }, { "docid": "9eefb8678bde66055869106bbf9d9373", "score": "0.63166386", "text": "@Override\n public void onSuccess(Location location) {\n }", "title": "" }, { "docid": "0c01f711d92bd4279e6d16dc6a467f1c", "score": "0.6304786", "text": "public List<Location> getCompletedLocations();", "title": "" }, { "docid": "a3f81417aae6841160907fa31912ab3f", "score": "0.63044125", "text": "public interface ResponseListener {\n public void onResponseSuccess(ArrayList<Contact> response);\n\n public void onResponseError(String error);\n}", "title": "" }, { "docid": "a7d6bed7616a5d6342e244dac04fc27c", "score": "0.63027555", "text": "void onResponseReceived(final ILLZSentRequest originalSentRequest, final ILLZRcvResponse response);", "title": "" }, { "docid": "8c7c8403ce153ab34443bba5754367bd", "score": "0.62970304", "text": "@Override\n\tpublic void onCoordResponse(int arg0, int arg1, int arg2) {\n\t\t\n\t}", "title": "" }, { "docid": "9bf3ff31656475c306cf02eb545b06d4", "score": "0.62707233", "text": "public interface OnGetRecordDataListener {\n\n void onSuccess(ArrayList<Location> history);\n\n void onGetAllRecords(ArrayList<Record> records);\n\n void onFailure(String errorMessage);\n}", "title": "" }, { "docid": "c56b0494893ffb42f5976f52a4171c50", "score": "0.6246225", "text": "@Override\n public void deliverResult(List<Location> locations) {\n mJsonLocationData = locations;\n super.deliverResult(locations);\n }", "title": "" }, { "docid": "78e9215325e21247e7a74e05c86b9635", "score": "0.6215898", "text": "public interface OnTaskCompleted {\n void onTaskCompleted(DataLocation data_location);\n}", "title": "" }, { "docid": "e5bde0b7d15093c16072d2311362004e", "score": "0.62077296", "text": "public interface ForecastListAsyncResponse {\n void processFinished(ArrayList<Forecast> forecastArrayList);\n}", "title": "" }, { "docid": "7f70bee547a3b36df912db86b36965c5", "score": "0.6188589", "text": "public interface OnReceiveDataListener {\n void onReceiveData(Location firstLocation);\n}", "title": "" }, { "docid": "9d08eb8adb0a03823c73d4fc342680d0", "score": "0.6183479", "text": "void onFinished(List<Object> data);", "title": "" }, { "docid": "9fcec2413061ea4d6ddbe1f9b1492877", "score": "0.61503816", "text": "public interface OnDirectionsComplete {\n void onSuccess(LatLngBounds boundaries, ArrayList<LatLng> waypoints);\n void onFailure();\n }", "title": "" }, { "docid": "d4560b15ef84b376066e3ef93ba56c40", "score": "0.6150085", "text": "@Override\n\tpublic void onGetRestaurantsForEventResult(List<Restaurant> restaurants) {\n\n\t}", "title": "" }, { "docid": "f1811384083635c09df797cb31ded200", "score": "0.61175907", "text": "@Override\n public void onSuccess(Location location) {\n if (location != null) {\n // Logic to handle location object\n Log.e(\"My Location\", location.getLatitude()+\" \"+ location.getLongitude());\n getShadiHallList(String.valueOf(location.getLatitude()), String.valueOf(location.getLongitude()));\n }\n }", "title": "" }, { "docid": "12dd4d0fd6ca75fabdb65bf2915b551e", "score": "0.6077187", "text": "public interface OnReturnedTipsListener {\n void onResponse(List<Tip> tipsList);\n void onFailure(String error);\n}", "title": "" }, { "docid": "ac2ed9ef6ce59ed68fb543e0c70bbec5", "score": "0.6073951", "text": "public interface OnTaskCompleted {\n void onTaskCompleted(ArrayList result, int total);\n}", "title": "" }, { "docid": "fb1cfc54db682401d5ab0cc628329fa8", "score": "0.60593295", "text": "public interface AMapLocateCallback {\n void onLocateOk(LocationEntity entity);\n\n void onLocateFailed();\n}", "title": "" }, { "docid": "b5cb3ac53a158ef0d00a1cc2ac806cd1", "score": "0.6041049", "text": "public interface GetQueryCallback {\n\n public abstract void done(ArrayList<FoodItem> query);\n}", "title": "" }, { "docid": "f948107ad562c8aabf30e3d88fc0a0f0", "score": "0.59392285", "text": "@Override\r\n\tpublic void onSuccess(String[] response, int UNIQUE_ID) {\n\r\n\t}", "title": "" }, { "docid": "adae3567c001371a00bf4f9b1676f23b", "score": "0.5931103", "text": "@Override\n public void onSuccess(Location currentLocation) { // on current location received\n mLatLng = new LatLng(\n currentLocation.getLatitude(), // save current location\n currentLocation.getLongitude()\n );\n getPois(); // get POIs for current location\n }", "title": "" }, { "docid": "f9596d5f31ec74d958928a83bfbec9d4", "score": "0.591196", "text": "public interface ContactResultListener {\n public void onContactCompleted(List<Contact> contactList);\n}", "title": "" }, { "docid": "fe83905afe1cb2b766654c389f67bdf8", "score": "0.59005684", "text": "public interface IGoogleMapsClientHandler {\n void onReceiveDirections(ArrayList<Step> steps, Error error);\n}", "title": "" }, { "docid": "d4488a8b53098244a05cf8050a033a2d", "score": "0.58899194", "text": "public interface PlacesViewInterface {\n void onPlacesSuccess(ArrayList<Place> result);\n void onPlacesFailure(String message);\n}", "title": "" }, { "docid": "47dc95c972c42b087bda9dc1a60c2b9c", "score": "0.5888776", "text": "public interface MyLocationCallback {\n void onLocationUpdated(double longitude, double latitude);\n void onLocationResultFailed();\n}", "title": "" }, { "docid": "0b48aa6fe0b55249a2e6a988427e4569", "score": "0.5881767", "text": "private void get_locations() {\n String tag_string_req = \"req_location\";\n StringRequest strReq = new StringRequest(Request.Method.POST,\n AppConfig.LOCATIONSGET_URL, new Response.Listener<String>() {\n @Override\n public void onResponse(String response) {\n Log.d(TAG, \"Insert Location Response: \" + response);\n\n JSONObject jObj = null;\n try {\n jObj = new JSONObject(response);\n boolean error = jObj.getBoolean(\"error\");\n if (error) {\n // Error in location. Get the error message\n String errorMsg = jObj.getString(\"error_msg\");\n Toast.makeText(getApplicationContext(),\n errorMsg, Toast.LENGTH_LONG).show();\n }\n else{\n String lattt=jObj.getString(\"lat\");\n String lnggg=jObj.getString(\"lng\");\n }\n\n } catch (JSONException e) {\n e.printStackTrace();\n Toast.makeText(getApplicationContext(), \"Json error: \" + e.getMessage(), Toast.LENGTH_LONG).show();\n }\n\n }\n }, new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n Log.e(TAG, \"Insert location error: \" + error.getMessage());\n toastMessage(error.getMessage());\n\n }\n }){\n\n @Override\n protected Map<String, String> getParams() {\n // Posting parameters to insert location\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"email\", email);\n\n return params;\n }\n\n };\n\n // Adding request to request queue\n AppController.getInstance().addToRequestQueue(strReq, tag_string_req);\n }", "title": "" }, { "docid": "3be34bb90a45f04fee1cd3b52db6a5e3", "score": "0.5879242", "text": "public interface GetCityNamesHandler {\n void onCityNamesLoaded(ArrayList<String> cityNames);\n}", "title": "" }, { "docid": "3cc3d098f1d21996de30022334bb6605", "score": "0.5874067", "text": "@Override\n\t\tpublic void onFinish(int status, String result, int type) {\n\t\t\tLog.w(\"Got places response from server callback process >> :\",\n\t\t\t\t\tstatus + \":\" + result);\n\t\t\tswitch (status) {\n\t\t\tcase Constant.STATUS_SUCCESS:\n\n\t\t\t\tlistMasterContent.clear();\n\t\t\t\tlistMasterContent = ServerResponseParser\n\t\t\t\t\t\t.parseSavedPlaces(result);\n\n\t\t\t\tsortMasterListData();\n\n\t\t\t\tupdateContentList(listMasterContent);\n\t\t\t\tupdateDisplayList(listContent);\n\n\t\t\t\tbreak;\n\t\t\tcase Constant.STATUS_SUCCESS_NODATA:\n\t\t\t\tToast.makeText(getApplicationContext(), \"No place found.\",\n\t\t\t\t\t\tToast.LENGTH_SHORT).show();\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tToast.makeText(getApplicationContext(),\n\t\t\t\t\t\t\"An unknown error occured. Please try again!!\",\n\t\t\t\t\t\tToast.LENGTH_SHORT).show();\n\t\t\t\tbreak;\n\n\t\t\t}\n\n\t\t}", "title": "" }, { "docid": "c06cbfebe7fae7b52fe64328d7254121", "score": "0.5872754", "text": "public void locationUpdated() {\n\n }", "title": "" }, { "docid": "1fda67d30199c7da4b7e14027089f313", "score": "0.58589375", "text": "public interface LocationReceiveListener {\n public void onLocationReceived(LatLng latlong);\n}", "title": "" }, { "docid": "2918071175bdbd7a13ed70cf4f063321", "score": "0.5854159", "text": "@Override\n public void onLocationResult(LocationResult location_result)\n {\n if (location_result != null)\n {\n for(Location location : location_result.getLocations())\n {\n // updates player location\n game.setPlayerLocation(location);\n\n // sends the updated game status to the watch\n SendGameStatusToWatch();\n }\n }\n }", "title": "" }, { "docid": "f7b4bbcb4a710ac2a481cbd75cc6a5aa", "score": "0.584762", "text": "@Override\n public void onSuccess(final Location location){\n\n Log.d(\"onSuccess\", \"yes\");\n\n //Initialize userLocation to current Location\n userLocation = new LatLng(location.getLatitude(), location.getLongitude());\n\n\n Log.d(\"userLocation got\", \"mhm\");\n\n\n\n\n //Use getPlaceById to get a PlaceBufferResponse with store place objects\n mGeoDataClient.getPlaceById(\"ChIJmwPYyTyuEmsR3uWBiHOZ0Bg\", \"ChIJWb4BKaGfEmsR1eqO8y2VJRU\", \"ChIJPxFKAxyfEmsRxO8OE9YSPbM\",\n \"ChIJBUEIXdSgEmsR1Cca3tZN-XM\", \"ChIJX6QUdYSnEmsRhOomCvdBK-0\", \"ChIJj39hGgakEmsRBkaXR7RZj78\", \"ChIJWcMD1zCkEmsRY7-wfk6Zoc0\",\n \"ChIJx-bt8x6jEmsRchUM_fecJ88\", \"ChIJq6qqqra8EmsREUl9ocJqXrA\", \"ChIJGea5m-akEmsRoJ7_43eQ7c8\", \"ChIJQVrqUaWlEmsRgZ84VYf3NtU\",\n \"ChIJ76DOtrqlEmsRdoqJ7KkvPDQ\", \"ChIJh-Sby9WoEmsRA1xSlkUzQ78\", \"ChIJuyipg-mxEmsRV2r6D-d1kfI\"\n ).addOnCompleteListener(getActivity(), new OnCompleteListener<PlaceBufferResponse>() {\n @Override\n public void onComplete(@NonNull Task<PlaceBufferResponse> task) {\n //If Places successfully added to BufferResponse\n if (task.isSuccessful()) {\n\n Log.d(\"Places added to br\", \"yes\");\n\n //Get the places from the BufferResponse\n places = task.getResult();\n\n Log.d(\"places in place var\", \"yes\");\n\n //Iterate through the results (the Places) and add each place to ArrayList oblocations\n for(int i = 0; i < places.getCount(); i++){\n oblocations.add(places.get(i));\n\n }\n\n\n Log.d(\"Places arraylist\", \"yep\");\n\n //new Handler object\n Handler mainHandler = new Handler(Looper.getMainLooper());\n\n //Runnable to update UI\n Runnable myRunnable = new Runnable() {\n @Override\n public void run() {\n\n\n\n //String to use as key for location extra: distance from location\n final String EXTRA_DISTANCE = \"com.example.moo.locations.distance\";\n\n\n //String to use as key for phone number extra\n final String EXTRA_PHONENUM = \"com.example.moo.locations.phonenum\";\n\n\n //Comparator to sort locations based on distance from current location\n class DistanceComparator implements Comparator<Location> {\n\n @Override\n public int compare(Location loc1, Location loc2) {\n float dist = loc1.getExtras().getFloat(EXTRA_DISTANCE) - loc2.getExtras().getFloat(EXTRA_DISTANCE);\n if (dist > 0.00001) return 1;\n if (dist < -0.00001) return -1;\n return 0;\n }\n }\n\n\n //For loop that iterates through each place in oblocations\n //and creates a location object using the places' latitude and longitutde values\n //also sets extras bundle to each location\n // containing distance from each location to the current location (float)\n //and phone number for each location (string)\n for (int i = 1; i < oblocations.size(); i++) {\n\n //store latitude from current place in double var\n double lat = oblocations.get(i).getLatLng().latitude;\n //store longitude from current place in double var\n double lon = oblocations.get(i).getLatLng().longitude;\n\n //store current place phone number in string\n String ph = (oblocations.get(i).getPhoneNumber()).toString();\n\n //create new location for current place\n Location storeLocation = new Location(\"storeLocation\");\n\n //Set latitude and longitude for current place's location\n storeLocation.setLatitude(lat);\n storeLocation.setLongitude(lon);\n\n\n //Bundle to store\n // the distance from current location to user's location\n // and the phone number for current location\n Bundle extras = new Bundle();\n\n //Store current location's distance in bundle\n extras.putFloat(EXTRA_DISTANCE, location.distanceTo(storeLocation));\n //Store current locations' phone number in bundle\n extras.putString(EXTRA_PHONENUM, ph);\n\n //Set the extras bundle to current location\n storeLocation.setExtras(extras);\n\n //Add location to the storeLocationsArrayList array so we can access them later\n storeLocationsArrayList.add(storeLocation);\n\n\n\n\n }\n\n //Release BufferedResponse\n places.release();\n\n\n //Call DistanceComparator on storeLocationsArrayList\n //in order to sort from closest to farthest location\n Collections.sort(storeLocationsArrayList, new DistanceComparator());\n\n\n // Add a marker on closest location and move the camera\n LatLng x = new LatLng(storeLocationsArrayList.get(0).getLatitude(), storeLocationsArrayList.get(0).getLongitude()) ;\n map.addMarker(new MarkerOptions().position(x).title(\"Nearest store location\"));\n map.moveCamera(CameraUpdateFactory.newLatLng(x));\n map.animateCamera( CameraUpdateFactory.zoomTo( 17.0f ) );\n\n\n\n //New Geocoder object to get closest location data\n Geocoder gcd = new Geocoder(getActivity(), Locale.getDefault());\n\n\n //Try-catch block to attempt to get closest location's address\n try {\n //gets the address from location\n addresses = gcd.getFromLocation(storeLocationsArrayList.get(0).getLatitude(), storeLocationsArrayList.get(0).getLongitude(), 1);\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n //If address successfully retrieved:\n if (addresses.size() > 0) {\n\n //Set text for closest Location info TextViews using address and extras data\n suburbText.setText(addresses.get(0).getLocality());\n addressText.setText(addresses.get(0).getAddressLine(0));\n phonenumText.setText(storeLocationsArrayList.get(0).getExtras().getString(EXTRA_PHONENUM));\n distanceText.setText((String.format(Locale.ENGLISH, \"%.2f\", storeLocationsArrayList.get(0).getExtras().getFloat(EXTRA_DISTANCE) / 1000)) + \" km\");\n\n }\n\n\n }\n\n\n\n };\n\n mainHandler.post(myRunnable);\n\n\n } else{\n //If user's current location not retrieved successfully\"\n //Hide the map\n FragmentManager fragmentManager = getChildFragmentManager();\n if(mapFragment == null) {\n mapFragment = (SupportMapFragment) fragmentManager.findFragmentById(R.id.map);\n fragmentManager.beginTransaction()\n .remove(mapFragment)\n .commit();\n }\n //Display location services unavailable text view\n locationUnavailable.setVisibility(View.VISIBLE);\n }\n }\n\n });\n }", "title": "" }, { "docid": "468871fb90c8b557a9d5a58324b4f387", "score": "0.58421665", "text": "public interface OnTaskCompleted {\n void onTaskCompleted(ArrayList<Movie> movieList);\n}", "title": "" }, { "docid": "86ff542d601eaec28d121bb0c78e0d58", "score": "0.58411", "text": "void getAgents( AsyncCallback<java.util.List<master.realist.REAlistGUIGenerator.shared.dto.AgentDTO>> callback );", "title": "" }, { "docid": "11b077e2bd365b3a364dca1df83bd5c5", "score": "0.5840698", "text": "public interface GetResultResponse {\n void processFinish(List<SearchResult> output);\n}", "title": "" }, { "docid": "08b83c7b3e45fdb2fb84d2b4eeefb09c", "score": "0.5832202", "text": "public void onCompleted(Response response)\r\n\t\t\t\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\t\t \t \tGraphObject go = response.getGraphObject();\r\n\t\t\t\t\t\t\t\t\t \t \ttry\r\n\t\t\t\t\t\t\t\t\t \t \t{\r\n\t\t\t\t\t\t\t\t\t \t \t\t//It is parsed, the latitude and the longitude are fetched.\r\n\t\t\t\t\t\t\t\t\t \t \t\tJSONArray json_obj = go.getInnerJSONObject().getJSONArray(\"data\");\r\n\t\t\t\t\t\t\t\t\t \t \t\tJSONObject jsobj = json_obj.getJSONObject(0);\r\n\t\t\t\t\t\t\t\t\t \t \t\tString lat1 = jsobj.getJSONObject(\"current_location\").getString(\"latitude\");\r\n\t\t\t\t\t\t\t\t\t \t \t\tString lon1 = jsobj.getJSONObject(\"current_location\").getString(\"longitude\");\r\n\t\t\t\t\t\t\t\t\t \t \t\tString city1 = jsobj.getJSONObject(\"current_location\").getString(\"city\");\r\n\t\t\t\t\t\t\t\t\t \t \t\tString lat2 = jsobj.getJSONObject(\"hometown_location\").getString(\"latitude\");\r\n\t\t\t\t\t\t\t\t\t \t \t\tString lon2 = jsobj.getJSONObject(\"hometown_location\").getString(\"longitude\");\r\n\t\t\t\t\t\t\t\t\t \t \t\tString city2 = jsobj.getJSONObject(\"hometown_location\").getString(\"city\");\r\n\t\t\t\t\t\t\t\t\t \t \t\t\r\n\t\t\t\t\t\t\t\t\t w.setText(\"Current City:\\n\" + city1 + \"\\n\" + lat1 + \"\\n\" + lon1 + \"\\nHometown:\\n\" + city2 + \"\\n\" + lat2 + \"\\n\" + lon2);\r\n\t\t\t\t\t\t\t\t\t \t \t}\r\n\t\t\t\t\t\t\t\t\t \t \tcatch(Exception e)\r\n\t\t\t\t\t\t\t\t\t \t \t{\r\n\t\t\t\t\t\t\t\t\t \t \t\t\r\n\t\t\t\t\t\t\t\t\t \t \t}\r\n\t\t\t\t\t\t\t\t\t \t \t}", "title": "" }, { "docid": "5e51bbdccb4ac9a213024de174b23282", "score": "0.58284783", "text": "public void onSuccess( IContext context, Object[] results);", "title": "" }, { "docid": "ab7db0c626cf1f765dda8ebdb96be102", "score": "0.5814228", "text": "void onResponse(T response);", "title": "" }, { "docid": "4d852d21ea3142e71c51337ef487bfb1", "score": "0.5812392", "text": "public void search(ArrayList<PickupLocation> locations) {\n// message.setText(\"Trying to perform single car search\");\n\n // use the same network queue across our application\n final RequestQueue queue = NetworkManager.sharedManager(this).queue;\n // request type is POST\n final StringRequest searchRequest = new StringRequest(\n Request.Method.GET,\n baseURL + \"/api/single-car?id=\" + id,\n response -> {\n try {\n JSONArray results = new JSONArray(response);\n JSONObject result;\n String[] addresses; String[] phones; String[] loc_ids;\n String tempID; String tempAddr; String tempPhone;\n if (results.length() == 1) {\n result = results.getJSONObject(0);\n title.setText(result.getString(\"car_name\"));\n category.setText(result.getString(\"car_category\"));\n rating.setText(result.getDouble(\"car_rating\") + \"\");\n\n loc_ids = result.getString(\"location_ids\").split(\";\");\n addresses = result.getString(\"location_address\").split(\";\");\n phones = result.getString(\"location_phone\").split(\"<br>\");\n for (int i = 0; i < addresses.length; ++i) {\n tempID = loc_ids[i];\n tempAddr = addresses[i];\n tempPhone = (i < phones.length ? phones[i] : \"\");\n locations.add(new PickupLocation(tempID, tempAddr, tempPhone));\n }\n } else {\n Log.d(\"SingleCarViewActivity.0\", \"error parsing JSON results\");\n return;\n }\n } catch (JSONException e) {\n Log.d(\"SingleCarViewActivity.0\", \"error parsing JSON results\");\n }\n\n System.out.println(\"query: \" + locations.toString());\n Log.d(\"SingleCarViewActivity.1\", response);\n\n /* adapter object used to display list */\n SingleCarListViewAdapter adapter = new SingleCarListViewAdapter(locations, this);\n\n ListView listView = findViewById(R.id.pickup_list); // list id corresponds to UI's list id in singlecar.xml\n listView.setAdapter(adapter);\n\n listView.setOnItemClickListener((parent, view, position, id) -> {\n // TODO : OPTIONALLY CONNECT TO SINGLE LOCATION PAGE\n PickupLocation location = locations.get(position);\n String message = String.format(\"Clicked on position: %d, title: %s\", position, location.getAddress());\n Toast.makeText(getApplicationContext(), message, Toast.LENGTH_SHORT).show();\n /* Toast class to display message */\n });\n\n\n// // initialize the activity(page)/destination\n// Intent listPage = new Intent(Main.this, ListViewActivity.class);\n// // activate the list page.\n// startActivity(listPage);\n },\n error -> {\n // error\n Log.d(\"SingleCarViewActivity.0\", error.toString());\n });\n\n // important: queue.add is where the login request is actually sent\n queue.add(searchRequest);\n }", "title": "" }, { "docid": "ce21ceecfc4715499b82b6279f2035e3", "score": "0.580354", "text": "@Override\n public void onResponse(JSONObject response){\n try {\n Log.d(\"test_response\",response.toString());\n JSONObject result=response.getJSONObject(\"result\");\n JSONObject resultGeometry=result.getJSONObject(\"geometry\");\n JSONObject resultLocation=resultGeometry.getJSONObject(\"location\");\n Double latitude= resultLocation.getDouble(\"lat\");\n Double longitude= resultLocation.getDouble(\"lng\");\n Log.d(\"lat\",latitude.toString());\n Log.d(\"lng\", longitude.toString());\n\n Intent intent= new Intent(getApplicationContext(),MapsActivity.class);\n MapsActivity.ma.finish();\n Bundle bundle= new Bundle();\n bundle.putDouble(\"lat\",latitude);\n bundle.putDouble(\"lng\", longitude);\n intent.putExtra(\"locationSearch\", bundle);\n Bundle bundle2= new Bundle();\n bundle2.putString(\"totalPrice\", totalPrice);\n bundle2.putString(\"totalItem\", totalItem);\n bundle2.putSerializable(\"data\",dataFarmer);\n bundle2.putString(\"zipcode\",zipcode);\n bundle2.putString(\"receiverInfo\",receiverInfo);\n intent.putExtra(\"information\",bundle2);\n finish();\n startActivity(intent);\n\n\n\n\n } catch(Exception e){\n Log.d(\"JSON_err_place\",e.toString());\n }\n }", "title": "" }, { "docid": "8f416fc29f4f3f33610bc1b84327e5d0", "score": "0.57991433", "text": "public abstract List<Location> listLocations();", "title": "" }, { "docid": "2be31c1e2e3b3ea3ab575c828b545302", "score": "0.57991", "text": "public interface GeoCoderCallback {\n void onResult(LatLng latLng);\n}", "title": "" }, { "docid": "e87c633c014afe70bddf98409e5906ce", "score": "0.579858", "text": "@Override\n public void onSuccess(Location location) {\n if (location != null) {\n // Logic to handle location object\n loc_latitude=location.getLatitude();\n loc_longitude=location.getLongitude();\n }\n }", "title": "" }, { "docid": "21cc8b52d3e2ebafb35faf10c2473d2a", "score": "0.5788", "text": "@Override\n public void showPlaceInfo(Results response) {\n if (currentReceiver != null) {\n sendPlaceToReceiver(currentReceiver, response);\n }\n }", "title": "" }, { "docid": "c6760b1042d8e62a6d574efc08e8b443", "score": "0.5784363", "text": "void onPeopleDetailResponse(PeopleDetailResponse response);", "title": "" }, { "docid": "e19f1a2b88061ee953d7856a0a10550c", "score": "0.57822466", "text": "@Override\n public void onResponse(Call<Stations> call, Response<Stations> response) {\n mSearchLocationView.onSearchReady(mSearchMode, mLocation, response.body());\n }", "title": "" }, { "docid": "0a96b56920a905fe9a20360892f74218", "score": "0.5774696", "text": "void onSuccess(ArrayList<ResultMedia> results);", "title": "" }, { "docid": "66d27827c76acd404301d2f0526f8616", "score": "0.5754689", "text": "@Override\n protected void onPostExecute(List<String> result) {\n Log.v(\"location\", locationArray.toString());\n setListAdapter(new ArrayAdapter<String>(\n WithinLocationActivity.this,\n R.layout.my_list_view, result));\n\n ListView lv = getListView();\n lv.setTextFilterEnabled(true);\n lv.setOnItemClickListener(new AdapterView.OnItemClickListener() {\n public void onItemClick(AdapterView<?> parent, View view,\n int position, long id) {\n //Toast.makeText(getApplicationContext(), locationArray.get(position).toString(), Toast.LENGTH_LONG).show();\n makeLocationForDisplay(locationArray.get(position));\n }\n });\n }", "title": "" }, { "docid": "80df06c7b5fcc51d5b994ed9a1f52451", "score": "0.575261", "text": "public abstract void onSuccess(List<User> friends);", "title": "" }, { "docid": "065b966216b386785f2b196d35c50a31", "score": "0.5747946", "text": "public abstract void onSuccess(VuMatchRecommendation[] recommendationArray);", "title": "" }, { "docid": "c0a838829f7d43ad1f6cb0d9cca058be", "score": "0.5747796", "text": "@Override\n\t\t\tpublic void onDataFinish(Object object) {\n\t\t\t\tJSONObject response = (JSONObject) object;\n\t\t\t\ttry {\n\t\t\t\t\t//Log.i(TAG, \"=======================>>requestMyPositionList:\" + response.toString());\n\t\t\t\t\tArrayList<StockMyPosition> myPrositionArray = new ArrayList<StockMyPosition>();\n\t\t\t\t\tJSONArray jsonArray = response.getJSONArray(\"data\");\n\t\t\t\t\tint len = jsonArray.length();\n\t\t\t\t\tfor(int i = 0; i < len; i++) {\n\t\t\t\t\t\tmyPrositionArray.add(StockMyPosition.resolveJSONObject(jsonArray.getJSONObject(i)));\n\t\t\t\t\t}\n\t\t\t\t\tif(requestFinished != null)\n\t\t\t\t\t\trequestFinished.onDataFinish(myPrositionArray);\n\t\t\t\t} catch (JSONException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "c92694df3ffeb8f51d1126866d38a3d9", "score": "0.5741611", "text": "@Override\n public void onSuccess(Location location) {\n if (location != null) {\n // Logic to handle location object\n //Toast.makeText(MainActivity.this,\"location is not null\",Toast.LENGTH_LONG).show();\n\n NetWorkDataProvider dataProvider = new NetWorkDataProvider();\n dataProvider.getPlacesByLocation(location.getLatitude(), location.getLongitude(), MainActivity.this);\n currentLocation = new Location(\"\");\n currentLocation = location;\n }\n }", "title": "" }, { "docid": "76562c07499790ac60244c69bf8f0b7f", "score": "0.5739494", "text": "@Override\r\n public void onGetGeoCodeResult(GeoCodeResult result) {\n\r\n }", "title": "" }, { "docid": "494eb82bee61ac360d441c9519293014", "score": "0.5721953", "text": "interface onCompleteListener {\n void onFetchSuccessful(List<RestaurantModelClass> restaurantList);\n\n void onFailure();\n\n }", "title": "" }, { "docid": "c6a02fd334da0a847f644c6573afb2a1", "score": "0.5718503", "text": "public void onServerMappingFinish(List<ViewErrorPair> mappingResults);", "title": "" }, { "docid": "c1872593608d2d321e389a848d60484c", "score": "0.5710323", "text": "@Override\n public void onSuccess(SearchAPIResponse places) {\n Log.d(TAG, \"onSuccess:search \" + places.toString());\n }", "title": "" }, { "docid": "27da3db9fcceeae5a5d5cc1101466a1d", "score": "0.56932884", "text": "@Override\n public void onSuccess(Location location) {\n if (mLastLocation != null) {\n onLocationChanged(mLastLocation);\n\n }\n }", "title": "" }, { "docid": "f773327a8af27f3218100a93db553784", "score": "0.56868905", "text": "@Override\n public void successed(List<T> bean) {\n mView.requestFinished(bean);\n }", "title": "" }, { "docid": "cdcf714e575f603160ad072b03302ea8", "score": "0.5685737", "text": "public interface OnLocationListener {\n void onSuccess(String city);\n void onError(String reason);\n}", "title": "" }, { "docid": "89570afb21be7a59303868c7b615cda5", "score": "0.5678859", "text": "@Override\r\n public void onResponseReceived(\r\n com.google.gwt.http.client.Request request,\r\n com.google.gwt.http.client.Response response) {\n Window.alert(\"Success: \" + response.getText());\r\n }", "title": "" }, { "docid": "84d4f9dd821ea9080e68308b7bcd0ee2", "score": "0.56762064", "text": "@Override\n public void onPlacesDataReceived(ArrayList<LocationModel> results_) {\n // pass data result to adapter\n final PlacesListAdapter adapter = new PlacesListAdapter(this);\n RecyclerView recyclerView = findViewById(R.id.places_list);\n recyclerView.setAdapter(adapter);\n recyclerView.setLayoutManager(new LinearLayoutManager(this));\n\n mPlacesViewModel.getAllPlaces().observe(this, new Observer<List<Places>>() {\n @Override\n public void onChanged(@Nullable final List<Places> places) {\n // Update the cached copy of the places in the adapter.\n adapter.setPlaces(places);\n }\n });\n }", "title": "" }, { "docid": "6381179d0f744c584f5aac8081ff8894", "score": "0.56761277", "text": "private void doRequest (List<Coordinate> coordinates) {\n Log.d(TAG, \"doRequest() called\");\n Coordinate firstCoordinate = coordinates.get(0);\n final Coordinate lastCoordinate = coordinates.get(coordinates.size() - 1);\n\n LatLng origin = new LatLng(firstCoordinate.getLatitude(), firstCoordinate.getLongitude());\n LatLng destination = new LatLng(lastCoordinate.getLatitude(), lastCoordinate.getLongitude());\n\n List<Coordinate> waypoints = new ArrayList<>();\n\n for (int i = 1; i < coordinates.size() - 1; i++) {\n Coordinate coordinate = coordinates.get(i);\n waypoints.add(coordinate);\n }\n\n Log.d(TAG, \"Making JSON request\");\n JsonObjectRequest request = new JsonObjectRequest(\n Request.Method.GET,\n buildUrl(origin, destination, \"walking\", waypoints),\n null,\n new Response.Listener<JSONObject>() {\n\n @Override\n public void onResponse(JSONObject response) {\n Log.d(TAG, response.toString());\n List<LatLng> latLngs = new ArrayList<>();\n\n try {\n\n Log.d(TAG, \"Parsing JSON...\");\n JSONArray legs = response.getJSONArray(\"routes\").getJSONObject(0).getJSONArray(\"legs\");\n\n for (int i = 0; i < legs.length(); i++) {\n\n JSONArray steps = response.getJSONArray(\"routes\").getJSONObject(0).getJSONArray(\"legs\")\n .getJSONObject(i).getJSONArray(\"steps\");\n\n for (int j = 0; j < steps.length(); j++) {\n double beginlat = steps.getJSONObject(j).getJSONObject(\"start_location\").getDouble(\"lat\");\n double beginlng = steps.getJSONObject(j).getJSONObject(\"start_location\").getDouble(\"lng\");\n\n LatLng beginLatLngs = new LatLng(beginlat, beginlng);\n\n double endlat = steps.getJSONObject(j).getJSONObject(\"end_location\").getDouble(\"lat\");\n double endlng = steps.getJSONObject(j).getJSONObject(\"end_location\").getDouble(\"lng\");\n\n LatLng endLatLngs = new LatLng(endlat, endlng);\n\n latLngs.add(beginLatLngs);\n latLngs.add(endLatLngs);\n }\n }\n\n MapHandler.getInstance(context).setRoute(latLngs, Color.BLACK);\n } catch (JSONException e) {\n e.printStackTrace();\n Log.e(TAG, e.toString());\n }\n }\n },\n new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n Log.e(TAG, error.toString());\n }\n }\n );\n requestQueue.add(request);\n }", "title": "" }, { "docid": "b8440e186495a2440648cd44cc837493", "score": "0.56747305", "text": "@Override\n public void callback(String url, JSONArray json, AjaxStatus status) {\n if (json != null) {\n mArrayList = new ArrayList<>();\n try {\n for (int i = 0; i < json.length(); i++) {\n String id = json.getJSONObject(i).getString(\"yearbook_id\");\n String name = json.getJSONObject(i).getString(\"org_name\");\n mArrayList.add(new SearchSchool(id, name));\n\n }\n\n populateSearResult();\n\n mProgressBar.stop();\n } catch (Exception e) {\n e.printStackTrace();\n mProgressBar.stop();\n }\n\n } else {\n mProgressBar.stop();\n if (Utility.isConnectingToInternet()) {\n MyDialog.iPhone(\"No response from server\\nPlease try again!\", getActivity());\n\n } else {\n Utility.showInternetAlert(getActivity());\n }\n }\n\n mProgressBar.stop();\n }", "title": "" }, { "docid": "28e97eb6760f9f2341635d1ac8db5d06", "score": "0.5669265", "text": "@Override\n public void onSuccess(Location location) {\n mLastLocation = location;\n }", "title": "" }, { "docid": "e14f7e071933f6f56c0d664c85ae7cd3", "score": "0.5662089", "text": "public void onGetData(String mLatitude,String mLongitude,String type){\n StringBuilder sb = new StringBuilder(\"https://maps.googleapis.com/maps/api/place/nearbysearch/json?\");\n sb.append(\"location=\" + mLatitude + \",\" + mLongitude);\n sb.append(\"&radius=5000\");\n sb.append(\"&types=\" + type);\n sb.append(\"&sensor=true\");\n sb.append(\"&key=AIzaSyCAEYMybNVFZGXUUfkWZXkD8s5Cu2rRTds\");\n\n\n // Creating a new non-ui thread task to download Google place json data\n PlacesTask placesTask = new PlacesTask();\n\n // Invokes the \"doInBackground()\" method of the class PlaceTask\n placesTask.execute(sb.toString());\n }", "title": "" }, { "docid": "5e3c9b8df3afe6613667b030ec5510d0", "score": "0.5657865", "text": "@Override\n public void onSuccess(Location location) {\n if (location != null) {\n // Logic to handle location object\n\n current_latitude = location.getLatitude();\n current_longtitude = location.getAltitude();\n }\n }", "title": "" }, { "docid": "1cdc633e19a78eb6e7465a10d997802c", "score": "0.565256", "text": "@Override\n public void onSuccess(Location location) {\n if (location != null) {\n currentGeolocation = new MapLocation(Double.toString(location.getLatitude()), Double.toString(location.getLongitude()));\n didLoadLocation = true;\n buildRecyclerView();\n }\n }", "title": "" }, { "docid": "0c8f3c41e80514e3f35084757987b696", "score": "0.5651444", "text": "@Override\n public void onResultsSuccess(Response<SearchResult> response) {\n\n }", "title": "" }, { "docid": "c7d002ab4002f916798427edcd631f54", "score": "0.56506485", "text": "public interface RequestRestaurantsCallback {\n\n /**\n * Method called when the operation has been finished.\n * This class should be used only by Session to return a\n * specific element\n * @param restaurants The list of restaurants parsed by the Session\n * @param nextPageToken The token for the next page. It could be null or empty\n * @param errorMessage The error message to show if there is any error\n * @param requestStatus Indication of if any error happened or not\n */\n void done(final List<Restaurant> restaurants,\n \t\t final String nextPageToken,\n \t\t final String errorMessage,\n \t\t final RequestStatus requestStatus);\n}", "title": "" }, { "docid": "7774abe2a9dc805ce79fe5be9473d03b", "score": "0.564929", "text": "@Override\n\t\t\t\tpublic void onSuccess(int statusCode, Header[] headers,\n\t\t\t\t\t\tJSONObject response) {\n\t\t\t\t try {\n\t\t\t\t\t Log.d(\"MyApp\", response.toString());\n\t\t\t\t\t JSONArray routeArray = response.getJSONArray(\"routes\");\n\t\t\t JSONObject routes = routeArray.getJSONObject(0);\n\t\t\t JSONObject overviewPolylines = routes.getJSONObject(\"overview_polyline\");\n\t\t\t String encodedString = overviewPolylines.getString(\"points\");\n\t\t\t List<LatLng> list = decodePoly(encodedString);\n\t\n\t\t\t for(int z = 0; z<list.size()-1;z++){\n\t\t\t LatLng src= list.get(z);\n\t\t\t LatLng dest= list.get(z+1);\n\t\t\t Polyline line = map.addPolyline(new PolylineOptions()\n\t\t\t .add(new LatLng(src.latitude, src.longitude), new LatLng(dest.latitude, dest.longitude))\n\t\t\t .width(7)\n\t\t\t .color(Color.BLUE).geodesic(true));\n\t\t\t }\t\t\t\t\t\n\t\t\t\t\t\tsuper.onSuccess(statusCode, headers, response);\n\t\t\t\t }\n\t\t\t\t catch (JSONException e)\n\t\t\t\t {\n\t\t\t\t\t \n\t\t\t\t }\n\t\t\t\t}", "title": "" }, { "docid": "04842f7bd1d40b303490520624c5be73", "score": "0.56470025", "text": "@Override\n public void onGeocodeListenerComplete() {\n plotLine(Directions.getStaticDirections());\n }", "title": "" }, { "docid": "51adadca18af9173e6fdf87fff615eef", "score": "0.5641237", "text": "public void onSuccess(final List<T> data);", "title": "" }, { "docid": "5e2a65591e6f85e696c28701ac62f9c5", "score": "0.564041", "text": "public void onLocationFound(LonLat ll);", "title": "" }, { "docid": "392b6355e22aa071e7ebe221833fe984", "score": "0.5634425", "text": "protected abstract void onResponse(@NonNull final T responseBody);", "title": "" }, { "docid": "6d7bd984b826e19ca30d9a5733206289", "score": "0.56295526", "text": "public interface locationFindedListener {\n void onlocationFindedEvent(Location location);\n }", "title": "" }, { "docid": "d545c1ba33944185dd921a59f8df9c32", "score": "0.56273615", "text": "@Override\r\n\t\t\t\tpublic void onSuccess(ArrayList<ServiceRequestTO> result) {\n\t\t\t\t\tSystem.out.println(\"Total results: \" + result.size());\r\n\t\t\t\t\tdisplay.setRequests(result);\r\n\t\t\t\t}", "title": "" }, { "docid": "5af1b25f07a1824f07616b19b22bc66a", "score": "0.5624246", "text": "@Override\n public void onSuccess(android.location.Location location) {\n updateUIvalues(location);\n\n }", "title": "" }, { "docid": "ca6f597e7a8f634f360dc4b9ae58beab", "score": "0.5622801", "text": "void onLocationSelection(LocationGeocodeData.LocationInfo locationInfo);", "title": "" }, { "docid": "2a7e422510cca5cc0a5155b0dd804184", "score": "0.5617229", "text": "@Override\n public void getArticleArrayList(final OnFinishedListener onFinishedListener) {\n NetworkService service = APIClient.getRetrofitInstance().create(NetworkService.class);\n\n /** Call the method with parameter in the interface to get the notice data*/\n Call<ny.sujith.com.nytimes.model.Response> call = service.getArticles();\n\n /**Log the URL called*/\n Log.wtf(\"URL Called\", call.request().url() + \"\");\n\n call.enqueue(new Callback<ny.sujith.com.nytimes.model.Response>() {\n @Override\n public void onResponse(Call<ny.sujith.com.nytimes.model.Response> call, Response<ny.sujith.com.nytimes.model.Response> response) {\n onFinishedListener.onFinished(response.body().getResults());\n\n }\n\n @Override\n public void onFailure(Call<ny.sujith.com.nytimes.model.Response> call, Throwable t) {\n onFinishedListener.onFailure(t);\n }\n });\n\n }", "title": "" }, { "docid": "689fb59643dd987cde11b3e23fe9826c", "score": "0.56129783", "text": "void reloadFindCitiesResponse();", "title": "" }, { "docid": "0452219ab92f88d1e1e831494d613c6a", "score": "0.56109756", "text": "public interface GroupsCallBack {\n void onSuccess(ArrayList<Group> groups);\n\n void onFailure(String error);\n}", "title": "" }, { "docid": "22b678b660d3656d8d511270730b8e64", "score": "0.56096095", "text": "public interface LocationCallback {\n \n\t@Headers(\"Content-Type: application/json\")\n\t@GET(\"FGService/api/Locations\")\n\tCall<List<Locationbean>> getAllLocations();\n\t\n\t@GET(\"FGService/api/Locations/{Code}\")\n\tCall<List<Locationbean>> getLocationsByCode(@Path(\"Code\") Integer code);\n\t//Post one item\n\t/*@POST(\"/api/FGInventory\")\n\tCall<Itembean> createItem(@Body Itembean itembean);*/\n\t\n\t\n\n}", "title": "" }, { "docid": "5c272293103890eace2445dc17d97f86", "score": "0.5605235", "text": "private void getSearchResult(String locationQueryStringUrl) {\n Log.d(TAG, \"getSearchResult is calling\");\n\n // TODO : 292 ) Getting each attribute from JSON via Volley\n JsonObjectRequest request = new JsonObjectRequest(Request.Method.GET, locationQueryStringUrl,\n null, new Response.Listener<JSONObject>() {\n @Override\n public void onResponse(JSONObject response) {\n try {\n progressBar.setVisibility(View.GONE);\n JSONArray rootJsonArray = response.getJSONArray(\"results\");\n if (rootJsonArray.length() == 0) {\n recyclerView.setVisibility(View.GONE);\n nosearchTextView.setVisibility(View.VISIBLE);\n nosearchTextView.setText(getResources().getString(R.string.not_found));\n Log.d(TAG, \"placeHolder text : \" + getResources().getString(R.string.not_found));\n } else {\n for (int i = 0; i < rootJsonArray.length(); i++) {\n JSONObject singlePlaceJsonObject = (JSONObject) rootJsonArray.get(i);\n\n // TODO : 293 ) Getting each attribute from JSON\n\n String currentLocationId = singlePlaceJsonObject.getString(\"place_id\");\n String currentPlaceName = singlePlaceJsonObject.getString(\"name\");\n\n Double currentLocationLatitude = singlePlaceJsonObject\n .getJSONObject(\"geometry\").getJSONObject(\"location\")\n .getDouble(\"lat\");\n Double currentLocationLongitude = singlePlaceJsonObject\n .getJSONObject(\"geometry\").getJSONObject(\"location\")\n .getDouble(\"lng\");\n\n String currentLocationOpeningHourStatus = singlePlaceJsonObject\n .has(\"opening_hours\") ? singlePlaceJsonObject\n .getJSONObject(\"opening_hours\")\n .getString(\"open_now\") : \"Status Not Convenient\";\n\n Double currentLocationRating = singlePlaceJsonObject.has(\"rating\") ?\n singlePlaceJsonObject.getDouble(\"rating\") : 0;\n\n String currentLocationAddress = singlePlaceJsonObject.has(\"vicinity\") ?\n singlePlaceJsonObject.getString(\"vicinity\") :\n \"Address Not Available\";\n\n // TODO : 294 ) Adding each attribute to Location object\n\n Location currentLocation = new Location();\n currentLocation.setmLocationId(currentLocationId);\n currentLocation.setmLocationName(currentPlaceName);\n currentLocation.setmLocationLatitude(currentLocationLatitude);\n currentLocation.setmLocationLongitude(currentLocationLongitude);\n currentLocation.setmLocationOpeningHourStatus(currentLocationOpeningHourStatus);\n currentLocation.setmLocationRating(currentLocationRating);\n currentLocation.setmLocationAddress(currentLocationAddress);\n\n // TODO : 295 ) Adding location object to arraylist\n\n mNearByLocationArrayList.add(currentLocation);\n }\n\n if(mNearByLocationArrayList.size() == 0){\n recyclerView.setVisibility(View.GONE);\n nosearchTextView.setVisibility(View.VISIBLE);\n nosearchTextView.setText(getResources().getString(R.string.not_found));\n }else {\n recyclerView.setVisibility(View.VISIBLE);\n nosearchTextView.setVisibility(View.GONE);\n\n int orientation = GridLayout.VERTICAL;\n int span = getResources().getInteger(R.integer.gridlayout_location_list_span);\n boolean reverseLayout = false;\n GridLayoutManager layoutManager = new GridLayoutManager(mContext, span, orientation, reverseLayout);\n LocationItemListAdapter mLocationListAdapter = new LocationItemListAdapter(mContext, mNearByLocationArrayList, new LocationItemListAdapter.NearLocationListItemAdapterOnClickHandler() {\n @Override\n public void onClick(Location nearLocationData) {\n if (UtilMethods.isNetworkAvailable(mContext)) {\n Intent currentLocationDetailIntent = new Intent(mContext, LocationDetailActivity.class);\n currentLocationDetailIntent.putExtra(GoogleMapApi.LOCATION_ID_EXTRA_TEXT,\n nearLocationData.getmLocationId());\n mContext.startActivity(currentLocationDetailIntent);\n\n } else\n Toast.makeText(mContext,getResources().getString(R.string.no_connection),Toast.LENGTH_SHORT).show();\n }\n });\n recyclerView.setLayoutManager(layoutManager);\n recyclerView.setAdapter(mLocationListAdapter);\n\n }\n\n }\n\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n }\n }, new Response.ErrorListener() {\n\n @Override\n public void onErrorResponse(VolleyError error) {\n // TODO Auto-generated method stub\n Log.d(TAG, \"JSON Error : \" + error.getMessage());\n }\n });\n\n // TODO : 296 ) Adding request to volley\n AppController.getInstance().addToRequestQueue(request, getResources().getString(R.string.jsonArrayTag));\n\n\n\n\n }", "title": "" }, { "docid": "e6a332d762238b13a250ec5fd9ec3362", "score": "0.56002295", "text": "@Override\n public void onSuccess(Location location) {\n if (location != null) {\n // Logic to handle location object\n sendSms(location);\n\n }\n }", "title": "" }, { "docid": "17678f500152892c3cbce61a692c92b4", "score": "0.55994344", "text": "@Override\n\tpublic void onLocationChanged(Location location) {\n\t\tprocessNewData(location);\n\n\t}", "title": "" }, { "docid": "ab7d3f43e771621677fc021425b8f9de", "score": "0.55983806", "text": "@Override\n public void onSuccess(List items) {\n }", "title": "" }, { "docid": "e963a9993963806f0e45d236ce698c27", "score": "0.5594866", "text": "public void executeRequest() {\n System.out.println(\"--------, Location Visitor execute request...\");\n }", "title": "" }, { "docid": "81c11213932ee80084fbb2ef6f3fcf7f", "score": "0.55926865", "text": "public interface OnFinished {\n void SendArticlesBack(ArrayList<Article> pulledArticles, int sender);\n }", "title": "" }, { "docid": "47e11b12a9a0e564a57622a4ec66884c", "score": "0.55895275", "text": "public void onReceive(Object message) throws Throwable {\n if (message instanceof GeoLocateRequest) {\n GeoLocateRequest request = (GeoLocateRequest) message;\n //System.out.println(request);\n\n String country = request.getCountry();\n String state = request.getState();\n String county = request.getCounty();\n String locality = request.getLocality();\n\n // TODO: Implement some form of validation instead\n if (country != null && state != null && county != null && locality != null) {\n String url = baseUrl + request.constructQueryString(request.getCountry(), request.getState(), request.getCounty(), request.getLocality());\n fetch(url); // TODO: These futures need a separate thread pool executor service\n } else {\n //System.out.println(\"Skipping..\");\n }\n\n // limit number of futures running at one time\n //if (futures < 10) {\n sender().tell(new RequestMoreData(), self());\n //}\n } if (message instanceof GeoLocateResponse) {\n System.out.println(\"Response: \" + message);\n Georef_Result_Set result = ((GeoLocateResponse) message).get();\n if (Integer.parseInt(result.getNumResults()) > 0) System.out.println(result.getNumResults());\n\n count++;\n futures--;\n //if (count % 1000 == 0)\n System.out.println(result + \": \" + count + \" requests processed. (\" + futures + \" futures)\" );\n\n sender().tell(new RequestMoreData(), self());\n }\n }", "title": "" }, { "docid": "776c5bf9016b19f6e9dd1b9f5c58f1b4", "score": "0.55860597", "text": "@Override\n\t\t\tpublic void onCompleted() {\n\t\t\t\tSystem.out.println(\"\\nRequest completed.\\n\");\n\t\t\t}", "title": "" }, { "docid": "a7958e6b85c555b0a564fdcd8d5ad518", "score": "0.5576289", "text": "public interface VolleyResponse {\n\n\n void onResponse(String response);\n\n void onResponseArray(ArrayList<Recipe> lstRecipes);\n\n void onError(String errorMsg);\n\n}", "title": "" }, { "docid": "27277b24ebdb652956e2161bc881eae9", "score": "0.55701125", "text": "void onResult(Results result);", "title": "" }, { "docid": "1ca5852f196a22b171d5bff5b86c7c47", "score": "0.55585074", "text": "void onCompleted();", "title": "" }, { "docid": "af8bfc16e78a2ec12c1f633ff594eb7c", "score": "0.5552015", "text": "public abstract void onSuccess();", "title": "" } ]
5bded9fe485d78d7ed1ce69360a1f89d
Propiedad Intelectual xxxxxx Fecha ID Caso de Prueba Autor xxxxxxxxxxxxxxxxxxxxxx xxxxx Descripcion del metodo.
[ { "docid": "d7dd20404a093e3f639ed70230bd7222", "score": "0.0", "text": "public static String validarDato(Sheet hojaExcelDataPool,String campo,int columna){\n\t\ttry {\n\t\t\treturn hojaExcelDataPool.getCell(hojaExcelDataPool.findCell(campo).getColumn(),columna).getContents();\n\n\t\t} catch (Exception e) {\n\n\t\t\treturn \"\";\n\t\t}\n\n\n\t}", "title": "" } ]
[ { "docid": "02506020308be6d132e19a1414786656", "score": "0.6458434", "text": "public long getId_autor() {\n return id_autor;\n }", "title": "" }, { "docid": "cd6630d5c9fc3059587612e363ac44d1", "score": "0.64133", "text": "public TipoReferencia getIdAssuntoComunicacao(){\n return localIdAssuntoComunicacao;\n }", "title": "" }, { "docid": "58beb674ed9c21fc68df901f761b1f77", "score": "0.6378227", "text": "public void setId_autor(long id_autor) {\n this.id_autor = id_autor;\n }", "title": "" }, { "docid": "e1261c45b1e6c7c40977f74ff74975e5", "score": "0.63681376", "text": "@Override\n\tpublic String getNombreUsuario() {\n\t\treturn \"Prueba\";\n\t}", "title": "" }, { "docid": "63a66253cb16cf2cf4686717df749df4", "score": "0.6306216", "text": "@Override\n public long getId_paso() {\n return _requisito.getId_paso();\n }", "title": "" }, { "docid": "f2be673245a60b93ffba8eb60cf4ce74", "score": "0.6200253", "text": "public FiltroArquivoTextoRoteiroEmpresa() {\r\n }", "title": "" }, { "docid": "d5ccd43df9a4969633557e02019f5b9b", "score": "0.61815906", "text": "public Profesor(String nombre, String apellido, String cedula, String tipoContrato, LocalDate fechaContratacion) {\n super(nombre, apellido, cedula);\n setTipoContrato(tipoContrato);\n setFechaContratacion(fechaContratacion);\n }", "title": "" }, { "docid": "d3277e7240a6605472a9b7f3e92b18eb", "score": "0.6175969", "text": "public Responsable_Financiero(String ID, String Nombre, String Apellido) { // se crea el conctructor de la clase en el cual se van a inicializar los atributos ID, nombre y apellido\r\n super(Nombre, Apellido); // se utiliza super ya que esta utilizando los atributos de la clase abstrasta que esta heredando\r\n this.ID = ID; // se utiliza this ya que el atributo fue creada en esta clase y por lo tanto para que aparezca en el constructor se debe utilizar this\r\n }", "title": "" }, { "docid": "eb3c2b0942ad86295ea3190ea4bbdc71", "score": "0.6170109", "text": "public java.lang.String getIdCampanhaParticipante(){\n return localIdCampanhaParticipante;\n }", "title": "" }, { "docid": "e75ef35b5e9ae0bec87a80f0f88a9f2e", "score": "0.61496884", "text": "public String getAutor () {\n return this.autor;\n }", "title": "" }, { "docid": "a7c36b3389ed0ff389bb00987b121627", "score": "0.61211133", "text": "public void setNombreProceso(String p) { this.nombreProceso = p; }", "title": "" }, { "docid": "f577fee7c62840969bc3b7cfe3e1a8dc", "score": "0.6110699", "text": "public long traerIdPersonalizacion() {\n\t\tObject usuario = SecurityContextHolder.getContext().getAuthentication()\n\t\t\t\t.getPrincipal();\n\t\tString rifEnte = null;\n\t\tlong idP = 1;\n\t\tString l = ((User) usuario).getUsername().toString();\n\t\tQuery query = Auditor.findAuditorsByLoginEquals(l);\n\t\tList<Auditor> au = query.getResultList();\n\t\tif (au.size() >= 1) {\n\t\t\tfor (Auditor p : au) {\n\t\t\t\trifEnte = p.getId_OrganismoEnte().getRif().toString();\n\t\t\t}\n\n\t\t\tquery = null;\n\t\t\tquery = Personalizacion.findPersonalizacionsByRifEquals(rifEnte);\n\t\t\tList<Personalizacion> personalizacion = query.getResultList();\n\t\t\tfor (Personalizacion p : personalizacion) {\n\t\t\t\tidP = p.getId();\n\t\t\t}\n\t\t\treturn idP;\n\t\t} else {\n\t\t\treturn 0;\n\t\t}\n\t}", "title": "" }, { "docid": "7b3af1d25d745086bdc1efe388ebf7fb", "score": "0.61061937", "text": "private void setAutor (String pAutor) { \n this.autor = pAutor;\n }", "title": "" }, { "docid": "fd0e7e5d9154181772ebc950c0b923bc", "score": "0.60840404", "text": "public Idioma getIdiomaPreferencial(){\n return localIdiomaPreferencial;\n }", "title": "" }, { "docid": "fd0e7e5d9154181772ebc950c0b923bc", "score": "0.60840404", "text": "public Idioma getIdiomaPreferencial(){\n return localIdiomaPreferencial;\n }", "title": "" }, { "docid": "2631c89a4b23242d8f3f463be4beb6cc", "score": "0.6078787", "text": "public Persona(String nombre, String apellido, String cedula) {\n this.nombre = nombre;\n this.apellido = apellido;\n this.cedula=cedula;\n }", "title": "" }, { "docid": "1858687fa654ae12eb5a2afc183b8087", "score": "0.6077348", "text": "public void CadastrarPaciente(String nome, String cpf, int idade, String endereco, String telefone, String tipo, String usuario, String senha) {\n CadastroTexto(nome, cpf, idade, endereco, telefone, tipo, usuario, senha);\r\n\r\n JOptionPane.showMessageDialog(null, \"Dados cadastrados com Sucesso \" + nome\r\n + \"\\nSeu usuário é: \" + usuario\r\n + \"\\nSua Senha é: \" + senha);\r\n\r\n }", "title": "" }, { "docid": "7294ba5f4390e5ed30ca89247065e631", "score": "0.6070652", "text": "public void CadastrarCod(String nome, String cpf, int idade, String endereco, String telefone, String tipo, String usuario, String senha, String cod) {\n CadastroTextoCod(nome, cpf, idade, endereco, telefone, tipo, usuario, senha, cod);\r\n\r\n JOptionPane.showMessageDialog(null, \"Dados cadastrados com Sucesso \"\r\n + \"\\nSeu usuário é: \" + usuario\r\n + \"\\nSua Senha é: \" + senha);\r\n\r\n }", "title": "" }, { "docid": "18a81206c1e94312e8a774b16e9c5929", "score": "0.60678947", "text": "public int getId()\r\n/* 236: */ {\r\n/* 237:424 */ return this.idTareaProduccion;\r\n/* 238: */ }", "title": "" }, { "docid": "f2caa9910b6310535c5d6b514aca26ca", "score": "0.6058909", "text": "public String getAutorFita() {\n return autorFita;\n }", "title": "" }, { "docid": "325c4f85fdbd78d6561149a4b6e3f46d", "score": "0.6052041", "text": "public java.lang.String getIdPermissao(){\n return localIdPermissao;\n }", "title": "" }, { "docid": "67fbd5094438f917f483dec538fcf93b", "score": "0.60505724", "text": "@Override\r\n public String verDatos() {\r\n return \"Persona no docente: \"+super.toString()+getPuestoTrabajo();\r\n }", "title": "" }, { "docid": "6badefe62be519a7b1e7ddbe79149da1", "score": "0.6047827", "text": "public void Cadastrar(String nome, String cpf, int idade, String endereco, String telefone, String tipo, String usuario, String senha, String cod) {\n CadastroTexto(nome, cpf, idade, endereco, telefone, tipo, usuario, senha);\r\n\r\n JOptionPane.showMessageDialog(null, \"Dados cadastrados com Sucesso \" + nome\r\n + \"\\nSeu usuário é: \" + nome\r\n + \"\\nSua Senha é: \" + senha);\r\n\r\n }", "title": "" }, { "docid": "29ce69c63cb9b2e90c18efcb7dba1818", "score": "0.6040222", "text": "public DefinisciPreDocumentoSpesaPerElencoModel() {\n\t\tsetTitolo(\"definisci predocumento di pagamento per elenco\");\n\t}", "title": "" }, { "docid": "a317bf7a21bb24005aee5733cd9021ff", "score": "0.60387844", "text": "public String getDescripcionIdUsuarios() {\r\n\t\treturn descripcionIdUsuarios;\r\n\t}", "title": "" }, { "docid": "9464962e105645915ac8947fe992d727", "score": "0.59827185", "text": "@Override\n public String descripcion() {\n return \"Viaje incentivo que te envia la empresa Emtel\";\n }", "title": "" }, { "docid": "20b5a1cf62a0f46e7a7568f9e50f4fba", "score": "0.5980605", "text": "public void setIdUsuario(int pIdUsuario){\n this.idUsuario = pIdUsuario;\n }", "title": "" }, { "docid": "843f4efe331fde59c5cec9f5db2be1a9", "score": "0.5975687", "text": "public java.lang.String getIdRequisicao(){\n return localIdRequisicao;\n }", "title": "" }, { "docid": "c9017fd4f845a99d6ded4672a2172c9c", "score": "0.59713423", "text": "public String getProprietario() {\r\n\t\treturn proprietario;\r\n\t}", "title": "" }, { "docid": "0c41b47ff3ae108e6095c5a8e106b133", "score": "0.5949463", "text": "public void setProprietario(String proprietario) {\r\n\t\tthis.proprietario = proprietario;\r\n\t}", "title": "" }, { "docid": "b784e36955452178b6d9e59beb191ec0", "score": "0.59408456", "text": "public synchronized static String getIdOrigem(Concessionaria conc){\n\t\t\tStringBuffer sb = new StringBuffer();\n\t\t\tsb.append(conc.getNumeroPais());\n\t\t\tString numeroConc = String.valueOf(conc.getNumeroCliente());\n\t\t\twhile(numeroConc.length()<3){\n\t\t\t\tnumeroConc = \"0\".concat(numeroConc);\n\t\t\t}\n\t\t\tsb.append(numeroConc);\n\t\t\treturn sb.toString();\n\t\t}", "title": "" }, { "docid": "bffba508b8ebbc70c5d631e4e633c209", "score": "0.59394723", "text": "public void editarCLiente() {\n }", "title": "" }, { "docid": "ea2efbaec589159d5bd9f5b0ea6efaf3", "score": "0.5937241", "text": "public String getModifiAuthor() {\n return modifiAuthor;\n }", "title": "" }, { "docid": "64b541a9fae654de360985bc42f118d2", "score": "0.59339696", "text": "public Articulo (int id, String ISSN, String titulo, String autor, String nombreRevista, int mes, int year , int paginaIni, int paginaF) {\n this.idArticulo = id;\n this.ISSN = ISSN;\n this.titulo = titulo;\n this.autor = autor;\n this.nombreRevista = nombreRevista;\n this.mes = mes;\n this.year = year;\n this.paginaInicio = paginaIni;\n this.paginaFin = paginaF;\n\n }", "title": "" }, { "docid": "6125f7ac7b5468e1e64f907bc1c0553a", "score": "0.593346", "text": "public String getIdEmpresa() {\n return idEmpresa;\n }", "title": "" }, { "docid": "ed6a4a014f5f91288ac925ffb2e94cb4", "score": "0.59331214", "text": "public Idioma getIdioma(){\n return localIdioma;\n }", "title": "" }, { "docid": "ed6a4a014f5f91288ac925ffb2e94cb4", "score": "0.59331214", "text": "public Idioma getIdioma(){\n return localIdioma;\n }", "title": "" }, { "docid": "3dbfff9e13029c66d3e2af93552516a4", "score": "0.5932073", "text": "public void apagarPorId() {\n\n\t}", "title": "" }, { "docid": "a4e8e766811c403fcc6bcd0d41273d4c", "score": "0.5925511", "text": "public String getIdContactoProveedor() {\n return this.idContactoProveedor;\n }", "title": "" }, { "docid": "a0c6c28e5517e09210f9d6bf311f395d", "score": "0.592498", "text": "public static long traerIdPersonalizacion2() {\n\t\tObject usuario = SecurityContextHolder.getContext().getAuthentication()\n\t\t\t\t.getPrincipal();\n\t\tString rifEnte = null;\n\t\tlong idP = 1;\n\t\tString l = ((User) usuario).getUsername().toString();\n\t\tQuery query = Auditor.findAuditorsByLoginEquals(l);\n\t\tList<Auditor> au = query.getResultList();\n\t\tif (au.size() >= 1) {\n\t\t\tfor (Auditor p : au) {\n\t\t\t\trifEnte = p.getId_OrganismoEnte().getRif().toString();\n\t\t\t}\n\n\t\t\tquery = null;\n\t\t\tquery = Personalizacion.findPersonalizacionsByRifEquals(rifEnte);\n\t\t\tList<Personalizacion> personalizacion = query.getResultList();\n\t\t\tfor (Personalizacion p : personalizacion) {\n\t\t\t\tidP = p.getId();\n\t\t\t}\n\t\t\treturn idP;\n\t\t} else {\n\t\t\treturn 0;\n\t\t}\n\t}", "title": "" }, { "docid": "112ff3a2844e945335149648268e0f26", "score": "0.59154505", "text": "public int menuPrincipal(){\n\t\tSystem.out.println(\"------------------------------------------\");\n\t\tSystem.out.println(\"\\tBEM VINDO AO REGISTRO DE VENDA\\n\\n\");\n\t\tSystem.out.println(\"\\n1-EFETUAR VENDA\");\n\t\tSystem.out.println(\"\\n2-REGISTRAR VENDEDOR\");\n\t\tSystem.out.println(\"\\n3-REGISTRAR PRODUTO\");\n\t\tSystem.out.println(\"\\n4-SAIR\");\n\t\tSystem.out.println(\"------------------------------------------\");\n\t\t\n\t\t\n\t\tsetOpcao(leitor.nextInt());\n\t\t\n\t\treturn opcao;\n\t}", "title": "" }, { "docid": "fb2074b1d6f450ce3fe98f877e0fbd62", "score": "0.5914367", "text": "public int getIdProceso() {\n return idProceso;\n }", "title": "" }, { "docid": "8ce6ea94200336a503f0f87352f31649", "score": "0.5910202", "text": "String getNomeContrutor();", "title": "" }, { "docid": "7bee5d0e99a0b7e4ebb6be3cb338e11f", "score": "0.5906525", "text": "public void setProceso(String proceso) { this.proceso = proceso; }", "title": "" }, { "docid": "a98e33e906ef7271b6667c6c46d13e06", "score": "0.590526", "text": "public int getIdConto();", "title": "" }, { "docid": "9b7757b5c681e3757d6776f2ac380728", "score": "0.58996755", "text": "public Canal (String nombre, String numeroSintoniza, String logoTipo, ContProgramas p, int id, String genero) \r\n {super();\r\n\t this.nombre = nombre;\r\n\t this.numeroSintoniza = numeroSintoniza;\r\n\t this.logoTipo = logoTipo;\r\n\t this.programacion=p;\r\n\t this.id = id;\r\n\t this.genero =genero;\r\n\t }", "title": "" }, { "docid": "32573d41231597b6cb6fe1724a024e9f", "score": "0.5894831", "text": "public String getAutor(){\n return autor;\n }", "title": "" }, { "docid": "9e905b3988eff3e9699f7eb5451f839c", "score": "0.5892575", "text": "public void comprobarIdioma(){\r\n if(vistaInicio.getIdiomaEspaniol().getState()){\r\n setIdioma(\"español\");\r\n }\r\n else{\r\n setIdioma(\"english\");\r\n }\r\n\r\n }", "title": "" }, { "docid": "e85ec027965dc58191171ffc01864c79", "score": "0.58906215", "text": "public void setAutorFita(String autorFita) {\n this.autorFita = autorFita;\n }", "title": "" }, { "docid": "a6eaefc5745d0aab2658ae2d6ada803c", "score": "0.5886484", "text": "public void setCambiaProveedor(String p) { this.cambiaProveedor = p; }", "title": "" }, { "docid": "65a86307fec043ef50d1dff3caac283e", "score": "0.58718234", "text": "public int getIdTipoContrato()\r\n\t{\r\n\t\treturn idTipoContrato;\r\n\t}", "title": "" }, { "docid": "48a65fb38d3e3e4cf9c55c32658b4d11", "score": "0.5855745", "text": "public String getAutor() {\n return this.AUTOR;\n }", "title": "" }, { "docid": "36a405f5863a901794e6b244d26d346e", "score": "0.58546627", "text": "public Cnt_Corriente(String fechacreacion, String Saldo, String Estado, String NumerodeCuenta, int id, String cedula, String nombre, String apellido) {\r\n super(id, cedula, nombre, apellido);\r\n this.fechacreacion = fechacreacion;\r\n this.Saldo = Saldo;\r\n this.Estado = Estado;\r\n this.NumerodeCuenta = NumerodeCuenta;\r\n }", "title": "" }, { "docid": "6787bb009c3f8aa54327b0a5292d9af0", "score": "0.5853397", "text": "public void setIdUsuarioCreacion(java.lang.String idUsuarioCreacion)\r\n {\r\n this.idUsuarioCreacion = idUsuarioCreacion;\r\n }", "title": "" }, { "docid": "39577eac38426fc51133059a6da93624", "score": "0.5853212", "text": "public java.lang.String getIdParceiro(){\n return localIdParceiro;\n }", "title": "" }, { "docid": "f065d8e5e5da40d6b80c09a0af81bed2", "score": "0.5847448", "text": "public java.lang.String getIdOferta(){\n return localIdOferta;\n }", "title": "" }, { "docid": "8349ddb81dce9a9e24ce2b26b47285af", "score": "0.5844577", "text": "public Iniciativa(String descripcion, Date fecha, Usuario usuario, String palabrasClave){\n this.descripcion= descripcion;\n this.fechaCreacion= fecha;\n this.usuario=usuario;\n this.setPalabrasClave(palabrasClave);\n }", "title": "" }, { "docid": "ea6aa5ca54e0f1a32da4e09557074be2", "score": "0.5840007", "text": "@Override\r\n\tpublic void descrisao() {\n\t\tthis.descrição=\"um software de gestão para clínicas e consultórios médicos de pequeno a médio porte, de todas as especialidades. \";\r\n\r\n\t}", "title": "" }, { "docid": "c846c427473eeaafc94fb7362fe3eeb6", "score": "0.5833803", "text": "public java.lang.String getIdUsuarioCreacion()\r\n {\r\n return this.idUsuarioCreacion;\r\n }", "title": "" }, { "docid": "ac70ee15ac139a01394929b9b7c9390c", "score": "0.5828858", "text": "@Override\n public long getId_requisito() {\n return _requisito.getId_requisito();\n }", "title": "" }, { "docid": "bd406c608035d5f15810a8797093b4aa", "score": "0.58265495", "text": "public Identificador getIdParceiroCad(){\n return localIdParceiroCad;\n }", "title": "" }, { "docid": "faee218aed0742f69e7f1998e11ebff6", "score": "0.58210856", "text": "public String getIdproducto() {\n return idproducto;\n }", "title": "" }, { "docid": "1b307c5b09ec5f548e754118d03d9606", "score": "0.5817482", "text": "public Profesor(String nombre, String apellido, String cedula) {\n super(nombre, apellido, cedula);\n }", "title": "" }, { "docid": "6ed7704f738607c986e9ef89b8e4f5ee", "score": "0.5814735", "text": "@Override\n public String cualquierMetodo2() {\n return \"Método implementado en la clase hija viaje de incentivo\";\n }", "title": "" }, { "docid": "b1e919edeefa2971514be1f2d4cf68a4", "score": "0.5813898", "text": "public java.lang.String getDescricaoPermissao(){\n return localDescricaoPermissao;\n }", "title": "" }, { "docid": "0077e8bd4ef7dddffdb14e5bb008c415", "score": "0.58138436", "text": "public Cgg_tipo_doc_iden(){}", "title": "" }, { "docid": "ecc280f2a9e8e4fa14a0412f1826d601", "score": "0.5807614", "text": "public AntecedentesPersonales()\n {\n this.tratamiento = \"No tiene\";\n this.medicamento = \"No tiene\";\n }", "title": "" }, { "docid": "302f059c400e52f1a51a889ce31dd24d", "score": "0.58012855", "text": "@Override\n\tpublic synchronized String identificarEleitor(String cc, String idEleicao) throws RemoteException {\n\t\tint tipoP = 0, check = 0;\n\t\tString nome = \"null\";\n\t\tString depEleitor = \"\";\n\t\t\n\t\tfor(Pessoa x: bdPessoas) {\n\t\t\tif(x.nCC.equals(cc)) {\n\t\t\t\t//Pessoa existe\n\t\t\t\ttipoP = x.tipo;\n\t\t\t\tnome = x.nome;\n\t\t\t\tdepEleitor = x.dep.nome;\n\t\t\t\tcheck = 1;\n\t\t\t}\n\t\t}\n\t\tif(check == 0) {\n\t\t\treturn \"Pessoa nao existe\";\n\t\t}\n\t\tcheck = 0;\n\t\tfor(Eleicao y: bdEleicoes) {\n\t\t\tif(y.id.equals(idEleicao)) {\n\t\t\t\t//Encontramos a eleicao\n\t\t\t\tif((y.tipo == 1 && tipoP == 1)) {\n\t\t\t\t\tif(y.dep.nome.equals(depEleitor)) {\n\t\t\t\t\t\tif(y.checkCC(cc)) {\n\t\t\t\t\t\t\t//Ainda nao votou, logo pode votar\n\t\t\t\t\t\t\tcheck = 1;\n\t\t\t\t\t\t\treturn nome;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}else if(y.tipo == 2) {\n\t\t\t\t\tif(y.checkCC(cc)) {\n\t\t\t\t\t\t//Ainda nao votou, logo pode votar\n\t\t\t\t\t\tcheck = 1;\n\t\t\t\t\t\treturn nome;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tif(check == 0) {\n\t\t\treturn \"Pessoa nao pode votar nessa eleicao\";\n\t\t}\n\t\treturn \"null\";\n\t}", "title": "" }, { "docid": "a09df92433961c03406ec3b8b452c443", "score": "0.580108", "text": "public int getId()\r\n/* 231: */ {\r\n/* 232:323 */ return this.idRegistroPeso;\r\n/* 233: */ }", "title": "" }, { "docid": "f66a6613468424a4bbed1768f97bf031", "score": "0.5798448", "text": "public java.lang.String getIdUsuario()\r\n {\r\n return this.idUsuario;\r\n }", "title": "" }, { "docid": "f66a6613468424a4bbed1768f97bf031", "score": "0.5798448", "text": "public java.lang.String getIdUsuario()\r\n {\r\n return this.idUsuario;\r\n }", "title": "" }, { "docid": "0fb7dc0d387b9e3879936ff97e66e219", "score": "0.57968163", "text": "@Override\n\tpublic void editarPerfil() {\n\t\t\n\t}", "title": "" }, { "docid": "7cd1d4c36c2e55d002733f168833d20c", "score": "0.5785115", "text": "public int getId_profil() {\n\t\t\treturn id_profil;\n\t\t}", "title": "" }, { "docid": "ce47a3e7b91fc9ac1c1edcc94dc6ca43", "score": "0.5776822", "text": "public void setSeccion(int id){\n this.id_casilla = id;\n }", "title": "" }, { "docid": "2f551d254131f2bb61e612e6c4d8533f", "score": "0.5771524", "text": "public void setPropietario(String prp){\n this.nombrePropietario = prp;\n }", "title": "" }, { "docid": "3fcbf498c63182182d9cef4ef83a8438", "score": "0.57695585", "text": "public String getIdUsuario() {\n return idUsuario;\n }", "title": "" }, { "docid": "5739810090d6430b133a4188279bfba2", "score": "0.57668376", "text": "public void metodo1Interfaz3() {\n\t\t//codigo\n\t}", "title": "" }, { "docid": "ab70eaaaf1b5c1e82ce32b98672fd51a", "score": "0.57662755", "text": "public PersonaJuridica() \n\t{\n\t\tthis.tipoDocumento = \"\";\n\t\tthis.numDocumento = \"\";\n\t\tthis.direccion = \"\";\n\t}", "title": "" }, { "docid": "2fff3622810758ecc902d393ee1a345b", "score": "0.57661134", "text": "public void setIdUsuario(String idUsuario) {\n this.idUsuario = idUsuario;\n }", "title": "" }, { "docid": "bf6b570f1bf05e0948519d5de9c16345", "score": "0.5764721", "text": "public void setIdUsuario(String idUsuario) {\n this.idUsuario = idUsuario;\n }", "title": "" }, { "docid": "c6da9e14e70222494b10ca0922b007e4", "score": "0.5764308", "text": "public Identificador getIdParticipante(){\n return localIdParticipante;\n }", "title": "" }, { "docid": "f9cd3b6970d2b1daa72e2bb2ae04ccf7", "score": "0.57631844", "text": "public facDetalleDocumentoEntidad(String RFCREC,String NOMREC,String codDoc,String TIPODOC,String FOLFAC,Double TOTAL, Date FECHA,String EDOFAC,\r\n\t \t\tString PDFARC,String XMLARC,String email,String direccion, String formato, String codEstablecimiento, String codPuntoEmision,\r\n\t \t\tString codigoDocumento, String secuencial, String xmlAutorizacion)\r\n\t{\r\n\t \tthis.RFCREC= RFCREC;\r\n\t \tthis.NOMREC=NOMREC;\r\n\t \tthis.codDoc= codDoc;\r\n\t \tthis.TIPODOC= TIPODOC;\r\n\t \tthis.FOLFAC= FOLFAC;\r\n\t \tthis.TOTAL= TOTAL;\r\n\t \tthis.FECHA= FECHA;\r\n\t \tthis.EDOFAC = EDOFAC;\r\n\t \tthis.PDFARC= PDFARC;\r\n\t \tthis.XMLARC = XMLARC;\r\n\t \tthis.email= email;\r\n\t \tthis.direccion=direccion;\r\n\t \tthis.formato= formato;\r\n\t \tthis.codEstablecimiento= codEstablecimiento;\r\n\t \tthis.codPuntoEmision=codPuntoEmision;\r\n\t \tthis.codigoDocumento= codigoDocumento;\r\n\t \tthis.secuencial= secuencial;\r\n\t \tthis.xmlAutorizacion = xmlAutorizacion;\r\n\t }", "title": "" }, { "docid": "f6e17c1089b70666503296333a21ffa6", "score": "0.5763183", "text": "public void setIdUsuario(java.lang.String idUsuario)\r\n {\r\n this.idUsuario = idUsuario;\r\n }", "title": "" }, { "docid": "6b3ed74b9c9170ba464b9ba898dcf599", "score": "0.57620895", "text": "public int getIdCasilla(){\n return this.id_casilla;\n }", "title": "" }, { "docid": "dfcde01673e7241d1972e6fd7a9aa4c6", "score": "0.575685", "text": "public PersonaDTO(String id, String nombre, String cedula) {\n\t\tsuper();\n\t\tthis.id = id;\n\t\tthis.nombre = nombre;\n\t\tthis.cedula = cedula;\n\t}", "title": "" }, { "docid": "c5359e418bd778fc43b0291fa5c3cbb9", "score": "0.5755615", "text": "public String textoAyuda() {\n\t\treturn \"3- CREARCELULA F C: crea una nueva celula posicion (f,c) si es posible\";\n\t}", "title": "" }, { "docid": "24a1d51e5f611a887b487e158dc4a7d8", "score": "0.5753365", "text": "public String getIdUsuarioAprovacao() {\n\t\treturn idUsuarioAprovacao;\n\t}", "title": "" }, { "docid": "789aa1c2b2b56e46c3ca6a5cc96a4078", "score": "0.5751868", "text": "public long getComercioId() {\n return comercioId;\n }", "title": "" }, { "docid": "b18dcae608c776fdd2dc0025e18e8d2b", "score": "0.57489324", "text": "public PrescripcionMueble(int id, String tipoPieza, String modeloMueble, int cantidad) {\n this.id = id;\n this.tipoPieza = tipoPieza;\n this.modeloMueble = modeloMueble;\n this.cantidad = cantidad;\n }", "title": "" }, { "docid": "d599965a8bcd4cb8779d258ba5a196ba", "score": "0.57478535", "text": "public java.lang.String getIdContato(){\n return localIdContato;\n }", "title": "" }, { "docid": "f5d78cbbef1dddce1cd38de29f15bbfe", "score": "0.5743473", "text": "public String ControlloAvvisoIscritto() {\n\t\tString risultato=\"\";\n\t\tString IDI = txtID.getText();\n\t\tif(IDI.equals(\"\")) {\n\t\t\tSystem.out.println(\"NON C'E NESSUN VALORE\");\n\t\t\treturn risultato;\n\t\t}\n\t\tInteger ID=Integer.parseInt(IDI);\n\t\tif(!IDI.equals(\"\")&&iDAOP.ControlloDinamicoIdIscritto(ID)) {\n\t\t\tSystem.out.println(\"ID ESISTENTE\");\n\t\t\trisultato=\"ID esistente\";\n\t\t}\n\n\t\treturn risultato;\n\t}", "title": "" }, { "docid": "91de1663190c1bcaa8f28695385215b6", "score": "0.57433033", "text": "public Odontologo(){\n Id = \"\";\n Contrasena = \"\";\n }", "title": "" }, { "docid": "006612f24e463e1838d6985e6634a336", "score": "0.57388645", "text": "public Problema(String descricao, int viabilidade, String id) {\n super.validaString(descricao, \"Campo descricao nao pode ser nulo ou vazio.\");\n super.validaValor(viabilidade, \"Valor invalido de viabilidade.\");\n super.validaString(id, \"id nao pode ser nulo ou vazio\");\n this.descricao = descricao;\n this.viabilidade = viabilidade;\n this.id = id;\n }", "title": "" }, { "docid": "1c055db8f1e276dd83fb3c8ce64888dd", "score": "0.57365984", "text": "public int getIdOrganizacion()\r\n/* 246: */ {\r\n/* 247:338 */ return this.idOrganizacion;\r\n/* 248: */ }", "title": "" }, { "docid": "f681d4b60f5bec0c8be6d123464e465f", "score": "0.5728824", "text": "public int getIdpro() {\n return idpro;\n }", "title": "" }, { "docid": "ec45b6f62a789c685e196d9e449cca95", "score": "0.5724998", "text": "public Odontologo(String Id, String Contrasena, String Nombre, String Apellido, String Cargo, String Correo_Electronico, int Celular) {\n super(Nombre, Apellido, Cargo, Correo_Electronico, Celular);\n this.Id = Id;\n this.Contrasena = Contrasena;\n }", "title": "" }, { "docid": "18b5118a2c6cfd62bc22290fb4adee15", "score": "0.5723462", "text": "public java.lang.String getIdParticipante(){\n return localIdParticipante;\n }", "title": "" }, { "docid": "6b88bbc9283094ee5ac97579ed7836ce", "score": "0.57185996", "text": "public String getIdUsuario() {\n return idUsuario;\n }", "title": "" }, { "docid": "7c1d1d4a36afca5679f0911b08ab6296", "score": "0.5716609", "text": "@Override\n\tpublic void descriere(String identare) {\n\t\tSystem.out.println(identare+\"Sectia:\" +this.nume);\n\t}", "title": "" }, { "docid": "5bade82898c85678b9049e25ab55f9df", "score": "0.57147956", "text": "public Amigo(String nombre, String cedula, int edad, boolean riesgo, String relacion, String facebook) {\n super(nombre, cedula, edad, riesgo); //Aqui, esta instanciando los atributos de la clase \"Persona\" de manera que \"Amigo\" los hereda\n\n\n this.relacion = relacion; //Estos son los constructores para los dos atributos unicos de esta clase \"Amigo\"\n this.facebook = facebook;\n }", "title": "" }, { "docid": "a7e3c4a40aa227fab769e25d06926a9a", "score": "0.57068413", "text": "public Iniciativa(String descripcion, Date fecha, String palabrasClave){\n this.descripcion= descripcion;\n this.fechaCreacion= fecha;\n this.setPalabrasClave(palabrasClave);\n }", "title": "" } ]
554f31bc430182af03d23bdc634a1164
Create the application window.
[ { "docid": "c337100a759ce9aea59010c8223617f5", "score": "0.0", "text": "public Processor() {\n\t\tsuper(null);\n\t\tcreateActions();\n\t\taddToolBar(SWT.FLAT | SWT.WRAP);\n\t\taddMenuBar();\n\t\taddStatusLine();\n\t}", "title": "" } ]
[ { "docid": "7481202fde20d04d903488984e73e018", "score": "0.75743645", "text": "private void createWindow() throws Exception {\n Display.setFullscreen(false);\n Display.setDisplayMode(new DisplayMode(640, 480));\n Display.setTitle(\"Program #2\");\n Display.create();\n }", "title": "" }, { "docid": "4cb0442a41df2fce4aa162f00bc3e14a", "score": "0.7468309", "text": "@SuppressWarnings(\"unused\")\n\tpublic void CreateWindow ()\n\t{\n\t}", "title": "" }, { "docid": "77bf1b73cfb7bdb34a8d1976c129b4c8", "score": "0.7409114", "text": "private void createWindow() {\n setSize(new Dimension(WIDTH, HEIGHT));\n setDefaultCloseOperation(DO_NOTHING_ON_CLOSE);\n closingWindow();\n setLocationRelativeTo(null);\n add(new EntriesPanel());\n setVisible(true);\n createButtons();\n setVisible(true);\n createNoteArea();\n setVisible(true);\n createConsole();\n setVisible(true);\n startGame();\n }", "title": "" }, { "docid": "90d94b936f1254e9224170a34e197797", "score": "0.72585624", "text": "private void createWindow() throws Exception {\n Display.setFullscreen(false);\n DisplayMode d[] = Display.getAvailableDisplayModes();\n for (int i = 0; i < d.length; i++) {\n if (d[i].getWidth() == 640\n && d[i].getHeight() == 480\n && d[i].getBitsPerPixel() == 32) {\n displayMode = d[i];\n break;\n }\n }\n Display.setDisplayMode(displayMode);\n Display.setTitle(\"MyCraft\");\n Display.create();\n }", "title": "" }, { "docid": "46218db6bba53da4721377dfd2c71a0e", "score": "0.724962", "text": "public static void createMainWindow()\n\t{\n\t\t\n\t\tMainWindow.setTitle(UserName + \"'s Chat box\");\n\t\tMainWindow.setSize(450, 500);\n\t\tMainWindow.setLocation(220, 180);\n\t\tMainWindow.setResizable(false);\n\t\tconfigMainWindow();\n\t\tactionMainWindow();\n\t\tMainWindow.setVisible(true);\n\t\t\n\t}", "title": "" }, { "docid": "0f7a9a18567ee90517787d45d25e3ca1", "score": "0.7220609", "text": "private void createAndShowGUI() {\n //Create and set up the window.\n JFrame frame = new JFrame(\"CarSharingClub - Maintenance App\");\n frame.setLocationRelativeTo(null);\n frame.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);\n AppView m = new AppView(this.client);\n\n m.setSize(650, 650);\n\n // Add content to the window.\n frame.add(m, BorderLayout.CENTER);\n\n //Display the window.\n frame.setExtendedState(JFrame.MAXIMIZED_BOTH);\n frame.pack();\n\n // Set main view visible.\n frame.setVisible(true);\n logger.info(\"Displayed application GUI.\");\n }", "title": "" }, { "docid": "90fcea97ccd2ff2016d7e9c4a36c57c2", "score": "0.70590806", "text": "private void createWindow() throws Exception{\n Display.setFullscreen(false);\n DisplayMode d[] = Display.getAvailableDisplayModes();\n for (int i = 0; i < d.length; i++) {\n if (d[i].getWidth() == windowWidth && d[i].getHeight() == windowHeight && d[i].getBitsPerPixel() == 32) {\n displayMode = d[i];\n break;\n }\n }\n Display.setDisplayMode(displayMode);\n Display.setTitle(\"CS 445 Voxel Engine\");\n Display.create();\n }", "title": "" }, { "docid": "afdba3d17dec4253696f84165a9d2559", "score": "0.6885802", "text": "private static void createAndShowGUI() {\n // Create and set up the window.\n mainFrame = new JFrame(\"Environment monitor\");\n Image icon = Toolkit.getDefaultToolkit().createImage(\"icon.png\");\n mainFrame.setIconImage(icon);\n mainFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n \n // Prompt for environment\n \tString environmentName = new EnvironmentSelector().getEnvironmentName(mainFrame);\n \tif (environmentName == null) {\n \t\tSystem.exit(0);\n \t}\n \t\n // Set up the content pane.\n MainFrame mainFrameBoxLayout = new MainFrame();\n mainFrameBoxLayout.addComponentsToPane(mainFrame.getContentPane(), environmentName);\n // Display the window.\n mainFrame.pack();\n mainFrame.setSize(700, 400);\n mainFrame.setLocationRelativeTo(null); \n mainFrame.setVisible(true);\n }", "title": "" }, { "docid": "a9f2ee0645e6a8074dffd264cc5d176a", "score": "0.6865387", "text": "public Window() {\n create();\n }", "title": "" }, { "docid": "0dc15a03deb521313c177fe184a2c812", "score": "0.68265015", "text": "public static void create(){\n \n try {\n //Display.setDisplayMode(new DisplayMode(750, 421));\n Display.setDisplayMode(Display.getDesktopDisplayMode());\n Display.setTitle(\"Battleships\");\n Display.setFullscreen(true);\n Display.create();\n GameLogger.print(new String(\"Created a window with size \" + Display.getWidth() + \" : \" + Display.getHeight()));\n } catch (LWJGLException ex) {\n Logger.getLogger(Window.class.getName()).log(Level.SEVERE, null, ex);\n System.exit(1);\n }\n }", "title": "" }, { "docid": "61a7df52432d20173fee2a1497c84183", "score": "0.68202883", "text": "private static void createAndShowGUI() {\r\n\t\tfinal Window game = new Window(\"Admiral is on Board\");\r\n\t\tgame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\t// TODO f.setIconImage(icon);\r\n\t\tgame.setSize(1509, 732);\r\n\t\tgame.setResizable(false);\r\n\t\tgame.setLocationByPlatform(true);\r\n\t\tgame.setVisible(true);\r\n\t}", "title": "" }, { "docid": "06cda4e9ed48a4617cab26de586fca9b", "score": "0.67865837", "text": "protected void createWindow(String clientName) {\n setState(java.awt.Frame.NORMAL);\n setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n setLayout(new BorderLayout());\n add(canvas, BorderLayout.CENTER);\n add(buttonPanel, BorderLayout.SOUTH);\n add(sidePanel, BorderLayout.EAST);\n pack();\n }", "title": "" }, { "docid": "c2d81ceacee239c5963702968d88c47d", "score": "0.6726929", "text": "private StartWindow() {\n this.setTitle(\"Willkommen\");\n this.initWindow();\n this.makeLayout();\n }", "title": "" }, { "docid": "5f9259faebd549ad8d112cd36ae9ceb3", "score": "0.6721885", "text": "protected void createContents() {\n\t\tsetText(\"SWT Application\");\n\t\tsetSize(1280, 720);\n\n\t}", "title": "" }, { "docid": "37688a6f54a59b1f459db35f99e8f6bd", "score": "0.67115825", "text": "private static void createAndShowGUI()\n\t{\n \tGUI window = new GUI();\n frame.setContentPane(window.createContentPane());\n\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n frame.setSize(305, 165);\n\t\tframe.setLocationRelativeTo(null);\n frame.setVisible(true);\n }", "title": "" }, { "docid": "388e59e3afc58a0b7125af31936c614a", "score": "0.6687927", "text": "protected void createContents() {\n\t\tsetText(\"SWT Application\");\n\t\tsetSize(450, 300);\n\n\t}", "title": "" }, { "docid": "dfd0ce8c19ce91bd3604fc8f1da56e25", "score": "0.660625", "text": "public void makeMainWindow() {\n _mainWindow = new DemoWindow( this );\n myWindow().getTextView().setDocument( _textDocument );\n }", "title": "" }, { "docid": "c1b99be3b6b1903d09825ca718f72f6b", "score": "0.6600737", "text": "public void createWindow()\n {\n setTitle(\"MQ Server Ping\");\n setIconImage(image.getImage());\n setJMenuBar(createMenuBar());\n messages.setText(\"\");\n messages.setEditable(false);\n stat = new JButton(\"Start\");\n stat.addActionListener(this);\n butpan.add(stat);\n stat = new JButton(\"Exit\");\n stat.addActionListener(this);\n butpan.add(stat);\n contentP.add(new JScrollPane(response), \"Center\");\n contentP.add(messages, \"South\");\n getContentPane().setLayout(new BorderLayout());\n getContentPane().add(contentP, \"Center\");\n getContentPane().add(butpan, \"South\");\n setSize(310, 700);\n setLocation(200, 100);\n setResizable(false);\n setDefaultCloseOperation(0);\n toFront();\n setVisible(true);\n }", "title": "" }, { "docid": "d172830e4d2a70f1216b5c895a339240", "score": "0.6600702", "text": "public void createAndShow() {\r\n this.contentPane = this.createContentPane();\r\n this.createMainPane();\r\n\r\n // Set the scene.\r\n this.setScene(new Scene(this.mainPane));\r\n this.setWindowSize(DEFAULT_WINDOW_WIDTH, DEFAULT_WINDOW_HEIGHT);\r\n\r\n // Disabled Dialog box resizing.\r\n this.dialogStage.setResizable(false);\r\n // Show the dialog and wait until the user closes it.\r\n this.dialogStage.show();\r\n }", "title": "" }, { "docid": "6d42023e4b2122d903faf25810c03f78", "score": "0.6588801", "text": "private void createShell() {\n frame = createFrame(shortBundle.getString(\"ShellTitle\"));\n\n /* \n * set the frame in UiApplication, so that other components\n * associated with this application can access it via the\n * getCurrentFrame() method\n */\n setCurrentFrame(frame);\n\n /*\n * create the connectionManager and have it listen to changes\n * to connections registered with the connectonManager\n */\n connectionManager = new ConnectionManager();\n connectionManager.addContextChangedListener(this);\n\n /*\n * create the MenuBar, ToolBar, and StatusBar\n */\n createUiComponents();\n\n /*\n * register the WorkspaceDocumentFactory for Shell\n */\n registerWorkspaceDocumentFactory(); \n \n /*\n * setup a login failure handler for handling command line login \n * attempts that fail\n */\n loginFailureHandler = new ShellLoginFailureHandler();\n }", "title": "" }, { "docid": "45486401e060c25ad217383bf771161c", "score": "0.658681", "text": "private void create(){\n frame = new JFrame(\"MainWindow\");\n frame.setContentPane(mainPanel);\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n\n //TODO EVENTS\n commandTextField.addKeyListener(new KeyAdapter() {\n @Override\n public void keyPressed(KeyEvent e) {\n if (e.getKeyCode() == KeyEvent.VK_ENTER) DebugCore.debugIn(commandTextField.getText());\n\n super.keyPressed(e);\n }\n });\n\n iterateButton.addMouseListener(new MouseAdapter() {\n @Override\n public void mouseClicked(MouseEvent e) {\n clickIterate();\n super.mouseClicked(e);\n }\n\n });\n\n\n buildMenu();\n frame.setJMenuBar(menuBar);\n\n assingIcons();\n\n setWeights();\n frame.pack();\n frame.setVisible(true);\n }", "title": "" }, { "docid": "3d2e463cad31aa210059298e13417837", "score": "0.65810984", "text": "public void createJFrame() {\n setTitle(\"Welcome Screen\");\n setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n setSize(900,700);\n setLayout(null);\n cons.setLayout(null);\n setVisible(true);\n }", "title": "" }, { "docid": "e5263127b6c341a6a3021beaf757d081", "score": "0.6572212", "text": "private static void createAndShowGUI() {\n \t\r\n\t\ttry {\r\n\t\t\tUIManager.setLookAndFeel(\"com.sun.java.swing.plaf.windows.WindowsLookAndFeel\");\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\r\n JFrame frame = new JFrame(\"Uzebox Patch Maker\");\r\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n frame.add(new PatchMaker());\r\n\r\n frame.setExtendedState(Frame.MAXIMIZED_BOTH );\r\n frame.setVisible(true);\r\n\r\n }", "title": "" }, { "docid": "e0f94c82e083eb7434e5cac626212365", "score": "0.65675956", "text": "public void createWindow()\r\n \t{\r\n \t\ttry\r\n \t\t{\r\n \t\t\t//Frame and canvas\t\t\t\r\n \t\t\tterraeRasaCanvas = new Canvas();\r\n \t\t\tterraeRasaCanvas.setPreferredSize(new Dimension(width, height));\r\n \t\t\t\r\n \t\t\tterraeRasaFrame = new Frame(WINDOW_TITLE);\r\n \t\t\tterraeRasaFrame.setBackground(Color.black);\r\n \t\t\tterraeRasaFrame.setLayout(new BorderLayout());\r\n \t\t\tterraeRasaFrame.add(terraeRasaCanvas, \"Center\");\r\n \t\t\tterraeRasaFrame.pack();\r\n \t\t\tterraeRasaFrame.setLocationRelativeTo(null);\r\n \t\t\tterraeRasaFrame.setVisible(true);\r\n\t\r\n \t\t\t//Opengl display\r\n \t\t\tDisplay.setParent(terraeRasaCanvas); //The display is inside an awtCanvas to allow for resizing\r\n \t Display.setTitle(WINDOW_TITLE); //sets the title of the window\r\n \t\t Display.setDisplayMode(new DisplayMode(width, height)); //creates the window with the correct size\r\n \t\t Display.setFullscreen(true);\r\n \t\t Display.setResizable(true); //The display is resizable\r\n \t\t\tDisplay.create((new PixelFormat()).withDepthBits(24)); //finally creates the window\r\n \t\t \r\n \t initGL(); //Initialize the generic 2D opengl settings\r\n \t \tresizeWindow(); //To remain consistent, resize the window to use slightly different calculations immediately\r\n \t \t\r\n \t\t\t\r\n \t\t}\r\n \t\tcatch (Exception e)\r\n \t\t{\r\n \t\t\te.printStackTrace();\r\n \t\t\tSystem.exit(1);\r\n \t\t}\r\n \t}", "title": "" }, { "docid": "1a176e28023fce504dbc694727f636e4", "score": "0.656278", "text": "@FXML\n public void createCLIWindow(ActionEvent event) {\n\n // Check to see if a CLI window already exists.\n if (!App.childWindowToFront(ChildWindowType.CONSOLE)) {\n\n Pane cliPane = new Pane();\n try {\n FXMLLoader loader = new FXMLLoader();\n\n cliPane = loader.load(getClass().getResourceAsStream(PageNav.COMMANDLINE));\n// MenuBarController menuBarControl = loader.getController();\n\n //PageNav.setMenuBarController(menuBarControl);\n //PageNav.loadNewPage(PageNav.CLI);\n\n } catch (IOException e) {\n showPaneLoadErrorMessage();\n }\n Stage window = new Stage();\n Scene scene = new Scene(cliPane);\n window.setTitle(\"SapioCulture - Command Line Interface\");\n window.setScene(scene);\n window.show();\n\n App.addChildWindow(window, ChildWindowType.CONSOLE);\n\n }\n }", "title": "" }, { "docid": "c682693e630f08fd65bc245e3d2e4e95", "score": "0.6557859", "text": "@Override\n protected void window() {\n setTitle(\"Example Platform Game\");\n setBackground(Color.DARK_GRAY); //Background can be color or image\n setDefaultGravity(75); //Gravity is percent\n create(); //Creates the window (no settings should be changed after this)\n }", "title": "" }, { "docid": "aede4bd59ec8c787ecb01070180d1926", "score": "0.65299255", "text": "private static void createAndShowGUI() {\n JFrame frame = new JFrame();\r\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\r\n //Create and set up the content pane.\r\n Menu demo = new Menu();\r\n frame.setJMenuBar(demo.createMenuBar());\r\n\r\n //Display the window.\r\n frame.setSize(450, 260);\r\n frame.setVisible(true);\r\n }", "title": "" }, { "docid": "52e330eb575463b6e30867820056aafa", "score": "0.64638233", "text": "public void buildWindow() {\r\n\t\tSwingUtilities.invokeLater(new Runnable() {\r\n\t\t\t@Override\r\n\t\t\tpublic void run() {\r\n\t\t\t\twindow.build();\r\n\t\t\t}\r\n\t\t});\r\n\t}", "title": "" }, { "docid": "8227d9bbab030024e6feb34339eafccb", "score": "0.6450319", "text": "private static void createAndShowGUI() {\r\n //Make sure we have nice window decorations.\r\n JFrame.setDefaultLookAndFeelDecorated(true);\r\n\r\n //Create and set up the window.\r\n JFrame frame = new JFrame(\"Leeuwerink DiskTool\");\r\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\r\n //Create and set up the content pane.\r\n Main newContentPane = new Main();\r\n newContentPane.setOpaque(true); //content panes must be opaque\r\n frame.setContentPane(newContentPane);\r\n\r\n //Display the window.\r\n frame.pack();\r\n frame.setVisible(true);\r\n }", "title": "" }, { "docid": "4d419e2e085e225a65c905302d500674", "score": "0.6446895", "text": "@Override\n public final boolean didFinishLaunching(UIApplication app, UIApplicationLaunchOptions launchOpts) {\n CGRect bounds = UIScreen.getMainScreen().getBounds();\n UIWindow window = new UIWindow(bounds);\n\n // configure and register the PlayN platform; start our game\n RoboPlatform.Config config = new RoboPlatform.Config();\n config.orients = UIInterfaceOrientationMask.All;\n RoboPlatform pf = RoboPlatform.register(window, config);\n pf.run(new BaseApp(this));\n\n // make our main window visible\n window.makeKeyAndVisible();\n addStrongRef(window);\n return true;\n }", "title": "" }, { "docid": "913f7a5880be33a86e7ec51da643f2c9", "score": "0.6431748", "text": "public static void createAndShowGUI(){\n\t\tPDGameApp pdg1 = new PDGameApp();\n\t\tpdg1.addListeners(); //method will add listeners to buttons\n\t\t\n\t\t\n\t}", "title": "" }, { "docid": "fee1ed4b3f7d10f120df048bc577f411", "score": "0.6426641", "text": "private void createAndShowGUI() {\n frame.setContentPane(createContentPane());\r\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n frame.pack();\r\n frame.setVisible(true);\r\n }", "title": "" }, { "docid": "f4d21c4cfd9fcb6d138c1b77016718a4", "score": "0.64027417", "text": "private static void createAndShowGUI() {\n //Make sure we have nice window decorations.\n JFrame.setDefaultLookAndFeelDecorated(true);\n\n //Create and set up the window.\n InternalFrameDemo frame = new InternalFrameDemo();\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n //Display the window.\n frame.setVisible(true);\n }", "title": "" }, { "docid": "38cee47c9ff4deca59dcf4a19c5ceccb", "score": "0.6393632", "text": "private static void createAndShowGUI() {\n\n //Create and set up the window.\n JFrame frame = new GUI();\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n //Display the window.\n frame.pack();\n frame.setSize(950, 700);\n frame.setVisible(true);\n }", "title": "" }, { "docid": "b6c20cb8358846fa4a51e8647082cdab", "score": "0.6379922", "text": "public static void NewScreen() {\r\n\t\tEventQueue.invokeLater(new Runnable() {\r\n\t\t\tpublic void run() {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tContinuar windowCont = new Continuar();\r\n\t\t\t\t\t// window.frame.setVisible(true);\r\n\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t});\r\n\t}", "title": "" }, { "docid": "7cc71bb777d00097d95a76e65da62369", "score": "0.6378078", "text": "public static void main(String[] args) {\n Starter windowMain = new Starter();\n\n\n\n\n }", "title": "" }, { "docid": "511089442366a05a71bf1569b93cde06", "score": "0.636165", "text": "private static void createAndShowGUI() {\n\t\t// Create and set up the window.\n\t\tgpaViewer frame = new gpaViewer();\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\t// Set up the content pane.\n\t\tframe.addComponentsToPane(frame.getContentPane());\n\t\t// Display the window.\n\t\tframe.pack();\n\t\tframe.setVisible(true);\n\t\tframe.setSize(700, 500);\n\n\t}", "title": "" }, { "docid": "4fe14db0dbf43938bb23cd7a3d4dafec", "score": "0.6354804", "text": "private static void createAndShowGUI() {\r\n //Make sure we have nice window decorations.\r\n JFrame.setDefaultLookAndFeelDecorated(true);\r\n JDialog.setDefaultLookAndFeelDecorated(true);\r\n\r\n //Create and set up the window.\r\n JFrame frame = new JFrame(\"Number Plate Recognition\");\r\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\r\n //Create and set up the content pane.\r\n JComponent newContentPane = new NumPass1();\r\n newContentPane.setOpaque(true); //content panes must be opaque\r\n frame.setContentPane(newContentPane);\r\n\r\n //Display the window.\r\n frame.pack();\r\n frame.setVisible(true);\r\n }", "title": "" }, { "docid": "bd3c1a56a7d78b4a05c93d5698c796d0", "score": "0.63526636", "text": "protected static void createAndShowGUI() {\n }", "title": "" }, { "docid": "512cbdcbe0cd289bfafdf4c227c25608", "score": "0.6338274", "text": "private void setUpWindow() {\n\t\tsetLayout(null);\n\t\tsetDefaultCloseOperation(EXIT_ON_CLOSE);\n\t\tsetSize(640, 480);\n\t\tsetLocation(0, 0);\n\t\tsetResizable(false);\n\t\tsetTitle(\"Dia\");\n\t}", "title": "" }, { "docid": "2270dc31612f411c6ab84c3643807e05", "score": "0.6327068", "text": "private static void createAndShowGUI()\n {\n frame.setDefaultCloseOperation(JFrame.DO_NOTHING_ON_CLOSE);\n frame.createContentPane();// add content pane to frame\n frame.setSize(760, 600);\n frame.setLocation(250, 200);\n frame.setVisible(true);\n }", "title": "" }, { "docid": "c1284e821c8cde82098fc197d9b478eb", "score": "0.6326558", "text": "public NewApplication() {\n initComponents();\n }", "title": "" }, { "docid": "53d39ec13bf9ddf42ec2bbf6eb6f5e43", "score": "0.6322782", "text": "public void showWindow();", "title": "" }, { "docid": "7955d0cb66b57adcc7bc324ea8a2c1ee", "score": "0.6311352", "text": "void buildWindow()\n {\n main.gui.gralMng.selectPanel(\"primaryWindow\");\n main.gui.gralMng.setPosition(10, 0, 10, 0, 'r'); //right buttom, about half less display width and hight.\n int windProps = GralWindow.windConcurrently | GralWindow.windHasMenu;\n GralWindow wind = main.gui.gralMng.createWindow(\"windView\", \"view - The.file.Commander\", windProps);\n wind.addMenuBarItemGThread(\"view-Search\", \"&Edit/&Search\", actionOpenEdit);\n wind.addMenuBarItemGThread(\"view-Search\", \"&Edit/set &Writeable\", actionOpenEdit);\n wind.addMenuBarItemGThread(\"view-Search\", \"&View/&Hex-Byte\", actionOpenEdit);\n wind.addMenuBarItemGThread(\"view-Search\", \"&View/text-&Windows\", actionOpenEdit);\n wind.addMenuBarItemGThread(\"view-Search\", \"&View/text-&UTF\", actionOpenEdit);\n wind.addMenuBarItemGThread(\"view-Search\", \"&View/text-&ASCII-7\", actionOpenEdit);\n wind.addMenuBarItemGThread(\"view-Search\", \"&View/text-&Encoding\", actionOpenEdit);\n wind.addMenuBarItemGThread(null, \"&Save-as/UTF8-Unix-lf\", actionConvertUTF8unix);\n main.gui.gralMng.setPosition(0, 0, 0, 0, 'r', 0);\n widgContent = main.gui.gralMng.addTextBox(\"view-content\", false, null, '.');\n //widgContent.setTextStyle(GralColor.getColor(\"bk\"), main.gui.gralMng.propertiesGui.getTextFont(2.0f, 'm', 'n'));\n windView = wind; \n windView.setWindowVisible(false);\n //windView1.\n }", "title": "" }, { "docid": "7dce1e660471a4f9b5123ade3e672b2c", "score": "0.6298773", "text": "@Override\n public boolean didFinishLaunching (UIApplication app, UIApplicationLaunchOptions launchOpts) {\n CGRect bounds = UIScreen.getMainScreen().getBounds();\n UIWindow window = new UIWindow(bounds);\n\n // configure and register the PlayN platform\n RoboPlatform.Config config = new RoboPlatform.Config();\n config.orients = UIInterfaceOrientationMask.All;\n RoboPlatform pf = RoboPlatform.create(window, config);\n\n // create and initialize our game\n TestsGame game = new TestsGame(pf, new String[0]);\n\n // make our main window visible\n window.makeKeyAndVisible();\n addStrongRef(window);\n return true;\n }", "title": "" }, { "docid": "7176f8e90bc0d440ef31459df7b5286b", "score": "0.6265915", "text": "public static Frame createWindow() {\r\n Frame window = new Frame(); // Frame is a thing from java.awt that shows a window\r\n window.setSize(800, 600);\r\n window.setVisible(true); // this makes the window actually show up\r\n window.setResizable(false); // resizing makes stuff more complicated!\r\n window.addWindowListener(new WindowAdapter() { // make the program quit when we click the close button\r\n public void windowClosing(WindowEvent windowEvent) {\r\n System.exit(0); // Stop the program. The number is an error code for the operating system, but 0\r\n // means no error.\r\n }\r\n });\r\n\r\n return window;\r\n }", "title": "" }, { "docid": "216254551f7d744616367a580d88de4c", "score": "0.6264792", "text": "private static void createGUI() {\n JFrame frame = new JFrame(\"Server\" + serverId);\n frame.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);\n textArea = new TextArea();\n redirectSystemStreams();\n //Add contents to the window.\n frame.add(textArea);\n\n //Display the window.\n frame.pack();\n frame.setVisible(true);\n }", "title": "" }, { "docid": "ebfa1a280c12b324f8e5666589e76a10", "score": "0.6260252", "text": "@FXML\n public void createSystemLogWindow(ActionEvent event) {\n\n // Check to see if a child window already exists for the system log.\n if (!App.childWindowToFront(ChildWindowType.SYSTEM_LOG)) {\n Pane logPane = new Pane();\n try {\n FXMLLoader loader = new FXMLLoader();\n\n logPane = loader.load(getClass().getResourceAsStream(PageNav.SYSTEMLOG));\n\n } catch (IOException e) {\n showPaneLoadErrorMessage();\n }\n Stage window = new Stage();\n Scene scene = new Scene(logPane);\n window.setTitle(\"SapioCulture - System Log\");\n window.setScene(scene);\n window.show();\n\n App.addChildWindow(window, ChildWindowType.SYSTEM_LOG);\n }\n }", "title": "" }, { "docid": "fb2027663962ee9b5a43b4b36ce6171e", "score": "0.62336874", "text": "private static void createAndShowGUI() {\r\n //Create and set up the window.\r\n JFrame frame = new JFrame(\"MenuDemo\");\r\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\r\n //Create and set up the content pane.\r\n LanzaAyuda demo = new LanzaAyuda();\r\n frame.setJMenuBar(demo.createMenuBar());\r\n frame.setContentPane(demo.createContentPane());\r\n\r\n //Display the window.\r\n frame.setSize(450, 260);\r\n frame.setVisible(true);\r\n }", "title": "" }, { "docid": "abc1d08f50a94fa4ddfe459202550102", "score": "0.62302446", "text": "private static void createAndShowGUI() {\n\t\tJFrame.setDefaultLookAndFeelDecorated(true);\n\t\tgui.setResizable(false);\n\t\tgui.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tgui.setLocation(new Point(700, 200));\n\t\t// displays the window\n\t\tgui.pack();\n\t\tgui.setVisible(true);\n\t}", "title": "" }, { "docid": "6463d06cf15ebf5f4461c8feef3ad074", "score": "0.6229797", "text": "private void init() {\n\n window = WindowHandler.generateWindow(width, height, title, resizeable, vsync);\n\n }", "title": "" }, { "docid": "e67600f2cfb2c5a174fc06edf843fdaf", "score": "0.6225521", "text": "private static void createAndShowGUI(ClueApplication application) {\n try {\n UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());\n } catch (ClassNotFoundException | InstantiationException | UnsupportedLookAndFeelException | IllegalAccessException e) {\n JOptionPane.showMessageDialog(mainWindow,\n \"Something unexpected happened, please check help\",\n \"Internal error\",\n JOptionPane.ERROR_MESSAGE);\n }\n mainWindow = MainWindow.getInstance(application);\n mainWindow.setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);\n mainWindow.setVisible(true);\n if(tokenExpired) {\n JOptionPane.showMessageDialog(mainWindow,\n \"<html>Your Onedrive accessToken has expired, please authorize again,<br/> by adding again as new drive</html>\",\n \"Expired access token\",\n JOptionPane.INFORMATION_MESSAGE);\n }\n }", "title": "" }, { "docid": "a8c120732e9378690c5097d96878e389", "score": "0.6218062", "text": "public ViewApp() {\n firstRun = false;\n this.stg = getStage();\n this.wl = new WelcomeLabel(namechooser.getPlayerName());\n gameFxHelp = new GameFX();\n showWelcomeLabel();\n createHomeMenu();\n }", "title": "" }, { "docid": "8fdfd12424a97e26be3d7cabf6425061", "score": "0.6211066", "text": "protected void createContents() {\r\n\t\tMidterm_Window = new Shell();\r\n\t\tMidterm_Window.setToolTipText(\"\");\r\n\t\tMidterm_Window.setSize(612, 404);\r\n\t\tMidterm_Window.setText(\"Midterm Window\");\r\n\t\t\r\n\t\tcom01 com01_ = new com01(Midterm_Window, SWT.NONE);\r\n\t\tcom01_.setBounds(10, 50, 91, 141);\r\n\t\t\r\n\t\tcom02 com02_ = new com02(Midterm_Window, SWT.NONE);\r\n\t\tcom02_.setBounds(107, 10, 346, 34);\r\n\t\t\r\n\t\tLabel lblNextPage = new Label(Midterm_Window, SWT.CENTER);\r\n\t\tlblNextPage.setFont(SWTResourceManager.getFont(\"Microsoft JhengHei UI\", 10, SWT.NORMAL));\r\n\t\tlblNextPage.setBounds(10, 21, 66, 23);\r\n\t\tlblNextPage.setText(\"Next Page\");\r\n\t\t\r\n\t\tcom03 com03_ = new com03(Midterm_Window, SWT.NONE);\r\n\t\tcom03_.setBounds(107, 70, 451, 240);\r\n\r\n\t}", "title": "" }, { "docid": "cb5c6e2859060626131c9cb34ff59935", "score": "0.6205839", "text": "private void createDisplay() {\n\t\tframe = new JFrame(title);\r\n\t\tframe.setSize(width, height);\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\tframe.setResizable(false);\r\n\t\tframe.setLocationRelativeTo(null);\r\n\t\tframe.setVisible(true);\r\n\t\t// creates a canvas space that spans the same dimensions as the window\r\n\t\tcanvas = new Canvas();\r\n\t\tcanvas.setPreferredSize(new Dimension(width, height));\r\n\t\tcanvas.setMaximumSize(new Dimension(width, height));\r\n\t\tcanvas.setMinimumSize(new Dimension(width, height));\r\n\t\tcanvas.setFocusable(false); //allows key press to work properly\r\n\t\t// adds the canvas to the frame\r\n\t\tframe.add(canvas);\r\n\t\tframe.pack();\r\n\t}", "title": "" }, { "docid": "65e43d678e8efc52be71d4d3baae3e75", "score": "0.6189596", "text": "public void createAndShowGUI(){\n\t\ttry {\n\t\t UIManager.setLookAndFeel( UIManager.getCrossPlatformLookAndFeelClassName() );\n\t\t } catch (Exception e) {\n\t\t e.printStackTrace();\n\t\t }\n JFrame frame = new JFrame(\"Best Drawing Program Ever\");\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n frame.setMinimumSize(new Dimension(400,200));\n \n frame.setJMenuBar(buildMenuBar(frame));\n \n\n\t\tpanel = new JPanel();\n frame.getContentPane().add(panel);\n \n //Display the window.\n frame.pack();\n frame.setVisible(true);\n }", "title": "" }, { "docid": "b6467a74b2cd48cc59347096f2ab1c72", "score": "0.61748433", "text": "public static void createAndShowGUI() {\n JFrame frame = new JFrame(\"FileChooser\");\n frame.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);\n \n //Add content to the window.\n frame.add(new FileChooser());\n \n //Display the window.\n frame.pack();\n frame.setVisible(true);\n }", "title": "" }, { "docid": "bbd30cd898cb84ddc0c09fbfbeaade7b", "score": "0.6152547", "text": "private void createGUI() {\r\n\t\tBWindow window = new BDecoratedWindow(BuiSystem.getStyle(), null);\r\n\t\tTableLayout layout = new TableLayout(1, 10, 0);\r\n\t\tlayout.setEqualRows(true);\r\n\t\tlayout.setHorizontalAlignment(TableLayout.STRETCH);\r\n window.setLayoutManager(layout);\r\n BuiSystem.addWindow(window);\r\n window.setSize(250, display.getHeight());\r\n \r\n // the exit Button, calls BaseGame.quit() when executed\r\n BButton btnExit = new BButton(\"Exit\");\r\n btnExit.addListener(new ActionListener() {\r\n \t@Override\r\n \tpublic void actionPerformed(ActionEvent event) {\r\n \t\tquit();\r\n \t}\t\t\t\r\n\t\t});\r\n window.add(btnExit);\r\n\r\n // the slider changes the box's local scale\r\n window.add(new BLabel(\"LocalScale slider:\"));\r\n final BSlider boxSlider = new BSlider(Orientation.HORIZONTAL, 1, 500, 100);\r\n boxSlider.getModel().addChangeListener(new ChangeListener() {\r\n\t\t\t@Override\r\n\t\t\tpublic void stateChanged(ChangeEvent event) {\r\n\t\t\t\tbox.setLocalScale(boxSlider.getModel().getValue()/(float)100);\r\n\t\t\t}\r\n\t\t});\r\n window.add(boxSlider);\r\n\t}", "title": "" }, { "docid": "69ae26169009382beb1ec9e8a6601bd7", "score": "0.6141748", "text": "public NewWindowP5() {\n initComponents();\n }", "title": "" }, { "docid": "bdd72f308a583455e819290dfb3e95cc", "score": "0.61381626", "text": "public static void main(String[] args) {\n new WelcomeWindow();\n\n\n }", "title": "" }, { "docid": "0c3c9cc5fda65fb6f8dfe2e9448b0728", "score": "0.6135475", "text": "@Override\n\tpublic void create() {\n\t\tinit();\n\t\tthis.setScreen(mainScreen = new MainScreen(this)); // Runs the program creating new MainScreen of the game\n\t}", "title": "" }, { "docid": "cd6b867633df979bbdada11b1ec58671", "score": "0.61199397", "text": "public Makeapp() {\n initComponents();\n }", "title": "" }, { "docid": "2e1aec4c840354e959dbf4abc4c7a33d", "score": "0.611311", "text": "public void addWindow(Window w) { addWindow(w, true); }", "title": "" }, { "docid": "d95faad31be9aec310877eef2e5be09e", "score": "0.61120147", "text": "private static void createAndShowGUI() {\r\n //Create and set up the window.\r\n JFrame frame = new JFrame(\"Mastodon Tech Hub\");\r\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n \r\n //Add contents to the window.\r\n frame.add(new MTHClass(frame));\r\n frame.setPreferredSize(new Dimension(500, 500));\r\n \r\n //Display the window.\r\n frame.pack();\r\n frame.setLocationRelativeTo(null);\r\n frame.setVisible(true);\r\n }", "title": "" }, { "docid": "8829eaf1ab136775b8bdabc7a733bafb", "score": "0.6091716", "text": "private static void createAndShowGUI() {\n\t\tSystem.out.println(\"Please type your name\");\n\t\tScanner s = new Scanner(System.in);\n\t\tname = s.nextLine();\n\t\ts.close();\n\t\t// Create and set up the window.\n\t\tShhListen frame = new ShhListen();\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n\t\t// Set up the content pane.\n\t\tframe.addComponentsToPane();\n\n\t\t// Display the window.\n\t\tframe.pack();\n\t\tframe.setVisible(true);\n\t}", "title": "" }, { "docid": "556287ff3c764320bd767b8476bae13e", "score": "0.60847235", "text": "protected void createContents() {\r\n setText(\"SWT Application\");\r\n setSize(348, 241);\r\n setBackground(SWTResourceManager.getColor(4, 188, 244));\r\n final Label myMsnLabel = new Label(this, SWT.NONE);\r\n myMsnLabel.setText(\"My MSN\");\r\n myMsnLabel.setBounds(146, 10, 43, 19);\r\n\r\n final Label pleaseInputLabel = new Label(this, SWT.NONE);\r\n pleaseInputLabel.setText(\"Please Input!\");\r\n pleaseInputLabel.setBounds(36, 34, 115, 19);\r\n\r\n final Label mailLabel = new Label(this, SWT.NONE);\r\n mailLabel.setText(\"Mail\");\r\n mailLabel.setBounds(36, 70, 60, 20);\r\n\r\n final Label passwordLabel = new Label(this, SWT.NONE);\r\n passwordLabel.setText(\"Password\");\r\n passwordLabel.setBounds(36, 121, 60, 20);\r\n\r\n combo = new Combo(this, SWT.NONE);\r\n combo.setBounds(136, 67, 140, 25);\r\n combo.setText(\"terry@vcage.cn\");\r\n\r\n text = new Text(this, SWT.BORDER);\r\n text.setBounds(136, 118, 140, 19);\r\n text.setText(\"fqlwjfql\");\r\n\r\n final Button loginButton = new Button(this, SWT.NONE);\r\n loginButton.addSelectionListener(new SelectionAdapter() {\r\n public void widgetSelected(final SelectionEvent e) {\r\n login();\r\n }\r\n });\r\n loginButton.setText(\"Login\");\r\n loginButton.setBounds(80, 162, 60, 22);\r\n\r\n final Button exitButton = new Button(this, SWT.NONE);\r\n exitButton.addSelectionListener(new SelectionAdapter() {\r\n public void widgetSelected(final SelectionEvent e) {\r\n e.display.close();\r\n }\r\n });\r\n exitButton.setText(\"Exit\");\r\n exitButton.setBounds(184, 162, 60, 22);\r\n //\r\n }", "title": "" }, { "docid": "053a39fbd7a3371f25803b841e6f7b39", "score": "0.60748667", "text": "public Application() {\n\t\tinitUI();\n\t}", "title": "" }, { "docid": "bda4da09fb4f64b49046ea5c39222052", "score": "0.6067675", "text": "protected void create() {\n frame = new JFrame();\n BoxLayout box = new BoxLayout(frame.getContentPane(), BoxLayout.Y_AXIS);\n frame.setLayout(box);\n }", "title": "" }, { "docid": "c254c4c9f96aa357ae2ad229407cd1b5", "score": "0.6066706", "text": "protected void createContents() {\r\n\t\tshlAmWindow = new Shell();\r\n\t\tshlAmWindow.setSize(450, 300);\r\n\t\tshlAmWindow.setText(\"AM Window\");\r\n\r\n\t\tButton button1 = new Button(shlAmWindow, SWT.NONE);\r\n\t\tbutton1.addMouseMoveListener(new MouseMoveListener() {\r\n\t\t\tpublic void mouseMove(MouseEvent me) {\r\n\t\t\t\t// System.out.println(\"Maus auf \" + me.x + \"/\" + me.y);\r\n\t\t\t}\r\n\t\t});\r\n\t\tbutton1.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n//\t\t\t\tSystem.out.println(vornameTF.getText());\r\n//\t\t\t\tSystem.out.println(nachnameTF.getText());\r\n//\t\t\t\tSystem.out.println(plzTF.getText());\r\n//\t\t\t\tSystem.out.println(ortTF.getText());\r\n\t\t\t\t//\r\n\t\t\t\tSystem.out.println(Person.getPersonenListe());\r\n\t\t\t\t//\r\n\t\t\t\t//getVornameOut().setText(getVornameTF().getText());\r\n\t\t\t\t//getNachnameOut().setText(getNachnameTF().getText());\r\n\t\t\t}\r\n\t\t});\r\n\t\tbutton1.setBounds(0, 198, 108, 53);\r\n\t\tbutton1.setText(\"Output to console\");\r\n\r\n\t\tvornameTF = new Text(shlAmWindow, SWT.BORDER);\r\n\t\tvornameTF.setBounds(205, 10, 219, 25);\r\n\r\n\t\tLabel lblVorname = new Label(shlAmWindow, SWT.NONE);\r\n\t\tlblVorname.setBounds(124, 10, 75, 15);\r\n\t\tlblVorname.setText(\"Vorname\");\r\n\r\n\t\tLabel lblNachname = new Label(shlAmWindow, SWT.NONE);\r\n\t\tlblNachname.setBounds(124, 44, 75, 15);\r\n\t\tlblNachname.setText(\"Nachname\");\r\n\r\n\t\tnachnameTF = new Text(shlAmWindow, SWT.BORDER);\r\n\t\tnachnameTF.setBounds(205, 41, 219, 25);\r\n\r\n\t\tLabel lblPlz = new Label(shlAmWindow, SWT.NONE);\r\n\t\tlblPlz.setBounds(124, 75, 75, 15);\r\n\t\tlblPlz.setText(\"PLZ\");\r\n\r\n\t\tLabel lblOrt = new Label(shlAmWindow, SWT.NONE);\r\n\t\tlblOrt.setBounds(124, 106, 75, 15);\r\n\t\tlblOrt.setText(\"Ort\");\r\n\r\n\t\tLabel lblStrasse = new Label(shlAmWindow, SWT.NONE);\r\n\t\tlblStrasse.setBounds(124, 137, 75, 15);\r\n\t\tlblStrasse.setText(\"Stra\\u00DFe\");\r\n\r\n\t\tLabel lblHausnummer = new Label(shlAmWindow, SWT.NONE);\r\n\t\tlblHausnummer.setText(\"Hausnummer\");\r\n\t\tlblHausnummer.setBounds(124, 168, 75, 15);\r\n\t\t\r\n\t\tplzTF = new Text(shlAmWindow, SWT.BORDER);\r\n\t\tplzTF.setBounds(205, 72, 219, 25);\r\n\t\t\r\n\t\tortTF = new Text(shlAmWindow, SWT.BORDER);\r\n\t\tortTF.setBounds(205, 103, 219, 25);\r\n\t\t\r\n\t\tstrasseTF = new Text(shlAmWindow, SWT.BORDER);\r\n\t\tstrasseTF.setBounds(205, 134, 219, 25);\r\n\t\t\r\n\t\thausnummerTF = new Text(shlAmWindow, SWT.BORDER);\r\n\t\thausnummerTF.setBounds(205, 165, 219, 25);\r\n\t\t\r\n\t\tButton btnSaveClean = new Button(shlAmWindow, SWT.NONE);\r\n\t\tbtnSaveClean.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tPerson p; // Variablen-Definiton\r\n\t\t\t\tp = new Person(); // Variablen-Instanz\r\n\t\t\t\t//\r\n\t\t\t\tp.setVorname(getVornameTF().getText());\r\n\t\t\t\tp.setNachname(getNachnameTF().getText());\r\n\t\t\t\tp.setOrt(getOrtTF().getText());\r\n\t\t\t\tp.setPlz(getPlzTF().getText());\r\n\t\t\t\tp.setStrasse(getStrasseTF().getText());\r\n\t\t\t\tp.setHausnummer(getHausnummerTF().getText());\r\n\t\t\t\t//\r\n\t\t\t\tSystem.out.println(p);\r\n\t\t\t\t//\r\n\t\t\t\tPerson.getPersonenListe().add(p);\r\n\t\t\t\t//\r\n\t\t\t\tSystem.out.println(\"-----\");\r\n\t\t\t\tSystem.out.println(\"Objekt: \");\r\n\t\t\t\tSystem.out.println();\r\n\t\t\t\t//\r\n\t\t\t\tSystem.out.println(\"-----\");\r\n\t\t\t\tSystem.out.println(\"Liste: \");\r\n\t\t\t\tSystem.out.println(Person.getPersonenListe());\r\n\t\t\t\t//\r\n\t\t\t\tgetVornameTF().setText(\"\");\r\n\t\t\t\tgetNachnameTF().setText(\"\");\r\n\t\t\t\tgetOrtTF().setText(\"\");\r\n\t\t\t\tgetPlzTF().setText(\"\");\r\n\t\t\t\tgetStrasseTF().setText(\"\");\r\n\t\t\t\tgetHausnummerTF().setText(\"\");\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnSaveClean.setBounds(0, 10, 108, 55);\r\n\t\tbtnSaveClean.setText(\"Save & Clean\");\r\n\t\t\r\n\t\tButton btnjson = new Button(shlAmWindow, SWT.NONE);\r\n\t\tbtnjson.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tFileDialog fd = new FileDialog(shlAmWindow, SWT.SAVE);\r\n\t\t\t\tfd.setFilterPath(System.getProperty(\"java.io.tmpdir\"));\r\n\t\t\t\tfd.setFilterNames(new String[] {\".json (Wpf-Inf-2018/19)\"});\r\n\t\t\t\tfd.setFilterExtensions(new String[] {\"*.json\"});\r\n\t\t\t\tString fileName = fd.open();\r\n\t\t\t\tif (fileName != null) {\r\n\t\t\t\t\t\r\n\t\t\t\t\t//\r\n\t\t\t\t\tGson gson = new GsonBuilder().setPrettyPrinting().create();\r\n\t\t\t\t\tgson.serializeNulls();\r\n\t\t\t\t\t//\r\n\t\t\t\t\tString jsonString = gson.toJson(Person.getPersonenListe());\r\n\t\t\t\t\tSystem.out.println(jsonString);\r\n\t\t\t\t\t//\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tFileWriter fw = new FileWriter(fileName);\r\n\t\t\t\t\t\tgson.toJson(Person.getPersonenListe(), fw);\r\n\t\t\t\t\t\tfw.flush();\r\n\t\t\t\t\t\tfw.close();\r\n\t\t\t\t\t\t//->im eplorer %TEMP%\r\n\t\t\t\t\t} catch (Exception ex) {}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnjson.setBounds(0, 75, 108, 55);\r\n\t\tbtnjson.setText(\"Export as JSON\");\r\n\t\t\r\n\t\tButton btnImportJson = new Button(shlAmWindow, SWT.NONE);\r\n\t\tbtnImportJson.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tFileDialog fd = new FileDialog(shlAmWindow, SWT.OPEN);\r\n\t\t\t\tfd.setFilterPath(System.getProperty(\"java.io.tmpdir\"));\r\n\t\t\t\tfd.setFilterNames(new String[] {\".json (Wpf-Inf-2018/19)\"});\r\n\t\t\t\tfd.setFilterExtensions(new String[] {\"*.json\"});\r\n\t\t\t\t//\r\n\t\t\t\tString fileName = fd.open();\r\n\t\t\t\tSystem.out.println(fileName);\r\n\t\t\t\t//\r\n\t\t\t\tif (fileName != null) {\r\n\t\t\t\t\tPerson.loadPersonenFromFile(fileName);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnImportJson.setBounds(0, 137, 108, 55);\r\n\t\tbtnImportJson.setText(\"Import JSON\");\r\n\r\n\t}", "title": "" }, { "docid": "605fbded07d13181a8ced83bb9a40fce", "score": "0.60646164", "text": "private static void createAndShowGUI() {\n\t //Create and set up the window.\n\t JFrame frame = new JFrame(\"ComboBoxDemo\");\n\t frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t \n\t //Create and set up the content pane.\n\t JComponent newContentPane = new ComboBoxDemo();\n\t newContentPane.setOpaque(true); //content panes must be opaque\n\t frame.setContentPane(newContentPane);\n\t \n\t //Display the window.\n\t frame.pack();\n\t frame.setVisible(true);\n\t }", "title": "" }, { "docid": "4c38c0eceeba709d615b0574a0eb3713", "score": "0.605514", "text": "public GameWindow() {\n\n\t\tsetUpWindow();\n\n\t\tResources resources = new Resources();\n\t\tgame = new Game(resources);\n\t\tmainMenu = new MainMenu(this);\n\t\tcp.add(mainMenu);\n\t\tsetVisible(true);\n\t}", "title": "" }, { "docid": "065b12db763a717b717e8df837a59cb2", "score": "0.60547495", "text": "public static void initApplicationPanel() {\n\t\tApplicationPanel main = new ApplicationPanel();\n\t\tString projectName;\n\n\t\tProject newProject = null;\n\n\t\ttry {\n\t\t\tnewProject = ShareFunctionalities.getSharedProject();\n\t\t} catch (FrameworkException e) {\n\t\t\tSC.warn(e.getLocalizedMessage());\n\t\t}\n\n\t\tif (newProject != null) {\n\t\t\tServices.getInstance().getProjectService().saveProject(newProject);\n\t\t} else {\n\n\t\t\tList<Project> projects = getProjectService().getAllProjects();\n\n\t\t\tif (projects == null || projects.size() == 0) {\n\t\t\t\tprojectName = DEFAULT_PROJECT_NAME;\n\t\t\t\tnewProject = getProjectService().newProject(projectName,\n\t\t\t\t\t\tDEFAUT_PROJECT_BUDGET);\n\t\t\t\tgetProjectService().addCategory(projectName, DEFAULT_CART_NAME,\n\t\t\t\t\t\tDEFAULT_CART_BUDGET);\n\t\t\t} else {\n\t\t\t\tnewProject = projects.get(0);\n\t\t\t}\n\t\t}\n\t\tmain.setProjectWidget(new ProjectWidget(newProject.getName()));\n\n\t\tmain.draw();\n\t}", "title": "" }, { "docid": "803da25c8ac8516c4988a7b7032933ef", "score": "0.6044853", "text": "private static void createAndShowGUI() {\n\t\t\r\n\t\ttry {\r\n\t\t\tUIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());\r\n\t\t} catch (ClassNotFoundException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (InstantiationException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (IllegalAccessException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (UnsupportedLookAndFeelException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t\t// Create and set up the window.\r\n\t\tHBaseSupportGuiStarter frame = new HBaseSupportGuiStarter();\r\n\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\r\n\t\t// Display the window.\r\n\t\tframe.setVisible(true);\r\n\t}", "title": "" }, { "docid": "e29287003592b4f5299125747a3c659c", "score": "0.6041319", "text": "public GUIWindow() {\n\t\tContainer cont = getContentPane();\n\t\tcont.add(grid);\n\t}", "title": "" }, { "docid": "3b3244548d841f439dde3e120cc6fb4e", "score": "0.6025381", "text": "private void initializeWindow() {\n\t\t\n\t\t// Add a special close event, required by lwjgl \n\t\twindow.addWindowListener(new WindowAdapter() {\n\t\t\t@Override\n\t\t\tpublic void windowClosing(WindowEvent e) {\n\t\t\t\tDisplay.destroy();\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\t\t});\n\t\tshowCurrentController();\n\t}", "title": "" }, { "docid": "e752f9facb27b827fd4073d87ff41596", "score": "0.6023763", "text": "private void setupGameWindow() {\n\t\tgameWindow = new JFrame(windowData.windowTitle);\n\t\t\n\t\tgameWindow.setMinimumSize(new Dimension(windowData.windowWidth, windowData.windowHeight));\n\t\tgameWindow.setPreferredSize(new Dimension(windowData.windowWidth, windowData.windowHeight));\n\t\tgameWindow.setResizable(windowData.resizable);\n\t\tgameWindow.setDefaultCloseOperation(windowData.closeOperation);\n\t\tgameWindow.setLocationRelativeTo(gameWindow.getRootPane());\n\t\t\n\t\tgameCanvas = new Canvas();\n\t\tgameCanvas.setPreferredSize(gameWindow.getPreferredSize());\n\t\t\n\t\tgameWindow.add(gameCanvas);\n\t\t\n\t\tgameWindow.pack();\n\t\tgameWindow.setVisible(true);\n\t\tgameWindow.setFocusable(false);\n\t\tgameCanvas.requestFocus();\n\t\t\n\t\tgameLoop = new GameLoop(this);\n\t\tgameThread = new Thread(gameLoop);\n\t\t\n\t\tinitListeners();\n\t\t\n\t\tgameThread.start();\n\t}", "title": "" }, { "docid": "f58e4376fabe5cef19849eacaa292fa1", "score": "0.6020348", "text": "public static void createJFrame()\n {\n //name of the window?\n frame = new JFrame(\"Luzhanqi\");\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n \n //initialize pane\n pane = frame.getContentPane();\n pane.setLayout(null);\n \n //create dimensions of the frame\n frame.setSize(FRAME_SIZE[0],FRAME_SIZE[1]);\n frame.setVisible(true);\n //continue setting up required images for displaying on the frame\n initializeBoard();\n }", "title": "" }, { "docid": "7c15dea1d56a428af1b2a398d68402d9", "score": "0.6019122", "text": "private void createWindow() {\n glfwSetErrorCallback(errorCallback = GLFWErrorCallback.createPrint(System.err));\n\n // Initialize GLFW. Most GLFW functions will not work before doing this.\n if (!glfwInit()) {\n throw new IllegalStateException(\"Unable to initialize GLFW\");\n }\n\n // Configure GLFW\n glfwDefaultWindowHints(); // optional, the current window hints are already the default\n glfwWindowHint(GLFW_VISIBLE, GLFW_FALSE); // the window will stay hidden after creation\n glfwWindowHint(GLFW_RESIZABLE, GLFW_TRUE); // the window will be resizable\n\n // Create the window\n this.id = glfwCreateWindow(\n width,\n height,\n title,\n fullscreen ? glfwGetPrimaryMonitor() : NULL,\n NULL\n );\n if (id == NULL) {\n throw new RuntimeException(\"Failed to create the GLFW window\");\n }\n\n this.windowInputHandler = new InputHandler(id);\n this.cursorHandler = new CursorHandler(currentWidth(), currentHeight());\n\n // Setup a key callback. It will be called every time a key is pressed, repeated or released.\n glfwSetKeyCallback(id, (window, key, scancode, action, mods) -> {\n if (key == GLFW_KEY_ESCAPE && action == GLFW_RELEASE) {\n glfwSetWindowShouldClose(window, true); // We will detect this in the rendering loop\n }\n });\n\n glfwSetCursorPosCallback(id, cursorHandler);\n\n // Get the thread stack and push a new frame\n try (MemoryStack stack = stackPush()) {\n IntBuffer pWidth = stack.mallocInt(1); // int*\n IntBuffer pHeight = stack.mallocInt(1); // int*\n\n // Get the window size passed to glfwCreateWindow\n glfwGetWindowSize(id, pWidth, pHeight);\n\n // Get the resolution of the primary monitor\n GLFWVidMode videoMode = glfwGetVideoMode(glfwGetPrimaryMonitor());\n\n // Center the window\n if (!fullscreen) {\n glfwSetWindowPos(\n id,\n (videoMode.width() - pWidth.get(0)) / 2,\n (videoMode.height() - pHeight.get(0)) / 2\n );\n }\n } // the stack frame is popped automatically\n\n // Make the OpenGL context current\n glfwMakeContextCurrent(id);\n\n // This line is critical for LWJGL's interoperation with GLFW's\n // OpenGL context, or any context that is managed externally.\n // LWJGL detects the context that is current in the current thread,\n // creates the GLCapabilities instance and makes the OpenGL\n // bindings available for use.\n // Make the OpenGL context current\n GL.createCapabilities();\n\n // Enable v-sync\n glfwSwapInterval(1);\n\n // Make the window visible\n glfwShowWindow(id);\n }", "title": "" }, { "docid": "8fd01a34a13a1a7baa4c6973c39c2fd9", "score": "0.60160065", "text": "public Window()\n {\n setSize(1000,300); //\n setTitle(\"Furnace Simulation\");\n setDefaultCloseOperation(EXIT_ON_CLOSE);\n setLocation(500,500); \n createPanel();\n add(panel);\n setVisible(true);\n }", "title": "" }, { "docid": "56c45daa57ccc7dddd93e410e3bc646b", "score": "0.60112035", "text": "void createGUI() {\n UIManager.put( \"swing.boldMetal\", Boolean.FALSE );\n\n _frame = new JFrame( \"Order Ticket\" );\n _frame.setDefaultCloseOperation( JFrame.EXIT_ON_CLOSE );\n\n setOpaque( true ); // content panes must be opaque\n _frame.setContentPane( this );\n\n _frame.pack();\n\n _frame.setLocationRelativeTo( null );\n\n setVisible( false );\n }", "title": "" }, { "docid": "37a3093b1ae97adc5573297634e6a4d1", "score": "0.60043466", "text": "private static void createAndShowGUI() {\n JFrame frame = new JFrame(\"ELKO\");\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n TextToSpeech tts = new TextToSpeech();\n\n //Set up the content pane.\n addComponentsToPane(frame.getContentPane(), tts);\n //addCategoriesToPane(frame.getContentPane());\n\n //Display the window.\n frame.pack();\n frame.setVisible(true);\n }", "title": "" }, { "docid": "e2a24464600720256501640bc5ec1488", "score": "0.5994775", "text": "private void create() {\n f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n // Add a layout manager so that the button is not placed on top of the label\n f.setLayout(new FlowLayout());\n // Add a label and a button\n f.add(label);\n f.add(button);\n\n //add the actionlistener for the button!\n button.addActionListener(this);\n\n // Arrange the components inside the window\n f.pack();\n // By default, the window is not visible. Make it visible.\n f.setVisible(true);\n }", "title": "" }, { "docid": "63dca5778311f80b5ca955ca1b2d103d", "score": "0.59671503", "text": "private void initWindow() {\n super.setSize(800, 800);\n super.setVisible(true);\n super.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n super.setTitle(\"Serial number --- \" + currentPhone.getSerialNumber());\n }", "title": "" }, { "docid": "c1ccb4b860f770684102e3cf4e56c975", "score": "0.59637994", "text": "public void createGUI() {\n\t\tframe = new JFrame();\n\n\t\tlbl = new JLabel(\"Add to FavCarList sucessfully!\", JLabel.CENTER);\n\t\tlbl.setBounds(80, 100, 150, 50);\n\n\t\tokButton = new JButton(\"Yes\");\n\t\tokButton.setBounds(100, 130, 80, 40);\n\t\tokButton.addActionListener(this);\n\n\t\tframe.add(okButton);\n\t\tframe.add(lbl);\n\t\tframe.setSize(300, 200);\n\t\tframe.setLocationRelativeTo(null);\n\t\tframe.setVisible(true);\n\n\t}", "title": "" }, { "docid": "f65b18f67b82c29ca3768debfc616220", "score": "0.596278", "text": "@Override\n\tpublic void create() {\n\t\tAppSettings.setUp();\n\t\t\n\t\t//If the Application is launched for the first time, create preferences to store game data such as Array of top 5\n\t\t//Highscores, timer mode and sound settings\n\t\t\n\t\tif(SettingsManager.isFirstLaunch()){\n\t\t\tSettingsManager.setFirstLaunchDone(true);\n\t\t\tMtxLogger.log(true, true, \"LAUNCH\", \"THIS IS FIRST LAUNCH\");\n\t\t\tGameData.createPrefs();\n\t\t\tGameData.saveLevelInfo();\n\t\t}\n\t\telse{\n\t\t\tMtxLogger.log(true, true, \"LAUNCH\", \"THIS IS NOT FIRST LAUNCH\");\n\t\t\tif(GameData.prefs == null)\n\t\t\tGameData.createPrefs();\n\t\t}\n\t\t\n\t\t// Load assets before setting the screen\n\t\t// #####################################\n\t\tAssets.loadAll();\n\t\n\t\t// Set up the main menu screen\n\t\t// #####################################\n\t\tsetScreen(new MainMenuScreen(this, \"MainMenu Screen\"));\n\t}", "title": "" }, { "docid": "2115ef62d727ab47395e3ce798c23945", "score": "0.5959887", "text": "public Application() {\r\n\t\tblv.swing.SplashScreen splashFrame = null;\r\n\t\ttry {\r\n\t\t\tsplashFrame = blv.swing.SplashScreen.createSplashScreen(\"Images/JavaShare.gif\");\r\n\t\t} catch (NoClassDefFoundError ncdfe){\r\n\t\t}\r\n\t\tMainFrame mainFrame = new MainFrame();\r\n\t\t\r\n\t\tmainFrame.show();\r\n\t\t\r\n\t\tif (splashFrame != null){\r\n\t\t\tsplashFrame.dispose();\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "6076f0a91e7164929432baefe64fca0d", "score": "0.59562707", "text": "private void setWindowSettings() {\r\n\t\tsetDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t// This makes the window open in the top right hand corner on launch\r\n\t\tsetBounds((int) screenSize.getWidth()- WINDOW_WIDTH-7 , 7, WINDOW_WIDTH, WINDOW_HEIGHT);\r\n\t\t\r\n\t\tcontentPane = new JPanel();\r\n\t\tcontentPane.setBorder(new EmptyBorder(5, 5, 5, 5));\r\n\t\tsetContentPane(contentPane);\r\n\t\tcontentPane.setLayout(null);\r\n\t\tsetResizable(false);\r\n\t\t\r\n\t\t// Change application icon from default Java icon to logo\r\n\t\ttry {\r\n\t Image logo = ImageIO.read(new File(ICON_FILE_PATH));\r\n\t setIconImage(logo);\r\n\t } catch (IOException e) {\r\n\t \t e.printStackTrace();\r\n\t }\r\n\t\ttry {\r\n\t\t\tImage img = ImageIO.read(new File(ICON_FILE_PATH));\r\n\t\t\t// Title banner at top of window\r\n\t\t\tJLabel lblTitle = new JLabel(\"Evaluation Template Generator\");\r\n\t\t\tlblTitle.setHorizontalAlignment(SwingConstants.LEFT);\r\n\t\t\tlblTitle.setBounds(20, 13, 320, 61);\r\n\t\t\tlblTitle.setFont(new Font(\"Arial Bold\", Font.PLAIN, 15));\r\n\t \t\tlblTitle.setIcon(new ImageIcon(img));\r\n\t \t\tcontentPane.add(lblTitle);\r\n\t } catch (IOException e) {\r\n\t \t e.printStackTrace();\r\n\t }\r\n\t\t\r\n\t\t\r\n\t}", "title": "" }, { "docid": "9212ee7471cd93d59712d9a7a5022e67", "score": "0.5955941", "text": "private void createDisplay() {\n frame = new JFrame(title);\n frame.setSize(width, height);\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); // End the game by pressing the cross.\n frame.setResizable(false); // Prevents resizing of the window.\n frame.setLocationRelativeTo(null); // Positioning the window in the center of the screen.\n frame.setVisible(true); // Defines the visibility of the cadre at the screen.\n\n canvas = new Canvas();\n // Preferred, maximum and minimum canvas sizes.\n canvas.setPreferredSize(new Dimension(width, height));\n canvas.setMaximumSize(new Dimension(width, height));\n canvas.setMinimumSize(new Dimension(width, height));\n canvas.setFocusable(false); // Important! The only thing that a forum can have is this application.\n\n frame.add(canvas); // Adding a canvas to a frame.\n frame.pack(); // Resizes the frame to the smallest possible size.\n }", "title": "" }, { "docid": "4ffa4da6ffecfb0dcac61a790c87ab69", "score": "0.5952178", "text": "private void launchWinDialogue() {\r\n\t\t//Build up alert Dialog\r\n\t\tbuilder = new AlertDialog.Builder(this);\r\n\t\tbuilder.setTitle(getResources().getString(R.string.winTitle)); //TODO can this be reduced in size?\r\n\t\tbuilder.setMessage(getResources().getString(R.string.winMessage)); //TODO can this be reduced in size?\r\n\t\tbuilder.setPositiveButton(getResources().getString(R.string.winButton), new DialogInterface.OnClickListener() {\t\r\n\t\t\t@Override\r\n\t\t\tpublic void onClick(DialogInterface dialog, int which) {\r\n\t\t\t\tdialog.dismiss(); //Dismiss the dialog window when ok button is clicked\t\r\n\t\t\t}\r\n\t\t});\r\n\t\t// Create the AlertDialog object and display it.\r\n\t\tAlertDialog dialog = builder.create();\r\n\t\tdialog.show();\r\n\t}", "title": "" }, { "docid": "57f0022697140b18a73576cc302e3b99", "score": "0.59495604", "text": "private void setupWindowArea(){\r\n // Configures return button\r\n this.jb_return = Utils.createJComponent(16, 16, 32, 32, \r\n new ImageIcon(\"images/return_button.png\"), this, \"return\");\r\n this.jp.add(this.jb_return);\r\n \r\n // Configures close button\r\n this.jb_close = Utils.createJComponent(Utils.width - 48, 16, 32, 32, \r\n new ImageIcon(\"images/close_button.png\"), this, \"close\");\r\n this.jp.add(this.jb_close);\r\n \r\n // Configures logout button\r\n this.jb_logout = Utils.createJComponent(Utils.width - 90, 16, 32, 32,\r\n new ImageIcon(\"images/logout_button.png\"), this, \"logout\");\r\n this.jp.add(this.jb_logout);\r\n }", "title": "" }, { "docid": "57f0022697140b18a73576cc302e3b99", "score": "0.59495604", "text": "private void setupWindowArea(){\r\n // Configures return button\r\n this.jb_return = Utils.createJComponent(16, 16, 32, 32, \r\n new ImageIcon(\"images/return_button.png\"), this, \"return\");\r\n this.jp.add(this.jb_return);\r\n \r\n // Configures close button\r\n this.jb_close = Utils.createJComponent(Utils.width - 48, 16, 32, 32, \r\n new ImageIcon(\"images/close_button.png\"), this, \"close\");\r\n this.jp.add(this.jb_close);\r\n \r\n // Configures logout button\r\n this.jb_logout = Utils.createJComponent(Utils.width - 90, 16, 32, 32,\r\n new ImageIcon(\"images/logout_button.png\"), this, \"logout\");\r\n this.jp.add(this.jb_logout);\r\n }", "title": "" }, { "docid": "77afe0ac5db7222394026aa64fa75556", "score": "0.59382844", "text": "public IWindowManager create() {\n return IWindowManager.Stub.asInterface(ServiceManager.getService(AppAssociate.ASSOC_WINDOW));\n }", "title": "" }, { "docid": "9d9c55af08f171f4f822eaeb171698f5", "score": "0.59368294", "text": "private UserConfigs createConfigWindow() {\n // instantiate the config window\n UserConfigs configWin = new UserConfigs(this, true, userPrefs, defaultDPIValue, gc.isExistsScribbleObj());\n\n // add observer\n configWin.addObserver(this);\n\n return configWin;\n }", "title": "" }, { "docid": "c7e4e1d4a2eb291819d281f99f71c4de", "score": "0.5931363", "text": "void createAndShowGUI() {\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\r\n //Set up the content pane.\r\n addComponentsToPane(frame.getContentPane());\r\n\r\n //Display the window.\r\n frame.pack();\r\n frame.setResizable(false);\r\n frame.setLocation(250,75);\r\n frame.setVisible(true);\r\n }", "title": "" }, { "docid": "06d22ba85a8008a5739b172387faa351", "score": "0.5922997", "text": "public JFrame createFrame() {\n\t\tJFrame frame = new JFrame();\n\t\tframe.setUndecorated(true);\n\t\tframe.getRootPane().setWindowDecorationStyle(JRootPane.FRAME);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tframe.setTitle(\"Easy-PID Smart Controller Design\");\n\t\tframe.setIconImage(Assets.loadImageIcon(\"logo.png\").getImage());\n\n\t\treturn frame;\n\t}", "title": "" }, { "docid": "3aa8bb704b8e09dcacd3eb4c2179fd54", "score": "0.59194994", "text": "public static void BuildRegisterWindow()\n\t{\n\t\tRegisterWindow.setTitle(\"Register\");\n\t\tRegisterWindow.setSize(300,200);\n\t\tRegisterWindow.setLocation(500, 280);\n\t\tRegisterWindow.setResizable(false);\n\n\t\tL_RegisterUserName.setBounds(10,30,150,20);\n\t\tTF_RegisterUserName.setBounds(80,30,150,20);\n\t\t\n\t\tL_RegisterPassword.setBounds(10,65,150,20);\n\t\tTF_RegisterPassword.setBounds(80,65,150,20);\n\t\t\n\t\tP_Register = new JPanel();\n\t\tP_Register.add(L_RegisterUserName);\n\t\tP_Register.add(TF_RegisterUserName);\n\t\tP_Register.add(L_RegisterPassword);\n\t\tP_Register.add(TF_RegisterPassword);\n\t\tP_Register.add(B_Confirm);\n\t\tP_Register.add(B_Cancel);\n\t\tRegisterWindow.add(P_Register);\n\t\t\n\t\tregister_Close();\n\t\tLoginWindow.setVisible(false);\n\t\tRegisterWindow.setVisible(true);\n\t}", "title": "" }, { "docid": "ef6db2c2546be2fe6963624627b6d8a1", "score": "0.5918954", "text": "public static void main(String[] args) {\r\n new WindowUI();\r\n }", "title": "" }, { "docid": "8f8701408e3ab1b3137e95a556adaec5", "score": "0.5913792", "text": "public void createAndShowWindow(boolean gameFinished) {\r\n\t\t\r\n\t\tsetBackground(Color.GRAY);\r\n\t\tsetMaximumSize(new Dimension(100,50));\r\n\t\t\r\n\t\tif (!gameFinished) {\t\t\t\t\t//if its a normal window\r\n\t\t\tsetLayout(new GridLayout(4,1,20,20));\r\n\t\t\tJButton resume = new JButton(\"Resume\");\t\tJButton theme = new JButton(\"Change Theme\");\r\n\t\t\tResume r = new Resume(mainFrame);\t\t\tChangeTheme c = new ChangeTheme(mainFrame);\r\n\t\t\tresume.addActionListener(r);\t\t\t\ttheme.addActionListener(c);\r\n\t\t\tadd(resume);\t\t\t\t\t\t\t\tadd(theme);\t\t\r\n\t\t\tresume.setBackground(Color.LIGHT_GRAY);\t\ttheme.setBackground(Color.LIGHT_GRAY);\r\n\t\t}\r\n\t\telse {\t\t\t\t\t\t\t\t\t//if its a game end window\r\n\t\t\tsetLayout(new GridLayout(3,1,20,20));\r\n\t\t\tJLabel congrats = new JLabel(\"Congratulations!! You have solved the puzzle!\");\r\n\t\t\tcongrats.setHorizontalAlignment(0); \tcongrats.setForeground(Color.CYAN); \r\n\t\t\tcongrats.setFont(new Font(\"Courier New\", Font.BOLD, 15));\r\n\t\t\tadd(congrats);\t\t\r\n\t\t}\r\n\t\t\r\n\t\tQuit q = new Quit();\tNewGame ng = new NewGame(mainFrame);\t\t//Initialize action listeners\r\n\t\tJButton newGame = new JButton(\"New Game\");\t\tJButton quit = new JButton(\"Quit\");\t//Buttons\r\n\t\tnewGame.addActionListener(ng);\tquit.addActionListener(q);\t\t\t//Added action listeners\r\n\t\tadd(newGame);\t\tadd(quit);\t\t\t\t\t\t\t\t\t\t//added on to the panel\r\n\t\tnewGame.setBackground(Color.LIGHT_GRAY); \t\tquit.setBackground(Color.LIGHT_GRAY);\t\r\n\t}", "title": "" }, { "docid": "9a54ebc0190f2247f6252a3336a77c64", "score": "0.5912272", "text": "private void createWindow(){\n //The goal of the createLabel method over here is to create a margin of 10 \n //corresponding to the size of the components\n add(createLabel(), BorderLayout.NORTH); // calls createLabel to north\n add(createLabel(), BorderLayout.WEST); //calls createLabel to west\n add(createLabel(), BorderLayout.EAST); //calls createLabel to east\n add(createLabel(), BorderLayout.SOUTH); //calls createLabel to South\n JPanel panel = new JPanel(new BorderLayout());// panel, an instance of JPanel with a layout manager initilized\n panel.add(createTop(), BorderLayout.NORTH);// places createTop at the north of panel \n panel.add(createBottom(), BorderLayout.SOUTH);//places createBottom at the north of panel\n panel.add(createCenter());\n add(panel); //places panel in the center of the window before adding createTop,Bottom,andCenter methods\n }", "title": "" }, { "docid": "558a3c2f2e3f9d5d0f91b28a23c6e6d0", "score": "0.59084636", "text": "private void createJFrame()\n {\n\tframe = new JFrame();\n\tframe.getContentPane().setFont(new Font(\"Tahoma\", Font.PLAIN, 30));\n\tframe.setBounds(100, 100, 500, 200);\n\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n }", "title": "" }, { "docid": "cfc1ffb246e53fc4570073a8e073cd66", "score": "0.58996695", "text": "private static void createAndShowGUI() {\n //Create and set up the window.\n JFrame frame = new JFrame(\"ColorChooserDemo\");\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n //Create and set up the content pane.\n JComponent newContentPane = new ColorChooserDemo();\n newContentPane.setOpaque(true); //content panes must be opaque\n frame.setContentPane(newContentPane);\n\n //Display the window.\n frame.pack();\n frame.setVisible(true);\n }", "title": "" } ]
25197b4cf814864ecd440f23b9149cb3
TODO Autogenerated method stub
[ { "docid": "4f809ff3de2eeee9ef2603d5a51c322d", "score": "0.0", "text": "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tpracTest3.setLinkTextColor(getResources().getColor(R.color.magenta));\n\t\t\t\tprogressBar=(ProgressBar) findViewById(R.id.progressBar);\n\t\t\t\tprogressCount+=25;\n\t\t\t\tprogressBar.setProgress(progressCount);\n\t\t\t\t\n\t\t\t}", "title": "" } ]
[ { "docid": "9208773f8d675a45ef2786d0cb668514", "score": "0.654538", "text": "@Override\n\tpublic void addiion() {\n\t\t\n\t}", "title": "" }, { "docid": "80d20df1cc75d8fa96c12c49a757fc43", "score": "0.65323734", "text": "@Override\n\tprotected void getExras() {\n\t\t\n\t}", "title": "" }, { "docid": "5d259e9a9ed31ac29902b25db191acd1", "score": "0.6490277", "text": "@Override\n\tpublic void bewegen() {\n\t\t\n\t}", "title": "" }, { "docid": "49f82de84791f2d90dd9ea5cce118bf5", "score": "0.6314085", "text": "@Override\r\n\tpublic void ader() {\n\t\t\r\n\t}", "title": "" }, { "docid": "1f7c82e188acf30d59f88faf08cf24ac", "score": "0.623686", "text": "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "title": "" }, { "docid": "10ead2e988bf977cb8edb2bacf974891", "score": "0.61546874", "text": "@Override\n\tprotected void init() {\n\t\t\n\t}", "title": "" }, { "docid": "10ead2e988bf977cb8edb2bacf974891", "score": "0.61546874", "text": "@Override\n\tprotected void init() {\n\t\t\n\t}", "title": "" }, { "docid": "10ead2e988bf977cb8edb2bacf974891", "score": "0.61546874", "text": "@Override\n\tprotected void init() {\n\t\t\n\t}", "title": "" }, { "docid": "a4dcc093d4ff3452de6ac444aececdf1", "score": "0.61316955", "text": "public void ausgabeZugFiguren() {\n\t\t\t\r\n\t\t}", "title": "" }, { "docid": "9144a32a2cd5a72f1d1380aa1f1d5f09", "score": "0.6092728", "text": "public void mo5774g() {\n }", "title": "" }, { "docid": "19def8ee9a9cacfd168fa29cb08dcee2", "score": "0.6080876", "text": "@Override\n\tpublic void vaccination()\n\t{\n\t\t// TODO Auto-generated method stub\n\t\t\n\t}", "title": "" }, { "docid": "67e1a422c8d1e74f6601c8a6d1aaa237", "score": "0.6071615", "text": "@Override\n\tpublic void apagar() {\n\n\t}", "title": "" }, { "docid": "99bd004e44dd7019c8ef01a44a9b3eab", "score": "0.6067535", "text": "@Override\r\n\tpublic void breah() {\n\t\t\r\n\t}", "title": "" }, { "docid": "e90bb5928accbf89387d2613629ce52f", "score": "0.60653234", "text": "public void mo5201a() {\n }", "title": "" }, { "docid": "e90bb5928accbf89387d2613629ce52f", "score": "0.60653234", "text": "public void mo5201a() {\n }", "title": "" }, { "docid": "04771723ee2c07e5fa5fe8c322190beb", "score": "0.60607964", "text": "@Override\n\tpublic void affichage() {\n\t\t\n\t}", "title": "" }, { "docid": "5c8e848472fb111129ff96ea7e3eea3d", "score": "0.605578", "text": "@Override\n public void pintar() {\n \n }", "title": "" }, { "docid": "5c8e848472fb111129ff96ea7e3eea3d", "score": "0.605578", "text": "@Override\n public void pintar() {\n \n }", "title": "" }, { "docid": "db1df23a1dd6753a6267bb04b332bf85", "score": "0.6054585", "text": "public void mo12026a() {\n }", "title": "" }, { "docid": "e46610ee0bd6f029738af766fdc21054", "score": "0.59955573", "text": "@Override\r\n\tpublic void vender() {\n\r\n\t}", "title": "" }, { "docid": "d0738cb6f0934e8c2706f8cceaa57916", "score": "0.5969007", "text": "@Override\r\n\tpublic void init() {\r\n\t\t\r\n\t}", "title": "" }, { "docid": "15d6b98b279429b150a682bd6349a355", "score": "0.59551615", "text": "@Override\n\tpublic void fertilise() {\n\t\t\n\t}", "title": "" }, { "docid": "cce0c669162940d6a1e5e611c61410b3", "score": "0.59530795", "text": "@Override\r\n\tpublic void getDirect() {\n\t\t\r\n\t}", "title": "" }, { "docid": "8c3354ae13a827b8d836df56c4c510d8", "score": "0.59508646", "text": "@Override\n protected void init() {\n\n\n }", "title": "" }, { "docid": "16a4669a2213802ac94829fc8d9946ff", "score": "0.5935938", "text": "@Override\n\t\tpublic void init() {\n\t\t\t\n\t\t}", "title": "" }, { "docid": "b9e40f8e651069ba40a35ef1db458ce9", "score": "0.59202784", "text": "@Override\r\n\tpublic void tyres() {\n\t\t\r\n\t}", "title": "" }, { "docid": "cad86041007c052466e6525bc7dcd8c8", "score": "0.5901697", "text": "@Override\r\n\tpublic void trasation() {\n\t\t\r\n\t}", "title": "" }, { "docid": "5d9f4634054e808deccea8846817de31", "score": "0.588331", "text": "@Override\r\n\tpublic void vola() {\n\t\t\r\n\t}", "title": "" }, { "docid": "d0b7e3f5544447dc12bf9d1bad50a34b", "score": "0.5864994", "text": "public void mo40391a() {\n }", "title": "" }, { "docid": "ff6eb8b61c178f23b971412958c256c8", "score": "0.58641464", "text": "@Override\n\tpublic void ate() {\n\t\t\n\t}", "title": "" }, { "docid": "c64411f2d7b4359b656294e598122466", "score": "0.58560646", "text": "public void mo1294d() {\n }", "title": "" }, { "docid": "d29a027cc93fdf42445fadb149d49da1", "score": "0.5855024", "text": "public void mo1184a() {\n }", "title": "" }, { "docid": "a672d2d2a4b7bb037f7f20d62ff1f55e", "score": "0.5849603", "text": "@Override\n\tpublic void ss() {\n\t\t\n\t}", "title": "" }, { "docid": "e04f934fbe00df663fa9d5d545a1a729", "score": "0.5842969", "text": "@Override\n public void sporcuPuaniGoster() {\n\n }", "title": "" }, { "docid": "d48ac35465c27e31c1f21be54513f8f9", "score": "0.58330834", "text": "@Override\r\n\tpublic void pirntA() {\n\r\n\t}", "title": "" }, { "docid": "ad7fe50be28bd3c3d7952d71f935957c", "score": "0.5829554", "text": "@Override\n\t\t\tpublic void work() {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "d1236089c8974701d0acd37b2cad6d5b", "score": "0.5809914", "text": "@Override\n\tpublic void init(){\n\t\t\n\t}", "title": "" }, { "docid": "63519e7beede7b06dcebbca99514f5c5", "score": "0.57981986", "text": "@Override\n\tprotected void salirsePorXIzq() {\n\t\t\n\t}", "title": "" }, { "docid": "5783648f118108797828ca2085091ef9", "score": "0.5793788", "text": "@Override\n protected void initialize() {\n \n }", "title": "" }, { "docid": "beee84210d56979d0068a8094fb2a5bd", "score": "0.5792378", "text": "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "title": "" }, { "docid": "bcd5f0b16beb225527894894dcaf774f", "score": "0.5789414", "text": "@Override\n\tprotected void update() {\n\t\t\n\t}", "title": "" }, { "docid": "54b1134554bc066c34ed30a72adb660c", "score": "0.57844025", "text": "@Override\n\tprotected void initData() {\n\n\t}", "title": "" }, { "docid": "54b1134554bc066c34ed30a72adb660c", "score": "0.57844025", "text": "@Override\n\tprotected void initData() {\n\n\t}", "title": "" }, { "docid": "54b1134554bc066c34ed30a72adb660c", "score": "0.57844025", "text": "@Override\n\tprotected void initData() {\n\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "53519f34ca6dc9b2249e5bf2a0182992", "score": "0.5762815", "text": "@Override\n\tpublic void Avanzar() {\n\t\t\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.575025", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.575025", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.575025", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "d92a1f963aafb73b8192e677b33d128f", "score": "0.57472074", "text": "@Override\n\tpublic void postConstruct() {\n\n\t}", "title": "" }, { "docid": "e3fcb762f77cfc9168a1bc0d865ded42", "score": "0.574678", "text": "@Override\n\tprotected void crier() {\n\t\t\n\t}", "title": "" }, { "docid": "770cd968ebdff1a71e678a800372d8c6", "score": "0.57460904", "text": "@Override\r\n\tpublic void afisareDatepers() {\n\t\t\r\n\t}", "title": "" }, { "docid": "260bb3e9c481a3e03724071c87239711", "score": "0.574225", "text": "private void m11272q() {\n }", "title": "" }, { "docid": "c13e6a1b7c130afa9fb0f34225bea4ef", "score": "0.573645", "text": "protected void mo1555b() {\n }", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57337177", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57337177", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57337177", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57337177", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57337177", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "28872bba7a5c17cad13c73f21624cabc", "score": "0.57069", "text": "@Override\n\tpublic void CreateRs() {\n\t\t\n\t}", "title": "" }, { "docid": "3c6f91c038ca7ffdab72b5c233b827c5", "score": "0.5705329", "text": "@Override\n\tprotected void initMethod() {\n\t}", "title": "" }, { "docid": "3d6cdc1afb7138b4083b3a4a65f01db1", "score": "0.5702478", "text": "public void mo10296b() {\n }", "title": "" }, { "docid": "45fd99bd8793c6d67c4f276a27b4fdca", "score": "0.5685153", "text": "@Override public int getDefensa(){\n\n return 0;\n\n }", "title": "" }, { "docid": "9d551589ec00d7b16a77df7a4d54caae", "score": "0.5683637", "text": "@Override\n public void init()\n {\n\n }", "title": "" }, { "docid": "cc07b6e925fefd34942bfb2fd21e818a", "score": "0.56719893", "text": "public void ausgabeFiguren() {\n\t\t\t\r\n\t\t}", "title": "" }, { "docid": "f5766311eecc43fe076ad8e87f995b64", "score": "0.56654924", "text": "@Override\r\n\tvoid erstelleGebäude() {\n\t\t\r\n\t}", "title": "" }, { "docid": "9b8a44f27329437a5b3f89427b894c91", "score": "0.56609863", "text": "public void mo36058a() {\n }", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5655942", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5655942", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5655942", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "3a2534d5fb04e020e5849904bbe4720a", "score": "0.56515974", "text": "@Override\r\n\tprotected void geJiage() {\n\t\tsuper.geJiage();\r\n\t}", "title": "" }, { "docid": "02e1bc278c2b2caf23edb429d02b85c0", "score": "0.56482685", "text": "@Override\n\tprotected void initialise() {\n\t\n }", "title": "" }, { "docid": "18c7036dd108c40b7a27469d8b92687c", "score": "0.5642345", "text": "@Override\n\tpublic void onLoadComplete() {\n\t\t\n\t}", "title": "" }, { "docid": "674d6b47736013d84190eed15130aad6", "score": "0.5641662", "text": "@Override\n\tpublic void obtenerPrecalculados() {\n\t\t\n\t}", "title": "" }, { "docid": "6754b5dbf617cd4b6315568f4ba45bc3", "score": "0.56412077", "text": "@Override\n protected void initialize() {}", "title": "" }, { "docid": "6754b5dbf617cd4b6315568f4ba45bc3", "score": "0.56412077", "text": "@Override\n protected void initialize() {}", "title": "" }, { "docid": "0ba831513140db25039c80559d16603f", "score": "0.5636391", "text": "@Override\n \tpublic void process_6() {\n \n \t}", "title": "" }, { "docid": "af9170e83e6f26bfa1f5e7b9cdbc491a", "score": "0.5623968", "text": "@Override\r\n public void initData() {\n\r\n }", "title": "" }, { "docid": "af9170e83e6f26bfa1f5e7b9cdbc491a", "score": "0.5623968", "text": "@Override\r\n public void initData() {\n\r\n }", "title": "" }, { "docid": "eb2ec3c736f6af0e79bde71492b6d2dd", "score": "0.56177896", "text": "@Override\n public int arność() {\n return 2;\n }", "title": "" }, { "docid": "870d28e8c0326c2e585508a88499e108", "score": "0.5607548", "text": "private void init() {\n\t\t\t\t\n\t\n\t}", "title": "" }, { "docid": "b78de853138b4d1a9183420c6cd735cc", "score": "0.56050456", "text": "@Override\n public void init() {\n\n }", "title": "" }, { "docid": "b78de853138b4d1a9183420c6cd735cc", "score": "0.56050456", "text": "@Override\n public void init() {\n\n }", "title": "" }, { "docid": "d69d82cd185340d978c1a70fb66c01db", "score": "0.560443", "text": "public void mo5773f() {\n }", "title": "" }, { "docid": "ccba64a54b47095e22d528bff878aff1", "score": "0.5600534", "text": "@Override\r\n public String toString()\r\n {\n return null;\r\n }", "title": "" }, { "docid": "c1e6f049bd0a6f8cdd055f88f3b45eaa", "score": "0.5596128", "text": "public void mo80311c() {\n }", "title": "" }, { "docid": "bc4c805ce86377a96c35c50ef04ab983", "score": "0.55958176", "text": "@Override\n\tprotected void initAfterData() {\n\t}", "title": "" }, { "docid": "0d47d46f06beb83b10147b5efbda9e6b", "score": "0.55933857", "text": "@Override\r\n\tpublic void see() {\n\t\t\r\n\t}", "title": "" }, { "docid": "1d69f38b94702675a7a6d7b4ca002e6d", "score": "0.5592467", "text": "@Override\n\tpublic void init()\n\t{\n\n\t}", "title": "" }, { "docid": "822226d86d7514db3081754cf8a8d3b3", "score": "0.55916166", "text": "@Override\n\t\tpublic void rest() {\n\t\t\t\n\t\t}", "title": "" }, { "docid": "fb9a873c01eb354c85aac7a220fbaac2", "score": "0.5588414", "text": "@Override\r\n\tprotected void doF6() {\n\t\t\r\n\t}", "title": "" }, { "docid": "c47723cc77bfdfbeac347959926f9a12", "score": "0.55856144", "text": "@Override\n protected void initialize() {\n\n }", "title": "" } ]
084692faf506b099c2054b2470ebbf16
/ distance from Sun to observer (au)
[ { "docid": "3cafa7fcb123d12e0447c8068d9e333f", "score": "0.0", "text": "@Field(3) \n\tpublic iauASTROM em(double em) {\n\t\tthis.io.setDoubleField(this, 3, em);\n\t\treturn this;\n\t}", "title": "" } ]
[ { "docid": "2d6f849de314bb21935aa1d30d865522", "score": "0.6688842", "text": "private double D()\n {\n return orbitalElements.meanLongitude() - orbElSun.meanLongitude();\n }", "title": "" }, { "docid": "9e1ee5c95efe5f9ec5453a8118aef5af", "score": "0.5942645", "text": "static double calcDist(double time){\n double dist;\n dist = 0.5 * Acceleration * time * time;\n return dist;\n }", "title": "" }, { "docid": "ed1993acb62663f7d0b884a987e849d4", "score": "0.58856237", "text": "public int getSunPoints() {\n\t\treturn sunPoints;\n\t}", "title": "" }, { "docid": "5bef617ef7512adf942ff38bcd1ccf3c", "score": "0.57517886", "text": "private static double calculateDistance(double dx, double dy) {\n\n \n }", "title": "" }, { "docid": "e503da261935f0e660b637257d12c1d7", "score": "0.56900275", "text": "double getWind();", "title": "" }, { "docid": "6c05f0371ed3f44f761e9a9e8fcc0059", "score": "0.5677582", "text": "public double distanceToCoordinateCenter() {\n\t\treturn Math.sqrt((loc.getX() * loc.getX()) + (loc.getY() * loc.getY()));//Calculating distance between orjin to coordiante system.\n\t}", "title": "" }, { "docid": "8fbde624b92571c4df979fa48a8837d9", "score": "0.5669935", "text": "public float getDistance(){\n\t if (distance == 0) {\n\t float tourDistance = 0;\n\t // Loop through our tour's cities\n\t for (int cityIndex=0; cityIndex < tourSize()-1; cityIndex++) {\n\t // Get city we're travelling from\n\t Urgence fromCity = getUrgence(cityIndex);\n\t // City we're travelling to\n\t Urgence destinationCity;\n\t // Check we're not on our tour's last city, if we are set our \n\t // tour's final destination city to our starting city\n\t \n\t destinationCity = getUrgence(cityIndex+1);\n\t \n\t \n\t // Get the distance between the two cities\n\t tourDistance += GA.reqGps().trouverCout(fromCity.reqNoeudCible(), destinationCity.reqNoeudCible());\n\t }\n\t distance = tourDistance;\n\t }\n\t return distance;\n\t }", "title": "" }, { "docid": "a654c5b357807767c2528e18810b9f51", "score": "0.56569064", "text": "public float distanceFromCenter(Coordinate at){\r\n\t\treturn this.center.distanceBetween(at);\r\n\t}", "title": "" }, { "docid": "0182864bf6b82a496aabe81a3d81ea29", "score": "0.5650113", "text": "public double getDistance(){\n if(hasTargets()){\n double a2 = NetworkTableInstance.getDefault().getTable(\"limelight\").getEntry(\"ty\").getDouble(0);\n double a1= 28.4;\n double h1= 13.9;\n double h2 = 26;\n return (h2-h1)/(Math.tan((a1+a2)*Math.PI/180));\n }\n return 0;\n }", "title": "" }, { "docid": "e6cf9e66025d8129b8ea79f8f3484e84", "score": "0.5633667", "text": "public double trackLength(){\n return distance;\r\n }", "title": "" }, { "docid": "f2867e6afeb4f33e0d013f4d3696c0f8", "score": "0.5610774", "text": "public float getWeatherDewPoint();", "title": "" }, { "docid": "489a9da7e47c6f4e1fdcdd1ac53ae8d7", "score": "0.55838835", "text": "double calculateDelta();", "title": "" }, { "docid": "3c1c72df27e5ae04281627c8c82edaf9", "score": "0.55820984", "text": "public int getCurrentSunPoint() {\n\t\treturn this.sunPoints;\n\t}", "title": "" }, { "docid": "f264f23d3dfe57376dcde8096f810fe0", "score": "0.55819786", "text": "void calcDistance()\n {\n this.distance = Math.sqrt(Math.pow(this.x, 2) + Math.pow(this.y, 2) + Math.pow(this.z, 2));\n }", "title": "" }, { "docid": "ebf0441a422e73f2fb9d8c352fee4da2", "score": "0.55726016", "text": "double getValeurDistanceVerticale();", "title": "" }, { "docid": "8b642a0b21966a695ce6cd9012723b9a", "score": "0.55711895", "text": "private float calcDV() {\n\t\treturn (float) (distanceFromPlayer * Math.sin(Math.toRadians(pitch)));\n\t}", "title": "" }, { "docid": "60c94d861a04ac4a64b5ab59baa90e64", "score": "0.55701524", "text": "private double tourDistance() {\n\t\tdouble tourDist = 0;\n\t\tfor (int i=0; i<this.tour.length-1; i++) {\n\t\t\ttourDist = tourDist + distances.getValueAtPos(this.tour[i], this.tour[i+1]).doubleValue();\n\t\t}\n\t\t// from last return to first\n\t\ttourDist = tourDist + distances.getValueAtPos(this.tour[this.tour.length-1], this.tour[0]).doubleValue();\n\t\treturn tourDist;\n\t}", "title": "" }, { "docid": "f84b67e57838e3e80c8d26e9b84a8d24", "score": "0.5562531", "text": "public Vector3 getSunUnitXYZ() {\n float phi = (float) (Math.PI / 2 - Math.toRadians(sun_altitude));\n // theta : the azimuthal angle in the XZ-plane from the Z axis going counter-clockwise\n float theta = (float) (2 * Math.PI - Math.toRadians(sun_azimuth));\n float r = 1.0f; // alt,az on unit sphere\n // translate r, theta, phi in radians to x,y,z. (see above for XYZ map)\n float z = r * MathUtils.cos(theta) * MathUtils.sin(phi);\n float x = r * MathUtils.sin(theta) * MathUtils.sin(phi);\n float y = r * MathUtils.cos(phi);\n return new Vector3(x, y, z);\n }", "title": "" }, { "docid": "4f0bcbdfe0578a39fccc76d98bf2f706", "score": "0.55625176", "text": "private double distanceFromBsAs(CountryInfoLarge countryDestination, String unit) {\n\t\tif ((-34.607337 == countryDestination.getLatlng().get(0))\n\t\t\t\t&& (-58.376465 == countryDestination.getLatlng().get(1))) {\n\t\t\treturn 0;\n\t\t} else {\n\t\t\tdouble theta = -58.376465 - countryDestination.getLatlng().get(1);\n\t\t\tdouble dist = Math.sin(Math.toRadians(-34.607337))\n\t\t\t\t\t* Math.sin(Math.toRadians(countryDestination.getLatlng().get(0)))\n\t\t\t\t\t+ Math.cos(Math.toRadians(-34.607337))\n\t\t\t\t\t\t\t* Math.cos(Math.toRadians(countryDestination.getLatlng().get(0)))\n\t\t\t\t\t\t\t* Math.cos(Math.toRadians(theta));\n\t\t\tdist = Math.acos(dist);\n\t\t\tdist = Math.toDegrees(dist);\n\t\t\tdist = dist * 60 * 1.1515;\n\t\t\tif (unit.equals(\"K\")) {\n\t\t\t\tdist = dist * 1.609344;\n\t\t\t} else if (unit.equals(\"N\")) {\n\t\t\t\tdist = dist * 0.8684;\n\t\t\t}\n\t\t\treturn (dist);\n\t\t}\n\t}", "title": "" }, { "docid": "d6aa38123e1c8204e4fe5513a1ac8192", "score": "0.55448955", "text": "@Override\r\n\tpublic int getDuracionViaje(int distancia) {\n\t\treturn 0;\r\n\t}", "title": "" }, { "docid": "56a83e0c9310b8a2cda1cf616f399811", "score": "0.553986", "text": "public double getDistance() throws IllegalStateException {\r\n\t\tif(!this.isDaijoubu())\r\n\t\t\tthrow new IllegalStateException(\"Not connected to Jetson yet!\");\r\n\t\treturn lastKnownDistance;\r\n\t}", "title": "" }, { "docid": "6519514e64e859faaa04d3031bf96df5", "score": "0.5473868", "text": "double getCalorieWaarde();", "title": "" }, { "docid": "24728fe1a7ebbf9098fe724c29fc33eb", "score": "0.5452541", "text": "double getTau();", "title": "" }, { "docid": "7f449cfa1fe0495fbb3a5fcd9310266b", "score": "0.5449026", "text": "public double getDistance(){\r\n \t\r\n if (distance == 0) {\r\n double tourDistance = 0;\r\n // Loop through our tour's cities\r\n for (int cityIndex=0; cityIndex < tourSize(); cityIndex++) {\r\n // Get city we're travelling from\r\n int fromCity = getCity(cityIndex);\r\n // City we're travelling to\r\n int destinationCity;\r\n // Check we're not on our tour's last city, if we are set our \r\n // tour's final destination city to our starting city\r\n if(cityIndex+1 < tourSize()){\r\n destinationCity = getCity(cityIndex+1);\r\n }\r\n else{\r\n destinationCity = getCity(0);\r\n }\r\n \r\n //int from=fromCity.getX();\r\n //int to=destinationCity.getX();\r\n // Get the distance between the two cities\r\n// tourDistance += fromCity.distanceTo(destinationCity);\r\n // if (cityIndex + 1 < tourSize()) {\r\n tourDistance += instance.getDistances(fromCity,destinationCity);\t\t\t\t\t\r\n\t\t\t//\t} else {\r\n\t // tourDistance += distances[cityIndex][0];\r\n\t\t\t//\t}\r\n }\r\n distance = tourDistance;\r\n }\r\n return distance;\r\n }", "title": "" }, { "docid": "f5e169998797cf258c191cccc07d46a0", "score": "0.5403981", "text": "public double getDistance();", "title": "" }, { "docid": "d5767308ed6d14a1628e7aed67c3f17f", "score": "0.54030496", "text": "public double computeDistanceOnMap ( SOMoutputNeuron __targetNeuron )\n\t{\n\t\tdouble distance = 0;\n\t\tfor ( int i = 0 ; i != this._coordinates.length ; i++ )\n\t\t\tdistance += Math.pow( this._coordinates[i] - __targetNeuron._coordinates[i], 2 ) ; \n\t\treturn Math.sqrt(distance);\n\t}", "title": "" }, { "docid": "fb58655e534ba4e05b991b3d1096aa09", "score": "0.53865963", "text": "public double getLongitude(Event e){\n return 0;\n }", "title": "" }, { "docid": "afeb62c1150feec10e8b0f002ec62a86", "score": "0.53853804", "text": "private static int dayDistance(android.icu.util.TimeZone icuTimeZone, long startTime,\n long endTime) {\n return julianDay(icuTimeZone, endTime) - julianDay(icuTimeZone, startTime);\n }", "title": "" }, { "docid": "fa3c4963bd9d77ded670ae70f6688b38", "score": "0.5377312", "text": "public float getSunMoonSpeed() {\r\n\t\treturn this.sunMoonSpeed;\r\n\t}", "title": "" }, { "docid": "2c49f154d59d886452b6a187215cc1f4", "score": "0.53690547", "text": "public double getDistanceTo(Car c) {\n return sensor.getDistanceTo(this, c);\n }", "title": "" }, { "docid": "89cefd93a73fef19b11cf687182b5ec1", "score": "0.53623354", "text": "void getAngularVelocity(float[] wa, int offset) ;", "title": "" }, { "docid": "eb6a5da19a30f4ad58ab256a5716fdd2", "score": "0.5354912", "text": "public double getLatitude(Event e){\n return 0;\n }", "title": "" }, { "docid": "546404fbfc98e905b5df31075ee7e8f3", "score": "0.53546417", "text": "private double distance() {\n\t\tdouble dist = 0;\n\t\tdist = Math.sqrt(Math.abs((xOrigin - x) * (xOrigin - x) + (yOrigin - y) * (yOrigin - y)));\n\t\treturn dist;\n\t}", "title": "" }, { "docid": "83e82b2b4fd7738e2707dfb25f5a1ddd", "score": "0.53481627", "text": "double getWalkingDistance();", "title": "" }, { "docid": "b3b61efa89970a1057475428f2abfb0a", "score": "0.53282464", "text": "private double convertDistance (double in) {\n\t\tif (in == 0.0) {\n\t\t\treturn 0.0;\n\t\t} else {\n\t\t\treturn ((in * 12) - 8);\n\t\t}\n\t}", "title": "" }, { "docid": "f1fd4da1231f80935cb208d5329c36ff", "score": "0.5326467", "text": "private double distanceFromOrigin() {\n return Math.sqrt(Math.pow((0.0 - pos.x), 2.0) + Math.pow((0.0 - pos.y), 2.0));\n }", "title": "" }, { "docid": "2f74c000779ef65be94d8d5f4e2774d6", "score": "0.5325767", "text": "public double distance(double lat1, double lon1, double lat2, double lon2, String unit) {\n\n if (lat1 !=0) {//if para verificar se o lat1 esta cheio\n double theta = lon1 - lon2;\n double dist = Math.sin(deg2rad(lat1)) * Math.sin(deg2rad(lat2)) + Math.cos(deg2rad(lat1)) * Math.cos(deg2rad(lat2)) * Math.cos(deg2rad(theta));\n dist = Math.acos(dist);\n dist = rad2deg(dist);\n dist = dist * 60 * 1.1515;\n if (unit.equals(\"K\")) {// entra aqui se for em KM\n dist = dist * 1.609344;\n distancia = dist;\n distanciaFinal = distanciaFinal + distancia; // somando a distancia\n // formatar numero com duas casas decimais apos virgula\n NumberFormat nf = NumberFormat.getNumberInstance(Locale.ENGLISH);\n DecimalFormat df = (DecimalFormat) nf;\n df.applyPattern(\"#0.###\");\n String ss = df.format(distanciaFinal);\n distanciaFinal = Double.valueOf(ss);\n distancia = 0.0;\n\n //passando o valores para outra tela nos textViews\n Intent i = new Intent(\"location_update\");\n i.putExtra(\"distancia\", distanciaFinal); //valor km\n i.putExtra(\"velo\",velocidade);//valor velocidade\n i.putExtra(\"precisao\",precisao);\n sendBroadcast(i);\n\n } else if (unit.equals(\"N\")) {//so entra aqui se for em milhas\n dist = dist * 0.8684;\n }\n return (dist);\n }//fim do if para ver se existe lat1\n return 0;\n }", "title": "" }, { "docid": "e9743723034842a6031e0d256b9de053", "score": "0.5319707", "text": "double getVetWaarde();", "title": "" }, { "docid": "49196da645490ab6e82b1bc5b36f1ef8", "score": "0.53119224", "text": "public double calculateEnergyConservation()\r\n\t{\r\n KineticEnergy = (0.5)*ParticleMass*Math.pow(Velocity.magnitude(),2);\r\n\t\tVirialConstant = (2*KineticEnergy - PotentialEnergySum);\r\n //The VirialConstant is just a variable to represent the constant energy\r\n\t\t//remaining after the 2T-U operation has been completed.\r\n\t\treturn VirialConstant;\r\n\t}", "title": "" }, { "docid": "9d8d7095886c92fbecfd5317ea411f56", "score": "0.53005373", "text": "int getDistance();", "title": "" }, { "docid": "3cbcf9704d63693958941e949f662adb", "score": "0.5293865", "text": "double getTotal(double distance);", "title": "" }, { "docid": "4d75039d769193fe1328ae1a6d1f02c0", "score": "0.52815866", "text": "double getKoolhydraatWaarde();", "title": "" }, { "docid": "6b0f28d92b97d5ebdde1affdc6886a16", "score": "0.5275591", "text": "public double distance(long v, long w) {\n double phi1 = Math.toRadians(lat(v));\n double phi2 = Math.toRadians(lat(w));\n double dphi = Math.toRadians(lat(w) - lat(v));\n double dlambda = Math.toRadians(lon(w) - lon(v));\n\n double a = Math.sin(dphi / 2.0) * Math.sin(dphi / 2.0);\n a += Math.cos(phi1) * Math.cos(phi2) * Math.sin(dlambda / 2.0) * Math.sin(dlambda / 2.0);\n double c = 2 * Math.atan2(Math.sqrt(a), Math.sqrt(1 - a));\n return R * c;\n }", "title": "" }, { "docid": "94c29ea4ea40676314de09b345479f1e", "score": "0.5272614", "text": "private double d(Point u, Point v) {\n return norm(new Point(u.x - v.x, u.y - v.y));\n }", "title": "" }, { "docid": "ab68ff269efdb4ab1c7d34c07f40882c", "score": "0.5271065", "text": "public synchronized double getDistance() {\n\t\treturn (m_distance / 30.48);\n\t}", "title": "" }, { "docid": "805816d1a9f4697bf98bab1ed8baf558", "score": "0.5269687", "text": "private double calcActuatorDistance(final double angle) {\n double d = Math.sqrt(Math.pow(Turret.TURRET_SIDE_A, 2) + Math.pow(Turret.TURRET_SIDE_B, 2) - 2 * Turret.TURRET_SIDE_A * Turret.TURRET_SIDE_B * Math.cos(Math.toRadians(94.4 - angle)));\n \n // This line subtracts the length of the actuator while not extended\n d -= 218; // 218 is what the actuator blueprints says is the \"Closed Length (hole to hole)\"\n // This line changes the normalization from 0-140 to 0-1\n d /= 140; // 140 is what the actuator blueprints says is the max the actuator can extend from the base\n return d;\n }", "title": "" }, { "docid": "b1580a244a65a0a6509d2c33097ae29c", "score": "0.52553314", "text": "private static double calculateForceY(double dy, double distance, double forceJ) {\n\n \n }", "title": "" }, { "docid": "4f8c508387c9ddd48b28378d24869532", "score": "0.52511275", "text": "private double distanceFromIdeal() {\n\t\t\t// We do not want to absolutely murder far-off totals, but since log is 1-1...\n\t\t\treturn Math.abs(getCurrent() - IDEAL_CURRENT);\n\t\t}", "title": "" }, { "docid": "962cd475e6c4b5b6ef042a66c53022bc", "score": "0.52450395", "text": "public double getDistance (StaticTarget t){\n\t\treturn -1;\n\t}", "title": "" }, { "docid": "f1ab110dd1185bce65e053a10d7d89f0", "score": "0.5231999", "text": "public double velocity() {\n\t\tif( isStartSet && isEndSet ) {\n\t\t\tfloat dsqr = distance_squared( lastX-startX, lastY-startY );\n\t\t\t//float dsqr = distance_squared( fastDeltaX, fastDeltaY );\n\t\t\tlong milliseconds = endTime - startTime;\n\t\t\t//long milliseconds = fastDeltaTime;\n\t\t\tif( dsqr > 0 && milliseconds > 0 ) {\n\t\t\t\treturn Math.sqrt( (double) dsqr ) / ( (double) milliseconds / 1000.0 );\n\t\t\t}\n\t\t}\n\t\treturn Double.NaN;\t\t\n\t}", "title": "" }, { "docid": "1a6ae937db91a4963d53b5f9c70f6da4", "score": "0.52304316", "text": "public double getDistance() {\n\t\tdouble cm;\n\t\twhile (counter.get() < 1) {\n\t\t\tSystem.out.println(\"Lidar: waiting for distance measurement\");\n\t\t}\n\t\t/* getPeriod returns time in seconds. The hardware resolution is microseconds.\n\t\t * The LIDAR-Lite unit sends a high signal for 10 microseconds per cm of distance.\n\t\t */\n\t\tcm = (counter.getPeriod() * 1000000.0 / 10.0) - 18;\n\t\treturn cm;\n\t}", "title": "" }, { "docid": "e3104fdb7bfd080e63b1766f9e5a0dce", "score": "0.5229408", "text": "public double getApothem() {\n\n double rads = Math.toRadians(180.0 / numSides);\n return sideLength / (2.0 * Math.tan(rads));\n }", "title": "" }, { "docid": "ee26bac95a35e515d5373f3be41c3771", "score": "0.5222282", "text": "@Override\n public void calculateDistanceValue() {\n if (distance >= 0) {\n return;\n }\n\n List<Vector2D> vectors = segment.getWorldVertices();\n WGS84Coord start = new WGS84Coord(vectors.get(0).getY(),\n vectors.get(0).getX());\n WGS84Coord end = new WGS84Coord(vectors.get(1).getY(),\n vectors.get(1).getX());\n double dist = start.greatCircleDistance(end);\n\n distanceVal = dist;\n distance = dist;\n }", "title": "" }, { "docid": "ba0e32253105207cbaf85ede1f337428", "score": "0.5219838", "text": "public static double getDepartureKm(double lat, double delta) {\r\n return Math.abs(delta * KM_PER_NAUTICAL_MILE * MINUTES_PER_DEGREE * Math.cos(Math.toRadians(lat)));\r\n }", "title": "" }, { "docid": "58f28c38bae5b3bd86c456d2667d9b8e", "score": "0.5218092", "text": "public double getDistance(){ return distance;}", "title": "" }, { "docid": "f1abe47993438c066e6cb82632fe25fa", "score": "0.5214176", "text": "private float getDistance(MotionEvent event) {\n\t\tfloat dx = event.getX(0) - event.getX(1);\n\t\tfloat dy = event.getY(0) - event.getY(1);\n\t\treturn (float) Math.sqrt( (dx * dx) + (dy * dy) );\n\t}", "title": "" }, { "docid": "26fa90db8268a49dbdfe910c87bb68a4", "score": "0.5211957", "text": "public double getCarbonFootPrint();", "title": "" }, { "docid": "8145d3450ceb92d5e5a6dec5eef779d3", "score": "0.52098393", "text": "public IsInDistanceFrom(Waypoint neu,double dit){\n\trev = neu;\n\tDist=dit;\n }", "title": "" }, { "docid": "1094e70468ba5490c85966a469f9b353", "score": "0.52060515", "text": "double getAngularDisplacement();", "title": "" }, { "docid": "d877477f3216de31a47b7f485d171eda", "score": "0.5203914", "text": "public double GetDistancia(){\r\n\t\treturn distancia;\r\n\t}", "title": "" }, { "docid": "857f356dcb224c2a999703246acfa126", "score": "0.5202456", "text": "public static double sky() {\n\t\treturn 95.0d;\n\t}", "title": "" }, { "docid": "ef3f3025b1239599636dedaf9488d049", "score": "0.52005064", "text": "public double getCarbonFootprint() {\n\t\tif (cilindradas >= 650) \n\t\t{\n\t\t\treturn getQuilometragem() * 0.65;\n\t\t}\n\t\t\n\t\tif (cilindradas > 150 && cilindradas < 650) \n\t\t{\n\t\t\treturn getQuilometragem() * 0.50;\n\t\t}\n\t\t\n\t\tif (cilindradas <= 150) \n\t\t{\n\t\t\treturn getQuilometragem() * 0.20;\n\t\t}\n\t\t\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "e7c1d0288b39d16604ff3696c89c9860", "score": "0.519279", "text": "public double getDistance() {\n return SphericalDistanceLibrary.getInstance().distance(getFromVertex().getY(),\n getFromVertex().getX(), endStop.getLat(), endStop.getLon());\n }", "title": "" }, { "docid": "abcf7a51b5192daab496a0725699c42f", "score": "0.519271", "text": "void getAngularVelocity(float[] wa) ;", "title": "" }, { "docid": "308663c96e26934d856855ac9408c2e5", "score": "0.5182239", "text": "public int getLifetimeDistance() {return getDat(\"lifetimeDistance\");}", "title": "" }, { "docid": "6769bca6637f4911d79464734d354a0e", "score": "0.51660657", "text": "public double getDelta() {\n\t\treturn Math.asin(z / getNorm());\n\t}", "title": "" }, { "docid": "d0706af00d1d9d72102f67fc6420ba7f", "score": "0.5165699", "text": "public static double EarthAphelion(double k, boolean bBarycentric)\n{\ndouble __retval = 0.0;\n__retval = __m6(0, k, bBarycentric);\nreturn __retval;\n}", "title": "" }, { "docid": "ddf6e46034cbd70154328a51ddcd5d1a", "score": "0.51635903", "text": "private static double calculateSin(double dy, double distance) {\n\n \n }", "title": "" }, { "docid": "e2af0971623a73b021339ea7bdb3c0cb", "score": "0.5162941", "text": "@Override\n\tpublic double HitungLuas() {\n\t\treturn (sisi*sisi);\n\t}", "title": "" }, { "docid": "41d23b620320470bd97b8de0fceda16c", "score": "0.5161362", "text": "public double getDistance2();", "title": "" }, { "docid": "f29414b2179e130eaf73780e6a385d9c", "score": "0.5160219", "text": "double wireDircosY() {\n return cos(thster);\n }", "title": "" }, { "docid": "fac06bd9d12e9cac2009462cb41a06b6", "score": "0.5157482", "text": "public double calcDistance(Planet p) {\n// double dx = this.xxPos - p.xxPos;\n// double dy = this.yyPos - p.yyPos;\n double dx = p.xxPos - this.xxPos;\n double dy = p.yyPos - this.yyPos;\n return Math.sqrt(dx*dx + dy*dy);\n }", "title": "" }, { "docid": "18a1235bedbd5f97aec12607566cd651", "score": "0.51463187", "text": "double getKMSel(double distance);", "title": "" }, { "docid": "d7c9aa9de3d4a712536aaac61f7888a7", "score": "0.5140547", "text": "double travelTimeBeforeRefueling();", "title": "" }, { "docid": "29f0d0a961491a51baac02616fb10ed0", "score": "0.5132567", "text": "public double distanceFromOrigin(){\n\n return Math.sqrt(Math.pow(x,2) + Math.pow(y, 2));\n }", "title": "" }, { "docid": "751098dd11290f79c57b1891fca645ac", "score": "0.51319504", "text": "@Test\n public void calculationByDistance() {\n LocationATController test3 = new LocationATController();\n double startLat = 37.566;\n double startLong = 126.9784;\n double endLat = 35.6895;\n double endLong = 139.6917;\n\n double distance = test3.calculationByDistance(startLat, startLong, endLat, endLong);\n\n assertEquals(distance, 716, 1.0);\n }", "title": "" }, { "docid": "96bc63303c20f5e97efda94214561eb7", "score": "0.51171684", "text": "public float squaredDistanceFromCenter(Coordinate at){\r\n\t\treturn this.center.squareDistance(at);\r\n\t}", "title": "" }, { "docid": "f57fbef3ca582ab4a336ce4132fbc898", "score": "0.51141036", "text": "public double DistatnceToStart() {\r\n\t\tdouble distance = Math.sqrt(Math.pow(x1, 2) + Math.pow(y1, 2));\r\n\t\tSystem.out.println(distance + \"\\n\");\r\n\t\treturn 0;\r\n\t}", "title": "" }, { "docid": "2a460503904a502438b9e93949c7c1a3", "score": "0.511378", "text": "private static double getVat() {\n return 15.0;\r\n }", "title": "" }, { "docid": "720623ec014d5fbdbb6c9978e65c8a07", "score": "0.51074016", "text": "public static int getCost(){\n return sunCost;\n }", "title": "" }, { "docid": "842011a5c48c8e0df965f8fe97c48f1c", "score": "0.51072896", "text": "public void consumirkmAluguer (VeiculoComAutonomia v, Double dist) {\n\n Double atual = v.getAutonomiaAtual();\n\n v.setAutonomiaAtual((atual-dist)>=0?(atual-dist):0.0);\n }", "title": "" }, { "docid": "9294f4030704808faa54b751ebfd611d", "score": "0.5107021", "text": "public double calcDistance(CelestialBody b) {\r\n\t\treturn Math.sqrt(Math.pow(this.myXPos-b.getX(),2)+Math.pow(this.myYPos-b.getY(),2));\r\n\t}", "title": "" }, { "docid": "e11f2d81e1538a42dda97e21bd4ddf82", "score": "0.51036155", "text": "double weightDistance(SOMNeuron n, SOMNeuron neuron);", "title": "" }, { "docid": "0ef34ee9f75b7c85cf147c715d38c4e9", "score": "0.51013047", "text": "private static double calculateCos(double dx, double distance) {\n\n \n }", "title": "" }, { "docid": "37ca9486311af97d9db9b7f23e35ec28", "score": "0.5099806", "text": "public int dist() {\n return dist;\n }", "title": "" }, { "docid": "a2d770aedd7a0f406e2cabce3f7fe1a9", "score": "0.50969774", "text": "public static double vorsorgeAufwand (int steuerJahr, double RVJahr, double KVJahr, double PVJahr, double AVJahr, double HV, double UV, double BU, double Ruerup, double LvMit, double LvOhne){\n/*\n * Variablen deklarieren\n */\n\t\tfinal double SONSVORSORGEPAUSCHAL = 1900.00;\n\t\tdouble vorsorgeAufwand = 0.0;\n\t\tdouble sonsVorsorgeAufwand = 0.0;\n/*\n * Berechnung Vorsorgeaufwand\n */\n\t\tdouble vorsorgeAufwandGezahlt = KVJahr+PVJahr;\n/*\n * Berechnung der sonstigen Vorsorgeaufwendungen\n */\n\t\tdouble sonsVorsorgeAufwandGezahlt = KVJahr+PVJahr+AVJahr+UV+HV+BU+(LvMit*0.88)+LvOhne; \n/*\n * Kontrolle, ob Vorsorgeaufwand kleiner gleich die Pauschale ist\n * JA = 2. Kontrolle wird geprueft\n * NEIN = Summe aus gezahlte KV + PV\n */\n\t\tif(vorsorgeAufwandGezahlt <= SONSVORSORGEPAUSCHAL)\n\t\t{\n/*\n * Kontrolle, ob sons. Vorsorgeaufwand kleiner gleich Pauschale ist\n * JA = gezahlte Beitraege\n * NEIN = Pauschale\n */\n\t\t\tif(sonsVorsorgeAufwandGezahlt <= SONSVORSORGEPAUSCHAL)\n\t\t\t{\n\t\t\t\tsonsVorsorgeAufwand = sonsVorsorgeAufwandGezahlt;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tsonsVorsorgeAufwand = SONSVORSORGEPAUSCHAL; \n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tsonsVorsorgeAufwand = vorsorgeAufwandGezahlt;\n\t\t}\n/*\n * Pruefung des Steuerjahres mit dazugehoerigen jahresabhaengigen Berechnungen fuer den abzugsfaehigen Vorsorgeaufwands\t\n */\n\t\tswitch (steuerJahr) {\n\t\tcase 2010:\n\t\t\t{\n\t\t\t\tvorsorgeAufwand = ((RVJahr*2+Ruerup)*0.70 - RVJahr) + sonsVorsorgeAufwand;\n\t\t\t}\n\t\t\tbreak;\n\t\tcase 2011:\n\t\t\t{\n\t\t\t\tvorsorgeAufwand = ((RVJahr*2+Ruerup)*0.72 - RVJahr) + sonsVorsorgeAufwand;\t\t\t\n\t\t\t}\n\t\t\tbreak;\n\t\tcase 2012:\n\t\t\t{\n\t\t\tvorsorgeAufwand = ((RVJahr*2+Ruerup)*0.74 - RVJahr) + sonsVorsorgeAufwand;\t\t\t\n\t\t\t}\n\t\tbreak;\t\n\t\tcase 2013:\n\t\t\t{\n\t\t\tvorsorgeAufwand = ((RVJahr*2+Ruerup)*0.76 - RVJahr) + sonsVorsorgeAufwand;\t\t\t\n\t\t\t}\n\t\tbreak;\t\n\t\tcase 2014:\n\t\t\t{\n\t\t\tvorsorgeAufwand = ((RVJahr*2+Ruerup)*0.78 - RVJahr) + sonsVorsorgeAufwand;\t\t\t\n\t\t\t}\n\t\t\tbreak;\t\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n/*\n * Pruefung des Hoechstbetrages der abzugsfaehigen Vorsorgeaufwendungen\n */\n\t\tif(steuerJahr == 2010)\n\t\t{\n\t\t\tif(vorsorgeAufwand <= 14000.00)\n\t\t\t\treturn Math.round(vorsorgeAufwand*100)/100.00;\n\t\t\telse \n\t\t\t\treturn vorsorgeAufwand = 14000.00;\n\t\t}\n\t\telse if (steuerJahr == 2011) \n\t\t{\n\t\t\tif(vorsorgeAufwand <= 14400.00)\n\t\t\t\treturn Math.round(vorsorgeAufwand*100)/100.00;\n\t\t\telse \n\t\t\t\treturn vorsorgeAufwand = 14400.00;\n\t\t}\n\t\telse if (steuerJahr == 2012) \n\t\t{\n\t\t\tif(vorsorgeAufwand <= 14800.00)\n\t\t\t\treturn Math.round(vorsorgeAufwand*100)/100.00;\n\t\t\telse \n\t\t\t\treturn vorsorgeAufwand = 14800.00;\n\t\t}\n\t\telse if (steuerJahr == 2013) \n\t\t{\n\t\t\tif(vorsorgeAufwand <= 15200.00)\n\t\t\t\treturn Math.round(vorsorgeAufwand*100)/100.00;\n\t\t\telse \n\t\t\t\treturn vorsorgeAufwand = 15200.00;\n\t\t}\n\t\telse if (steuerJahr == 2014) \n\t\t{\n\t\t\tif(vorsorgeAufwand <= 15600.00)\n\t\t\t\treturn Math.round(vorsorgeAufwand*100)/100.00;\n\t\t\telse \n\t\t\t\treturn vorsorgeAufwand = 15600.00;\n\t\t}\n\t\treturn vorsorgeAufwand = 0.0;\n\t}", "title": "" }, { "docid": "50e87ef199323f9f098418b21c015e41", "score": "0.5095091", "text": "private static double calculateVelocity(double velocity, double deltaT, double acceleration) {\n\n \n }", "title": "" }, { "docid": "70f50414180fc95e0ee3cec55fd7cf49", "score": "0.5093682", "text": "public int getHopDongSauCung();", "title": "" }, { "docid": "d4cd86ccad92682dcefa0dff5e40da06", "score": "0.5093545", "text": "public void winter()\n {\n sun.setLocation(earthX - 40, earthY - 20);\n }", "title": "" }, { "docid": "6f12753402d6b9cf5783e4c5454b8e5e", "score": "0.50879025", "text": "@Test\n public void testDistance01() {\n System.out.println(\"distance01\");\n Coordinate first = new Coordinate(\"01\", 43.6426, -79.3871);\n Coordinate second = new Coordinate(\"02\", 38.6916, -9.2160);\n Amount<Length> altitude = Amount.valueOf(0.0, SI.METER);\n\n double expResult = 5722d; // KM\n double result = Calculus.distance(first, second, altitude).doubleValue(SI.KILOMETER);\n assertEquals(expResult, result, 0.5);\n }", "title": "" }, { "docid": "cd3e6f249104e188f901f4c029a0935c", "score": "0.50823486", "text": "@Override\n public double tourDistance() {\n\n if (isValidTour()) {\n double distance = 0;\n return tourDistanceHelper(startPoint, distance);\n } else {\n return -1;\n }\n\n }", "title": "" }, { "docid": "67b17879ba8b6dd5ece2faf3e18ff01c", "score": "0.5080337", "text": "public double calculateCone(double dist) { ... }", "title": "" }, { "docid": "00116b309d6b9f2df9366315509d2b24", "score": "0.5079101", "text": "private double F()\n {\n return orbitalElements.meanLongitude() - orbitalElements.node;\n }", "title": "" }, { "docid": "de062ecfef195cd4d26b4b2ca451fb16", "score": "0.5078902", "text": "private float landingDistance(float landingAltitude){\n\t\tfloat c1 = 9.2f;\n\t\treturn c1*landingAltitude;\n\t}", "title": "" }, { "docid": "017cbfb32461eff0e3a80fb6d245158e", "score": "0.5075115", "text": "@Override\n public double getInhomY() {\n return (mY / mW);\n }", "title": "" }, { "docid": "cd2beedf013ef38027ef02fd61170026", "score": "0.50706595", "text": "public double distanceTo(Vector2 v)\n\t{\n\t\tVector2 offset = this.clone();\n\t\toffset.substract(v);\n\t\treturn offset.length();\n\t}", "title": "" }, { "docid": "fdc3989b63bbad8f35154323646d99e8", "score": "0.50702876", "text": "private Double trouverPlusPetitTemps(Adresse destination) {\n\t Double d = (Double) distance.get(destination);\n\t if (d == null) {\n\t return Double.MAX_VALUE;\n\t } else {\n\t return d;\n\t }\n\t }", "title": "" }, { "docid": "ab7474ce76c419680b76a85a7de790f3", "score": "0.5068798", "text": "private double haversine(Node source, Node target) {\n double sourceLat = source.getLatitude();\n double sourceLong = source.getLongitude();\n double targetLat = target.getLatitude();\n double targetLong = target.getLongitude();\n\n double earthRadius = 6371.0;\n double dLat = Math.toRadians(targetLat - sourceLat);\n double dLng = Math.toRadians(targetLong - sourceLong);\n\n double sindLat = Math.sin(dLat / 2);\n double sindLng = Math.sin(dLng / 2);\n double a = Math.pow(sindLat, 2)\n + Math.pow(sindLng, 2) * Math.cos(Math.toRadians(sourceLat)) * Math.cos(Math.toRadians(targetLat));\n\n double c = 2 * Math.atan2(Math.sqrt(a), Math.sqrt(1 - a));\n double dist = earthRadius * c;\n\n return dist;\n }", "title": "" }, { "docid": "39a5722033d36d881cf4b844db4b657b", "score": "0.5067826", "text": "public double distFromOrigin() {\n return distanceFrom(new Position());\n }", "title": "" }, { "docid": "d85038124f2f7a29f56b208ce26a03f8", "score": "0.5063944", "text": "private static double distance(double lat1, double lon1, double lat2, double lon2) {\n\t\tdouble theta = lon1 - lon2;\n\t\tdouble dist = Math.sin(deg2rad(lat1)) * Math.sin(deg2rad(lat2)) + Math.cos(deg2rad(lat1)) *\n\t\t\t\tMath.cos(deg2rad(lat2)) * Math.cos(deg2rad(theta));\n\t\tdist = Math.acos(dist);\n\t\tdist = rad2deg(dist);\n\t\tdist = dist * 60 * 1.1515;\n\t\tdist = dist * 1.609344;\n\t\treturn dist;\n\t}", "title": "" }, { "docid": "d7f239cd405c9d58879acc7b0a215afe", "score": "0.5063415", "text": "private static double calculatePosition(double position, double deltaT, double velocity) {\n\n \n }", "title": "" } ]
36651e99333d3ef31fc18d6a1247fd75
Model object to represent a comment posted to a Drink constructor
[ { "docid": "8e61e915b61a36d7158f4c5061d2d4a8", "score": "0.6861784", "text": "public Comment() {\n //this.comment = comment;\n }", "title": "" } ]
[ { "docid": "78304f3a82d1306fa36a5ccd286cb618", "score": "0.67094165", "text": "Comment createComment();", "title": "" }, { "docid": "0a245c160396aee10855cdfe7b33620a", "score": "0.6698932", "text": "public Comment(){}", "title": "" }, { "docid": "5b8cfb851dee6c5ff07679f6f27a993a", "score": "0.66959393", "text": "public Comment(int id, String username, String comment){\n this.drinkId = id;\n this.username = username;\n this.comment = comment;\n }", "title": "" }, { "docid": "5d0ff1deb32a93d3b61fdaddb9d12719", "score": "0.66543055", "text": "@Override\n\tpublic TComment getModel() {\n\t\treturn comment;\n\t}", "title": "" }, { "docid": "cde21b62eb2780f5331ea1c5a3f80dd0", "score": "0.6576042", "text": "public Comment() { }", "title": "" }, { "docid": "6782a048de2ece2d1fca58af702322c6", "score": "0.65119404", "text": "CommentModel createComment(String message);", "title": "" }, { "docid": "42ed2436be0e1817333d936145abff8e", "score": "0.64293504", "text": "public Comment() {\n }", "title": "" }, { "docid": "baaf60d9fbd1c3273821d588e0f75371", "score": "0.64186025", "text": "public Object getComment() {\n return comment;\n }", "title": "" }, { "docid": "edad46ab418f405288ba3f4a4e30ab9a", "score": "0.6415693", "text": "@Override\n\tpublic Comment createComment() {\n\t\treturn new Comment();\n\t}", "title": "" }, { "docid": "22c679f57167fa7188afe6e6995490e0", "score": "0.64113706", "text": "public Comment() {\n }", "title": "" }, { "docid": "b9aeed6dee1f6092bf31e62e4bb9e05f", "score": "0.6362115", "text": "public Comment() {\n\n\t}", "title": "" }, { "docid": "0e6b9f8c6b376e25b5dd181a5e5230cb", "score": "0.6345608", "text": "public Comment() {\r\n\t\tsuper();\r\n\t}", "title": "" }, { "docid": "3af35ffe3a252505744f1311a1c9a311", "score": "0.6261619", "text": "public String getComment() { return this.comment; }", "title": "" }, { "docid": "58c1a9727f62081a570461a0d8600f6a", "score": "0.6239251", "text": "public Comment() {\n id=this.getId();\n comment=this.getComment();\n }", "title": "" }, { "docid": "9b1f624d7f49c121ba7a05a199ce19ec", "score": "0.6171873", "text": "protected Comment() {\n }", "title": "" }, { "docid": "6f32a6ee749c9239547cc1d2fa724147", "score": "0.6163368", "text": "public String getComment(){\n return this.comment;\n }", "title": "" }, { "docid": "5f88adc723e3e590fbfc3dcfaed61949", "score": "0.61262745", "text": "void addComment(Model model, CommentModel comment);", "title": "" }, { "docid": "8d69443b908c7ce578d9e569f8c1620d", "score": "0.612158", "text": "com.zhicai.byteera.service.Common.Comment getComment();", "title": "" }, { "docid": "007c0d9dc3be19daabc9c43b0c82eaf1", "score": "0.606473", "text": "String getComment() {\n return comment;\n }", "title": "" }, { "docid": "878966c3e3b4ed1d619408e9ed1f5027", "score": "0.6029751", "text": "public interface Comment {\n\tpublic String getComment();\n\tpublic void setComment(String comment);\n\tpublic int getUserID();\n\tpublic void setUserID();\n\tpublic int getCommentID();\n\tpublic void setCommentID();\n\tpublic int getStationID();\n\tpublic void setStationID();\n}", "title": "" }, { "docid": "493d6d77726f555e075fff666ace2fe7", "score": "0.60135007", "text": "public String getComment() {\n return comment;\n }", "title": "" }, { "docid": "5a9a5ca9d8bfb478fd1745022454a7a5", "score": "0.6003096", "text": "public String getComment() {\n return this.Comment;\n }", "title": "" }, { "docid": "e52059231abc826ba8c34a97b0165a48", "score": "0.60029876", "text": "@Override\n public String toString() {\n return comment;\n }", "title": "" }, { "docid": "ebafffc7017de6630ec1060551d52f51", "score": "0.59931386", "text": "public String getComment() {\r\n return comment;\r\n }", "title": "" }, { "docid": "99563afa920f0256ec5271cbf277d8ef", "score": "0.59811395", "text": "public String getComment() {\n return this.comment;\n }", "title": "" }, { "docid": "99563afa920f0256ec5271cbf277d8ef", "score": "0.59811395", "text": "public String getComment() {\n return this.comment;\n }", "title": "" }, { "docid": "8d7df87b0aad0afbd37bda9090c41ace", "score": "0.5977521", "text": "String getComment() {\n return comment;\n }", "title": "" }, { "docid": "092ebba48e50fc98172d4531e85437cc", "score": "0.5940643", "text": "public String getComment() {\n return comment;\n }", "title": "" }, { "docid": "092ebba48e50fc98172d4531e85437cc", "score": "0.5940643", "text": "public String getComment() {\n return comment;\n }", "title": "" }, { "docid": "092ebba48e50fc98172d4531e85437cc", "score": "0.5940643", "text": "public String getComment() {\n return comment;\n }", "title": "" }, { "docid": "092ebba48e50fc98172d4531e85437cc", "score": "0.5940643", "text": "public String getComment() {\n return comment;\n }", "title": "" }, { "docid": "092ebba48e50fc98172d4531e85437cc", "score": "0.5940643", "text": "public String getComment() {\n return comment;\n }", "title": "" }, { "docid": "092ebba48e50fc98172d4531e85437cc", "score": "0.5940643", "text": "public String getComment() {\n return comment;\n }", "title": "" }, { "docid": "092ebba48e50fc98172d4531e85437cc", "score": "0.5940643", "text": "public String getComment() {\n return comment;\n }", "title": "" }, { "docid": "092ebba48e50fc98172d4531e85437cc", "score": "0.5940643", "text": "public String getComment() {\n return comment;\n }", "title": "" }, { "docid": "092ebba48e50fc98172d4531e85437cc", "score": "0.5940643", "text": "public String getComment() {\n return comment;\n }", "title": "" }, { "docid": "611d3ec93c0a668f5f196bd63489fbfd", "score": "0.5936003", "text": "public static Comment createEntity() {\n Comment comment = new Comment();\n comment.setMessage(DEFAULT_MESSAGE);\n comment.setDate(DEFAULT_DATE);\n return comment;\n }", "title": "" }, { "docid": "9c06a8d69ea702d8d94930398f1391f7", "score": "0.59345764", "text": "public String getComment()\n {\n return comment;\n }", "title": "" }, { "docid": "739f3a4f141ac7ebecebafdc75529993", "score": "0.59222144", "text": "public Comment1() {\n }", "title": "" }, { "docid": "46fc54566dd56383d83c648b07a5b34c", "score": "0.5865562", "text": "public String getComment();", "title": "" }, { "docid": "46fc54566dd56383d83c648b07a5b34c", "score": "0.5865562", "text": "public String getComment();", "title": "" }, { "docid": "46fc54566dd56383d83c648b07a5b34c", "score": "0.5865562", "text": "public String getComment();", "title": "" }, { "docid": "6c9794fe1814240a26f04d1fee6aef3c", "score": "0.5840595", "text": "@ApiModelProperty(value = \"A comment about the worklog in [Atlassian Document Format](https://developer.atlassian.com/cloud/jira/platform/apis/document/structure/). Optional when creating or updating a worklog.\")\n public Object getComment() {\n return comment;\n }", "title": "" }, { "docid": "ac9a37a7b7e7cce43078965a931413ea", "score": "0.58283776", "text": "@Override\n\tpublic String toString() {\n\t\treturn \"Comment [id=\" + id + \", date=\" + date + \", commentText=\" + commentText + \", contactFormMessage=\"\n\t\t\t\t+ contactFormMessage + \"]\";\n\t}", "title": "" }, { "docid": "7c7e07cc54e05d860f3e12d79b27fb34", "score": "0.58270156", "text": "public Comment(JSONObject comment){\n this.ID = comment.optInt(\"id\");\n this.content = comment.optString(\"content\");\n\n JSONObject user = comment.optJSONObject(\"user\");\n this.username = user.optString(\"username\");\n this.email = user.optString(\"email\");\n\n this.contribution = new Contribution(comment.optJSONObject(\"contribution\"));\n\n this.createdAt = (new Date(Long.parseLong(comment.optString(\"createdAt\")))).toString();\n }", "title": "" }, { "docid": "a2ae627b9d180efcffad1886f6b54555", "score": "0.5800775", "text": "public String getComment()\r\n\t{\r\n\t\treturn comment;\r\n\t}", "title": "" }, { "docid": "d98888347a99764e6e39411c9f53ebd1", "score": "0.5763082", "text": "Comment createComment(String commentText, ContactFormMessage contactFormMessage);", "title": "" }, { "docid": "de2c1ba8f1d134cc806b53b6ab8be301", "score": "0.5757383", "text": "Comment create(Comment entity);", "title": "" }, { "docid": "fa7ad50bac34b8023672d6a7e0d839d0", "score": "0.57497257", "text": "public Comment(String thread, String commentuser){\n this.thread = thread;\n this.commentuser = commentuser;\n this.date = new Date(System.currentTimeMillis());\n this.id = generateID();\n this.fatherContent = \"\";\n this.fatherComment = \"\";\n }", "title": "" }, { "docid": "0417393014b053504b7fd4dc17dfd834", "score": "0.5710104", "text": "public CommentViewModel(Application application) {\n super(application);\n C32569u.m150519b(application, C6969H.m41409d(\"G6893C516B633AA3DEF019E\"));\n }", "title": "" }, { "docid": "a8120f01d9a30fc9de2955018527ed50", "score": "0.5709842", "text": "@Override\n public CommentsTO createComment(Long postId, @Valid Comments comment) {\n Comments commentResponse;\n\n try {\n Optional<Post> post = postRepository.findById(postId);\n\n if (post.isPresent()) {\n comment.setPost(post.get());\n commentResponse = commentsRepository.save(comment);\n } else {\n throw new InvalidPostOperationException(\"No post found to add comment\");\n }\n return setCommentsTo(commentResponse);\n\n } catch (Exception ex) {\n log.error(\"Exception while createing a comment\");\n throw new CommentOperationsException(ex.getMessage());\n }\n }", "title": "" }, { "docid": "5915f0037aa39080985bf0ad154a1280", "score": "0.5686253", "text": "public StringDt getComment() { \n\t\tif (myComment == null) {\n\t\t\tmyComment = new StringDt();\n\t\t}\n\t\treturn myComment;\n\t}", "title": "" }, { "docid": "de6dfab118180507839a1725527b0eb5", "score": "0.56855726", "text": "public void setComment(String comment);", "title": "" }, { "docid": "de6dfab118180507839a1725527b0eb5", "score": "0.56855726", "text": "public void setComment(String comment);", "title": "" }, { "docid": "fc4b776c49cb22c38a068eeafe584d4e", "score": "0.5663418", "text": "public java.lang.String getComment()\n {\n return this._comment;\n }", "title": "" }, { "docid": "4464202aa362b0519e6098fc34024f6e", "score": "0.5655187", "text": "public String getComment() {\n\t\treturn comment;\n\t}", "title": "" }, { "docid": "f597dc47d6897930f4e155fd358f4fa1", "score": "0.56500417", "text": "public\t String getComment() {\n return comment ;\n }", "title": "" }, { "docid": "a0516353267928966dc9e84da22b6843", "score": "0.56482035", "text": "@Updatable\n public String getComment() {\n return comment;\n }", "title": "" }, { "docid": "13b35211dd0dc1386209d9b307476a14", "score": "0.5647656", "text": "public String comment() {\n return this.comment;\n }", "title": "" }, { "docid": "940c76e11e048bff6835390b261a73b9", "score": "0.56356823", "text": "public java.lang.String getComment(){\n return comment;\n }", "title": "" }, { "docid": "85fa0650ce6d15da147a0074c199e790", "score": "0.56219697", "text": "public CommentDOExample() {\r\n oredCriteria = new ArrayList<Criteria>();\r\n }", "title": "" }, { "docid": "ed7f69452e590f101a39363f67c80f38", "score": "0.560573", "text": "public Builder comment(String comment) {\n this.comment = comment;\n return this;\n }", "title": "" }, { "docid": "172995ecc45d0c8967cbc4fa099ee6d2", "score": "0.5575815", "text": "public Builder comment(Markdown comment) {\n this.comment = comment;\n return this;\n }", "title": "" }, { "docid": "2b9c475bc04a5b60324014a72ef109f3", "score": "0.55687743", "text": "public Comment(String data, String baseUri) {\n super(baseUri);\n attributes.put(COMMENT_KEY, data);\n }", "title": "" }, { "docid": "57f5de516d6424976de47d386519f793", "score": "0.55685604", "text": "public void setComment(String comment){\n this.comment = comment;\n }", "title": "" }, { "docid": "2921472101c650e9aa3d5a0e6a2d8ffd", "score": "0.55647767", "text": "protected CommentNodeData(ASTNode objectCommented, String comment) {\n\t\tthis(objectCommented);\n\t\tcomments.add(comment);\n\t}", "title": "" }, { "docid": "e5826465a7181fa21d43afce39cce739", "score": "0.5563688", "text": "public void setComment(String Comment) {\n this.Comment = Comment;\n }", "title": "" }, { "docid": "6b2559e9a859ae78ab3c05d1d123d2ea", "score": "0.5548112", "text": "public Comment(int id, User author, int songID, String content) {\n this.id = id;\n this.author = author;\n this.songID = songID;\n this.content = content;\n }", "title": "" }, { "docid": "9e23f4d9e5d4bc1c5ce56843375b7f0e", "score": "0.55418235", "text": "public Drink(Drink drink){\r\n\t\tsuper(drink.getName(), drink.getPrice(), drink.getQuantity(), drink.getDispenseLocation(), drink.getProductId(), drink.getDescription(), drink.getDispenserID());\r\n\t\tthis.ounces = drink.getOunces();\r\n\t}", "title": "" }, { "docid": "a789f437c96f94babcfdfa5dd3b3b861", "score": "0.5531473", "text": "public String getCommentId() {\n return commentId;\n }", "title": "" }, { "docid": "42b306a7ff5a12e6fd0eb08a0e12afad", "score": "0.5526217", "text": "@Override\n\tpublic ByteVector getCommentData()\n\t{\n\t\treturn comment_data;\n\t}", "title": "" }, { "docid": "07a2df34560df8f135cf40d874bbd0dc", "score": "0.55108577", "text": "public Builder setComment(com.zhicai.byteera.service.Common.Comment value) {\n if (commentBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n comment_ = value;\n onChanged();\n } else {\n commentBuilder_.setMessage(value);\n }\n bitField0_ |= 0x00000008;\n return this;\n }", "title": "" }, { "docid": "ca8ed7f9c9c915d0ce4a00f77ae624cb", "score": "0.5509405", "text": "public com.zhicai.byteera.service.Common.Comment getComment() {\n if (commentBuilder_ == null) {\n return comment_;\n } else {\n return commentBuilder_.getMessage();\n }\n }", "title": "" }, { "docid": "824783fdc6b1e4aaa78716f59efe360e", "score": "0.55009526", "text": "public Comment getCommentById(int commentId);", "title": "" }, { "docid": "343841a059d5e0e4eef5c6759da1de98", "score": "0.5500207", "text": "public com.zhicai.byteera.service.Common.Comment getComment() {\n return comment_;\n }", "title": "" }, { "docid": "1abf8a40453036a6dcf02a7a8b2c57e2", "score": "0.5499014", "text": "@Override\n\tpublic Comment getComment() {\n\t\t// \n\t\treturn this.comment;\n\t}", "title": "" }, { "docid": "5118b84efe2d39015aca96e599a2dbbc", "score": "0.5494986", "text": "public String getCommentContent() {\n return commentContent;\n }", "title": "" }, { "docid": "fc556f2259ff4f151d29274fd39cfc3e", "score": "0.5475073", "text": "@DSSource({DSSourceKind.SENSITIVE_UNCATEGORIZED})\n @DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 12:55:02.924 -0500\", hash_original_method = \"D7C1F8AAD3D2F40DD04B72C74A7D0B69\", hash_generated_method = \"E40F10878D62F1009133973700BC0B5C\")\n \npublic String getComment() {\n return comment;\n }", "title": "" }, { "docid": "885d6a20a59831138efe0943adc5cb86", "score": "0.5471872", "text": "List<CommentModel> getComments(Model model);", "title": "" }, { "docid": "e9a47424592935641f37693977dc0066", "score": "0.54704314", "text": "public Comment(String username, int tmdbId, String content) {\n this.username = username;\n this.tmdbId = tmdbId;\n this.content = content;\n this.date = new Date();\n }", "title": "" }, { "docid": "8b76eeb93ada020b382b81563ec9ab54", "score": "0.5462738", "text": "public StringDt getCommentElement() { \n\t\tif (myComment == null) {\n\t\t\tmyComment = new StringDt();\n\t\t}\n\t\treturn myComment;\n\t}", "title": "" }, { "docid": "e0f48df0e7bc5e3c42e5c1a66100ed93", "score": "0.5453264", "text": "public\r\n String\r\n getComment( )\r\n {\r\n \treturn this.comment ;\r\n }", "title": "" }, { "docid": "915a7fbf2fe9356bdd16743789813650", "score": "0.54353684", "text": "public interface CommentService {\n\n /**\n * Returns all comments associated with a model.\n * @param model the model which comments will be read.\n * @return list with comments.\n */\n List<CommentModel> getComments(Model model);\n\n /**\n * Adds a comment to a model.\n * @param model the model to which the comment will be added.\n * @param comment the comment to add.\n */\n void addComment(Model model, CommentModel comment);\n\n /**\n * Creates a new comment with message.\n * @param message the new comment message.\n * @return the new comment.\n */\n CommentModel createComment(String message);\n}", "title": "" }, { "docid": "891778fcc96a1a335a7edd0f5605e9cd", "score": "0.5432672", "text": "public Comments(int id, int idArticle, int idForum, int user, int TYPEOFCOMMENT, String comment){\n\t\tsuper(id,idArticle,idForum,user,comment);\n\t\tthis.typeOfComment = TYPEOFCOMMENT;\n\t}", "title": "" }, { "docid": "0453a2dd5d4837b2638be9f5821ac32a", "score": "0.54144716", "text": "public String getCommentContent() {\n return commentContent;\n }", "title": "" }, { "docid": "0453a2dd5d4837b2638be9f5821ac32a", "score": "0.54144716", "text": "public String getCommentContent() {\n return commentContent;\n }", "title": "" }, { "docid": "78b942ac2e004f5e5d5bed5bd13023c9", "score": "0.5414437", "text": "@NotNull public Builder comment(@NotNull Comment.Builder comment) {\n putValue(\"comment\", comment.build());\n return this;\n }", "title": "" }, { "docid": "e1c218a35c538796b17b2cfb2cbf594b", "score": "0.5408561", "text": "public String getComment( ) {\n\t\treturn this.comment;\n\t }", "title": "" }, { "docid": "82317023c461470191e30de01b4ad76a", "score": "0.54073274", "text": "public Comment(String thread, String commentuser, String fatherComment, String fatherContent){\n this.thread = thread;\n this.commentuser = commentuser;\n this.date = new Date(System.currentTimeMillis());\n this.id = generateID();\n this.fatherContent = fatherContent;\n this.fatherComment = fatherComment;\n }", "title": "" }, { "docid": "c3c2ee5e5df7be63ced2c926ab54b937", "score": "0.5396588", "text": "public CustomCommentGenerator() {\r\n\t\tsuper();\r\n\t\tproperties = new Properties();\r\n\t\tsuppressDate = false;\r\n\t\tsuppressAllComments = false;\r\n\t\taddRemarkComments = false;\r\n\t}", "title": "" }, { "docid": "3357ba2b2a558921905f595b1b98ab2f", "score": "0.5393353", "text": "@NotNull public Builder comment(@NotNull Comment comment) {\n putValue(\"comment\", comment);\n return this;\n }", "title": "" }, { "docid": "6a8eb30399278e1e8cc35f53d0d85cc4", "score": "0.538728", "text": "public boolean createComment(Comment comment);", "title": "" }, { "docid": "0e56be8671fa66d7a34e33dee7aad97a", "score": "0.538321", "text": "public Review(String type, Double rating, String comment){\n\t\tthis.type = type;\n\t\tthis.rating = rating;\n\t\tthis.comment = comment;\n\t\tthis.timestamp = null;\n\t\tsetLongType();\n\t}", "title": "" }, { "docid": "ef1635e40c917b84ed8eb0d11c05c654", "score": "0.5381025", "text": "public Integer getCommentId() {\n return commentId;\n }", "title": "" }, { "docid": "ef1635e40c917b84ed8eb0d11c05c654", "score": "0.5381025", "text": "public Integer getCommentId() {\n return commentId;\n }", "title": "" }, { "docid": "47dee7271a529c2d13c54449cac2df7e", "score": "0.5371257", "text": "protected CommentNodeData(ASTNode objectCommented) {\n\t\tthis.objectCommented = objectCommented;\n\t\tcomments = new ArrayList<String>();\n\t}", "title": "" }, { "docid": "946536b4cbc6b33ecad3b60732f2fbb9", "score": "0.53659374", "text": "public void setComment(String comment) {\n this.comment = comment;\n }", "title": "" }, { "docid": "946536b4cbc6b33ecad3b60732f2fbb9", "score": "0.53659374", "text": "public void setComment(String comment) {\n this.comment = comment;\n }", "title": "" }, { "docid": "946536b4cbc6b33ecad3b60732f2fbb9", "score": "0.53659374", "text": "public void setComment(String comment) {\n this.comment = comment;\n }", "title": "" }, { "docid": "946536b4cbc6b33ecad3b60732f2fbb9", "score": "0.53659374", "text": "public void setComment(String comment) {\n this.comment = comment;\n }", "title": "" } ]
df930f2f7a933dbf2164d348c808c51c
findkeyby method for unique attribute field refreshToken
[ { "docid": "dd2fbab030daa44640b6db02c6f20e10", "score": "0.73900276", "text": "java.lang.Long findKeyByRefreshToken(java.lang.String refreshToken);", "title": "" } ]
[ { "docid": "7adee5e886f953af3d19ae319e1c0379", "score": "0.6374245", "text": "public final java.lang.Long findKeyByRefreshToken(java.lang.String refreshToken) {\n Filter filter = createEqualsFilter(COLUMN_NAME_REFRESHTOKEN, refreshToken);\n\t\treturn findUniqueKeyBy(filter);\n\t}", "title": "" }, { "docid": "c861cb457117f826db989ae1e0e7f536", "score": "0.5700508", "text": "java.lang.Long findKeyByAccessToken(java.lang.String accessToken);", "title": "" }, { "docid": "a4f556d2c005770fec6dba3b37403ae3", "score": "0.5590437", "text": "boolean hasRefreshId();", "title": "" }, { "docid": "4fbe11b5fe4da3d9c1be0a12e0f1aca3", "score": "0.54808134", "text": "abstract protected String getUpdatesToken();", "title": "" }, { "docid": "62ce208d1a0d6d778be6221275621478", "score": "0.54761016", "text": "public final Do2pToken findByRefreshToken(java.lang.String refreshToken) {\n Filter filter = createEqualsFilter(COLUMN_NAME_REFRESHTOKEN, refreshToken);\n\t\treturn findUniqueBy(filter);\n\t}", "title": "" }, { "docid": "1a5b0a6c786e92afa2593181b141fff5", "score": "0.5448997", "text": "@Modifying\n @Query(value = \"UPDATE User SET refreshTokenKey=:refreshTokenKey WHERE id=:id\")\n int updateUserRefreshToken(String refreshTokenKey, Long id);", "title": "" }, { "docid": "263bd759f39a5553b6386f5f5f6eb950", "score": "0.54295725", "text": "String getKeyUserid();", "title": "" }, { "docid": "d2b90242a20907ffbf35c0a4a554610c", "score": "0.5399996", "text": "public RefreshToken selectRefreshTokenInfo(String refreshTokenKey)\n {\n\n ArrayList<HashMap<String, Object>> resultSet = null ;\n RefreshToken refreshToken = null ;\n System.out.println(\"Selecting data for refresh token: \" + refreshTokenKey) ;\n try\n {\n resultSet = spSelectDAO.callProc(\"s_oauth_refreshtoken\", refreshTokenKey, null, null) ;\n if (resultSet != null && !resultSet.isEmpty())\n {\n HashMap<String, Object> hm = resultSet.get(0) ;\n refreshToken = new RefreshToken(null, (String) hm.get(\"tokenkey\"), (long) hm.get(\"expiresin\"), (long) hm.get(\"issuedat\")) ;\n refreshToken.setIssuer((String) hm.get(\"issuer\")) ;\n refreshToken.setGrantCode((String) hm.get(\"grantcode\")) ;\n refreshToken.setGrantType((String) hm.get(\"granttype\")) ;\n refreshToken.setNonce((String) hm.get(\"nonce\")) ;\n refreshToken.setRefreshToken((String) hm.get(\"refreshtoken\")) ;\n refreshToken.setResponseType((String) hm.get(\"responsetype\")) ;\n refreshToken.setTokenType((String) hm.get(\"tokentype\")) ;\n refreshToken.setClient(new Client((String) hm.get(\"client_clientid\"), null, true)) ;\n refreshToken.setSubject(selectUserSubject((String) hm.get(\"subject_id\"), null)) ;\n List<RefreshToken> lstRefreshTokens = new ArrayList<>() ;\n lstRefreshTokens.add(refreshToken) ;\n selectRefreshTokensOtherDetails(lstRefreshTokens) ;\n System.out.println(\"Refresh token info retrieved from DB for token key: \" + refreshTokenKey) ;\n }\n else\n {\n System.out.println(\"No refresh token data returned for refresh token key: \" + refreshTokenKey) ;\n }\n\n }\n catch (SQLException e)\n {\n e.printStackTrace() ;\n LOG.error(\"SQLException occured while fetching access token details\", e) ;\n refreshToken = null ;\n }\n\n return refreshToken ;\n\n }", "title": "" }, { "docid": "2ef6d45cca367fdb4a3054f4d7680914", "score": "0.5266932", "text": "java.lang.String getBaseTokenId();", "title": "" }, { "docid": "1158755ce37bffd461997a8fba74528b", "score": "0.5254906", "text": "WmMainAuthtoken selectByPrimaryKey(WmMainAuthtokenKey key);", "title": "" }, { "docid": "2f5b8a01cf7e9f998fc3ff4ff934a595", "score": "0.52517116", "text": "String getUserKey(final String key);", "title": "" }, { "docid": "95817274156b4b869d1952455fe1b7aa", "score": "0.5237114", "text": "String getKeyIdentifier();", "title": "" }, { "docid": "6a33de5cfd98becfeef7140a581b072e", "score": "0.52248555", "text": "User getUserByVerificationKey(String key);", "title": "" }, { "docid": "3b875714351c2a3f6ca721625aa768e1", "score": "0.5199435", "text": "String getOAuthKey();", "title": "" }, { "docid": "ff414caa624a8f2ff0266d9ea7f7abc0", "score": "0.51878536", "text": "private void updateToken(String tokenRefresh) {\n }", "title": "" }, { "docid": "fa58140253d8f27d8f8fc9e195741a51", "score": "0.5177842", "text": "long getHashKey();", "title": "" }, { "docid": "8896c2429931380bd19de12880fddbe1", "score": "0.5175758", "text": "@Attribute(order = 900, validators = {RequiredValueValidator.class})\n default String authenticationIdKey() {\n return \"sub\";\n }", "title": "" }, { "docid": "4368eee4a777841f22c04c832bd2c685", "score": "0.51584315", "text": "public String getRefreshToken()\n {\n return getSemanticObject().getProperty(social_refreshToken);\n }", "title": "" }, { "docid": "1abc3fa5e3fb73cc919d019a64094357", "score": "0.5135674", "text": "String getKey();", "title": "" }, { "docid": "1abc3fa5e3fb73cc919d019a64094357", "score": "0.5135674", "text": "String getKey();", "title": "" }, { "docid": "1abc3fa5e3fb73cc919d019a64094357", "score": "0.5135674", "text": "String getKey();", "title": "" }, { "docid": "1abc3fa5e3fb73cc919d019a64094357", "score": "0.5135674", "text": "String getKey();", "title": "" }, { "docid": "1abc3fa5e3fb73cc919d019a64094357", "score": "0.5135674", "text": "String getKey();", "title": "" }, { "docid": "a1ac17a3dfd7066adb516332cd8c2181", "score": "0.51217824", "text": "public Pull<K> key();", "title": "" }, { "docid": "a1ac17a3dfd7066adb516332cd8c2181", "score": "0.51217824", "text": "public Pull<K> key();", "title": "" }, { "docid": "d067da6d102773aaf6f45066e5b3c12a", "score": "0.5113039", "text": "@Override\r\n\tprotected String getObjectKey(AfGrpProfileInfo elem) {\n\t\treturn elem.afid;\r\n\t}", "title": "" }, { "docid": "d1f472801a6047961b435b4a5e99ec13", "score": "0.51074326", "text": "public interface RedisKeyConstants {\n\n /**\n * 后台用户token缓存key:b_ut_userId\n */\n String BACK_USER_TOKEN_KEY = \"b_ut_\";\n\n /**\n * 后台权限页面缓存key:b_au_p_\n * hash缓存,roleId为Key\n */\n String BACK_AUTHORITY_PAGES_KEY = \"b_au_p_\";\n\n /**\n * 用户辖区信息缓存key:b_s_a_a\n * hash缓存,用户ID为Key\n */\n String BACK_SYS_AREA_ASS_KEY = \"b_s_a_a\";\n\n /**\n * 短信验证码缓存key的前缀\n */\n String SMS_VERIFY_CODE_KEY_PREFIX = \"sms_\";\n\n /**\n * 用户token缓存key:ut_userId\n */\n String USER_TOKEN_KEY = \"ut_\";\n\n /**\n * 当日活跃用户\n */\n String ACTIVE_USER_COUNT = \"a_u_c_\";\n\n /**\n * 后台商户token缓存key:b_ut_userId\n */\n String BACK_MERCHANT_TOKEN_KEY = \"b_mt_\";\n\n /**\n * 当日活跃商户\n */\n String ACTIVE_MERCHANT_COUNT = \"a_m_c_\";\n\n String SIGN_IN_TOKEN = \"sign:in:token\";\n}", "title": "" }, { "docid": "655d74d47ff3c8b590319099c39b9470", "score": "0.5093503", "text": "private String getXpathTokenKey(URI uri) {\n String host = uri.getHost();\n int port = uri.getPort();\n String scheme = uri.getScheme();\n\n String xAuthTokenKey = String.format(\"%s-%s%s%d\", X_AUTH_TOKEN, scheme, host, port);\n return xAuthTokenKey;\n }", "title": "" }, { "docid": "7a23a3904a36be771216892e329e3227", "score": "0.5086795", "text": "interface AssetKey {\n\n @Override\n boolean equals(Object other);\n\n @Override\n int hashCode();\n\n\n }", "title": "" }, { "docid": "db42a4593427e6acf3600708ad44a6d6", "score": "0.50676703", "text": "String key();", "title": "" }, { "docid": "39276b6b070b411daaf63ec6a5b714f9", "score": "0.5064746", "text": "public static String hashToken(String refreshTokenValue) throws NoSuchAlgorithmException {\n MessageDigest digest = MessageDigest.getInstance(\"SHA-256\");\n byte[] refreshTokenHashed = digest.digest(refreshTokenValue.getBytes(StandardCharsets.UTF_8));\n return String.format(\"%064x\", new java.math.BigInteger(1, refreshTokenHashed));\n }", "title": "" }, { "docid": "50e7b35d16bd6052a6c93d31572a1247", "score": "0.5045398", "text": "Long getUserIdFromToken(String jwt);", "title": "" }, { "docid": "c7704b437edfa50dcbe68acbbee4d41d", "score": "0.50192535", "text": "public String getKey();", "title": "" }, { "docid": "ca4d65520cfefd56964d804b935458e8", "score": "0.5012176", "text": "UserToken selectByPrimaryKey(Long id);", "title": "" }, { "docid": "74b2fcb8fe7e4c7352c5fd94ac40e8a3", "score": "0.5008484", "text": "String getHashKey() {\n\n return getFullPath().concat(\"::\").concat(httpMethod.toUpperCase());\n }", "title": "" }, { "docid": "e0a04ffd2aa11eb44eff189001ce5bfa", "score": "0.49674794", "text": "String getGroupKey();", "title": "" }, { "docid": "e0a04ffd2aa11eb44eff189001ce5bfa", "score": "0.49674794", "text": "String getGroupKey();", "title": "" }, { "docid": "e0a04ffd2aa11eb44eff189001ce5bfa", "score": "0.49674794", "text": "String getGroupKey();", "title": "" }, { "docid": "90022bde172861880f709e829d125729", "score": "0.49642432", "text": "UniqueIdentifier getMarketDataSnapshotIdentifier();", "title": "" }, { "docid": "e9603b036c891a64e9255b4b91ebc946", "score": "0.49526563", "text": "public cn.vertxup.rbac.domain.tables.pojos.OAccessToken fetchOneByKey(String value) {\n return fetchOne(OAccessToken.O_ACCESS_TOKEN.KEY, value);\n }", "title": "" }, { "docid": "2b9de6d07eea2a0dfbda01d5cd672b4a", "score": "0.49312624", "text": "java.lang.String getKey();", "title": "" }, { "docid": "2b9de6d07eea2a0dfbda01d5cd672b4a", "score": "0.49312624", "text": "java.lang.String getKey();", "title": "" }, { "docid": "2b9de6d07eea2a0dfbda01d5cd672b4a", "score": "0.49312624", "text": "java.lang.String getKey();", "title": "" }, { "docid": "2b9de6d07eea2a0dfbda01d5cd672b4a", "score": "0.49312624", "text": "java.lang.String getKey();", "title": "" }, { "docid": "2b9de6d07eea2a0dfbda01d5cd672b4a", "score": "0.49312624", "text": "java.lang.String getKey();", "title": "" }, { "docid": "2b9de6d07eea2a0dfbda01d5cd672b4a", "score": "0.49312624", "text": "java.lang.String getKey();", "title": "" }, { "docid": "2b9de6d07eea2a0dfbda01d5cd672b4a", "score": "0.49312624", "text": "java.lang.String getKey();", "title": "" }, { "docid": "2b9de6d07eea2a0dfbda01d5cd672b4a", "score": "0.49312624", "text": "java.lang.String getKey();", "title": "" }, { "docid": "7b9f06da5283d85a81382dc7f51be29c", "score": "0.49287817", "text": "Do2pToken findByRefreshToken(java.lang.String refreshToken);", "title": "" }, { "docid": "98aca6dee6b376e96e6e0d20240b9eb1", "score": "0.49250087", "text": "public interface RedisConstant {\n\n String TOKEN_PREFIX=\"token_%s\";\n\n Integer EXPIRE = 2 * 60 * 60;//2h\n\n}", "title": "" }, { "docid": "a7e133511d8868efda31066e98c3c2ff", "score": "0.49242437", "text": "public java.lang.String getAccesskey()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(ACCESSKEY$34);\n if (target == null)\n {\n return null;\n }\n return target.getStringValue();\n }\n }", "title": "" }, { "docid": "3c89798340efb13ab7b9a3da2f01fe42", "score": "0.48916852", "text": "String getSystemUserKey(final String key);", "title": "" }, { "docid": "42d0ac7627aea2663b6883ffc5529e02", "score": "0.48887634", "text": "private Object getHashKey(K obj) throws IllegalArgumentException, IllegalAccessException, InvocationTargetException{\n Object hashKey = null;\n for (Method met : obj.getClass().getDeclaredMethods()){\n if(met.getName().equals(\"getHashKey\")){\n Object [] params = null;\n hashKey = met.invoke(obj, params);\n break;\n }\n }\n return hashKey;\n }", "title": "" }, { "docid": "31e49edd16e0326f2c289c27f395d97c", "score": "0.48872635", "text": "boolean key(Field field);", "title": "" }, { "docid": "d70bfe0cf2d98f00f8476b15c0e4bba7", "score": "0.4885073", "text": "private static String loadRefreshToken(){\n Properties properties = new Properties();\n try {\n properties.load(new FileInputStream(TMP_TOKEN_PROPERTIES));\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return (String) properties.get(\"refreshtoken\");\n }", "title": "" }, { "docid": "202ca8cc377f5098a993a9263726e90d", "score": "0.48579", "text": "String refreshToken(String token) throws Exception;", "title": "" }, { "docid": "203a1fe4e1857dba576b4e0a76a4a081", "score": "0.4855012", "text": "private Object getHashKey(T obj) throws IllegalArgumentException, IllegalAccessException, InvocationTargetException{\n Object hashKey = null;\n for (Method met : obj.getClass().getDeclaredMethods()){\n if(met.getName().equals(\"getHashKey\")){\n Object [] params = null;\n hashKey = met.invoke(obj, params);\n break;\n }\n }\n return hashKey;\n }", "title": "" }, { "docid": "1e167e7a4f816e3d6a4e41dd47ffd64a", "score": "0.48481798", "text": "Token getByTokenAndUser(String token, User user);", "title": "" }, { "docid": "5afd11c5da687bf6f8274745b7d192df", "score": "0.48401272", "text": "@Override\n public void onTokenRefresh() {\n String refreshedToken = FirebaseInstanceId.getInstance().getToken();\n Log.d(TAG, \"Refreshed token: \" + refreshedToken);\n SharedPreferences sharedpreferences;\n sharedpreferences = getSharedPreferences(Constants.MYPREFERENCES, Context.MODE_PRIVATE);\n SharedPreferences.Editor editor = sharedpreferences.edit();\n editor.putString(Constants.TOKENFIREBASE,refreshedToken);\n editor.commit();\n\n\n\n }", "title": "" }, { "docid": "a3dfa45e6f4551b2f01f1c5a77b321de", "score": "0.4833794", "text": "O getKey();", "title": "" }, { "docid": "d997e56194b5637a80a4051d139cbc57", "score": "0.48281804", "text": "void updateLastUsedTime(String tokenId);", "title": "" }, { "docid": "82019bbf04f33adcf23255842533b0c1", "score": "0.48279756", "text": "public abstract String getAttribute(String key);", "title": "" }, { "docid": "1d066350a64d72989a04ebc0777fcd8b", "score": "0.48148653", "text": "public AuthToken Find(String tokenKey) throws DataAccessException\n {\n // declare variable\n\n //A table of data representing a database result set, which is usually generated by executing a statement that queries the database\n ResultSet rs = null;\n // SQL String to SQL command\n String sql = \"SELECT * FROM AuthToken WHERE Auth_Token = ?;\";\n try (PreparedStatement PS = connection.prepareStatement(sql))\n {\n PS.setString(1, tokenKey);\n rs = PS.executeQuery();\n if (rs.next())\n {\n String Username = rs.getString(1);\n String authToken = rs.getString(2);\n AuthToken token = new AuthToken(Username,authToken);\n return token;\n }\n\n } catch (SQLException e)\n {\n e.printStackTrace();//The printStackTrace() method in Java is a tool used to handle exceptions and errors\n throw new DataAccessException(\"SQL Error in finding authToken function\");\n } finally\n {\n if (rs != null)\n {\n try\n {\n rs.close();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }\n }\n return null;\n }", "title": "" }, { "docid": "799f042c1c28355c555f6a47bdfd0188", "score": "0.48091432", "text": "@Override\n public int hashCode() { return getUserID(); }", "title": "" }, { "docid": "d708b7f5fa9429db741b7395bf1e50d3", "score": "0.48019764", "text": "@Override\n public void onTokenRefresh() {\n refreshedToken = FirebaseInstanceId.getInstance().getToken();\n Log.e(\"Refreshed token: \", refreshedToken);\n Constant.device_token=refreshedToken;\n sharedpreferences = getSharedPreferences(Constant.MyPREFERENCES, Context.MODE_PRIVATE);\n SharedPreferences.Editor editor = sharedpreferences.edit();\n// setting values to sharedpreferences keys.\n editor.putString(Constant.DEVICE_TOKEN, refreshedToken);\n editor.apply();\n }", "title": "" }, { "docid": "7c39c5059ca2abafd5ce02e584b6d5d2", "score": "0.48006317", "text": "protected abstract void _agencyKey(Wrap<Long> c);", "title": "" }, { "docid": "a944adfe14e1f066b7b5bf95592c26ce", "score": "0.47995096", "text": "public KEY getKey();", "title": "" }, { "docid": "0a362425abec0a5f26426021e5f57733", "score": "0.47946766", "text": "@Override\n\tpublic UUID getKey() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "373154a939d0ce98c9a8d4ab13c19293", "score": "0.47937343", "text": "RegistryKeyProperty getEndpointKey();", "title": "" }, { "docid": "10796b7e55cf98cb02daf5d2efa84245", "score": "0.47902074", "text": "public String getDeviceToken(){\n SharedPreferences sharedPreferences = mCtx.getSharedPreferences(\"FIREBASE\", Context.MODE_PRIVATE);\n return sharedPreferences.getString(\"token\", null);\n }", "title": "" }, { "docid": "e2429e337235d6149e9786d6db138f8a", "score": "0.4784978", "text": "public void deleteRefreshToken(String refreshTokenKey)\n {\n System.out.println(\"Deleting refresh token \" + refreshTokenKey) ;\n try\n {\n spUpdateDAO.callUpdateProc(\"d_oauth_refreshtoken\", refreshTokenKey) ;\n }\n catch (SQLException e)\n {\n e.printStackTrace() ;\n LOG.error(\"SQLException occured while deleting refresh token details\", e) ;\n }\n }", "title": "" }, { "docid": "962daab5480138847b420e3b3591424a", "score": "0.47825167", "text": "String getUserToken();", "title": "" }, { "docid": "b46021ceb3c0303e79df418e8e62bd6f", "score": "0.47793114", "text": "String getDataKey();", "title": "" }, { "docid": "f770ebf99c3b373c679f204b731ab93e", "score": "0.47717085", "text": "boolean isAssignableKey(Method getter) {\n synchronized (autoGeneratedKeyGetterCache) {\n if ( !autoGeneratedKeyGetterCache.containsKey(getter) ) {\n autoGeneratedKeyGetterCache.put(\n getter,\n ReflectionUtils.getterOrFieldHasAnnotation(getter, DynamoDBAutoGeneratedKey.class)\n && ( ReflectionUtils.getterOrFieldHasAnnotation(getter, DynamoDBHashKey.class) ||\n ReflectionUtils.getterOrFieldHasAnnotation(getter, DynamoDBRangeKey.class) ||\n ReflectionUtils.getterOrFieldHasAnnotation(getter, DynamoDBIndexHashKey.class) ||\n ReflectionUtils.getterOrFieldHasAnnotation(getter, DynamoDBIndexRangeKey.class)));\n }\n return autoGeneratedKeyGetterCache.get(getter);\n }\n }", "title": "" }, { "docid": "8d8768a223706d75ede6af47f1cb8dc0", "score": "0.4771292", "text": "@Override\n public void onTokenRefresh() {\n String refreshedToken = FirebaseInstanceId.getInstance().getToken();\n Log.d(TAG, \"Refreshed token: \" + refreshedToken);\n\n // TODO: Implement this method to send any registration to your app's servers.\n if(refreshedToken != null){\n SharedPreferences pref = getSharedPreferences(\"ActivityPREF\", Context.MODE_PRIVATE);\n String ID = pref.getString(ID_KEY,\"0000\");\n UpdateRegToken.update(ID,refreshedToken, getApplicationContext());\n }\n }", "title": "" }, { "docid": "4d0a4bf4722132e15cbfab273aa867d8", "score": "0.4755561", "text": "public interface VerifyingKey {\n\n}", "title": "" }, { "docid": "e1adf2ffa43af4d52bf090a34b750069", "score": "0.4743716", "text": "public boolean contains(GCookie.Key key);", "title": "" }, { "docid": "65c4c6e9d1bc814c058881825d781812", "score": "0.47418773", "text": "private static void storeRefreshToken(String refresh_token) {\n Properties properties = new Properties();\n properties.setProperty(\"refreshtoken\", refresh_token);\n System.out.println(\"refresh token= \" + properties.get(\"refreshtoken\"));\n try {\n properties.store(new FileOutputStream(TMP_TOKEN_PROPERTIES), null);\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "1480a5346d1c358529a3b6fe42fdfc38", "score": "0.47411332", "text": "int getAuthTokenProactivelyInvalidatePeriodMsec();", "title": "" }, { "docid": "40bd594ba18377250afb374c7c247dac", "score": "0.47330326", "text": "private String getExistingKey(String _key) {\n String OID = null;\n SearchQuery query = new SearchQuery();\n try {\n query.setQueryTypes(\"Admin_DBProperties\");\n query.addSelect(\"OID\");\n query.addWhereExprEqValue(\"Key\", _key);\n query.addWhereExprEqValue(\"BundleID\", getBundleID());\n query.executeWithoutAccessCheck();\n if (query.next()) {\n OID = (String) query.get(\"OID\");\n }\n\n query.close();\n return OID;\n } catch (EFapsException e) {\n LOG.error(\"getExisting()\", e);\n }\n\n return null;\n }", "title": "" }, { "docid": "18ef57db420884559907f47c821567cf", "score": "0.47321528", "text": "long getAuthCacheInterval();", "title": "" }, { "docid": "f00357825307e2d8d493307d20d35705", "score": "0.47287107", "text": "public User getbyToken(String token);", "title": "" }, { "docid": "daa6eb93754bcbe7f34163a7c53596db", "score": "0.4720312", "text": "@Override\n public boolean equals(Object o) {\n if (this == o) return true;\n if (o == null || getClass() != o.getClass()) return false;\n\n TokenHashMapKey that = (TokenHashMapKey) o;\n\n return (token != null)\n && token.getClass() == that.token.getClass()\n && token.hashCode() == that.token.hashCode();\n }", "title": "" }, { "docid": "cdac91150e094502be9dfa15610240c7", "score": "0.47139707", "text": "default Object getCacheKey() {\n return this;\n }", "title": "" }, { "docid": "ddc1c056fbf01e180527aaba1702780a", "score": "0.47134587", "text": "int getKey();", "title": "" }, { "docid": "9a2e2fa4ede1338d3b28fd5114486a55", "score": "0.470533", "text": "@Override\n public void onTokenRefresh() {\n String refreshedToken = FirebaseInstanceId.getInstance().getToken();\n if (refreshedToken != null) {\n Log.d(TAG, \"Refreshed token: \" + refreshedToken);\n settings = getSharedPreferences(PREFRENCES_NAME, Context.MODE_PRIVATE);\n RESTAURANTID= settings.getString(\"TAG_RESTAURANTID\", \"\");\n USERTYPEID= settings.getString(\"TAG_USERTYPEID\", \"\");\n EMPLOYEEID= settings.getString(\"TAG_EMPLOYEEID\", \"\");\n\n\n sendTokenToServer(refreshedToken);\n\n\n }\n }", "title": "" }, { "docid": "060ad3112b8f713ef2c0516578ac180d", "score": "0.46961242", "text": "public String getUserKey()\r\n {\r\n return userKey;\r\n }", "title": "" }, { "docid": "c04d2c00726d70ca1a62fc771576e6b0", "score": "0.4681805", "text": "@Override\n void onTokenUidNotMatch()\n {\n mAuthResult = false;\n ServiceLog.e(TAG,\n \"The token uid doesn't match the declare uid! Logpie may under attack\");\n }", "title": "" }, { "docid": "25dd1588df482b7a423d9b6a94148f58", "score": "0.46694857", "text": "@Override\n\tpublic int hashCode() {\n if (isNull()) {\n return 0;\n } else if (_moment == null) {\n return HashCode.Hash(_type.getToken().hashCode(), _id);\n }\n return HashCode.Hash(_type.getToken().hashCode(), _id, _moment.hashCode());\n }", "title": "" }, { "docid": "d8bc0636ac9d44361d91523a3b474209", "score": "0.46681345", "text": "public Object get(String key) {\n // If difference between insertion time and current time is less than or equal to timePeriod Property\n // i.e CurrentTime - InsertTime <= timePeriod\n // if(Above condition is matched)\n //{\n return cacheObjects.get(key);\n // }\n }", "title": "" }, { "docid": "d1fd8a0264cc025cc4602358f38532a0", "score": "0.46581578", "text": "io.dstore.values.StringValue getLastEditedByUserName();", "title": "" }, { "docid": "38b4ad5489d5c116a4f78fecf01182e9", "score": "0.4658068", "text": "abstract protected String getRecordToken();", "title": "" }, { "docid": "e5f9f0d2e48dff44d9e253e2dfc8480a", "score": "0.46532938", "text": "public static String getKeyIdUser() { return \"433571\"; }", "title": "" }, { "docid": "40d0be272f21217ffd8b4b5f9e0a72f4", "score": "0.46525592", "text": "@Override\n public String getToken() {\n return UUID.randomUUID().toString().replace('-', '_');\n }", "title": "" }, { "docid": "22ff68518fce5d5a8acd983ec644127e", "score": "0.46518123", "text": "int getAuthTokenInvalidateBeforeUsePeriodMsec();", "title": "" }, { "docid": "51374939f45e14445bb07c7e2d7d15a4", "score": "0.46475166", "text": "@Override\n\tpublic TokenInfo checkTokenInfo(String token) {\n\t\tString accessKey =getTokenAccessKey(token);\n\t\tTokenInfo tokenInfo=null;\n\t\ttry {\n\t\t\tValueOperations<Object, Object> opsForValue = redisTemplate.opsForValue();\n\t\t\tString createTime = (String)opsForValue.get(accessKey);\n\t\t\tif(createTime==null)\n\t\t\t{\n\t\t\t\tlogger.debug(\"token is null\");\n\t\t\t\treturn null;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\ttokenInfo = new TokenInfo();\n\t\t\t\ttokenInfo.setCreateTime(Long.parseLong(createTime));\n\t\t\t\tif(System.currentTimeMillis() - tokenInfo.getCreateTime()>tokenExpireSeconds)\n\t\t\t\t{\n\t\t\t\t\tlogger.debug(\"token is expire:\" + tokenInfo.getCreateTime());\n\t\t\t\t\treturn null;\n\t\t\t\t}\n\t\t\t\tif(System.currentTimeMillis() - tokenInfo.getCreateTime()>600)\n\t\t\t\t{\n\t\t\t\t\tsetTokenInfo(token,tokenInfo,durationSeconds);\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn tokenInfo;\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn null;\n\t}", "title": "" }, { "docid": "90607a769e69e977a5718eae966a4e0c", "score": "0.46473232", "text": "public <T> T getAttribute(Key<T> key);", "title": "" }, { "docid": "3c17e38cfd4ec7fec7b9af1aad1cabdf", "score": "0.46455514", "text": "VnfdMemberKey getKey();", "title": "" }, { "docid": "14dca2a03655ec31efc90c2cef3787bc", "score": "0.46338695", "text": "public void stockerIdent(){\n\t\tthis.identAStocker = YakaTokenManager.identLu;\n\t}", "title": "" }, { "docid": "48fb8aaf7436169b3653ff0f81f24878", "score": "0.46333522", "text": "boolean containsDigest(java.lang.String key);", "title": "" } ]
c68dfd3ab68613e6be460a68e5aa3d3e
Saves the current properties to a file at the given path
[ { "docid": "96d9282fb22b3d685cdb8386261675b7", "score": "0.7712521", "text": "private void saveCurrentProperties(File path) {\n\t\tProperties properties = new Properties();\n\t\tproperties.setProperty(\"user\", user);\n\t\tproperties.setProperty(\"password\", password);\n\t\tproperties.setProperty(\"url\", url);\n\t\tproperties.setProperty(\"port\", port);\n\t\tproperties.setProperty(\"databaseName\", databaseName);\n\t\tsaveProperties(path, properties);\n\t}", "title": "" } ]
[ { "docid": "9672c1c4bb2a9a600644fef731e80c15", "score": "0.78338087", "text": "private void saveProperties(File path, Properties properties) {\n\t\ttry {\n\t\t\tproperties.store(new FileOutputStream(path), \"\");\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace(); // TODO\n\t\t}\n\t}", "title": "" }, { "docid": "a73c8678f16405b93cad6eb4ed1ea4c8", "score": "0.7547628", "text": "public void savePropertyFile(String fullFilePath) throws IOException {\n OutputStream outputStream = null;\n try {\n outputStream = new FileOutputStream(fullFilePath);\n uiProperties.store(outputStream, null);\n } finally {\n if (outputStream != null) {\n outputStream.close();\n }\n }\n\n }", "title": "" }, { "docid": "ec85ad917aadd5aa780c0f13120dd127", "score": "0.75228155", "text": "public final void saveProperties() {\n FileWriter fw = null;\n if (propertiesFile != null) {\n try {\n fw = new FileWriter(propertiesFile);\n properties.store(fw, HEADER);\n } catch (IOException ex) {\n LOGGER.error(\"Error writing properties to \" + propertiesFile, ex);\n } finally {\n try {\n if (fw != null) {\n fw.close();\n }\n } catch (IOException ex) {\n LOGGER.error(null, ex);\n }\n }\n }\n }", "title": "" }, { "docid": "5ca407ad95e8e208f1fc8cb6dc371b98", "score": "0.71974653", "text": "protected void saveProperties() {\n\t\ttry {\n\t\t\t// first update the properties with the current GUI values\n\t\t\tstoreListToProperty(audioInList, \"audioInDevice\");\n\t\t\tstoreListToProperty(audioInPorts, \"audioInPort\");\n\t\t\tsetProperty(\"wavefile\", recorderFile.getText());\n\n\t\t\tFile file = getPropertiesFile();\n\t\t\tstatus(\"writing properties file: \" + file);\n\t\t\tprops.store(new FileOutputStream(file), getName()\n\t\t\t\t\t+ \" properties: machine generated, do not modify.\");\n\t\t} catch (Exception e) {\n\t\t\terror(e);\n\t\t}\n\t}", "title": "" }, { "docid": "32150bad0ba3c587f1d3f4a5bbeebf0f", "score": "0.71502846", "text": "public void save() throws IOException {\n if (filepath.lastIndexOf(\"/\") > 0) {\n new File(filepath.substring(0, filepath.lastIndexOf(\"/\") + 1)).mkdirs(); //Make directories\n }\n IOException toThrow = null;\n BufferedWriter out = null;\n try {\n propsFile.delete();\n propsFile = new File(filepath);\n out = new BufferedWriter(new FileWriter(propsFile, true));\n for (String prop : props.keySet()) {\n if (comments.containsKey(prop)) {\n for (String comment : comments.get(prop)) {\n out.write(comment);\n out.newLine();\n }\n }\n out.write(prop + \"=\" + props.get(prop));\n out.newLine();\n }\n } catch (IOException ioe) {\n //will rethrow later\n toThrow = ioe;\n } finally {\n if (out != null) {\n out.close();\n }\n if (toThrow != null) {\n throw toThrow;\n }\n }\n }", "title": "" }, { "docid": "35228a4a8141973d82201181cee53e1f", "score": "0.71454614", "text": "public static void writeProperties(Properties p, String path) throws FileNotFoundException {\r\n\r\n\t\tXMLEncoder en = new XMLEncoder(new BufferedOutputStream(new FileOutputStream(path)));\r\n\r\n\t\ten.writeObject(p);\r\n\t\ten.flush();\r\n\t\ten.close();\r\n\t}", "title": "" }, { "docid": "038ce37d524e0240f40bbf5ee918214e", "score": "0.69970787", "text": "public void save(String path) {\r\n setFilePath(path);\r\n\ttry {\r\n\t FileWriter save = new FileWriter(path);\r\n save.write(this.encode());\r\n\t save.close();\r\n\t} catch (IOException ex) {\r\n\t Logger.getLogger(RobotTree.class.getName()).log(Level.SEVERE, null, ex);\r\n\t}\r\n\tsaved = true;\r\n MainFrame.getInstance().prefs.put(\"FileName\", getFilePath());\r\n }", "title": "" }, { "docid": "904fe510e70c33f86101ec49106b4fb6", "score": "0.6934215", "text": "public void savePicardPathFromProperties(String pathToPicard) {\n\t\tProperties props = new Properties();\n\t\tprops.setProperty(PICARD_HOME, pathToPicard);\n\t\t// File o = new\n\t\t// File(PicardWrapper.class.getResource(PROPERTY_FILE).getFile());\n\t\tFile o = new File(PicardWrapper.class.getClassLoader().getResource(PROPERTY_FILE).getFile());\n\t\tOutputStream out;\n\t\ttry {\n\t\t\tout = new FileOutputStream(o);\n\t\t\tprops.store(out, \"\");\n\t\t} catch (FileNotFoundException e) {\n\t\t\tthis.log.severe(\"Cannot write Picard properties to \" + PROPERTY_FILE + \", \" + e.getMessage());\n\t\t} catch (IOException e) {\n\t\t\tthis.log.severe(\"I/O error writing Picard properties to \" + PROPERTY_FILE + \", \" + e.getMessage());\n\t\t}\n\t}", "title": "" }, { "docid": "dd89819a93d2adbf08532d8c057ebc3f", "score": "0.6923079", "text": "public void save() {\n\t\tfinal StringBuilder buf = new StringBuilder();\n\t\tfor (final WindowConfiguration config : configs.values()) {\n\t\t\tbuf.append(config.writeToPropertyString());\n\t\t}\n\t\tfor (final Object key : properties.keySet()) {\n\t\t\tif (key.toString().startsWith(\"config.\")) {\n\t\t\t\tbuf.append(key.toString() + \"=\" + properties.get(key) + \"\\n\");\n\t\t\t}\n\t\t}\n\n\t\t// ISO-8859-1 is the charset that Properties.load() wants.\n\t\ttry (OutputStream os = Persistence.get().getOutputStream(false,\n\t\t\t\tstendhal.getGameFolder(), FILE_NAME);\n\t\t\t\tOutputStreamWriter writer = new OutputStreamWriter(os, \"ISO-8859-1\")) {\n\t\t\twriter.append(buf.toString());\n\t\t} catch (final IOException e) {\n\t\t\t// ignore exception\n\t\t\tlogger.error(\"Can't write \" + stendhal.getGameFolder() + FILE_NAME, e);\n\t\t}\n\t}", "title": "" }, { "docid": "8fd1ba0f8a0c2884aaf3ff800adbacc9", "score": "0.6795986", "text": "public void save(String path) throws IOException {\n save(new File(path));\n }", "title": "" }, { "docid": "76d034f8e63e74429b13db9a51b63085", "score": "0.6739511", "text": "public void storeProperties() throws FileNotFoundException, IOException{\n\t File localDataFolder = new File(this.properties.getProperty(KEYS.LOCAL_DATA_FOLDER).replaceFirst(\"~\",\n System.getProperty(\"user.home\")));\n\t File localPropertiesFile = new File(localDataFolder, KEYS.PROPERTIES_FILENAME);\n\t this.properties.store(new FileOutputStream(localPropertiesFile), \"Generated properties file for Chlorination app\");\n\t\tthis.readProperties();\n\t}", "title": "" }, { "docid": "3b63ca3c2f7b8619c367b6a649383247", "score": "0.67195535", "text": "public boolean write(String path) {\r\n\t\tString serializedSettings = new Gson().toJson(this);\r\n\t\ttry {\r\n\t\t\tFileOutputStream outStream = new FileOutputStream(path, false);\r\n\t\t\tOutputStreamWriter outWriter = new OutputStreamWriter(outStream);\r\n\t\t\toutWriter.write(serializedSettings);\r\n\t\t\toutWriter.close();\r\n\t\t\toutStream.close();\r\n\t\t} catch (Exception e) {\r\n\t\t\tl.log(Level.WARNING, \"Cannot write settings.\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\tl.log(Level.INFO, \"Settings written as: \" + path);\r\n\t\treturn true;\r\n\t}", "title": "" }, { "docid": "95f3d10a50877713b95acf2ad6d917ce", "score": "0.6682137", "text": "public void save() {\n\t\ttry {\n\t\t\tif (store.needsSaving()) {\n\t\t\t\tif (!prefFile.exists()) {\n\t\t\t\t\tprefFile.getParentFile().mkdirs();\n\t\t\t\t}\n\t\t\t\tstore.save(new FileOutputStream(prefFile), null);\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tlog.log(Level.SEVERE, \"Save Preferences Error.\", e);\n\t\t}\n\t}", "title": "" }, { "docid": "e92722b00bf349673c1c54b72bc3ef38", "score": "0.66181475", "text": "public void save() {\n\t\tObjectOutputStream out = null;\n\t\t\n\t\ttry {\n\t\t\tFile file = new File(this.filePath);\n\t\t\tout = new ObjectOutputStream(new FileOutputStream(file));\n\t\t\tout.writeObject(this);\n\t\t\tout.flush();\n\t\t\t\n\t\t} catch (Exception e) {\n\t\t\tSystem.err.println(e.getMessage());\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\tif(out != null) {\n\t\t\t\ttry {\n\t\t\t\t\tout.close();\n\t\t\t\t} catch (IOException ioe) {\n\t\t\t\t}\n\t\t\t}\t\t\t\n\t\t}\n\t}", "title": "" }, { "docid": "f7b8909840b86a7751c6e7fcb674eb0f", "score": "0.6606206", "text": "public static void saveFile(Object value, String path) {\n try {\n FileOutputStream fileOut = new FileOutputStream(path);\n ObjectOutputStream fileObjectOut = new ObjectOutputStream(fileOut);\n fileObjectOut.writeObject(value);\n fileObjectOut.close();\n } catch( Exception ex) {\n ex.printStackTrace();\n }\n }", "title": "" }, { "docid": "0c9b6dc37228fe4a6d30d164fcf91b22", "score": "0.65259796", "text": "public static void writeInFile(String path, String data) {\n try {\n File file = new File(path + \"\\\\property.txt\");\n if (!file.exists()) {\n if (!file.createNewFile()) {\n FrameworkLogger.logFail(\"File not created\");\n }\n }\n FileWriter fw = new FileWriter(file.getAbsoluteFile());\n BufferedWriter bw = new BufferedWriter(fw);\n bw.write(data);\n bw.close();\n\n } catch (Exception ex) {\n FrameworkLogger.logError(ex.getMessage());\n }\n }", "title": "" }, { "docid": "dd886b0d7c252d3a16f176aab99c179d", "score": "0.6494201", "text": "static void saveMojoProperties(@NonNull MojoProperties properties) {\n final String mojoFileName = getMojoPropertiesFileName();\n try (PrintWriter pw = new PrintWriter(new FileOutputStream(mojoFileName))) {\n properties.store(pw, \"These are properties from the Mojo code generator\");\n pw.flush();\n }\n catch (Exception e) {\n throw new MojoException(String.format(\"ERROR: Tried to save '%s' file but encountered this: %s%n\", mojoFileName, e.getMessage()), e);\n }\n }", "title": "" }, { "docid": "5367754973ea39b097f7ea79ffc3d761", "score": "0.6493816", "text": "private void writeProperties() {\n // Write properties\n try {\n FileOutputStream openFileOutput = context.openFileOutput(CONFIG_PROPERTIES, Context.MODE_PRIVATE);\n openFileOutput.write(propertiesToString().getBytes());\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "7316165491d96a8c01314f1eca5465c5", "score": "0.64507097", "text": "public void save(OutputStream stream)\n throws IOException\n {\n this.properties.store(\n stream,\n this.getClass().getName()\n ) ;\n }", "title": "" }, { "docid": "70b2f5185f93b7c656b2765e36db5e37", "score": "0.64483213", "text": "public void store ()\n throws IOException, FileNotFoundException {\n File file = new File(this.filePath);\n if (! file.exists()) {\n if (! file.getParentFile().exists()) {\n file.getParentFile().mkdirs();\n }\n file.createNewFile();\n }\n\n OutputStreamWriter writer = new OutputStreamWriter(\n new FileOutputStream(file));\n this.store(writer, \"Torrefactor config file\");\n writer.close();\n LOG.info(\"Config saved\");\n }", "title": "" }, { "docid": "7438edd379d5a63f8483d87207c17e06", "score": "0.6417586", "text": "public boolean save(String path);", "title": "" }, { "docid": "a36a56bf5a66faba9e028355a37a90c3", "score": "0.64062464", "text": "public void save(String filepath) throws IOException{\n\t\tFileOutputStream fileOutputStream = new FileOutputStream(filepath);\n\t\tObjectOutputStream objectOutputStream = new ObjectOutputStream(fileOutputStream);\n\t\tobjectOutputStream.writeObject(this);\n\t\tobjectOutputStream.close();\n\t}", "title": "" }, { "docid": "df81dea4e97e790a6ac7a429bc47f0e7", "score": "0.6377289", "text": "private void storeProperties() throws IOException {\n PropertiesUtil.store(properties, propertiesFile,\n Sundry.ThinkParityImageHeader);\n }", "title": "" }, { "docid": "4a5bf2aaaf01a046726a1dbd25d4a2ff", "score": "0.6326431", "text": "public static void storeProperties()\n/* */ {\n/* 95 */ myAppFileUrl = propURL();\n/* */ \n/* */ try\n/* */ {\n/* 99 */ FileOutputStream propOutFile = new FileOutputStream(myAppFileUrl); \n/* */ \n/* */ try\n/* */ {\n/* 103 */ System.out.println(\"Properties file : \" + myAppFileUrl);\n/* */ \n/* 105 */ appProp.store(propOutFile, \"Bespoke properties file\");\n/* */ \n/* 107 */ propOutFile.close();\n/* */ \n/* */ }\n/* */ catch (IOException ioExec)\n/* */ {\n/* 112 */ System.out.println(ioExec.getMessage());\n/* */ }\n/* */ \n/* */ \n/* */ }\n/* */ catch (Exception exc)\n/* */ {\n/* 119 */ System.out.println(exc.getMessage());\n/* */ }\n/* */ }", "title": "" }, { "docid": "7b05aa00bac6b16b50dfd575c5650e2e", "score": "0.63255525", "text": "public void save(String storePath) throws FileNotFoundException, IOException {\n ObjectOutputStream oos = new ObjectOutputStream(new FileOutputStream(storePath));\n oos.writeObject(this);\n }", "title": "" }, { "docid": "e4abcd9343ed7fa0749c5279b724c571", "score": "0.6290371", "text": "public void save() throws IOException {\r\n\t\t//Exists Dir\r\n\t\tif(!dir.exists()) {\r\n\t\t\tdir.mkdirs();\r\n\t\t\tconfigFile.createNewFile();\r\n\t\t\t//Exists Lang File\r\n\t\t}else if(!configFile.exists()) {\r\n\t\t\tconfigFile.createNewFile();\r\n\t\t}\r\n\t\t//Speichern der Werte\r\n\t\t//CUIConfiguration config = CUIConfiguration.GSON.fromJson(fileReader, CUIConfiguration.class);\r\n\t\t\t\t\r\n\t\tString json = GSON.toJson(instance.settings);\r\n\t\tBufferedWriter writer = new BufferedWriter(new FileWriter(configFile));\r\n\t\twriter.write(json);\r\n\t\twriter.flush();\r\n\t\twriter.close();\r\n\t}", "title": "" }, { "docid": "ecead1e353c802684fb0b36d54bda14d", "score": "0.62621903", "text": "public void save(String path) throws IOException {\n // Open file and stream stream\n try (FileOutputStream fout = new FileOutputStream(path)) {\n try (ObjectOutputStream out = new ObjectOutputStream(fout)) {\n // Write out the hashmap with the contents\n out.writeObject(this.contacts);\n out.close();\n }\n }\n }", "title": "" }, { "docid": "2b045009af727ca29d49fcac21ccac25", "score": "0.621252", "text": "private void saveState(StrategyGameState state, String filepath) {\r\n\t\ttry (ObjectOutputStream objOut =\r\n\t\t\t\tnew ObjectOutputStream(new FileOutputStream(filepath))){\r\n\t\t\tobjOut.writeObject(state);\r\n\t\t} catch (IOException e) {\r\n\t\t\tSystem.out.println(e);\r\n\t\t\tthrow new RuntimeException();\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "da59318e2883511b3cfea2819e11ae09", "score": "0.62078553", "text": "public boolean putPropertiesFromFile(String path) {\n return putPropertiesFromFile(path, \".properties\");\n }", "title": "" }, { "docid": "6a1bb58370883efd2d8581ff02ef6434", "score": "0.62044847", "text": "public void saveLocationFile() {\n \t\t// Make sure that the settings file contains the latest data\n \t\tupdateElementsInSettings();\n \n \t\ttry {\n \t\t\tlocation.save();\n \t\t\tunsavedChanges = false;\n \t\t} catch (IOException e) {\n \t\t\tSystem.err.println(\"Error writing location file!\");\n \t\t\te.printStackTrace();\n \t\t}\n \t}", "title": "" }, { "docid": "be4a32112e621deafc80a2fae9a3ff98", "score": "0.61870325", "text": "public synchronized void save()\n \t{\n \t\tFile prefsFile = new ApplicationFiles().getUserPreferencesFile();\n \t\ttry\n \t\t{\n \t\t\tXMLBeanWriter wtr = new XMLBeanWriter(this);\n \t\t\twtr.save(prefsFile);\n \t\t}\n \t\tcatch (Exception ex)\n \t\t{\n \t\t\ts_log.error(s_stringMgr.getString(\"SquirrelPreferences.error.writing\",\n \t\t\t\t\t\t\t\t\t\t\t\tprefsFile.getPath()), ex);\n \t\t}\n \t}", "title": "" }, { "docid": "a6b6b4c0a4bf41327227cfa0b6406cfa", "score": "0.61857146", "text": "public static void changePropertiesFile(URL path) {\n propertiesFile = path;\n reloadProperties(getDefaultProperties());\n }", "title": "" }, { "docid": "4408f1b5d774e669df50e2e8747991f8", "score": "0.61821276", "text": "public void saveLocationToFile(File f) {\n \t\tlocation = new PersistentSettings(f);\n \t\tlocation.addSettingsUpdateListener(this);\n \t\tsaveLocationFile();\n \t}", "title": "" }, { "docid": "6159cf2f4ef9365be1c9df1f8e7c3f7e", "score": "0.6155925", "text": "private void saveConfig(String filename) throws IOException {\r\n\t\tBufferedWriter f = new BufferedWriter(new FileWriter(filename));\r\n\r\n\t\tf.write(_config.getText());\r\n\t\tf.close();\r\n\t}", "title": "" }, { "docid": "a97ca70275940e600aeccc40f59153c5", "score": "0.61435866", "text": "public void save() {\n if ((this.config == null) || (this.configFile == null)) {\n return;\n }\n\n try {\n this.getConfig().save(this.configFile);\n } catch (IOException ex) {\n this.plugin.getLogger().log(Level.SEVERE, \"Error whilst saving \" + this.configFile, ex);\n }\n }", "title": "" }, { "docid": "4f72feed1826853be779c6d1d8dc3ad1", "score": "0.6121921", "text": "private void saveNewConfig() {\n File configFile = Properties.getConfigFile();\n String newToken = tokenField.getText();\n String newPrefix = prefixField.getText();\n String newOwnerId = ownerIdField.getText();\n try {\n FileWriter fileWriter = new FileWriter(configFile);\n fileWriter.write(newToken + \"\\r\\n\");\n fileWriter.write(newPrefix + \"\\r\\n\");\n fileWriter.write(newOwnerId + \"\\r\\n\");\n fileWriter.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n Properties.setToken(newToken);\n Properties.setPrefix(newPrefix);\n }", "title": "" }, { "docid": "502f2f23126163855d0323055f61796b", "score": "0.6118477", "text": "public void saveSettings() {\n\t\tif (isSVG()) {\n\t\t\tTSUserPropertiesUtils.setString(IMAGE_FORMAT, \"svg\");\n\t\t} else if (isPNG()) {\n\t\t\tTSUserPropertiesUtils.setString(IMAGE_FORMAT, \"png\");\n\t\t} else if (isJPEG()) {\n\t\t\tTSUserPropertiesUtils.setString(IMAGE_FORMAT, \"jpeg\");\n\t\t}\n\n\t\tTSUserPropertiesUtils.setInteger(JPEG_QUALITY, m_jpg_slider.getValue());\n\t\tTSUserPropertiesUtils.setString(FILE_NAME, TSUtils.fastTrim(m_file_field.getText()));\n\t}", "title": "" }, { "docid": "1c53b6295a52e7222c5f38294336270e", "score": "0.6103655", "text": "public void saveAs() {\n askForSavePath().ifPresent(this::saveAs);\n }", "title": "" }, { "docid": "75f4f50ef757e85d9f31af9b181295d2", "score": "0.6076273", "text": "private void writeProperties(String lastCheck) {\n try (FileOutputStream fos = new FileOutputStream(path)) {\n properties.setProperty(\"last.check\", time.convertDate(LocalDateTime.now()));\n properties.store(fos, \"last check\");\n } catch (IOException e) {\n LOGGER.error(e.getMessage(), e);\n }\n }", "title": "" }, { "docid": "6a4669ee48b6bf279bd74ae0860289cb", "score": "0.6048365", "text": "public void updateFile() {\n try {\n FileOutputStream output = new FileOutputStream(this.configFile);\n this.props.store(output, null);\n output.close();\n this.changed = false;\n } catch (IOException e) {\n TPS_Logger.log(TPS_LoggingInterface.SeverenceLogLevel.ERROR, e);\n }\n }", "title": "" }, { "docid": "40e73625545e2588ac56b8c6eab51fea", "score": "0.6036426", "text": "public void saveName() {\n\t\ttry (FileInputStream in = new FileInputStream(\"clientconfig.properties\");\n\t\t\t\t){\n\n\t\t\tProperties propout = new Properties();\n\t\t\t// propout.write(propOutput);\n\t\t\tpropout.load(in);\n\t\t\tpropout.setProperty(\"Name\", name);\n\t\t\tFileOutputStream out = new FileOutputStream(\"clientconfig.properties\");\n\t\t\tpropout.store(out, null);\n\t\t\t\n\t\t} catch (IOException error) {\n\t\t\terror.printStackTrace();\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "73b50ebcf9d0d09c5c68b59f1162d4dd", "score": "0.60227275", "text": "private void saveSettings() {\n\t\t\n\t\ttry {\n\t\t\t\n\t\t\t\n\t\t\tsettings.save(settingsfile);\n\t\t\t//log.info(\"[Dwarven Antag] File successfully saved.\");\n\t\t} catch(Exception e) { //log.severe(\"[Dwarven Antag] Encountered critical error while saving files.\"); \n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "efd7a7946db1120666a98e5fac70fe93", "score": "0.6016465", "text": "private void setPath(String path, Properties props) {\n \ttry {\n \t\t_persistence.set(path, (props != null ? _persistence.toBytes(props) : null));\n \t} catch (Throwable t) {\n \t\tLOG.error(\"Persistence setPath Error: \" + t.getMessage());\n \t}\n }", "title": "" }, { "docid": "b8bb2bd845b27f05d226c433853bfacb", "score": "0.60113716", "text": "public static void saveConfig() {\n try {\n config.save(configFile);\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "22023d98967bb451b91ac504d898d9e7", "score": "0.5988539", "text": "@Override\n @OnThread(Tag.FXPlatform)\n public void doSave()\n {\n try\n {\n // Collect the various properties to be written out:\n Properties p = project.getProjectPropertiesCopy();\n p.setProperty(\"simulation.speed\", Integer.toString(lastUserSetSpeed));\n // Only save if not default:\n if (debugHandler.getShmFileSize() != VMCommsMain.DEFAULT_MAPPED_SIZE)\n {\n p.setProperty(\"shm.size\", Integer.toString(debugHandler.getShmFileSize()));\n }\n p.put(\"width\", Integer.toString((int) this.getWidth()));\n p.put(\"height\", Integer.toString((int) this.getHeight()));\n p.put(\"xPosition\", Integer.toString((int) Math.max(this.getX(), 0)));\n p.put(\"yPosition\", Integer.toString((int) Math.max(this.getY(), 0)));\n p.put(\"version\", Boot.GREENFOOT_API_VERSION);\n if (currentWorld != null)\n {\n p.put(\"world.lastInstantiated\", currentWorld.getQualifiedName());\n }\n project.saveEditorLocations(p);\n classDiagram.save(p);\n scenarioInfo.store(p);\n\n // Actually write out the properties to disk:\n project.getUnnamedPackage().save(p);\n \n // Save editor contents, etc:\n project.getImportScanner().saveCachedImports();\n project.saveAllEditors();\n }\n catch (IOException ioe)\n {\n // The exception is logged earlier, so we won't bother logging again.\n // However, alert the user:\n DialogManager.showMessageFX(this, \"error-saving-project\");\n }\n }", "title": "" }, { "docid": "7e78d6af68926dddc436c2d7549525ce", "score": "0.5975756", "text": "public void store() throws Exception {\n OutputStream out = new FileOutputStream(getSaveFilePathForName(\"level_saved.properties\"));\n Properties props = new Properties();\n props.setProperty(WIDTH_KEY, this.width + \"\");\n props.setProperty(HEIGHT_KEY, this.height + \"\");\n props.setProperty(PLAYER_KEY, player.getX() + \",\" + player.getY());\n props.setProperty(PLAYER_LIVES_KEY, player.getLivesLeft() + \"\");\n props.setProperty(PLAYER_INVENTORY_KEY, player.getInventory().size() + \"\");\n for (int x=0; x<this.width; x++) {\n for (int y=0; y<this.height; y++) {\n if (levelData[x][y] != null) {\n props.setProperty(x + \",\" + y, levelData[x][y].getRawValue() + \"\");\n }\n }\n }\n props.store(out, \"Saved on \" + System.currentTimeMillis());\n }", "title": "" }, { "docid": "0511416ee050dbca324196227b085eef", "score": "0.5962814", "text": "public void save(File file) throws IOException {\n toPropertyMap().saveJSON(file, true, true);\n }", "title": "" }, { "docid": "39826df74b389b52fa7cb9e264d61647", "score": "0.5931753", "text": "private void updatePropertiesFile() throws IOException {\n\n final String fileHeader = PROPERTIES_FILENAME\n + \" -- DO NOT EDIT\\n\";\n\n final Properties properties = new Properties();\n\n properties.setProperty(\n PROP_DATABASE_FILENAME,\n getDatabaseFilename());\n properties.setProperty(\n PROP_SERVER_HOSTNAME,\n getServerHostname());\n\n final FileOutputStream output = new FileOutputStream(\n PROPERTIES_FILENAME);\n\n properties.store(\n output,\n fileHeader);\n\n output.close();\n }", "title": "" }, { "docid": "4a250842632d066663361562ae94ae70", "score": "0.5918478", "text": "private void save() {\n StringBuilder saveText = new StringBuilder();\n this.portals.values().stream()\n .flatMap(map -> map.values().stream())\n .forEachOrdered(e -> e.toStringLine(saveText));\n\n // Save it, handle errors and log them\n this.saveFuture = AsyncTextWriter.writeSafe(this.saveFile, saveText.toString());\n this.saveFuture.exceptionally(t -> {\n plugin.getLogger().log(Level.SEVERE, \"Failed to save portals.txt\", t);\n return null;\n });\n }", "title": "" }, { "docid": "18a7cf5d3badc9273adccd042070ca28", "score": "0.58990425", "text": "private void trySave() throws IOException {\n File f = new File(path);\n if (!f.exists()) f.createNewFile();\n // Save\n props.store(new FileOutputStream(path), \"Scout identity file\");\n }", "title": "" }, { "docid": "75bfc6d17ab42d9daea1b82acd8b1cb7", "score": "0.5897648", "text": "private void createDefaultPropertiesFile(File path) {\n\t\tProperties properties = new Properties();\n\t\tproperties.setProperty(\"user\", \"\");\n\t\tproperties.setProperty(\"password\", \"\");\n\t\tproperties.setProperty(\"url\", \"\");\n\t\tproperties.setProperty(\"port\", \"\");\n\t\tproperties.setProperty(\"databaseName\", \"\");\n\t\tsaveProperties(path, properties);\n\t}", "title": "" }, { "docid": "403fe80c35c01827b73b1dee8385dbc7", "score": "0.58801603", "text": "void save(IConfigNode root, File file) throws IOException;", "title": "" }, { "docid": "afcb9280fe85990f0331529b051b8745", "score": "0.5879528", "text": "public void saveCurrentFile(){\r\n saveFile(currentFile);\r\n }", "title": "" }, { "docid": "153d10a0ccde55ad3b3ea85d459862fb", "score": "0.58736694", "text": "public void save() {\r\n PersistanceBroker persistenceBroker = PersistanceBroker.getInstance();\r\n persistenceBroker.save(this, USER_SETTINGS_FILE);\r\n }", "title": "" }, { "docid": "55add14d7f20d3309bc262f2fd063a54", "score": "0.5861105", "text": "public void updatePreferences() {\n\t\tFileOutputStream out;\n\t\ttry {\n\t\t\tFile configDir = new File(System.getProperty(\"user.home\")\n\t\t\t\t\t+ File.separator + Constants.CONFIG_STORAGEDIR);\n\t\t\tif (!configDir.exists()) {\n\t\t\t\tconfigDir.mkdir();\n\t\t\t}\n\t\t\tFile propsFile = new File(configDir, Constants.CONFIG_PROPSFILE);\n\t\t\tif (!propsFile.exists()) {\n\t\t\t\tpropsFile.createNewFile();\n\t\t\t}\n\t\t\tout = new FileOutputStream(propsFile);\n\t\t\tapplicationProps.setProperty(Constants.PROPKEY_LOGGING_LEVEL,\n\t\t\t\t\t\t\t\tSystem.getProperty(Constants.PROPKEY_LOGGING_LEVEL));\n\t\t\tapplicationProps.store(out, \"Saved Application Instance\");\n\t\t\tout.close();\n\t\t} catch (FileNotFoundException e) {\n\t\t\tlogger.severe(e.getMessage());\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\tlogger.severe(e.getMessage());\n\t\t}\n\t}", "title": "" }, { "docid": "fd2598103b327f0b09a5adeb690b55c9", "score": "0.5857176", "text": "public void saveFile(String path) throws FileNotFoundException {\n\t\t\n\t\tFile file = new File(path);\n\t\tPrintWriter output = new PrintWriter(file);\n\t\tfor (int i = 0; i < getLength(); i++) output.print(keyset.get(i));\n\t\toutput.close();\n\n\t}", "title": "" }, { "docid": "d141077d7c57a3b99c1c6cc6fe0d76bc", "score": "0.58561", "text": "public void save(String filename){\n //TODO\n // Useful for writing https://stackoverflow.com/q/18871341/4184410\n }", "title": "" }, { "docid": "eb13a966d2e277f829aba04fbbddc360", "score": "0.58541876", "text": "private void saveConfig()\n {\n // get all interesting values\n Rectangle wndRect = this.getBounds();\n props.setProperty(\"windowPos.X\", Integer.toString(wndRect.x));\n props.setProperty(\"windowPos.Y\", Integer.toString(wndRect.y));\n props.setProperty(\"window.Width\", Integer.toString(wndRect.width));\n props.setProperty(\"window.Height\", Integer.toString(wndRect.height));\n if(getExtendedState() == java.awt.Frame.MAXIMIZED_BOTH)\n {\n props.setProperty(\"window.Maximized\", \"true\");\n }\n else\n {\n props.setProperty(\"window.Maximized\", \"false\");\n }\n \n props.setProperty(\"splitterPos\", Integer.toString(splitPaneMain.getDividerLocation()));\n props.setProperty(\"ui-language\", uiLanguage);\n \n if(dicmlFile != null)\n {\n props.setProperty(\"last-dict\", dicmlFile.getAbsolutePath());\n }\n \n // store them\n try\n {\n props.storeToXML(new FileOutputStream(\n System.getProperty(\"user.home\") + \"/.owl/owl-reader.config\"),\n \"changes since last exit\");\n }\n catch(Exception e)\n {\n errorDlg.showError(i18n.getString(\"errorSaveConf\"), e);\n }\n }", "title": "" }, { "docid": "3350ae156ccaf05908a942ba36c85f21", "score": "0.5850882", "text": "public void save(String filePath) {\n\t\tthis.filePath = filePath;\n\t\tthis.save();\n\t}", "title": "" }, { "docid": "d6ee8cdd6a3f75162acd92e793d62f99", "score": "0.5845308", "text": "public void save()\n {\n // persist properties back to the node in the DB\n Map<QName, Serializable> props = new HashMap<QName, Serializable>(getProperties().size());\n for (String key : this.properties.keySet())\n {\n Serializable value = (Serializable) this.properties.get(key);\n \n // perform the conversion from script wrapper object to repo serializable values\n value = getValueConverter().convertValueForRepo(value);\n \n props.put(createQName(key), value);\n }\n this.nodeService.setProperties(this.nodeRef, props);\n }", "title": "" }, { "docid": "52690bbfd4a65d4d484879e28141fa5f", "score": "0.58253884", "text": "protected void saveSetting(CustomProperties prop) {\r\n\t\tprop.setProperty(\"square.gametype\", gametype);\r\n\t\tprop.setProperty(\"square.outlinetype\", outlinetype);\r\n\t\tprop.setProperty(\"square.tspinEnableType\", tspinEnableType);\r\n\t\tprop.setProperty(\"square.tntAvalanche\", tntAvalanche);\r\n\t\tprop.setProperty(\"square.grayoutEnable\", grayoutEnable);\r\n\t\tprop.setProperty(\"square.version\", version);\r\n\t}", "title": "" }, { "docid": "923104a347217cd1811e61a9ac620fbc", "score": "0.5798626", "text": "private void saveSettings() {\n Properties prop = new Properties();\n OutputStream output = null;\n try {\n //set the properties file\n output = new FileOutputStream(\"game.properties\");\n\n //board size\n int boardDimension = Integer.parseInt(newBoardSize.getText());\n prop.setProperty(\"Boardsize\", newBoardSize.getText());\n\n //network username\n prop.setProperty(\"Username\", newUserName.getText());\n\n //AES encryption\n boolean selected = enableAES.isSelected();\n prop.setProperty(\"EnableAESEncrpytion\", Boolean.toString(selected));\n\n //AI difficulty\n prop.setProperty(\"AIDifficulty\", newAIDifficulty.getSelectedItem().toString());\n\n //sound\n selected = enableSound.isSelected();\n prop.setProperty(\"EnableSound\", Boolean.toString(selected));\n prop.store(output, null);\n \n //if there is an IO error apply default settings\n } catch (IOException e) {\n JOptionPane.showMessageDialog(null, \"IO Exception Error, default settings will be applied\", \"IO Error\", JOptionPane.WARNING_MESSAGE);\n applyDefaultSettings();\n\n //if there is a number format exception apply default settings\n } catch (NumberFormatException e) {\n JOptionPane.showMessageDialog(null, \"Board Size cannot be a string default settings applied\", \"Number Format Exception\", JOptionPane.WARNING_MESSAGE);\n applyDefaultSettings();\n\n } finally {\n if (output != null) {\n try {\n output.close();\n //remove the frame\n dispose();\n } catch (IOException e) {\n JOptionPane.showMessageDialog(null, \"IO Exception Error, please try again\", \"IO Error\", JOptionPane.WARNING_MESSAGE);\n }\n }\n }\n }", "title": "" }, { "docid": "7b9fe5163f0662ee1584f4d4bb2c6535", "score": "0.5784777", "text": "public void saveToFile(String filename) {\r\n\r\n\t}", "title": "" }, { "docid": "3ea3f58168313195ce6559442e7ebbdd", "score": "0.57818234", "text": "public static void createPropertiesFile(Properties jmsProp, String configFile2)\r\n\t\t\tthrows IOException {\n\t\tPath dirPath = Paths.get(configFile2);\r\n\t\tif (Files.exists(dirPath)) {\r\n\t\t\tdeletePropertiesFile(configFile2);\r\n\t\t}\r\n\t\tPath filePath = Files.createFile(dirPath);\r\n\t\tOutputStream out = new BufferedOutputStream(Files.newOutputStream(\r\n\t\t\t\tfilePath, StandardOpenOption.CREATE, StandardOpenOption.APPEND));\r\n\t\tjmsProp.store(out, \"Configuration Properties\");\r\n\t\tout.close();\r\n\t\tif (Files.exists(dirPath)) {\r\n\t\t\tSystem.out.println(dirPath + \" exists\");\r\n\t\t\tprint(configFile2); \r\n\t\t}\r\n\t}", "title": "" }, { "docid": "640c924608c8e2c3f12305496f1510f1", "score": "0.5778882", "text": "private void saveVoteValues() throws IOException {\n\t\tvoteValues.setProperty(\"vote_small\", txtVoteSmall.getText());\n\t\tvoteValues.setProperty(\"vote_medium\", txtVoteMedium.getText());\n\t\tvoteValues.setProperty(\"vote_big\", txtVoteBig.getText());\n\t\t\n\t\ttry(Writer writer = new FileWriter(\"data/voting-values.prop\")){\n\t\t\tvoteValues.store(writer, \"voting values\");\n\t\t}\n\t}", "title": "" }, { "docid": "5be1e266b87c8189577a1e7b2385b51e", "score": "0.5766723", "text": "public synchronized void save() {\n try {\n CONFIGURATION.save();\n } catch (ConfigurationException e) {\n game.getLogger().fatal(e);\n }\n }", "title": "" }, { "docid": "72725fd029bc81e99701670e897c5273", "score": "0.5763765", "text": "public void storeAsProperties (OutputStream out) throws IOException {\r\n\t\tstoreAsProperties(out, null);\r\n\t}", "title": "" }, { "docid": "b42558fd54847031b3e56e56280e51e4", "score": "0.57572037", "text": "public void save(){\n //TODO: Add encryption to the serialization to ensure security. Use the provided password.\n FileOutputStream fos = null;\n ObjectOutputStream out = null;\n try {\n fos = new FileOutputStream(SAVE_FILE);\n out = new ObjectOutputStream(fos);\n out.writeObject(this);\n out.close();\n } catch (IOException ex) {\n ex.printStackTrace();\n }\n }", "title": "" }, { "docid": "d9bb981f1d73f37a9ddc57ab5a76f1ba", "score": "0.57507265", "text": "public void savePhotoPath(String path) {\n Editor edit = getSharedPreferences(\"myJpgPath\", 0).edit();\n edit.putString(\"myJpgPath\", path);\n edit.commit();\n }", "title": "" }, { "docid": "6f8a0fae007f3a9cff3b76c493d468f0", "score": "0.5742139", "text": "private void saveTo(Path destination) {\r\n\t\tvar builder = new GeometricalObjectSaveFileBuilder();\r\n\t\t\r\n\t\tfor(int i = 0; i < model.getSize(); i++) {\r\n\t\t\tmodel.getObject(i).accept(builder);\r\n\t\t}\r\n\t\t\r\n\t\tString fileText = builder.getFileText();\r\n\t\t\r\n\t\ttry {\r\n\t\t\tFiles.write(destination, fileText.getBytes());\r\n\t\t} catch (IOException ex) {\r\n\t\t\tSystem.err.println(\"Could not write to the file.\");\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\tchangeCurrentPathTo(destination);\r\n\t\tmodel.clearModifiedFlag();\r\n\t\t\r\n\t\tJOptionPane.showMessageDialog(JVDraw.this, \"Project successfully saved!\");\r\n\t}", "title": "" }, { "docid": "237c8740b0f39856d17283311d57096e", "score": "0.57397515", "text": "public void saveServerConfig() {\n try (OutputStream output = new FileOutputStream(serverLocation + \"\\\\\" + \"server.properties\")) {\n Properties prop = new Properties();\n configs.forEach(e -> prop.setProperty(e.getAttribute(), e.getValue()));\n prop.store(output, null);\n } catch (IOException io) {\n io.printStackTrace();\n }\n }", "title": "" }, { "docid": "21096d67491bb0277157f3efc7b056b4", "score": "0.5738784", "text": "public void saveColor() {\n\t\t\n\t\ttry (FileInputStream in = new FileInputStream(\"clientconfig.properties\");\n\t\t\t\t){\n\n\t\t\tProperties propout = new Properties();\n\t\t\t// propout.write(propOutput);\n\t\t\tpropout.load(in);\n\t\t\tpropout.setProperty(\"ColorR\", String.valueOf(color.getRed()));\n\t\t\tpropout.setProperty(\"ColorG\", String.valueOf(color.getGreen()));\n\t\t\tpropout.setProperty(\"ColorB\", String.valueOf(color.getBlue()));\n\t\t\tFileOutputStream out = new FileOutputStream(\"clientconfig.properties\");\n\t\t\tpropout.store(out, null);\n\t\t\t\n\t\t} catch (IOException error) {\n\t\t\terror.printStackTrace();\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "2d665b1e42284cbab556870cd86e69d3", "score": "0.57362795", "text": "public static void save() {\r\n if (!DATA_DIR.exists()) {\r\n DATA_DIR.mkdirs();\r\n }\r\n\r\n Gson gson = new GsonBuilder().setPrettyPrinting().create();\r\n try (Writer writer = new BufferedWriter(new FileWriter(PORTFOLIO_FILE))) {\r\n gson.toJson(config, writer);\r\n LOGGER.debug(\"Configuration saved\");\r\n } catch (IOException e) {\r\n LOGGER.error(\"Could not write data file: \" + PORTFOLIO_FILE.getAbsolutePath(), e);\r\n }\r\n }", "title": "" }, { "docid": "b5b03226f6c5b886ab0b13434f4991dc", "score": "0.5726135", "text": "void save(final File file) throws IOException;", "title": "" }, { "docid": "1fb233df093f6fbb211676eecac88bd2", "score": "0.5724821", "text": "public String getSavepath() {\n return savepath;\n }", "title": "" }, { "docid": "9a622129c4eef152561c407b45a79953", "score": "0.5720867", "text": "public void savePhotoPath4(String path) {\n Editor edit = getSharedPreferences(\"myJpgPath4\", 0).edit();\n edit.putString(\"myJpgPath4\", path);\n edit.commit();\n }", "title": "" }, { "docid": "e3735038b851f801b0fc1df6b861d061", "score": "0.570101", "text": "@Override\n void save(String path, T object, KvSaveCallback callback) {\n Collection<KvProperty> props = getProps(object);\n if(props.isEmpty()) {\n throw new IllegalArgumentException(\"The path '\" + path +\n \"' is mapped to object of type \" + object.getClass() + \" which has no props.\");\n }\n //store type of object\n KeyValueStorage storage = getStorage();\n saveType(path, object, storage);\n\n //store props\n for(KvProperty property: props) {\n String strval = property.get(object);\n String key = property.getKey();\n String proppath = KvUtils.join(path, key);\n try {\n KvNode res = storage.set(proppath, strval);\n if(callback != null) {\n callback.call(key, res);\n }\n } catch (Exception e) {\n throw new RuntimeException(\"Error at path: \" + proppath, e);\n }\n }\n\n }", "title": "" }, { "docid": "71f53819afc7e3b92964f8c71ad56954", "score": "0.569228", "text": "public void save(File file) {\n try {\n FileOutputStream strm = new FileOutputStream(file);\n BufferedOutputStream buff = new BufferedOutputStream(strm);\n settings.store(buff, getDescription());\n buff.flush();\n strm.flush();\n buff.close();\n strm.close();\n changed = false;\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "642dfd293443afec37705a3bd42169cd", "score": "0.56913525", "text": "public static void save() throws IOException {\n ConfigUtil.saveConfigData(Config.getInstance().getDataClone(), Config.getInstance().configFile);\n }", "title": "" }, { "docid": "ad594dafb7cd3aa3f8f2fdb5441c0952", "score": "0.5685466", "text": "public static void saveData() {\n try {\n Path path = Paths.get(PATH_NAME);\n Files.createDirectories(path.getParent());\n writeToFile(PATH_NAME);\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "5a9dd40a4bbdc67322b818e31a573e70", "score": "0.5684495", "text": "public void store() throws IOException {\n\t\tstore(DEFAULT_SAVE_FILE);\n\t}", "title": "" }, { "docid": "301592da10226b53ec2946870e9e0273", "score": "0.56832075", "text": "protected void save(Properties settingsProps) {\n\t\tPoint windowPosition = (this.windowPosition == null) ? getDefaultWindowPosition() : this.windowPosition;\n\t\tDimension windowSize = (this.windowSize == null) ? getDefaultWindowSize() : this.windowSize;\n\t\t\n\t\tsettingsProps.put( \"windowPositionX\", windowPosition.x + \"\" );\n\t\tsettingsProps.put( \"windowPositionY\", windowPosition.y + \"\" );\n\t\tsettingsProps.put( \"windowWidth\", windowSize.width + \"\" );\n\t\tsettingsProps.put( \"windowHeight\", windowSize.height + \"\" );\n\t}", "title": "" }, { "docid": "81ff56a0d7fc4f942c376a0ed3ca7b3c", "score": "0.5681592", "text": "private void create() {\n properties = new Properties();\n try (OutputStream output = new FileOutputStream(GlobalManager.getBaselinePath() + fileName + \".properties\")) {\n properties.store(output, null);\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "a932b31234567ac09c3d23b7b1daeb40", "score": "0.5678271", "text": "public void save(FileOutputStream stream) throws IOException;", "title": "" }, { "docid": "ea1ac10e960d628d31839b9a41a97c92", "score": "0.5676545", "text": "public void save(String path) throws IOException {\n if (toSave.isEmpty()) throw new IOException(\"Nothing to save.\");\n\n if (!path.endsWith(\".prc\")) path += \".prc\";\n\n try {\n PrintWriter writer = new PrintWriter(new BufferedWriter(new FileWriter(path)));\n\n Press toWrite;\n long prevTime = 0 , time;\n while (!toSave.isEmpty()) {\n toWrite = toSave.remove(0);\n\n time = (long) toWrite.getDrawTime();\n if ((time - prevTime) < 50)\n time = prevTime;\n\n writer.println(time + \":\" + toWrite.getColor()); //Draw time is actually\n // press time int this case.\n prevTime = time;\n }\n writer.close();\n } catch (IOException e) {\n throw new IOException(\"Problem with writing specified file: \" + e.getMessage());\n }\n\n }", "title": "" }, { "docid": "7a29ede8b0a5781a71258ea97bc1a162", "score": "0.56740123", "text": "public final void save() {\n try {\n file.save(managed);\n if (internal_name != null) {\n YamlReloader reloader = new YamlReloader(plugin, managed, internal_name);\n if (reloader.reloadAndCopy())\n file.loadFromString(reloader.getYamlString());\n }\n } catch (Throwable e) {\n logger.scheduleLog(Level.GRAVE, e);\n logger.scheduleLog(Level.INFO, \"Error while saving file \" + managed.getName());\n }\n }", "title": "" }, { "docid": "75b6ea15f099d9bf73417a6ea8924543", "score": "0.5658614", "text": "public static void savePreferences() throws IOException {\n FileOutputStream fos = new FileOutputStream(BaseTestRunner.getPreferencesFile());\n try {\n BaseTestRunner.getPreferences().store(fos, \"\");\n }\n finally {\n fos.close();\n }\n }", "title": "" }, { "docid": "74bb5b648f1d191f93b6d45c27af212d", "score": "0.56559885", "text": "public void saveHomesFile() {\n try {\n homes.save(file);\n } catch (IOException e) {\n getLogger().log(Level.SEVERE, \"Could not save homes file.\\nHere is the stack trace:\");\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "c65add6dbdad4b8347d66a51d8b72e54", "score": "0.56448776", "text": "public static void saveConfig() throws IOException {\n cfg.cfgVersion = Config.CURRENT_CFG_VERSION;\n Writer w = new FileWriter(config_file);\n gson.toJson(cfg, w);\n w.close();\n }", "title": "" }, { "docid": "165dbcddd1c0fa2d5093119f33f12695", "score": "0.5643974", "text": "public void store () {\n\t\tLOG.debug(\"Storing config file\");\n\t\ttry {\n\t\t\tWriter file = new FileWriter (EnvironmentInfo.getProperty(\"CONFIG_FILE_LOCATION\"));\n\t\t \tBufferedWriter bwr = new BufferedWriter(file);\n\t\t \tString config = fileIdUnderProcess+\",\"+ObjectsReadFromFile;\n\t\t \tbwr.write(config);\n\t\t \tbwr.close();\n\t\t} catch (Exception e) {\n\t\t\tLOG.error(\"Could not write data to the config file\", e);\n\t\t}\n\t}", "title": "" }, { "docid": "0dd300ef99afeddd9d96438a34268eb9", "score": "0.5637884", "text": "private void saveInFile(){\n\t\tGson gson = new Gson();\n\t\t\ttry {\n\t\t\t\tFileOutputStream fos = openFileOutput(FILENAME, 0);\n\t\t\t\tOutputStreamWriter osw = new OutputStreamWriter(fos);\n\t\t\t\tgson.toJson(Claims, osw);\n\t\t\t\tosw.flush();\n\t\t\t\tfos.close();\n\t\t\t} catch (FileNotFoundException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t} catch (IOException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "2de44bff47d1fe846d7c8bd820196a26", "score": "0.563329", "text": "private void saveConfig() {\n\t\tif (warpConfig == null || warpFileConfig == null)\n\t\t\treturn;\n\t\t\t\t\t\t\t\n\t\ttry {\n\t\t\twarpFileConfig.save(warpConfig);\n\t\t} catch (IOException e) {\n\t\t\tplugin.getLogger().log(Level.SEVERE, \"Could not save config to \" + warpFileConfig, e);\n\t\t}\n\t}", "title": "" }, { "docid": "35108a45da2063300bb672cc11697fd3", "score": "0.5628817", "text": "private void saveSettings(){\n int selectedRes = screenSizeList.getSelectedItemPosition();\n if (selectedRes == 3){\n screenResX = Integer.parseInt(editTextScreenResX.getText().toString());\n screenResY = Integer.parseInt(editTextScreenResY.getText().toString());\n }\n\n // get numbers from editTexts\n shiftX = Integer.parseInt(editTextShiftX.getText().toString());\n shiftY = Integer.parseInt(editTextShiftY.getText().toString());\n touchResolutionX = Integer.parseInt(editTextTouchResX.getText().toString());\n touchResolutionY = Integer.parseInt(editTextTouchResY.getText().toString());\n\n // save them to file\n editor.putInt(\"screenResX\", screenResX);\n editor.putInt(\"screenResY\", screenResY);\n editor.putInt(\"shiftX\", shiftX);\n editor.putInt(\"shiftY\", shiftY);\n editor.putInt(\"touchResolutionX\", touchResolutionX);\n editor.putInt(\"touchResolutionY\", touchResolutionY);\n editor.commit();\n Toast.makeText(getApplicationContext(), \"Settings saved!\", Toast.LENGTH_SHORT).show();\n }", "title": "" }, { "docid": "070995f4e0c3675a60c1e34c25ab493b", "score": "0.56064516", "text": "public boolean putPropertiesFromFile(String path, String extension) {\n\n if (getState() != ServerConstants.SERVER_STATE_SHUTDOWN) {\n throw Error.error(ErrorCode.GENERAL_ERROR, \"server properties\");\n }\n\n path = FileUtil.getFileUtil().canonicalOrAbsolutePath(path);\n\n ServerProperties p = ServerConfiguration.getPropertiesFromFile(\n ServerConstants.SC_PROTOCOL_HSQL, path, extension);\n\n if (p == null || p.isEmpty()) {\n return false;\n }\n\n printWithThread(\"putPropertiesFromFile(): [\" + path + \".properties]\");\n\n try {\n setProperties(p);\n } catch (Exception e) {\n throw Error.error(e, ErrorCode.GENERAL_ERROR,\n ErrorCode.M_Message_Pair,\n new String[]{ \"Failed to set properties\" });\n }\n\n return true;\n }", "title": "" }, { "docid": "60d987a62395e54420cf7a207f16318c", "score": "0.560467", "text": "public void save() {\n \t\tsaveOption(Constants.PROP_DEFAULT_APPENDER_NAME, defaultAppenderName);\n \t\tsaveOption(Constants.PROP_RECREATE_DEFAULT_APPENDER, recreateDefaultAppender);\n \t\tsaveOption(Constants.PROP_LOG_UNCAUGHT_EXCEPTIONS, logUncaughtExceptions);\n \t}", "title": "" }, { "docid": "4e6e6ebaeb3707ccc773d167fa29645b", "score": "0.5603696", "text": "void save(File file) throws IOException;", "title": "" }, { "docid": "17e5f815d33545b6bf59e842304a5496", "score": "0.5597893", "text": "void setFilePath(Path path);", "title": "" }, { "docid": "e60aa2f58e9eaafc11e484386b5015af", "score": "0.5588374", "text": "public boolean saveFile(File file) {\n try {\n propertyBundle.store(new FileOutputStream(file),\n \"ArgoUML properties\");\n LOG.log(Level.INFO, \"Configuration saved to {0}\", file);\n return true;\n } catch (Exception e) {\n if (canComplain) {\n LOG.log(Level.WARNING,\n \"Unable to save configuration {0}\", file);\n }\n canComplain = false;\n }\n\n return false;\n }", "title": "" }, { "docid": "9b8eb6101e0f2d157a1698c10c4c4a58", "score": "0.5583407", "text": "public void save() throws IOException;", "title": "" }, { "docid": "97ef06d63de81fa6e6a3ee207bb0678e", "score": "0.55735", "text": "public void saveConfig(Object config) throws IOException {\n\n\t\tObjectWriter writer = new ObjectMapper().writerWithDefaultPrettyPrinter();\n\n\t\tString filename = config.getClass().getSimpleName().toLowerCase()+\".json\";\n\n\t\twriter.writeValue(new File(filename), config);\n\n\t}", "title": "" } ]
4b03dc836e424dd70a81013c49bb0430
Test case number: 125 /Coverage entropy=0.0
[ { "docid": "6816b9bc8af80b0e1f65f4c51ca3d11b", "score": "0.0", "text": "@Test(timeout = 4000)\n public void test125() throws Throwable {\n String string0 = EWrapperMsgGenerator.tickSnapshotEnd(10);\n assertEquals(\"id=10 =============== end ===============\", string0);\n }", "title": "" } ]
[ { "docid": "7b5f59baa009a02347ccd855580f091e", "score": "0.6807658", "text": "@Test(timeout = 4000)\n public void test83() throws Throwable {\n RegressionByDiscretization regressionByDiscretization0 = new RegressionByDiscretization();\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertNotNull(regressionByDiscretization0);\n assertFalse(regressionByDiscretization0.getDebug());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n \n Capabilities capabilities0 = regressionByDiscretization0.getCapabilities();\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertNotNull(capabilities0);\n assertFalse(regressionByDiscretization0.getDebug());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertEquals(2, capabilities0.getMinimumNumberInstances());\n assertTrue(capabilities0.hasDependencies());\n \n TestInstances testInstances0 = TestInstances.forCapabilities(capabilities0);\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertNotNull(testInstances0);\n assertFalse(regressionByDiscretization0.getDebug());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertEquals(2, capabilities0.getMinimumNumberInstances());\n assertTrue(capabilities0.hasDependencies());\n assertEquals(1, testInstances0.getNumDate());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertFalse(testInstances0.getNoClass());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(1, testInstances0.getNumRelationalNumeric());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(4, testInstances0.getNumAttributes());\n assertEquals(1, testInstances0.getNumNumeric());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(0, testInstances0.getClassType());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(20, testInstances0.getNumInstances());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(1, testInstances0.getNumRelationalDate());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(2, testInstances0.getNumClasses());\n \n Instances instances0 = testInstances0.generate(\" \");\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertNotNull(instances0);\n assertFalse(regressionByDiscretization0.getDebug());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertEquals(2, capabilities0.getMinimumNumberInstances());\n assertTrue(capabilities0.hasDependencies());\n assertEquals(1, testInstances0.getNumDate());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertFalse(testInstances0.getNoClass());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(1, testInstances0.getNumRelationalNumeric());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(4, testInstances0.getNumAttributes());\n assertEquals(1, testInstances0.getNumNumeric());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(0, testInstances0.getClassType());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(20, testInstances0.getNumInstances());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(1, testInstances0.getNumRelationalDate());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(4, instances0.numAttributes());\n assertEquals(\"Testdata\", instances0.relationName());\n assertEquals(20, instances0.numInstances());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertEquals(20, instances0.size());\n assertFalse(instances0.checkForStringAttributes());\n assertEquals(1, instances0.numClasses());\n assertEquals(3, instances0.classIndex());\n \n Evaluation evaluation0 = new Evaluation(instances0);\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertNotNull(evaluation0);\n assertFalse(regressionByDiscretization0.getDebug());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertEquals(2, capabilities0.getMinimumNumberInstances());\n assertTrue(capabilities0.hasDependencies());\n assertEquals(1, testInstances0.getNumDate());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertFalse(testInstances0.getNoClass());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(1, testInstances0.getNumRelationalNumeric());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(4, testInstances0.getNumAttributes());\n assertEquals(1, testInstances0.getNumNumeric());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(0, testInstances0.getClassType());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(20, testInstances0.getNumInstances());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(1, testInstances0.getNumRelationalDate());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(4, instances0.numAttributes());\n assertEquals(\"Testdata\", instances0.relationName());\n assertEquals(20, instances0.numInstances());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertEquals(20, instances0.size());\n assertFalse(instances0.checkForStringAttributes());\n assertEquals(1, instances0.numClasses());\n assertEquals(3, instances0.classIndex());\n assertFalse(evaluation0.getDiscardPredictions());\n assertEquals(Double.NaN, evaluation0.rootRelativeSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanPriorSquaredError(), 0.01);\n assertEquals(0.0, evaluation0.correct(), 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(Double.NaN, evaluation0.relativeAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctCorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctUnclassified(), 0.01);\n assertEquals(Double.NaN, evaluation0.sizeOfPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanAbsoluteError(), 0.01);\n assertEquals(0.0, evaluation0.incorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.errorRate(), 0.01);\n assertEquals(0.0, evaluation0.totalCost(), 0.01);\n assertEquals(0.0, evaluation0.numInstances(), 0.01);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.avgCost(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanPriorAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.coverageOfTestCasesByPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctIncorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanEntropyGain(), 0.01);\n \n double[] doubleArray0 = new double[9];\n doubleArray0[0] = (double) 2;\n doubleArray0[1] = (double) (-2);\n doubleArray0[2] = (double) 1;\n doubleArray0[3] = (double) 0;\n doubleArray0[5] = (double) 0;\n doubleArray0[6] = (double) 0;\n DenseInstance denseInstance0 = new DenseInstance(1, doubleArray0);\n assertEquals(6, AbstractInstance.s_numericAfterDecimalPoint);\n assertNotNull(denseInstance0);\n assertArrayEquals(new double[] {2.0, (-2.0), 1.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, doubleArray0, 0.01);\n assertEquals(1.0, denseInstance0.weight(), 0.01);\n assertEquals(9, denseInstance0.numValues());\n assertEquals(9, denseInstance0.numAttributes());\n assertEquals(9, doubleArray0.length);\n \n ConverterUtils.DataSource converterUtils_DataSource0 = new ConverterUtils.DataSource(instances0);\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertNotNull(converterUtils_DataSource0);\n assertFalse(regressionByDiscretization0.getDebug());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertEquals(2, capabilities0.getMinimumNumberInstances());\n assertTrue(capabilities0.hasDependencies());\n assertEquals(1, testInstances0.getNumDate());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertFalse(testInstances0.getNoClass());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(1, testInstances0.getNumRelationalNumeric());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(4, testInstances0.getNumAttributes());\n assertEquals(1, testInstances0.getNumNumeric());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(0, testInstances0.getClassType());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(20, testInstances0.getNumInstances());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(1, testInstances0.getNumRelationalDate());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(4, instances0.numAttributes());\n assertEquals(\"Testdata\", instances0.relationName());\n assertEquals(20, instances0.numInstances());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertEquals(20, instances0.size());\n assertFalse(instances0.checkForStringAttributes());\n assertEquals(1, instances0.numClasses());\n assertEquals(3, instances0.classIndex());\n assertFalse(converterUtils_DataSource0.isIncremental());\n \n DenseInstance denseInstance1 = (DenseInstance)converterUtils_DataSource0.nextElement(instances0);\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertEquals(6, AbstractInstance.s_numericAfterDecimalPoint);\n assertNotNull(denseInstance1);\n assertFalse(denseInstance1.equals((Object)denseInstance0));\n assertFalse(regressionByDiscretization0.getDebug());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertEquals(2, capabilities0.getMinimumNumberInstances());\n assertTrue(capabilities0.hasDependencies());\n assertEquals(1, testInstances0.getNumDate());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertFalse(testInstances0.getNoClass());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(1, testInstances0.getNumRelationalNumeric());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(4, testInstances0.getNumAttributes());\n assertEquals(1, testInstances0.getNumNumeric());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(0, testInstances0.getClassType());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(20, testInstances0.getNumInstances());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(1, testInstances0.getNumRelationalDate());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(4, instances0.numAttributes());\n assertEquals(\"Testdata\", instances0.relationName());\n assertEquals(20, instances0.numInstances());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertEquals(20, instances0.size());\n assertFalse(instances0.checkForStringAttributes());\n assertEquals(1, instances0.numClasses());\n assertEquals(3, instances0.classIndex());\n assertFalse(converterUtils_DataSource0.isIncremental());\n assertEquals(1, denseInstance1.numClasses());\n assertEquals(4, denseInstance1.numValues());\n assertEquals(1.0, denseInstance1.weight(), 0.01);\n assertEquals(3, denseInstance1.classIndex());\n assertEquals(4, denseInstance1.numAttributes());\n assertNotSame(denseInstance1, denseInstance0);\n \n denseInstance1.setClassMissing();\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertEquals(6, AbstractInstance.s_numericAfterDecimalPoint);\n assertFalse(denseInstance1.equals((Object)denseInstance0));\n assertFalse(regressionByDiscretization0.getDebug());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertEquals(2, capabilities0.getMinimumNumberInstances());\n assertTrue(capabilities0.hasDependencies());\n assertEquals(1, testInstances0.getNumDate());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertFalse(testInstances0.getNoClass());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(1, testInstances0.getNumRelationalNumeric());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(4, testInstances0.getNumAttributes());\n assertEquals(1, testInstances0.getNumNumeric());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(0, testInstances0.getClassType());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(20, testInstances0.getNumInstances());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(1, testInstances0.getNumRelationalDate());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(4, instances0.numAttributes());\n assertEquals(\"Testdata\", instances0.relationName());\n assertEquals(20, instances0.numInstances());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertEquals(20, instances0.size());\n assertFalse(instances0.checkForStringAttributes());\n assertEquals(1, instances0.numClasses());\n assertEquals(3, instances0.classIndex());\n assertFalse(converterUtils_DataSource0.isIncremental());\n assertEquals(1, denseInstance1.numClasses());\n assertEquals(4, denseInstance1.numValues());\n assertEquals(1.0, denseInstance1.weight(), 0.01);\n assertEquals(3, denseInstance1.classIndex());\n assertEquals(4, denseInstance1.numAttributes());\n assertNotSame(denseInstance1, denseInstance0);\n \n double double0 = evaluation0.evaluationForSingleInstance(doubleArray0, denseInstance1, true);\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertEquals(6, AbstractInstance.s_numericAfterDecimalPoint);\n assertArrayEquals(new double[] {2.0, (-2.0), 1.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, doubleArray0, 0.01);\n assertEquals(2.0, double0, 0.01);\n assertFalse(denseInstance1.equals((Object)denseInstance0));\n assertFalse(regressionByDiscretization0.getDebug());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertEquals(2, capabilities0.getMinimumNumberInstances());\n assertTrue(capabilities0.hasDependencies());\n assertEquals(1, testInstances0.getNumDate());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertFalse(testInstances0.getNoClass());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(1, testInstances0.getNumRelationalNumeric());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(4, testInstances0.getNumAttributes());\n assertEquals(1, testInstances0.getNumNumeric());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(0, testInstances0.getClassType());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(20, testInstances0.getNumInstances());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(1, testInstances0.getNumRelationalDate());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(4, instances0.numAttributes());\n assertEquals(\"Testdata\", instances0.relationName());\n assertEquals(20, instances0.numInstances());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertEquals(20, instances0.size());\n assertFalse(instances0.checkForStringAttributes());\n assertEquals(1, instances0.numClasses());\n assertEquals(3, instances0.classIndex());\n assertFalse(evaluation0.getDiscardPredictions());\n assertEquals(Double.NaN, evaluation0.rootRelativeSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanPriorSquaredError(), 0.01);\n assertEquals(0.0, evaluation0.correct(), 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(Double.NaN, evaluation0.relativeAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctCorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctUnclassified(), 0.01);\n assertEquals(Double.NaN, evaluation0.sizeOfPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanAbsoluteError(), 0.01);\n assertEquals(0.0, evaluation0.incorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.errorRate(), 0.01);\n assertEquals(0.0, evaluation0.totalCost(), 0.01);\n assertEquals(0.0, evaluation0.numInstances(), 0.01);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.avgCost(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanPriorAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.coverageOfTestCasesByPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctIncorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanEntropyGain(), 0.01);\n assertFalse(converterUtils_DataSource0.isIncremental());\n assertEquals(1, denseInstance1.numClasses());\n assertEquals(4, denseInstance1.numValues());\n assertEquals(1.0, denseInstance1.weight(), 0.01);\n assertEquals(3, denseInstance1.classIndex());\n assertEquals(4, denseInstance1.numAttributes());\n assertEquals(9, doubleArray0.length);\n assertNotSame(denseInstance1, denseInstance0);\n \n String string0 = \"i\";\n try { \n evaluation0.KBMeanInformation();\n fail(\"Expecting exception: Exception\");\n \n } catch(Exception e) {\n //\n // Can't compute K&B Info score: class numeric!\n //\n verifyException(\"weka.classifiers.Evaluation\", e);\n }\n }", "title": "" }, { "docid": "a896c2ea42e9ea47f4e47785dc75103a", "score": "0.67870224", "text": "@Test(timeout = 4000)\n public void test67() throws Throwable {\n RegressionByDiscretization regressionByDiscretization0 = new RegressionByDiscretization();\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertNotNull(regressionByDiscretization0);\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertFalse(regressionByDiscretization0.getDebug());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n \n Capabilities capabilities0 = regressionByDiscretization0.getCapabilities();\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertNotNull(capabilities0);\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertFalse(regressionByDiscretization0.getDebug());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertEquals(2, capabilities0.getMinimumNumberInstances());\n assertTrue(capabilities0.hasDependencies());\n \n TestInstances testInstances0 = TestInstances.forCapabilities(capabilities0);\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertNotNull(testInstances0);\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertFalse(regressionByDiscretization0.getDebug());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertEquals(2, capabilities0.getMinimumNumberInstances());\n assertTrue(capabilities0.hasDependencies());\n assertEquals(1, testInstances0.getNumRelationalDate());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(1, testInstances0.getNumNumeric());\n assertEquals(4, testInstances0.getNumAttributes());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(20, testInstances0.getNumInstances());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(1, testInstances0.getNumDate());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(1, testInstances0.getNumRelationalNumeric());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(0, testInstances0.getClassType());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertFalse(testInstances0.getNoClass());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals((-1), testInstances0.getClassIndex());\n \n Instances instances0 = testInstances0.generate(\"|J\");\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertNotNull(instances0);\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertFalse(regressionByDiscretization0.getDebug());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertEquals(2, capabilities0.getMinimumNumberInstances());\n assertTrue(capabilities0.hasDependencies());\n assertEquals(1, testInstances0.getNumRelationalDate());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(1, testInstances0.getNumNumeric());\n assertEquals(4, testInstances0.getNumAttributes());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(20, testInstances0.getNumInstances());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(1, testInstances0.getNumDate());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(1, testInstances0.getNumRelationalNumeric());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(0, testInstances0.getClassType());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertFalse(testInstances0.getNoClass());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(1, instances0.numClasses());\n assertEquals(20, instances0.numInstances());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertEquals(20, instances0.size());\n assertFalse(instances0.checkForStringAttributes());\n assertEquals(4, instances0.numAttributes());\n assertEquals(\"Testdata\", instances0.relationName());\n assertEquals(3, instances0.classIndex());\n \n Evaluation evaluation0 = new Evaluation(instances0, (CostMatrix) null);\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertNotNull(evaluation0);\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertFalse(regressionByDiscretization0.getDebug());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertEquals(2, capabilities0.getMinimumNumberInstances());\n assertTrue(capabilities0.hasDependencies());\n assertEquals(1, testInstances0.getNumRelationalDate());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(1, testInstances0.getNumNumeric());\n assertEquals(4, testInstances0.getNumAttributes());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(20, testInstances0.getNumInstances());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(1, testInstances0.getNumDate());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(1, testInstances0.getNumRelationalNumeric());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(0, testInstances0.getClassType());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertFalse(testInstances0.getNoClass());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(1, instances0.numClasses());\n assertEquals(20, instances0.numInstances());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertEquals(20, instances0.size());\n assertFalse(instances0.checkForStringAttributes());\n assertEquals(4, instances0.numAttributes());\n assertEquals(\"Testdata\", instances0.relationName());\n assertEquals(3, instances0.classIndex());\n assertEquals(0.0, evaluation0.totalCost(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanPriorAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctIncorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.coverageOfTestCasesByPredictedRegions(), 0.01);\n assertEquals(0.0, evaluation0.incorrect(), 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.errorRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanAbsoluteError(), 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.relativeAbsoluteError(), 0.01);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanPriorSquaredError(), 0.01);\n assertEquals(0.0, evaluation0.correct(), 0.01);\n assertFalse(evaluation0.getDiscardPredictions());\n assertEquals(Double.NaN, evaluation0.avgCost(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctUnclassified(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.sizeOfPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootRelativeSquaredError(), 0.01);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n assertEquals(0.0, evaluation0.numInstances(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctCorrect(), 0.01);\n \n try { \n evaluation0.toCumulativeMarginDistributionString();\n fail(\"Expecting exception: Exception\");\n \n } catch(Exception e) {\n //\n // Class must be nominal for margin distributions\n //\n verifyException(\"weka.classifiers.Evaluation\", e);\n }\n }", "title": "" }, { "docid": "b8db410b5dab986f0afe7f01e70c5147", "score": "0.67367816", "text": "@Test(timeout = 4000)\n public void test64() throws Throwable {\n RegressionByDiscretization regressionByDiscretization0 = new RegressionByDiscretization();\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertNotNull(regressionByDiscretization0);\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertFalse(regressionByDiscretization0.getDebug());\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n \n Capabilities capabilities0 = regressionByDiscretization0.getCapabilities();\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertNotNull(capabilities0);\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertFalse(regressionByDiscretization0.getDebug());\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertTrue(capabilities0.hasDependencies());\n assertEquals(2, capabilities0.getMinimumNumberInstances());\n \n TestInstances testInstances0 = TestInstances.forCapabilities(capabilities0);\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertNotNull(testInstances0);\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertFalse(regressionByDiscretization0.getDebug());\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertTrue(capabilities0.hasDependencies());\n assertEquals(2, capabilities0.getMinimumNumberInstances());\n assertEquals(20, testInstances0.getNumInstances());\n assertFalse(testInstances0.getNoClass());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(1, testInstances0.getNumDate());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(1, testInstances0.getNumRelationalDate());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(4, testInstances0.getNumAttributes());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(0, testInstances0.getClassType());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(1, testInstances0.getNumNumeric());\n assertEquals(1, testInstances0.getNumRelationalNumeric());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertFalse(testInstances0.getMultiInstance());\n \n Instances instances0 = testInstances0.generate(\"|J\");\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertNotNull(instances0);\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertFalse(regressionByDiscretization0.getDebug());\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertTrue(capabilities0.hasDependencies());\n assertEquals(2, capabilities0.getMinimumNumberInstances());\n assertEquals(20, testInstances0.getNumInstances());\n assertFalse(testInstances0.getNoClass());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(1, testInstances0.getNumDate());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(1, testInstances0.getNumRelationalDate());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(4, testInstances0.getNumAttributes());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(0, testInstances0.getClassType());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(1, testInstances0.getNumNumeric());\n assertEquals(1, testInstances0.getNumRelationalNumeric());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(3, instances0.classIndex());\n assertEquals(\"Testdata\", instances0.relationName());\n assertEquals(1, instances0.numClasses());\n assertEquals(4, instances0.numAttributes());\n assertEquals(20, instances0.numInstances());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertEquals(20, instances0.size());\n assertFalse(instances0.checkForStringAttributes());\n \n Evaluation evaluation0 = new Evaluation(instances0);\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertNotNull(evaluation0);\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertFalse(regressionByDiscretization0.getDebug());\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertTrue(capabilities0.hasDependencies());\n assertEquals(2, capabilities0.getMinimumNumberInstances());\n assertEquals(20, testInstances0.getNumInstances());\n assertFalse(testInstances0.getNoClass());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(1, testInstances0.getNumDate());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(1, testInstances0.getNumRelationalDate());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(4, testInstances0.getNumAttributes());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(0, testInstances0.getClassType());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(1, testInstances0.getNumNumeric());\n assertEquals(1, testInstances0.getNumRelationalNumeric());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(3, instances0.classIndex());\n assertEquals(\"Testdata\", instances0.relationName());\n assertEquals(1, instances0.numClasses());\n assertEquals(4, instances0.numAttributes());\n assertEquals(20, instances0.numInstances());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertEquals(20, instances0.size());\n assertFalse(instances0.checkForStringAttributes());\n assertEquals(Double.NaN, evaluation0.meanPriorAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.sizeOfPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation0.errorRate(), 0.01);\n assertEquals(0.0, evaluation0.incorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctIncorrect(), 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(0.0, evaluation0.totalCost(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanAbsoluteError(), 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanPriorSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootRelativeSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.relativeAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctUnclassified(), 0.01);\n assertEquals(0.0, evaluation0.correct(), 0.01);\n assertFalse(evaluation0.getDiscardPredictions());\n assertEquals(Double.NaN, evaluation0.SFMeanPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctCorrect(), 0.01);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.coverageOfTestCasesByPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation0.avgCost(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanSchemeEntropy(), 0.01);\n assertEquals(0.0, evaluation0.numInstances(), 0.01);\n \n double[] doubleArray0 = new double[9];\n doubleArray0[0] = (double) 2;\n doubleArray0[1] = (double) (-2);\n doubleArray0[2] = (double) 1;\n doubleArray0[3] = (double) 0;\n doubleArray0[4] = (double) 2;\n doubleArray0[5] = (double) 0;\n doubleArray0[6] = (double) 0;\n DenseInstance denseInstance0 = new DenseInstance(1, doubleArray0);\n assertEquals(6, AbstractInstance.s_numericAfterDecimalPoint);\n assertNotNull(denseInstance0);\n assertArrayEquals(new double[] {2.0, (-2.0), 1.0, 0.0, 2.0, 0.0, 0.0, 0.0, 0.0}, doubleArray0, 0.01);\n assertEquals(1.0, denseInstance0.weight(), 0.01);\n assertEquals(9, denseInstance0.numValues());\n assertEquals(9, denseInstance0.numAttributes());\n assertEquals(9, doubleArray0.length);\n \n ConverterUtils.DataSource converterUtils_DataSource0 = new ConverterUtils.DataSource(instances0);\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertNotNull(converterUtils_DataSource0);\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertFalse(regressionByDiscretization0.getDebug());\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertTrue(capabilities0.hasDependencies());\n assertEquals(2, capabilities0.getMinimumNumberInstances());\n assertEquals(20, testInstances0.getNumInstances());\n assertFalse(testInstances0.getNoClass());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(1, testInstances0.getNumDate());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(1, testInstances0.getNumRelationalDate());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(4, testInstances0.getNumAttributes());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(0, testInstances0.getClassType());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(1, testInstances0.getNumNumeric());\n assertEquals(1, testInstances0.getNumRelationalNumeric());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(3, instances0.classIndex());\n assertEquals(\"Testdata\", instances0.relationName());\n assertEquals(1, instances0.numClasses());\n assertEquals(4, instances0.numAttributes());\n assertEquals(20, instances0.numInstances());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertEquals(20, instances0.size());\n assertFalse(instances0.checkForStringAttributes());\n assertFalse(converterUtils_DataSource0.isIncremental());\n \n DenseInstance denseInstance1 = (DenseInstance)converterUtils_DataSource0.nextElement(instances0);\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals(6, AbstractInstance.s_numericAfterDecimalPoint);\n assertNotNull(denseInstance1);\n assertFalse(denseInstance1.equals((Object)denseInstance0));\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertFalse(regressionByDiscretization0.getDebug());\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertTrue(capabilities0.hasDependencies());\n assertEquals(2, capabilities0.getMinimumNumberInstances());\n assertEquals(20, testInstances0.getNumInstances());\n assertFalse(testInstances0.getNoClass());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(1, testInstances0.getNumDate());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(1, testInstances0.getNumRelationalDate());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(4, testInstances0.getNumAttributes());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(0, testInstances0.getClassType());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(1, testInstances0.getNumNumeric());\n assertEquals(1, testInstances0.getNumRelationalNumeric());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(3, instances0.classIndex());\n assertEquals(\"Testdata\", instances0.relationName());\n assertEquals(1, instances0.numClasses());\n assertEquals(4, instances0.numAttributes());\n assertEquals(20, instances0.numInstances());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertEquals(20, instances0.size());\n assertFalse(instances0.checkForStringAttributes());\n assertFalse(converterUtils_DataSource0.isIncremental());\n assertEquals(3, denseInstance1.classIndex());\n assertEquals(1, denseInstance1.numClasses());\n assertEquals(4, denseInstance1.numValues());\n assertEquals(4, denseInstance1.numAttributes());\n assertEquals(1.0, denseInstance1.weight(), 0.01);\n assertNotSame(denseInstance1, denseInstance0);\n \n boolean boolean0 = false;\n double double0 = evaluation0.evaluationForSingleInstance(doubleArray0, denseInstance1, false);\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals(6, AbstractInstance.s_numericAfterDecimalPoint);\n assertArrayEquals(new double[] {2.0, (-2.0), 1.0, 0.0, 2.0, 0.0, 0.0, 0.0, 0.0}, doubleArray0, 0.01);\n assertEquals(2.0, double0, 0.01);\n assertFalse(denseInstance1.equals((Object)denseInstance0));\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertFalse(regressionByDiscretization0.getDebug());\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertTrue(capabilities0.hasDependencies());\n assertEquals(2, capabilities0.getMinimumNumberInstances());\n assertEquals(20, testInstances0.getNumInstances());\n assertFalse(testInstances0.getNoClass());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(1, testInstances0.getNumDate());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(1, testInstances0.getNumRelationalDate());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(4, testInstances0.getNumAttributes());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(0, testInstances0.getClassType());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(1, testInstances0.getNumNumeric());\n assertEquals(1, testInstances0.getNumRelationalNumeric());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(3, instances0.classIndex());\n assertEquals(\"Testdata\", instances0.relationName());\n assertEquals(1, instances0.numClasses());\n assertEquals(4, instances0.numAttributes());\n assertEquals(20, instances0.numInstances());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertEquals(20, instances0.size());\n assertFalse(instances0.checkForStringAttributes());\n assertEquals(0.5287499998696148, evaluation0.meanPriorAbsoluteError(), 0.01);\n assertEquals(0.0, evaluation0.pctIncorrect(), 0.01);\n assertEquals(0.0, evaluation0.SFMeanSchemeEntropy(), 0.01);\n assertEquals(0.0, evaluation0.incorrect(), 0.01);\n assertEquals(0.0, evaluation0.sizeOfPredictedRegions(), 0.01);\n assertEquals(1.0, evaluation0.errorRate(), 0.01);\n assertEquals(0.0, evaluation0.pctUnclassified(), 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(1.0, evaluation0.meanAbsoluteError(), 0.01);\n assertEquals(0.0, evaluation0.totalCost(), 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(0.0, evaluation0.SFMeanEntropyGain(), 0.01);\n assertEquals(0.5287499998696148, evaluation0.rootMeanPriorSquaredError(), 0.01);\n assertEquals(0.0, evaluation0.correct(), 0.01);\n assertEquals(1.0, evaluation0.numInstances(), 0.01);\n assertEquals(1.0, evaluation0.rootMeanSquaredError(), 0.01);\n assertFalse(evaluation0.getDiscardPredictions());\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n assertEquals(189.1252955549109, evaluation0.relativeAbsoluteError(), 0.01);\n assertEquals(0.0, evaluation0.SFMeanPriorEntropy(), 0.01);\n assertEquals(0.0, evaluation0.pctCorrect(), 0.01);\n assertEquals(0.0, evaluation0.coverageOfTestCasesByPredictedRegions(), 0.01);\n assertEquals(189.1252955549109, evaluation0.rootRelativeSquaredError(), 0.01);\n assertEquals(0.0, evaluation0.avgCost(), 0.01);\n assertFalse(converterUtils_DataSource0.isIncremental());\n assertEquals(3, denseInstance1.classIndex());\n assertEquals(1, denseInstance1.numClasses());\n assertEquals(4, denseInstance1.numValues());\n assertEquals(4, denseInstance1.numAttributes());\n assertEquals(1.0, denseInstance1.weight(), 0.01);\n assertEquals(9, doubleArray0.length);\n assertNotSame(denseInstance1, denseInstance0);\n \n try { \n CostMatrix.parseMatlab(\"weka/core/Capabilities.props\");\n fail(\"Expecting exception: StringIndexOutOfBoundsException\");\n \n } catch(StringIndexOutOfBoundsException e) {\n }\n }", "title": "" }, { "docid": "573325d2a6229174e2df85e3d1e66f15", "score": "0.6717365", "text": "@Test(timeout = 4000)\n public void test82() throws Throwable {\n RegressionByDiscretization regressionByDiscretization0 = new RegressionByDiscretization();\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertNotNull(regressionByDiscretization0);\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertFalse(regressionByDiscretization0.getDebug());\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n \n Capabilities capabilities0 = regressionByDiscretization0.getCapabilities();\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertNotNull(capabilities0);\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertFalse(regressionByDiscretization0.getDebug());\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertEquals(2, capabilities0.getMinimumNumberInstances());\n assertTrue(capabilities0.hasDependencies());\n \n TestInstances testInstances0 = TestInstances.forCapabilities(capabilities0);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertNotNull(testInstances0);\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertFalse(regressionByDiscretization0.getDebug());\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertEquals(2, capabilities0.getMinimumNumberInstances());\n assertTrue(capabilities0.hasDependencies());\n assertEquals(0, testInstances0.getClassType());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(4, testInstances0.getNumAttributes());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(1, testInstances0.getNumRelationalNumeric());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(1, testInstances0.getNumNumeric());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertFalse(testInstances0.getNoClass());\n assertEquals(20, testInstances0.getNumInstances());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(1, testInstances0.getNumRelationalDate());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(1, testInstances0.getNumDate());\n \n Instances instances0 = testInstances0.generate(\"|J\");\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertNotNull(instances0);\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertFalse(regressionByDiscretization0.getDebug());\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertEquals(2, capabilities0.getMinimumNumberInstances());\n assertTrue(capabilities0.hasDependencies());\n assertEquals(0, testInstances0.getClassType());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(4, testInstances0.getNumAttributes());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(1, testInstances0.getNumRelationalNumeric());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(1, testInstances0.getNumNumeric());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertFalse(testInstances0.getNoClass());\n assertEquals(20, testInstances0.getNumInstances());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(1, testInstances0.getNumRelationalDate());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(1, testInstances0.getNumDate());\n assertEquals(1, instances0.numClasses());\n assertEquals(20, instances0.size());\n assertFalse(instances0.checkForStringAttributes());\n assertEquals(3, instances0.classIndex());\n assertEquals(4, instances0.numAttributes());\n assertEquals(20, instances0.numInstances());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertEquals(\"Testdata\", instances0.relationName());\n \n Evaluation evaluation0 = new Evaluation(instances0);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertNotNull(evaluation0);\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertFalse(regressionByDiscretization0.getDebug());\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertEquals(2, capabilities0.getMinimumNumberInstances());\n assertTrue(capabilities0.hasDependencies());\n assertEquals(0, testInstances0.getClassType());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(4, testInstances0.getNumAttributes());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(1, testInstances0.getNumRelationalNumeric());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(1, testInstances0.getNumNumeric());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertFalse(testInstances0.getNoClass());\n assertEquals(20, testInstances0.getNumInstances());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(1, testInstances0.getNumRelationalDate());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(1, testInstances0.getNumDate());\n assertEquals(1, instances0.numClasses());\n assertEquals(20, instances0.size());\n assertFalse(instances0.checkForStringAttributes());\n assertEquals(3, instances0.classIndex());\n assertEquals(4, instances0.numAttributes());\n assertEquals(20, instances0.numInstances());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertEquals(\"Testdata\", instances0.relationName());\n assertEquals(Double.NaN, evaluation0.avgCost(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.relativeAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanEntropyGain(), 0.01);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(0.0, evaluation0.correct(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanPriorEntropy(), 0.01);\n assertFalse(evaluation0.getDiscardPredictions());\n assertEquals(Double.NaN, evaluation0.pctIncorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctUnclassified(), 0.01);\n assertEquals(Double.NaN, evaluation0.sizeOfPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootRelativeSquaredError(), 0.01);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n assertEquals(0.0, evaluation0.numInstances(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctCorrect(), 0.01);\n assertEquals(0.0, evaluation0.totalCost(), 0.01);\n assertEquals(Double.NaN, evaluation0.coverageOfTestCasesByPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanPriorAbsoluteError(), 0.01);\n assertEquals(0.0, evaluation0.incorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.errorRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanPriorSquaredError(), 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n \n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n assertNotNull(textDirectoryLoader0);\n assertEquals(\"The character set to use when reading text files (eg UTF-8) - leave blank to use the default character set.\", textDirectoryLoader0.charSetTipText());\n assertEquals(\"Directories\", textDirectoryLoader0.getFileDescription());\n assertEquals(\"Whether to print additional debug information to the console.\", textDirectoryLoader0.debugTipText());\n assertEquals(\"Whether to store the filename in an additional attribute.\", textDirectoryLoader0.outputFilenameTipText());\n assertEquals(\"Loads all text files in a directory and uses the subdirectory names as class labels. The content of the text files will be stored in a String attribute, the filename can be stored as well.\", textDirectoryLoader0.globalInfo());\n assertEquals(\"\", textDirectoryLoader0.getCharSet());\n assertFalse(textDirectoryLoader0.getOutputFilename());\n assertFalse(textDirectoryLoader0.getDebug());\n \n Instances instances1 = textDirectoryLoader0.getStructure();\n assertNotNull(instances1);\n assertFalse(instances1.equals((Object)instances0));\n assertEquals(\"The character set to use when reading text files (eg UTF-8) - leave blank to use the default character set.\", textDirectoryLoader0.charSetTipText());\n assertEquals(\"Directories\", textDirectoryLoader0.getFileDescription());\n assertEquals(\"Whether to print additional debug information to the console.\", textDirectoryLoader0.debugTipText());\n assertEquals(\"Whether to store the filename in an additional attribute.\", textDirectoryLoader0.outputFilenameTipText());\n assertEquals(\"Loads all text files in a directory and uses the subdirectory names as class labels. The content of the text files will be stored in a String attribute, the filename can be stored as well.\", textDirectoryLoader0.globalInfo());\n assertEquals(\"\", textDirectoryLoader0.getCharSet());\n assertFalse(textDirectoryLoader0.getOutputFilename());\n assertFalse(textDirectoryLoader0.getDebug());\n assertEquals(0.0, instances1.sumOfWeights(), 0.01);\n assertEquals(0, instances1.size());\n assertTrue(instances1.checkForStringAttributes());\n assertEquals(2, instances1.numAttributes());\n assertEquals(0, instances1.numClasses());\n assertEquals(1, instances1.classIndex());\n assertEquals(0, instances1.numInstances());\n assertEquals(\"_home_ubuntu_evosuite_readability_gen_projects_107_weka\", instances1.relationName());\n assertNotSame(instances1, instances0);\n \n CostMatrix costMatrix0 = new CostMatrix(0);\n assertNotNull(costMatrix0);\n assertEquals(0, costMatrix0.numColumns());\n assertEquals(0, costMatrix0.size());\n assertEquals(0, costMatrix0.numRows());\n \n CostMatrix costMatrix1 = new CostMatrix(costMatrix0);\n assertNotNull(costMatrix1);\n assertFalse(costMatrix1.equals((Object)costMatrix0));\n assertEquals(0, costMatrix0.numColumns());\n assertEquals(0, costMatrix0.size());\n assertEquals(0, costMatrix0.numRows());\n assertEquals(0, costMatrix1.size());\n assertEquals(0, costMatrix1.numRows());\n assertEquals(0, costMatrix1.numColumns());\n \n Evaluation evaluation1 = new Evaluation(instances1, costMatrix1);\n assertNotNull(evaluation1);\n assertFalse(instances1.equals((Object)instances0));\n assertFalse(costMatrix0.equals((Object)costMatrix1));\n assertFalse(costMatrix1.equals((Object)costMatrix0));\n assertFalse(evaluation1.equals((Object)evaluation0));\n assertEquals(\"The character set to use when reading text files (eg UTF-8) - leave blank to use the default character set.\", textDirectoryLoader0.charSetTipText());\n assertEquals(\"Directories\", textDirectoryLoader0.getFileDescription());\n assertEquals(\"Whether to print additional debug information to the console.\", textDirectoryLoader0.debugTipText());\n assertEquals(\"Whether to store the filename in an additional attribute.\", textDirectoryLoader0.outputFilenameTipText());\n assertEquals(\"Loads all text files in a directory and uses the subdirectory names as class labels. The content of the text files will be stored in a String attribute, the filename can be stored as well.\", textDirectoryLoader0.globalInfo());\n assertEquals(\"\", textDirectoryLoader0.getCharSet());\n assertFalse(textDirectoryLoader0.getOutputFilename());\n assertFalse(textDirectoryLoader0.getDebug());\n assertEquals(0.0, instances1.sumOfWeights(), 0.01);\n assertEquals(0, instances1.size());\n assertTrue(instances1.checkForStringAttributes());\n assertEquals(2, instances1.numAttributes());\n assertEquals(0, instances1.numClasses());\n assertEquals(1, instances1.classIndex());\n assertEquals(0, instances1.numInstances());\n assertEquals(\"_home_ubuntu_evosuite_readability_gen_projects_107_weka\", instances1.relationName());\n assertEquals(0, costMatrix0.numColumns());\n assertEquals(0, costMatrix0.size());\n assertEquals(0, costMatrix0.numRows());\n assertEquals(0, costMatrix1.size());\n assertEquals(0, costMatrix1.numRows());\n assertEquals(0, costMatrix1.numColumns());\n assertEquals(Double.NaN, evaluation1.weightedFMeasure(), 0.01);\n assertEquals(Double.NaN, evaluation1.coverageOfTestCasesByPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation1.pctCorrect(), 0.01);\n assertEquals(0.0, evaluation1.totalCost(), 0.01);\n assertEquals(Double.NaN, evaluation1.meanPriorAbsoluteError(), 0.01);\n assertEquals(0.0, evaluation1.SFPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation1.rootRelativeSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation1.weightedTrueNegativeRate(), 0.01);\n assertEquals(0.0, evaluation1.incorrect(), 0.01);\n assertEquals(Double.NaN, evaluation1.unweightedMicroFmeasure(), 0.01);\n assertEquals(1.0, evaluation1.kappa(), 0.01);\n assertEquals(Double.NaN, evaluation1.SFMeanPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation1.SFMeanEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation1.avgCost(), 0.01);\n assertEquals(0.0, evaluation1.SFSchemeEntropy(), 0.01);\n assertEquals(0.0, evaluation1.numInstances(), 0.01);\n assertEquals(Double.NaN, evaluation1.SFMeanSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation1.pctUnclassified(), 0.01);\n assertEquals(Double.NaN, evaluation1.pctIncorrect(), 0.01);\n assertEquals(Double.NaN, evaluation1.weightedFalsePositiveRate(), 0.01);\n assertEquals(Double.NaN, evaluation1.weightedTruePositiveRate(), 0.01);\n assertEquals(0.0, evaluation1.unclassified(), 0.01);\n assertEquals(Double.NaN, evaluation1.sizeOfPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation1.errorRate(), 0.01);\n assertEquals(Double.NaN, evaluation1.weightedPrecision(), 0.01);\n assertEquals(Double.NaN, evaluation1.weightedFalseNegativeRate(), 0.01);\n assertEquals(Double.NaN, evaluation1.rootMeanPriorSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation1.meanAbsoluteError(), 0.01);\n assertEquals(0.0, evaluation1.SFEntropyGain(), 0.01);\n assertFalse(evaluation1.getDiscardPredictions());\n assertEquals(0.0, evaluation1.correct(), 0.01);\n assertEquals(Double.NaN, evaluation1.rootMeanSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation1.weightedRecall(), 0.01);\n assertEquals(Double.NaN, evaluation1.relativeAbsoluteError(), 0.01);\n \n double[] doubleArray0 = new double[6];\n doubleArray0[0] = (double) (-1);\n doubleArray0[1] = 204.02614061766;\n try { \n evaluation0.priorEntropy();\n fail(\"Expecting exception: Exception\");\n \n } catch(Exception e) {\n //\n // Can't compute entropy of class prior: class numeric!\n //\n verifyException(\"weka.classifiers.Evaluation\", e);\n }\n }", "title": "" }, { "docid": "c65b340a88f97d0ba9031fa8ea0a70f8", "score": "0.6706917", "text": "@Test(timeout = 4000)\n public void test61() throws Throwable {\n RegressionByDiscretization regressionByDiscretization0 = new RegressionByDiscretization();\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertNotNull(regressionByDiscretization0);\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertFalse(regressionByDiscretization0.getDebug());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n \n Capabilities capabilities0 = regressionByDiscretization0.getCapabilities();\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertNotNull(capabilities0);\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertFalse(regressionByDiscretization0.getDebug());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertTrue(capabilities0.hasDependencies());\n assertEquals(2, capabilities0.getMinimumNumberInstances());\n \n TestInstances testInstances0 = TestInstances.forCapabilities(capabilities0);\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertNotNull(testInstances0);\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertFalse(regressionByDiscretization0.getDebug());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertTrue(capabilities0.hasDependencies());\n assertEquals(2, capabilities0.getMinimumNumberInstances());\n assertEquals(1, testInstances0.getNumRelationalNumeric());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals((-1), testInstances0.getClassIndex());\n assertFalse(testInstances0.getMultiInstance());\n assertFalse(testInstances0.getNoClass());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(1, testInstances0.getNumNumeric());\n assertEquals(4, testInstances0.getNumAttributes());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(1, testInstances0.getNumDate());\n assertEquals(0, testInstances0.getClassType());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(1, testInstances0.getNumRelationalDate());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(20, testInstances0.getNumInstances());\n \n Instances instances0 = testInstances0.generate(\"{`vSB'pZn~rOk\");\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertNotNull(instances0);\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertFalse(regressionByDiscretization0.getDebug());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertTrue(capabilities0.hasDependencies());\n assertEquals(2, capabilities0.getMinimumNumberInstances());\n assertEquals(1, testInstances0.getNumRelationalNumeric());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals((-1), testInstances0.getClassIndex());\n assertFalse(testInstances0.getMultiInstance());\n assertFalse(testInstances0.getNoClass());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(1, testInstances0.getNumNumeric());\n assertEquals(4, testInstances0.getNumAttributes());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(1, testInstances0.getNumDate());\n assertEquals(0, testInstances0.getClassType());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(1, testInstances0.getNumRelationalDate());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(20, testInstances0.getNumInstances());\n assertEquals(1, instances0.numClasses());\n assertEquals(3, instances0.classIndex());\n assertEquals(\"Testdata\", instances0.relationName());\n assertEquals(4, instances0.numAttributes());\n assertEquals(20, instances0.numInstances());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertEquals(20, instances0.size());\n assertFalse(instances0.checkForStringAttributes());\n \n Evaluation evaluation0 = new Evaluation(instances0);\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertNotNull(evaluation0);\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertFalse(regressionByDiscretization0.getDebug());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertTrue(capabilities0.hasDependencies());\n assertEquals(2, capabilities0.getMinimumNumberInstances());\n assertEquals(1, testInstances0.getNumRelationalNumeric());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals((-1), testInstances0.getClassIndex());\n assertFalse(testInstances0.getMultiInstance());\n assertFalse(testInstances0.getNoClass());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(1, testInstances0.getNumNumeric());\n assertEquals(4, testInstances0.getNumAttributes());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(1, testInstances0.getNumDate());\n assertEquals(0, testInstances0.getClassType());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(1, testInstances0.getNumRelationalDate());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(20, testInstances0.getNumInstances());\n assertEquals(1, instances0.numClasses());\n assertEquals(3, instances0.classIndex());\n assertEquals(\"Testdata\", instances0.relationName());\n assertEquals(4, instances0.numAttributes());\n assertEquals(20, instances0.numInstances());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertEquals(20, instances0.size());\n assertFalse(instances0.checkForStringAttributes());\n assertEquals(0.0, evaluation0.totalCost(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctCorrect(), 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanPriorSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootRelativeSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.sizeOfPredictedRegions(), 0.01);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(0.0, evaluation0.correct(), 0.01);\n assertFalse(evaluation0.getDiscardPredictions());\n assertEquals(Double.NaN, evaluation0.pctUnclassified(), 0.01);\n assertEquals(Double.NaN, evaluation0.avgCost(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.relativeAbsoluteError(), 0.01);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n assertEquals(0.0, evaluation0.numInstances(), 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.errorRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.coverageOfTestCasesByPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanPriorAbsoluteError(), 0.01);\n assertEquals(0.0, evaluation0.incorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctIncorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanEntropyGain(), 0.01);\n \n boolean boolean0 = FileSystemHandling.appendStringToFile((EvoSuiteFile) null, \"kernelTipText\");\n assertFalse(boolean0);\n \n double double0 = evaluation0.correlationCoefficient();\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertFalse(regressionByDiscretization0.getDebug());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertTrue(capabilities0.hasDependencies());\n assertEquals(2, capabilities0.getMinimumNumberInstances());\n assertEquals(1, testInstances0.getNumRelationalNumeric());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals((-1), testInstances0.getClassIndex());\n assertFalse(testInstances0.getMultiInstance());\n assertFalse(testInstances0.getNoClass());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(1, testInstances0.getNumNumeric());\n assertEquals(4, testInstances0.getNumAttributes());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(1, testInstances0.getNumDate());\n assertEquals(0, testInstances0.getClassType());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(1, testInstances0.getNumRelationalDate());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(20, testInstances0.getNumInstances());\n assertEquals(1, instances0.numClasses());\n assertEquals(3, instances0.classIndex());\n assertEquals(\"Testdata\", instances0.relationName());\n assertEquals(4, instances0.numAttributes());\n assertEquals(20, instances0.numInstances());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertEquals(20, instances0.size());\n assertFalse(instances0.checkForStringAttributes());\n assertEquals(0.0, evaluation0.totalCost(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctCorrect(), 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanPriorSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootRelativeSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.sizeOfPredictedRegions(), 0.01);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(0.0, evaluation0.correct(), 0.01);\n assertFalse(evaluation0.getDiscardPredictions());\n assertEquals(Double.NaN, evaluation0.pctUnclassified(), 0.01);\n assertEquals(Double.NaN, evaluation0.avgCost(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.relativeAbsoluteError(), 0.01);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n assertEquals(0.0, evaluation0.numInstances(), 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.errorRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.coverageOfTestCasesByPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanPriorAbsoluteError(), 0.01);\n assertEquals(0.0, evaluation0.incorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctIncorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanEntropyGain(), 0.01);\n \n // Undeclared exception!\n try { \n testInstances0.setRelationalFormat(2, instances0);\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // 2\n //\n verifyException(\"weka.core.TestInstances\", e);\n }\n }", "title": "" }, { "docid": "ba9d84782c614f661d54db618723186e", "score": "0.67045915", "text": "@Test(timeout = 4000)\n public void test63() throws Throwable {\n RegressionByDiscretization regressionByDiscretization0 = new RegressionByDiscretization();\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertNotNull(regressionByDiscretization0);\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertFalse(regressionByDiscretization0.getDebug());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n \n Capabilities capabilities0 = regressionByDiscretization0.getCapabilities();\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertNotNull(capabilities0);\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertFalse(regressionByDiscretization0.getDebug());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertEquals(2, capabilities0.getMinimumNumberInstances());\n assertTrue(capabilities0.hasDependencies());\n \n TestInstances testInstances0 = TestInstances.forCapabilities(capabilities0);\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertNotNull(testInstances0);\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertFalse(regressionByDiscretization0.getDebug());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertEquals(2, capabilities0.getMinimumNumberInstances());\n assertTrue(capabilities0.hasDependencies());\n assertEquals(1, testInstances0.getNumRelationalDate());\n assertEquals(1, testInstances0.getNumNumeric());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertFalse(testInstances0.getNoClass());\n assertEquals(20, testInstances0.getNumInstances());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(4, testInstances0.getNumAttributes());\n assertEquals(1, testInstances0.getNumDate());\n assertEquals(0, testInstances0.getClassType());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(1, testInstances0.getSeed());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(1, testInstances0.getNumRelationalNumeric());\n assertEquals(0, testInstances0.getNumRelationalString());\n \n Instances instances0 = testInstances0.generate(\"|J\");\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertNotNull(instances0);\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertFalse(regressionByDiscretization0.getDebug());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertEquals(2, capabilities0.getMinimumNumberInstances());\n assertTrue(capabilities0.hasDependencies());\n assertEquals(1, testInstances0.getNumRelationalDate());\n assertEquals(1, testInstances0.getNumNumeric());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertFalse(testInstances0.getNoClass());\n assertEquals(20, testInstances0.getNumInstances());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(4, testInstances0.getNumAttributes());\n assertEquals(1, testInstances0.getNumDate());\n assertEquals(0, testInstances0.getClassType());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(1, testInstances0.getSeed());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(1, testInstances0.getNumRelationalNumeric());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(1, instances0.numClasses());\n assertEquals(\"Testdata\", instances0.relationName());\n assertEquals(3, instances0.classIndex());\n assertEquals(4, instances0.numAttributes());\n assertEquals(20, instances0.numInstances());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertEquals(20, instances0.size());\n assertFalse(instances0.checkForStringAttributes());\n \n Evaluation evaluation0 = new Evaluation(instances0);\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertNotNull(evaluation0);\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertFalse(regressionByDiscretization0.getDebug());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertEquals(2, capabilities0.getMinimumNumberInstances());\n assertTrue(capabilities0.hasDependencies());\n assertEquals(1, testInstances0.getNumRelationalDate());\n assertEquals(1, testInstances0.getNumNumeric());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertFalse(testInstances0.getNoClass());\n assertEquals(20, testInstances0.getNumInstances());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(4, testInstances0.getNumAttributes());\n assertEquals(1, testInstances0.getNumDate());\n assertEquals(0, testInstances0.getClassType());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(1, testInstances0.getSeed());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(1, testInstances0.getNumRelationalNumeric());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(1, instances0.numClasses());\n assertEquals(\"Testdata\", instances0.relationName());\n assertEquals(3, instances0.classIndex());\n assertEquals(4, instances0.numAttributes());\n assertEquals(20, instances0.numInstances());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertEquals(20, instances0.size());\n assertFalse(instances0.checkForStringAttributes());\n assertEquals(Double.NaN, evaluation0.pctCorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.coverageOfTestCasesByPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanAbsoluteError(), 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(0.0, evaluation0.incorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctIncorrect(), 0.01);\n assertEquals(0.0, evaluation0.totalCost(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanPriorAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.errorRate(), 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctUnclassified(), 0.01);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n assertEquals(0.0, evaluation0.numInstances(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.relativeAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.avgCost(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanPriorSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.sizeOfPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootRelativeSquaredError(), 0.01);\n assertFalse(evaluation0.getDiscardPredictions());\n assertEquals(0.0, evaluation0.correct(), 0.01);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n \n double[] doubleArray0 = new double[4];\n doubleArray0[0] = 1000.0;\n doubleArray0[1] = (double) 0;\n doubleArray0[2] = (double) 1;\n doubleArray0[3] = (double) 0;\n // Undeclared exception!\n try { \n evaluation0.updateMargins(doubleArray0, 0, (-1));\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // 250250\n //\n verifyException(\"weka.classifiers.Evaluation\", e);\n }\n }", "title": "" }, { "docid": "de5f31512a14dd9e6b6125e90ac78777", "score": "0.6686855", "text": "@Test(timeout = 4000)\n public void test53() throws Throwable {\n RegressionByDiscretization regressionByDiscretization0 = new RegressionByDiscretization();\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertNotNull(regressionByDiscretization0);\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertFalse(regressionByDiscretization0.getDebug());\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n \n Capabilities capabilities0 = regressionByDiscretization0.getCapabilities();\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertNotNull(capabilities0);\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertFalse(regressionByDiscretization0.getDebug());\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertTrue(capabilities0.hasDependencies());\n assertEquals(2, capabilities0.getMinimumNumberInstances());\n \n TestInstances testInstances0 = TestInstances.forCapabilities(capabilities0);\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertNotNull(testInstances0);\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertFalse(regressionByDiscretization0.getDebug());\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertTrue(capabilities0.hasDependencies());\n assertEquals(2, capabilities0.getMinimumNumberInstances());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(1, testInstances0.getNumDate());\n assertEquals(1, testInstances0.getNumRelationalDate());\n assertEquals(20, testInstances0.getNumInstances());\n assertEquals(1, testInstances0.getNumRelationalNumeric());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(0, testInstances0.getClassType());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(1, testInstances0.getNumNumeric());\n assertEquals(4, testInstances0.getNumAttributes());\n assertEquals((-1), testInstances0.getClassIndex());\n assertFalse(testInstances0.getNoClass());\n \n Instances instances0 = testInstances0.generate(\"|J\");\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertNotNull(instances0);\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertFalse(regressionByDiscretization0.getDebug());\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertTrue(capabilities0.hasDependencies());\n assertEquals(2, capabilities0.getMinimumNumberInstances());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(1, testInstances0.getNumDate());\n assertEquals(1, testInstances0.getNumRelationalDate());\n assertEquals(20, testInstances0.getNumInstances());\n assertEquals(1, testInstances0.getNumRelationalNumeric());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(0, testInstances0.getClassType());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(1, testInstances0.getNumNumeric());\n assertEquals(4, testInstances0.getNumAttributes());\n assertEquals((-1), testInstances0.getClassIndex());\n assertFalse(testInstances0.getNoClass());\n assertEquals(20, instances0.size());\n assertEquals(3, instances0.classIndex());\n assertEquals(20, instances0.numInstances());\n assertEquals(4, instances0.numAttributes());\n assertFalse(instances0.checkForStringAttributes());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertEquals(\"Testdata\", instances0.relationName());\n assertEquals(1, instances0.numClasses());\n \n String string0 = Evaluation.getGlobalInfo(regressionByDiscretization0);\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertNotNull(string0);\n assertEquals(\"\\nSynopsis for weka.classifiers.meta.RegressionByDiscretization:\\n\\nA regression scheme that employs any classifier on a copy of the data that has the class attribute discretized. The predicted value is the expected value of the mean class value for each discretized interval (based on the predicted probabilities for each interval). This class now also supports conditional density estimation by building a univariate density estimator from the target values in the training data, weighted by the class probabilities. \\n\\nFor more information on this process, see\\n\\nEibe Frank, Remco R. Bouckaert: Conditional Density Estimation with Class Probability Estimators. In: First Asian Conference on Machine Learning, Berlin, 65-81, 2009.\", string0);\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertFalse(regressionByDiscretization0.getDebug());\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n \n Evaluation evaluation0 = new Evaluation(instances0);\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertNotNull(evaluation0);\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertFalse(regressionByDiscretization0.getDebug());\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertTrue(capabilities0.hasDependencies());\n assertEquals(2, capabilities0.getMinimumNumberInstances());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(1, testInstances0.getNumDate());\n assertEquals(1, testInstances0.getNumRelationalDate());\n assertEquals(20, testInstances0.getNumInstances());\n assertEquals(1, testInstances0.getNumRelationalNumeric());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(0, testInstances0.getClassType());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(1, testInstances0.getNumNumeric());\n assertEquals(4, testInstances0.getNumAttributes());\n assertEquals((-1), testInstances0.getClassIndex());\n assertFalse(testInstances0.getNoClass());\n assertEquals(20, instances0.size());\n assertEquals(3, instances0.classIndex());\n assertEquals(20, instances0.numInstances());\n assertEquals(4, instances0.numAttributes());\n assertFalse(instances0.checkForStringAttributes());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertEquals(\"Testdata\", instances0.relationName());\n assertEquals(1, instances0.numClasses());\n assertEquals(Double.NaN, evaluation0.SFMeanPriorEntropy(), 0.01);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(Double.NaN, evaluation0.relativeAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctUnclassified(), 0.01);\n assertEquals(Double.NaN, evaluation0.avgCost(), 0.01);\n assertFalse(evaluation0.getDiscardPredictions());\n assertEquals(0.0, evaluation0.correct(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanPriorSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctCorrect(), 0.01);\n assertEquals(0.0, evaluation0.numInstances(), 0.01);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.sizeOfPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootRelativeSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanPriorAbsoluteError(), 0.01);\n assertEquals(0.0, evaluation0.incorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.coverageOfTestCasesByPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctIncorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanAbsoluteError(), 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.errorRate(), 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(0.0, evaluation0.totalCost(), 0.01);\n \n try { \n evaluation0.KBInformation();\n fail(\"Expecting exception: Exception\");\n \n } catch(Exception e) {\n //\n // Can't compute K&B Info score: class numeric!\n //\n verifyException(\"weka.classifiers.Evaluation\", e);\n }\n }", "title": "" }, { "docid": "ef37b9bb94a765e015e36ca043569ed7", "score": "0.66296154", "text": "@Test(timeout = 4000)\n public void test49() throws Throwable {\n EvoSuiteFile evoSuiteFile0 = new EvoSuiteFile(\"/home/ubuntu/wekafiles\");\n boolean boolean0 = FileSystemHandling.shouldThrowIOException(evoSuiteFile0);\n assertTrue(boolean0);\n \n RegressionByDiscretization regressionByDiscretization0 = new RegressionByDiscretization();\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertNotNull(regressionByDiscretization0);\n assertFalse(regressionByDiscretization0.getDebug());\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n \n Capabilities capabilities0 = regressionByDiscretization0.getCapabilities();\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertNotNull(capabilities0);\n assertFalse(regressionByDiscretization0.getDebug());\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertTrue(capabilities0.hasDependencies());\n assertEquals(2, capabilities0.getMinimumNumberInstances());\n \n TestInstances testInstances0 = TestInstances.forCapabilities(capabilities0);\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertNotNull(testInstances0);\n assertFalse(regressionByDiscretization0.getDebug());\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertTrue(capabilities0.hasDependencies());\n assertEquals(2, capabilities0.getMinimumNumberInstances());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertFalse(testInstances0.getNoClass());\n assertEquals(20, testInstances0.getNumInstances());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(1, testInstances0.getNumDate());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(1, testInstances0.getNumRelationalDate());\n assertEquals(4, testInstances0.getNumAttributes());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(0, testInstances0.getClassType());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(1, testInstances0.getNumNumeric());\n assertEquals(1, testInstances0.getNumRelationalNumeric());\n assertEquals(0, testInstances0.getNumRelationalString());\n \n Instances instances0 = testInstances0.generate(\" \");\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertNotNull(instances0);\n assertFalse(regressionByDiscretization0.getDebug());\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertTrue(capabilities0.hasDependencies());\n assertEquals(2, capabilities0.getMinimumNumberInstances());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertFalse(testInstances0.getNoClass());\n assertEquals(20, testInstances0.getNumInstances());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(1, testInstances0.getNumDate());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(1, testInstances0.getNumRelationalDate());\n assertEquals(4, testInstances0.getNumAttributes());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(0, testInstances0.getClassType());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(1, testInstances0.getNumNumeric());\n assertEquals(1, testInstances0.getNumRelationalNumeric());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(4, instances0.numAttributes());\n assertEquals(20, instances0.numInstances());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertEquals(20, instances0.size());\n assertFalse(instances0.checkForStringAttributes());\n assertEquals(1, instances0.numClasses());\n assertEquals(\"Testdata\", instances0.relationName());\n assertEquals(3, instances0.classIndex());\n \n Evaluation evaluation0 = new Evaluation(instances0);\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertNotNull(evaluation0);\n assertFalse(regressionByDiscretization0.getDebug());\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertTrue(capabilities0.hasDependencies());\n assertEquals(2, capabilities0.getMinimumNumberInstances());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertFalse(testInstances0.getNoClass());\n assertEquals(20, testInstances0.getNumInstances());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(1, testInstances0.getNumDate());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(1, testInstances0.getNumRelationalDate());\n assertEquals(4, testInstances0.getNumAttributes());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(0, testInstances0.getClassType());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(1, testInstances0.getNumNumeric());\n assertEquals(1, testInstances0.getNumRelationalNumeric());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(4, instances0.numAttributes());\n assertEquals(20, instances0.numInstances());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertEquals(20, instances0.size());\n assertFalse(instances0.checkForStringAttributes());\n assertEquals(1, instances0.numClasses());\n assertEquals(\"Testdata\", instances0.relationName());\n assertEquals(3, instances0.classIndex());\n assertEquals(Double.NaN, evaluation0.rootMeanSquaredError(), 0.01);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootRelativeSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.relativeAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanSchemeEntropy(), 0.01);\n assertEquals(0.0, evaluation0.numInstances(), 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.coverageOfTestCasesByPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation0.errorRate(), 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.avgCost(), 0.01);\n assertEquals(0.0, evaluation0.incorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctIncorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanPriorAbsoluteError(), 0.01);\n assertEquals(0.0, evaluation0.totalCost(), 0.01);\n assertEquals(Double.NaN, evaluation0.sizeOfPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctCorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanPriorSquaredError(), 0.01);\n assertEquals(0.0, evaluation0.correct(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctUnclassified(), 0.01);\n assertFalse(evaluation0.getDiscardPredictions());\n \n // Undeclared exception!\n try { \n evaluation0.unweightedMicroFmeasure();\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"weka.classifiers.Evaluation\", e);\n }\n }", "title": "" }, { "docid": "004f484e9f3c80a6e34cd3b4d83d7296", "score": "0.6622233", "text": "@Test(timeout = 4000)\n public void test59() throws Throwable {\n RegressionByDiscretization regressionByDiscretization0 = new RegressionByDiscretization();\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertNotNull(regressionByDiscretization0);\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertFalse(regressionByDiscretization0.getDebug());\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n \n Capabilities capabilities0 = regressionByDiscretization0.getCapabilities();\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertNotNull(capabilities0);\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertFalse(regressionByDiscretization0.getDebug());\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertTrue(capabilities0.hasDependencies());\n assertEquals(2, capabilities0.getMinimumNumberInstances());\n \n TestInstances testInstances0 = TestInstances.forCapabilities(capabilities0);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertNotNull(testInstances0);\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertFalse(regressionByDiscretization0.getDebug());\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertTrue(capabilities0.hasDependencies());\n assertEquals(2, capabilities0.getMinimumNumberInstances());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(1, testInstances0.getNumRelationalNumeric());\n assertEquals(1, testInstances0.getSeed());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(0, testInstances0.getNumString());\n assertFalse(testInstances0.getNoClass());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(1, testInstances0.getNumNumeric());\n assertEquals(1, testInstances0.getNumRelationalDate());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(4, testInstances0.getNumAttributes());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertEquals(20, testInstances0.getNumInstances());\n assertEquals(1, testInstances0.getNumDate());\n assertEquals(0, testInstances0.getClassType());\n assertEquals(2, testInstances0.getNumNominalValues());\n \n Instances instances0 = testInstances0.generate(\"|J\");\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertNotNull(instances0);\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertFalse(regressionByDiscretization0.getDebug());\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertTrue(capabilities0.hasDependencies());\n assertEquals(2, capabilities0.getMinimumNumberInstances());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(1, testInstances0.getNumRelationalNumeric());\n assertEquals(1, testInstances0.getSeed());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(0, testInstances0.getNumString());\n assertFalse(testInstances0.getNoClass());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(1, testInstances0.getNumNumeric());\n assertEquals(1, testInstances0.getNumRelationalDate());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(4, testInstances0.getNumAttributes());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertEquals(20, testInstances0.getNumInstances());\n assertEquals(1, testInstances0.getNumDate());\n assertEquals(0, testInstances0.getClassType());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertEquals(4, instances0.numAttributes());\n assertFalse(instances0.checkForStringAttributes());\n assertEquals(20, instances0.numInstances());\n assertEquals(20, instances0.size());\n assertEquals(3, instances0.classIndex());\n assertEquals(1, instances0.numClasses());\n assertEquals(\"Testdata\", instances0.relationName());\n \n Evaluation evaluation0 = new Evaluation(instances0);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertNotNull(evaluation0);\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertFalse(regressionByDiscretization0.getDebug());\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertTrue(capabilities0.hasDependencies());\n assertEquals(2, capabilities0.getMinimumNumberInstances());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(1, testInstances0.getNumRelationalNumeric());\n assertEquals(1, testInstances0.getSeed());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(0, testInstances0.getNumString());\n assertFalse(testInstances0.getNoClass());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(1, testInstances0.getNumNumeric());\n assertEquals(1, testInstances0.getNumRelationalDate());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(4, testInstances0.getNumAttributes());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertEquals(20, testInstances0.getNumInstances());\n assertEquals(1, testInstances0.getNumDate());\n assertEquals(0, testInstances0.getClassType());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertEquals(4, instances0.numAttributes());\n assertFalse(instances0.checkForStringAttributes());\n assertEquals(20, instances0.numInstances());\n assertEquals(20, instances0.size());\n assertEquals(3, instances0.classIndex());\n assertEquals(1, instances0.numClasses());\n assertEquals(\"Testdata\", instances0.relationName());\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanPriorSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootRelativeSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.relativeAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.coverageOfTestCasesByPredictedRegions(), 0.01);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(0.0, evaluation0.correct(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctUnclassified(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanEntropyGain(), 0.01);\n assertFalse(evaluation0.getDiscardPredictions());\n assertEquals(0.0, evaluation0.totalCost(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanSquaredError(), 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(0.0, evaluation0.incorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.errorRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.sizeOfPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanPriorAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctIncorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.avgCost(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanSchemeEntropy(), 0.01);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n assertEquals(0.0, evaluation0.numInstances(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctCorrect(), 0.01);\n \n double[] doubleArray0 = new double[9];\n doubleArray0[0] = (double) 2;\n doubleArray0[1] = (double) (-2);\n RandomForest randomForest0 = new RandomForest();\n assertNotNull(randomForest0);\n assertEquals(\"Print the individual trees in the output\", randomForest0.printTreesTipText());\n assertEquals(Double.NaN, randomForest0.measureOutOfBagError(), 0.01);\n assertEquals(0, randomForest0.getNumFeatures());\n assertFalse(randomForest0.getPrintTrees());\n assertEquals(1, randomForest0.getNumExecutionSlots());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", randomForest0.debugTipText());\n assertEquals(\"The number of execution slots (threads) to use for constructing the ensemble.\", randomForest0.numExecutionSlotsTipText());\n assertEquals(0, randomForest0.getMaxDepth());\n assertFalse(randomForest0.getDebug());\n assertEquals(\"The random number seed to be used.\", randomForest0.seedTipText());\n assertEquals(\"The number of attributes to be used in random selection (see RandomTree).\", randomForest0.numFeaturesTipText());\n assertEquals(\"The number of trees to be generated.\", randomForest0.numTreesTipText());\n assertEquals(10, randomForest0.getNumTrees());\n assertEquals(\"The maximum depth of the trees, 0 for unlimited.\", randomForest0.maxDepthTipText());\n assertEquals(1, randomForest0.getSeed());\n \n MockRandom mockRandom0 = new MockRandom();\n assertNotNull(mockRandom0);\n \n try { \n evaluation0.crossValidateModel((Classifier) regressionByDiscretization0, instances0, 2, (Random) mockRandom0, (Object[]) testInstances0.DEFAULT_WORDS);\n fail(\"Expecting exception: ClassCastException\");\n \n } catch(ClassCastException e) {\n //\n // java.lang.String cannot be cast to weka.classifiers.evaluation.output.prediction.AbstractOutput\n //\n verifyException(\"weka.classifiers.Evaluation\", e);\n }\n }", "title": "" }, { "docid": "c3b044fe5f89582eb0270a9e660d10f2", "score": "0.6609897", "text": "@Test(timeout = 4000)\n public void test69() throws Throwable {\n RegressionByDiscretization regressionByDiscretization0 = new RegressionByDiscretization();\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertNotNull(regressionByDiscretization0);\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertFalse(regressionByDiscretization0.getDebug());\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n \n Capabilities capabilities0 = regressionByDiscretization0.getCapabilities();\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertNotNull(capabilities0);\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertFalse(regressionByDiscretization0.getDebug());\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertTrue(capabilities0.hasDependencies());\n assertEquals(2, capabilities0.getMinimumNumberInstances());\n \n TestInstances testInstances0 = TestInstances.forCapabilities(capabilities0);\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertNotNull(testInstances0);\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertFalse(regressionByDiscretization0.getDebug());\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertTrue(capabilities0.hasDependencies());\n assertEquals(2, capabilities0.getMinimumNumberInstances());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(1, testInstances0.getNumNumeric());\n assertEquals(1, testInstances0.getNumRelationalDate());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(1, testInstances0.getNumRelationalNumeric());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(1, testInstances0.getNumDate());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertFalse(testInstances0.getNoClass());\n assertEquals(0, testInstances0.getClassType());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(20, testInstances0.getNumInstances());\n assertEquals(4, testInstances0.getNumAttributes());\n assertEquals(2, testInstances0.getNumClasses());\n \n Instances instances0 = testInstances0.generate(\"|J\");\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertNotNull(instances0);\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertFalse(regressionByDiscretization0.getDebug());\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertTrue(capabilities0.hasDependencies());\n assertEquals(2, capabilities0.getMinimumNumberInstances());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(1, testInstances0.getNumNumeric());\n assertEquals(1, testInstances0.getNumRelationalDate());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(1, testInstances0.getNumRelationalNumeric());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(1, testInstances0.getNumDate());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertFalse(testInstances0.getNoClass());\n assertEquals(0, testInstances0.getClassType());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(20, testInstances0.getNumInstances());\n assertEquals(4, testInstances0.getNumAttributes());\n assertEquals(2, testInstances0.getNumClasses());\n assertFalse(instances0.checkForStringAttributes());\n assertEquals(1, instances0.numClasses());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertEquals(20, instances0.size());\n assertEquals(20, instances0.numInstances());\n assertEquals(4, instances0.numAttributes());\n assertEquals(\"Testdata\", instances0.relationName());\n assertEquals(3, instances0.classIndex());\n \n Evaluation evaluation0 = new Evaluation(instances0);\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertNotNull(evaluation0);\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertFalse(regressionByDiscretization0.getDebug());\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertTrue(capabilities0.hasDependencies());\n assertEquals(2, capabilities0.getMinimumNumberInstances());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(1, testInstances0.getNumNumeric());\n assertEquals(1, testInstances0.getNumRelationalDate());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(1, testInstances0.getNumRelationalNumeric());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(1, testInstances0.getNumDate());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertFalse(testInstances0.getNoClass());\n assertEquals(0, testInstances0.getClassType());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(20, testInstances0.getNumInstances());\n assertEquals(4, testInstances0.getNumAttributes());\n assertEquals(2, testInstances0.getNumClasses());\n assertFalse(instances0.checkForStringAttributes());\n assertEquals(1, instances0.numClasses());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertEquals(20, instances0.size());\n assertEquals(20, instances0.numInstances());\n assertEquals(4, instances0.numAttributes());\n assertEquals(\"Testdata\", instances0.relationName());\n assertEquals(3, instances0.classIndex());\n assertEquals(Double.NaN, evaluation0.SFMeanEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootRelativeSquaredError(), 0.01);\n assertFalse(evaluation0.getDiscardPredictions());\n assertEquals(Double.NaN, evaluation0.relativeAbsoluteError(), 0.01);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctUnclassified(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanPriorSquaredError(), 0.01);\n assertEquals(0.0, evaluation0.correct(), 0.01);\n assertEquals(Double.NaN, evaluation0.sizeOfPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanPriorAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.errorRate(), 0.01);\n assertEquals(0.0, evaluation0.totalCost(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanAbsoluteError(), 0.01);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctCorrect(), 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.avgCost(), 0.01);\n assertEquals(0.0, evaluation0.numInstances(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctIncorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanPriorEntropy(), 0.01);\n assertEquals(0.0, evaluation0.incorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.coverageOfTestCasesByPredictedRegions(), 0.01);\n \n Evaluation evaluation1 = new Evaluation(instances0);\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertNotNull(evaluation1);\n assertTrue(evaluation1.equals((Object)evaluation0));\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertFalse(regressionByDiscretization0.getDebug());\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertTrue(capabilities0.hasDependencies());\n assertEquals(2, capabilities0.getMinimumNumberInstances());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(1, testInstances0.getNumNumeric());\n assertEquals(1, testInstances0.getNumRelationalDate());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(1, testInstances0.getNumRelationalNumeric());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(1, testInstances0.getNumDate());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertFalse(testInstances0.getNoClass());\n assertEquals(0, testInstances0.getClassType());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(20, testInstances0.getNumInstances());\n assertEquals(4, testInstances0.getNumAttributes());\n assertEquals(2, testInstances0.getNumClasses());\n assertFalse(instances0.checkForStringAttributes());\n assertEquals(1, instances0.numClasses());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertEquals(20, instances0.size());\n assertEquals(20, instances0.numInstances());\n assertEquals(4, instances0.numAttributes());\n assertEquals(\"Testdata\", instances0.relationName());\n assertEquals(3, instances0.classIndex());\n assertEquals(0.0, evaluation1.totalCost(), 0.01);\n assertEquals(Double.NaN, evaluation1.coverageOfTestCasesByPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation1.meanPriorAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation1.errorRate(), 0.01);\n assertEquals(0.0, evaluation1.SFEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation1.rootMeanPriorSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation1.meanAbsoluteError(), 0.01);\n assertEquals(0.0, evaluation1.SFPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation1.relativeAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation1.pctUnclassified(), 0.01);\n assertEquals(Double.NaN, evaluation1.SFMeanSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation1.avgCost(), 0.01);\n assertEquals(Double.NaN, evaluation1.rootMeanSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation1.SFMeanEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation1.rootRelativeSquaredError(), 0.01);\n assertEquals(0.0, evaluation1.unclassified(), 0.01);\n assertEquals(0.0, evaluation1.correct(), 0.01);\n assertEquals(Double.NaN, evaluation1.SFMeanPriorEntropy(), 0.01);\n assertFalse(evaluation1.getDiscardPredictions());\n assertEquals(Double.NaN, evaluation1.pctIncorrect(), 0.01);\n assertEquals(0.0, evaluation1.incorrect(), 0.01);\n assertEquals(Double.NaN, evaluation1.sizeOfPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation1.pctCorrect(), 0.01);\n assertEquals(0.0, evaluation1.SFSchemeEntropy(), 0.01);\n assertEquals(0.0, evaluation1.numInstances(), 0.01);\n \n double double0 = evaluation0.errorRate();\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertEquals(Double.NaN, double0, 0.01);\n assertTrue(evaluation0.equals((Object)evaluation1));\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertFalse(regressionByDiscretization0.getDebug());\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertTrue(capabilities0.hasDependencies());\n assertEquals(2, capabilities0.getMinimumNumberInstances());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(1, testInstances0.getNumNumeric());\n assertEquals(1, testInstances0.getNumRelationalDate());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(1, testInstances0.getNumRelationalNumeric());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(1, testInstances0.getNumDate());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertFalse(testInstances0.getNoClass());\n assertEquals(0, testInstances0.getClassType());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(20, testInstances0.getNumInstances());\n assertEquals(4, testInstances0.getNumAttributes());\n assertEquals(2, testInstances0.getNumClasses());\n assertFalse(instances0.checkForStringAttributes());\n assertEquals(1, instances0.numClasses());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertEquals(20, instances0.size());\n assertEquals(20, instances0.numInstances());\n assertEquals(4, instances0.numAttributes());\n assertEquals(\"Testdata\", instances0.relationName());\n assertEquals(3, instances0.classIndex());\n assertEquals(Double.NaN, evaluation0.SFMeanEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootRelativeSquaredError(), 0.01);\n assertFalse(evaluation0.getDiscardPredictions());\n assertEquals(Double.NaN, evaluation0.relativeAbsoluteError(), 0.01);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctUnclassified(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanPriorSquaredError(), 0.01);\n assertEquals(0.0, evaluation0.correct(), 0.01);\n assertEquals(Double.NaN, evaluation0.sizeOfPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanPriorAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.errorRate(), 0.01);\n assertEquals(0.0, evaluation0.totalCost(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanAbsoluteError(), 0.01);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctCorrect(), 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.avgCost(), 0.01);\n assertEquals(0.0, evaluation0.numInstances(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctIncorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanPriorEntropy(), 0.01);\n assertEquals(0.0, evaluation0.incorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.coverageOfTestCasesByPredictedRegions(), 0.01);\n assertNotSame(evaluation0, evaluation1);\n }", "title": "" }, { "docid": "de45aa0c400a7327b17abfcc5197d924", "score": "0.6608243", "text": "@Test(timeout = 4000)\n public void test78() throws Throwable {\n RegressionByDiscretization regressionByDiscretization0 = new RegressionByDiscretization();\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertNotNull(regressionByDiscretization0);\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertFalse(regressionByDiscretization0.getDebug());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n \n Capabilities capabilities0 = regressionByDiscretization0.getCapabilities();\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertNotNull(capabilities0);\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertFalse(regressionByDiscretization0.getDebug());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertEquals(2, capabilities0.getMinimumNumberInstances());\n assertTrue(capabilities0.hasDependencies());\n \n TestInstances testInstances0 = TestInstances.forCapabilities(capabilities0);\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertNotNull(testInstances0);\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertFalse(regressionByDiscretization0.getDebug());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertEquals(2, capabilities0.getMinimumNumberInstances());\n assertTrue(capabilities0.hasDependencies());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(1, testInstances0.getNumDate());\n assertEquals(20, testInstances0.getNumInstances());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(1, testInstances0.getNumRelationalNumeric());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(1, testInstances0.getNumNumeric());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(1, testInstances0.getNumRelationalDate());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(0, testInstances0.getClassType());\n assertEquals(2, testInstances0.getNumClasses());\n assertFalse(testInstances0.getNoClass());\n assertEquals(4, testInstances0.getNumAttributes());\n \n Instances instances0 = testInstances0.generate(\" \");\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertNotNull(instances0);\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertFalse(regressionByDiscretization0.getDebug());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertEquals(2, capabilities0.getMinimumNumberInstances());\n assertTrue(capabilities0.hasDependencies());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(1, testInstances0.getNumDate());\n assertEquals(20, testInstances0.getNumInstances());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(1, testInstances0.getNumRelationalNumeric());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(1, testInstances0.getNumNumeric());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(1, testInstances0.getNumRelationalDate());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(0, testInstances0.getClassType());\n assertEquals(2, testInstances0.getNumClasses());\n assertFalse(testInstances0.getNoClass());\n assertEquals(4, testInstances0.getNumAttributes());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertEquals(\"Testdata\", instances0.relationName());\n assertEquals(20, instances0.numInstances());\n assertEquals(4, instances0.numAttributes());\n assertFalse(instances0.checkForStringAttributes());\n assertEquals(1, instances0.numClasses());\n assertEquals(20, instances0.size());\n assertEquals(3, instances0.classIndex());\n \n Evaluation evaluation0 = new Evaluation(instances0);\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertNotNull(evaluation0);\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertFalse(regressionByDiscretization0.getDebug());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertEquals(2, capabilities0.getMinimumNumberInstances());\n assertTrue(capabilities0.hasDependencies());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(1, testInstances0.getNumDate());\n assertEquals(20, testInstances0.getNumInstances());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(1, testInstances0.getNumRelationalNumeric());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(1, testInstances0.getNumNumeric());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(1, testInstances0.getNumRelationalDate());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(0, testInstances0.getClassType());\n assertEquals(2, testInstances0.getNumClasses());\n assertFalse(testInstances0.getNoClass());\n assertEquals(4, testInstances0.getNumAttributes());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertEquals(\"Testdata\", instances0.relationName());\n assertEquals(20, instances0.numInstances());\n assertEquals(4, instances0.numAttributes());\n assertFalse(instances0.checkForStringAttributes());\n assertEquals(1, instances0.numClasses());\n assertEquals(20, instances0.size());\n assertEquals(3, instances0.classIndex());\n assertEquals(Double.NaN, evaluation0.pctCorrect(), 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanPriorAbsoluteError(), 0.01);\n assertEquals(0.0, evaluation0.totalCost(), 0.01);\n assertEquals(Double.NaN, evaluation0.sizeOfPredictedRegions(), 0.01);\n assertEquals(0.0, evaluation0.incorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctIncorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.coverageOfTestCasesByPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation0.avgCost(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanSchemeEntropy(), 0.01);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanPriorEntropy(), 0.01);\n assertEquals(0.0, evaluation0.numInstances(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctUnclassified(), 0.01);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootRelativeSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.errorRate(), 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanPriorSquaredError(), 0.01);\n assertFalse(evaluation0.getDiscardPredictions());\n assertEquals(0.0, evaluation0.correct(), 0.01);\n assertEquals(Double.NaN, evaluation0.relativeAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanSquaredError(), 0.01);\n \n double[] doubleArray0 = new double[9];\n doubleArray0[0] = (double) 2;\n doubleArray0[1] = (double) (-2);\n doubleArray0[2] = (double) 1;\n doubleArray0[3] = (double) 0;\n doubleArray0[5] = (double) 0;\n doubleArray0[6] = (double) 0;\n DenseInstance denseInstance0 = new DenseInstance(1, doubleArray0);\n assertEquals(6, AbstractInstance.s_numericAfterDecimalPoint);\n assertNotNull(denseInstance0);\n assertArrayEquals(new double[] {2.0, (-2.0), 1.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, doubleArray0, 0.01);\n assertEquals(1.0, denseInstance0.weight(), 0.01);\n assertEquals(9, denseInstance0.numAttributes());\n assertEquals(9, denseInstance0.numValues());\n assertEquals(9, doubleArray0.length);\n \n ConverterUtils.DataSource converterUtils_DataSource0 = new ConverterUtils.DataSource(instances0);\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertNotNull(converterUtils_DataSource0);\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertFalse(regressionByDiscretization0.getDebug());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertEquals(2, capabilities0.getMinimumNumberInstances());\n assertTrue(capabilities0.hasDependencies());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(1, testInstances0.getNumDate());\n assertEquals(20, testInstances0.getNumInstances());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(1, testInstances0.getNumRelationalNumeric());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(1, testInstances0.getNumNumeric());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(1, testInstances0.getNumRelationalDate());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(0, testInstances0.getClassType());\n assertEquals(2, testInstances0.getNumClasses());\n assertFalse(testInstances0.getNoClass());\n assertEquals(4, testInstances0.getNumAttributes());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertEquals(\"Testdata\", instances0.relationName());\n assertEquals(20, instances0.numInstances());\n assertEquals(4, instances0.numAttributes());\n assertFalse(instances0.checkForStringAttributes());\n assertEquals(1, instances0.numClasses());\n assertEquals(20, instances0.size());\n assertEquals(3, instances0.classIndex());\n assertFalse(converterUtils_DataSource0.isIncremental());\n \n DenseInstance denseInstance1 = (DenseInstance)converterUtils_DataSource0.nextElement(instances0);\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertEquals(6, AbstractInstance.s_numericAfterDecimalPoint);\n assertNotNull(denseInstance1);\n assertFalse(denseInstance1.equals((Object)denseInstance0));\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertFalse(regressionByDiscretization0.getDebug());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertEquals(2, capabilities0.getMinimumNumberInstances());\n assertTrue(capabilities0.hasDependencies());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(1, testInstances0.getNumDate());\n assertEquals(20, testInstances0.getNumInstances());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(1, testInstances0.getNumRelationalNumeric());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(1, testInstances0.getNumNumeric());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(1, testInstances0.getNumRelationalDate());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(0, testInstances0.getClassType());\n assertEquals(2, testInstances0.getNumClasses());\n assertFalse(testInstances0.getNoClass());\n assertEquals(4, testInstances0.getNumAttributes());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertEquals(\"Testdata\", instances0.relationName());\n assertEquals(20, instances0.numInstances());\n assertEquals(4, instances0.numAttributes());\n assertFalse(instances0.checkForStringAttributes());\n assertEquals(1, instances0.numClasses());\n assertEquals(20, instances0.size());\n assertEquals(3, instances0.classIndex());\n assertFalse(converterUtils_DataSource0.isIncremental());\n assertEquals(4, denseInstance1.numValues());\n assertEquals(4, denseInstance1.numAttributes());\n assertEquals(1, denseInstance1.numClasses());\n assertEquals(3, denseInstance1.classIndex());\n assertEquals(1.0, denseInstance1.weight(), 0.01);\n assertNotSame(denseInstance1, denseInstance0);\n \n double double0 = evaluation0.evaluationForSingleInstance(doubleArray0, denseInstance1, true);\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertEquals(6, AbstractInstance.s_numericAfterDecimalPoint);\n assertArrayEquals(new double[] {2.0, (-2.0), 1.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, doubleArray0, 0.01);\n assertEquals(2.0, double0, 0.01);\n assertFalse(denseInstance1.equals((Object)denseInstance0));\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertFalse(regressionByDiscretization0.getDebug());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertEquals(2, capabilities0.getMinimumNumberInstances());\n assertTrue(capabilities0.hasDependencies());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(1, testInstances0.getNumDate());\n assertEquals(20, testInstances0.getNumInstances());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(1, testInstances0.getNumRelationalNumeric());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(1, testInstances0.getNumNumeric());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(1, testInstances0.getNumRelationalDate());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(0, testInstances0.getClassType());\n assertEquals(2, testInstances0.getNumClasses());\n assertFalse(testInstances0.getNoClass());\n assertEquals(4, testInstances0.getNumAttributes());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertEquals(\"Testdata\", instances0.relationName());\n assertEquals(20, instances0.numInstances());\n assertEquals(4, instances0.numAttributes());\n assertFalse(instances0.checkForStringAttributes());\n assertEquals(1, instances0.numClasses());\n assertEquals(20, instances0.size());\n assertEquals(3, instances0.classIndex());\n assertEquals(189.1252955549109, evaluation0.rootRelativeSquaredError(), 0.01);\n assertEquals(189.1252955549109, evaluation0.relativeAbsoluteError(), 0.01);\n assertEquals(0.0, evaluation0.sizeOfPredictedRegions(), 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(0.0, evaluation0.totalCost(), 0.01);\n assertEquals(0.0, evaluation0.pctCorrect(), 0.01);\n assertEquals(0.0, evaluation0.coverageOfTestCasesByPredictedRegions(), 0.01);\n assertEquals(0.0, evaluation0.incorrect(), 0.01);\n assertEquals(0.5287499998696148, evaluation0.meanPriorAbsoluteError(), 0.01);\n assertEquals(1.0, evaluation0.numInstances(), 0.01);\n assertEquals(0.0, evaluation0.avgCost(), 0.01);\n assertEquals(0.0, evaluation0.SFMeanPriorEntropy(), 0.01);\n assertEquals(0.0, evaluation0.pctIncorrect(), 0.01);\n assertEquals(0.0, evaluation0.SFMeanEntropyGain(), 0.01);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n assertEquals(1.0, evaluation0.errorRate(), 0.01);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(0.0, evaluation0.SFMeanSchemeEntropy(), 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertFalse(evaluation0.getDiscardPredictions());\n assertEquals(1.0, evaluation0.rootMeanSquaredError(), 0.01);\n assertEquals(0.0, evaluation0.correct(), 0.01);\n assertEquals(1.0, evaluation0.meanAbsoluteError(), 0.01);\n assertEquals(0.5287499998696148, evaluation0.rootMeanPriorSquaredError(), 0.01);\n assertEquals(0.0, evaluation0.pctUnclassified(), 0.01);\n assertFalse(converterUtils_DataSource0.isIncremental());\n assertEquals(4, denseInstance1.numValues());\n assertEquals(4, denseInstance1.numAttributes());\n assertEquals(1, denseInstance1.numClasses());\n assertEquals(3, denseInstance1.classIndex());\n assertEquals(1.0, denseInstance1.weight(), 0.01);\n assertEquals(9, doubleArray0.length);\n assertNotSame(denseInstance1, denseInstance0);\n \n String string0 = evaluation0.toSummaryString(\"weka/core/Capabilities.props\", true);\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertNotNull(string0);\n assertEquals(\"weka/core/Capabilities.props\\nCorrelation coefficient 0 \\nClass complexity | order 0 0 bits 0 bits/instance\\nClass complexity | scheme 0 bits 0 bits/instance\\nComplexity improvement (Sf) 0 bits 0 bits/instance\\nMean absolute error 1 \\nRoot mean squared error 1 \\nRelative absolute error 189.1253 %\\nRoot relative squared error 189.1253 %\\nCoverage of cases (0.95 level) 0 %\\nMean rel. region size (0.95 level) 0 %\\nTotal Number of Instances 1 \\n\", string0);\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertFalse(regressionByDiscretization0.getDebug());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertEquals(2, capabilities0.getMinimumNumberInstances());\n assertTrue(capabilities0.hasDependencies());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(1, testInstances0.getNumDate());\n assertEquals(20, testInstances0.getNumInstances());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(1, testInstances0.getNumRelationalNumeric());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(1, testInstances0.getNumNumeric());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(1, testInstances0.getNumRelationalDate());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(0, testInstances0.getClassType());\n assertEquals(2, testInstances0.getNumClasses());\n assertFalse(testInstances0.getNoClass());\n assertEquals(4, testInstances0.getNumAttributes());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertEquals(\"Testdata\", instances0.relationName());\n assertEquals(20, instances0.numInstances());\n assertEquals(4, instances0.numAttributes());\n assertFalse(instances0.checkForStringAttributes());\n assertEquals(1, instances0.numClasses());\n assertEquals(20, instances0.size());\n assertEquals(3, instances0.classIndex());\n assertEquals(189.1252955549109, evaluation0.rootRelativeSquaredError(), 0.01);\n assertEquals(189.1252955549109, evaluation0.relativeAbsoluteError(), 0.01);\n assertEquals(0.0, evaluation0.sizeOfPredictedRegions(), 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(0.0, evaluation0.totalCost(), 0.01);\n assertEquals(0.0, evaluation0.pctCorrect(), 0.01);\n assertEquals(0.0, evaluation0.coverageOfTestCasesByPredictedRegions(), 0.01);\n assertEquals(0.0, evaluation0.incorrect(), 0.01);\n assertEquals(0.5287499998696148, evaluation0.meanPriorAbsoluteError(), 0.01);\n assertEquals(1.0, evaluation0.numInstances(), 0.01);\n assertEquals(0.0, evaluation0.avgCost(), 0.01);\n assertEquals(0.0, evaluation0.SFMeanPriorEntropy(), 0.01);\n assertEquals(0.0, evaluation0.pctIncorrect(), 0.01);\n assertEquals(0.0, evaluation0.SFMeanEntropyGain(), 0.01);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n assertEquals(1.0, evaluation0.errorRate(), 0.01);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(0.0, evaluation0.SFMeanSchemeEntropy(), 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertFalse(evaluation0.getDiscardPredictions());\n assertEquals(1.0, evaluation0.rootMeanSquaredError(), 0.01);\n assertEquals(0.0, evaluation0.correct(), 0.01);\n assertEquals(1.0, evaluation0.meanAbsoluteError(), 0.01);\n assertEquals(0.5287499998696148, evaluation0.rootMeanPriorSquaredError(), 0.01);\n assertEquals(0.0, evaluation0.pctUnclassified(), 0.01);\n \n try { \n CostMatrix.parseMatlab(\" \");\n fail(\"Expecting exception: StringIndexOutOfBoundsException\");\n \n } catch(StringIndexOutOfBoundsException e) {\n }\n }", "title": "" }, { "docid": "af7b9fc1b275132bf76307e72999c796", "score": "0.6603047", "text": "@Test(timeout = 4000)\n public void test57() throws Throwable {\n RegressionByDiscretization regressionByDiscretization0 = new RegressionByDiscretization();\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertNotNull(regressionByDiscretization0);\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertFalse(regressionByDiscretization0.getDebug());\n \n Capabilities capabilities0 = regressionByDiscretization0.getCapabilities();\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertNotNull(capabilities0);\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertFalse(regressionByDiscretization0.getDebug());\n assertEquals(2, capabilities0.getMinimumNumberInstances());\n assertTrue(capabilities0.hasDependencies());\n \n TestInstances testInstances0 = TestInstances.forCapabilities(capabilities0);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertNotNull(testInstances0);\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertFalse(regressionByDiscretization0.getDebug());\n assertEquals(2, capabilities0.getMinimumNumberInstances());\n assertTrue(capabilities0.hasDependencies());\n assertFalse(testInstances0.getNoClass());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(20, testInstances0.getNumInstances());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(1, testInstances0.getNumRelationalNumeric());\n assertEquals(1, testInstances0.getNumNumeric());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(0, testInstances0.getClassType());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(4, testInstances0.getNumAttributes());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(1, testInstances0.getNumRelationalDate());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(1, testInstances0.getNumDate());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n \n Instances instances0 = testInstances0.generate(\"|J\");\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertNotNull(instances0);\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertFalse(regressionByDiscretization0.getDebug());\n assertEquals(2, capabilities0.getMinimumNumberInstances());\n assertTrue(capabilities0.hasDependencies());\n assertFalse(testInstances0.getNoClass());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(20, testInstances0.getNumInstances());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(1, testInstances0.getNumRelationalNumeric());\n assertEquals(1, testInstances0.getNumNumeric());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(0, testInstances0.getClassType());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(4, testInstances0.getNumAttributes());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(1, testInstances0.getNumRelationalDate());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(1, testInstances0.getNumDate());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertEquals(4, instances0.numAttributes());\n assertEquals(\"Testdata\", instances0.relationName());\n assertEquals(20, instances0.size());\n assertEquals(3, instances0.classIndex());\n assertEquals(1, instances0.numClasses());\n assertFalse(instances0.checkForStringAttributes());\n assertEquals(20, instances0.numInstances());\n \n Evaluation evaluation0 = new Evaluation(instances0);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertNotNull(evaluation0);\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertFalse(regressionByDiscretization0.getDebug());\n assertEquals(2, capabilities0.getMinimumNumberInstances());\n assertTrue(capabilities0.hasDependencies());\n assertFalse(testInstances0.getNoClass());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(20, testInstances0.getNumInstances());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(1, testInstances0.getNumRelationalNumeric());\n assertEquals(1, testInstances0.getNumNumeric());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(0, testInstances0.getClassType());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(4, testInstances0.getNumAttributes());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(1, testInstances0.getNumRelationalDate());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(1, testInstances0.getNumDate());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertEquals(4, instances0.numAttributes());\n assertEquals(\"Testdata\", instances0.relationName());\n assertEquals(20, instances0.size());\n assertEquals(3, instances0.classIndex());\n assertEquals(1, instances0.numClasses());\n assertFalse(instances0.checkForStringAttributes());\n assertEquals(20, instances0.numInstances());\n assertEquals(0.0, evaluation0.totalCost(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanPriorAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.sizeOfPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation0.errorRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctIncorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctCorrect(), 0.01);\n assertEquals(0.0, evaluation0.incorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.coverageOfTestCasesByPredictedRegions(), 0.01);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.avgCost(), 0.01);\n assertEquals(0.0, evaluation0.numInstances(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctUnclassified(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootRelativeSquaredError(), 0.01);\n assertFalse(evaluation0.getDiscardPredictions());\n assertEquals(0.0, evaluation0.correct(), 0.01);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanPriorSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.relativeAbsoluteError(), 0.01);\n \n evaluation0.addNumericTrainClass((-38.633626237796), 2);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertFalse(regressionByDiscretization0.getDebug());\n assertEquals(2, capabilities0.getMinimumNumberInstances());\n assertTrue(capabilities0.hasDependencies());\n assertFalse(testInstances0.getNoClass());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(20, testInstances0.getNumInstances());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(1, testInstances0.getNumRelationalNumeric());\n assertEquals(1, testInstances0.getNumNumeric());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(0, testInstances0.getClassType());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(4, testInstances0.getNumAttributes());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(1, testInstances0.getNumRelationalDate());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(1, testInstances0.getNumDate());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertEquals(4, instances0.numAttributes());\n assertEquals(\"Testdata\", instances0.relationName());\n assertEquals(20, instances0.size());\n assertEquals(3, instances0.classIndex());\n assertEquals(1, instances0.numClasses());\n assertFalse(instances0.checkForStringAttributes());\n assertEquals(20, instances0.numInstances());\n assertEquals(0.0, evaluation0.totalCost(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanPriorAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.sizeOfPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation0.errorRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctIncorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctCorrect(), 0.01);\n assertEquals(0.0, evaluation0.incorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.coverageOfTestCasesByPredictedRegions(), 0.01);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.avgCost(), 0.01);\n assertEquals(0.0, evaluation0.numInstances(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctUnclassified(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootRelativeSquaredError(), 0.01);\n assertFalse(evaluation0.getDiscardPredictions());\n assertEquals(0.0, evaluation0.correct(), 0.01);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanPriorSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.relativeAbsoluteError(), 0.01);\n \n try { \n evaluation0.toMatrixString(\"weka/core/Capabilities.props\");\n fail(\"Expecting exception: Exception\");\n \n } catch(Exception e) {\n //\n // Evaluation: No confusion matrix possible!\n //\n verifyException(\"weka.classifiers.Evaluation\", e);\n }\n }", "title": "" }, { "docid": "745cf64643086ece5d50f5d92b6359ff", "score": "0.6595536", "text": "@Test(timeout = 4000)\n public void test70() throws Throwable {\n RegressionByDiscretization regressionByDiscretization0 = new RegressionByDiscretization();\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertNotNull(regressionByDiscretization0);\n assertFalse(regressionByDiscretization0.getDebug());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n \n Capabilities capabilities0 = regressionByDiscretization0.getCapabilities();\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertNotNull(capabilities0);\n assertFalse(regressionByDiscretization0.getDebug());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertEquals(2, capabilities0.getMinimumNumberInstances());\n assertTrue(capabilities0.hasDependencies());\n \n TestInstances testInstances0 = TestInstances.forCapabilities(capabilities0);\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertNotNull(testInstances0);\n assertFalse(regressionByDiscretization0.getDebug());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertEquals(2, capabilities0.getMinimumNumberInstances());\n assertTrue(capabilities0.hasDependencies());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(1, testInstances0.getNumRelationalNumeric());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(1, testInstances0.getNumDate());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(1, testInstances0.getNumNumeric());\n assertEquals(1, testInstances0.getNumRelationalDate());\n assertEquals(0, testInstances0.getClassType());\n assertEquals((-1), testInstances0.getClassIndex());\n assertFalse(testInstances0.getNoClass());\n assertEquals(20, testInstances0.getNumInstances());\n assertEquals(4, testInstances0.getNumAttributes());\n assertEquals(2, testInstances0.getNumClasses());\n \n Enumeration enumeration0 = testInstances0.listOptions();\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertNotNull(enumeration0);\n assertFalse(regressionByDiscretization0.getDebug());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertEquals(2, capabilities0.getMinimumNumberInstances());\n assertTrue(capabilities0.hasDependencies());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(1, testInstances0.getNumRelationalNumeric());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(1, testInstances0.getNumDate());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(1, testInstances0.getNumNumeric());\n assertEquals(1, testInstances0.getNumRelationalDate());\n assertEquals(0, testInstances0.getClassType());\n assertEquals((-1), testInstances0.getClassIndex());\n assertFalse(testInstances0.getNoClass());\n assertEquals(20, testInstances0.getNumInstances());\n assertEquals(4, testInstances0.getNumAttributes());\n assertEquals(2, testInstances0.getNumClasses());\n \n Instances instances0 = testInstances0.generate(\"weka/core/Capabilities.props\");\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertNotNull(instances0);\n assertFalse(regressionByDiscretization0.getDebug());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertEquals(2, capabilities0.getMinimumNumberInstances());\n assertTrue(capabilities0.hasDependencies());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(1, testInstances0.getNumRelationalNumeric());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(1, testInstances0.getNumDate());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(1, testInstances0.getNumNumeric());\n assertEquals(1, testInstances0.getNumRelationalDate());\n assertEquals(0, testInstances0.getClassType());\n assertEquals((-1), testInstances0.getClassIndex());\n assertFalse(testInstances0.getNoClass());\n assertEquals(20, testInstances0.getNumInstances());\n assertEquals(4, testInstances0.getNumAttributes());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(20, instances0.size());\n assertEquals(1, instances0.numClasses());\n assertFalse(instances0.checkForStringAttributes());\n assertEquals(20, instances0.numInstances());\n assertEquals(3, instances0.classIndex());\n assertEquals(\"Testdata\", instances0.relationName());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertEquals(4, instances0.numAttributes());\n \n MockRandom mockRandom0 = new MockRandom();\n assertNotNull(mockRandom0);\n \n Evaluation evaluation0 = new Evaluation(instances0, (CostMatrix) null);\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertNotNull(evaluation0);\n assertFalse(regressionByDiscretization0.getDebug());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertEquals(2, capabilities0.getMinimumNumberInstances());\n assertTrue(capabilities0.hasDependencies());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(1, testInstances0.getNumRelationalNumeric());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(1, testInstances0.getNumDate());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(1, testInstances0.getNumNumeric());\n assertEquals(1, testInstances0.getNumRelationalDate());\n assertEquals(0, testInstances0.getClassType());\n assertEquals((-1), testInstances0.getClassIndex());\n assertFalse(testInstances0.getNoClass());\n assertEquals(20, testInstances0.getNumInstances());\n assertEquals(4, testInstances0.getNumAttributes());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(20, instances0.size());\n assertEquals(1, instances0.numClasses());\n assertFalse(instances0.checkForStringAttributes());\n assertEquals(20, instances0.numInstances());\n assertEquals(3, instances0.classIndex());\n assertEquals(\"Testdata\", instances0.relationName());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertEquals(4, instances0.numAttributes());\n assertEquals(Double.NaN, evaluation0.meanPriorAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctCorrect(), 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanAbsoluteError(), 0.01);\n assertEquals(0.0, evaluation0.totalCost(), 0.01);\n assertEquals(Double.NaN, evaluation0.errorRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctIncorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanPriorEntropy(), 0.01);\n assertEquals(0.0, evaluation0.incorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.coverageOfTestCasesByPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctUnclassified(), 0.01);\n assertEquals(Double.NaN, evaluation0.avgCost(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanSquaredError(), 0.01);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n assertEquals(0.0, evaluation0.numInstances(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanSchemeEntropy(), 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.sizeOfPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootRelativeSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.relativeAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanPriorSquaredError(), 0.01);\n assertFalse(evaluation0.getDiscardPredictions());\n assertEquals(0.0, evaluation0.correct(), 0.01);\n \n try { \n evaluation0.KBRelativeInformation();\n fail(\"Expecting exception: Exception\");\n \n } catch(Exception e) {\n //\n // Can't compute K&B Info score: class numeric!\n //\n verifyException(\"weka.classifiers.Evaluation\", e);\n }\n }", "title": "" }, { "docid": "ce0fcc52279fed26cf36d3be64d1f417", "score": "0.65685076", "text": "@Test(timeout = 4000)\n public void test33() throws Throwable {\n RegressionByDiscretization regressionByDiscretization0 = new RegressionByDiscretization();\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertNotNull(regressionByDiscretization0);\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertFalse(regressionByDiscretization0.getDebug());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n \n Capabilities capabilities0 = regressionByDiscretization0.getCapabilities();\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertNotNull(capabilities0);\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertFalse(regressionByDiscretization0.getDebug());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertEquals(2, capabilities0.getMinimumNumberInstances());\n assertTrue(capabilities0.hasDependencies());\n \n TestInstances testInstances0 = TestInstances.forCapabilities(capabilities0);\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertNotNull(testInstances0);\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertFalse(regressionByDiscretization0.getDebug());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertEquals(2, capabilities0.getMinimumNumberInstances());\n assertTrue(capabilities0.hasDependencies());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(4, testInstances0.getNumAttributes());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(1, testInstances0.getNumRelationalNumeric());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(1, testInstances0.getNumNumeric());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(20, testInstances0.getNumInstances());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertFalse(testInstances0.getMultiInstance());\n assertFalse(testInstances0.getNoClass());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(1, testInstances0.getNumDate());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(1, testInstances0.getNumRelationalDate());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(0, testInstances0.getClassType());\n \n Instances instances0 = testInstances0.generate(\"|J\");\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertNotNull(instances0);\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertFalse(regressionByDiscretization0.getDebug());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertEquals(2, capabilities0.getMinimumNumberInstances());\n assertTrue(capabilities0.hasDependencies());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(4, testInstances0.getNumAttributes());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(1, testInstances0.getNumRelationalNumeric());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(1, testInstances0.getNumNumeric());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(20, testInstances0.getNumInstances());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertFalse(testInstances0.getMultiInstance());\n assertFalse(testInstances0.getNoClass());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(1, testInstances0.getNumDate());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(1, testInstances0.getNumRelationalDate());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(0, testInstances0.getClassType());\n assertFalse(instances0.checkForStringAttributes());\n assertEquals(1, instances0.numClasses());\n assertEquals(20, instances0.size());\n assertEquals(3, instances0.classIndex());\n assertEquals(4, instances0.numAttributes());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertEquals(\"Testdata\", instances0.relationName());\n assertEquals(20, instances0.numInstances());\n \n Evaluation evaluation0 = new Evaluation(instances0);\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertNotNull(evaluation0);\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertFalse(regressionByDiscretization0.getDebug());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertEquals(2, capabilities0.getMinimumNumberInstances());\n assertTrue(capabilities0.hasDependencies());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(4, testInstances0.getNumAttributes());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(1, testInstances0.getNumRelationalNumeric());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(1, testInstances0.getNumNumeric());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(20, testInstances0.getNumInstances());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertFalse(testInstances0.getMultiInstance());\n assertFalse(testInstances0.getNoClass());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(1, testInstances0.getNumDate());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(1, testInstances0.getNumRelationalDate());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(0, testInstances0.getClassType());\n assertFalse(instances0.checkForStringAttributes());\n assertEquals(1, instances0.numClasses());\n assertEquals(20, instances0.size());\n assertEquals(3, instances0.classIndex());\n assertEquals(4, instances0.numAttributes());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertEquals(\"Testdata\", instances0.relationName());\n assertEquals(20, instances0.numInstances());\n assertEquals(Double.NaN, evaluation0.pctIncorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.errorRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.sizeOfPredictedRegions(), 0.01);\n assertEquals(0.0, evaluation0.incorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanPriorAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctUnclassified(), 0.01);\n assertEquals(0.0, evaluation0.totalCost(), 0.01);\n assertEquals(Double.NaN, evaluation0.relativeAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanSquaredError(), 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanPriorSquaredError(), 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootRelativeSquaredError(), 0.01);\n assertFalse(evaluation0.getDiscardPredictions());\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(Double.NaN, evaluation0.coverageOfTestCasesByPredictedRegions(), 0.01);\n assertEquals(0.0, evaluation0.correct(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.avgCost(), 0.01);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n assertEquals(0.0, evaluation0.numInstances(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctCorrect(), 0.01);\n \n // Undeclared exception!\n try { \n evaluation0.weightedFalsePositiveRate();\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"weka.classifiers.Evaluation\", e);\n }\n }", "title": "" }, { "docid": "3410295edee564fc8ea7abbae4795d97", "score": "0.6525998", "text": "@Test(timeout = 4000)\n public void test35() throws Throwable {\n RegressionByDiscretization regressionByDiscretization0 = new RegressionByDiscretization();\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertNotNull(regressionByDiscretization0);\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertFalse(regressionByDiscretization0.getDebug());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n \n Capabilities capabilities0 = regressionByDiscretization0.getCapabilities();\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertNotNull(capabilities0);\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertFalse(regressionByDiscretization0.getDebug());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertTrue(capabilities0.hasDependencies());\n assertEquals(2, capabilities0.getMinimumNumberInstances());\n \n TestInstances testInstances0 = TestInstances.forCapabilities(capabilities0);\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertNotNull(testInstances0);\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertFalse(regressionByDiscretization0.getDebug());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertTrue(capabilities0.hasDependencies());\n assertEquals(2, capabilities0.getMinimumNumberInstances());\n assertEquals(1, testInstances0.getNumDate());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertFalse(testInstances0.getNoClass());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(1, testInstances0.getNumRelationalNumeric());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(4, testInstances0.getNumAttributes());\n assertEquals(1, testInstances0.getNumNumeric());\n assertEquals(0, testInstances0.getNumString());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(0, testInstances0.getClassType());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(1, testInstances0.getNumRelationalDate());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(20, testInstances0.getNumInstances());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(2, testInstances0.getNumClasses());\n \n Instances instances0 = testInstances0.generate(\"|J\");\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertNotNull(instances0);\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertFalse(regressionByDiscretization0.getDebug());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertTrue(capabilities0.hasDependencies());\n assertEquals(2, capabilities0.getMinimumNumberInstances());\n assertEquals(1, testInstances0.getNumDate());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertFalse(testInstances0.getNoClass());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(1, testInstances0.getNumRelationalNumeric());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(4, testInstances0.getNumAttributes());\n assertEquals(1, testInstances0.getNumNumeric());\n assertEquals(0, testInstances0.getNumString());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(0, testInstances0.getClassType());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(1, testInstances0.getNumRelationalDate());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(20, testInstances0.getNumInstances());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(2, testInstances0.getNumClasses());\n assertFalse(instances0.checkForStringAttributes());\n assertEquals(1, instances0.numClasses());\n assertEquals(20, instances0.size());\n assertEquals(3, instances0.classIndex());\n assertEquals(4, instances0.numAttributes());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertEquals(\"Testdata\", instances0.relationName());\n assertEquals(20, instances0.numInstances());\n \n Evaluation evaluation0 = new Evaluation(instances0);\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertNotNull(evaluation0);\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertFalse(regressionByDiscretization0.getDebug());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertTrue(capabilities0.hasDependencies());\n assertEquals(2, capabilities0.getMinimumNumberInstances());\n assertEquals(1, testInstances0.getNumDate());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertFalse(testInstances0.getNoClass());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(1, testInstances0.getNumRelationalNumeric());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(4, testInstances0.getNumAttributes());\n assertEquals(1, testInstances0.getNumNumeric());\n assertEquals(0, testInstances0.getNumString());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(0, testInstances0.getClassType());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(1, testInstances0.getNumRelationalDate());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(20, testInstances0.getNumInstances());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(2, testInstances0.getNumClasses());\n assertFalse(instances0.checkForStringAttributes());\n assertEquals(1, instances0.numClasses());\n assertEquals(20, instances0.size());\n assertEquals(3, instances0.classIndex());\n assertEquals(4, instances0.numAttributes());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertEquals(\"Testdata\", instances0.relationName());\n assertEquals(20, instances0.numInstances());\n assertEquals(Double.NaN, evaluation0.rootRelativeSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanEntropyGain(), 0.01);\n assertFalse(evaluation0.getDiscardPredictions());\n assertEquals(Double.NaN, evaluation0.rootMeanPriorSquaredError(), 0.01);\n assertEquals(0.0, evaluation0.correct(), 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.relativeAbsoluteError(), 0.01);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctCorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanSchemeEntropy(), 0.01);\n assertEquals(0.0, evaluation0.numInstances(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctUnclassified(), 0.01);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(Double.NaN, evaluation0.sizeOfPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanAbsoluteError(), 0.01);\n assertEquals(0.0, evaluation0.incorrect(), 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.avgCost(), 0.01);\n assertEquals(Double.NaN, evaluation0.coverageOfTestCasesByPredictedRegions(), 0.01);\n assertEquals(0.0, evaluation0.totalCost(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctIncorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanPriorAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.errorRate(), 0.01);\n \n try { \n evaluation0.toClassDetailsString();\n fail(\"Expecting exception: Exception\");\n \n } catch(Exception e) {\n //\n // Evaluation: No per class statistics possible!\n //\n verifyException(\"weka.classifiers.Evaluation\", e);\n }\n }", "title": "" }, { "docid": "8794534ab53978d2b5179da94925dd54", "score": "0.6479734", "text": "@Test(timeout = 4000)\n public void test40() throws Throwable {\n RegressionByDiscretization regressionByDiscretization0 = new RegressionByDiscretization();\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertNotNull(regressionByDiscretization0);\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertFalse(regressionByDiscretization0.getDebug());\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n \n Capabilities capabilities0 = regressionByDiscretization0.getCapabilities();\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertNotNull(capabilities0);\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertFalse(regressionByDiscretization0.getDebug());\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertTrue(capabilities0.hasDependencies());\n assertEquals(2, capabilities0.getMinimumNumberInstances());\n \n TestInstances testInstances0 = TestInstances.forCapabilities(capabilities0);\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertNotNull(testInstances0);\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertFalse(regressionByDiscretization0.getDebug());\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertTrue(capabilities0.hasDependencies());\n assertEquals(2, capabilities0.getMinimumNumberInstances());\n assertEquals(4, testInstances0.getNumAttributes());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(1, testInstances0.getNumNumeric());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(0, testInstances0.getClassType());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(1, testInstances0.getNumRelationalDate());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(1, testInstances0.getNumDate());\n assertFalse(testInstances0.getMultiInstance());\n assertFalse(testInstances0.getNoClass());\n assertEquals(20, testInstances0.getNumInstances());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(1, testInstances0.getNumRelationalNumeric());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n \n Instances instances0 = testInstances0.generate(\"|J\");\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertNotNull(instances0);\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertFalse(regressionByDiscretization0.getDebug());\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertTrue(capabilities0.hasDependencies());\n assertEquals(2, capabilities0.getMinimumNumberInstances());\n assertEquals(4, testInstances0.getNumAttributes());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(1, testInstances0.getNumNumeric());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(0, testInstances0.getClassType());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(1, testInstances0.getNumRelationalDate());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(1, testInstances0.getNumDate());\n assertFalse(testInstances0.getMultiInstance());\n assertFalse(testInstances0.getNoClass());\n assertEquals(20, testInstances0.getNumInstances());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(1, testInstances0.getNumRelationalNumeric());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(4, instances0.numAttributes());\n assertEquals(\"Testdata\", instances0.relationName());\n assertEquals(3, instances0.classIndex());\n assertFalse(instances0.checkForStringAttributes());\n assertEquals(1, instances0.numClasses());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertEquals(20, instances0.numInstances());\n assertEquals(20, instances0.size());\n \n Capabilities capabilities1 = Capabilities.forInstances(instances0);\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertNotNull(capabilities1);\n assertFalse(capabilities1.equals((Object)capabilities0));\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertFalse(regressionByDiscretization0.getDebug());\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertTrue(capabilities0.hasDependencies());\n assertEquals(2, capabilities0.getMinimumNumberInstances());\n assertEquals(4, testInstances0.getNumAttributes());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(1, testInstances0.getNumNumeric());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(0, testInstances0.getClassType());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(1, testInstances0.getNumRelationalDate());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(1, testInstances0.getNumDate());\n assertFalse(testInstances0.getMultiInstance());\n assertFalse(testInstances0.getNoClass());\n assertEquals(20, testInstances0.getNumInstances());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(1, testInstances0.getNumRelationalNumeric());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(4, instances0.numAttributes());\n assertEquals(\"Testdata\", instances0.relationName());\n assertEquals(3, instances0.classIndex());\n assertFalse(instances0.checkForStringAttributes());\n assertEquals(1, instances0.numClasses());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertEquals(20, instances0.numInstances());\n assertEquals(20, instances0.size());\n assertEquals(1, capabilities1.getMinimumNumberInstances());\n assertFalse(capabilities1.hasDependencies());\n assertNotSame(capabilities0, capabilities1);\n assertNotSame(capabilities1, capabilities0);\n \n Evaluation evaluation0 = new Evaluation(instances0);\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertNotNull(evaluation0);\n assertFalse(capabilities0.equals((Object)capabilities1));\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertFalse(regressionByDiscretization0.getDebug());\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertTrue(capabilities0.hasDependencies());\n assertEquals(2, capabilities0.getMinimumNumberInstances());\n assertEquals(4, testInstances0.getNumAttributes());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(1, testInstances0.getNumNumeric());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(0, testInstances0.getClassType());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(1, testInstances0.getNumRelationalDate());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(1, testInstances0.getNumDate());\n assertFalse(testInstances0.getMultiInstance());\n assertFalse(testInstances0.getNoClass());\n assertEquals(20, testInstances0.getNumInstances());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(1, testInstances0.getNumRelationalNumeric());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(4, instances0.numAttributes());\n assertEquals(\"Testdata\", instances0.relationName());\n assertEquals(3, instances0.classIndex());\n assertFalse(instances0.checkForStringAttributes());\n assertEquals(1, instances0.numClasses());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertEquals(20, instances0.numInstances());\n assertEquals(20, instances0.size());\n assertEquals(Double.NaN, evaluation0.relativeAbsoluteError(), 0.01);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootRelativeSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanPriorSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanSquaredError(), 0.01);\n assertEquals(0.0, evaluation0.correct(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanEntropyGain(), 0.01);\n assertFalse(evaluation0.getDiscardPredictions());\n assertEquals(Double.NaN, evaluation0.pctUnclassified(), 0.01);\n assertEquals(Double.NaN, evaluation0.coverageOfTestCasesByPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.avgCost(), 0.01);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctCorrect(), 0.01);\n assertEquals(0.0, evaluation0.numInstances(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanPriorAbsoluteError(), 0.01);\n assertEquals(0.0, evaluation0.totalCost(), 0.01);\n assertEquals(Double.NaN, evaluation0.sizeOfPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation0.errorRate(), 0.01);\n assertEquals(0.0, evaluation0.incorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctIncorrect(), 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanAbsoluteError(), 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n \n // Undeclared exception!\n try { \n evaluation0.weightedMatthewsCorrelation();\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"weka.classifiers.Evaluation\", e);\n }\n }", "title": "" }, { "docid": "dc7afd015f73b66477d28310a9524aa9", "score": "0.64564466", "text": "@Test\n public void testEntropy() {\n System.out.println(\"entropy\");\n TDistribution instance = new TDistribution(20);\n Assert.assertEquals(1.46954202, instance.entropy(), 1.0E-7);\n }", "title": "" }, { "docid": "2113c80e5e564dc932231cc3351b5ea5", "score": "0.6436841", "text": "@Test(timeout = 4000)\n public void test15() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n MockRandom mockRandom0 = new MockRandom();\n Evaluation evaluation0 = new Evaluation(instances0);\n boolean boolean0 = evaluation0.equals(textDirectoryLoader0);\n assertFalse(boolean0);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "title": "" }, { "docid": "26167dfb76c0499357e1d7f61c627592", "score": "0.6424521", "text": "@Test(timeout = 4000)\n public void test42() throws Throwable {\n RegressionByDiscretization regressionByDiscretization0 = new RegressionByDiscretization();\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertNotNull(regressionByDiscretization0);\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getDebug());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n \n Capabilities capabilities0 = regressionByDiscretization0.getCapabilities();\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertNotNull(capabilities0);\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getDebug());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertTrue(capabilities0.hasDependencies());\n assertEquals(2, capabilities0.getMinimumNumberInstances());\n \n TestInstances testInstances0 = TestInstances.forCapabilities(capabilities0);\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertNotNull(testInstances0);\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getDebug());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertTrue(capabilities0.hasDependencies());\n assertEquals(2, capabilities0.getMinimumNumberInstances());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(1, testInstances0.getNumRelationalDate());\n assertEquals(20, testInstances0.getNumInstances());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(1, testInstances0.getNumDate());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertEquals(0, testInstances0.getClassType());\n assertEquals(1, testInstances0.getSeed());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(1, testInstances0.getNumRelationalNumeric());\n assertEquals(4, testInstances0.getNumAttributes());\n assertEquals(1, testInstances0.getNumNumeric());\n assertFalse(testInstances0.getNoClass());\n \n Instances instances0 = testInstances0.generate(\"|J\");\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertNotNull(instances0);\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getDebug());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertTrue(capabilities0.hasDependencies());\n assertEquals(2, capabilities0.getMinimumNumberInstances());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(1, testInstances0.getNumRelationalDate());\n assertEquals(20, testInstances0.getNumInstances());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(1, testInstances0.getNumDate());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertEquals(0, testInstances0.getClassType());\n assertEquals(1, testInstances0.getSeed());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(1, testInstances0.getNumRelationalNumeric());\n assertEquals(4, testInstances0.getNumAttributes());\n assertEquals(1, testInstances0.getNumNumeric());\n assertFalse(testInstances0.getNoClass());\n assertEquals(3, instances0.classIndex());\n assertEquals(\"Testdata\", instances0.relationName());\n assertEquals(1, instances0.numClasses());\n assertEquals(4, instances0.numAttributes());\n assertEquals(20, instances0.numInstances());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertEquals(20, instances0.size());\n assertFalse(instances0.checkForStringAttributes());\n \n Evaluation evaluation0 = new Evaluation(instances0);\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertNotNull(evaluation0);\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getDebug());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertTrue(capabilities0.hasDependencies());\n assertEquals(2, capabilities0.getMinimumNumberInstances());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(1, testInstances0.getNumRelationalDate());\n assertEquals(20, testInstances0.getNumInstances());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(1, testInstances0.getNumDate());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertEquals(0, testInstances0.getClassType());\n assertEquals(1, testInstances0.getSeed());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(1, testInstances0.getNumRelationalNumeric());\n assertEquals(4, testInstances0.getNumAttributes());\n assertEquals(1, testInstances0.getNumNumeric());\n assertFalse(testInstances0.getNoClass());\n assertEquals(3, instances0.classIndex());\n assertEquals(\"Testdata\", instances0.relationName());\n assertEquals(1, instances0.numClasses());\n assertEquals(4, instances0.numAttributes());\n assertEquals(20, instances0.numInstances());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertEquals(20, instances0.size());\n assertFalse(instances0.checkForStringAttributes());\n assertEquals(Double.NaN, evaluation0.pctIncorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.errorRate(), 0.01);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n assertEquals(0.0, evaluation0.incorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.avgCost(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctUnclassified(), 0.01);\n assertEquals(0.0, evaluation0.numInstances(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootRelativeSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.sizeOfPredictedRegions(), 0.01);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctCorrect(), 0.01);\n assertFalse(evaluation0.getDiscardPredictions());\n assertEquals(Double.NaN, evaluation0.SFMeanEntropyGain(), 0.01);\n assertEquals(0.0, evaluation0.correct(), 0.01);\n assertEquals(Double.NaN, evaluation0.coverageOfTestCasesByPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation0.relativeAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanPriorSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanSquaredError(), 0.01);\n assertEquals(0.0, evaluation0.totalCost(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanPriorAbsoluteError(), 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanAbsoluteError(), 0.01);\n \n double[] doubleArray0 = new double[9];\n doubleArray0[0] = (double) 2;\n doubleArray0[1] = (double) (-2);\n doubleArray0[2] = (double) 1;\n doubleArray0[3] = (double) 0;\n evaluation0.setNumericPriorsFromBuffer();\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getDebug());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertTrue(capabilities0.hasDependencies());\n assertEquals(2, capabilities0.getMinimumNumberInstances());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(1, testInstances0.getNumRelationalDate());\n assertEquals(20, testInstances0.getNumInstances());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(1, testInstances0.getNumDate());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertEquals(0, testInstances0.getClassType());\n assertEquals(1, testInstances0.getSeed());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(1, testInstances0.getNumRelationalNumeric());\n assertEquals(4, testInstances0.getNumAttributes());\n assertEquals(1, testInstances0.getNumNumeric());\n assertFalse(testInstances0.getNoClass());\n assertEquals(3, instances0.classIndex());\n assertEquals(\"Testdata\", instances0.relationName());\n assertEquals(1, instances0.numClasses());\n assertEquals(4, instances0.numAttributes());\n assertEquals(20, instances0.numInstances());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertEquals(20, instances0.size());\n assertFalse(instances0.checkForStringAttributes());\n assertEquals(Double.NaN, evaluation0.pctIncorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.errorRate(), 0.01);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n assertEquals(0.0, evaluation0.incorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.avgCost(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctUnclassified(), 0.01);\n assertEquals(0.0, evaluation0.numInstances(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootRelativeSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.sizeOfPredictedRegions(), 0.01);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctCorrect(), 0.01);\n assertFalse(evaluation0.getDiscardPredictions());\n assertEquals(Double.NaN, evaluation0.SFMeanEntropyGain(), 0.01);\n assertEquals(0.0, evaluation0.correct(), 0.01);\n assertEquals(Double.NaN, evaluation0.coverageOfTestCasesByPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation0.relativeAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanPriorSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanSquaredError(), 0.01);\n assertEquals(0.0, evaluation0.totalCost(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanPriorAbsoluteError(), 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanAbsoluteError(), 0.01);\n \n doubleArray0[4] = (double) 2;\n doubleArray0[5] = (double) 0;\n doubleArray0[6] = (double) 0;\n DenseInstance denseInstance0 = new DenseInstance(1, doubleArray0);\n assertEquals(6, AbstractInstance.s_numericAfterDecimalPoint);\n assertNotNull(denseInstance0);\n assertArrayEquals(new double[] {2.0, (-2.0), 1.0, 0.0, 2.0, 0.0, 0.0, 0.0, 0.0}, doubleArray0, 0.01);\n assertEquals(1.0, denseInstance0.weight(), 0.01);\n assertEquals(9, denseInstance0.numAttributes());\n assertEquals(9, denseInstance0.numValues());\n assertEquals(9, doubleArray0.length);\n \n boolean boolean0 = FileSystemHandling.appendStringToFile((EvoSuiteFile) null, \"|J\");\n assertFalse(boolean0);\n \n double[] doubleArray1 = new double[3];\n assertFalse(doubleArray1.equals((Object)doubleArray0));\n \n doubleArray1[0] = (double) 2;\n doubleArray1[1] = (double) 2;\n doubleArray1[2] = (double) 1;\n evaluation0.updateMargins(doubleArray1, 2, 3284.69134);\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertArrayEquals(new double[] {2.0, 2.0, 1.0}, doubleArray1, 0.01);\n assertFalse(doubleArray1.equals((Object)doubleArray0));\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getDebug());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertTrue(capabilities0.hasDependencies());\n assertEquals(2, capabilities0.getMinimumNumberInstances());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(1, testInstances0.getNumRelationalDate());\n assertEquals(20, testInstances0.getNumInstances());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(1, testInstances0.getNumDate());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertEquals(0, testInstances0.getClassType());\n assertEquals(1, testInstances0.getSeed());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(1, testInstances0.getNumRelationalNumeric());\n assertEquals(4, testInstances0.getNumAttributes());\n assertEquals(1, testInstances0.getNumNumeric());\n assertFalse(testInstances0.getNoClass());\n assertEquals(3, instances0.classIndex());\n assertEquals(\"Testdata\", instances0.relationName());\n assertEquals(1, instances0.numClasses());\n assertEquals(4, instances0.numAttributes());\n assertEquals(20, instances0.numInstances());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertEquals(20, instances0.size());\n assertFalse(instances0.checkForStringAttributes());\n assertEquals(Double.NaN, evaluation0.pctIncorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.errorRate(), 0.01);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n assertEquals(0.0, evaluation0.incorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.avgCost(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctUnclassified(), 0.01);\n assertEquals(0.0, evaluation0.numInstances(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootRelativeSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.sizeOfPredictedRegions(), 0.01);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctCorrect(), 0.01);\n assertFalse(evaluation0.getDiscardPredictions());\n assertEquals(Double.NaN, evaluation0.SFMeanEntropyGain(), 0.01);\n assertEquals(0.0, evaluation0.correct(), 0.01);\n assertEquals(Double.NaN, evaluation0.coverageOfTestCasesByPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation0.relativeAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanPriorSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanSquaredError(), 0.01);\n assertEquals(0.0, evaluation0.totalCost(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanPriorAbsoluteError(), 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanAbsoluteError(), 0.01);\n assertEquals(3, doubleArray1.length);\n assertNotSame(doubleArray1, doubleArray0);\n \n double double0 = evaluation0.SFMeanPriorEntropy();\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getDebug());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertTrue(capabilities0.hasDependencies());\n assertEquals(2, capabilities0.getMinimumNumberInstances());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(1, testInstances0.getNumRelationalDate());\n assertEquals(20, testInstances0.getNumInstances());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(1, testInstances0.getNumDate());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertEquals(0, testInstances0.getClassType());\n assertEquals(1, testInstances0.getSeed());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(1, testInstances0.getNumRelationalNumeric());\n assertEquals(4, testInstances0.getNumAttributes());\n assertEquals(1, testInstances0.getNumNumeric());\n assertFalse(testInstances0.getNoClass());\n assertEquals(3, instances0.classIndex());\n assertEquals(\"Testdata\", instances0.relationName());\n assertEquals(1, instances0.numClasses());\n assertEquals(4, instances0.numAttributes());\n assertEquals(20, instances0.numInstances());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertEquals(20, instances0.size());\n assertFalse(instances0.checkForStringAttributes());\n assertEquals(Double.NaN, evaluation0.pctIncorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.errorRate(), 0.01);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n assertEquals(0.0, evaluation0.incorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.avgCost(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctUnclassified(), 0.01);\n assertEquals(0.0, evaluation0.numInstances(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootRelativeSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.sizeOfPredictedRegions(), 0.01);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctCorrect(), 0.01);\n assertFalse(evaluation0.getDiscardPredictions());\n assertEquals(Double.NaN, evaluation0.SFMeanEntropyGain(), 0.01);\n assertEquals(0.0, evaluation0.correct(), 0.01);\n assertEquals(Double.NaN, evaluation0.coverageOfTestCasesByPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation0.relativeAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanPriorSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanSquaredError(), 0.01);\n assertEquals(0.0, evaluation0.totalCost(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanPriorAbsoluteError(), 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanAbsoluteError(), 0.01);\n \n try { \n evaluation0.updateStatsForPredictor((-1), denseInstance0);\n fail(\"Expecting exception: RuntimeException\");\n \n } catch(RuntimeException e) {\n //\n // DenseInstance doesn't have access to a dataset!\n //\n verifyException(\"weka.core.AbstractInstance\", e);\n }\n }", "title": "" }, { "docid": "49f6c63d485c47ad930fe40da1da7580", "score": "0.64157224", "text": "@Test(timeout = 4000)\n public void test14() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate(\")OLe\");\n Instances instances1 = new Instances(instances0);\n instances0.delete();\n MockRandom mockRandom0 = new MockRandom(0L);\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFMeanPriorEntropy();\n Vector<String> vector0 = new Vector<String>();\n Attribute attribute0 = new Attribute(\"NONE\", vector0, (-147));\n instances0.sort(attribute0);\n double double1 = evaluation0.weightedFMeasure();\n assertEquals(double1, double0, 0.01);\n \n String string0 = evaluation0.toMatrixString(\")OLe\");\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(\")OLe\\n a b <-- classified as\\n 0 0 | a = class1\\n 0 0 | b = class2\\n\", string0);\n }", "title": "" }, { "docid": "61029f039dd0c40f100ece6b9e94861d", "score": "0.63475865", "text": "@Test(timeout = 4000)\n public void test26() throws Throwable {\n CostSensitiveClassifier costSensitiveClassifier0 = new CostSensitiveClassifier();\n assertEquals(2, CostSensitiveClassifier.MATRIX_SUPPLIED);\n assertEquals(1, CostSensitiveClassifier.MATRIX_ON_DEMAND);\n assertNotNull(costSensitiveClassifier0);\n assertEquals(\"The random number seed to be used.\", costSensitiveClassifier0.seedTipText());\n assertFalse(costSensitiveClassifier0.getDebug());\n assertEquals(\"A metaclassifier that makes its base classifier cost-sensitive. Two methods can be used to introduce cost-sensitivity: reweighting training instances according to the total cost assigned to each class; or predicting the class with minimum expected misclassification cost (rather than the most likely class). Performance can often be improved by using a Bagged classifier to improve the probability estimates of the base classifier.\", costSensitiveClassifier0.globalInfo());\n assertEquals(\"Sets whether the minimum expected cost criteria will be used. If this is false, the training data will be reweighted according to the costs assigned to each class. If true, the minimum expected cost criteria will be used.\", costSensitiveClassifier0.minimizeExpectedCostTipText());\n assertEquals(\"Sets the directory where cost files are loaded from. This option is used when the costMatrixSource is set to \\\"On Demand\\\".\", costSensitiveClassifier0.onDemandDirectoryTipText());\n assertEquals(\"The base classifier to be used.\", costSensitiveClassifier0.classifierTipText());\n assertFalse(costSensitiveClassifier0.getMinimizeExpectedCost());\n assertEquals(1, costSensitiveClassifier0.getSeed());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", costSensitiveClassifier0.debugTipText());\n assertEquals(\"Sets the cost matrix explicitly. This matrix is used if the costMatrixSource property is set to \\\"Supplied\\\".\", costSensitiveClassifier0.costMatrixTipText());\n assertEquals(0, costSensitiveClassifier0.graphType());\n \n CostMatrix costMatrix0 = costSensitiveClassifier0.getCostMatrix();\n assertEquals(2, CostSensitiveClassifier.MATRIX_SUPPLIED);\n assertEquals(1, CostSensitiveClassifier.MATRIX_ON_DEMAND);\n assertNotNull(costMatrix0);\n assertEquals(\"The random number seed to be used.\", costSensitiveClassifier0.seedTipText());\n assertFalse(costSensitiveClassifier0.getDebug());\n assertEquals(\"A metaclassifier that makes its base classifier cost-sensitive. Two methods can be used to introduce cost-sensitivity: reweighting training instances according to the total cost assigned to each class; or predicting the class with minimum expected misclassification cost (rather than the most likely class). Performance can often be improved by using a Bagged classifier to improve the probability estimates of the base classifier.\", costSensitiveClassifier0.globalInfo());\n assertEquals(\"Sets whether the minimum expected cost criteria will be used. If this is false, the training data will be reweighted according to the costs assigned to each class. If true, the minimum expected cost criteria will be used.\", costSensitiveClassifier0.minimizeExpectedCostTipText());\n assertEquals(\"Sets the directory where cost files are loaded from. This option is used when the costMatrixSource is set to \\\"On Demand\\\".\", costSensitiveClassifier0.onDemandDirectoryTipText());\n assertEquals(\"The base classifier to be used.\", costSensitiveClassifier0.classifierTipText());\n assertFalse(costSensitiveClassifier0.getMinimizeExpectedCost());\n assertEquals(1, costSensitiveClassifier0.getSeed());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", costSensitiveClassifier0.debugTipText());\n assertEquals(\"Sets the cost matrix explicitly. This matrix is used if the costMatrixSource property is set to \\\"Supplied\\\".\", costSensitiveClassifier0.costMatrixTipText());\n assertEquals(0, costSensitiveClassifier0.graphType());\n assertEquals(1, costMatrix0.numRows());\n assertEquals(1, costMatrix0.numColumns());\n assertEquals(1, costMatrix0.size());\n \n try { \n Evaluation.evaluateModel((Classifier) costSensitiveClassifier0, (String[]) null);\n fail(\"Expecting exception: Exception\");\n \n } catch(Exception e) {\n //\n // \n // Weka exception: null\n // \n // General options:\n // \n // -h or -help\n // \\tOutput help information.\n // -synopsis or -info\n // \\tOutput synopsis for classifier (use in conjunction with -h)\n // -t <name of training file>\n // \\tSets training file.\n // -T <name of test file>\n // \\tSets test file. If missing, a cross-validation will be performed\n // \\ton the training data.\n // -c <class index>\n // \\tSets index of class attribute (default: last).\n // -x <number of folds>\n // \\tSets number of folds for cross-validation (default: 10).\n // -no-cv\n // \\tDo not perform any cross validation.\n // -split-percentage <percentage>\n // \\tSets the percentage for the train/test set split, e.g., 66.\n // -preserve-order\n // \\tPreserves the order in the percentage split.\n // -s <random number seed>\n // \\tSets random number seed for cross-validation or percentage split\n // \\t(default: 1).\n // -m <name of file with cost matrix>\n // \\tSets file with cost matrix.\n // -l <name of input file>\n // \\tSets model input file. In case the filename ends with '.xml',\n // \\ta PMML file is loaded or, if that fails, options are loaded\n // \\tfrom the XML file.\n // -d <name of output file>\n // \\tSets model output file. In case the filename ends with '.xml',\n // \\tonly the options are saved to the XML file, not the model.\n // -v\n // \\tOutputs no statistics for training data.\n // -o\n // \\tOutputs statistics only, not the classifier.\n // -i\n // \\tOutputs detailed information-retrieval statistics for each class.\n // -k\n // \\tOutputs information-theoretic statistics.\n // -classifications \\\"weka.classifiers.evaluation.output.prediction.AbstractOutput + options\\\"\n // \\tUses the specified class for generating the classification output.\n // \\tE.g.: weka.classifiers.evaluation.output.prediction.PlainText\n // -p range\n // \\tOutputs predictions for test instances (or the train instances if\n // \\tno test instances provided and -no-cv is used), along with the \n // \\tattributes in the specified range (and nothing else). \n // \\tUse '-p 0' if no attributes are desired.\n // \\tDeprecated: use \\\"-classifications ...\\\" instead.\n // -distribution\n // \\tOutputs the distribution instead of only the prediction\n // \\tin conjunction with the '-p' option (only nominal classes).\n // \\tDeprecated: use \\\"-classifications ...\\\" instead.\n // -r\n // \\tOnly outputs cumulative margin distribution.\n // -g\n // \\tOnly outputs the graph representation of the classifier.\n // -xml filename | xml-string\n // \\tRetrieves the options from the XML-data instead of the command line.\n // -threshold-file <file>\n // \\tThe file to save the threshold data to.\n // \\tThe format is determined by the extensions, e.g., '.arff' for ARFF \n // \\tformat or '.csv' for CSV.\n // -threshold-label <label>\n // \\tThe class label to determine the threshold data for\n // \\t(default is the first label)\n // \n // Options specific to weka.classifiers.meta.CostSensitiveClassifier:\n // \n // -M\n // \\tMinimize expected misclassification cost. Default is to\n // \\treweight training instances according to costs per class\n // -C <cost file name>\n // \\tFile name of a cost matrix to use. If this is not supplied,\n // \\ta cost matrix will be loaded on demand. The name of the\n // \\ton-demand file is the relation name of the training data\n // \\tplus \\\".cost\\\", and the path to the on-demand file is\n // \\tspecified with the -N option.\n // -N <directory>\n // \\tName of a directory to search for cost files when loading\n // \\tcosts on demand (default current directory).\n // -cost-matrix <matrix>\n // \\tThe cost matrix in Matlab single line format.\n // -S <num>\n // \\tRandom number seed.\n // \\t(default 1)\n // -D\n // \\tIf set, classifier is run in debug mode and\n // \\tmay output additional info to the console\n // -W\n // \\tFull name of base classifier.\n // \\t(default: weka.classifiers.rules.ZeroR)\n // \n // Options specific to classifier weka.classifiers.rules.ZeroR:\n // \n // -D\n // \\tIf set, classifier is run in debug mode and\n // \\tmay output additional info to the console\n //\n verifyException(\"weka.classifiers.Evaluation\", e);\n }\n }", "title": "" }, { "docid": "4c07843562d99d336b1f0c55b1c869a8", "score": "0.63188714", "text": "public void doTestWithClamping() throws Exception {\n\t\ttotalToks = 0;\n rightToks = 0;\n int flag1 = 0;\n //String combo = \"pubmed_cluster6\";\n //String comboNum = \"5\";\n String filename = \"xPubMed_ByHighestEntropy_t0l0l1l1_totalEntropy_3.csv\";\n \n \n \n //TreeMap<Integer, Integer> NodeCountMap = new TreeMap<Integer, Integer>();\n\t\t\n\t\t//Initialize List of CRFoutput to be sorted\n\t\t//CRFoutput = new ArrayList<CRFoutput>();\n\n CRFoutput CRFout = new CRFoutput();\n\t\t\n\t\t//Make output directory\n\t\tString outDirec = \"out2\";\n File dir = new File(baseDir + \"/\" + outDirec + \"/\" + outDir);\n\t\tdir.mkdirs();\n\t\t\n\t\t//Opens file that will read in tagged test data\n//\t\tTestData testData = new TestData(baseDir + \"/data/\" + inName + \"/\"\n//\t\t\t\t+ inName + \".test\", delimit, impDelimit, groupDelimit);\n TestData testData = new TestData(baseDir + \"/data/PubMed_HighEntropy/\" \n + filename + \".test\", delimit, impDelimit, groupDelimit);\n\t\t\n\t\t//Writes a tagged exp test in the same format as the tagged data\n//\t\tTestDataWrite tdw = new TestDataWrite(baseDir + \"/\" + outDirec + \"/\" + outDir + \"/\"\n//\t\t\t\t+ \"tempTagged\" + \".test\", baseDir + \"/data/\" + inName + \"/\"\n//\t\t\t\t+ inName + \".test\", delimit, tagDelimit, impDelimit, labelMap);\n TestDataWrite tdw = new TestDataWrite(baseDir + \"/\" + outDirec + \"/\" + outDir + \"/\"\n\t\t\t\t+ \"tempTagged\" + \".test\", baseDir + \"/data/PubMed_HighEntropy/\"\n\t\t\t\t+ filename + \".test\", delimit, tagDelimit, impDelimit, labelMap);\n\n\t\t//Reads in the original tagged testing set\n//\t\tTrainData taggedTestData = DataCruncher.readTagged(nlabels, baseDir\n//\t\t\t\t+ \"/data/\" + inName + \"/\" + inName + \".test\", baseDir\n//\t\t\t\t+ \"/data/\" + inName + \"/\" + inName + \".test\", delimit,\n//\t\t\t\ttagDelimit, impDelimit, labelMap);\n TrainData taggedTestData = DataCruncher.readTagged(nlabels, baseDir\n\t\t\t\t+ \"/data/PubMed_HighEntropy/\" + filename + \".test\", baseDir\n\t\t\t\t+ \"/data/PubMed_HighEntropy/\" + filename + \".test\", delimit,\n\t\t\t\ttagDelimit, impDelimit, labelMap);\n\n\t\t//testRecord holds String arrays of tagged data organized by tags \n String collect[] = new String[nlabels];\n\t\tTestRecord testRecord = new TestRecord(collect);\n \n //Create structures for storing information about top clusters\n String citation;\n Hashtable<Integer, ArrayList<String>> topClusters = new Hashtable<Integer, ArrayList<String>>();\n \n //Initialize files to be written\n f = new FileWriter(baseDir + \"/CRFoutput2.csv\", false);\n f2 = new FileWriter(baseDir + \"/citationTable2.csv\", false);\n f3 = new FileWriter(baseDir + \"/labelTable2.csv\", false);\n\n //facc = new FileWriter(baseDir + \"/data/PubMed_HighEntropy/clamped_\" + combo + \"_\" + comboNum\n //+ \".csv\", false);\n facc = new FileWriter(baseDir + \"/data/PubMed_HighEntropy/clamped_\" + filename,false);\n \n \n //Read in top clusters to be clamped and add to Hashtable\n FileInputStream fInStream = new FileInputStream(baseDir + \"/data/PubMed_HighEntropy/\" + filename); \n DataInputStream in = new DataInputStream(fInStream);\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(in)); \n// String algorithm = br.readLine();\n while ((citation = br.readLine()) != null) {\n StringTokenizer strTok = new StringTokenizer(citation,\",\");\n //if (strTok.countTokens()!=7){\n\t\t\t//throw new Exception (\"Expected 7 tokens in CSV line, got \"+ strTok.countTokens());\n //}\n //Relative cluster ID (not needed)\n String relClusterID = strTok.nextToken();\n int citID = Integer.parseInt(strTok.nextToken().trim());\n ArrayList<String> clusterValues = new ArrayList<String>();\n for (int idx=0; idx<4; idx++) {\n clusterValues.add(idx,strTok.nextToken().replaceAll(\"\\\"\",\"\"));\n }\n clusterValues.add(4,relClusterID);\n \n topClusters.put(citID, clusterValues); \n }\n \n\t\tint instance = 1;\n\t\t\n \n \n\t\t//Loop takes in tagged data record by record\n\t\t// seq[] is an array of tokens\n for (String seq[] = testData.nextRecord(); seq != null && seq.length != 0; seq = testData\n\t\t\t\t.nextRecord()) {\n\t\t\t\n //Print timestamp\n System.out.println(\"CURRENT TIME IS: \" + System.currentTimeMillis() + \" \" + instance + \"\\n\");\n \n //Create tokenized record object\n\t\t\ttestRecord.init(seq);\n \n //Set values for output classes, CRFout and CitationTable\n \n CRFout.setCitationID(instance);\n CRFout.setSeqs(seq);\n \n FileInputStream fInStream2 = new FileInputStream(baseDir + \"/data/PubMed_HighEntropy/\" + filename); \n DataInputStream in2 = new DataInputStream(fInStream2);\n BufferedReader br2 = new BufferedReader(new InputStreamReader(in2));\n for (int line=0; line<instance; line++) {\n citation = br2.readLine();\n }\n StringTokenizer strTok = new StringTokenizer(citation,\",\");\n String relClusterID = strTok.nextToken();\n int citID = Integer.parseInt(strTok.nextToken().trim());\n \n //CitationTable citTable = new CitationTable(instance, testData.line);\n CitationTable citTable = new CitationTable(citID, testData.line);\n\t\t\t\n\t\t\tif (options.getInt(\"debugLvl\") > 1) {\n\t\t\t\t//Util.printDbg(\"Invoking segment on \" + seq);\n\t\t\t}\n\n // token[] is an array of labels for seq[]\n\t\t\tint[] token = allLabels(taggedTestData.nextRecord()); \n \n \n CRFout.setToks(token);\n\n//\t\t\ttdw = new TestDataWrite(baseDir + \"/\" + outDirec + \"/\" + outDir + \"/\" + inName\n//\t\t\t\t\t+ \".test\", baseDir + \"/data/\" + inName + \"/\" + inName\n//\t\t\t\t\t+ \".test\", delimit, tagDelimit, impDelimit, labelMap);\n tdw = new TestDataWrite(baseDir + \"/\" + outDirec + \"/\" + outDir + \"/\" + inName\n\t\t\t\t\t+ \".test\", baseDir + \"/data/PubMed_HighEntropy/\" + filename\n\t\t\t\t\t+ \".test\", delimit, tagDelimit, impDelimit, labelMap);\n\n\t\t\t/* Without Clamping */\n //Use raw record and CRF model to populate collect array with path labels\n\t\t\tint path[] = segment(testRecord, testData.groupedTokens(), collect);\n\t\t\t/////////////////////\n\n\t\t\t//for (int ii = 1; ii < path.length; ii++) {\n\t\t\t//\tSystem.out.println (path[ii] + \" \");\n\t\t\t//}\n\t\t\t//System.out.println(\"\\n\");\n\t\t\t\n\t\t\ttdw.writeRecord(path, testRecord.length(), instance);\n\t\t\ttdw.close();\n \n //Sunny code: outputting tokens?\n//\t\t\tTestDataWrite tdw1 = new TestDataWrite(baseDir + \"/data/\" + inName + \"/\"\n//\t\t\t\t\t+ \"tempTagged2\" + \".test\", baseDir + \"/data/\" + inName + \"/\"\n//\t\t\t\t\t+ inName + \".test\", delimit, tagDelimit, impDelimit,\n//\t\t\t\t\tlabelMap);\n TestDataWrite tdw1 = new TestDataWrite(baseDir + \"/data/\" + inName + \"/\"\n\t\t\t\t\t+ \"tempTagged2\" + \".test\", baseDir + \"/data/PubMed_HighEntropy/\" \n\t\t\t\t\t+ filename + \".test\", delimit, tagDelimit, impDelimit,\n\t\t\t\t\tlabelMap);\n\n\t\t\ttdw1.writeRecord(token, token.length, instance);\n\t\t\ttdw1.close();\n \n if (flag1==1) {\n //Computing and determining all marginals\n Marginals marginal = new Marginals(crfModel, testRecord, null);\n marginal.compute();\n marginal.printBetaVector();\n marginal.computeMarginal();\n marginal.normalize();\n //marginal.printNormalized();\n marginal.calculateEntropy(method);\n //System.out.println(\"\\n\");\n\n //Compute entropy\n Double[][] totalMarginal = new Double[token.length][nlabels];\n double[] ent = new double[token.length];\n for (int i=0; i<token.length; i++) {\n Double[] marg = new Double[nlabels];\n marg = marginal.getMarginalProb(i);\n System.arraycopy(marg, 0, totalMarginal[i], 0, nlabels);\n ent[i] = marginal.getEntropy(i);\n }\n\n //Set Marginal and Entropy values\n CRFout.setTotalMarginal(totalMarginal);\n CRFout.setEntropy(ent);\n }\n\t\t\t///////////////\n\t\t\t//NodeCountMap.put(instance, marginal.numHighEntropyNodes(0.2));\n\t\t\t//////////////\n\t\t\t\n\t\t\t\n\t\t\t//////////////\n\t\t\t//double THRESH = 0.2;\n\t\t\t//turkerData.add(new TurkerData(rawline, seq, marginal\n\t\t\t//\t\t.getNumMaxEntropyNodes(THRESH), marginal.getMaxEntropyNode()));\n\t\t\t/////////////\n\t\t\t\n\t\t\t// marginal.printEntropy();\n\n\t\t\t// f.write(marginal.getMaxEntropyNode() + \" \");\n\t\t\t\n\t\t\t\n\t\t\t/* without clamping */\n\t\t\t/*Exp 2*/\n\t\t\t/////////////////////////////////////////////////////////////////////////////////////\n\t\t\t////////////////////////////////////////////////////////////////////////////////////\n\t\t\t//double f1Score = calcWith(testRecord);\n\t\t\tdouble f1Before = calcWith(testRecord);\n\t\t\t////////////////////////////////////////////////////////////////////////////////////\n\t\t\t////////////////////////////////////////////////////////////////////////////////////\n\n\t\t\tdouble[] f1 = new double[token.length]; \n\t\t\t\n\t\t\t/* clamping */\n\t\t\t//System.out.println(\"Length:\" + token.length);\n\t\t\t\n// TrainData tdMan = DataCruncher.readTagged(nlabels, baseDir + \"/data/\"\n//\t\t\t\t+ inName + \"/\" + \"tempTagged2\" + \".test\", baseDir + \"/data/\"\n//\t\t\t\t+ inName + \"/\" + inName + \".test\", delimit, tagDelimit,\n//\t\t\t\timpDelimit, labelMap);\n// TrainData tdAuto = DataCruncher.readTagged(nlabels, baseDir + \"/\" + outDirec + \"/\"\n//\t\t\t\t+ outDir + \"/\" + inName + \".test\", baseDir + \"/data/\" + inName\n//\t\t\t\t+ \"/\" + inName + \".test\", delimit, tagDelimit, impDelimit,\n//\t\t\t\tlabelMap);\n TrainData tdMan = DataCruncher.readTagged(nlabels, baseDir + \"/data/\"\n\t\t\t\t+ inName + \"/\" + \"tempTagged2\" + \".test\", baseDir + \"/data/PubMed_HighEntropy/\"\n\t\t\t\t+ filename + \".test\", delimit, tagDelimit,\n\t\t\t\timpDelimit, labelMap);\n TrainData tdAuto = DataCruncher.readTagged(nlabels, baseDir + \"/\" + outDirec + \"/\"\n\t\t\t\t+ outDir + \"/\" + inName + \".test\", baseDir + \"/data/PubMed_HighEntropy/\"\n\t\t\t\t+ filename + \".test\", delimit, tagDelimit, impDelimit,\n\t\t\t\tlabelMap);\n \n //Accuracy Calculation for Clamping\n// for (int idx=0; idx<tdAuto.size(); idx++) {\n// TrainRecord trMan = tdMan.nextRecord();\n// TrainRecord trAuto = tdAuto.nextRecord();\n// //if (idx==(CRFout.citationID-1)) {\n// int tokenMan[] = allLabels(trMan);\n// int tokenAuto[] = allLabels(trAuto);\n// CRFout.setTrueLabels(tokenMan);\n// CRFout.setAutoLabels(tokenAuto);\n// for (int idx2=0; idx2<tokenMan.length; idx2++) {\n// totalToks++;\n// if (tokenMan[idx2]==tokenAuto[idx2])\n// rightToks++;\n// }\n// //}\n// }\n \n///////////////////////////////////////////////////////////////////////////////////////////////\n/////\n/////\n///// CLAMPING CODE\n/////\n///// Clamping Plan: \n//// 1. Read in list of selected citations and tokens to be clamped\n//// 2. Only clamp if citationID is in list\n/////////////////////////////////////////////////////////////////////////////////////////////// \n \n \n if (topClusters.containsKey(citTable.citationID)) {\n ArrayList<String> citValues = topClusters.get(citTable.citationID);\n \n FileInputStream fInStream3 = new FileInputStream(baseDir + \"/data/PubMed_HighEntropy/\" \n + filename + \".test.raw\"); \n DataInputStream in3 = new DataInputStream(fInStream3);\n BufferedReader br3 = new BufferedReader(new InputStreamReader(in3));\n for (int line=0; line<instance; line++) {\n citation = br3.readLine();\n }\n StringTokenizer tok = new StringTokenizer(citation.toLowerCase(),\n \" \", true);\n \n //FIGURE OUT TOKEN POSITION FROM CHARACTER POSITION HERE\n if (instance==26) \n {\n System.out.println(\"STOP\");\n }\n int fflag = 1;\n int charPos = Integer.parseInt(citValues.get(0).trim());\n int charLength = 0;\n int pos = 0;\n while (charLength < charPos) {\n //System.out.println(CRFout.seqs.length);\n// if(pos<CRFout.seqs.length) {\n// charLength += CRFout.seqs[pos].length() + 1;\n// pos++;\n// }\n if (tok.hasMoreTokens()) {\n String tt = tok.nextToken();\n int count = StringUtils.countMatches(tt, \"-\");\n int countb = StringUtils.countMatches(tt, \"--\");\n int count2 = StringUtils.countMatches(tt, \",\");\n int count3 = StringUtils.countMatches(tt, \":\");\n \n charLength += tt.length();\n //System.out.println(tt);\n if (!tt.equals(\" \"))\n pos++;\n for (int i=0; i<(count-2*countb); i++) {\n pos++;\n }\n for (int i=0; i<countb; i++) {\n pos++;\n }\n for (int i=0; i<count2; i++) {\n pos++;\n }\n }\n else{\n break;\n }\n }\n \n\n// path = segment(testRecord, testData.groupedTokens(), collect,pos, \n// Integer.parseInt(citValues.get(2).trim()));\n \n //Convert from text to truth label\n String lab = citValues.get(2).toLowerCase().trim();\n int label = -1;\n// if (lab.equals(\"title\")) {\n// label = 0;\n// }\n// else if (lab.equals(\"author\")) {\n// label = 1;\n// }\n// else if (lab.equals(\"conference\")) {\n// label = 2;\n// }\n// else if (lab.equals(\"isbn\")) {\n// label = 3;\n// }\n// else if (lab.equals(\"publisher\")) {\n// label = 4;\n// }\n// else if (lab.equals(\"series\")) {\n// label = 5;\n// }\n// else if (lab.equals(\"proceedings\")) {\n// label = 6;\n// }\n// else if (lab.equals(\"year\")) {\n// label = 7;\n// }\n \n if (lab.equals(\"title\")) {\n label = 0;\n }\n else if (lab.equals(\"source\")) {\n label = 1;\n }\n else if (lab.equals(\"author\")) {\n label = 2;\n }\n else if (lab.equals(\"issue\")) {\n label = 3;\n }\n else if (lab.equals(\"volume\")) {\n label = 4;\n }\n else if (lab.equals(\"pages\")) {\n label = 5;\n }\n else if (lab.equals(\"year\")) {\n label = 6;\n }\n \n path = segment(testRecord, testData.groupedTokens(), collect, pos, label);\n\n //FileWriter testf = new FileWriter(baseDir + \"/data/testf.txt\", true);\n \n //testf.write(citValues.get(3) + \" - \" + CRFout.seqs[pos] + \"\\n\");\n //testf.close();\n }\n //\t\t\tfor (int i = 0; i < token.length; i++) {\n//\t\t\t\tif (i == marginal.getMaxEntropyNode()) {\n//\t\t\t\t\ttdw1 = new TestDataWrite(baseDir + \"/data/\" + inName + \"/\"\n//\t\t\t\t\t\t+ \"tempTagged\" + \".test\", baseDir + \"/data/\" + inName\n//\t\t\t\t\t\t+ \"/\" + inName + \".test\", delimit, tagDelimit,\n//\t\t\t\t\t\timpDelimit, labelMap);\n//\n//\t\t\t\t\ttdw1.writeRecord(token, token.length, instance);\n//\t\t\t\t\ttdw1.close();\n//\n//\t\t\t\t\t/* With Clamping */\n//\t\t\t\t\t\n//\t\t\t\t\tif (i==0) {\n//\t\t\t\t\t\tpath = segment(testRecord, testData.groupedTokens(), collect,\n//\t\t\t\t\t\t\t\ti, token[i], token[i+1],1);\n//\t\t\t\t\t}\n//\t\t\t\t\telse if (i==token.length) {\n//\t\t\t\t\t\tpath = segment(testRecord, testData.groupedTokens(), collect,\n//\t\t\t\t\t\t\t\ti, token[i-1], token[i],1);\n//\t\t\t\t\t}\n//\t\t\t\t\telse {\n//\t\t\t\t\t\t////////////////////\n//\t\t\t\t\t\tpath = segment(testRecord, testData.groupedTokens(), collect,\n//\t\t\t\t\t\t\t\ti, token[i], token[i-1], token[i+1]);\n//\t\t\t\t\t\t////////////////////\n//\t\t\t\t\t}\n// \t\t\tTestDataWrite tdw2 = new TestDataWrite(baseDir + \"/\" + outDirec + \"/\" + outDir + \"/\"\n//\t\t\t\t\t\t+ inName + \".test\", baseDir + \"/data/\" + inName + \"/\"\n//\t\t\t\t\t\t+ inName + \".test\", delimit, tagDelimit, impDelimit,\n//\t\t\t\t\t\tlabelMap);\n TestDataWrite tdw2 = new TestDataWrite(baseDir + \"/\" + outDirec + \"/\" + outDir + \"/\"\n\t\t\t\t\t\t+ inName + \".test\", baseDir + \"/data/PubMed_HighEntropy/\" \n\t\t\t\t\t\t+ filename + \".test\", delimit, tagDelimit, impDelimit,\n\t\t\t\t\t\tlabelMap);\n\t\t\t\t\ttdw2.writeRecord(path, testRecord.length(), instance);\n\t\t\t\t\ttdw2.close();\n//\n\t\t\t\t\tdouble f1After = calcWith(testRecord);\n//\t\t\t\t\n//\t\t\t\t\n//\t\t\t\t// Prints the accuracy after clamping the maximum entropy node //\n//\t\t\t\t\n//\t\t\t\t\t//f.write(f1[i] + \" \");\n//\t\t\t\t\tMarginals _marginal = new Marginals(crfModel, testRecord,\n//\t\t\t\t\t\t\tnull);\n//\t\t\t\t\t_marginal.compute(i, token[i]);\n//\t\t\t\t\t_marginal.computeMarginal();\n//\t\t\t\t\t_marginal.normalize();\n//\t\t\t\t\t_marginal.calculateEntropy(i,method);\n//\t\t\t\t\t//f.write(_marginal.averageEntropy() + \" \");\n//\t\t\t\t\t/////////////////////////////////////////////////////////////////////////////////////\n//\t\t\t\t\t////////////////////////////////////////////////////////////////////////////////////\n//\t\t\t\t\tdouble THRESH = 0.13;\n//\t\t\t\t\tdouble f1After = calcWith(testRecord);\n//\t\t\t\t\t\n//\t\t\t\t\t\t\t//marginal.getNumMaxEntropyNodes(THRESH) + \" \");\n//\t\t\t\t\t//////////////\n//\t\t\t\t\t\n//\t\t\t\t\tturkerData.add(new TurkerData(rawline, seq, marginal\n//\t\t\t\t\t\t\t.getNumMaxEntropyNodes(THRESH), marginal.getMaxEntropyNode(),\n//\t\t\t\t\t\t\tf1Before,f1After,marginal.getEntropy(i), marginal.getNumMaxEntropyNodes(THRESH)));\n//\t\t\t\t\t/////////////\n//\t\t\t\t\t////////////////////////////////////////////////////////////////////////////////////\n//\t\t\t\t\t////////////////////////////////////////////////////////////////////////////////////\n//\t\t\t\t}\n//\t\t\t}\n\n\t\t\tinstance++;\n //////////////////////////////////////////////////////////////////////////////////////////////////// \n// f2.write(citTable.citationID + \", \\\"\" + citTable.rawText + \"\\\"\\n\");\n// for (int line=0; line<CRFout.seqs.length; line++) {\n// f.write(CRFout.citationID + \", \" \n// //+ citTable.rawText.indexOf(CRFout.seqs[line]) + \", \\\"\"\n// + line + \", \\\"\"\n// + CRFout.seqs[line] + \"\\\", \" \n// + Integer.toString(CRFout.trueLabels[line]) + \", \"\n// + Integer.toString(CRFout.autoLabels[line]) + \", \"\n// + Double.toString(CRFout.totalMarginal[line][0]) + \", \"\n// + Double.toString(CRFout.totalMarginal[line][1]) + \", \"\n// + Double.toString(CRFout.totalMarginal[line][2]) + \", \"\n// + Double.toString(CRFout.totalMarginal[line][3]) + \", \"\n// + Double.toString(CRFout.totalMarginal[line][4]) + \", \"\n// + Double.toString(CRFout.totalMarginal[line][5]) + \", \"\n// + Double.toString(CRFout.totalMarginal[line][6]) + \", \"\n// + Double.toString(CRFout.totalMarginal[line][7]) + \", \"\n// + Double.toString(CRFout.entropy[line]) + \"\\n\"\n// );\n// }\n \n// for (int line=0; line<CRFout.seqs.length; line++) {\n// f3.write(citTable.citationID + \", \"\n// + line + \", \"\n// + \"\\\"\" + CRFout.seqs[line] + \"\\\", \"\n// + CRFout.token[line] + \"\\n\");\n// }\n \n ////////////////////////////////////////////////////////////////////////////////////// \n\n int clamped = -1;\n\n if (topClusters.containsKey(citTable.citationID)) {\n clamped = 1;\n }\n else {\n clamped = 0;\n }\n \n// facc.write(citTable.citationID + \", \" + f1Before + \", \" + f1After + \", \" + clamped + \"\\n\");\n \n\n ArrayList<String> citValue = topClusters.get(citTable.citationID);\n if (citValue.size()>=4) {\n if (citValue.get(4)!=null) {\n facc.write(citTable.citationID + \", \" + f1Before + \", \" + f1After + \", \"\n + citValue.get(4) + \", \" + citValue.get(1) + \"\\n\");\n }\n }\n //if (marginal.getMaxEntropyNode() < token.length){\n\t\t\t\t//f.write(Double.toString(f1[marginal.getMaxEntropyNode()]) + \" \");\n\t\t\t//}\n\t\t\t//int count = 0;\n\n\t\t\t/* count of the number of nodes with accuracy improvement more than\n\t\t\t * that of the maximum entropy node.\n\t\t\t */\n\t\t\t//for (int i = 0; i < token.length; i++) {\n\t\t\t//\tif ((f1[marginal.getMaxEntropyNode()] <= f1[i])\n\t\t\t//\t\t\t&& (i != marginal.getMaxEntropyNode()))\n\t\t\t//\t\tcount++;\n\t\t\t//}\n\t\t\t//f.write(\"\\n\");\n\n\t\t\t//f.write(Integer.toString(count) + \"\\n\");\n\t\t}\n\t\t// tdw1.close();\n\t\t// tdw.close();\n\t\t// f.write(\"\\n\");\n\t\t\n\t\t// tdw.close();\n\t\t// testData = new TestData(baseDir + \"/data/\" + inName + \"/\" + inName\n\t\t// + \".test\", delimit, impDelimit, groupDelimit);\n\t\t// calc();\n\n\t\t//f2.write(\"\\n\\n\");\n\t\t// Sort the turkerdata\n\t\t\n//\t\tCollections.sort(turkerData, new Comparator<TurkerData>() {\n//\t\t\tpublic int compare(TurkerData data1, TurkerData data2) {\n//\t\t\t\treturn (data2.maxEntropy > data1.maxEntropy) ? 1 : 0;\n//\t\t\t}\n//\t\t});\n//\t\tdouble BUDGET = 1;\n//\t\tfor (int i=0; i<BUDGET; i++) {\n//\t\t\t//f_3.write(turkerData.get(i).beforeClampingScore + \" \" + \n//\t\t\t\t\t//turkerData.get(i).afterClampingScore + \" \" +\n//\t\t\t\t\t//turkerData.get(i).maxEntropy + \" \" +\n//\t\t\t\t\t//turkerData.get(i).maxEntropyNode + \"\\n\");\n//\t\t}\n//\t\t//f2.write(\"\\n\\n\");\n//\t\t// Sort the turkerdata\n//\t\tCollections.sort(turkerData, new Comparator<TurkerData>() {\n//\t\t\tpublic int compare(TurkerData data1, TurkerData data2) {\n//\t\t\t\treturn (data2.maxNum > data1.maxNum) ? 1 : 0;\n//\t\t\t}\n//\t\t});\n//\t\tfor (int i=0; i<BUDGET; i++) {\n//\t\t\t//f_3.write(turkerData.get(i).beforeClampingScore + \" \" + \n//\t\t\t\t\t//turkerData.get(i).afterClampingScore + \" \" +\n//\t\t\t\t\t//turkerData.get(i).maxNum + \" \" +\n//\t\t\t\t\t//turkerData.get(i).maxEntropy + \"\\n\");\n//\t\t}\n\t\t//f3.write(\"\\n\\n\");\n\t\t//generateTopK(2);\n\t\n\n\t\t\n\t\tf.close();\n f2.close();\n f3.close();\n// facc.close();\n// double acc = (double)rightToks/(double)totalToks;\n// System.out.println(\"Correct tokens: \" + rightToks);\n// System.out.println(\"Total tokens: \" + totalToks);\n// System.out.println(\"Accuracy: \" + acc);\n\t}", "title": "" }, { "docid": "0bed2fc034b0ebd12f4f278a525dbb87", "score": "0.63163805", "text": "@Test(timeout = 4000)\n public void test09() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n int[] intArray0 = new int[6];\n intArray0[3] = (-1);\n intArray0[1] = (-2);\n intArray0[2] = (-2);\n intArray0[3] = (-2);\n CostSensitiveClassifier costSensitiveClassifier0 = new CostSensitiveClassifier();\n double double0 = evaluation0.SFMeanPriorEntropy();\n assertEquals(Double.NaN, double0, 0.01);\n \n double double1 = evaluation0.weightedRecall();\n Evaluation evaluation1 = new Evaluation(instances0);\n evaluation1.setDiscardPredictions(false);\n double double2 = evaluation0.KBRelativeInformation();\n assertEquals(0.0, double2, 0.01);\n \n evaluation0.incorrect();\n double double3 = evaluation0.weightedFalsePositiveRate();\n assertEquals(double3, double1, 0.01);\n assertEquals(Double.NaN, double3, 0.01);\n }", "title": "" }, { "docid": "bf65f1e543ef47aec7546efe2ffa407e", "score": "0.625342", "text": "@Test\n public void vulnerableXenHypervisorProbabilityTest() {\n Sampler.isDeterministic = false;\n assertEquals(\"Did not bypass IDSs.\", 0.75, probabilityTest(new VulnerableXenHypervisorProbabilityTest()), 0.1);\n }", "title": "" }, { "docid": "ab98766dc59ea6a99ecdd14dcf840bb0", "score": "0.62318933", "text": "@Test(timeout = 4000)\n public void test41() throws Throwable {\n Discretize discretize0 = new Discretize();\n ArrayList<Attribute> arrayList0 = new ArrayList<Attribute>();\n EvoSuiteFile evoSuiteFile0 = new EvoSuiteFile(\"/home/ubuntu/wekafiles/props\");\n byte[] byteArray0 = new byte[5];\n byteArray0[0] = (byte)47;\n byteArray0[1] = (byte)47;\n byteArray0[2] = (byte)47;\n byteArray0[3] = (byte) (-82);\n byteArray0[4] = (byte)67;\n FileSystemHandling.appendDataToFile(evoSuiteFile0, byteArray0);\n Attribute attribute0 = new Attribute(\"\\\"position\\\"has unknown type\");\n Attribute attribute1 = new Attribute(\"string\");\n arrayList0.add(attribute0);\n Instances instances0 = new Instances(\"string\", arrayList0, 1);\n discretize0.setInputFormat(instances0);\n discretize0.m_NumBins = 1;\n FileSystemHandling.setPermissions(evoSuiteFile0, false, false, false);\n // Undeclared exception!\n try { \n discretize0.calculateCutPointsByEqualWidthBinning(3);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"weka.filters.unsupervised.attribute.Discretize\", e);\n }\n }", "title": "" }, { "docid": "0294779cf869a92f0915b487e30655a5", "score": "0.6228468", "text": "double getFeatureCoverage();", "title": "" }, { "docid": "336a378a9c40b86dce2e16c170074c16", "score": "0.62073433", "text": "@Test\n public void fullCoverageTest() throws ClassNotFoundException, JMetalException {\n Solution solution ;\n for (int i = 0 ; i< solutionSetSize_; i++) {\n solution = new Solution(problem_);\n solution.setObjective(0, i);\n solution.setObjective(1, solutionSetSize_ - 1 - i);\n solutionSet1_.add(solution);\n }\n // Creating set (0.5,N), (1.5, N-1), (2.5, N-2), ... , (N-1+0.5, 1)\n for (int i = 0 ; i< solutionSetSize_; i++) {\n solution = new Solution(problem_);\n solution.setObjective(0, i+0.5);\n solution.setObjective(1, solutionSetSize_ - i);\n solutionSet2_.add(solution);\n }\n\n assertEquals(1.0, new SetCoverage().setCoverage(solutionSet1_, solutionSet2_), EPSILON) ;\n assertEquals(0.0, new SetCoverage().setCoverage(solutionSet2_, solutionSet1_), EPSILON) ;\n }", "title": "" }, { "docid": "32fb3df49ef6d9974dcba3cceab3dc68", "score": "0.6189568", "text": "@Test(timeout = 4000)\n public void test22() throws Throwable {\n Discretize discretize0 = new Discretize();\n double[][] doubleArray0 = new double[12][8];\n String[] stringArray0 = new String[6];\n stringArray0[0] = \"-R\";\n stringArray0[1] = \"_\";\n stringArray0[2] = \"^oR9z\";\n stringArray0[3] = \"inf\";\n stringArray0[4] = \"f3cB;\";\n discretize0.setDesiredWeightOfInstancesPerInterval(4.6);\n stringArray0[5] = \"Getting output instance\";\n discretize0.setOptions(stringArray0);\n discretize0.setUseEqualFrequency(false);\n discretize0.getRevision();\n discretize0.setMakeBinary(true);\n discretize0.m_CutPoints = doubleArray0;\n discretize0.getBinRangesString(9);\n assertTrue(discretize0.getMakeBinary());\n }", "title": "" }, { "docid": "8dfaa898bc0d57d2c78fed4ed022ff1b", "score": "0.61784935", "text": "@Test(timeout = 4000)\n public void test14() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n \n String[] stringArray0 = new String[5];\n stringArray0[0] = \".bsi\";\n stringArray0[1] = \".arff\";\n stringArray0[2] = \"@relation\";\n Evaluation evaluation1 = new Evaluation(instances0);\n evaluation0.useNoPriors();\n assertEquals(Double.NaN, evaluation0.SFEntropyGain(), 0.01);\n }", "title": "" }, { "docid": "1351fc9f4cad8fdcadcec0831ee680e1", "score": "0.61537373", "text": "public int countTestCases() {\n return 1;\n }", "title": "" }, { "docid": "b005af55cbcaed7b685f4b7b77cb58b4", "score": "0.61458504", "text": "@Test(timeout = 4000)\n public void test06() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFMeanPriorEntropy();\n assertEquals(Double.NaN, double0, 0.01);\n \n evaluation0.getHeader();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "title": "" }, { "docid": "57caf95c0f307a19620d9af5926e5342", "score": "0.6138325", "text": "@Test\n public void acquisitionCostTest() {\n // TODO: test acquisitionCost\n }", "title": "" }, { "docid": "699b81a8d533705cf81ef0fa3481b4a8", "score": "0.61222184", "text": "@Test\n\tpublic void testSingleCrossingScenarioLowVsHighDemandWithMinG(){\n\t\tFixture fixture = new Fixture(90, 1800, 5.0, Regime.COMBINED);\n\t\tSignalAnalysisTool signalAnalyzer = new SignalAnalysisTool();\n\t\tDelayAnalysisTool generalAnalyzer = fixture.run(signalAnalyzer);\n\t\t\n\t\tMap<Id<SignalGroup>, Double> totalSignalGreenTimes = signalAnalyzer.getTotalSignalGreenTime(); \n\t\tMap<Id<SignalGroup>, Double> avgSignalGreenTimePerCycle = signalAnalyzer.calculateAvgSignalGreenTimePerFlexibleCycle(); \n\t\tMap<Id<SignalSystem>, Double> avgCycleTimePerSystem = signalAnalyzer.calculateAvgFlexibleCycleTimePerSignalSystem(); \n\t\tMap<Id<Link>, Double> avgDelayPerLink = generalAnalyzer.getAvgDelayPerLink();\n\t\tDouble avgDelayWE = avgDelayPerLink.get(Id.createLinkId(\"2_3\"));\n\t\tDouble avgDelayNS = avgDelayPerLink.get(Id.createLinkId(\"7_3\"));\n\t\t\n\t\tlog.info(\"total signal green times: \" + totalSignalGreenTimes.get(signalGroupId1) + \", \" + totalSignalGreenTimes.get(signalGroupId2));\n\t\tlog.info(\"avg signal green times per cycle: \" + avgSignalGreenTimePerCycle.get(signalGroupId1) + \", \"\n\t\t\t\t+ avgSignalGreenTimePerCycle.get(signalGroupId2));\n\t\tlog.info(\"avg cycle time per system: \" + avgCycleTimePerSystem.get(signalSystemId));\n\t\tlog.info(\"avg delay per link: \" + avgDelayWE + \", \" + avgDelayNS);\n\t\t\n\t\tAssert.assertTrue(\"total signal green time of WE-direction should be higher than NS-direction\", \n\t\t\t\ttotalSignalGreenTimes.get(signalGroupId1)-totalSignalGreenTimes.get(signalGroupId2) > 0);\n\t\tAssert.assertTrue(\"avg signal green time per cycle of WE-direction should be higher than NS-direction\", \n\t\t\t\tavgSignalGreenTimePerCycle.get(signalGroupId1)-avgSignalGreenTimePerCycle.get(signalGroupId2) > 0);\n\t\tAssert.assertEquals(\"avg signal green time per cycle of NS-direction should be the minimum green time of 5 seconds\", \n\t\t\t\t5.0, avgSignalGreenTimePerCycle.get(signalGroupId2), MatsimTestUtils.EPSILON);\n\t\tAssert.assertTrue(\"cycle time should stay below 90 seconds\", avgCycleTimePerSystem.get(signalSystemId) <= 90);\n\t\tAssert.assertTrue(\"avg delay per vehicle on WS-direction should be less than on NS-direction\", avgDelayWE<avgDelayNS);\n\t}", "title": "" }, { "docid": "fb037c5d52c29724a43fe2ee14715834", "score": "0.61207676", "text": "@Test(timeout = 4000)\n public void test16() throws Throwable {\n String[] stringArray0 = new String[2];\n stringArray0[0] = \";C|gT,;vK_X2tBONoGI\";\n MockRandom mockRandom0 = new MockRandom(1110L);\n mockRandom0.doubles();\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate();\n MockRandom mockRandom1 = new MockRandom(3328L);\n instances0.randomize(mockRandom1);\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toCumulativeMarginDistributionString();\n evaluation0.setDiscardPredictions(false);\n evaluation0.KBRelativeInformation();\n evaluation0.incorrect();\n evaluation0.weightedFalsePositiveRate();\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n textDirectoryLoader0.getOptions();\n evaluation0.toSummaryString(true);\n AttributeSelectedClassifier attributeSelectedClassifier0 = new AttributeSelectedClassifier();\n evaluation0.SFSchemeEntropy();\n evaluation0.weightedFalseNegativeRate();\n String string1 = Evaluation.makeOptionString(attributeSelectedClassifier0, false);\n assertFalse(string1.equals((Object)string0));\n }", "title": "" }, { "docid": "35d8648043f55bebc1ad57a92e3bf402", "score": "0.61118996", "text": "@Test(timeout = 4000)\n public void test15() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n instances0.delete();\n MockRandom mockRandom0 = new MockRandom(0L);\n MockRandom mockRandom1 = new MockRandom(1110L);\n mockRandom1.doubles();\n instances0.randomize(mockRandom1);\n evaluation0.toCumulativeMarginDistributionString();\n evaluation0.setDiscardPredictions(false);\n evaluation0.KBRelativeInformation();\n evaluation0.incorrect();\n evaluation0.weightedFalsePositiveRate();\n textDirectoryLoader0.getOptions();\n String string0 = evaluation0.toSummaryString(true);\n AttributeSelectedClassifier attributeSelectedClassifier0 = new AttributeSelectedClassifier();\n evaluation0.SFSchemeEntropy();\n evaluation0.weightedFalseNegativeRate();\n String string1 = Evaluation.makeOptionString(attributeSelectedClassifier0, true);\n assertFalse(string1.equals((Object)string0));\n }", "title": "" }, { "docid": "def6f0ab5552338836e028d7b8bd9e77", "score": "0.6108326", "text": "@Test(timeout = 4000)\n public void test15() throws Throwable {\n Discretize discretize0 = new Discretize();\n discretize0.getCutPoints((-1550));\n assertFalse(discretize0.getFindNumBins());\n assertEquals(10, discretize0.getBins());\n assertFalse(discretize0.getMakeBinary());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertFalse(discretize0.getUseEqualFrequency());\n assertFalse(discretize0.getUseBinNumbers());\n }", "title": "" }, { "docid": "4d7a960047c8f95dc0ab5b57fab49540", "score": "0.6089184", "text": "@Test(timeout = 4000)\n public void test12() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double[] doubleArray0 = new double[7];\n doubleArray0[0] = (double) 64;\n Version.MINOR = 493;\n doubleArray0[1] = 1608.2289599268;\n doubleArray0[4] = (double) 64;\n doubleArray0[3] = (double) 64;\n doubleArray0[4] = (double) 64;\n doubleArray0[5] = (double) 64;\n doubleArray0[6] = (double) 64;\n evaluation0.updateNumericScores(doubleArray0, doubleArray0, 1.0);\n double[] doubleArray1 = new double[2];\n doubleArray1[1] = (double) 64;\n double double0 = evaluation0.weightedFalseNegativeRate();\n double double1 = evaluation0.meanAbsoluteError();\n assertEquals(double1, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanPriorAbsoluteError(), 0.01);\n assertEquals(Double.NaN, double1, 0.01);\n }", "title": "" }, { "docid": "c2eeda1d0b4f386343617de1f629cbf1", "score": "0.608163", "text": "@Test(timeout = 4000)\n public void test17() throws Throwable {\n String[] stringArray0 = new String[2];\n stringArray0[0] = \";C|gT,;vK_X2tBONoGI\";\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate();\n MockRandom mockRandom0 = new MockRandom(3328L);\n instances0.randomize(mockRandom0);\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toCumulativeMarginDistributionString();\n assertEquals(\" -1 0 \\n\", string0);\n \n evaluation0.setDiscardPredictions(false);\n double double0 = evaluation0.KBRelativeInformation();\n assertEquals(0.0, double0, 0.01);\n \n evaluation0.incorrect();\n double double1 = evaluation0.weightedFalsePositiveRate();\n assertEquals(Double.NaN, double1, 0.01);\n \n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n textDirectoryLoader0.getOptions();\n evaluation0.toSummaryString(true);\n AttributeSelectedClassifier attributeSelectedClassifier0 = new AttributeSelectedClassifier();\n evaluation0.weightedFalseNegativeRate();\n Evaluation.makeOptionString(attributeSelectedClassifier0, false);\n evaluation0.toSummaryString(\" \", false);\n assertEquals(Double.NaN, evaluation0.weightedFalsePositiveRate(), 0.01);\n }", "title": "" }, { "docid": "d959c3113fcf916afb48cd0d0a29eb4f", "score": "0.60797447", "text": "@Test\n\tpublic void testSingleCrossingScenarioEqualDemandCapacityRatio(){\n\t\tFixture fixture = new Fixture(900, 1800, 0.0, Regime.COMBINED);\n\t\tSignalAnalysisTool signalAnalyzer = new SignalAnalysisTool();\n\t\tDelayAnalysisTool generalAnalyzer = fixture.run(signalAnalyzer);\n\t\t\n\t\tMap<Id<SignalGroup>, Double> totalSignalGreenTimes = signalAnalyzer.getTotalSignalGreenTime(); \n\t\tMap<Id<SignalGroup>, Double> avgSignalGreenTimePerCycle = signalAnalyzer.calculateAvgSignalGreenTimePerFlexibleCycle(); \n\t\tMap<Id<SignalSystem>, Double> avgCycleTimePerSystem = signalAnalyzer.calculateAvgFlexibleCycleTimePerSignalSystem(); \n\t\tMap<Id<Link>, Double> avgDelayPerLink = generalAnalyzer.getAvgDelayPerLink();\n\t\tDouble avgDelayWE = avgDelayPerLink.get(Id.createLinkId(\"2_3\"));\n\t\tDouble avgDelayNS = avgDelayPerLink.get(Id.createLinkId(\"7_3\"));\n\t\t\n\t\tlog.info(\"total signal green times: \" + totalSignalGreenTimes.get(signalGroupId1) + \", \" + totalSignalGreenTimes.get(signalGroupId2));\n\t\tlog.info(\"avg signal green times per cycle: \" + avgSignalGreenTimePerCycle.get(signalGroupId1) + \", \"\n\t\t\t\t+ avgSignalGreenTimePerCycle.get(signalGroupId2));\n\t\tlog.info(\"avg cycle time per system: \" + avgCycleTimePerSystem.get(signalSystemId));\n\t\tlog.info(\"avg delay per link: \" + avgDelayWE + \", \" + avgDelayNS);\n\t\t\n\t\tAssert.assertEquals(\"total signal green times should not differ more than 1%\", 1, \n\t\t\t\ttotalSignalGreenTimes.get(signalGroupId1)/totalSignalGreenTimes.get(signalGroupId2), 0.01);\n\t\tAssert.assertEquals(\"avg signal green times per cycle should not differ more than 1%\", \n\t\t\t\t1, avgSignalGreenTimePerCycle.get(signalGroupId1)/avgSignalGreenTimePerCycle.get(signalGroupId2), 0.01);\n//\t\tAssert.assertEquals(\"avg delay per vehicle per link should not differ more than 5%\", 1, avgDelayWE/avgDelayNS, 0.05);\n\t\t/* I commented the last line out because the delay strongly depends on the stabilizing regime, namely the arrival rates that are used.\n\t\t * Even if I use fixed average arrival rates of 0.5 per lane and link, the delays of both directions do not correlate.\n\t\t * Maybe that is okay since the signal green times are still the same, i.e. only the green phases are distributed differently over the simulation time...?\n\t\t * theresa, jun'2020\n\t\t */\n\t}", "title": "" }, { "docid": "5dc173db7bb239858f10d4b1ef493553", "score": "0.6074495", "text": "@Test(timeout = 4000)\n public void test08() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n instances0.delete();\n MockRandom mockRandom0 = new MockRandom(0L);\n MockRandom mockRandom1 = new MockRandom(1110L);\n instances0.randomize(mockRandom1);\n String string0 = evaluation0.toCumulativeMarginDistributionString();\n assertEquals(\" -1 0 \\n\", string0);\n \n evaluation0.setDiscardPredictions(false);\n evaluation0.KBRelativeInformation();\n evaluation0.incorrect();\n evaluation0.weightedFalsePositiveRate();\n String string1 = evaluation0.toSummaryString(true);\n assertEquals(\"=== Summary ===\\n\\nTotal Number of Instances 0 \\n\", string1);\n \n String string2 = evaluation0.toClassDetailsString();\n assertEquals(\"=== Detailed Accuracy By Class ===\\n\\n TP Rate FP Rate Precision Recall F-Measure MCC ROC Area PRC Area Class\\nWeighted Avg. NaN NaN NaN NaN NaN NaN NaN NaN \\n\", string2);\n }", "title": "" }, { "docid": "35c1c7eba9604f64cf85b3ae55305a6c", "score": "0.60695255", "text": "@Test\n public void costTest() {\n // TODO: test cost\n }", "title": "" }, { "docid": "261a2a0e3994509c73f891361905da2f", "score": "0.6044636", "text": "@Test\n\tpublic void testSingleCrossingScenarioLowVsHighDemandWoMinG(){\n\t\tFixture fixture = new Fixture(90, 1800, 0.0, Regime.COMBINED);\n\t\tSignalAnalysisTool signalAnalyzer = new SignalAnalysisTool();\n\t\tDelayAnalysisTool generalAnalyzer = fixture.run(signalAnalyzer);\n\t\t\n\t\tMap<Id<SignalGroup>, Double> totalSignalGreenTimes = signalAnalyzer.getTotalSignalGreenTime(); \n\t\tMap<Id<SignalGroup>, Double> avgSignalGreenTimePerCycle = signalAnalyzer.calculateAvgSignalGreenTimePerFlexibleCycle(); \n\t\tMap<Id<SignalSystem>, Double> avgCycleTimePerSystem = signalAnalyzer.calculateAvgFlexibleCycleTimePerSignalSystem(); \n\t\tMap<Id<Link>, Double> avgDelayPerLink = generalAnalyzer.getAvgDelayPerLink();\n\t\tDouble avgDelayWE = avgDelayPerLink.get(Id.createLinkId(\"2_3\"));\n\t\tDouble avgDelayNS = avgDelayPerLink.get(Id.createLinkId(\"7_3\"));\n\t\t\n\t\tlog.info(\"total signal green times: \" + totalSignalGreenTimes.get(signalGroupId1) + \", \" + totalSignalGreenTimes.get(signalGroupId2));\n\t\tlog.info(\"avg signal green times per cycle: \" + avgSignalGreenTimePerCycle.get(signalGroupId1) + \", \"\n\t\t\t\t+ avgSignalGreenTimePerCycle.get(signalGroupId2));\n\t\tlog.info(\"avg cycle time per system: \" + avgCycleTimePerSystem.get(signalSystemId));\n\t\tlog.info(\"avg delay per link: \" + avgDelayWE + \", \" + avgDelayNS);\n\t\t\n\t\tAssert.assertTrue(\"total signal green time of WE-direction should be higher than NS-direction\", \n\t\t\t\ttotalSignalGreenTimes.get(signalGroupId1)-totalSignalGreenTimes.get(signalGroupId2) > 0);\n\t\tAssert.assertTrue(\"avg signal green time per cycle of WE-direction should be higher than NS-direction\", \n\t\t\t\tavgSignalGreenTimePerCycle.get(signalGroupId1)-avgSignalGreenTimePerCycle.get(signalGroupId2) > 0);\n\t\tAssert.assertTrue(\"avg signal green time per cycle of NS-direction should be less than 5 seconds\", avgSignalGreenTimePerCycle.get(signalGroupId2) < 5.0);\n\t\tAssert.assertTrue(\"cycle time should stay below 90 seconds\", avgCycleTimePerSystem.get(signalSystemId) <= 90);\n\t\tAssert.assertTrue(\"avg delay per vehicle on WS-direction should be less than on NS-direction\", avgDelayWE<avgDelayNS);\n\t}", "title": "" }, { "docid": "65411f74542c5574bbbeaf6a426d4acd", "score": "0.60326636", "text": "@Test\n public void testAutomated_readability_index() {\n System.out.println(\"automated_readability_index\");\n String strText = TEST_STRING;\n double expResult = 143.2;\n double result = ReadabilityStatistics.automated_readability_index(strText);\n assertEquals(expResult, result, TestConfiguration.DOUBLE_ACCURACY_HIGH);\n }", "title": "" }, { "docid": "e48c03ee221e510873da25939e63942a", "score": "0.6015857", "text": "@Test\n\tpublic void testSingleCrossingScenarioWithDifferentFlowCapacityFactors(){\n\t\tFixture fixtureFlowCap1 = new Fixture(360, 1800, 0.0, Regime.COMBINED);\n\t\tSignalAnalysisTool signalAnalyzerFlowCap1 = new SignalAnalysisTool();\n\t\tDelayAnalysisTool generalAnalyzerFlowCap1 = fixtureFlowCap1.run(signalAnalyzerFlowCap1);\n\t\t\n\t\tFixture fixtureFlowCap2 = new Fixture(360, 1800, 0.0, Regime.COMBINED);\n\t\tfixtureFlowCap2.doublePopulation();\n\t\tSignalAnalysisTool signalAnalyzerFlowCap2 = new SignalAnalysisTool();\n\t\tDelayAnalysisTool generalAnalyzerFlowCap2 = fixtureFlowCap2.run(signalAnalyzerFlowCap2);\n\t\t\n\t\tMap<Id<SignalGroup>, Double> totalSignalGreenTimesFlowCap2 = signalAnalyzerFlowCap2.getTotalSignalGreenTime(); \n\t\tMap<Id<SignalGroup>, Double> avgSignalGreenTimePerCycleFlowCap2 = signalAnalyzerFlowCap2.calculateAvgSignalGreenTimePerFlexibleCycle(); \n\t\tMap<Id<SignalSystem>, Double> avgCycleTimePerSystemFlowCap2 = signalAnalyzerFlowCap2.calculateAvgFlexibleCycleTimePerSignalSystem(); \n\t\tMap<Id<Link>, Double> avgDelayPerLinkFlowCap2 = generalAnalyzerFlowCap2.getAvgDelayPerLink();\n\t\t\n\t\tlog.info(\"*** flow capacity 2.0 ***\");\n\t\tlog.info(\"total signal green times: \" + totalSignalGreenTimesFlowCap2.get(signalGroupId1) + \", \" + totalSignalGreenTimesFlowCap2.get(signalGroupId2));\n\t\tlog.info(\"avg signal green times per cycle: \" + avgSignalGreenTimePerCycleFlowCap2.get(signalGroupId1) + \", \"\n\t\t\t\t+ avgSignalGreenTimePerCycleFlowCap2.get(signalGroupId2));\n\t\tlog.info(\"avg cycle time per system: \" + avgCycleTimePerSystemFlowCap2.get(signalSystemId));\n\t\tlog.info(\"avg delay per link: \" + avgDelayPerLinkFlowCap2.get(Id.createLinkId(\"2_3\")) + \", \" + avgDelayPerLinkFlowCap2.get(Id.createLinkId(\"7_3\")));\n\t\tlog.info(\"Total delay: \" + generalAnalyzerFlowCap2.getTotalDelay());\n\t\t\n\t\tMap<Id<SignalGroup>, Double> totalSignalGreenTimesFlowCap1 = signalAnalyzerFlowCap1.getTotalSignalGreenTime(); \n\t\tMap<Id<SignalGroup>, Double> avgSignalGreenTimePerCycleFlowCap1 = signalAnalyzerFlowCap1.calculateAvgSignalGreenTimePerFlexibleCycle(); \n\t\tMap<Id<SignalSystem>, Double> avgCycleTimePerSystemFlowCap1 = signalAnalyzerFlowCap1.calculateAvgFlexibleCycleTimePerSignalSystem(); \n\t\tMap<Id<Link>, Double> avgDelayPerLinkFlowCap1 = generalAnalyzerFlowCap1.getAvgDelayPerLink();\n\n\t\tlog.info(\"*** flow capacity 1.0 ***\");\n\t\tlog.info(\"total signal green times: \" + totalSignalGreenTimesFlowCap1.get(signalGroupId1) + \", \" + totalSignalGreenTimesFlowCap1.get(signalGroupId2));\n\t\tlog.info(\"avg signal green times per cycle: \" + avgSignalGreenTimePerCycleFlowCap1.get(signalGroupId1) + \", \"\n\t\t\t\t+ avgSignalGreenTimePerCycleFlowCap1.get(signalGroupId2));\n\t\tlog.info(\"avg cycle time per system: \" + avgCycleTimePerSystemFlowCap1.get(signalSystemId));\n\t\tlog.info(\"avg delay per link: \" + avgDelayPerLinkFlowCap1.get(Id.createLinkId(\"2_3\")) + \", \" + avgDelayPerLinkFlowCap1.get(Id.createLinkId(\"7_3\")));\n\t\tlog.info(\"Total delay: \" + generalAnalyzerFlowCap1.getTotalDelay());\n\t\t\n\t\tAssert.assertEquals(\"total signal green times should not differ\", 1, \n\t\t\t\ttotalSignalGreenTimesFlowCap1.get(signalGroupId1)/totalSignalGreenTimesFlowCap2.get(signalGroupId1), 0.01);\n\t\tAssert.assertEquals(\"total signal green times should not differ\", 1, \n\t\t\t\ttotalSignalGreenTimesFlowCap1.get(signalGroupId2)/totalSignalGreenTimesFlowCap2.get(signalGroupId2), 0.01);\n\t\tAssert.assertEquals(\"avg signal green times per cycle should not differ\", avgSignalGreenTimePerCycleFlowCap1.get(signalGroupId1), \n\t\t\t\tavgSignalGreenTimePerCycleFlowCap2.get(signalGroupId1), 0.1);\n\t\tAssert.assertEquals(\"avg signal green times per cycle should not differ\", avgSignalGreenTimePerCycleFlowCap1.get(signalGroupId2), \n\t\t\t\tavgSignalGreenTimePerCycleFlowCap2.get(signalGroupId2), 0.1);\n\t\tAssert.assertEquals(\"avg cycle time should not differ\", avgCycleTimePerSystemFlowCap1.get(signalSystemId),\n\t\t\t\tavgCycleTimePerSystemFlowCap2.get(signalSystemId), 0.1);\n\t\tAssert.assertEquals(\"avg delay per vehicle per link should not differ\", \n\t\t\t\tavgDelayPerLinkFlowCap1.get(Id.createLinkId(\"2_3\")), avgDelayPerLinkFlowCap2.get(Id.createLinkId(\"2_3\")), 0.1);\n\t\tAssert.assertEquals(\"avg delay per vehicle per link should not differ\", \n\t\t\t\tavgDelayPerLinkFlowCap1.get(Id.createLinkId(\"7_3\")), avgDelayPerLinkFlowCap2.get(Id.createLinkId(\"7_3\")), 2);\n\t\tAssert.assertEquals(\"total delay for doubled demand should be doubled\", 2, generalAnalyzerFlowCap2.getTotalDelay()/generalAnalyzerFlowCap1.getTotalDelay(), 0.1);\n\t}", "title": "" }, { "docid": "e46fd90c4497bf2ddeccf61edf80ef95", "score": "0.6007842", "text": "@Test(timeout = 4000)\n public void test32() throws Throwable {\n Discretize discretize0 = new Discretize();\n ArrayList<Attribute> arrayList0 = new ArrayList<Attribute>();\n Attribute attribute0 = new Attribute(\".ycf\");\n arrayList0.add(attribute0);\n Instances instances0 = new Instances(\"string\", arrayList0, 2);\n boolean boolean0 = discretize0.setInputFormat(instances0);\n assertFalse(boolean0);\n \n discretize0.calculateCutPoints();\n String string0 = discretize0.getBinRangesString(0);\n assertEquals(10, discretize0.getBins());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertFalse(discretize0.getUseBinNumbers());\n assertFalse(discretize0.getFindNumBins());\n assertEquals(\"All\", string0);\n assertFalse(discretize0.getUseEqualFrequency());\n }", "title": "" }, { "docid": "428d0516709a45c5fc51b4abdb99d48e", "score": "0.60043764", "text": "@Test(timeout = 4000)\n public void test54() throws Throwable {\n FileSystemHandling.setPermissions((EvoSuiteFile) null, false, false, true);\n Discretize discretize0 = new Discretize();\n ArrayList<Attribute> arrayList0 = new ArrayList<Attribute>();\n Attribute attribute0 = new Attribute(\"\\\"position\\\" has unknown type\");\n arrayList0.add(attribute0);\n Instances instances0 = new Instances(\"HuI)L44;vn \", arrayList0, 1);\n BinarySparseInstance binarySparseInstance0 = new BinarySparseInstance(1);\n instances0.add((Instance) binarySparseInstance0);\n discretize0.setInputFormat(instances0);\n discretize0.setUseEqualFrequency(true);\n double[] doubleArray0 = new double[1];\n doubleArray0[0] = 3800.84988;\n SparseInstance sparseInstance0 = new SparseInstance(3800.84988, doubleArray0);\n instances0.add((Instance) sparseInstance0);\n sparseInstance0.setValue(attribute0, (double) 1);\n SparseInstance sparseInstance1 = new SparseInstance(sparseInstance0);\n sparseInstance1.toString(attribute0);\n FileSystemHandling.setPermissions((EvoSuiteFile) null, false, false, false);\n binarySparseInstance0.isMissing(attribute0);\n instances0.add((Instance) sparseInstance1);\n Filter.useFilter(instances0, discretize0);\n discretize0.calculateCutPoints();\n }", "title": "" }, { "docid": "02b932cbca7aef4bd7591c0fec257d46", "score": "0.5993626", "text": "@org.junit.Test(timeout = 10000)\n public void testGetFalsePositiveProbability_cf7590() {\n // These probabilities are taken from the bloom filter probability table at\n // http://pages.cs.wisc.edu/~cao/papers/summary-cache/node8.html\n java.lang.System.out.println(\"expectedFalsePositiveProbability\");\n com.clearspring.analytics.stream.membership.BloomFilter instance = new com.clearspring.analytics.stream.membership.BloomFilter(100, 10);\n double expResult = 0.00819;// m/n=10, k=7\n \n double result = com.clearspring.analytics.stream.membership.BloomCalculations.getFalsePositiveProbability(10, 7);\n org.junit.Assert.assertEquals(7, instance.getHashCount());\n org.junit.Assert.assertEquals(expResult, result, 9.0E-6);\n instance = new com.clearspring.analytics.stream.membership.BloomFilter(10, 10);\n expResult = 0.00819;// m/n=10, k=7\n \n result = com.clearspring.analytics.stream.membership.BloomCalculations.getFalsePositiveProbability(10, 7);\n org.junit.Assert.assertEquals(7, instance.getHashCount());\n org.junit.Assert.assertEquals(expResult, result, 9.0E-6);\n instance = new com.clearspring.analytics.stream.membership.BloomFilter(10, 2);\n expResult = 0.393;// m/n=2, k=1\n \n result = com.clearspring.analytics.stream.membership.BloomCalculations.getFalsePositiveProbability(2, 1);\n org.junit.Assert.assertEquals(instance.getHashCount(), 1);\n org.junit.Assert.assertEquals(expResult, result, 5.0E-4);\n instance = new com.clearspring.analytics.stream.membership.BloomFilter(10, 11);\n expResult = 0.00509;// m/n=11, k=8\n \n result = com.clearspring.analytics.stream.membership.BloomCalculations.getFalsePositiveProbability(11, 8);\n org.junit.Assert.assertEquals(8, instance.getHashCount());\n // StatementAdderOnAssert create random local variable\n byte[] vc_1543 = new byte []{109,86,75};\n // StatementAddOnAssert local variable replacement\n com.clearspring.analytics.stream.membership.BloomFilter mergeBf = ((com.clearspring.analytics.stream.membership.BloomFilter) (bf2.merge(bf)));\n // AssertGenerator replace invocation\n boolean o_testGetFalsePositiveProbability_cf7590__44 = // StatementAdderMethod cloned existing statement\nmergeBf.isPresent(vc_1543);\n // AssertGenerator add assertion\n org.junit.Assert.assertFalse(o_testGetFalsePositiveProbability_cf7590__44);\n org.junit.Assert.assertEquals(expResult, result, 1.0E-5);\n }", "title": "" }, { "docid": "bbd257f816f94f9bd3f1f1b6ed097506", "score": "0.5980628", "text": "@Test(timeout = 4000)\n public void test20() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n textDirectoryLoader0.getStructure();\n C45Loader c45Loader0 = new C45Loader();\n c45Loader0.setUseRelativePath(true);\n File file0 = c45Loader0.retrieveFile();\n textDirectoryLoader0.setDirectory(file0);\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate(\"@data\");\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toSummaryString(true);\n assertEquals(\"=== Summary ===\\n\\nTotal Number of Instances 0 \\n\", string0);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n }", "title": "" }, { "docid": "3da606d7760815e4ba85ee0a45454485", "score": "0.59769404", "text": "@Test\n public void attackStandingThresholdTest() {\n // TODO: test attackStandingThreshold\n }", "title": "" }, { "docid": "708da27346521e23389bff04cd38abd6", "score": "0.59670335", "text": "public double getCoverage() {\n return ((double) numExamplesParsed) / numExamples;\n }", "title": "" }, { "docid": "95a9de5026ac76a9fe4e7c910fdc57c0", "score": "0.59617203", "text": "@Test\n\tpublic void TC001() {\n\t\t\n\t\t\n\t\t\n\t}", "title": "" }, { "docid": "9ed4a1833deeb64b30ee9b91689a19a7", "score": "0.59507364", "text": "@org.junit.Test(timeout = 10000)\n public void testGetFalsePositiveProbability_cf7656() {\n // These probabilities are taken from the bloom filter probability table at\n // http://pages.cs.wisc.edu/~cao/papers/summary-cache/node8.html\n java.lang.System.out.println(\"expectedFalsePositiveProbability\");\n com.clearspring.analytics.stream.membership.BloomFilter instance = new com.clearspring.analytics.stream.membership.BloomFilter(100, 10);\n double expResult = 0.00819;// m/n=10, k=7\n \n double result = com.clearspring.analytics.stream.membership.BloomCalculations.getFalsePositiveProbability(10, 7);\n org.junit.Assert.assertEquals(7, instance.getHashCount());\n org.junit.Assert.assertEquals(expResult, result, 9.0E-6);\n instance = new com.clearspring.analytics.stream.membership.BloomFilter(10, 10);\n expResult = 0.00819;// m/n=10, k=7\n \n result = com.clearspring.analytics.stream.membership.BloomCalculations.getFalsePositiveProbability(10, 7);\n org.junit.Assert.assertEquals(7, instance.getHashCount());\n org.junit.Assert.assertEquals(expResult, result, 9.0E-6);\n instance = new com.clearspring.analytics.stream.membership.BloomFilter(10, 2);\n expResult = 0.393;// m/n=2, k=1\n \n result = com.clearspring.analytics.stream.membership.BloomCalculations.getFalsePositiveProbability(2, 1);\n org.junit.Assert.assertEquals(instance.getHashCount(), 1);\n org.junit.Assert.assertEquals(expResult, result, 5.0E-4);\n instance = new com.clearspring.analytics.stream.membership.BloomFilter(10, 11);\n expResult = 0.00509;// m/n=11, k=8\n \n result = com.clearspring.analytics.stream.membership.BloomCalculations.getFalsePositiveProbability(11, 8);\n org.junit.Assert.assertEquals(8, instance.getHashCount());\n // StatementAdderOnAssert create random local variable\n byte[] vc_1575 = new byte []{};\n // StatementAdderMethod cloned existing statement\n instance.add(vc_1575);\n // AssertGenerator add assertion\n org.junit.Assert.assertEquals(((com.clearspring.analytics.stream.membership.BloomFilter)instance).getHashCount(), 8);\n // AssertGenerator add assertion\n org.junit.Assert.assertEquals(((com.clearspring.analytics.stream.membership.BloomFilter)instance).buckets(), 192);\n org.junit.Assert.assertEquals(expResult, result, 1.0E-5);\n }", "title": "" }, { "docid": "72d7f3d92872453d4a5d30d3b1df815f", "score": "0.59402716", "text": "@Test\n public void testDale_chall_grade() {\n System.out.println(\"dale_chall_grade\");\n String strText = TEST_STRING;\n double expResult = 16.0;\n double result = ReadabilityStatistics.dale_chall_grade(strText);\n assertEquals(expResult, result, TestConfiguration.DOUBLE_ACCURACY_HIGH);\n }", "title": "" }, { "docid": "698e81af1f85436314dfd85615e9dd8b", "score": "0.5936021", "text": "@Test(timeout = 4000)\n public void test07() throws Throwable {\n Discretize discretize0 = new Discretize();\n discretize0.getOptions();\n double[][] doubleArray0 = new double[12][8];\n discretize0.getRevision();\n discretize0.setMakeBinary(true);\n discretize0.m_CutPoints = doubleArray0;\n discretize0.getBinRangesString(9);\n assertTrue(discretize0.getMakeBinary());\n }", "title": "" }, { "docid": "b8865f5fd0309183e5057831342acb4e", "score": "0.59318405", "text": "@Test(timeout = 4000)\n public void test100() throws Throwable {\n ResultMatrixSignificance resultMatrixSignificance0 = new ResultMatrixSignificance();\n assertNotNull(resultMatrixSignificance0);\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n \n boolean[] booleanArray0 = new boolean[5];\n booleanArray0[0] = false;\n booleanArray0[1] = true;\n booleanArray0[2] = true;\n booleanArray0[3] = true;\n booleanArray0[4] = false;\n resultMatrixSignificance0.m_ColHidden = booleanArray0;\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n \n boolean[] booleanArray1 = new boolean[7];\n assertFalse(booleanArray1.equals((Object)booleanArray0));\n \n booleanArray1[0] = false;\n booleanArray1[1] = true;\n resultMatrixSignificance0.m_CountWidth = (-1);\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals((-1), resultMatrixSignificance0.getCountWidth());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n \n booleanArray1[2] = true;\n ResultMatrixLatex resultMatrixLatex0 = new ResultMatrixLatex(resultMatrixSignificance0);\n assertNotNull(resultMatrixLatex0);\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals((-1), resultMatrixSignificance0.getCountWidth());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex0.meanPrecTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex0.printRowNamesTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultSignificanceWidth());\n assertEquals(2, resultMatrixLatex0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixLatex0.getDefaultColNameWidth());\n assertFalse(resultMatrixLatex0.getDefaultShowStdDev());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex0.countWidthTipText());\n assertFalse(resultMatrixLatex0.getDefaultRemoveFilterName());\n assertEquals(1, resultMatrixLatex0.getColCount());\n assertEquals(1, resultMatrixLatex0.getVisibleRowCount());\n assertFalse(resultMatrixLatex0.getRemoveFilterName());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateRowNamesTipText());\n assertEquals(40, resultMatrixLatex0.getRowNameWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex0.rowNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex0.stdDevPrecTipText());\n assertFalse(resultMatrixLatex0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex0.removeFilterNameTipText());\n assertEquals(2, resultMatrixLatex0.getMeanPrec());\n assertEquals(0, resultMatrixLatex0.getDefaultMeanWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateColNamesTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex0.printColNamesTipText());\n assertEquals(1, resultMatrixLatex0.getVisibleColCount());\n assertEquals(0, resultMatrixLatex0.getDefaultStdDevWidth());\n assertFalse(resultMatrixLatex0.getDefaultPrintColNames());\n assertTrue(resultMatrixLatex0.getPrintRowNames());\n assertEquals(2, resultMatrixLatex0.getDefaultMeanPrec());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex0.globalInfo());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex0.meanWidthTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex0.showStdDevTipText());\n assertEquals(\"LaTeX\", resultMatrixLatex0.getDisplayName());\n assertEquals(2, resultMatrixLatex0.getStdDevPrec());\n assertEquals(0, resultMatrixLatex0.getSignificanceWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex0.stdDevWidthTipText());\n assertEquals(1, resultMatrixLatex0.getRowCount());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex0.significanceWidthTipText());\n assertFalse(resultMatrixLatex0.getEnumerateRowNames());\n assertFalse(resultMatrixLatex0.getPrintColNames());\n assertFalse(resultMatrixLatex0.getShowStdDev());\n assertTrue(resultMatrixLatex0.getDefaultPrintRowNames());\n assertEquals(0, resultMatrixLatex0.getColNameWidth());\n assertFalse(resultMatrixLatex0.getDefaultShowAverage());\n assertEquals(0, resultMatrixLatex0.getDefaultRowNameWidth());\n assertEquals((-1), resultMatrixLatex0.getCountWidth());\n assertEquals(0, resultMatrixLatex0.getMeanWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex0.colNameWidthTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultCountWidth());\n assertTrue(resultMatrixLatex0.getEnumerateColNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex0.showAverageTipText());\n assertTrue(resultMatrixLatex0.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixLatex0.getStdDevWidth());\n assertFalse(resultMatrixLatex0.getShowAverage());\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n \n double double0 = resultMatrixLatex0.getCount(1);\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals((-1), resultMatrixSignificance0.getCountWidth());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex0.meanPrecTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex0.printRowNamesTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultSignificanceWidth());\n assertEquals(2, resultMatrixLatex0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixLatex0.getDefaultColNameWidth());\n assertFalse(resultMatrixLatex0.getDefaultShowStdDev());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex0.countWidthTipText());\n assertFalse(resultMatrixLatex0.getDefaultRemoveFilterName());\n assertEquals(1, resultMatrixLatex0.getColCount());\n assertEquals(1, resultMatrixLatex0.getVisibleRowCount());\n assertFalse(resultMatrixLatex0.getRemoveFilterName());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateRowNamesTipText());\n assertEquals(40, resultMatrixLatex0.getRowNameWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex0.rowNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex0.stdDevPrecTipText());\n assertFalse(resultMatrixLatex0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex0.removeFilterNameTipText());\n assertEquals(2, resultMatrixLatex0.getMeanPrec());\n assertEquals(0, resultMatrixLatex0.getDefaultMeanWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateColNamesTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex0.printColNamesTipText());\n assertEquals(1, resultMatrixLatex0.getVisibleColCount());\n assertEquals(0, resultMatrixLatex0.getDefaultStdDevWidth());\n assertFalse(resultMatrixLatex0.getDefaultPrintColNames());\n assertTrue(resultMatrixLatex0.getPrintRowNames());\n assertEquals(2, resultMatrixLatex0.getDefaultMeanPrec());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex0.globalInfo());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex0.meanWidthTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex0.showStdDevTipText());\n assertEquals(\"LaTeX\", resultMatrixLatex0.getDisplayName());\n assertEquals(2, resultMatrixLatex0.getStdDevPrec());\n assertEquals(0, resultMatrixLatex0.getSignificanceWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex0.stdDevWidthTipText());\n assertEquals(1, resultMatrixLatex0.getRowCount());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex0.significanceWidthTipText());\n assertFalse(resultMatrixLatex0.getEnumerateRowNames());\n assertFalse(resultMatrixLatex0.getPrintColNames());\n assertFalse(resultMatrixLatex0.getShowStdDev());\n assertTrue(resultMatrixLatex0.getDefaultPrintRowNames());\n assertEquals(0, resultMatrixLatex0.getColNameWidth());\n assertFalse(resultMatrixLatex0.getDefaultShowAverage());\n assertEquals(0, resultMatrixLatex0.getDefaultRowNameWidth());\n assertEquals((-1), resultMatrixLatex0.getCountWidth());\n assertEquals(0, resultMatrixLatex0.getMeanWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex0.colNameWidthTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultCountWidth());\n assertTrue(resultMatrixLatex0.getEnumerateColNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex0.showAverageTipText());\n assertTrue(resultMatrixLatex0.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixLatex0.getStdDevWidth());\n assertFalse(resultMatrixLatex0.getShowAverage());\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(0.0, double0, 0.01);\n \n ResultMatrixLatex resultMatrixLatex1 = new ResultMatrixLatex(resultMatrixSignificance0);\n assertNotNull(resultMatrixLatex1);\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals((-1), resultMatrixSignificance0.getCountWidth());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(1, resultMatrixLatex1.getVisibleColCount());\n assertEquals(1, resultMatrixLatex1.getColCount());\n assertEquals(0, resultMatrixLatex1.getDefaultStdDevWidth());\n assertFalse(resultMatrixLatex1.getDefaultShowStdDev());\n assertFalse(resultMatrixLatex1.getRemoveFilterName());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex1.countWidthTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex1.enumerateColNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex1.meanPrecTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex1.printRowNamesTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex1.printColNamesTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex1.colNameWidthTipText());\n assertFalse(resultMatrixLatex1.getDefaultPrintColNames());\n assertEquals(2, resultMatrixLatex1.getDefaultMeanPrec());\n assertTrue(resultMatrixLatex1.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex1.showAverageTipText());\n assertEquals(2, resultMatrixLatex1.getDefaultStdDevPrec());\n assertEquals((-1), resultMatrixLatex1.getCountWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex1.removeFilterNameTipText());\n assertEquals(0, resultMatrixLatex1.getDefaultRowNameWidth());\n assertTrue(resultMatrixLatex1.getDefaultEnumerateColNames());\n assertTrue(resultMatrixLatex1.getEnumerateColNames());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex1.stdDevPrecTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex1.rowNameWidthTipText());\n assertFalse(resultMatrixLatex1.getShowStdDev());\n assertEquals(0, resultMatrixLatex1.getMeanWidth());\n assertEquals(0, resultMatrixLatex1.getColNameWidth());\n assertFalse(resultMatrixLatex1.getEnumerateRowNames());\n assertEquals(0, resultMatrixLatex1.getSignificanceWidth());\n assertTrue(resultMatrixLatex1.getDefaultPrintRowNames());\n assertEquals(\"LaTeX\", resultMatrixLatex1.getDisplayName());\n assertEquals(2, resultMatrixLatex1.getMeanPrec());\n assertFalse(resultMatrixLatex1.getPrintColNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex1.meanWidthTipText());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex1.globalInfo());\n assertFalse(resultMatrixLatex1.getShowAverage());\n assertEquals(0, resultMatrixLatex1.getDefaultCountWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex1.significanceWidthTipText());\n assertEquals(0, resultMatrixLatex1.getStdDevWidth());\n assertEquals(1, resultMatrixLatex1.getRowCount());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex1.enumerateRowNamesTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex1.stdDevWidthTipText());\n assertEquals(1, resultMatrixLatex1.getVisibleRowCount());\n assertEquals(0, resultMatrixLatex1.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixLatex1.getDefaultMeanWidth());\n assertFalse(resultMatrixLatex1.getDefaultShowAverage());\n assertEquals(2, resultMatrixLatex1.getStdDevPrec());\n assertEquals(0, resultMatrixLatex1.getDefaultColNameWidth());\n assertFalse(resultMatrixLatex1.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixLatex1.getDefaultRemoveFilterName());\n assertEquals(40, resultMatrixLatex1.getRowNameWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex1.showStdDevTipText());\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertFalse(resultMatrixLatex1.equals((Object)resultMatrixLatex0));\n \n boolean boolean0 = resultMatrixLatex1.isAverage(21);\n assertNotSame(resultMatrixLatex1, resultMatrixLatex0);\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals((-1), resultMatrixSignificance0.getCountWidth());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(1, resultMatrixLatex1.getVisibleColCount());\n assertEquals(1, resultMatrixLatex1.getColCount());\n assertEquals(0, resultMatrixLatex1.getDefaultStdDevWidth());\n assertFalse(resultMatrixLatex1.getDefaultShowStdDev());\n assertFalse(resultMatrixLatex1.getRemoveFilterName());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex1.countWidthTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex1.enumerateColNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex1.meanPrecTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex1.printRowNamesTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex1.printColNamesTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex1.colNameWidthTipText());\n assertFalse(resultMatrixLatex1.getDefaultPrintColNames());\n assertEquals(2, resultMatrixLatex1.getDefaultMeanPrec());\n assertTrue(resultMatrixLatex1.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex1.showAverageTipText());\n assertEquals(2, resultMatrixLatex1.getDefaultStdDevPrec());\n assertEquals((-1), resultMatrixLatex1.getCountWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex1.removeFilterNameTipText());\n assertEquals(0, resultMatrixLatex1.getDefaultRowNameWidth());\n assertTrue(resultMatrixLatex1.getDefaultEnumerateColNames());\n assertTrue(resultMatrixLatex1.getEnumerateColNames());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex1.stdDevPrecTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex1.rowNameWidthTipText());\n assertFalse(resultMatrixLatex1.getShowStdDev());\n assertEquals(0, resultMatrixLatex1.getMeanWidth());\n assertEquals(0, resultMatrixLatex1.getColNameWidth());\n assertFalse(resultMatrixLatex1.getEnumerateRowNames());\n assertEquals(0, resultMatrixLatex1.getSignificanceWidth());\n assertTrue(resultMatrixLatex1.getDefaultPrintRowNames());\n assertEquals(\"LaTeX\", resultMatrixLatex1.getDisplayName());\n assertEquals(2, resultMatrixLatex1.getMeanPrec());\n assertFalse(resultMatrixLatex1.getPrintColNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex1.meanWidthTipText());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex1.globalInfo());\n assertFalse(resultMatrixLatex1.getShowAverage());\n assertEquals(0, resultMatrixLatex1.getDefaultCountWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex1.significanceWidthTipText());\n assertEquals(0, resultMatrixLatex1.getStdDevWidth());\n assertEquals(1, resultMatrixLatex1.getRowCount());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex1.enumerateRowNamesTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex1.stdDevWidthTipText());\n assertEquals(1, resultMatrixLatex1.getVisibleRowCount());\n assertEquals(0, resultMatrixLatex1.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixLatex1.getDefaultMeanWidth());\n assertFalse(resultMatrixLatex1.getDefaultShowAverage());\n assertEquals(2, resultMatrixLatex1.getStdDevPrec());\n assertEquals(0, resultMatrixLatex1.getDefaultColNameWidth());\n assertFalse(resultMatrixLatex1.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixLatex1.getDefaultRemoveFilterName());\n assertEquals(40, resultMatrixLatex1.getRowNameWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex1.showStdDevTipText());\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertFalse(resultMatrixLatex1.equals((Object)resultMatrixLatex0));\n assertFalse(boolean0);\n \n int int0 = resultMatrixLatex1.getDefaultSignificanceWidth();\n assertNotSame(resultMatrixLatex1, resultMatrixLatex0);\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals((-1), resultMatrixSignificance0.getCountWidth());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(1, resultMatrixLatex1.getVisibleColCount());\n assertEquals(1, resultMatrixLatex1.getColCount());\n assertEquals(0, resultMatrixLatex1.getDefaultStdDevWidth());\n assertFalse(resultMatrixLatex1.getDefaultShowStdDev());\n assertFalse(resultMatrixLatex1.getRemoveFilterName());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex1.countWidthTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex1.enumerateColNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex1.meanPrecTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex1.printRowNamesTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex1.printColNamesTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex1.colNameWidthTipText());\n assertFalse(resultMatrixLatex1.getDefaultPrintColNames());\n assertEquals(2, resultMatrixLatex1.getDefaultMeanPrec());\n assertTrue(resultMatrixLatex1.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex1.showAverageTipText());\n assertEquals(2, resultMatrixLatex1.getDefaultStdDevPrec());\n assertEquals((-1), resultMatrixLatex1.getCountWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex1.removeFilterNameTipText());\n assertEquals(0, resultMatrixLatex1.getDefaultRowNameWidth());\n assertTrue(resultMatrixLatex1.getDefaultEnumerateColNames());\n assertTrue(resultMatrixLatex1.getEnumerateColNames());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex1.stdDevPrecTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex1.rowNameWidthTipText());\n assertFalse(resultMatrixLatex1.getShowStdDev());\n assertEquals(0, resultMatrixLatex1.getMeanWidth());\n assertEquals(0, resultMatrixLatex1.getColNameWidth());\n assertFalse(resultMatrixLatex1.getEnumerateRowNames());\n assertEquals(0, resultMatrixLatex1.getSignificanceWidth());\n assertTrue(resultMatrixLatex1.getDefaultPrintRowNames());\n assertEquals(\"LaTeX\", resultMatrixLatex1.getDisplayName());\n assertEquals(2, resultMatrixLatex1.getMeanPrec());\n assertFalse(resultMatrixLatex1.getPrintColNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex1.meanWidthTipText());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex1.globalInfo());\n assertFalse(resultMatrixLatex1.getShowAverage());\n assertEquals(0, resultMatrixLatex1.getDefaultCountWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex1.significanceWidthTipText());\n assertEquals(0, resultMatrixLatex1.getStdDevWidth());\n assertEquals(1, resultMatrixLatex1.getRowCount());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex1.enumerateRowNamesTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex1.stdDevWidthTipText());\n assertEquals(1, resultMatrixLatex1.getVisibleRowCount());\n assertEquals(0, resultMatrixLatex1.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixLatex1.getDefaultMeanWidth());\n assertFalse(resultMatrixLatex1.getDefaultShowAverage());\n assertEquals(2, resultMatrixLatex1.getStdDevPrec());\n assertEquals(0, resultMatrixLatex1.getDefaultColNameWidth());\n assertFalse(resultMatrixLatex1.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixLatex1.getDefaultRemoveFilterName());\n assertEquals(40, resultMatrixLatex1.getRowNameWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex1.showStdDevTipText());\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertFalse(resultMatrixLatex1.equals((Object)resultMatrixLatex0));\n assertEquals(0, int0);\n }", "title": "" }, { "docid": "e8ed6047be65bc2e815bde5ad8c314a6", "score": "0.59276295", "text": "@Test\n void bigAttackTest();", "title": "" }, { "docid": "e3b741a33cd887ef3d23382bb5694de2", "score": "0.5920845", "text": "@Test(timeout = 4000)\n public void test163() throws Throwable {\n ResultMatrixCSV resultMatrixCSV0 = new ResultMatrixCSV();\n ResultMatrixHTML resultMatrixHTML0 = new ResultMatrixHTML();\n resultMatrixHTML0.setMeanPrec((-3056));\n ResultMatrixHTML.main((String[]) null);\n }", "title": "" }, { "docid": "ac3be5e7e8002767a4232ee165c046f7", "score": "0.5911773", "text": "@Test\n public void testFlesch_kincaid_grade_level() {\n System.out.println(\"flesch_kincaid_grade_level\");\n String strText = TEST_STRING;\n double expResult = 112.3;\n double result = ReadabilityStatistics.flesch_kincaid_grade_level(strText);\n assertEquals(expResult, result, TestConfiguration.DOUBLE_ACCURACY_HIGH);\n }", "title": "" }, { "docid": "9a8de4c9a757dd1e01c8ad1ac1dfa7cc", "score": "0.59046626", "text": "@org.junit.Test(timeout = 10000)\n public void testGetFalsePositiveProbability_cf7643_cf10382_failAssert0() {\n // AssertGenerator generate try/catch block with fail statement\n try {\n // MethodAssertGenerator build local variable\n Object o_44_1 = 150080;\n // These probabilities are taken from the bloom filter probability table at\n // http://pages.cs.wisc.edu/~cao/papers/summary-cache/node8.html\n java.lang.System.out.println(\"expectedFalsePositiveProbability\");\n com.clearspring.analytics.stream.membership.BloomFilter instance = new com.clearspring.analytics.stream.membership.BloomFilter(100, 10);\n double expResult = 0.00819;// m/n=10, k=7\n \n double result = com.clearspring.analytics.stream.membership.BloomCalculations.getFalsePositiveProbability(10, 7);\n // MethodAssertGenerator build local variable\n Object o_10_0 = instance.getHashCount();\n instance = new com.clearspring.analytics.stream.membership.BloomFilter(10, 10);\n expResult = 0.00819;// m/n=10, k=7\n \n result = com.clearspring.analytics.stream.membership.BloomCalculations.getFalsePositiveProbability(10, 7);\n // MethodAssertGenerator build local variable\n Object o_19_0 = instance.getHashCount();\n instance = new com.clearspring.analytics.stream.membership.BloomFilter(10, 2);\n expResult = 0.393;// m/n=2, k=1\n \n result = com.clearspring.analytics.stream.membership.BloomCalculations.getFalsePositiveProbability(2, 1);\n // MethodAssertGenerator build local variable\n Object o_28_0 = instance.getHashCount();\n instance = new com.clearspring.analytics.stream.membership.BloomFilter(10, 11);\n expResult = 0.00509;// m/n=11, k=8\n \n result = com.clearspring.analytics.stream.membership.BloomCalculations.getFalsePositiveProbability(11, 8);\n // MethodAssertGenerator build local variable\n Object o_37_0 = instance.getHashCount();\n // StatementAddOnAssert local variable replacement\n com.clearspring.analytics.stream.membership.BloomFilter mergeBf = ((com.clearspring.analytics.stream.membership.BloomFilter) (bf2.merge(bf)));\n // AssertGenerator replace invocation\n int o_testGetFalsePositiveProbability_cf7643__42 = // StatementAdderMethod cloned existing statement\nmergeBf.emptyBuckets();\n // MethodAssertGenerator build local variable\n Object o_44_0 = o_testGetFalsePositiveProbability_cf7643__42;\n // StatementAdderOnAssert create null value\n java.lang.String vc_2194 = (java.lang.String)null;\n // StatementAdderOnAssert create null value\n com.clearspring.analytics.stream.membership.BloomFilter vc_2192 = (com.clearspring.analytics.stream.membership.BloomFilter)null;\n // StatementAdderMethod cloned existing statement\n vc_2192.add(vc_2194);\n org.junit.Assert.fail(\"testGetFalsePositiveProbability_cf7643_cf10382 should have thrown NullPointerException\");\n } catch (java.lang.NullPointerException eee) {\n }\n }", "title": "" }, { "docid": "2fef099118fccfe8227481d2ccacc0b2", "score": "0.59017116", "text": "@Test(timeout = 4000)\n public void test10() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double[] doubleArray0 = new double[7];\n doubleArray0[0] = (double) 69;\n Version.MINOR = 493;\n doubleArray0[1] = 1608.2289599268;\n doubleArray0[4] = (double) 69;\n doubleArray0[3] = (double) 69;\n doubleArray0[4] = (double) 69;\n doubleArray0[5] = (double) 69;\n doubleArray0[6] = (double) 69;\n evaluation0.updateNumericScores(doubleArray0, doubleArray0, 1.0);\n double[] doubleArray1 = new double[2];\n doubleArray1[1] = (double) 69;\n textDirectoryLoader0.getDataSet();\n Evaluation evaluation1 = new Evaluation(instances0);\n evaluation0.SFMeanPriorEntropy();\n RandomSubSpace randomSubSpace0 = new RandomSubSpace();\n String string0 = Evaluation.makeOptionString(randomSubSpace0, true);\n assertNotNull(string0);\n }", "title": "" }, { "docid": "8e3f64ec44f4bfe7154f95e374eef21c", "score": "0.5897023", "text": "@Test(timeout = 4000)\n public void test25() throws Throwable {\n Discretize discretize0 = new Discretize();\n discretize0.setIgnoreClass(true);\n String[] stringArray0 = discretize0.getOptions();\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertEquals(7, stringArray0.length);\n assertEquals(10, discretize0.getBins());\n }", "title": "" }, { "docid": "16c438cda8dc6b584d118f3877408d31", "score": "0.5885866", "text": "@Test(timeout = 4000)\n public void test28() throws Throwable {\n Discretize discretize0 = new Discretize();\n ArrayList<Attribute> arrayList0 = new ArrayList<Attribute>();\n Attribute attribute0 = new Attribute(\"\\\"position\\\"has unknown type\");\n arrayList0.add(attribute0);\n Instances instances0 = new Instances(\"date\", arrayList0, 2);\n discretize0.setInputFormat(instances0);\n discretize0.calculateCutPoints();\n discretize0.setOutputFormat();\n DenseInstance denseInstance0 = new DenseInstance(2);\n discretize0.input(denseInstance0);\n Random.setNextRandom(123);\n }", "title": "" }, { "docid": "b140cd2f7d3d362740702dccba2ae84d", "score": "0.58824503", "text": "@Test(timeout = 4000)\n public void test188() throws Throwable {\n ResultMatrixHTML resultMatrixHTML0 = new ResultMatrixHTML();\n ResultMatrixLatex.main((String[]) null);\n ResultMatrixCSV resultMatrixCSV0 = new ResultMatrixCSV(resultMatrixHTML0);\n int[][] intArray0 = new int[1][5];\n resultMatrixCSV0.setSummary(intArray0, intArray0);\n ResultMatrixPlainText.main((String[]) null);\n }", "title": "" }, { "docid": "1f0f4a4adae35f82163d6b589c7bfa63", "score": "0.5861187", "text": "@Test(timeout = 4000)\n public void test179() throws Throwable {\n ResultMatrixCSV resultMatrixCSV0 = new ResultMatrixCSV();\n resultMatrixCSV0.countWidthTipText();\n resultMatrixCSV0.m_ShowAverage = false;\n String[] stringArray0 = resultMatrixCSV0.getOptions();\n resultMatrixCSV0.isSignificance(352);\n ResultMatrixSignificance.main(stringArray0);\n assertEquals(25, resultMatrixCSV0.getRowNameWidth());\n assertEquals(2, resultMatrixCSV0.getMeanPrec());\n assertEquals(0, resultMatrixCSV0.getColNameWidth());\n assertEquals(0, resultMatrixCSV0.getCountWidth());\n }", "title": "" }, { "docid": "bc90dd8287d24db0509443bd8ce5753f", "score": "0.5856845", "text": "@Override\n public double getFeatureCoverage() {\n return featureCoverage_;\n }", "title": "" }, { "docid": "1343f846c3fe3f2e548733e74c18687e", "score": "0.58537054", "text": "@Test(timeout = 4000)\n public void test161() throws Throwable {\n ResultMatrixCSV resultMatrixCSV0 = new ResultMatrixCSV(0, 0);\n resultMatrixCSV0.doubleToString(0, 0);\n ResultMatrixHTML resultMatrixHTML0 = new ResultMatrixHTML(resultMatrixCSV0);\n resultMatrixHTML0.setStdDevPrec(1);\n Integer integer0 = new Integer(0);\n resultMatrixHTML0.getMeanPrec();\n int int0 = 2418;\n ResultMatrixLatex resultMatrixLatex0 = new ResultMatrixLatex(2418, 3149);\n }", "title": "" }, { "docid": "a360b976cbd509f311bd9a908463ab41", "score": "0.5853604", "text": "@Test\r\n public void testCalculateCropYield() {\r\n System.out.println(\"calculateCropYield\");\r\n \r\n // --- Test case 1 ---\r\n System.out.println(\"\\tTest case 1\");\r\n \r\n // define the input variables\r\n int offeringsPercentage = 0;\r\n int randomInt = 3;\r\n \r\n int expResult = 1; // define the exofferingsPercentagepected output variable\r\n \r\n // call the method\r\n int result = GameControl.calculateCropYield(offeringsPercentage, randomInt);\r\n \r\n // test to see if the result returned equals the expected result \r\n assertEquals(expResult, result);\r\n \r\n // --- Test case 2 ---\r\n System.out.println(\"\\tTest case 2\");\r\n \r\n // define the input variables\r\n offeringsPercentage = 5;\r\n randomInt = 4;\r\n \r\n expResult = 2; // define the exofferingsPercentagepected output variable\r\n \r\n // call the method\r\n result = GameControl.calculateCropYield(offeringsPercentage, randomInt);\r\n \r\n // test to see if the result returned equals the expected result \r\n assertEquals(expResult, result);\r\n \r\n // --- Test case 3 ---\r\n System.out.println(\"\\tTest case 3\");\r\n \r\n // define the input variables\r\n offeringsPercentage = 7;\r\n randomInt = 12;\r\n \r\n expResult = 3; // define the exofferingsPercentagepected output variable\r\n \r\n // call the method\r\n result = GameControl.calculateCropYield(offeringsPercentage, randomInt);\r\n \r\n // test to see if the result returned equals the expected result \r\n assertEquals(expResult, result);\r\n \r\n \r\n // --- Test case 4 ---\r\n System.out.println(\"\\tTest case 4\");\r\n \r\n // define the input variables\r\n offeringsPercentage = 8;\r\n randomInt = 0;\r\n \r\n expResult = 2; // define the exofferingsPercentagepected output variable\r\n \r\n // call the method\r\n result = GameControl.calculateCropYield(offeringsPercentage, randomInt);\r\n \r\n // test to see if the result returned equals the expected result \r\n assertEquals(expResult, result);\r\n \r\n // --- Test case 5 ---\r\n System.out.println(\"\\tTest case 5\");\r\n \r\n // define the input variables\r\n offeringsPercentage = 10;\r\n randomInt = 7;\r\n \r\n expResult = 3; // define the exofferingsPercentagepected output variable\r\n \r\n // call the method\r\n result = GameControl.calculateCropYield(offeringsPercentage, randomInt);\r\n \r\n // test to see if the result returned equals the expected result \r\n assertEquals(expResult, result);\r\n \r\n // --- Test case 6 ---\r\n System.out.println(\"\\tTest case 6\");\r\n \r\n // define the input variables\r\n offeringsPercentage = 12;\r\n randomInt = 8;\r\n \r\n expResult = 4; // define the exofferingsPercentagepected output variable\r\n \r\n // call the method\r\n result = GameControl.calculateCropYield(offeringsPercentage, randomInt);\r\n \r\n // test to see if the result returned equals the expected result \r\n assertEquals(expResult, result);\r\n \r\n // --- Test case 7 ---\r\n System.out.println(\"\\tTest case 7\");\r\n \r\n // define the input variables\r\n offeringsPercentage = 13;\r\n randomInt = 2;\r\n \r\n expResult = 2; // define the exofferingsPercentagepected output variable\r\n \r\n // call the method\r\n result = GameControl.calculateCropYield(offeringsPercentage, randomInt);\r\n \r\n // test to see if the result reurned equals the expected result \r\n assertEquals(expResult, result);\r\n \r\n // --- Test case 8 ---\r\n System.out.println(\"\\tTest case 8\");\r\n \r\n // define the input variables\r\n offeringsPercentage = 20;\r\n randomInt = 3;\r\n \r\n expResult = 3; // define the exofferingsPercentagepected output variable\r\n \r\n // call the method\r\n result = GameControl.calculateCropYield(offeringsPercentage, randomInt);\r\n \r\n // test to see if the result reurned equals the expected result \r\n assertEquals(expResult, result);\r\n \r\n // --- Test case 9 ---\r\n System.out.println(\"\\tTest case 9\");\r\n \r\n // define the input variables\r\n offeringsPercentage = 50;\r\n randomInt = 6;\r\n \r\n expResult = 4; // define the exofferingsPercentagepected output variable\r\n \r\n // call the method\r\n result = GameControl.calculateCropYield(offeringsPercentage, randomInt);\r\n \r\n // test to see if the result reurned equals the expected result \r\n assertEquals(expResult, result);\r\n \r\n // --- Test case 10 ---\r\n System.out.println(\"\\tTest case 10\");\r\n \r\n // define the input variables\r\n offeringsPercentage = 100;\r\n randomInt = 9;\r\n \r\n expResult = 5; // define the exofferingsPercentagepected output variable\r\n \r\n // call the method\r\n result = GameControl.calculateCropYield(offeringsPercentage, randomInt);\r\n \r\n // test to see if the result reurned equals the expected result \r\n assertEquals(expResult, result);\r\n \r\n // --- Test case 11 ---\r\n System.out.println(\"\\tTest case 11\");\r\n \r\n // define the input variables\r\n offeringsPercentage = -1;\r\n randomInt = 1;\r\n \r\n expResult = -1; // define the exofferingsPercentagepected output variable\r\n \r\n // call the method\r\n result = GameControl.calculateCropYield(offeringsPercentage, randomInt);\r\n \r\n // test to see if the result returned equals the expected result \r\n assertEquals(expResult, result);\r\n \r\n // --- Test case 12 ---\r\n System.out.println(\"\\tTest case 12\");\r\n \r\n // define the input variables\r\n offeringsPercentage = 4;\r\n randomInt = -1;\r\n \r\n expResult = -1; // define the exofferingsPercentagepected output variable\r\n \r\n // call the method\r\n result = GameControl.calculateCropYield(offeringsPercentage, randomInt);\r\n \r\n // test to see if the result returned equals the expected result \r\n assertEquals(expResult, result);\r\n \r\n // --- Test case 13 ---\r\n System.out.println(\"\\tTest case 13\");\r\n \r\n // define the input variables\r\n offeringsPercentage = 101;\r\n randomInt = 11;\r\n \r\n expResult = -1; // define the exofferingsPercentagepected output variable\r\n \r\n // call the method\r\n result = GameControl.calculateCropYield(offeringsPercentage, randomInt);\r\n \r\n // test to see if the result returned equals the expected result \r\n assertEquals(expResult, result);\r\n \r\n \r\n // --- Test case 14 ---\r\n System.out.println(\"\\tTest case 14\");\r\n \r\n // define the input variables\r\n offeringsPercentage = 11;\r\n randomInt = 13;\r\n \r\n expResult = -1; // define the exofferingsPercentagepected output variable\r\n \r\n // call the method\r\n result = GameControl.calculateCropYield(offeringsPercentage, randomInt);\r\n \r\n // test to see if the result returned equals the expected result \r\n assertEquals(expResult, result);\r\n \r\n // --- Test case 15 ---\r\n System.out.println(\"\\tTest case 15\");\r\n \r\n // define the input variables\r\n offeringsPercentage = 14;\r\n randomInt = 0;\r\n \r\n expResult = 2; // define the exofferingsPercentagepected output variable\r\n \r\n // call the method\r\n result = GameControl.calculateCropYield(offeringsPercentage, randomInt);\r\n \r\n // test to see if the result returned equals the expected result \r\n assertEquals(expResult, result);\r\n \r\n // --- Test case 16 ---\r\n System.out.println(\"\\tTest case 16\");\r\n \r\n // define the input variables\r\n offeringsPercentage = 15;\r\n randomInt = 5;\r\n \r\n expResult = 3; // define the exofferingsPercentagepected output variable\r\n \r\n // call the method\r\n result = GameControl.calculateCropYield(offeringsPercentage, randomInt);\r\n \r\n // test to see if the result returned equals the expected result \r\n assertEquals(expResult, result);\r\n \r\n // --- Test case 17 ---\r\n System.out.println(\"\\tTest case 17\");\r\n \r\n // define the input variables\r\n offeringsPercentage = 16;\r\n randomInt = 8;\r\n \r\n expResult = 4; // define the exofferingsPercentagepected output variable\r\n \r\n // call the method\r\n result = GameControl.calculateCropYield(offeringsPercentage, randomInt);\r\n \r\n // test to see if the result reurned equals the expected result \r\n assertEquals(expResult, result);\r\n \r\n // --- Test case 18 ---\r\n System.out.println(\"\\tTest case 18\");\r\n \r\n // define the input variables\r\n offeringsPercentage = 17;\r\n randomInt = 11;\r\n \r\n expResult = 5; // define the exofferingsPercentagepected output variable\r\n \r\n // call the method\r\n result = GameControl.calculateCropYield(offeringsPercentage, randomInt);\r\n \r\n // test to see if the result reurned equals the expected result \r\n assertEquals(expResult, result);\r\n \r\n // --- Test case 19 ---\r\n System.out.println(\"\\tTest case 19\");\r\n \r\n // define the input variables\r\n offeringsPercentage = 18;\r\n randomInt = 12;\r\n \r\n expResult = 5; // define the exofferingsPercentagepected output variable\r\n \r\n // call the method\r\n result = GameControl.calculateCropYield(offeringsPercentage, randomInt);\r\n \r\n // test to see if the result reurned equals the expected result \r\n assertEquals(expResult, result);\r\n }", "title": "" }, { "docid": "d5b2bedb3b169ac4bf6eb3651dbccb8e", "score": "0.58483946", "text": "@Test(timeout = 4000)\n public void test35() throws Throwable {\n Discretize discretize0 = new Discretize();\n String[] stringArray0 = new String[6];\n ArrayList<Attribute> arrayList0 = new ArrayList<Attribute>();\n SystemInUtil.addInputLine(\".ycf\");\n Attribute attribute0 = new Attribute(\".ycf\", 62);\n arrayList0.add(attribute0);\n Instances instances0 = new Instances(\") can't be established.\", arrayList0, 4);\n discretize0.setInputFormat(instances0);\n discretize0.m_DesiredWeightOfInstancesPerInterval = 0.1111111111111111;\n stringArray0[0] = \") can't be established.\";\n stringArray0[1] = \") can't be established.\";\n // Undeclared exception!\n try { \n discretize0.calculateCutPointsByEqualFrequencyBinning(0);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"weka.filters.unsupervised.attribute.Discretize\", e);\n }\n }", "title": "" }, { "docid": "dda16844e248a0d8967521da44150a73", "score": "0.5843595", "text": "@Test\n void counterattackTest();", "title": "" }, { "docid": "e6f646ef83ee2a06140af08ae5063108", "score": "0.5839988", "text": "@Test\n\tpublic void testSingleCrossingScenarioStabilizingVsOptimizingRegimeLowDemand(){\n\t\tFixture fixtureStab = new Fixture(360, 1440, 0.0, Regime.STABILIZING);\n\t\tSignalAnalysisTool signalAnalyzerStab = new SignalAnalysisTool();\n\t\tDelayAnalysisTool generalAnalyzerStab = fixtureStab.run(signalAnalyzerStab);\n\n\t\tFixture fixtureOpt = new Fixture(360, 1440, 0.0, Regime.OPTIMIZING);\n\t\tSignalAnalysisTool signalAnalyzerOpt = new SignalAnalysisTool();\n\t\tDelayAnalysisTool generalAnalyzerOpt = fixtureOpt.run(signalAnalyzerOpt);\n\n\t\tFixture fixtureComb = new Fixture(360, 1440, 0.0, Regime.COMBINED);\n\t\tSignalAnalysisTool signalAnalyzerComb = new SignalAnalysisTool();\n\t\tDelayAnalysisTool generalAnalyzerComb = fixtureComb.run(signalAnalyzerComb);\n\t\t\n\t\tMap<Id<SignalGroup>, Double> avgSignalGreenTimePerCycleStab = signalAnalyzerStab.calculateAvgSignalGreenTimePerFlexibleCycle(); \n\t\tMap<Id<SignalSystem>, Double> avgCycleTimePerSystemStab = signalAnalyzerStab.calculateAvgFlexibleCycleTimePerSignalSystem(); \n\t\tMap<Id<Link>, Double> avgDelayPerLinkStab = generalAnalyzerStab.getAvgDelayPerLink();\n\t\t\n\t\tlog.info(\"demand 360,1440 (i.e. 0.5) -- results for the stabilizing regime:\");\n\t\tlog.info(\"avg signal green times per cycle: \" + avgSignalGreenTimePerCycleStab.get(signalGroupId1) + \", \"\n\t\t\t\t+ avgSignalGreenTimePerCycleStab.get(signalGroupId2));\n\t\tlog.info(\"avg cycle time per system: \" + avgCycleTimePerSystemStab.get(signalSystemId));\n\t\tlog.info(\"avg delay per link: \" + avgDelayPerLinkStab.get(Id.createLinkId(\"2_3\")) + \", \" + avgDelayPerLinkStab.get(Id.createLinkId(\"7_3\")));\n\t\tlog.info(\"Total delay: \" + generalAnalyzerStab.getTotalDelay());\n\t\t\n\t\tMap<Id<SignalGroup>, Double> avgSignalGreenTimePerCycleOpt = signalAnalyzerOpt.calculateAvgSignalGreenTimePerFlexibleCycle(); \n\t\tMap<Id<SignalSystem>, Double> avgCycleTimePerSystemOpt = signalAnalyzerOpt.calculateAvgFlexibleCycleTimePerSignalSystem(); \n\t\tMap<Id<Link>, Double> avgDelayPerLinkOpt = generalAnalyzerOpt.getAvgDelayPerLink();\n\t\t\n\t\tlog.info(\"demand 360,1440 (i.e. 0.5) -- results for the optimizing regime:\");\n\t\tlog.info(\"avg signal green times per cycle: \" + avgSignalGreenTimePerCycleOpt.get(signalGroupId1) + \", \"\n\t\t\t\t+ avgSignalGreenTimePerCycleOpt.get(signalGroupId2));\n\t\tlog.info(\"avg cycle time per system: \" + avgCycleTimePerSystemOpt.get(signalSystemId));\n\t\tlog.info(\"avg delay per link: \" + avgDelayPerLinkOpt.get(Id.createLinkId(\"2_3\")) + \", \" + avgDelayPerLinkOpt.get(Id.createLinkId(\"7_3\")));\n\t\tlog.info(\"Total delay: \" + generalAnalyzerOpt.getTotalDelay());\n\t\t\n\t\tMap<Id<SignalGroup>, Double> avgSignalGreenTimePerCycleComb = signalAnalyzerComb.calculateAvgSignalGreenTimePerFlexibleCycle(); \n\t\tMap<Id<SignalSystem>, Double> avgCycleTimePerSystemComb = signalAnalyzerComb.calculateAvgFlexibleCycleTimePerSignalSystem(); \n\t\tMap<Id<Link>, Double> avgDelayPerLinkComb = generalAnalyzerComb.getAvgDelayPerLink();\n\t\t\n\t\tlog.info(\"demand 360,1440 (i.e. 0.5) -- results for the combined regime:\");\n\t\tlog.info(\"avg signal green times per cycle: \" + avgSignalGreenTimePerCycleComb.get(signalGroupId1) + \", \"\n\t\t\t\t+ avgSignalGreenTimePerCycleComb.get(signalGroupId2));\n\t\tlog.info(\"avg cycle time per system: \" + avgCycleTimePerSystemComb.get(signalSystemId));\n\t\tlog.info(\"avg delay per link: \" + avgDelayPerLinkComb.get(Id.createLinkId(\"2_3\")) + \", \" + avgDelayPerLinkComb.get(Id.createLinkId(\"7_3\")));\n\t\tlog.info(\"Total delay: \" + generalAnalyzerComb.getTotalDelay());\n\t\t\n\t\t// Test Stabilizing Regime:\n\t\tfor (Id<Link> linkId : avgDelayPerLinkStab.keySet()) {\n\t\t\tAssert.assertTrue(\"stab: avg delay per link should be below a threshold (i.e. still stable)\", avgDelayPerLinkStab.get(linkId) < maxCycleTime);\n\t\t}\n\t\tAssert.assertTrue(\"stab: total delay should be higher than for the other regimes\", generalAnalyzerStab.getTotalDelay() > generalAnalyzerOpt.getTotalDelay());\n\t\tAssert.assertTrue(\"stab: total delay should be higher than for the other regimes\", generalAnalyzerStab.getTotalDelay() > generalAnalyzerComb.getTotalDelay());\n\t\tAssert.assertTrue(\"the stabilizing regime should satisfy the maximum cycle time\", avgCycleTimePerSystemStab.get(signalSystemId) < maxCycleTime);\n\t\t// stabilizing regime only shows green when number of vehicles beyond a critical number, i.e. some of the cycle time is given away (all signals show red)\n\t\tAssert.assertTrue(\"stab: sum of green times per cycle plus 10 seconds intergreen time should be more than 10 seconds less than the avg cycle time\", \n\t\t\t\tavgSignalGreenTimePerCycleStab.get(signalGroupId1) + avgSignalGreenTimePerCycleStab.get(signalGroupId2) + cycleIntergreenTime \n\t\t\t\t< avgCycleTimePerSystemStab.get(signalSystemId) - 10);\n\t\t\n\t\t// Test Optimizing Regime:\n\t\tfor (Id<Link> linkId : avgDelayPerLinkOpt.keySet()) {\n\t\t\tAssert.assertTrue(\"opt: avg delay per link should be below a threshold (i.e. still stable)\", avgDelayPerLinkOpt.get(linkId) < maxCycleTime);\n\t\t}\n\t\tAssert.assertEquals(\"sum of green times per cycle plus 10 seconds intergreen time should be more or less equal to the avg cycle time\", \n\t\t\t\tavgCycleTimePerSystemOpt.get(signalSystemId), \n\t\t\t\tavgSignalGreenTimePerCycleOpt.get(signalGroupId1) + avgSignalGreenTimePerCycleOpt.get(signalGroupId2) + cycleIntergreenTime, \n\t\t\t\t2);\n\t\tAssert.assertTrue(\"for this demand, the cycle time of the optimizing regime should be still reasonable, i.e. below a threshold\", \n\t\t\t\tavgCycleTimePerSystemOpt.get(signalSystemId) < maxCycleTime);\n\t\t\n\t\t// Test Combined Regime:\n\t\tfor (Id<Link> linkId : avgDelayPerLinkComb.keySet()) {\n\t\t\tAssert.assertTrue(\"avg delay per link should be below a threshold (i.e. still stable)\", avgDelayPerLinkComb.get(linkId) < maxCycleTime);\n\t\t}\n\t\tAssert.assertEquals(\"comb: sum of green times per cycle plus 10 seconds intergreen time should be more or less equal to the avg cycle time\", \n\t\t\t\tavgCycleTimePerSystemComb.get(signalSystemId), \n\t\t\t\tavgSignalGreenTimePerCycleComb.get(signalGroupId1) + avgSignalGreenTimePerCycleComb.get(signalGroupId2) + cycleIntergreenTime, \n\t\t\t\t2);\n\t\tAssert.assertTrue(\"the combined regime should satisfy the maximum cycle time\", avgCycleTimePerSystemComb.get(signalSystemId) < maxCycleTime);\n\t\tAssert.assertTrue(\"total delay with the combined regime should be the lowest\", generalAnalyzerOpt.getTotalDelay() > generalAnalyzerComb.getTotalDelay());\n\t}", "title": "" }, { "docid": "7500cd798505e88fe8c490511bb5406b", "score": "0.58383787", "text": "@Test\n\tpublic void testSingleCrossingScenarioStabilizingVsOptimizingRegimeHighDemand(){\n\t\tFixture fixtureStab = new Fixture(360, 1800, 0.0, Regime.STABILIZING);\n\t\tSignalAnalysisTool signalAnalyzerStab = new SignalAnalysisTool();\n\t\tDelayAnalysisTool generalAnalyzerStab = fixtureStab.run(signalAnalyzerStab);\n\n\t\tFixture fixtureOpt = new Fixture(360, 1800, 0.0, Regime.OPTIMIZING);\n\t\tSignalAnalysisTool signalAnalyzerOpt = new SignalAnalysisTool();\n\t\tDelayAnalysisTool generalAnalyzerOpt = fixtureOpt.run(signalAnalyzerOpt);\n\n\t\tFixture fixtureComb = new Fixture(360, 1800, 0.0, Regime.COMBINED);\n\t\tSignalAnalysisTool signalAnalyzerComb = new SignalAnalysisTool();\n\t\tDelayAnalysisTool generalAnalyzerComb = fixtureComb.run(signalAnalyzerComb);\n\t\t\n\t\tMap<Id<SignalGroup>, Double> avgSignalGreenTimePerCycleStab = signalAnalyzerStab.calculateAvgSignalGreenTimePerFlexibleCycle(); \n\t\tMap<Id<SignalSystem>, Double> avgCycleTimePerSystemStab = signalAnalyzerStab.calculateAvgFlexibleCycleTimePerSignalSystem(); \n\t\tMap<Id<Link>, Double> avgDelayPerLinkStab = generalAnalyzerStab.getAvgDelayPerLink();\n\t\t\n\t\tlog.info(\"demand 360,1800 (i.e. 0.6) -- results for the stabilizing regime:\");\n\t\tlog.info(\"avg signal green times per cycle: \" + avgSignalGreenTimePerCycleStab.get(signalGroupId1) + \", \"\n\t\t\t\t+ avgSignalGreenTimePerCycleStab.get(signalGroupId2));\n\t\tlog.info(\"avg cycle time per system: \" + avgCycleTimePerSystemStab.get(signalSystemId));\n\t\tlog.info(\"avg delay per link: \" + avgDelayPerLinkStab.get(Id.createLinkId(\"2_3\")) + \", \" + avgDelayPerLinkStab.get(Id.createLinkId(\"7_3\")));\n\t\tlog.info(\"Total delay: \" + generalAnalyzerStab.getTotalDelay());\n\t\t\n\t\tMap<Id<SignalGroup>, Double> avgSignalGreenTimePerCycleOpt = signalAnalyzerOpt.calculateAvgSignalGreenTimePerFlexibleCycle(); \n\t\tMap<Id<SignalSystem>, Double> avgCycleTimePerSystemOpt = signalAnalyzerOpt.calculateAvgFlexibleCycleTimePerSignalSystem(); \n\t\tMap<Id<Link>, Double> avgDelayPerLinkOpt = generalAnalyzerOpt.getAvgDelayPerLink();\n\t\t\n\t\tlog.info(\"demand 360,1800 (i.e. 0.6) -- results for the optimizing regime:\");\n\t\tlog.info(\"avg signal green times per cycle: \" + avgSignalGreenTimePerCycleOpt.get(signalGroupId1) + \", \"\n\t\t\t\t+ avgSignalGreenTimePerCycleOpt.get(signalGroupId2));\n\t\tlog.info(\"avg cycle time per system: \" + avgCycleTimePerSystemOpt.get(signalSystemId));\n\t\tlog.info(\"avg delay per link: \" + avgDelayPerLinkOpt.get(Id.createLinkId(\"2_3\")) + \", \" + avgDelayPerLinkOpt.get(Id.createLinkId(\"7_3\")));\n\t\tlog.info(\"Total delay: \" + generalAnalyzerOpt.getTotalDelay());\n\t\t\n\t\tMap<Id<SignalGroup>, Double> avgSignalGreenTimePerCycleComb = signalAnalyzerComb.calculateAvgSignalGreenTimePerFlexibleCycle(); \n\t\tMap<Id<SignalSystem>, Double> avgCycleTimePerSystemComb = signalAnalyzerComb.calculateAvgFlexibleCycleTimePerSignalSystem(); \n\t\tMap<Id<Link>, Double> avgDelayPerLinkComb = generalAnalyzerComb.getAvgDelayPerLink();\n\t\t\n\t\tlog.info(\"demand 360,1800 (i.e. 0.6) -- results for the combined regime:\");\n\t\tlog.info(\"avg signal green times per cycle: \" + avgSignalGreenTimePerCycleComb.get(signalGroupId1) + \", \"\n\t\t\t\t+ avgSignalGreenTimePerCycleComb.get(signalGroupId2));\n\t\tlog.info(\"avg cycle time per system: \" + avgCycleTimePerSystemComb.get(signalSystemId));\n\t\tlog.info(\"avg delay per link: \" + avgDelayPerLinkComb.get(Id.createLinkId(\"2_3\")) + \", \" + avgDelayPerLinkComb.get(Id.createLinkId(\"7_3\")));\n\t\tlog.info(\"Total delay: \" + generalAnalyzerComb.getTotalDelay());\n\t\t\n\t\t// Test Stabilizing Regime:\n\t\tfor (Id<Link> linkId : avgDelayPerLinkStab.keySet()) {\n\t\t\tAssert.assertTrue(\"stab: avg delay per link should be below a threshold (i.e. still stable)\", avgDelayPerLinkStab.get(linkId) < maxCycleTime);\n\t\t}\n\t\tAssert.assertTrue(\"the stabilizing regime should satisfy the maximum cycle time\", avgCycleTimePerSystemStab.get(signalSystemId) < maxCycleTime);\n\t\t// stabilizing regime only shows green when number of vehicles beyond a critical number, i.e. some of the cycle time is given away (all signals show red)\n\t\tAssert.assertTrue(\"stab: sum of green times per cycle plus 10 seconds intergreen time should be more than 9 seconds less than the avg cycle time\", \n\t\t\t\tavgSignalGreenTimePerCycleStab.get(signalGroupId1) + avgSignalGreenTimePerCycleStab.get(signalGroupId2) + cycleIntergreenTime \n\t\t\t\t< avgCycleTimePerSystemStab.get(signalSystemId) - 9);\n\t\t\n\t\t// Test Optimizing Regime:\n\t\tAssert.assertTrue(\"avg delay for NS-direction should be very high for the optimizing regime with high demand\", avgDelayPerLinkOpt.get(Id.createLinkId(\"7_3\")) > maxCycleTime);\n\t\tAssert.assertTrue(\"total delay of optimizing regime should be the highest\", generalAnalyzerStab.getTotalDelay() < generalAnalyzerOpt.getTotalDelay());\n\t\tAssert.assertTrue(\"for this demand, the cycle time of the optimizing regime should be very high, i.e. not stable anymore\", \n\t\t\t\tavgCycleTimePerSystemOpt.get(signalSystemId) > 10*maxCycleTime);\n\t\t\n\t\t// Test Combined Regime:\n\t\tfor (Id<Link> linkId : avgDelayPerLinkComb.keySet()) {\n\t\t\tAssert.assertTrue(\"avg delay per link should be below a threshold (i.e. still stable)\", avgDelayPerLinkComb.get(linkId) < maxCycleTime);\n\t\t}\n\t\tAssert.assertEquals(\"comb: sum of green times per cycle plus 10 seconds intergreen time should be more or less equal to the avg cycle time\", \n\t\t\t\tavgCycleTimePerSystemComb.get(signalSystemId), \n\t\t\t\tavgSignalGreenTimePerCycleComb.get(signalGroupId1) + avgSignalGreenTimePerCycleComb.get(signalGroupId2) + cycleIntergreenTime, \n\t\t\t\t2);\n\t\tAssert.assertTrue(\"the combined regime should satisfy the maximum cycle time\", avgCycleTimePerSystemComb.get(signalSystemId) < maxCycleTime);\n\t\tAssert.assertTrue(\"total delay with the combined regime should be the lowest\", generalAnalyzerOpt.getTotalDelay() > generalAnalyzerComb.getTotalDelay());\n\t\tAssert.assertTrue(\"total delay with the combined regime should be the lowest\", generalAnalyzerStab.getTotalDelay() > generalAnalyzerComb.getTotalDelay());\n\t}", "title": "" }, { "docid": "3354ad0d6d1197be15430a0597436004", "score": "0.58353186", "text": "@Test\n public void testFlesch_kincaid_reading_ease() {\n System.out.println(\"flesch_kincaid_reading_ease\");\n String strText = TEST_STRING;\n double expResult = -188.4;\n double result = ReadabilityStatistics.flesch_kincaid_reading_ease(strText);\n assertEquals(expResult, result, TestConfiguration.DOUBLE_ACCURACY_HIGH);\n }", "title": "" }, { "docid": "c69fd97c37276f78ddcee4204fc29811", "score": "0.5834863", "text": "@Test(timeout = 4000)\n public void test01() throws Throwable {\n Discretize discretize0 = new Discretize();\n String string0 = discretize0.useBinNumbersTipText();\n assertEquals(\"Use bin numbers (eg BXofY) rather than ranges for for discretized attributes\", string0);\n assertFalse(discretize0.getUseEqualFrequency());\n assertFalse(discretize0.getFindNumBins());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertFalse(discretize0.getUseBinNumbers());\n assertEquals(10, discretize0.getBins());\n assertFalse(discretize0.getMakeBinary());\n }", "title": "" }, { "docid": "bdb5b0639e1686164b38eb1e43fa085a", "score": "0.5834017", "text": "@Test\n public void testQuant(){\n double val = 45.25;\n int numLev = 1;\n double lowerBound = 0;\n double upperBound = 360;\n\n int res = quantize(val,numLev,lowerBound,upperBound);\n System.out.println(res);\n //Assert.assertEquals(11,res);\n }", "title": "" }, { "docid": "da156db69936fa163d178dd4139cf36d", "score": "0.58321506", "text": "@Test(timeout = 4000)\n public void test096() throws Throwable {\n ResultMatrixLatex resultMatrixLatex0 = new ResultMatrixLatex();\n assertNotNull(resultMatrixLatex0);\n assertTrue(resultMatrixLatex0.getEnumerateColNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex0.significanceWidthTipText());\n assertTrue(resultMatrixLatex0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex0.stdDevWidthTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex0.removeFilterNameTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex0.stdDevPrecTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultMeanWidth());\n assertEquals(2, resultMatrixLatex0.getStdDevPrec());\n assertEquals(0, resultMatrixLatex0.getColNameWidth());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex0.meanWidthTipText());\n assertEquals(0, resultMatrixLatex0.getMeanWidth());\n assertEquals(\"LaTeX\", resultMatrixLatex0.getDisplayName());\n assertTrue(resultMatrixLatex0.getDefaultPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex0.showStdDevTipText());\n assertFalse(resultMatrixLatex0.getShowStdDev());\n assertEquals(0, resultMatrixLatex0.getRowNameWidth());\n assertEquals(1, resultMatrixLatex0.getColCount());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex0.printRowNamesTipText());\n assertFalse(resultMatrixLatex0.getDefaultShowStdDev());\n assertFalse(resultMatrixLatex0.getEnumerateRowNames());\n assertFalse(resultMatrixLatex0.getRemoveFilterName());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex0.meanPrecTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex0.showAverageTipText());\n assertFalse(resultMatrixLatex0.getShowAverage());\n assertEquals(0, resultMatrixLatex0.getDefaultCountWidth());\n assertEquals(1, resultMatrixLatex0.getRowCount());\n assertEquals(2, resultMatrixLatex0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixLatex0.getStdDevWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex0.colNameWidthTipText());\n assertEquals(1, resultMatrixLatex0.getVisibleRowCount());\n assertEquals(0, resultMatrixLatex0.getDefaultRowNameWidth());\n assertFalse(resultMatrixLatex0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixLatex0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixLatex0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixLatex0.getDefaultColNameWidth());\n assertFalse(resultMatrixLatex0.getDefaultShowAverage());\n assertEquals(2, resultMatrixLatex0.getMeanPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex0.rowNameWidthTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateRowNamesTipText());\n assertEquals(1, resultMatrixLatex0.getVisibleColCount());\n assertEquals(0, resultMatrixLatex0.getCountWidth());\n assertEquals(0, resultMatrixLatex0.getSignificanceWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateColNamesTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex0.printColNamesTipText());\n assertFalse(resultMatrixLatex0.getPrintColNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex0.countWidthTipText());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex0.globalInfo());\n assertEquals(0, resultMatrixLatex0.getDefaultStdDevWidth());\n assertTrue(resultMatrixLatex0.getPrintRowNames());\n assertFalse(resultMatrixLatex0.getDefaultPrintColNames());\n assertEquals(2, resultMatrixLatex0.getDefaultMeanPrec());\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n \n String string0 = resultMatrixLatex0.toStringRanking();\n assertNotNull(string0);\n assertTrue(resultMatrixLatex0.getEnumerateColNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex0.significanceWidthTipText());\n assertTrue(resultMatrixLatex0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex0.stdDevWidthTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex0.removeFilterNameTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex0.stdDevPrecTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultMeanWidth());\n assertEquals(2, resultMatrixLatex0.getStdDevPrec());\n assertEquals(0, resultMatrixLatex0.getColNameWidth());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex0.meanWidthTipText());\n assertEquals(0, resultMatrixLatex0.getMeanWidth());\n assertEquals(\"LaTeX\", resultMatrixLatex0.getDisplayName());\n assertTrue(resultMatrixLatex0.getDefaultPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex0.showStdDevTipText());\n assertFalse(resultMatrixLatex0.getShowStdDev());\n assertEquals(0, resultMatrixLatex0.getRowNameWidth());\n assertEquals(1, resultMatrixLatex0.getColCount());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex0.printRowNamesTipText());\n assertFalse(resultMatrixLatex0.getDefaultShowStdDev());\n assertFalse(resultMatrixLatex0.getEnumerateRowNames());\n assertFalse(resultMatrixLatex0.getRemoveFilterName());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex0.meanPrecTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex0.showAverageTipText());\n assertFalse(resultMatrixLatex0.getShowAverage());\n assertEquals(0, resultMatrixLatex0.getDefaultCountWidth());\n assertEquals(1, resultMatrixLatex0.getRowCount());\n assertEquals(2, resultMatrixLatex0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixLatex0.getStdDevWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex0.colNameWidthTipText());\n assertEquals(1, resultMatrixLatex0.getVisibleRowCount());\n assertEquals(0, resultMatrixLatex0.getDefaultRowNameWidth());\n assertFalse(resultMatrixLatex0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixLatex0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixLatex0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixLatex0.getDefaultColNameWidth());\n assertFalse(resultMatrixLatex0.getDefaultShowAverage());\n assertEquals(2, resultMatrixLatex0.getMeanPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex0.rowNameWidthTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateRowNamesTipText());\n assertEquals(1, resultMatrixLatex0.getVisibleColCount());\n assertEquals(0, resultMatrixLatex0.getCountWidth());\n assertEquals(0, resultMatrixLatex0.getSignificanceWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateColNamesTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex0.printColNamesTipText());\n assertFalse(resultMatrixLatex0.getPrintColNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex0.countWidthTipText());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex0.globalInfo());\n assertEquals(0, resultMatrixLatex0.getDefaultStdDevWidth());\n assertTrue(resultMatrixLatex0.getPrintRowNames());\n assertFalse(resultMatrixLatex0.getDefaultPrintColNames());\n assertEquals(2, resultMatrixLatex0.getDefaultMeanPrec());\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(\"-ranking data not set-\", string0);\n \n String[] stringArray0 = new String[8];\n stringArray0[0] = \"(\";\n stringArray0[1] = \"(\";\n stringArray0[2] = \" \";\n ResultMatrixHTML.main(stringArray0);\n assertEquals(8, stringArray0.length);\n \n ResultMatrixLatex resultMatrixLatex1 = new ResultMatrixLatex();\n assertNotNull(resultMatrixLatex1);\n assertEquals(0, resultMatrixLatex1.getDefaultCountWidth());\n assertEquals(2, resultMatrixLatex1.getMeanPrec());\n assertEquals(0, resultMatrixLatex1.getRowNameWidth());\n assertFalse(resultMatrixLatex1.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixLatex1.getDefaultShowAverage());\n assertFalse(resultMatrixLatex1.getPrintColNames());\n assertFalse(resultMatrixLatex1.getEnumerateRowNames());\n assertEquals(1, resultMatrixLatex1.getRowCount());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex1.globalInfo());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex1.stdDevWidthTipText());\n assertFalse(resultMatrixLatex1.getDefaultRemoveFilterName());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex1.countWidthTipText());\n assertEquals(1, resultMatrixLatex1.getVisibleRowCount());\n assertFalse(resultMatrixLatex1.getDefaultShowStdDev());\n assertEquals(2, resultMatrixLatex1.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex1.meanWidthTipText());\n assertEquals(0, resultMatrixLatex1.getDefaultSignificanceWidth());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex1.printRowNamesTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex1.enumerateRowNamesTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex1.showStdDevTipText());\n assertTrue(resultMatrixLatex1.getDefaultPrintRowNames());\n assertEquals(1, resultMatrixLatex1.getColCount());\n assertEquals(0, resultMatrixLatex1.getDefaultMeanWidth());\n assertEquals(0, resultMatrixLatex1.getDefaultColNameWidth());\n assertEquals(0, resultMatrixLatex1.getDefaultStdDevWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex1.enumerateColNamesTipText());\n assertEquals(0, resultMatrixLatex1.getCountWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex1.printColNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex1.removeFilterNameTipText());\n assertFalse(resultMatrixLatex1.getRemoveFilterName());\n assertTrue(resultMatrixLatex1.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex1.showAverageTipText());\n assertTrue(resultMatrixLatex1.getEnumerateColNames());\n assertEquals(1, resultMatrixLatex1.getVisibleColCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex1.meanPrecTipText());\n assertEquals(2, resultMatrixLatex1.getDefaultMeanPrec());\n assertEquals(0, resultMatrixLatex1.getStdDevWidth());\n assertEquals(2, resultMatrixLatex1.getDefaultStdDevPrec());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex1.colNameWidthTipText());\n assertFalse(resultMatrixLatex1.getDefaultPrintColNames());\n assertTrue(resultMatrixLatex1.getDefaultEnumerateColNames());\n assertFalse(resultMatrixLatex1.getShowAverage());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex1.rowNameWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex1.significanceWidthTipText());\n assertFalse(resultMatrixLatex1.getShowStdDev());\n assertEquals(0, resultMatrixLatex1.getSignificanceWidth());\n assertEquals(0, resultMatrixLatex1.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixLatex1.getMeanWidth());\n assertEquals(\"LaTeX\", resultMatrixLatex1.getDisplayName());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex1.stdDevPrecTipText());\n assertEquals(0, resultMatrixLatex1.getColNameWidth());\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertFalse(resultMatrixLatex1.equals((Object)resultMatrixLatex0));\n \n resultMatrixLatex1.setStdDev(3685, 1, 2);\n assertNotSame(resultMatrixLatex1, resultMatrixLatex0);\n assertEquals(0, resultMatrixLatex1.getDefaultCountWidth());\n assertEquals(2, resultMatrixLatex1.getMeanPrec());\n assertEquals(0, resultMatrixLatex1.getRowNameWidth());\n assertFalse(resultMatrixLatex1.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixLatex1.getDefaultShowAverage());\n assertFalse(resultMatrixLatex1.getPrintColNames());\n assertFalse(resultMatrixLatex1.getEnumerateRowNames());\n assertEquals(1, resultMatrixLatex1.getRowCount());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex1.globalInfo());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex1.stdDevWidthTipText());\n assertFalse(resultMatrixLatex1.getDefaultRemoveFilterName());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex1.countWidthTipText());\n assertEquals(1, resultMatrixLatex1.getVisibleRowCount());\n assertFalse(resultMatrixLatex1.getDefaultShowStdDev());\n assertEquals(2, resultMatrixLatex1.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex1.meanWidthTipText());\n assertEquals(0, resultMatrixLatex1.getDefaultSignificanceWidth());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex1.printRowNamesTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex1.enumerateRowNamesTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex1.showStdDevTipText());\n assertTrue(resultMatrixLatex1.getDefaultPrintRowNames());\n assertEquals(1, resultMatrixLatex1.getColCount());\n assertEquals(0, resultMatrixLatex1.getDefaultMeanWidth());\n assertEquals(0, resultMatrixLatex1.getDefaultColNameWidth());\n assertEquals(0, resultMatrixLatex1.getDefaultStdDevWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex1.enumerateColNamesTipText());\n assertEquals(0, resultMatrixLatex1.getCountWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex1.printColNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex1.removeFilterNameTipText());\n assertFalse(resultMatrixLatex1.getRemoveFilterName());\n assertTrue(resultMatrixLatex1.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex1.showAverageTipText());\n assertTrue(resultMatrixLatex1.getEnumerateColNames());\n assertEquals(1, resultMatrixLatex1.getVisibleColCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex1.meanPrecTipText());\n assertEquals(2, resultMatrixLatex1.getDefaultMeanPrec());\n assertEquals(0, resultMatrixLatex1.getStdDevWidth());\n assertEquals(2, resultMatrixLatex1.getDefaultStdDevPrec());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex1.colNameWidthTipText());\n assertFalse(resultMatrixLatex1.getDefaultPrintColNames());\n assertTrue(resultMatrixLatex1.getDefaultEnumerateColNames());\n assertFalse(resultMatrixLatex1.getShowAverage());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex1.rowNameWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex1.significanceWidthTipText());\n assertFalse(resultMatrixLatex1.getShowStdDev());\n assertEquals(0, resultMatrixLatex1.getSignificanceWidth());\n assertEquals(0, resultMatrixLatex1.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixLatex1.getMeanWidth());\n assertEquals(\"LaTeX\", resultMatrixLatex1.getDisplayName());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex1.stdDevPrecTipText());\n assertEquals(0, resultMatrixLatex1.getColNameWidth());\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertFalse(resultMatrixLatex1.equals((Object)resultMatrixLatex0));\n \n int[] intArray0 = new int[1];\n intArray0[0] = 0;\n double double0 = resultMatrixLatex0.getMean(0, 1);\n assertNotSame(resultMatrixLatex0, resultMatrixLatex1);\n assertTrue(resultMatrixLatex0.getEnumerateColNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex0.significanceWidthTipText());\n assertTrue(resultMatrixLatex0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex0.stdDevWidthTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex0.removeFilterNameTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex0.stdDevPrecTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultMeanWidth());\n assertEquals(2, resultMatrixLatex0.getStdDevPrec());\n assertEquals(0, resultMatrixLatex0.getColNameWidth());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex0.meanWidthTipText());\n assertEquals(0, resultMatrixLatex0.getMeanWidth());\n assertEquals(\"LaTeX\", resultMatrixLatex0.getDisplayName());\n assertTrue(resultMatrixLatex0.getDefaultPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex0.showStdDevTipText());\n assertFalse(resultMatrixLatex0.getShowStdDev());\n assertEquals(0, resultMatrixLatex0.getRowNameWidth());\n assertEquals(1, resultMatrixLatex0.getColCount());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex0.printRowNamesTipText());\n assertFalse(resultMatrixLatex0.getDefaultShowStdDev());\n assertFalse(resultMatrixLatex0.getEnumerateRowNames());\n assertFalse(resultMatrixLatex0.getRemoveFilterName());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex0.meanPrecTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex0.showAverageTipText());\n assertFalse(resultMatrixLatex0.getShowAverage());\n assertEquals(0, resultMatrixLatex0.getDefaultCountWidth());\n assertEquals(1, resultMatrixLatex0.getRowCount());\n assertEquals(2, resultMatrixLatex0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixLatex0.getStdDevWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex0.colNameWidthTipText());\n assertEquals(1, resultMatrixLatex0.getVisibleRowCount());\n assertEquals(0, resultMatrixLatex0.getDefaultRowNameWidth());\n assertFalse(resultMatrixLatex0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixLatex0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixLatex0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixLatex0.getDefaultColNameWidth());\n assertFalse(resultMatrixLatex0.getDefaultShowAverage());\n assertEquals(2, resultMatrixLatex0.getMeanPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex0.rowNameWidthTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateRowNamesTipText());\n assertEquals(1, resultMatrixLatex0.getVisibleColCount());\n assertEquals(0, resultMatrixLatex0.getCountWidth());\n assertEquals(0, resultMatrixLatex0.getSignificanceWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateColNamesTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex0.printColNamesTipText());\n assertFalse(resultMatrixLatex0.getPrintColNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex0.countWidthTipText());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex0.globalInfo());\n assertEquals(0, resultMatrixLatex0.getDefaultStdDevWidth());\n assertTrue(resultMatrixLatex0.getPrintRowNames());\n assertFalse(resultMatrixLatex0.getDefaultPrintColNames());\n assertEquals(2, resultMatrixLatex0.getDefaultMeanPrec());\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertFalse(resultMatrixLatex0.equals((Object)resultMatrixLatex1));\n assertEquals(0.0, double0, 0.01);\n \n ResultMatrixSignificance resultMatrixSignificance0 = new ResultMatrixSignificance(15, 97);\n assertNotNull(resultMatrixSignificance0);\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(97, resultMatrixSignificance0.getRowCount());\n assertEquals(97, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(15, resultMatrixSignificance0.getColCount());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(15, resultMatrixSignificance0.getVisibleColCount());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n \n String string1 = resultMatrixSignificance0.toStringKey();\n assertNotNull(string1);\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(97, resultMatrixSignificance0.getRowCount());\n assertEquals(97, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(15, resultMatrixSignificance0.getColCount());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(15, resultMatrixSignificance0.getVisibleColCount());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertFalse(string1.equals((Object)string0));\n assertEquals(\"Key:\\n(1) col0\\n(2) col1\\n(3) col2\\n(4) col3\\n(5) col4\\n(6) col5\\n(7) col6\\n(8) col7\\n(9) col8\\n(10) col9\\n(11) col10\\n(12) col11\\n(13) col12\\n(14) col13\\n(15) col14\\n\", string1);\n \n ResultMatrixLatex resultMatrixLatex2 = new ResultMatrixLatex(resultMatrixLatex0);\n assertNotNull(resultMatrixLatex2);\n assertTrue(resultMatrixLatex0.getEnumerateColNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex0.significanceWidthTipText());\n assertTrue(resultMatrixLatex0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex0.stdDevWidthTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex0.removeFilterNameTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex0.stdDevPrecTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultMeanWidth());\n assertEquals(2, resultMatrixLatex0.getStdDevPrec());\n assertEquals(0, resultMatrixLatex0.getColNameWidth());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex0.meanWidthTipText());\n assertEquals(0, resultMatrixLatex0.getMeanWidth());\n assertEquals(\"LaTeX\", resultMatrixLatex0.getDisplayName());\n assertTrue(resultMatrixLatex0.getDefaultPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex0.showStdDevTipText());\n assertFalse(resultMatrixLatex0.getShowStdDev());\n assertEquals(0, resultMatrixLatex0.getRowNameWidth());\n assertEquals(1, resultMatrixLatex0.getColCount());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex0.printRowNamesTipText());\n assertFalse(resultMatrixLatex0.getDefaultShowStdDev());\n assertFalse(resultMatrixLatex0.getEnumerateRowNames());\n assertFalse(resultMatrixLatex0.getRemoveFilterName());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex0.meanPrecTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex0.showAverageTipText());\n assertFalse(resultMatrixLatex0.getShowAverage());\n assertEquals(0, resultMatrixLatex0.getDefaultCountWidth());\n assertEquals(1, resultMatrixLatex0.getRowCount());\n assertEquals(2, resultMatrixLatex0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixLatex0.getStdDevWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex0.colNameWidthTipText());\n assertEquals(1, resultMatrixLatex0.getVisibleRowCount());\n assertEquals(0, resultMatrixLatex0.getDefaultRowNameWidth());\n assertFalse(resultMatrixLatex0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixLatex0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixLatex0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixLatex0.getDefaultColNameWidth());\n assertFalse(resultMatrixLatex0.getDefaultShowAverage());\n assertEquals(2, resultMatrixLatex0.getMeanPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex0.rowNameWidthTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateRowNamesTipText());\n assertEquals(1, resultMatrixLatex0.getVisibleColCount());\n assertEquals(0, resultMatrixLatex0.getCountWidth());\n assertEquals(0, resultMatrixLatex0.getSignificanceWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateColNamesTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex0.printColNamesTipText());\n assertFalse(resultMatrixLatex0.getPrintColNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex0.countWidthTipText());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex0.globalInfo());\n assertEquals(0, resultMatrixLatex0.getDefaultStdDevWidth());\n assertTrue(resultMatrixLatex0.getPrintRowNames());\n assertFalse(resultMatrixLatex0.getDefaultPrintColNames());\n assertEquals(2, resultMatrixLatex0.getDefaultMeanPrec());\n assertTrue(resultMatrixLatex2.getEnumerateColNames());\n assertEquals(0, resultMatrixLatex2.getMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex2.removeFilterNameTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex2.stdDevWidthTipText());\n assertFalse(resultMatrixLatex2.getShowAverage());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex2.printColNamesTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex2.significanceWidthTipText());\n assertEquals(0, resultMatrixLatex2.getDefaultStdDevWidth());\n assertTrue(resultMatrixLatex2.getDefaultEnumerateColNames());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex2.globalInfo());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex2.colNameWidthTipText());\n assertEquals(0, resultMatrixLatex2.getStdDevWidth());\n assertEquals(1, resultMatrixLatex2.getVisibleColCount());\n assertFalse(resultMatrixLatex2.getPrintColNames());\n assertEquals(0, resultMatrixLatex2.getCountWidth());\n assertEquals(0, resultMatrixLatex2.getRowNameWidth());\n assertEquals(\"LaTeX\", resultMatrixLatex2.getDisplayName());\n assertEquals(0, resultMatrixLatex2.getSignificanceWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex2.enumerateColNamesTipText());\n assertEquals(2, resultMatrixLatex2.getMeanPrec());\n assertEquals(0, resultMatrixLatex2.getColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex2.stdDevPrecTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex2.rowNameWidthTipText());\n assertFalse(resultMatrixLatex2.getShowStdDev());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex2.enumerateRowNamesTipText());\n assertFalse(resultMatrixLatex2.getDefaultEnumerateRowNames());\n assertEquals(1, resultMatrixLatex2.getVisibleRowCount());\n assertEquals(0, resultMatrixLatex2.getDefaultRowNameWidth());\n assertEquals(2, resultMatrixLatex2.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixLatex2.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixLatex2.getDefaultCountWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex2.meanPrecTipText());\n assertFalse(resultMatrixLatex2.getDefaultPrintColNames());\n assertTrue(resultMatrixLatex2.getPrintRowNames());\n assertEquals(2, resultMatrixLatex2.getDefaultMeanPrec());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex2.showAverageTipText());\n assertEquals(1, resultMatrixLatex2.getRowCount());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex2.showStdDevTipText());\n assertTrue(resultMatrixLatex2.getDefaultPrintRowNames());\n assertFalse(resultMatrixLatex2.getDefaultShowStdDev());\n assertFalse(resultMatrixLatex2.getRemoveFilterName());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex2.printRowNamesTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex2.countWidthTipText());\n assertEquals(2, resultMatrixLatex2.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex2.meanWidthTipText());\n assertFalse(resultMatrixLatex2.getEnumerateRowNames());\n assertFalse(resultMatrixLatex2.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixLatex2.getDefaultMeanWidth());\n assertFalse(resultMatrixLatex2.getDefaultShowAverage());\n assertEquals(0, resultMatrixLatex2.getDefaultColNameWidth());\n assertEquals(1, resultMatrixLatex2.getColCount());\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertFalse(resultMatrixLatex0.equals((Object)resultMatrixLatex1));\n assertFalse(resultMatrixLatex2.equals((Object)resultMatrixLatex1));\n assertFalse(resultMatrixLatex2.equals((Object)resultMatrixLatex0));\n \n ResultMatrixCSV resultMatrixCSV0 = new ResultMatrixCSV(0, 28);\n assertNotNull(resultMatrixCSV0);\n assertFalse(resultMatrixCSV0.getShowAverage());\n assertFalse(resultMatrixCSV0.getShowStdDev());\n assertEquals(2, resultMatrixCSV0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixCSV0.meanWidthTipText());\n assertEquals(0, resultMatrixCSV0.getColCount());\n assertTrue(resultMatrixCSV0.getDefaultPrintRowNames());\n assertEquals(0, resultMatrixCSV0.getVisibleColCount());\n assertEquals(0, resultMatrixCSV0.getStdDevWidth());\n assertTrue(resultMatrixCSV0.getEnumerateColNames());\n assertEquals(25, resultMatrixCSV0.getRowNameWidth());\n assertEquals(0, resultMatrixCSV0.getMeanWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixCSV0.showStdDevTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultCountWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixCSV0.colNameWidthTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultMeanWidth());\n assertFalse(resultMatrixCSV0.getDefaultShowAverage());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateRowNamesTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixCSV0.showAverageTipText());\n assertEquals(\"CSV\", resultMatrixCSV0.getDisplayName());\n assertFalse(resultMatrixCSV0.getDefaultShowStdDev());\n assertFalse(resultMatrixCSV0.getRemoveFilterName());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixCSV0.printRowNamesTipText());\n assertFalse(resultMatrixCSV0.getEnumerateRowNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixCSV0.stdDevWidthTipText());\n assertEquals(25, resultMatrixCSV0.getDefaultRowNameWidth());\n assertEquals(2, resultMatrixCSV0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixCSV0.getDefaultColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixCSV0.meanPrecTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixCSV0.countWidthTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultSignificanceWidth());\n assertEquals(2, resultMatrixCSV0.getDefaultMeanPrec());\n assertEquals(28, resultMatrixCSV0.getRowCount());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixCSV0.rowNameWidthTipText());\n assertFalse(resultMatrixCSV0.getDefaultEnumerateRowNames());\n assertTrue(resultMatrixCSV0.getDefaultEnumerateColNames());\n assertEquals(\"Generates the matrix in CSV ('comma-separated values') format.\", resultMatrixCSV0.globalInfo());\n assertFalse(resultMatrixCSV0.getDefaultRemoveFilterName());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateColNamesTipText());\n assertEquals(2, resultMatrixCSV0.getMeanPrec());\n assertEquals(0, resultMatrixCSV0.getDefaultStdDevWidth());\n assertEquals(0, resultMatrixCSV0.getColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixCSV0.stdDevPrecTipText());\n assertEquals(0, resultMatrixCSV0.getSignificanceWidth());\n assertTrue(resultMatrixCSV0.getPrintRowNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixCSV0.removeFilterNameTipText());\n assertFalse(resultMatrixCSV0.getPrintColNames());\n assertFalse(resultMatrixCSV0.getDefaultPrintColNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixCSV0.significanceWidthTipText());\n assertEquals(28, resultMatrixCSV0.getVisibleRowCount());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixCSV0.printColNamesTipText());\n assertEquals(0, resultMatrixCSV0.getCountWidth());\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n \n resultMatrixCSV0.clear();\n assertFalse(resultMatrixCSV0.getShowAverage());\n assertFalse(resultMatrixCSV0.getShowStdDev());\n assertEquals(2, resultMatrixCSV0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixCSV0.meanWidthTipText());\n assertEquals(0, resultMatrixCSV0.getColCount());\n assertTrue(resultMatrixCSV0.getDefaultPrintRowNames());\n assertEquals(0, resultMatrixCSV0.getVisibleColCount());\n assertEquals(0, resultMatrixCSV0.getStdDevWidth());\n assertTrue(resultMatrixCSV0.getEnumerateColNames());\n assertEquals(25, resultMatrixCSV0.getRowNameWidth());\n assertEquals(0, resultMatrixCSV0.getMeanWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixCSV0.showStdDevTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultCountWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixCSV0.colNameWidthTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultMeanWidth());\n assertFalse(resultMatrixCSV0.getDefaultShowAverage());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateRowNamesTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixCSV0.showAverageTipText());\n assertEquals(\"CSV\", resultMatrixCSV0.getDisplayName());\n assertFalse(resultMatrixCSV0.getDefaultShowStdDev());\n assertFalse(resultMatrixCSV0.getRemoveFilterName());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixCSV0.printRowNamesTipText());\n assertFalse(resultMatrixCSV0.getEnumerateRowNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixCSV0.stdDevWidthTipText());\n assertEquals(25, resultMatrixCSV0.getDefaultRowNameWidth());\n assertEquals(2, resultMatrixCSV0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixCSV0.getDefaultColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixCSV0.meanPrecTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixCSV0.countWidthTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultSignificanceWidth());\n assertEquals(2, resultMatrixCSV0.getDefaultMeanPrec());\n assertEquals(28, resultMatrixCSV0.getRowCount());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixCSV0.rowNameWidthTipText());\n assertFalse(resultMatrixCSV0.getDefaultEnumerateRowNames());\n assertTrue(resultMatrixCSV0.getDefaultEnumerateColNames());\n assertEquals(\"Generates the matrix in CSV ('comma-separated values') format.\", resultMatrixCSV0.globalInfo());\n assertFalse(resultMatrixCSV0.getDefaultRemoveFilterName());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateColNamesTipText());\n assertEquals(2, resultMatrixCSV0.getMeanPrec());\n assertEquals(0, resultMatrixCSV0.getDefaultStdDevWidth());\n assertEquals(0, resultMatrixCSV0.getColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixCSV0.stdDevPrecTipText());\n assertEquals(0, resultMatrixCSV0.getSignificanceWidth());\n assertTrue(resultMatrixCSV0.getPrintRowNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixCSV0.removeFilterNameTipText());\n assertFalse(resultMatrixCSV0.getPrintColNames());\n assertFalse(resultMatrixCSV0.getDefaultPrintColNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixCSV0.significanceWidthTipText());\n assertEquals(28, resultMatrixCSV0.getVisibleRowCount());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixCSV0.printColNamesTipText());\n assertEquals(0, resultMatrixCSV0.getCountWidth());\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n \n ResultMatrixPlainText resultMatrixPlainText0 = new ResultMatrixPlainText(resultMatrixLatex0);\n assertNotNull(resultMatrixPlainText0);\n assertTrue(resultMatrixLatex0.getEnumerateColNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex0.significanceWidthTipText());\n assertTrue(resultMatrixLatex0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex0.stdDevWidthTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex0.removeFilterNameTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex0.stdDevPrecTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultMeanWidth());\n assertEquals(2, resultMatrixLatex0.getStdDevPrec());\n assertEquals(0, resultMatrixLatex0.getColNameWidth());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex0.meanWidthTipText());\n assertEquals(0, resultMatrixLatex0.getMeanWidth());\n assertEquals(\"LaTeX\", resultMatrixLatex0.getDisplayName());\n assertTrue(resultMatrixLatex0.getDefaultPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex0.showStdDevTipText());\n assertFalse(resultMatrixLatex0.getShowStdDev());\n assertEquals(0, resultMatrixLatex0.getRowNameWidth());\n assertEquals(1, resultMatrixLatex0.getColCount());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex0.printRowNamesTipText());\n assertFalse(resultMatrixLatex0.getDefaultShowStdDev());\n assertFalse(resultMatrixLatex0.getEnumerateRowNames());\n assertFalse(resultMatrixLatex0.getRemoveFilterName());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex0.meanPrecTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex0.showAverageTipText());\n assertFalse(resultMatrixLatex0.getShowAverage());\n assertEquals(0, resultMatrixLatex0.getDefaultCountWidth());\n assertEquals(1, resultMatrixLatex0.getRowCount());\n assertEquals(2, resultMatrixLatex0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixLatex0.getStdDevWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex0.colNameWidthTipText());\n assertEquals(1, resultMatrixLatex0.getVisibleRowCount());\n assertEquals(0, resultMatrixLatex0.getDefaultRowNameWidth());\n assertFalse(resultMatrixLatex0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixLatex0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixLatex0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixLatex0.getDefaultColNameWidth());\n assertFalse(resultMatrixLatex0.getDefaultShowAverage());\n assertEquals(2, resultMatrixLatex0.getMeanPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex0.rowNameWidthTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateRowNamesTipText());\n assertEquals(1, resultMatrixLatex0.getVisibleColCount());\n assertEquals(0, resultMatrixLatex0.getCountWidth());\n assertEquals(0, resultMatrixLatex0.getSignificanceWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateColNamesTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex0.printColNamesTipText());\n assertFalse(resultMatrixLatex0.getPrintColNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex0.countWidthTipText());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex0.globalInfo());\n assertEquals(0, resultMatrixLatex0.getDefaultStdDevWidth());\n assertTrue(resultMatrixLatex0.getPrintRowNames());\n assertFalse(resultMatrixLatex0.getDefaultPrintColNames());\n assertEquals(2, resultMatrixLatex0.getDefaultMeanPrec());\n assertEquals(5, resultMatrixPlainText0.getDefaultCountWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixPlainText0.countWidthTipText());\n assertFalse(resultMatrixPlainText0.getDefaultShowStdDev());\n assertEquals(0, resultMatrixPlainText0.getDefaultColNameWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixPlainText0.rowNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixPlainText0.meanPrecTipText());\n assertFalse(resultMatrixPlainText0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixPlainText0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixPlainText0.getCountWidth());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixPlainText0.printRowNamesTipText());\n assertEquals(0, resultMatrixPlainText0.getDefaultStdDevWidth());\n assertEquals(2, resultMatrixPlainText0.getDefaultStdDevPrec());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixPlainText0.colNameWidthTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixPlainText0.showAverageTipText());\n assertTrue(resultMatrixPlainText0.getPrintRowNames());\n assertEquals(1, resultMatrixPlainText0.getVisibleColCount());\n assertEquals(2, resultMatrixPlainText0.getDefaultMeanPrec());\n assertFalse(resultMatrixPlainText0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixPlainText0.getDefaultShowAverage());\n assertEquals(0, resultMatrixPlainText0.getDefaultMeanWidth());\n assertEquals(1, resultMatrixPlainText0.getVisibleRowCount());\n assertEquals(1, resultMatrixPlainText0.getColCount());\n assertFalse(resultMatrixPlainText0.getEnumerateRowNames());\n assertFalse(resultMatrixPlainText0.getRemoveFilterName());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateRowNamesTipText());\n assertEquals(25, resultMatrixPlainText0.getDefaultRowNameWidth());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixPlainText0.meanWidthTipText());\n assertEquals(2, resultMatrixPlainText0.getStdDevPrec());\n assertEquals(\"Plain Text\", resultMatrixPlainText0.getDisplayName());\n assertTrue(resultMatrixPlainText0.getDefaultPrintRowNames());\n assertTrue(resultMatrixPlainText0.getDefaultPrintColNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixPlainText0.showStdDevTipText());\n assertEquals(0, resultMatrixPlainText0.getSignificanceWidth());\n assertFalse(resultMatrixPlainText0.getPrintColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixPlainText0.stdDevWidthTipText());\n assertTrue(resultMatrixPlainText0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixPlainText0.significanceWidthTipText());\n assertEquals(0, resultMatrixPlainText0.getRowNameWidth());\n assertTrue(resultMatrixPlainText0.getEnumerateColNames());\n assertEquals(1, resultMatrixPlainText0.getRowCount());\n assertFalse(resultMatrixPlainText0.getShowAverage());\n assertEquals(0, resultMatrixPlainText0.getStdDevWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixPlainText0.stdDevPrecTipText());\n assertEquals(0, resultMatrixPlainText0.getMeanWidth());\n assertEquals(0, resultMatrixPlainText0.getColNameWidth());\n assertEquals(2, resultMatrixPlainText0.getMeanPrec());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateColNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixPlainText0.removeFilterNameTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixPlainText0.printColNamesTipText());\n assertEquals(\"Generates the output as plain text (for fixed width fonts).\", resultMatrixPlainText0.globalInfo());\n assertFalse(resultMatrixPlainText0.getShowStdDev());\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertFalse(resultMatrixLatex0.equals((Object)resultMatrixLatex1));\n assertFalse(resultMatrixLatex0.equals((Object)resultMatrixLatex2));\n \n String string2 = resultMatrixPlainText0.getDisplayName();\n assertNotNull(string2);\n assertNotSame(resultMatrixLatex0, resultMatrixLatex1);\n assertNotSame(resultMatrixLatex0, resultMatrixLatex2);\n assertTrue(resultMatrixLatex0.getEnumerateColNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex0.significanceWidthTipText());\n assertTrue(resultMatrixLatex0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex0.stdDevWidthTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex0.removeFilterNameTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex0.stdDevPrecTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultMeanWidth());\n assertEquals(2, resultMatrixLatex0.getStdDevPrec());\n assertEquals(0, resultMatrixLatex0.getColNameWidth());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex0.meanWidthTipText());\n assertEquals(0, resultMatrixLatex0.getMeanWidth());\n assertEquals(\"LaTeX\", resultMatrixLatex0.getDisplayName());\n assertTrue(resultMatrixLatex0.getDefaultPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex0.showStdDevTipText());\n assertFalse(resultMatrixLatex0.getShowStdDev());\n assertEquals(0, resultMatrixLatex0.getRowNameWidth());\n assertEquals(1, resultMatrixLatex0.getColCount());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex0.printRowNamesTipText());\n assertFalse(resultMatrixLatex0.getDefaultShowStdDev());\n assertFalse(resultMatrixLatex0.getEnumerateRowNames());\n assertFalse(resultMatrixLatex0.getRemoveFilterName());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex0.meanPrecTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex0.showAverageTipText());\n assertFalse(resultMatrixLatex0.getShowAverage());\n assertEquals(0, resultMatrixLatex0.getDefaultCountWidth());\n assertEquals(1, resultMatrixLatex0.getRowCount());\n assertEquals(2, resultMatrixLatex0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixLatex0.getStdDevWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex0.colNameWidthTipText());\n assertEquals(1, resultMatrixLatex0.getVisibleRowCount());\n assertEquals(0, resultMatrixLatex0.getDefaultRowNameWidth());\n assertFalse(resultMatrixLatex0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixLatex0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixLatex0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixLatex0.getDefaultColNameWidth());\n assertFalse(resultMatrixLatex0.getDefaultShowAverage());\n assertEquals(2, resultMatrixLatex0.getMeanPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex0.rowNameWidthTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateRowNamesTipText());\n assertEquals(1, resultMatrixLatex0.getVisibleColCount());\n assertEquals(0, resultMatrixLatex0.getCountWidth());\n assertEquals(0, resultMatrixLatex0.getSignificanceWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateColNamesTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex0.printColNamesTipText());\n assertFalse(resultMatrixLatex0.getPrintColNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex0.countWidthTipText());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex0.globalInfo());\n assertEquals(0, resultMatrixLatex0.getDefaultStdDevWidth());\n assertTrue(resultMatrixLatex0.getPrintRowNames());\n assertFalse(resultMatrixLatex0.getDefaultPrintColNames());\n assertEquals(2, resultMatrixLatex0.getDefaultMeanPrec());\n assertEquals(5, resultMatrixPlainText0.getDefaultCountWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixPlainText0.countWidthTipText());\n assertFalse(resultMatrixPlainText0.getDefaultShowStdDev());\n assertEquals(0, resultMatrixPlainText0.getDefaultColNameWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixPlainText0.rowNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixPlainText0.meanPrecTipText());\n assertFalse(resultMatrixPlainText0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixPlainText0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixPlainText0.getCountWidth());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixPlainText0.printRowNamesTipText());\n assertEquals(0, resultMatrixPlainText0.getDefaultStdDevWidth());\n assertEquals(2, resultMatrixPlainText0.getDefaultStdDevPrec());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixPlainText0.colNameWidthTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixPlainText0.showAverageTipText());\n assertTrue(resultMatrixPlainText0.getPrintRowNames());\n assertEquals(1, resultMatrixPlainText0.getVisibleColCount());\n assertEquals(2, resultMatrixPlainText0.getDefaultMeanPrec());\n assertFalse(resultMatrixPlainText0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixPlainText0.getDefaultShowAverage());\n assertEquals(0, resultMatrixPlainText0.getDefaultMeanWidth());\n assertEquals(1, resultMatrixPlainText0.getVisibleRowCount());\n assertEquals(1, resultMatrixPlainText0.getColCount());\n assertFalse(resultMatrixPlainText0.getEnumerateRowNames());\n assertFalse(resultMatrixPlainText0.getRemoveFilterName());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateRowNamesTipText());\n assertEquals(25, resultMatrixPlainText0.getDefaultRowNameWidth());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixPlainText0.meanWidthTipText());\n assertEquals(2, resultMatrixPlainText0.getStdDevPrec());\n assertEquals(\"Plain Text\", resultMatrixPlainText0.getDisplayName());\n assertTrue(resultMatrixPlainText0.getDefaultPrintRowNames());\n assertTrue(resultMatrixPlainText0.getDefaultPrintColNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixPlainText0.showStdDevTipText());\n assertEquals(0, resultMatrixPlainText0.getSignificanceWidth());\n assertFalse(resultMatrixPlainText0.getPrintColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixPlainText0.stdDevWidthTipText());\n assertTrue(resultMatrixPlainText0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixPlainText0.significanceWidthTipText());\n assertEquals(0, resultMatrixPlainText0.getRowNameWidth());\n assertTrue(resultMatrixPlainText0.getEnumerateColNames());\n assertEquals(1, resultMatrixPlainText0.getRowCount());\n assertFalse(resultMatrixPlainText0.getShowAverage());\n assertEquals(0, resultMatrixPlainText0.getStdDevWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixPlainText0.stdDevPrecTipText());\n assertEquals(0, resultMatrixPlainText0.getMeanWidth());\n assertEquals(0, resultMatrixPlainText0.getColNameWidth());\n assertEquals(2, resultMatrixPlainText0.getMeanPrec());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateColNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixPlainText0.removeFilterNameTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixPlainText0.printColNamesTipText());\n assertEquals(\"Generates the output as plain text (for fixed width fonts).\", resultMatrixPlainText0.globalInfo());\n assertFalse(resultMatrixPlainText0.getShowStdDev());\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertFalse(resultMatrixLatex0.equals((Object)resultMatrixLatex1));\n assertFalse(resultMatrixLatex0.equals((Object)resultMatrixLatex2));\n assertFalse(string2.equals((Object)string0));\n assertFalse(string2.equals((Object)string1));\n assertEquals(\"Plain Text\", string2);\n \n int int0 = resultMatrixLatex1.getVisibleRowCount();\n assertNotSame(resultMatrixLatex1, resultMatrixLatex0);\n assertNotSame(resultMatrixLatex1, resultMatrixLatex2);\n assertEquals(0, resultMatrixLatex1.getDefaultCountWidth());\n assertEquals(2, resultMatrixLatex1.getMeanPrec());\n assertEquals(0, resultMatrixLatex1.getRowNameWidth());\n assertFalse(resultMatrixLatex1.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixLatex1.getDefaultShowAverage());\n assertFalse(resultMatrixLatex1.getPrintColNames());\n assertFalse(resultMatrixLatex1.getEnumerateRowNames());\n assertEquals(1, resultMatrixLatex1.getRowCount());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex1.globalInfo());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex1.stdDevWidthTipText());\n assertFalse(resultMatrixLatex1.getDefaultRemoveFilterName());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex1.countWidthTipText());\n assertEquals(1, resultMatrixLatex1.getVisibleRowCount());\n assertFalse(resultMatrixLatex1.getDefaultShowStdDev());\n assertEquals(2, resultMatrixLatex1.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex1.meanWidthTipText());\n assertEquals(0, resultMatrixLatex1.getDefaultSignificanceWidth());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex1.printRowNamesTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex1.enumerateRowNamesTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex1.showStdDevTipText());\n assertTrue(resultMatrixLatex1.getDefaultPrintRowNames());\n assertEquals(1, resultMatrixLatex1.getColCount());\n assertEquals(0, resultMatrixLatex1.getDefaultMeanWidth());\n assertEquals(0, resultMatrixLatex1.getDefaultColNameWidth());\n assertEquals(0, resultMatrixLatex1.getDefaultStdDevWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex1.enumerateColNamesTipText());\n assertEquals(0, resultMatrixLatex1.getCountWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex1.printColNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex1.removeFilterNameTipText());\n assertFalse(resultMatrixLatex1.getRemoveFilterName());\n assertTrue(resultMatrixLatex1.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex1.showAverageTipText());\n assertTrue(resultMatrixLatex1.getEnumerateColNames());\n assertEquals(1, resultMatrixLatex1.getVisibleColCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex1.meanPrecTipText());\n assertEquals(2, resultMatrixLatex1.getDefaultMeanPrec());\n assertEquals(0, resultMatrixLatex1.getStdDevWidth());\n assertEquals(2, resultMatrixLatex1.getDefaultStdDevPrec());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex1.colNameWidthTipText());\n assertFalse(resultMatrixLatex1.getDefaultPrintColNames());\n assertTrue(resultMatrixLatex1.getDefaultEnumerateColNames());\n assertFalse(resultMatrixLatex1.getShowAverage());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex1.rowNameWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex1.significanceWidthTipText());\n assertFalse(resultMatrixLatex1.getShowStdDev());\n assertEquals(0, resultMatrixLatex1.getSignificanceWidth());\n assertEquals(0, resultMatrixLatex1.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixLatex1.getMeanWidth());\n assertEquals(\"LaTeX\", resultMatrixLatex1.getDisplayName());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex1.stdDevPrecTipText());\n assertEquals(0, resultMatrixLatex1.getColNameWidth());\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertFalse(resultMatrixLatex1.equals((Object)resultMatrixLatex0));\n assertFalse(resultMatrixLatex1.equals((Object)resultMatrixLatex2));\n assertEquals(1, int0);\n \n double[] doubleArray0 = new double[9];\n doubleArray0[0] = (double) 0;\n doubleArray0[1] = (double) 0;\n doubleArray0[2] = (double) 2;\n doubleArray0[3] = (double) 1;\n doubleArray0[4] = (double) 0;\n doubleArray0[5] = (-1.0);\n doubleArray0[6] = (double) 0;\n doubleArray0[7] = (double) 15;\n doubleArray0[8] = (-3207.5);\n resultMatrixLatex2.m_Counts = doubleArray0;\n assertTrue(resultMatrixLatex0.getEnumerateColNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex0.significanceWidthTipText());\n assertTrue(resultMatrixLatex0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex0.stdDevWidthTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex0.removeFilterNameTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex0.stdDevPrecTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultMeanWidth());\n assertEquals(2, resultMatrixLatex0.getStdDevPrec());\n assertEquals(0, resultMatrixLatex0.getColNameWidth());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex0.meanWidthTipText());\n assertEquals(0, resultMatrixLatex0.getMeanWidth());\n assertEquals(\"LaTeX\", resultMatrixLatex0.getDisplayName());\n assertTrue(resultMatrixLatex0.getDefaultPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex0.showStdDevTipText());\n assertFalse(resultMatrixLatex0.getShowStdDev());\n assertEquals(0, resultMatrixLatex0.getRowNameWidth());\n assertEquals(1, resultMatrixLatex0.getColCount());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex0.printRowNamesTipText());\n assertFalse(resultMatrixLatex0.getDefaultShowStdDev());\n assertFalse(resultMatrixLatex0.getEnumerateRowNames());\n assertFalse(resultMatrixLatex0.getRemoveFilterName());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex0.meanPrecTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex0.showAverageTipText());\n assertFalse(resultMatrixLatex0.getShowAverage());\n assertEquals(0, resultMatrixLatex0.getDefaultCountWidth());\n assertEquals(1, resultMatrixLatex0.getRowCount());\n assertEquals(2, resultMatrixLatex0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixLatex0.getStdDevWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex0.colNameWidthTipText());\n assertEquals(1, resultMatrixLatex0.getVisibleRowCount());\n assertEquals(0, resultMatrixLatex0.getDefaultRowNameWidth());\n assertFalse(resultMatrixLatex0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixLatex0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixLatex0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixLatex0.getDefaultColNameWidth());\n assertFalse(resultMatrixLatex0.getDefaultShowAverage());\n assertEquals(2, resultMatrixLatex0.getMeanPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex0.rowNameWidthTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateRowNamesTipText());\n assertEquals(1, resultMatrixLatex0.getVisibleColCount());\n assertEquals(0, resultMatrixLatex0.getCountWidth());\n assertEquals(0, resultMatrixLatex0.getSignificanceWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateColNamesTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex0.printColNamesTipText());\n assertFalse(resultMatrixLatex0.getPrintColNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex0.countWidthTipText());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex0.globalInfo());\n assertEquals(0, resultMatrixLatex0.getDefaultStdDevWidth());\n assertTrue(resultMatrixLatex0.getPrintRowNames());\n assertFalse(resultMatrixLatex0.getDefaultPrintColNames());\n assertEquals(2, resultMatrixLatex0.getDefaultMeanPrec());\n assertTrue(resultMatrixLatex2.getEnumerateColNames());\n assertEquals(0, resultMatrixLatex2.getMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex2.removeFilterNameTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex2.stdDevWidthTipText());\n assertFalse(resultMatrixLatex2.getShowAverage());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex2.printColNamesTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex2.significanceWidthTipText());\n assertEquals(0, resultMatrixLatex2.getDefaultStdDevWidth());\n assertTrue(resultMatrixLatex2.getDefaultEnumerateColNames());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex2.globalInfo());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex2.colNameWidthTipText());\n assertEquals(0, resultMatrixLatex2.getStdDevWidth());\n assertEquals(1, resultMatrixLatex2.getVisibleColCount());\n assertFalse(resultMatrixLatex2.getPrintColNames());\n assertEquals(0, resultMatrixLatex2.getCountWidth());\n assertEquals(0, resultMatrixLatex2.getRowNameWidth());\n assertEquals(\"LaTeX\", resultMatrixLatex2.getDisplayName());\n assertEquals(0, resultMatrixLatex2.getSignificanceWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex2.enumerateColNamesTipText());\n assertEquals(2, resultMatrixLatex2.getMeanPrec());\n assertEquals(0, resultMatrixLatex2.getColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex2.stdDevPrecTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex2.rowNameWidthTipText());\n assertFalse(resultMatrixLatex2.getShowStdDev());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex2.enumerateRowNamesTipText());\n assertFalse(resultMatrixLatex2.getDefaultEnumerateRowNames());\n assertEquals(1, resultMatrixLatex2.getVisibleRowCount());\n assertEquals(0, resultMatrixLatex2.getDefaultRowNameWidth());\n assertEquals(2, resultMatrixLatex2.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixLatex2.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixLatex2.getDefaultCountWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex2.meanPrecTipText());\n assertFalse(resultMatrixLatex2.getDefaultPrintColNames());\n assertTrue(resultMatrixLatex2.getPrintRowNames());\n assertEquals(2, resultMatrixLatex2.getDefaultMeanPrec());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex2.showAverageTipText());\n assertEquals(1, resultMatrixLatex2.getRowCount());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex2.showStdDevTipText());\n assertTrue(resultMatrixLatex2.getDefaultPrintRowNames());\n assertFalse(resultMatrixLatex2.getDefaultShowStdDev());\n assertFalse(resultMatrixLatex2.getRemoveFilterName());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex2.printRowNamesTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex2.countWidthTipText());\n assertEquals(2, resultMatrixLatex2.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex2.meanWidthTipText());\n assertFalse(resultMatrixLatex2.getEnumerateRowNames());\n assertFalse(resultMatrixLatex2.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixLatex2.getDefaultMeanWidth());\n assertFalse(resultMatrixLatex2.getDefaultShowAverage());\n assertEquals(0, resultMatrixLatex2.getDefaultColNameWidth());\n assertEquals(1, resultMatrixLatex2.getColCount());\n \n resultMatrixLatex1.setRowName(42, (String) null);\n assertNotSame(resultMatrixLatex1, resultMatrixLatex0);\n assertNotSame(resultMatrixLatex1, resultMatrixLatex2);\n assertEquals(0, resultMatrixLatex1.getDefaultCountWidth());\n assertEquals(2, resultMatrixLatex1.getMeanPrec());\n assertEquals(0, resultMatrixLatex1.getRowNameWidth());\n assertFalse(resultMatrixLatex1.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixLatex1.getDefaultShowAverage());\n assertFalse(resultMatrixLatex1.getPrintColNames());\n assertFalse(resultMatrixLatex1.getEnumerateRowNames());\n assertEquals(1, resultMatrixLatex1.getRowCount());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex1.globalInfo());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex1.stdDevWidthTipText());\n assertFalse(resultMatrixLatex1.getDefaultRemoveFilterName());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex1.countWidthTipText());\n assertEquals(1, resultMatrixLatex1.getVisibleRowCount());\n assertFalse(resultMatrixLatex1.getDefaultShowStdDev());\n assertEquals(2, resultMatrixLatex1.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex1.meanWidthTipText());\n assertEquals(0, resultMatrixLatex1.getDefaultSignificanceWidth());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex1.printRowNamesTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex1.enumerateRowNamesTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex1.showStdDevTipText());\n assertTrue(resultMatrixLatex1.getDefaultPrintRowNames());\n assertEquals(1, resultMatrixLatex1.getColCount());\n assertEquals(0, resultMatrixLatex1.getDefaultMeanWidth());\n assertEquals(0, resultMatrixLatex1.getDefaultColNameWidth());\n assertEquals(0, resultMatrixLatex1.getDefaultStdDevWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex1.enumerateColNamesTipText());\n assertEquals(0, resultMatrixLatex1.getCountWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex1.printColNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex1.removeFilterNameTipText());\n assertFalse(resultMatrixLatex1.getRemoveFilterName());\n assertTrue(resultMatrixLatex1.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex1.showAverageTipText());\n assertTrue(resultMatrixLatex1.getEnumerateColNames());\n assertEquals(1, resultMatrixLatex1.getVisibleColCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex1.meanPrecTipText());\n assertEquals(2, resultMatrixLatex1.getDefaultMeanPrec());\n assertEquals(0, resultMatrixLatex1.getStdDevWidth());\n assertEquals(2, resultMatrixLatex1.getDefaultStdDevPrec());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex1.colNameWidthTipText());\n assertFalse(resultMatrixLatex1.getDefaultPrintColNames());\n assertTrue(resultMatrixLatex1.getDefaultEnumerateColNames());\n assertFalse(resultMatrixLatex1.getShowAverage());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex1.rowNameWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex1.significanceWidthTipText());\n assertFalse(resultMatrixLatex1.getShowStdDev());\n assertEquals(0, resultMatrixLatex1.getSignificanceWidth());\n assertEquals(0, resultMatrixLatex1.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixLatex1.getMeanWidth());\n assertEquals(\"LaTeX\", resultMatrixLatex1.getDisplayName());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex1.stdDevPrecTipText());\n assertEquals(0, resultMatrixLatex1.getColNameWidth());\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertFalse(resultMatrixLatex1.equals((Object)resultMatrixLatex0));\n assertFalse(resultMatrixLatex1.equals((Object)resultMatrixLatex2));\n \n // Undeclared exception!\n try { \n resultMatrixLatex2.getHeader(\"{Y.G@S+4[?F-??\");\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "title": "" }, { "docid": "1ce84876270f932f5c128633afa04df8", "score": "0.58256316", "text": "Reference getCoverage();", "title": "" }, { "docid": "f6d82dda0d905aa55c4fc15250a9d0c8", "score": "0.58110625", "text": "@Test(timeout = 4000)\n public void test16() throws Throwable {\n Discretize discretize0 = new Discretize();\n discretize0.setAttributeIndices(\"\");\n String[] stringArray0 = discretize0.getOptions();\n assertEquals(10, discretize0.getBins());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertEquals(4, stringArray0.length);\n }", "title": "" }, { "docid": "440f20938dbec66be0dc120df7086b46", "score": "0.5804567", "text": "@Test\n public void testColeman_liau_index() {\n System.out.println(\"coleman_liau_index\");\n String strText = TEST_STRING;\n double expResult = 6.8;\n double result = ReadabilityStatistics.coleman_liau_index(strText);\n assertEquals(expResult, result, TestConfiguration.DOUBLE_ACCURACY_HIGH);\n }", "title": "" }, { "docid": "6f5c860f3a2796dc965b5358f87aa031", "score": "0.57933766", "text": "@Test(timeout = 4000)\n public void test53() throws Throwable {\n FileSystemHandling.setPermissions((EvoSuiteFile) null, false, false, true);\n EvoSuiteFile evoSuiteFile0 = new EvoSuiteFile(\"/home/ubuntu/wekafiles\");\n FileSystemHandling.appendLineToFile(evoSuiteFile0, \"1]ucba&\\\"wjW~2a\");\n Discretize discretize0 = new Discretize();\n ArrayList<Attribute> arrayList0 = new ArrayList<Attribute>();\n Attribute attribute0 = new Attribute(\"\\\"position\\\" has unknown type\");\n arrayList0.add(attribute0);\n Instances instances0 = new Instances(\"HuI)L44;vn \", arrayList0, 1);\n BinarySparseInstance binarySparseInstance0 = new BinarySparseInstance(1);\n instances0.add((Instance) binarySparseInstance0);\n discretize0.setInputFormat(instances0);\n discretize0.setUseEqualFrequency(true);\n double[] doubleArray0 = new double[1];\n doubleArray0[0] = 3800.84988;\n SparseInstance sparseInstance0 = new SparseInstance(3800.84988, doubleArray0);\n instances0.add((Instance) sparseInstance0);\n sparseInstance0.setValue(attribute0, (double) 1);\n SparseInstance sparseInstance1 = new SparseInstance(sparseInstance0);\n sparseInstance1.toString(attribute0);\n FileSystemHandling.setPermissions((EvoSuiteFile) null, false, false, false);\n instances0.add((Instance) sparseInstance1);\n Filter.useFilter(instances0, discretize0);\n discretize0.setOutputFormat();\n System.setCurrentTimeMillis(2);\n discretize0.convertInstance(sparseInstance1);\n System.setCurrentTimeMillis(1);\n // Undeclared exception!\n try { \n discretize0.findNumBins(1);\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // 1\n //\n verifyException(\"weka.filters.unsupervised.attribute.Discretize\", e);\n }\n }", "title": "" }, { "docid": "10275ddbd6c2bd027af3cbd4d2e9469c", "score": "0.5793091", "text": "@Test(timeout = 4000)\n public void test13() throws Throwable {\n Discretize discretize0 = new Discretize();\n discretize0.makeBinaryTipText();\n int int0 = 0;\n // Undeclared exception!\n try { \n discretize0.numPendingOutput();\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // No output instance format defined\n //\n verifyException(\"weka.filters.Filter\", e);\n }\n }", "title": "" }, { "docid": "16de7e7459e077d5cab23de627177d8b", "score": "0.57889116", "text": "@Test(timeout = 4000)\n public void test04() throws Throwable {\n Discretize discretize0 = new Discretize();\n discretize0.setOutputFormat();\n assertEquals(10, discretize0.getBins());\n assertFalse(discretize0.getMakeBinary());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertFalse(discretize0.getUseBinNumbers());\n assertFalse(discretize0.getUseEqualFrequency());\n assertFalse(discretize0.getFindNumBins());\n }", "title": "" }, { "docid": "71456917e3ceb7e8a93ebb1ce501815c", "score": "0.578736", "text": "@Test(timeout = 4000)\n public void test135() throws Throwable {\n ResultMatrixSignificance resultMatrixSignificance0 = new ResultMatrixSignificance();\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertNotNull(resultMatrixSignificance0);\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n \n ResultMatrixHTML resultMatrixHTML0 = new ResultMatrixHTML(resultMatrixSignificance0);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertNotNull(resultMatrixHTML0);\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertFalse(resultMatrixHTML0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixHTML0.getDefaultSignificanceWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixHTML0.rowNameWidthTipText());\n assertEquals(2, resultMatrixHTML0.getDefaultStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixHTML0.meanPrecTipText());\n assertEquals(0, resultMatrixHTML0.getDefaultColNameWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixHTML0.showAverageTipText());\n assertTrue(resultMatrixHTML0.getPrintRowNames());\n assertEquals(2, resultMatrixHTML0.getDefaultMeanPrec());\n assertEquals(40, resultMatrixHTML0.getRowNameWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateRowNamesTipText());\n assertFalse(resultMatrixHTML0.getRemoveFilterName());\n assertFalse(resultMatrixHTML0.getDefaultShowStdDev());\n assertEquals(1, resultMatrixHTML0.getVisibleRowCount());\n assertEquals(0, resultMatrixHTML0.getCountWidth());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixHTML0.printRowNamesTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixHTML0.getDefaultCountWidth());\n assertEquals(0, resultMatrixHTML0.getColNameWidth());\n assertEquals(2, resultMatrixHTML0.getMeanPrec());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixHTML0.colNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixHTML0.stdDevPrecTipText());\n assertTrue(resultMatrixHTML0.getEnumerateColNames());\n assertFalse(resultMatrixHTML0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixHTML0.getMeanWidth());\n assertTrue(resultMatrixHTML0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixHTML0.getShowAverage());\n assertFalse(resultMatrixHTML0.getShowStdDev());\n assertEquals(2, resultMatrixHTML0.getStdDevPrec());\n assertEquals(0, resultMatrixHTML0.getStdDevWidth());\n assertFalse(resultMatrixHTML0.getPrintColNames());\n assertEquals(0, resultMatrixHTML0.getSignificanceWidth());\n assertTrue(resultMatrixHTML0.getDefaultPrintRowNames());\n assertEquals(1, resultMatrixHTML0.getRowCount());\n assertFalse(resultMatrixHTML0.getEnumerateRowNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixHTML0.meanWidthTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixHTML0.removeFilterNameTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixHTML0.significanceWidthTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixHTML0.printColNamesTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixHTML0.stdDevWidthTipText());\n assertEquals(\"Generates the matrix output as HTML.\", resultMatrixHTML0.globalInfo());\n assertEquals(0, resultMatrixHTML0.getDefaultStdDevWidth());\n assertEquals(\"HTML\", resultMatrixHTML0.getDisplayName());\n assertEquals(0, resultMatrixHTML0.getDefaultMeanWidth());\n assertFalse(resultMatrixHTML0.getDefaultShowAverage());\n assertEquals(25, resultMatrixHTML0.getDefaultRowNameWidth());\n assertEquals(1, resultMatrixHTML0.getColCount());\n assertEquals(1, resultMatrixHTML0.getVisibleColCount());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixHTML0.showStdDevTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixHTML0.countWidthTipText());\n assertFalse(resultMatrixHTML0.getDefaultEnumerateRowNames());\n \n String string0 = resultMatrixHTML0.getSummaryTitle(2);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertNotNull(string0);\n assertEquals(\"c\", string0);\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertFalse(resultMatrixHTML0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixHTML0.getDefaultSignificanceWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixHTML0.rowNameWidthTipText());\n assertEquals(2, resultMatrixHTML0.getDefaultStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixHTML0.meanPrecTipText());\n assertEquals(0, resultMatrixHTML0.getDefaultColNameWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixHTML0.showAverageTipText());\n assertTrue(resultMatrixHTML0.getPrintRowNames());\n assertEquals(2, resultMatrixHTML0.getDefaultMeanPrec());\n assertEquals(40, resultMatrixHTML0.getRowNameWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateRowNamesTipText());\n assertFalse(resultMatrixHTML0.getRemoveFilterName());\n assertFalse(resultMatrixHTML0.getDefaultShowStdDev());\n assertEquals(1, resultMatrixHTML0.getVisibleRowCount());\n assertEquals(0, resultMatrixHTML0.getCountWidth());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixHTML0.printRowNamesTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixHTML0.getDefaultCountWidth());\n assertEquals(0, resultMatrixHTML0.getColNameWidth());\n assertEquals(2, resultMatrixHTML0.getMeanPrec());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixHTML0.colNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixHTML0.stdDevPrecTipText());\n assertTrue(resultMatrixHTML0.getEnumerateColNames());\n assertFalse(resultMatrixHTML0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixHTML0.getMeanWidth());\n assertTrue(resultMatrixHTML0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixHTML0.getShowAverage());\n assertFalse(resultMatrixHTML0.getShowStdDev());\n assertEquals(2, resultMatrixHTML0.getStdDevPrec());\n assertEquals(0, resultMatrixHTML0.getStdDevWidth());\n assertFalse(resultMatrixHTML0.getPrintColNames());\n assertEquals(0, resultMatrixHTML0.getSignificanceWidth());\n assertTrue(resultMatrixHTML0.getDefaultPrintRowNames());\n assertEquals(1, resultMatrixHTML0.getRowCount());\n assertFalse(resultMatrixHTML0.getEnumerateRowNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixHTML0.meanWidthTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixHTML0.removeFilterNameTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixHTML0.significanceWidthTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixHTML0.printColNamesTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixHTML0.stdDevWidthTipText());\n assertEquals(\"Generates the matrix output as HTML.\", resultMatrixHTML0.globalInfo());\n assertEquals(0, resultMatrixHTML0.getDefaultStdDevWidth());\n assertEquals(\"HTML\", resultMatrixHTML0.getDisplayName());\n assertEquals(0, resultMatrixHTML0.getDefaultMeanWidth());\n assertFalse(resultMatrixHTML0.getDefaultShowAverage());\n assertEquals(25, resultMatrixHTML0.getDefaultRowNameWidth());\n assertEquals(1, resultMatrixHTML0.getColCount());\n assertEquals(1, resultMatrixHTML0.getVisibleColCount());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixHTML0.showStdDevTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixHTML0.countWidthTipText());\n assertFalse(resultMatrixHTML0.getDefaultEnumerateRowNames());\n \n double double0 = resultMatrixSignificance0.getAverage(891);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0.0, double0, 0.01);\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n }", "title": "" }, { "docid": "741e07a41050e3bbe6f467426383fbed", "score": "0.5785042", "text": "@Test(timeout = 4000)\n public void test26() throws Throwable {\n Discretize discretize0 = new Discretize();\n ArrayList<Attribute> arrayList0 = new ArrayList<Attribute>();\n Attribute attribute0 = new Attribute(\".ycf\", (-1816));\n arrayList0.add(attribute0);\n Instances instances0 = new Instances(\"=\\\"D>o[8X:(P;+\", arrayList0, 0);\n Discretize discretize1 = new Discretize();\n assertFalse(discretize1.getMakeBinary());\n \n boolean boolean0 = discretize1.setInputFormat(instances0);\n assertFalse(boolean0);\n \n String[] stringArray0 = new String[0];\n discretize1.setOptions(stringArray0);\n assertEquals((-1.0), discretize1.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertFalse(discretize1.getUseBinNumbers());\n assertFalse(discretize1.getUseEqualFrequency());\n assertFalse(discretize1.getFindNumBins());\n assertEquals(10, discretize1.getBins());\n }", "title": "" }, { "docid": "7e29809bc853aaee021f612a2b45a834", "score": "0.57780486", "text": "@Test(timeout = 4000)\n public void test126() throws Throwable {\n ResultMatrixCSV resultMatrixCSV0 = new ResultMatrixCSV();\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertNotNull(resultMatrixCSV0);\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixCSV0.getColNameWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixCSV0.printColNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixCSV0.stdDevPrecTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultStdDevWidth());\n assertEquals(1, resultMatrixCSV0.getVisibleColCount());\n assertEquals(0, resultMatrixCSV0.getDefaultMeanWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixCSV0.colNameWidthTipText());\n assertEquals(0, resultMatrixCSV0.getCountWidth());\n assertEquals(1, resultMatrixCSV0.getColCount());\n assertFalse(resultMatrixCSV0.getRemoveFilterName());\n assertFalse(resultMatrixCSV0.getDefaultShowStdDev());\n assertEquals(25, resultMatrixCSV0.getDefaultRowNameWidth());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixCSV0.printRowNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixCSV0.removeFilterNameTipText());\n assertFalse(resultMatrixCSV0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixCSV0.getDefaultColNameWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixCSV0.significanceWidthTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixCSV0.showStdDevTipText());\n assertEquals(2, resultMatrixCSV0.getDefaultMeanPrec());\n assertTrue(resultMatrixCSV0.getPrintRowNames());\n assertEquals(\"Generates the matrix in CSV ('comma-separated values') format.\", resultMatrixCSV0.globalInfo());\n assertFalse(resultMatrixCSV0.getDefaultEnumerateRowNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixCSV0.countWidthTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultSignificanceWidth());\n assertEquals(2, resultMatrixCSV0.getMeanPrec());\n assertTrue(resultMatrixCSV0.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixCSV0.getDefaultCountWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateRowNamesTipText());\n assertFalse(resultMatrixCSV0.getDefaultPrintColNames());\n assertEquals(1, resultMatrixCSV0.getRowCount());\n assertTrue(resultMatrixCSV0.getDefaultPrintRowNames());\n assertFalse(resultMatrixCSV0.getEnumerateRowNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixCSV0.meanWidthTipText());\n assertFalse(resultMatrixCSV0.getDefaultShowAverage());\n assertEquals(2, resultMatrixCSV0.getStdDevPrec());\n assertFalse(resultMatrixCSV0.getPrintColNames());\n assertEquals(0, resultMatrixCSV0.getSignificanceWidth());\n assertEquals(1, resultMatrixCSV0.getVisibleRowCount());\n assertFalse(resultMatrixCSV0.getShowAverage());\n assertFalse(resultMatrixCSV0.getShowStdDev());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixCSV0.stdDevWidthTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixCSV0.rowNameWidthTipText());\n assertEquals(0, resultMatrixCSV0.getStdDevWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixCSV0.meanPrecTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixCSV0.showAverageTipText());\n assertEquals(2, resultMatrixCSV0.getDefaultStdDevPrec());\n assertTrue(resultMatrixCSV0.getEnumerateColNames());\n assertEquals(\"CSV\", resultMatrixCSV0.getDisplayName());\n assertEquals(25, resultMatrixCSV0.getRowNameWidth());\n assertEquals(0, resultMatrixCSV0.getMeanWidth());\n \n resultMatrixCSV0.setColNameWidth(2026);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateColNamesTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixCSV0.printColNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixCSV0.stdDevPrecTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultStdDevWidth());\n assertEquals(1, resultMatrixCSV0.getVisibleColCount());\n assertEquals(0, resultMatrixCSV0.getDefaultMeanWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixCSV0.colNameWidthTipText());\n assertEquals(0, resultMatrixCSV0.getCountWidth());\n assertEquals(1, resultMatrixCSV0.getColCount());\n assertFalse(resultMatrixCSV0.getRemoveFilterName());\n assertFalse(resultMatrixCSV0.getDefaultShowStdDev());\n assertEquals(25, resultMatrixCSV0.getDefaultRowNameWidth());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixCSV0.printRowNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixCSV0.removeFilterNameTipText());\n assertFalse(resultMatrixCSV0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixCSV0.getDefaultColNameWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixCSV0.significanceWidthTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixCSV0.showStdDevTipText());\n assertEquals(2, resultMatrixCSV0.getDefaultMeanPrec());\n assertTrue(resultMatrixCSV0.getPrintRowNames());\n assertEquals(\"Generates the matrix in CSV ('comma-separated values') format.\", resultMatrixCSV0.globalInfo());\n assertFalse(resultMatrixCSV0.getDefaultEnumerateRowNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixCSV0.countWidthTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultSignificanceWidth());\n assertEquals(2, resultMatrixCSV0.getMeanPrec());\n assertTrue(resultMatrixCSV0.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixCSV0.getDefaultCountWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateRowNamesTipText());\n assertFalse(resultMatrixCSV0.getDefaultPrintColNames());\n assertEquals(2026, resultMatrixCSV0.getColNameWidth());\n assertEquals(1, resultMatrixCSV0.getRowCount());\n assertTrue(resultMatrixCSV0.getDefaultPrintRowNames());\n assertFalse(resultMatrixCSV0.getEnumerateRowNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixCSV0.meanWidthTipText());\n assertFalse(resultMatrixCSV0.getDefaultShowAverage());\n assertEquals(2, resultMatrixCSV0.getStdDevPrec());\n assertFalse(resultMatrixCSV0.getPrintColNames());\n assertEquals(0, resultMatrixCSV0.getSignificanceWidth());\n assertEquals(1, resultMatrixCSV0.getVisibleRowCount());\n assertFalse(resultMatrixCSV0.getShowAverage());\n assertFalse(resultMatrixCSV0.getShowStdDev());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixCSV0.stdDevWidthTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixCSV0.rowNameWidthTipText());\n assertEquals(0, resultMatrixCSV0.getStdDevWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixCSV0.meanPrecTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixCSV0.showAverageTipText());\n assertEquals(2, resultMatrixCSV0.getDefaultStdDevPrec());\n assertTrue(resultMatrixCSV0.getEnumerateColNames());\n assertEquals(\"CSV\", resultMatrixCSV0.getDisplayName());\n assertEquals(25, resultMatrixCSV0.getRowNameWidth());\n assertEquals(0, resultMatrixCSV0.getMeanWidth());\n \n resultMatrixCSV0.WIN_STRING = \"-8-1{dA)[cz.\";\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateColNamesTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixCSV0.printColNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixCSV0.stdDevPrecTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultStdDevWidth());\n assertEquals(1, resultMatrixCSV0.getVisibleColCount());\n assertEquals(0, resultMatrixCSV0.getDefaultMeanWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixCSV0.colNameWidthTipText());\n assertEquals(0, resultMatrixCSV0.getCountWidth());\n assertEquals(1, resultMatrixCSV0.getColCount());\n assertFalse(resultMatrixCSV0.getRemoveFilterName());\n assertFalse(resultMatrixCSV0.getDefaultShowStdDev());\n assertEquals(25, resultMatrixCSV0.getDefaultRowNameWidth());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixCSV0.printRowNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixCSV0.removeFilterNameTipText());\n assertFalse(resultMatrixCSV0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixCSV0.getDefaultColNameWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixCSV0.significanceWidthTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixCSV0.showStdDevTipText());\n assertEquals(2, resultMatrixCSV0.getDefaultMeanPrec());\n assertTrue(resultMatrixCSV0.getPrintRowNames());\n assertEquals(\"Generates the matrix in CSV ('comma-separated values') format.\", resultMatrixCSV0.globalInfo());\n assertFalse(resultMatrixCSV0.getDefaultEnumerateRowNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixCSV0.countWidthTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultSignificanceWidth());\n assertEquals(2, resultMatrixCSV0.getMeanPrec());\n assertTrue(resultMatrixCSV0.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixCSV0.getDefaultCountWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateRowNamesTipText());\n assertFalse(resultMatrixCSV0.getDefaultPrintColNames());\n assertEquals(2026, resultMatrixCSV0.getColNameWidth());\n assertEquals(1, resultMatrixCSV0.getRowCount());\n assertTrue(resultMatrixCSV0.getDefaultPrintRowNames());\n assertFalse(resultMatrixCSV0.getEnumerateRowNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixCSV0.meanWidthTipText());\n assertFalse(resultMatrixCSV0.getDefaultShowAverage());\n assertEquals(2, resultMatrixCSV0.getStdDevPrec());\n assertFalse(resultMatrixCSV0.getPrintColNames());\n assertEquals(0, resultMatrixCSV0.getSignificanceWidth());\n assertEquals(1, resultMatrixCSV0.getVisibleRowCount());\n assertFalse(resultMatrixCSV0.getShowAverage());\n assertFalse(resultMatrixCSV0.getShowStdDev());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixCSV0.stdDevWidthTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixCSV0.rowNameWidthTipText());\n assertEquals(0, resultMatrixCSV0.getStdDevWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixCSV0.meanPrecTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixCSV0.showAverageTipText());\n assertEquals(2, resultMatrixCSV0.getDefaultStdDevPrec());\n assertTrue(resultMatrixCSV0.getEnumerateColNames());\n assertEquals(\"CSV\", resultMatrixCSV0.getDisplayName());\n assertEquals(25, resultMatrixCSV0.getRowNameWidth());\n assertEquals(0, resultMatrixCSV0.getMeanWidth());\n \n resultMatrixCSV0.setPrintColNames(true);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateColNamesTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixCSV0.printColNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixCSV0.stdDevPrecTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultStdDevWidth());\n assertEquals(1, resultMatrixCSV0.getVisibleColCount());\n assertEquals(0, resultMatrixCSV0.getDefaultMeanWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixCSV0.colNameWidthTipText());\n assertTrue(resultMatrixCSV0.getPrintColNames());\n assertEquals(0, resultMatrixCSV0.getCountWidth());\n assertEquals(1, resultMatrixCSV0.getColCount());\n assertFalse(resultMatrixCSV0.getRemoveFilterName());\n assertFalse(resultMatrixCSV0.getDefaultShowStdDev());\n assertEquals(25, resultMatrixCSV0.getDefaultRowNameWidth());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixCSV0.printRowNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixCSV0.removeFilterNameTipText());\n assertFalse(resultMatrixCSV0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixCSV0.getDefaultColNameWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixCSV0.significanceWidthTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixCSV0.showStdDevTipText());\n assertEquals(2, resultMatrixCSV0.getDefaultMeanPrec());\n assertTrue(resultMatrixCSV0.getPrintRowNames());\n assertEquals(\"Generates the matrix in CSV ('comma-separated values') format.\", resultMatrixCSV0.globalInfo());\n assertFalse(resultMatrixCSV0.getDefaultEnumerateRowNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixCSV0.countWidthTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultSignificanceWidth());\n assertEquals(2, resultMatrixCSV0.getMeanPrec());\n assertTrue(resultMatrixCSV0.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixCSV0.getDefaultCountWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateRowNamesTipText());\n assertFalse(resultMatrixCSV0.getDefaultPrintColNames());\n assertEquals(2026, resultMatrixCSV0.getColNameWidth());\n assertEquals(1, resultMatrixCSV0.getRowCount());\n assertTrue(resultMatrixCSV0.getDefaultPrintRowNames());\n assertFalse(resultMatrixCSV0.getEnumerateRowNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixCSV0.meanWidthTipText());\n assertFalse(resultMatrixCSV0.getDefaultShowAverage());\n assertEquals(2, resultMatrixCSV0.getStdDevPrec());\n assertEquals(0, resultMatrixCSV0.getSignificanceWidth());\n assertEquals(1, resultMatrixCSV0.getVisibleRowCount());\n assertFalse(resultMatrixCSV0.getShowAverage());\n assertFalse(resultMatrixCSV0.getShowStdDev());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixCSV0.stdDevWidthTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixCSV0.rowNameWidthTipText());\n assertEquals(0, resultMatrixCSV0.getStdDevWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixCSV0.meanPrecTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixCSV0.showAverageTipText());\n assertEquals(2, resultMatrixCSV0.getDefaultStdDevPrec());\n assertTrue(resultMatrixCSV0.getEnumerateColNames());\n assertEquals(\"CSV\", resultMatrixCSV0.getDisplayName());\n assertEquals(25, resultMatrixCSV0.getRowNameWidth());\n assertEquals(0, resultMatrixCSV0.getMeanWidth());\n \n String[] stringArray0 = resultMatrixCSV0.getOptions();\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertNotNull(stringArray0);\n assertEquals(19, stringArray0.length);\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateColNamesTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixCSV0.printColNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixCSV0.stdDevPrecTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultStdDevWidth());\n assertEquals(1, resultMatrixCSV0.getVisibleColCount());\n assertEquals(0, resultMatrixCSV0.getDefaultMeanWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixCSV0.colNameWidthTipText());\n assertTrue(resultMatrixCSV0.getPrintColNames());\n assertEquals(0, resultMatrixCSV0.getCountWidth());\n assertEquals(1, resultMatrixCSV0.getColCount());\n assertFalse(resultMatrixCSV0.getRemoveFilterName());\n assertFalse(resultMatrixCSV0.getDefaultShowStdDev());\n assertEquals(25, resultMatrixCSV0.getDefaultRowNameWidth());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixCSV0.printRowNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixCSV0.removeFilterNameTipText());\n assertFalse(resultMatrixCSV0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixCSV0.getDefaultColNameWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixCSV0.significanceWidthTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixCSV0.showStdDevTipText());\n assertEquals(2, resultMatrixCSV0.getDefaultMeanPrec());\n assertTrue(resultMatrixCSV0.getPrintRowNames());\n assertEquals(\"Generates the matrix in CSV ('comma-separated values') format.\", resultMatrixCSV0.globalInfo());\n assertFalse(resultMatrixCSV0.getDefaultEnumerateRowNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixCSV0.countWidthTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultSignificanceWidth());\n assertEquals(2, resultMatrixCSV0.getMeanPrec());\n assertTrue(resultMatrixCSV0.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixCSV0.getDefaultCountWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateRowNamesTipText());\n assertFalse(resultMatrixCSV0.getDefaultPrintColNames());\n assertEquals(2026, resultMatrixCSV0.getColNameWidth());\n assertEquals(1, resultMatrixCSV0.getRowCount());\n assertTrue(resultMatrixCSV0.getDefaultPrintRowNames());\n assertFalse(resultMatrixCSV0.getEnumerateRowNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixCSV0.meanWidthTipText());\n assertFalse(resultMatrixCSV0.getDefaultShowAverage());\n assertEquals(2, resultMatrixCSV0.getStdDevPrec());\n assertEquals(0, resultMatrixCSV0.getSignificanceWidth());\n assertEquals(1, resultMatrixCSV0.getVisibleRowCount());\n assertFalse(resultMatrixCSV0.getShowAverage());\n assertFalse(resultMatrixCSV0.getShowStdDev());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixCSV0.stdDevWidthTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixCSV0.rowNameWidthTipText());\n assertEquals(0, resultMatrixCSV0.getStdDevWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixCSV0.meanPrecTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixCSV0.showAverageTipText());\n assertEquals(2, resultMatrixCSV0.getDefaultStdDevPrec());\n assertTrue(resultMatrixCSV0.getEnumerateColNames());\n assertEquals(\"CSV\", resultMatrixCSV0.getDisplayName());\n assertEquals(25, resultMatrixCSV0.getRowNameWidth());\n assertEquals(0, resultMatrixCSV0.getMeanWidth());\n }", "title": "" }, { "docid": "61c303dff56d544a134491674e7adb34", "score": "0.5777348", "text": "@Test(timeout = 4000)\n public void test34() throws Throwable {\n Discretize discretize0 = new Discretize();\n ArrayList<Attribute> arrayList0 = new ArrayList<Attribute>();\n Attribute attribute0 = new Attribute(\"vjsx8!w\");\n LinkedList<Locale.LanguageRange> linkedList0 = new LinkedList<Locale.LanguageRange>();\n ArrayList<String> arrayList1 = new ArrayList<String>();\n List<String> list0 = Locale.filterTags((List<Locale.LanguageRange>) linkedList0, (Collection<String>) arrayList1);\n List<String> list1 = Locale.filterTags((List<Locale.LanguageRange>) linkedList0, (Collection<String>) list0);\n Properties properties0 = new Properties();\n ProtectedProperties protectedProperties0 = new ProtectedProperties(properties0);\n Attribute attribute1 = new Attribute(\"@attribute\", list1, protectedProperties0);\n arrayList0.add(attribute1);\n Instances instances0 = new Instances(\"string\", arrayList0, 4);\n discretize0.setInputFormat(instances0);\n discretize0.calculateCutPoints();\n // Undeclared exception!\n try { \n discretize0.calculateCutPointsByEqualWidthBinning(3);\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // 3\n //\n verifyException(\"weka.filters.unsupervised.attribute.Discretize\", e);\n }\n }", "title": "" }, { "docid": "85dfe69e7352b19e68c43b79cc1cfa09", "score": "0.57630926", "text": "@org.junit.Test(timeout = 10000)\n public void testGetFalsePositiveProbability_cf7646() {\n // These probabilities are taken from the bloom filter probability table at\n // http://pages.cs.wisc.edu/~cao/papers/summary-cache/node8.html\n java.lang.System.out.println(\"expectedFalsePositiveProbability\");\n com.clearspring.analytics.stream.membership.BloomFilter instance = new com.clearspring.analytics.stream.membership.BloomFilter(100, 10);\n double expResult = 0.00819;// m/n=10, k=7\n \n double result = com.clearspring.analytics.stream.membership.BloomCalculations.getFalsePositiveProbability(10, 7);\n org.junit.Assert.assertEquals(7, instance.getHashCount());\n org.junit.Assert.assertEquals(expResult, result, 9.0E-6);\n instance = new com.clearspring.analytics.stream.membership.BloomFilter(10, 10);\n expResult = 0.00819;// m/n=10, k=7\n \n result = com.clearspring.analytics.stream.membership.BloomCalculations.getFalsePositiveProbability(10, 7);\n org.junit.Assert.assertEquals(7, instance.getHashCount());\n org.junit.Assert.assertEquals(expResult, result, 9.0E-6);\n instance = new com.clearspring.analytics.stream.membership.BloomFilter(10, 2);\n expResult = 0.393;// m/n=2, k=1\n \n result = com.clearspring.analytics.stream.membership.BloomCalculations.getFalsePositiveProbability(2, 1);\n org.junit.Assert.assertEquals(instance.getHashCount(), 1);\n org.junit.Assert.assertEquals(expResult, result, 5.0E-4);\n instance = new com.clearspring.analytics.stream.membership.BloomFilter(10, 11);\n expResult = 0.00509;// m/n=11, k=8\n \n result = com.clearspring.analytics.stream.membership.BloomCalculations.getFalsePositiveProbability(11, 8);\n org.junit.Assert.assertEquals(8, instance.getHashCount());\n // AssertGenerator replace invocation\n java.lang.String o_testGetFalsePositiveProbability_cf7646__39 = // StatementAdderMethod cloned existing statement\ninstance.toString();\n // AssertGenerator add assertion\n org.junit.Assert.assertEquals(o_testGetFalsePositiveProbability_cf7646__39, \"{}\");\n org.junit.Assert.assertEquals(expResult, result, 1.0E-5);\n }", "title": "" }, { "docid": "f020a2036a7e9bd0480e019cf4ceeddd", "score": "0.5758312", "text": "@Test(timeout = 4000)\n public void test058() throws Throwable {\n ResultMatrixLatex resultMatrixLatex0 = new ResultMatrixLatex();\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertNotNull(resultMatrixLatex0);\n assertFalse(resultMatrixLatex0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixLatex0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex0.countWidthTipText());\n assertFalse(resultMatrixLatex0.getDefaultShowStdDev());\n assertEquals(1, resultMatrixLatex0.getVisibleRowCount());\n assertEquals(0, resultMatrixLatex0.getDefaultRowNameWidth());\n assertFalse(resultMatrixLatex0.getDefaultPrintColNames());\n assertEquals(2, resultMatrixLatex0.getDefaultMeanPrec());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex0.printRowNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex0.meanPrecTipText());\n assertEquals(1, resultMatrixLatex0.getVisibleColCount());\n assertEquals(2, resultMatrixLatex0.getDefaultStdDevPrec());\n assertTrue(resultMatrixLatex0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex0.showAverageTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex0.colNameWidthTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultCountWidth());\n assertEquals(1, resultMatrixLatex0.getColCount());\n assertEquals(0, resultMatrixLatex0.getDefaultStdDevWidth());\n assertFalse(resultMatrixLatex0.getDefaultShowAverage());\n assertFalse(resultMatrixLatex0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixLatex0.getEnumerateRowNames());\n assertFalse(resultMatrixLatex0.getRemoveFilterName());\n assertTrue(resultMatrixLatex0.getDefaultPrintRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateRowNamesTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex0.showStdDevTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixLatex0.getStdDevWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex0.significanceWidthTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex0.stdDevWidthTipText());\n assertFalse(resultMatrixLatex0.getShowAverage());\n assertTrue(resultMatrixLatex0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixLatex0.getShowStdDev());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex0.meanWidthTipText());\n assertEquals(2, resultMatrixLatex0.getStdDevPrec());\n assertEquals(1, resultMatrixLatex0.getRowCount());\n assertTrue(resultMatrixLatex0.getEnumerateColNames());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex0.globalInfo());\n assertEquals(0, resultMatrixLatex0.getCountWidth());\n assertEquals(0, resultMatrixLatex0.getRowNameWidth());\n assertFalse(resultMatrixLatex0.getPrintColNames());\n assertEquals(2, resultMatrixLatex0.getMeanPrec());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex0.printColNamesTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixLatex0.getSignificanceWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex0.removeFilterNameTipText());\n assertEquals(\"LaTeX\", resultMatrixLatex0.getDisplayName());\n assertEquals(0, resultMatrixLatex0.getMeanWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex0.rowNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex0.stdDevPrecTipText());\n assertEquals(0, resultMatrixLatex0.getColNameWidth());\n \n String string0 = resultMatrixLatex0.getSummaryTitle(0);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertNotNull(string0);\n assertEquals(\"a\", string0);\n assertFalse(resultMatrixLatex0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixLatex0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex0.countWidthTipText());\n assertFalse(resultMatrixLatex0.getDefaultShowStdDev());\n assertEquals(1, resultMatrixLatex0.getVisibleRowCount());\n assertEquals(0, resultMatrixLatex0.getDefaultRowNameWidth());\n assertFalse(resultMatrixLatex0.getDefaultPrintColNames());\n assertEquals(2, resultMatrixLatex0.getDefaultMeanPrec());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex0.printRowNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex0.meanPrecTipText());\n assertEquals(1, resultMatrixLatex0.getVisibleColCount());\n assertEquals(2, resultMatrixLatex0.getDefaultStdDevPrec());\n assertTrue(resultMatrixLatex0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex0.showAverageTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex0.colNameWidthTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultCountWidth());\n assertEquals(1, resultMatrixLatex0.getColCount());\n assertEquals(0, resultMatrixLatex0.getDefaultStdDevWidth());\n assertFalse(resultMatrixLatex0.getDefaultShowAverage());\n assertFalse(resultMatrixLatex0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixLatex0.getEnumerateRowNames());\n assertFalse(resultMatrixLatex0.getRemoveFilterName());\n assertTrue(resultMatrixLatex0.getDefaultPrintRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateRowNamesTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex0.showStdDevTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixLatex0.getStdDevWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex0.significanceWidthTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex0.stdDevWidthTipText());\n assertFalse(resultMatrixLatex0.getShowAverage());\n assertTrue(resultMatrixLatex0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixLatex0.getShowStdDev());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex0.meanWidthTipText());\n assertEquals(2, resultMatrixLatex0.getStdDevPrec());\n assertEquals(1, resultMatrixLatex0.getRowCount());\n assertTrue(resultMatrixLatex0.getEnumerateColNames());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex0.globalInfo());\n assertEquals(0, resultMatrixLatex0.getCountWidth());\n assertEquals(0, resultMatrixLatex0.getRowNameWidth());\n assertFalse(resultMatrixLatex0.getPrintColNames());\n assertEquals(2, resultMatrixLatex0.getMeanPrec());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex0.printColNamesTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixLatex0.getSignificanceWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex0.removeFilterNameTipText());\n assertEquals(\"LaTeX\", resultMatrixLatex0.getDisplayName());\n assertEquals(0, resultMatrixLatex0.getMeanWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex0.rowNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex0.stdDevPrecTipText());\n assertEquals(0, resultMatrixLatex0.getColNameWidth());\n }", "title": "" }, { "docid": "8bc917c25a39fbf53df53fcfc3ed7c9d", "score": "0.57581514", "text": "@Test(timeout = 4000)\n public void test104() throws Throwable {\n ResultMatrixSignificance resultMatrixSignificance0 = new ResultMatrixSignificance();\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertNotNull(resultMatrixSignificance0);\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n \n String string0 = resultMatrixSignificance0.toStringSummary();\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertNotNull(string0);\n assertEquals(\"-summary data not set-\", string0);\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n \n String[] stringArray0 = resultMatrixSignificance0.getOptions();\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertNotNull(stringArray0);\n assertEquals(18, stringArray0.length);\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n \n resultMatrixSignificance0.m_RowNameWidth = (-82);\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals((-82), resultMatrixSignificance0.getRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n \n double double0 = resultMatrixSignificance0.getCount(1695);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0.0, double0, 0.01);\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals((-82), resultMatrixSignificance0.getRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n \n ResultMatrixPlainText resultMatrixPlainText0 = new ResultMatrixPlainText();\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertNotNull(resultMatrixPlainText0);\n assertFalse(resultMatrixPlainText0.getRemoveFilterName());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixPlainText0.showAverageTipText());\n assertTrue(resultMatrixPlainText0.getPrintRowNames());\n assertEquals(1, resultMatrixPlainText0.getVisibleColCount());\n assertEquals(2, resultMatrixPlainText0.getDefaultMeanPrec());\n assertFalse(resultMatrixPlainText0.getDefaultShowStdDev());\n assertEquals(0, resultMatrixPlainText0.getDefaultStdDevWidth());\n assertEquals(\"Generates the output as plain text (for fixed width fonts).\", resultMatrixPlainText0.globalInfo());\n assertEquals(1, resultMatrixPlainText0.getColCount());\n assertEquals(2, resultMatrixPlainText0.getDefaultStdDevPrec());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixPlainText0.printColNamesTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateColNamesTipText());\n assertEquals(5, resultMatrixPlainText0.getDefaultCountWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixPlainText0.colNameWidthTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixPlainText0.printRowNamesTipText());\n assertTrue(resultMatrixPlainText0.getPrintColNames());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixPlainText0.meanPrecTipText());\n assertEquals(0, resultMatrixPlainText0.getStdDevWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixPlainText0.removeFilterNameTipText());\n assertTrue(resultMatrixPlainText0.getEnumerateColNames());\n assertFalse(resultMatrixPlainText0.getShowStdDev());\n assertEquals(0, resultMatrixPlainText0.getColNameWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixPlainText0.rowNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixPlainText0.stdDevPrecTipText());\n assertTrue(resultMatrixPlainText0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixPlainText0.getMeanWidth());\n assertEquals(\"Plain Text\", resultMatrixPlainText0.getDisplayName());\n assertEquals(25, resultMatrixPlainText0.getRowNameWidth());\n assertEquals(0, resultMatrixPlainText0.getSignificanceWidth());\n assertFalse(resultMatrixPlainText0.getEnumerateRowNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixPlainText0.meanWidthTipText());\n assertTrue(resultMatrixPlainText0.getDefaultPrintRowNames());\n assertEquals(2, resultMatrixPlainText0.getMeanPrec());\n assertEquals(2, resultMatrixPlainText0.getStdDevPrec());\n assertFalse(resultMatrixPlainText0.getDefaultShowAverage());\n assertFalse(resultMatrixPlainText0.getShowAverage());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixPlainText0.stdDevWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixPlainText0.significanceWidthTipText());\n assertTrue(resultMatrixPlainText0.getDefaultEnumerateColNames());\n assertEquals(1, resultMatrixPlainText0.getRowCount());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateRowNamesTipText());\n assertEquals(1, resultMatrixPlainText0.getVisibleRowCount());\n assertEquals(5, resultMatrixPlainText0.getCountWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultMeanWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixPlainText0.countWidthTipText());\n assertEquals(25, resultMatrixPlainText0.getDefaultRowNameWidth());\n assertFalse(resultMatrixPlainText0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixPlainText0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixPlainText0.showStdDevTipText());\n \n int[] intArray0 = new int[6];\n intArray0[0] = 2;\n intArray0[1] = 1;\n intArray0[2] = 0;\n resultMatrixPlainText0.setPrintRowNames(true);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertFalse(resultMatrixPlainText0.getRemoveFilterName());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixPlainText0.showAverageTipText());\n assertTrue(resultMatrixPlainText0.getPrintRowNames());\n assertEquals(1, resultMatrixPlainText0.getVisibleColCount());\n assertEquals(2, resultMatrixPlainText0.getDefaultMeanPrec());\n assertFalse(resultMatrixPlainText0.getDefaultShowStdDev());\n assertEquals(0, resultMatrixPlainText0.getDefaultStdDevWidth());\n assertEquals(\"Generates the output as plain text (for fixed width fonts).\", resultMatrixPlainText0.globalInfo());\n assertEquals(1, resultMatrixPlainText0.getColCount());\n assertEquals(2, resultMatrixPlainText0.getDefaultStdDevPrec());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixPlainText0.printColNamesTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateColNamesTipText());\n assertEquals(5, resultMatrixPlainText0.getDefaultCountWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixPlainText0.colNameWidthTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixPlainText0.printRowNamesTipText());\n assertTrue(resultMatrixPlainText0.getPrintColNames());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixPlainText0.meanPrecTipText());\n assertEquals(0, resultMatrixPlainText0.getStdDevWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixPlainText0.removeFilterNameTipText());\n assertTrue(resultMatrixPlainText0.getEnumerateColNames());\n assertFalse(resultMatrixPlainText0.getShowStdDev());\n assertEquals(0, resultMatrixPlainText0.getColNameWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixPlainText0.rowNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixPlainText0.stdDevPrecTipText());\n assertTrue(resultMatrixPlainText0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixPlainText0.getMeanWidth());\n assertEquals(\"Plain Text\", resultMatrixPlainText0.getDisplayName());\n assertEquals(25, resultMatrixPlainText0.getRowNameWidth());\n assertEquals(0, resultMatrixPlainText0.getSignificanceWidth());\n assertFalse(resultMatrixPlainText0.getEnumerateRowNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixPlainText0.meanWidthTipText());\n assertTrue(resultMatrixPlainText0.getDefaultPrintRowNames());\n assertEquals(2, resultMatrixPlainText0.getMeanPrec());\n assertEquals(2, resultMatrixPlainText0.getStdDevPrec());\n assertFalse(resultMatrixPlainText0.getDefaultShowAverage());\n assertFalse(resultMatrixPlainText0.getShowAverage());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixPlainText0.stdDevWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixPlainText0.significanceWidthTipText());\n assertTrue(resultMatrixPlainText0.getDefaultEnumerateColNames());\n assertEquals(1, resultMatrixPlainText0.getRowCount());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateRowNamesTipText());\n assertEquals(1, resultMatrixPlainText0.getVisibleRowCount());\n assertEquals(5, resultMatrixPlainText0.getCountWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultMeanWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixPlainText0.countWidthTipText());\n assertEquals(25, resultMatrixPlainText0.getDefaultRowNameWidth());\n assertFalse(resultMatrixPlainText0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixPlainText0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixPlainText0.showStdDevTipText());\n \n intArray0[3] = (-82);\n intArray0[4] = 0;\n int[][] intArray1 = new int[5][7];\n intArray1[0] = intArray0;\n intArray1[1] = intArray0;\n intArray1[2] = intArray0;\n intArray1[3] = intArray0;\n intArray1[4] = intArray0;\n resultMatrixPlainText0.setSummary(intArray1, intArray1);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(5, intArray1.length);\n assertFalse(resultMatrixPlainText0.getRemoveFilterName());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixPlainText0.showAverageTipText());\n assertTrue(resultMatrixPlainText0.getPrintRowNames());\n assertEquals(1, resultMatrixPlainText0.getVisibleColCount());\n assertEquals(2, resultMatrixPlainText0.getDefaultMeanPrec());\n assertFalse(resultMatrixPlainText0.getDefaultShowStdDev());\n assertEquals(0, resultMatrixPlainText0.getDefaultStdDevWidth());\n assertEquals(\"Generates the output as plain text (for fixed width fonts).\", resultMatrixPlainText0.globalInfo());\n assertEquals(1, resultMatrixPlainText0.getColCount());\n assertEquals(2, resultMatrixPlainText0.getDefaultStdDevPrec());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixPlainText0.printColNamesTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateColNamesTipText());\n assertEquals(5, resultMatrixPlainText0.getDefaultCountWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixPlainText0.colNameWidthTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixPlainText0.printRowNamesTipText());\n assertTrue(resultMatrixPlainText0.getPrintColNames());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixPlainText0.meanPrecTipText());\n assertEquals(0, resultMatrixPlainText0.getStdDevWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixPlainText0.removeFilterNameTipText());\n assertTrue(resultMatrixPlainText0.getEnumerateColNames());\n assertFalse(resultMatrixPlainText0.getShowStdDev());\n assertEquals(0, resultMatrixPlainText0.getColNameWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixPlainText0.rowNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixPlainText0.stdDevPrecTipText());\n assertTrue(resultMatrixPlainText0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixPlainText0.getMeanWidth());\n assertEquals(\"Plain Text\", resultMatrixPlainText0.getDisplayName());\n assertEquals(25, resultMatrixPlainText0.getRowNameWidth());\n assertEquals(0, resultMatrixPlainText0.getSignificanceWidth());\n assertFalse(resultMatrixPlainText0.getEnumerateRowNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixPlainText0.meanWidthTipText());\n assertTrue(resultMatrixPlainText0.getDefaultPrintRowNames());\n assertEquals(2, resultMatrixPlainText0.getMeanPrec());\n assertEquals(2, resultMatrixPlainText0.getStdDevPrec());\n assertFalse(resultMatrixPlainText0.getDefaultShowAverage());\n assertFalse(resultMatrixPlainText0.getShowAverage());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixPlainText0.stdDevWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixPlainText0.significanceWidthTipText());\n assertTrue(resultMatrixPlainText0.getDefaultEnumerateColNames());\n assertEquals(1, resultMatrixPlainText0.getRowCount());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateRowNamesTipText());\n assertEquals(1, resultMatrixPlainText0.getVisibleRowCount());\n assertEquals(5, resultMatrixPlainText0.getCountWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultMeanWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixPlainText0.countWidthTipText());\n assertEquals(25, resultMatrixPlainText0.getDefaultRowNameWidth());\n assertFalse(resultMatrixPlainText0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixPlainText0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixPlainText0.showStdDevTipText());\n \n String[][] stringArray1 = resultMatrixSignificance0.toArray();\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertNotNull(stringArray1);\n assertEquals(3, stringArray1.length);\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals((-82), resultMatrixSignificance0.getRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n \n intArray0[5] = 2;\n resultMatrixPlainText0.m_RankingLosses = intArray0;\n assertFalse(resultMatrixPlainText0.getRemoveFilterName());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixPlainText0.showAverageTipText());\n assertTrue(resultMatrixPlainText0.getPrintRowNames());\n assertEquals(1, resultMatrixPlainText0.getVisibleColCount());\n assertEquals(2, resultMatrixPlainText0.getDefaultMeanPrec());\n assertFalse(resultMatrixPlainText0.getDefaultShowStdDev());\n assertEquals(0, resultMatrixPlainText0.getDefaultStdDevWidth());\n assertEquals(\"Generates the output as plain text (for fixed width fonts).\", resultMatrixPlainText0.globalInfo());\n assertEquals(1, resultMatrixPlainText0.getColCount());\n assertEquals(2, resultMatrixPlainText0.getDefaultStdDevPrec());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixPlainText0.printColNamesTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateColNamesTipText());\n assertEquals(5, resultMatrixPlainText0.getDefaultCountWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixPlainText0.colNameWidthTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixPlainText0.printRowNamesTipText());\n assertTrue(resultMatrixPlainText0.getPrintColNames());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixPlainText0.meanPrecTipText());\n assertEquals(0, resultMatrixPlainText0.getStdDevWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixPlainText0.removeFilterNameTipText());\n assertTrue(resultMatrixPlainText0.getEnumerateColNames());\n assertFalse(resultMatrixPlainText0.getShowStdDev());\n assertEquals(0, resultMatrixPlainText0.getColNameWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixPlainText0.rowNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixPlainText0.stdDevPrecTipText());\n assertTrue(resultMatrixPlainText0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixPlainText0.getMeanWidth());\n assertEquals(\"Plain Text\", resultMatrixPlainText0.getDisplayName());\n assertEquals(25, resultMatrixPlainText0.getRowNameWidth());\n assertEquals(0, resultMatrixPlainText0.getSignificanceWidth());\n assertFalse(resultMatrixPlainText0.getEnumerateRowNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixPlainText0.meanWidthTipText());\n assertTrue(resultMatrixPlainText0.getDefaultPrintRowNames());\n assertEquals(2, resultMatrixPlainText0.getMeanPrec());\n assertEquals(2, resultMatrixPlainText0.getStdDevPrec());\n assertFalse(resultMatrixPlainText0.getDefaultShowAverage());\n assertFalse(resultMatrixPlainText0.getShowAverage());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixPlainText0.stdDevWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixPlainText0.significanceWidthTipText());\n assertTrue(resultMatrixPlainText0.getDefaultEnumerateColNames());\n assertEquals(1, resultMatrixPlainText0.getRowCount());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateRowNamesTipText());\n assertEquals(1, resultMatrixPlainText0.getVisibleRowCount());\n assertEquals(5, resultMatrixPlainText0.getCountWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultMeanWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixPlainText0.countWidthTipText());\n assertEquals(25, resultMatrixPlainText0.getDefaultRowNameWidth());\n assertFalse(resultMatrixPlainText0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixPlainText0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixPlainText0.showStdDevTipText());\n \n String string1 = resultMatrixPlainText0.toStringRanking();\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertNotNull(string1);\n assertFalse(string1.equals((Object)string0));\n assertEquals(\"-ranking data not set-\", string1);\n assertFalse(resultMatrixPlainText0.getRemoveFilterName());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixPlainText0.showAverageTipText());\n assertTrue(resultMatrixPlainText0.getPrintRowNames());\n assertEquals(1, resultMatrixPlainText0.getVisibleColCount());\n assertEquals(2, resultMatrixPlainText0.getDefaultMeanPrec());\n assertFalse(resultMatrixPlainText0.getDefaultShowStdDev());\n assertEquals(0, resultMatrixPlainText0.getDefaultStdDevWidth());\n assertEquals(\"Generates the output as plain text (for fixed width fonts).\", resultMatrixPlainText0.globalInfo());\n assertEquals(1, resultMatrixPlainText0.getColCount());\n assertEquals(2, resultMatrixPlainText0.getDefaultStdDevPrec());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixPlainText0.printColNamesTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateColNamesTipText());\n assertEquals(5, resultMatrixPlainText0.getDefaultCountWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixPlainText0.colNameWidthTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixPlainText0.printRowNamesTipText());\n assertTrue(resultMatrixPlainText0.getPrintColNames());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixPlainText0.meanPrecTipText());\n assertEquals(0, resultMatrixPlainText0.getStdDevWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixPlainText0.removeFilterNameTipText());\n assertTrue(resultMatrixPlainText0.getEnumerateColNames());\n assertFalse(resultMatrixPlainText0.getShowStdDev());\n assertEquals(0, resultMatrixPlainText0.getColNameWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixPlainText0.rowNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixPlainText0.stdDevPrecTipText());\n assertTrue(resultMatrixPlainText0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixPlainText0.getMeanWidth());\n assertEquals(\"Plain Text\", resultMatrixPlainText0.getDisplayName());\n assertEquals(25, resultMatrixPlainText0.getRowNameWidth());\n assertEquals(0, resultMatrixPlainText0.getSignificanceWidth());\n assertFalse(resultMatrixPlainText0.getEnumerateRowNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixPlainText0.meanWidthTipText());\n assertTrue(resultMatrixPlainText0.getDefaultPrintRowNames());\n assertEquals(2, resultMatrixPlainText0.getMeanPrec());\n assertEquals(2, resultMatrixPlainText0.getStdDevPrec());\n assertFalse(resultMatrixPlainText0.getDefaultShowAverage());\n assertFalse(resultMatrixPlainText0.getShowAverage());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixPlainText0.stdDevWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixPlainText0.significanceWidthTipText());\n assertTrue(resultMatrixPlainText0.getDefaultEnumerateColNames());\n assertEquals(1, resultMatrixPlainText0.getRowCount());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateRowNamesTipText());\n assertEquals(1, resultMatrixPlainText0.getVisibleRowCount());\n assertEquals(5, resultMatrixPlainText0.getCountWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultMeanWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixPlainText0.countWidthTipText());\n assertEquals(25, resultMatrixPlainText0.getDefaultRowNameWidth());\n assertFalse(resultMatrixPlainText0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixPlainText0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixPlainText0.showStdDevTipText());\n \n ResultMatrixGnuPlot resultMatrixGnuPlot0 = new ResultMatrixGnuPlot();\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertNotNull(resultMatrixGnuPlot0);\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n \n String string2 = resultMatrixGnuPlot0.globalInfo();\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertNotNull(string2);\n assertFalse(string2.equals((Object)string1));\n assertFalse(string2.equals((Object)string0));\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", string2);\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n }", "title": "" }, { "docid": "bcf23f2ad4e7a4255e7d966ff28f331b", "score": "0.5755625", "text": "public void updateCoverage() {\n\t\tcoverage = ((noOfNodes * coverage) + 1) / noOfNodes;\n\t}", "title": "" }, { "docid": "6e6f24aec7661e8f400cd0aa6b8e76f9", "score": "0.57544947", "text": "@Test(timeout = 4000)\n public void test156() throws Throwable {\n ResultMatrixSignificance resultMatrixSignificance0 = new ResultMatrixSignificance();\n boolean[] booleanArray0 = new boolean[5];\n booleanArray0[1] = true;\n ResultMatrixLatex resultMatrixLatex0 = new ResultMatrixLatex();\n resultMatrixLatex0.setMeanPrec(320);\n ResultMatrixGnuPlot resultMatrixGnuPlot0 = new ResultMatrixGnuPlot();\n resultMatrixGnuPlot0.setStdDevPrec(1);\n ResultMatrixSignificance resultMatrixSignificance1 = new ResultMatrixSignificance(resultMatrixLatex0);\n resultMatrixSignificance1.toStringRanking();\n ResultMatrixCSV resultMatrixCSV0 = new ResultMatrixCSV();\n ResultMatrixPlainText resultMatrixPlainText0 = new ResultMatrixPlainText(2, 2);\n ResultMatrixSignificance resultMatrixSignificance2 = new ResultMatrixSignificance(resultMatrixSignificance0);\n ResultMatrixSignificance resultMatrixSignificance3 = new ResultMatrixSignificance(0, 1814);\n ResultMatrixSignificance resultMatrixSignificance4 = new ResultMatrixSignificance(resultMatrixSignificance0);\n resultMatrixSignificance2.toStringSummary();\n resultMatrixSignificance0.setColNameWidth(1);\n ResultMatrixCSV resultMatrixCSV1 = new ResultMatrixCSV();\n resultMatrixCSV0.getDisplayName();\n ResultMatrixPlainText resultMatrixPlainText1 = new ResultMatrixPlainText();\n resultMatrixPlainText1.getDefaultStdDevWidth();\n ResultMatrixHTML resultMatrixHTML0 = new ResultMatrixHTML(resultMatrixGnuPlot0);\n resultMatrixHTML0.globalInfo();\n resultMatrixCSV0.toStringMatrix();\n resultMatrixHTML0.setMeanPrec(1622);\n resultMatrixPlainText0.getRowHidden(2);\n resultMatrixSignificance0.getVisibleRowCount();\n resultMatrixHTML0.getRevision();\n int int0 = resultMatrixSignificance4.getCountWidth();\n assertEquals(1, resultMatrixSignificance0.getColNameWidth());\n assertEquals(0, int0);\n }", "title": "" }, { "docid": "a4db4a82eb295df56fd3d771ba666a69", "score": "0.57371217", "text": "public static void main(String[] args) {\n// \r\n// //testcase 2\r\n// nilaiYangHarusDibayar = pembayaran.hitungPembayaran(4_000_000, 0.05);\r\n// System.out.println(nilaiYangHarusDibayar);\r\n// \r\n// //testcase 3\r\n// nilaiYangHarusDibayar = pembayaran.hitungPembayaran(5_000_000, 0.05);\r\n// System.out.println(nilaiYangHarusDibayar);\r\n\r\n\r\n \r\n \r\n }", "title": "" }, { "docid": "4b88dc411bfd2a2e3a021beeef57bd6a", "score": "0.57357407", "text": "@Test\n public void testKeyFactor() {\n // TODO: test KeyFactor\n }", "title": "" }, { "docid": "739d753535fcc8c2568c21b8ec7f193e", "score": "0.5735555", "text": "@Test(timeout = 4000)\n public void test097() throws Throwable {\n ResultMatrixCSV resultMatrixCSV0 = new ResultMatrixCSV();\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertNotNull(resultMatrixCSV0);\n assertFalse(resultMatrixCSV0.getEnumerateRowNames());\n assertEquals(1, resultMatrixCSV0.getRowCount());\n assertEquals(0, resultMatrixCSV0.getSignificanceWidth());\n assertFalse(resultMatrixCSV0.getPrintColNames());\n assertEquals(0, resultMatrixCSV0.getDefaultCountWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixCSV0.showStdDevTipText());\n assertEquals(25, resultMatrixCSV0.getRowNameWidth());\n assertTrue(resultMatrixCSV0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixCSV0.getDefaultShowAverage());\n assertEquals(2, resultMatrixCSV0.getMeanPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixCSV0.meanWidthTipText());\n assertEquals(2, resultMatrixCSV0.getStdDevPrec());\n assertTrue(resultMatrixCSV0.getDefaultPrintRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateRowNamesTipText());\n assertFalse(resultMatrixCSV0.getShowStdDev());\n assertTrue(resultMatrixCSV0.getEnumerateColNames());\n assertEquals(1, resultMatrixCSV0.getVisibleRowCount());\n assertEquals(0, resultMatrixCSV0.getMeanWidth());\n assertEquals(25, resultMatrixCSV0.getDefaultRowNameWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixCSV0.stdDevWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixCSV0.meanPrecTipText());\n assertEquals(2, resultMatrixCSV0.getDefaultStdDevPrec());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixCSV0.colNameWidthTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixCSV0.showAverageTipText());\n assertEquals(0, resultMatrixCSV0.getStdDevWidth());\n assertFalse(resultMatrixCSV0.getShowAverage());\n assertEquals(0, resultMatrixCSV0.getCountWidth());\n assertEquals(\"Generates the matrix in CSV ('comma-separated values') format.\", resultMatrixCSV0.globalInfo());\n assertEquals(1, resultMatrixCSV0.getVisibleColCount());\n assertEquals(\"CSV\", resultMatrixCSV0.getDisplayName());\n assertFalse(resultMatrixCSV0.getRemoveFilterName());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixCSV0.printRowNamesTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixCSV0.rowNameWidthTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixCSV0.getColNameWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixCSV0.printColNamesTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultMeanWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateColNamesTipText());\n assertFalse(resultMatrixCSV0.getDefaultShowStdDev());\n assertEquals(1, resultMatrixCSV0.getColCount());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixCSV0.stdDevPrecTipText());\n assertFalse(resultMatrixCSV0.getDefaultPrintColNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixCSV0.removeFilterNameTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixCSV0.significanceWidthTipText());\n assertFalse(resultMatrixCSV0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixCSV0.getDefaultRemoveFilterName());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixCSV0.countWidthTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultSignificanceWidth());\n assertTrue(resultMatrixCSV0.getPrintRowNames());\n assertEquals(2, resultMatrixCSV0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixCSV0.getDefaultStdDevWidth());\n \n resultMatrixCSV0.m_EnumerateRowNames = true;\n assertEquals(1, resultMatrixCSV0.getRowCount());\n assertEquals(0, resultMatrixCSV0.getSignificanceWidth());\n assertFalse(resultMatrixCSV0.getPrintColNames());\n assertEquals(0, resultMatrixCSV0.getDefaultCountWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixCSV0.showStdDevTipText());\n assertEquals(25, resultMatrixCSV0.getRowNameWidth());\n assertTrue(resultMatrixCSV0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixCSV0.getDefaultShowAverage());\n assertEquals(2, resultMatrixCSV0.getMeanPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixCSV0.meanWidthTipText());\n assertEquals(2, resultMatrixCSV0.getStdDevPrec());\n assertTrue(resultMatrixCSV0.getDefaultPrintRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateRowNamesTipText());\n assertFalse(resultMatrixCSV0.getShowStdDev());\n assertTrue(resultMatrixCSV0.getEnumerateColNames());\n assertEquals(1, resultMatrixCSV0.getVisibleRowCount());\n assertEquals(0, resultMatrixCSV0.getMeanWidth());\n assertEquals(25, resultMatrixCSV0.getDefaultRowNameWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixCSV0.stdDevWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixCSV0.meanPrecTipText());\n assertEquals(2, resultMatrixCSV0.getDefaultStdDevPrec());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixCSV0.colNameWidthTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixCSV0.showAverageTipText());\n assertEquals(0, resultMatrixCSV0.getStdDevWidth());\n assertFalse(resultMatrixCSV0.getShowAverage());\n assertEquals(0, resultMatrixCSV0.getCountWidth());\n assertEquals(\"Generates the matrix in CSV ('comma-separated values') format.\", resultMatrixCSV0.globalInfo());\n assertEquals(1, resultMatrixCSV0.getVisibleColCount());\n assertEquals(\"CSV\", resultMatrixCSV0.getDisplayName());\n assertFalse(resultMatrixCSV0.getRemoveFilterName());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixCSV0.printRowNamesTipText());\n assertTrue(resultMatrixCSV0.getEnumerateRowNames());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixCSV0.rowNameWidthTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixCSV0.getColNameWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixCSV0.printColNamesTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultMeanWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateColNamesTipText());\n assertFalse(resultMatrixCSV0.getDefaultShowStdDev());\n assertEquals(1, resultMatrixCSV0.getColCount());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixCSV0.stdDevPrecTipText());\n assertFalse(resultMatrixCSV0.getDefaultPrintColNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixCSV0.removeFilterNameTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixCSV0.significanceWidthTipText());\n assertFalse(resultMatrixCSV0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixCSV0.getDefaultRemoveFilterName());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixCSV0.countWidthTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultSignificanceWidth());\n assertTrue(resultMatrixCSV0.getPrintRowNames());\n assertEquals(2, resultMatrixCSV0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixCSV0.getDefaultStdDevWidth());\n \n String string0 = resultMatrixCSV0.countWidthTipText();\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertNotNull(string0);\n assertEquals(\"The width of the counts (0 = optimal).\", string0);\n assertEquals(1, resultMatrixCSV0.getRowCount());\n assertEquals(0, resultMatrixCSV0.getSignificanceWidth());\n assertFalse(resultMatrixCSV0.getPrintColNames());\n assertEquals(0, resultMatrixCSV0.getDefaultCountWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixCSV0.showStdDevTipText());\n assertEquals(25, resultMatrixCSV0.getRowNameWidth());\n assertTrue(resultMatrixCSV0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixCSV0.getDefaultShowAverage());\n assertEquals(2, resultMatrixCSV0.getMeanPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixCSV0.meanWidthTipText());\n assertEquals(2, resultMatrixCSV0.getStdDevPrec());\n assertTrue(resultMatrixCSV0.getDefaultPrintRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateRowNamesTipText());\n assertFalse(resultMatrixCSV0.getShowStdDev());\n assertTrue(resultMatrixCSV0.getEnumerateColNames());\n assertEquals(1, resultMatrixCSV0.getVisibleRowCount());\n assertEquals(0, resultMatrixCSV0.getMeanWidth());\n assertEquals(25, resultMatrixCSV0.getDefaultRowNameWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixCSV0.stdDevWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixCSV0.meanPrecTipText());\n assertEquals(2, resultMatrixCSV0.getDefaultStdDevPrec());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixCSV0.colNameWidthTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixCSV0.showAverageTipText());\n assertEquals(0, resultMatrixCSV0.getStdDevWidth());\n assertFalse(resultMatrixCSV0.getShowAverage());\n assertEquals(0, resultMatrixCSV0.getCountWidth());\n assertEquals(\"Generates the matrix in CSV ('comma-separated values') format.\", resultMatrixCSV0.globalInfo());\n assertEquals(1, resultMatrixCSV0.getVisibleColCount());\n assertEquals(\"CSV\", resultMatrixCSV0.getDisplayName());\n assertFalse(resultMatrixCSV0.getRemoveFilterName());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixCSV0.printRowNamesTipText());\n assertTrue(resultMatrixCSV0.getEnumerateRowNames());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixCSV0.rowNameWidthTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixCSV0.getColNameWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixCSV0.printColNamesTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultMeanWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateColNamesTipText());\n assertFalse(resultMatrixCSV0.getDefaultShowStdDev());\n assertEquals(1, resultMatrixCSV0.getColCount());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixCSV0.stdDevPrecTipText());\n assertFalse(resultMatrixCSV0.getDefaultPrintColNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixCSV0.removeFilterNameTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixCSV0.significanceWidthTipText());\n assertFalse(resultMatrixCSV0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixCSV0.getDefaultRemoveFilterName());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixCSV0.countWidthTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultSignificanceWidth());\n assertTrue(resultMatrixCSV0.getPrintRowNames());\n assertEquals(2, resultMatrixCSV0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixCSV0.getDefaultStdDevWidth());\n \n resultMatrixCSV0.m_ShowAverage = true;\n assertEquals(1, resultMatrixCSV0.getRowCount());\n assertEquals(0, resultMatrixCSV0.getSignificanceWidth());\n assertFalse(resultMatrixCSV0.getPrintColNames());\n assertEquals(0, resultMatrixCSV0.getDefaultCountWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixCSV0.showStdDevTipText());\n assertEquals(25, resultMatrixCSV0.getRowNameWidth());\n assertTrue(resultMatrixCSV0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixCSV0.getDefaultShowAverage());\n assertEquals(2, resultMatrixCSV0.getMeanPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixCSV0.meanWidthTipText());\n assertEquals(2, resultMatrixCSV0.getStdDevPrec());\n assertTrue(resultMatrixCSV0.getDefaultPrintRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateRowNamesTipText());\n assertFalse(resultMatrixCSV0.getShowStdDev());\n assertTrue(resultMatrixCSV0.getEnumerateColNames());\n assertEquals(1, resultMatrixCSV0.getVisibleRowCount());\n assertEquals(0, resultMatrixCSV0.getMeanWidth());\n assertEquals(25, resultMatrixCSV0.getDefaultRowNameWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixCSV0.stdDevWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixCSV0.meanPrecTipText());\n assertEquals(2, resultMatrixCSV0.getDefaultStdDevPrec());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixCSV0.colNameWidthTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixCSV0.showAverageTipText());\n assertEquals(0, resultMatrixCSV0.getStdDevWidth());\n assertEquals(0, resultMatrixCSV0.getCountWidth());\n assertEquals(\"Generates the matrix in CSV ('comma-separated values') format.\", resultMatrixCSV0.globalInfo());\n assertEquals(1, resultMatrixCSV0.getVisibleColCount());\n assertEquals(\"CSV\", resultMatrixCSV0.getDisplayName());\n assertFalse(resultMatrixCSV0.getRemoveFilterName());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixCSV0.printRowNamesTipText());\n assertTrue(resultMatrixCSV0.getEnumerateRowNames());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixCSV0.rowNameWidthTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixCSV0.getColNameWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixCSV0.printColNamesTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultMeanWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateColNamesTipText());\n assertFalse(resultMatrixCSV0.getDefaultShowStdDev());\n assertEquals(1, resultMatrixCSV0.getColCount());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixCSV0.stdDevPrecTipText());\n assertFalse(resultMatrixCSV0.getDefaultPrintColNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixCSV0.removeFilterNameTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixCSV0.significanceWidthTipText());\n assertFalse(resultMatrixCSV0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixCSV0.getDefaultRemoveFilterName());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixCSV0.countWidthTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultSignificanceWidth());\n assertTrue(resultMatrixCSV0.getShowAverage());\n assertTrue(resultMatrixCSV0.getPrintRowNames());\n assertEquals(2, resultMatrixCSV0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixCSV0.getDefaultStdDevWidth());\n \n ResultMatrixPlainText resultMatrixPlainText0 = new ResultMatrixPlainText(resultMatrixCSV0);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertNotNull(resultMatrixPlainText0);\n assertEquals(1, resultMatrixCSV0.getRowCount());\n assertEquals(0, resultMatrixCSV0.getSignificanceWidth());\n assertFalse(resultMatrixCSV0.getPrintColNames());\n assertEquals(0, resultMatrixCSV0.getDefaultCountWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixCSV0.showStdDevTipText());\n assertEquals(25, resultMatrixCSV0.getRowNameWidth());\n assertTrue(resultMatrixCSV0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixCSV0.getDefaultShowAverage());\n assertEquals(2, resultMatrixCSV0.getMeanPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixCSV0.meanWidthTipText());\n assertEquals(2, resultMatrixCSV0.getStdDevPrec());\n assertTrue(resultMatrixCSV0.getDefaultPrintRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateRowNamesTipText());\n assertFalse(resultMatrixCSV0.getShowStdDev());\n assertTrue(resultMatrixCSV0.getEnumerateColNames());\n assertEquals(1, resultMatrixCSV0.getVisibleRowCount());\n assertEquals(0, resultMatrixCSV0.getMeanWidth());\n assertEquals(25, resultMatrixCSV0.getDefaultRowNameWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixCSV0.stdDevWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixCSV0.meanPrecTipText());\n assertEquals(2, resultMatrixCSV0.getDefaultStdDevPrec());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixCSV0.colNameWidthTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixCSV0.showAverageTipText());\n assertEquals(0, resultMatrixCSV0.getStdDevWidth());\n assertEquals(0, resultMatrixCSV0.getCountWidth());\n assertEquals(\"Generates the matrix in CSV ('comma-separated values') format.\", resultMatrixCSV0.globalInfo());\n assertEquals(1, resultMatrixCSV0.getVisibleColCount());\n assertEquals(\"CSV\", resultMatrixCSV0.getDisplayName());\n assertFalse(resultMatrixCSV0.getRemoveFilterName());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixCSV0.printRowNamesTipText());\n assertTrue(resultMatrixCSV0.getEnumerateRowNames());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixCSV0.rowNameWidthTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixCSV0.getColNameWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixCSV0.printColNamesTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultMeanWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateColNamesTipText());\n assertFalse(resultMatrixCSV0.getDefaultShowStdDev());\n assertEquals(1, resultMatrixCSV0.getColCount());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixCSV0.stdDevPrecTipText());\n assertFalse(resultMatrixCSV0.getDefaultPrintColNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixCSV0.removeFilterNameTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixCSV0.significanceWidthTipText());\n assertFalse(resultMatrixCSV0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixCSV0.getDefaultRemoveFilterName());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixCSV0.countWidthTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultSignificanceWidth());\n assertTrue(resultMatrixCSV0.getShowAverage());\n assertTrue(resultMatrixCSV0.getPrintRowNames());\n assertEquals(2, resultMatrixCSV0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixCSV0.getDefaultStdDevWidth());\n assertFalse(resultMatrixPlainText0.getPrintColNames());\n assertFalse(resultMatrixPlainText0.getDefaultShowAverage());\n assertEquals(2, resultMatrixPlainText0.getMeanPrec());\n assertEquals(0, resultMatrixPlainText0.getSignificanceWidth());\n assertEquals(1, resultMatrixPlainText0.getRowCount());\n assertFalse(resultMatrixPlainText0.getDefaultRemoveFilterName());\n assertTrue(resultMatrixPlainText0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixPlainText0.stdDevWidthTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixPlainText0.meanWidthTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixPlainText0.countWidthTipText());\n assertEquals(5, resultMatrixPlainText0.getDefaultCountWidth());\n assertFalse(resultMatrixPlainText0.getDefaultShowStdDev());\n assertEquals(1, resultMatrixPlainText0.getVisibleRowCount());\n assertEquals(0, resultMatrixPlainText0.getDefaultSignificanceWidth());\n assertTrue(resultMatrixPlainText0.getShowAverage());\n assertTrue(resultMatrixPlainText0.getDefaultPrintRowNames());\n assertEquals(2, resultMatrixPlainText0.getStdDevPrec());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateRowNamesTipText());\n assertFalse(resultMatrixPlainText0.getDefaultEnumerateRowNames());\n assertEquals(25, resultMatrixPlainText0.getDefaultRowNameWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixPlainText0.showStdDevTipText());\n assertEquals(0, resultMatrixPlainText0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultStdDevWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateColNamesTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixPlainText0.colNameWidthTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixPlainText0.printColNamesTipText());\n assertEquals(\"Generates the output as plain text (for fixed width fonts).\", resultMatrixPlainText0.globalInfo());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixPlainText0.stdDevPrecTipText());\n assertFalse(resultMatrixPlainText0.getRemoveFilterName());\n assertEquals(1, resultMatrixPlainText0.getColCount());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixPlainText0.showAverageTipText());\n assertTrue(resultMatrixPlainText0.getPrintRowNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixPlainText0.removeFilterNameTipText());\n assertTrue(resultMatrixPlainText0.getEnumerateRowNames());\n assertEquals(2, resultMatrixPlainText0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixPlainText0.getCountWidth());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixPlainText0.printRowNamesTipText());\n assertEquals(1, resultMatrixPlainText0.getVisibleColCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixPlainText0.meanPrecTipText());\n assertFalse(resultMatrixPlainText0.getShowStdDev());\n assertEquals(2, resultMatrixPlainText0.getDefaultStdDevPrec());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixPlainText0.significanceWidthTipText());\n assertEquals(0, resultMatrixPlainText0.getStdDevWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixPlainText0.rowNameWidthTipText());\n assertTrue(resultMatrixPlainText0.getEnumerateColNames());\n assertEquals(25, resultMatrixPlainText0.getRowNameWidth());\n assertEquals(\"Plain Text\", resultMatrixPlainText0.getDisplayName());\n assertTrue(resultMatrixPlainText0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixPlainText0.getColNameWidth());\n assertEquals(0, resultMatrixPlainText0.getMeanWidth());\n \n ResultMatrixGnuPlot resultMatrixGnuPlot0 = new ResultMatrixGnuPlot();\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertNotNull(resultMatrixGnuPlot0);\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n \n String[] stringArray0 = new String[6];\n stringArray0[0] = \" \";\n int[] intArray0 = new int[2];\n intArray0[0] = 0;\n intArray0[1] = 0;\n resultMatrixPlainText0.setRowOrder(intArray0);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertArrayEquals(new int[] {0, 0}, intArray0);\n assertEquals(2, intArray0.length);\n assertEquals(1, resultMatrixCSV0.getRowCount());\n assertEquals(0, resultMatrixCSV0.getSignificanceWidth());\n assertFalse(resultMatrixCSV0.getPrintColNames());\n assertEquals(0, resultMatrixCSV0.getDefaultCountWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixCSV0.showStdDevTipText());\n assertEquals(25, resultMatrixCSV0.getRowNameWidth());\n assertTrue(resultMatrixCSV0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixCSV0.getDefaultShowAverage());\n assertEquals(2, resultMatrixCSV0.getMeanPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixCSV0.meanWidthTipText());\n assertEquals(2, resultMatrixCSV0.getStdDevPrec());\n assertTrue(resultMatrixCSV0.getDefaultPrintRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateRowNamesTipText());\n assertFalse(resultMatrixCSV0.getShowStdDev());\n assertTrue(resultMatrixCSV0.getEnumerateColNames());\n assertEquals(1, resultMatrixCSV0.getVisibleRowCount());\n assertEquals(0, resultMatrixCSV0.getMeanWidth());\n assertEquals(25, resultMatrixCSV0.getDefaultRowNameWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixCSV0.stdDevWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixCSV0.meanPrecTipText());\n assertEquals(2, resultMatrixCSV0.getDefaultStdDevPrec());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixCSV0.colNameWidthTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixCSV0.showAverageTipText());\n assertEquals(0, resultMatrixCSV0.getStdDevWidth());\n assertEquals(0, resultMatrixCSV0.getCountWidth());\n assertEquals(\"Generates the matrix in CSV ('comma-separated values') format.\", resultMatrixCSV0.globalInfo());\n assertEquals(1, resultMatrixCSV0.getVisibleColCount());\n assertEquals(\"CSV\", resultMatrixCSV0.getDisplayName());\n assertFalse(resultMatrixCSV0.getRemoveFilterName());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixCSV0.printRowNamesTipText());\n assertTrue(resultMatrixCSV0.getEnumerateRowNames());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixCSV0.rowNameWidthTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixCSV0.getColNameWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixCSV0.printColNamesTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultMeanWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateColNamesTipText());\n assertFalse(resultMatrixCSV0.getDefaultShowStdDev());\n assertEquals(1, resultMatrixCSV0.getColCount());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixCSV0.stdDevPrecTipText());\n assertFalse(resultMatrixCSV0.getDefaultPrintColNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixCSV0.removeFilterNameTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixCSV0.significanceWidthTipText());\n assertFalse(resultMatrixCSV0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixCSV0.getDefaultRemoveFilterName());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixCSV0.countWidthTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultSignificanceWidth());\n assertTrue(resultMatrixCSV0.getShowAverage());\n assertTrue(resultMatrixCSV0.getPrintRowNames());\n assertEquals(2, resultMatrixCSV0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixCSV0.getDefaultStdDevWidth());\n assertFalse(resultMatrixPlainText0.getPrintColNames());\n assertFalse(resultMatrixPlainText0.getDefaultShowAverage());\n assertEquals(2, resultMatrixPlainText0.getMeanPrec());\n assertEquals(0, resultMatrixPlainText0.getSignificanceWidth());\n assertEquals(1, resultMatrixPlainText0.getRowCount());\n assertFalse(resultMatrixPlainText0.getDefaultRemoveFilterName());\n assertTrue(resultMatrixPlainText0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixPlainText0.stdDevWidthTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixPlainText0.meanWidthTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixPlainText0.countWidthTipText());\n assertEquals(5, resultMatrixPlainText0.getDefaultCountWidth());\n assertFalse(resultMatrixPlainText0.getDefaultShowStdDev());\n assertEquals(1, resultMatrixPlainText0.getVisibleRowCount());\n assertEquals(0, resultMatrixPlainText0.getDefaultSignificanceWidth());\n assertTrue(resultMatrixPlainText0.getShowAverage());\n assertTrue(resultMatrixPlainText0.getDefaultPrintRowNames());\n assertEquals(2, resultMatrixPlainText0.getStdDevPrec());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateRowNamesTipText());\n assertFalse(resultMatrixPlainText0.getDefaultEnumerateRowNames());\n assertEquals(25, resultMatrixPlainText0.getDefaultRowNameWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixPlainText0.showStdDevTipText());\n assertEquals(0, resultMatrixPlainText0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultStdDevWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateColNamesTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixPlainText0.colNameWidthTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixPlainText0.printColNamesTipText());\n assertEquals(\"Generates the output as plain text (for fixed width fonts).\", resultMatrixPlainText0.globalInfo());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixPlainText0.stdDevPrecTipText());\n assertFalse(resultMatrixPlainText0.getRemoveFilterName());\n assertEquals(1, resultMatrixPlainText0.getColCount());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixPlainText0.showAverageTipText());\n assertTrue(resultMatrixPlainText0.getPrintRowNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixPlainText0.removeFilterNameTipText());\n assertTrue(resultMatrixPlainText0.getEnumerateRowNames());\n assertEquals(2, resultMatrixPlainText0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixPlainText0.getCountWidth());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixPlainText0.printRowNamesTipText());\n assertEquals(1, resultMatrixPlainText0.getVisibleColCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixPlainText0.meanPrecTipText());\n assertFalse(resultMatrixPlainText0.getShowStdDev());\n assertEquals(2, resultMatrixPlainText0.getDefaultStdDevPrec());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixPlainText0.significanceWidthTipText());\n assertEquals(0, resultMatrixPlainText0.getStdDevWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixPlainText0.rowNameWidthTipText());\n assertTrue(resultMatrixPlainText0.getEnumerateColNames());\n assertEquals(25, resultMatrixPlainText0.getRowNameWidth());\n assertEquals(\"Plain Text\", resultMatrixPlainText0.getDisplayName());\n assertTrue(resultMatrixPlainText0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixPlainText0.getColNameWidth());\n assertEquals(0, resultMatrixPlainText0.getMeanWidth());\n \n stringArray0[1] = \"*\";\n stringArray0[2] = \"\";\n stringArray0[4] = \"v\";\n stringArray0[5] = \"*\";\n ResultMatrixHTML.main(stringArray0);\n assertEquals(6, stringArray0.length);\n \n resultMatrixCSV0.setStdDev((-614), (-1344), 1.0E-6);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, resultMatrixCSV0.getRowCount());\n assertEquals(0, resultMatrixCSV0.getSignificanceWidth());\n assertFalse(resultMatrixCSV0.getPrintColNames());\n assertEquals(0, resultMatrixCSV0.getDefaultCountWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixCSV0.showStdDevTipText());\n assertEquals(25, resultMatrixCSV0.getRowNameWidth());\n assertTrue(resultMatrixCSV0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixCSV0.getDefaultShowAverage());\n assertEquals(2, resultMatrixCSV0.getMeanPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixCSV0.meanWidthTipText());\n assertEquals(2, resultMatrixCSV0.getStdDevPrec());\n assertTrue(resultMatrixCSV0.getDefaultPrintRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateRowNamesTipText());\n assertFalse(resultMatrixCSV0.getShowStdDev());\n assertTrue(resultMatrixCSV0.getEnumerateColNames());\n assertEquals(1, resultMatrixCSV0.getVisibleRowCount());\n assertEquals(0, resultMatrixCSV0.getMeanWidth());\n assertEquals(25, resultMatrixCSV0.getDefaultRowNameWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixCSV0.stdDevWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixCSV0.meanPrecTipText());\n assertEquals(2, resultMatrixCSV0.getDefaultStdDevPrec());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixCSV0.colNameWidthTipText());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixCSV0.showAverageTipText());\n assertEquals(0, resultMatrixCSV0.getStdDevWidth());\n assertEquals(0, resultMatrixCSV0.getCountWidth());\n assertEquals(\"Generates the matrix in CSV ('comma-separated values') format.\", resultMatrixCSV0.globalInfo());\n assertEquals(1, resultMatrixCSV0.getVisibleColCount());\n assertEquals(\"CSV\", resultMatrixCSV0.getDisplayName());\n assertFalse(resultMatrixCSV0.getRemoveFilterName());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixCSV0.printRowNamesTipText());\n assertTrue(resultMatrixCSV0.getEnumerateRowNames());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixCSV0.rowNameWidthTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixCSV0.getColNameWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixCSV0.printColNamesTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultMeanWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateColNamesTipText());\n assertFalse(resultMatrixCSV0.getDefaultShowStdDev());\n assertEquals(1, resultMatrixCSV0.getColCount());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixCSV0.stdDevPrecTipText());\n assertFalse(resultMatrixCSV0.getDefaultPrintColNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixCSV0.removeFilterNameTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixCSV0.significanceWidthTipText());\n assertFalse(resultMatrixCSV0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixCSV0.getDefaultRemoveFilterName());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixCSV0.countWidthTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultSignificanceWidth());\n assertTrue(resultMatrixCSV0.getShowAverage());\n assertTrue(resultMatrixCSV0.getPrintRowNames());\n assertEquals(2, resultMatrixCSV0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixCSV0.getDefaultStdDevWidth());\n }", "title": "" }, { "docid": "52fd5e5f2a010413f2c56e1b20ebc685", "score": "0.57354504", "text": "@Test\n\tpublic void testDamaged() {\n\t}", "title": "" }, { "docid": "5bf8d5dbfa22705cd890f85a37101a2d", "score": "0.573028", "text": "@org.junit.Test(timeout = 10000)\n public void testSizing_cf57160_failAssert16_add61758() throws java.io.IOException {\n // AssertGenerator generate try/catch block with fail statement\n try {\n com.clearspring.analytics.stream.membership.BloomFilter f = null;\n // MethodAssertGenerator build local variable\n Object o_2_0 = (f = new com.clearspring.analytics.stream.membership.BloomFilter(10, 0.05)).buckets();\n // AssertGenerator add assertion\n org.junit.Assert.assertEquals(o_2_0, 128);\n // MethodAssertGenerator build local variable\n Object o_8_0 = new com.clearspring.analytics.stream.membership.BloomFilter(100, 0.05).buckets();\n // AssertGenerator add assertion\n org.junit.Assert.assertEquals(o_8_0, 768);\n // MethodAssertGenerator build local variable\n Object o_11_0 = new com.clearspring.analytics.stream.membership.BloomFilter(1000, 0.05).buckets();\n // AssertGenerator add assertion\n org.junit.Assert.assertEquals(o_11_0, 7040);\n // MethodAssertGenerator build local variable\n Object o_14_0 = new com.clearspring.analytics.stream.membership.BloomFilter(10000, 0.05).buckets();\n // AssertGenerator add assertion\n org.junit.Assert.assertEquals(o_14_0, 70080);\n // MethodAssertGenerator build local variable\n Object o_17_0 = new com.clearspring.analytics.stream.membership.BloomFilter(100000, 0.05).buckets();\n // AssertGenerator add assertion\n org.junit.Assert.assertEquals(o_17_0, 700032);\n // MethodAssertGenerator build local variable\n Object o_20_0 = new com.clearspring.analytics.stream.membership.BloomFilter(1000000, 0.05).buckets();\n // AssertGenerator add assertion\n org.junit.Assert.assertEquals(o_20_0, 7000064);\n // MethodAssertGenerator build local variable\n Object o_23_0 = new com.clearspring.analytics.stream.membership.BloomFilter(10, 0.01).buckets();\n // AssertGenerator add assertion\n org.junit.Assert.assertEquals(o_23_0, 128);\n // MethodAssertGenerator build local variable\n Object o_26_0 = new com.clearspring.analytics.stream.membership.BloomFilter(100, 0.01).buckets();\n // AssertGenerator add assertion\n org.junit.Assert.assertEquals(o_26_0, 1024);\n // MethodAssertGenerator build local variable\n Object o_29_0 = (f = new com.clearspring.analytics.stream.membership.BloomFilter(1000, 0.01)).buckets();\n // AssertGenerator add assertion\n org.junit.Assert.assertEquals(o_29_0, 10048);\n // MethodAssertGenerator build local variable\n Object o_35_0 = (f = new com.clearspring.analytics.stream.membership.BloomFilter(10000, 0.01)).buckets();\n // AssertGenerator add assertion\n org.junit.Assert.assertEquals(o_35_0, 100032);\n // MethodAssertGenerator build local variable\n Object o_41_0 = (f = new com.clearspring.analytics.stream.membership.BloomFilter(100000, 0.01)).buckets();\n // AssertGenerator add assertion\n org.junit.Assert.assertEquals(o_41_0, 1000064);\n // MethodAssertGenerator build local variable\n Object o_47_0 = (f = new com.clearspring.analytics.stream.membership.BloomFilter(1000000, 0.01)).buckets();\n // AssertGenerator add assertion\n org.junit.Assert.assertEquals(o_47_0, 10000064);\n for (java.lang.String s : new com.clearspring.analytics.stream.membership.KeyGenerator.RandomStringGenerator(new java.util.Random().nextInt(), 1000000)) {\n // MethodCallAdder\n f.add(s);\n // AssertGenerator add assertion\n org.junit.Assert.assertEquals(((com.clearspring.analytics.stream.membership.BloomFilter)f).getHashCount(), 5);\n // AssertGenerator add assertion\n org.junit.Assert.assertEquals(((com.clearspring.analytics.stream.membership.BloomFilter)f).buckets(), 10000064);\n f.add(s);\n }\n // MethodAssertGenerator build local variable\n Object o_60_0 = f.buckets();\n // AssertGenerator add assertion\n org.junit.Assert.assertEquals(o_60_0, 10000064);\n // StatementAdderOnAssert create null value\n com.clearspring.analytics.stream.membership.BloomFilter vc_13046 = (com.clearspring.analytics.stream.membership.BloomFilter)null;\n // AssertGenerator add assertion\n org.junit.Assert.assertNull(vc_13046);\n // StatementAdderMethod cloned existing statement\n vc_13046.tserializer();\n org.junit.Assert.fail(\"testSizing_cf57160 should have thrown NullPointerException\");\n } catch (java.lang.NullPointerException eee) {\n }\n }", "title": "" }, { "docid": "c5feb6a1c99a5b5706afd76ec76c8ac7", "score": "0.5729896", "text": "@org.junit.Test(timeout = 10000)\n public void testGetFalsePositiveProbability_cf7625() {\n // These probabilities are taken from the bloom filter probability table at\n // http://pages.cs.wisc.edu/~cao/papers/summary-cache/node8.html\n java.lang.System.out.println(\"expectedFalsePositiveProbability\");\n com.clearspring.analytics.stream.membership.BloomFilter instance = new com.clearspring.analytics.stream.membership.BloomFilter(100, 10);\n double expResult = 0.00819;// m/n=10, k=7\n \n double result = com.clearspring.analytics.stream.membership.BloomCalculations.getFalsePositiveProbability(10, 7);\n org.junit.Assert.assertEquals(7, instance.getHashCount());\n org.junit.Assert.assertEquals(expResult, result, 9.0E-6);\n instance = new com.clearspring.analytics.stream.membership.BloomFilter(10, 10);\n expResult = 0.00819;// m/n=10, k=7\n \n result = com.clearspring.analytics.stream.membership.BloomCalculations.getFalsePositiveProbability(10, 7);\n org.junit.Assert.assertEquals(7, instance.getHashCount());\n org.junit.Assert.assertEquals(expResult, result, 9.0E-6);\n instance = new com.clearspring.analytics.stream.membership.BloomFilter(10, 2);\n expResult = 0.393;// m/n=2, k=1\n \n result = com.clearspring.analytics.stream.membership.BloomCalculations.getFalsePositiveProbability(2, 1);\n org.junit.Assert.assertEquals(instance.getHashCount(), 1);\n org.junit.Assert.assertEquals(expResult, result, 5.0E-4);\n instance = new com.clearspring.analytics.stream.membership.BloomFilter(10, 11);\n expResult = 0.00509;// m/n=11, k=8\n \n result = com.clearspring.analytics.stream.membership.BloomCalculations.getFalsePositiveProbability(11, 8);\n org.junit.Assert.assertEquals(8, instance.getHashCount());\n // StatementAdderOnAssert create null value\n com.clearspring.analytics.stream.membership.Filter[] vc_1558 = (com.clearspring.analytics.stream.membership.Filter[])null;\n // StatementAddOnAssert local variable replacement\n com.clearspring.analytics.stream.membership.BloomFilter mergeBf = ((com.clearspring.analytics.stream.membership.BloomFilter) (bf2.merge(bf)));\n // AssertGenerator replace invocation\n com.clearspring.analytics.stream.membership.Filter o_testGetFalsePositiveProbability_cf7625__44 = // StatementAdderMethod cloned existing statement\nmergeBf.merge(vc_1558);\n // AssertGenerator add assertion\n org.junit.Assert.assertEquals(((com.clearspring.analytics.stream.membership.BloomFilter)o_testGetFalsePositiveProbability_cf7625__44).getHashCount(), 10);\n // AssertGenerator add assertion\n org.junit.Assert.assertEquals(((com.clearspring.analytics.stream.membership.BloomFilter)o_testGetFalsePositiveProbability_cf7625__44).buckets(), 150080);\n org.junit.Assert.assertEquals(expResult, result, 1.0E-5);\n }", "title": "" }, { "docid": "4c61af1cc01dc52825206caa3d7253af", "score": "0.57284534", "text": "@Test(timeout = 4000)\n public void test137() throws Throwable {\n ResultMatrixCSV resultMatrixCSV0 = new ResultMatrixCSV();\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertNotNull(resultMatrixCSV0);\n assertEquals(0, resultMatrixCSV0.getSignificanceWidth());\n assertEquals(25, resultMatrixCSV0.getRowNameWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixCSV0.showStdDevTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultCountWidth());\n assertEquals(1, resultMatrixCSV0.getRowCount());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixCSV0.stdDevWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixCSV0.significanceWidthTipText());\n assertEquals(25, resultMatrixCSV0.getDefaultRowNameWidth());\n assertFalse(resultMatrixCSV0.getEnumerateRowNames());\n assertEquals(2, resultMatrixCSV0.getStdDevPrec());\n assertFalse(resultMatrixCSV0.getDefaultShowAverage());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixCSV0.meanWidthTipText());\n assertFalse(resultMatrixCSV0.getPrintColNames());\n assertEquals(2, resultMatrixCSV0.getMeanPrec());\n assertFalse(resultMatrixCSV0.getShowStdDev());\n assertTrue(resultMatrixCSV0.getDefaultPrintRowNames());\n assertTrue(resultMatrixCSV0.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixCSV0.getColNameWidth());\n assertEquals(0, resultMatrixCSV0.getMeanWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixCSV0.colNameWidthTipText());\n assertFalse(resultMatrixCSV0.getShowAverage());\n assertEquals(2, resultMatrixCSV0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixCSV0.getStdDevWidth());\n assertTrue(resultMatrixCSV0.getEnumerateColNames());\n assertTrue(resultMatrixCSV0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixCSV0.showAverageTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixCSV0.printRowNamesTipText());\n assertEquals(\"Generates the matrix in CSV ('comma-separated values') format.\", resultMatrixCSV0.globalInfo());\n assertEquals(\"CSV\", resultMatrixCSV0.getDisplayName());\n assertEquals(2, resultMatrixCSV0.getDefaultMeanPrec());\n assertEquals(1, resultMatrixCSV0.getVisibleColCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixCSV0.meanPrecTipText());\n assertEquals(0, resultMatrixCSV0.getCountWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultColNameWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateColNamesTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixCSV0.printColNamesTipText());\n assertFalse(resultMatrixCSV0.getRemoveFilterName());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixCSV0.rowNameWidthTipText());\n assertEquals(1, resultMatrixCSV0.getColCount());\n assertFalse(resultMatrixCSV0.getDefaultShowStdDev());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixCSV0.stdDevPrecTipText());\n assertEquals(1, resultMatrixCSV0.getVisibleRowCount());\n assertFalse(resultMatrixCSV0.getDefaultPrintColNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateRowNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixCSV0.removeFilterNameTipText());\n assertFalse(resultMatrixCSV0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixCSV0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultStdDevWidth());\n assertFalse(resultMatrixCSV0.getDefaultRemoveFilterName());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixCSV0.countWidthTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultSignificanceWidth());\n \n int int0 = resultMatrixCSV0.getDefaultSignificanceWidth();\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(0, int0);\n assertEquals(0, resultMatrixCSV0.getSignificanceWidth());\n assertEquals(25, resultMatrixCSV0.getRowNameWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixCSV0.showStdDevTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultCountWidth());\n assertEquals(1, resultMatrixCSV0.getRowCount());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixCSV0.stdDevWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixCSV0.significanceWidthTipText());\n assertEquals(25, resultMatrixCSV0.getDefaultRowNameWidth());\n assertFalse(resultMatrixCSV0.getEnumerateRowNames());\n assertEquals(2, resultMatrixCSV0.getStdDevPrec());\n assertFalse(resultMatrixCSV0.getDefaultShowAverage());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixCSV0.meanWidthTipText());\n assertFalse(resultMatrixCSV0.getPrintColNames());\n assertEquals(2, resultMatrixCSV0.getMeanPrec());\n assertFalse(resultMatrixCSV0.getShowStdDev());\n assertTrue(resultMatrixCSV0.getDefaultPrintRowNames());\n assertTrue(resultMatrixCSV0.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixCSV0.getColNameWidth());\n assertEquals(0, resultMatrixCSV0.getMeanWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixCSV0.colNameWidthTipText());\n assertFalse(resultMatrixCSV0.getShowAverage());\n assertEquals(2, resultMatrixCSV0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixCSV0.getStdDevWidth());\n assertTrue(resultMatrixCSV0.getEnumerateColNames());\n assertTrue(resultMatrixCSV0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixCSV0.showAverageTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixCSV0.printRowNamesTipText());\n assertEquals(\"Generates the matrix in CSV ('comma-separated values') format.\", resultMatrixCSV0.globalInfo());\n assertEquals(\"CSV\", resultMatrixCSV0.getDisplayName());\n assertEquals(2, resultMatrixCSV0.getDefaultMeanPrec());\n assertEquals(1, resultMatrixCSV0.getVisibleColCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixCSV0.meanPrecTipText());\n assertEquals(0, resultMatrixCSV0.getCountWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultColNameWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateColNamesTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixCSV0.printColNamesTipText());\n assertFalse(resultMatrixCSV0.getRemoveFilterName());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixCSV0.rowNameWidthTipText());\n assertEquals(1, resultMatrixCSV0.getColCount());\n assertFalse(resultMatrixCSV0.getDefaultShowStdDev());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixCSV0.stdDevPrecTipText());\n assertEquals(1, resultMatrixCSV0.getVisibleRowCount());\n assertFalse(resultMatrixCSV0.getDefaultPrintColNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateRowNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixCSV0.removeFilterNameTipText());\n assertFalse(resultMatrixCSV0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixCSV0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultStdDevWidth());\n assertFalse(resultMatrixCSV0.getDefaultRemoveFilterName());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixCSV0.countWidthTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultSignificanceWidth());\n \n resultMatrixCSV0.m_CountWidth = 0;\n assertEquals(0, resultMatrixCSV0.getSignificanceWidth());\n assertEquals(25, resultMatrixCSV0.getRowNameWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixCSV0.showStdDevTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultCountWidth());\n assertEquals(1, resultMatrixCSV0.getRowCount());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixCSV0.stdDevWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixCSV0.significanceWidthTipText());\n assertEquals(25, resultMatrixCSV0.getDefaultRowNameWidth());\n assertFalse(resultMatrixCSV0.getEnumerateRowNames());\n assertEquals(2, resultMatrixCSV0.getStdDevPrec());\n assertFalse(resultMatrixCSV0.getDefaultShowAverage());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixCSV0.meanWidthTipText());\n assertFalse(resultMatrixCSV0.getPrintColNames());\n assertEquals(2, resultMatrixCSV0.getMeanPrec());\n assertFalse(resultMatrixCSV0.getShowStdDev());\n assertTrue(resultMatrixCSV0.getDefaultPrintRowNames());\n assertTrue(resultMatrixCSV0.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixCSV0.getColNameWidth());\n assertEquals(0, resultMatrixCSV0.getMeanWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixCSV0.colNameWidthTipText());\n assertFalse(resultMatrixCSV0.getShowAverage());\n assertEquals(2, resultMatrixCSV0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixCSV0.getStdDevWidth());\n assertTrue(resultMatrixCSV0.getEnumerateColNames());\n assertTrue(resultMatrixCSV0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixCSV0.showAverageTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixCSV0.printRowNamesTipText());\n assertEquals(\"Generates the matrix in CSV ('comma-separated values') format.\", resultMatrixCSV0.globalInfo());\n assertEquals(\"CSV\", resultMatrixCSV0.getDisplayName());\n assertEquals(2, resultMatrixCSV0.getDefaultMeanPrec());\n assertEquals(1, resultMatrixCSV0.getVisibleColCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixCSV0.meanPrecTipText());\n assertEquals(0, resultMatrixCSV0.getCountWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultColNameWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateColNamesTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixCSV0.printColNamesTipText());\n assertFalse(resultMatrixCSV0.getRemoveFilterName());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixCSV0.rowNameWidthTipText());\n assertEquals(1, resultMatrixCSV0.getColCount());\n assertFalse(resultMatrixCSV0.getDefaultShowStdDev());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixCSV0.stdDevPrecTipText());\n assertEquals(1, resultMatrixCSV0.getVisibleRowCount());\n assertFalse(resultMatrixCSV0.getDefaultPrintColNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateRowNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixCSV0.removeFilterNameTipText());\n assertFalse(resultMatrixCSV0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixCSV0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultStdDevWidth());\n assertFalse(resultMatrixCSV0.getDefaultRemoveFilterName());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixCSV0.countWidthTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultSignificanceWidth());\n \n String string0 = resultMatrixCSV0.getRevision();\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertNotNull(string0);\n assertEquals(\"8034\", string0);\n assertEquals(0, resultMatrixCSV0.getSignificanceWidth());\n assertEquals(25, resultMatrixCSV0.getRowNameWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixCSV0.showStdDevTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultCountWidth());\n assertEquals(1, resultMatrixCSV0.getRowCount());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixCSV0.stdDevWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixCSV0.significanceWidthTipText());\n assertEquals(25, resultMatrixCSV0.getDefaultRowNameWidth());\n assertFalse(resultMatrixCSV0.getEnumerateRowNames());\n assertEquals(2, resultMatrixCSV0.getStdDevPrec());\n assertFalse(resultMatrixCSV0.getDefaultShowAverage());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixCSV0.meanWidthTipText());\n assertFalse(resultMatrixCSV0.getPrintColNames());\n assertEquals(2, resultMatrixCSV0.getMeanPrec());\n assertFalse(resultMatrixCSV0.getShowStdDev());\n assertTrue(resultMatrixCSV0.getDefaultPrintRowNames());\n assertTrue(resultMatrixCSV0.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixCSV0.getColNameWidth());\n assertEquals(0, resultMatrixCSV0.getMeanWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixCSV0.colNameWidthTipText());\n assertFalse(resultMatrixCSV0.getShowAverage());\n assertEquals(2, resultMatrixCSV0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixCSV0.getStdDevWidth());\n assertTrue(resultMatrixCSV0.getEnumerateColNames());\n assertTrue(resultMatrixCSV0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixCSV0.showAverageTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixCSV0.printRowNamesTipText());\n assertEquals(\"Generates the matrix in CSV ('comma-separated values') format.\", resultMatrixCSV0.globalInfo());\n assertEquals(\"CSV\", resultMatrixCSV0.getDisplayName());\n assertEquals(2, resultMatrixCSV0.getDefaultMeanPrec());\n assertEquals(1, resultMatrixCSV0.getVisibleColCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixCSV0.meanPrecTipText());\n assertEquals(0, resultMatrixCSV0.getCountWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultColNameWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateColNamesTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixCSV0.printColNamesTipText());\n assertFalse(resultMatrixCSV0.getRemoveFilterName());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixCSV0.rowNameWidthTipText());\n assertEquals(1, resultMatrixCSV0.getColCount());\n assertFalse(resultMatrixCSV0.getDefaultShowStdDev());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixCSV0.stdDevPrecTipText());\n assertEquals(1, resultMatrixCSV0.getVisibleRowCount());\n assertFalse(resultMatrixCSV0.getDefaultPrintColNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateRowNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixCSV0.removeFilterNameTipText());\n assertFalse(resultMatrixCSV0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixCSV0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultStdDevWidth());\n assertFalse(resultMatrixCSV0.getDefaultRemoveFilterName());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixCSV0.countWidthTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultSignificanceWidth());\n \n Vector<String> vector0 = new Vector<String>();\n assertNotNull(vector0);\n assertEquals(0, vector0.size());\n assertEquals(\"[]\", vector0.toString());\n assertTrue(vector0.isEmpty());\n assertEquals(10, vector0.capacity());\n assertFalse(vector0.contains(string0));\n \n boolean boolean0 = vector0.add(\"8034\");\n assertTrue(boolean0);\n assertEquals(\"[8034]\", vector0.toString());\n assertFalse(vector0.isEmpty());\n assertEquals(1, vector0.size());\n assertEquals(10, vector0.capacity());\n assertTrue(vector0.contains(\"8034\"));\n \n boolean boolean1 = vector0.add(\"v\");\n assertTrue(boolean1 == boolean0);\n assertTrue(boolean1);\n assertFalse(vector0.isEmpty());\n assertEquals(2, vector0.size());\n assertEquals(\"[8034, v]\", vector0.toString());\n assertEquals(10, vector0.capacity());\n assertTrue(vector0.contains(\"v\"));\n \n String string1 = resultMatrixCSV0.getRowName((-657));\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertNull(string1);\n assertEquals(0, resultMatrixCSV0.getSignificanceWidth());\n assertEquals(25, resultMatrixCSV0.getRowNameWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixCSV0.showStdDevTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultCountWidth());\n assertEquals(1, resultMatrixCSV0.getRowCount());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixCSV0.stdDevWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixCSV0.significanceWidthTipText());\n assertEquals(25, resultMatrixCSV0.getDefaultRowNameWidth());\n assertFalse(resultMatrixCSV0.getEnumerateRowNames());\n assertEquals(2, resultMatrixCSV0.getStdDevPrec());\n assertFalse(resultMatrixCSV0.getDefaultShowAverage());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixCSV0.meanWidthTipText());\n assertFalse(resultMatrixCSV0.getPrintColNames());\n assertEquals(2, resultMatrixCSV0.getMeanPrec());\n assertFalse(resultMatrixCSV0.getShowStdDev());\n assertTrue(resultMatrixCSV0.getDefaultPrintRowNames());\n assertTrue(resultMatrixCSV0.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixCSV0.getColNameWidth());\n assertEquals(0, resultMatrixCSV0.getMeanWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixCSV0.colNameWidthTipText());\n assertFalse(resultMatrixCSV0.getShowAverage());\n assertEquals(2, resultMatrixCSV0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixCSV0.getStdDevWidth());\n assertTrue(resultMatrixCSV0.getEnumerateColNames());\n assertTrue(resultMatrixCSV0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixCSV0.showAverageTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixCSV0.printRowNamesTipText());\n assertEquals(\"Generates the matrix in CSV ('comma-separated values') format.\", resultMatrixCSV0.globalInfo());\n assertEquals(\"CSV\", resultMatrixCSV0.getDisplayName());\n assertEquals(2, resultMatrixCSV0.getDefaultMeanPrec());\n assertEquals(1, resultMatrixCSV0.getVisibleColCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixCSV0.meanPrecTipText());\n assertEquals(0, resultMatrixCSV0.getCountWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultColNameWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateColNamesTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixCSV0.printColNamesTipText());\n assertFalse(resultMatrixCSV0.getRemoveFilterName());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixCSV0.rowNameWidthTipText());\n assertEquals(1, resultMatrixCSV0.getColCount());\n assertFalse(resultMatrixCSV0.getDefaultShowStdDev());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixCSV0.stdDevPrecTipText());\n assertEquals(1, resultMatrixCSV0.getVisibleRowCount());\n assertFalse(resultMatrixCSV0.getDefaultPrintColNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateRowNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixCSV0.removeFilterNameTipText());\n assertFalse(resultMatrixCSV0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixCSV0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultStdDevWidth());\n assertFalse(resultMatrixCSV0.getDefaultRemoveFilterName());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixCSV0.countWidthTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultSignificanceWidth());\n \n ResultMatrixGnuPlot resultMatrixGnuPlot0 = new ResultMatrixGnuPlot(resultMatrixCSV0);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertNotNull(resultMatrixGnuPlot0);\n assertEquals(0, resultMatrixCSV0.getSignificanceWidth());\n assertEquals(25, resultMatrixCSV0.getRowNameWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixCSV0.showStdDevTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultCountWidth());\n assertEquals(1, resultMatrixCSV0.getRowCount());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixCSV0.stdDevWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixCSV0.significanceWidthTipText());\n assertEquals(25, resultMatrixCSV0.getDefaultRowNameWidth());\n assertFalse(resultMatrixCSV0.getEnumerateRowNames());\n assertEquals(2, resultMatrixCSV0.getStdDevPrec());\n assertFalse(resultMatrixCSV0.getDefaultShowAverage());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixCSV0.meanWidthTipText());\n assertFalse(resultMatrixCSV0.getPrintColNames());\n assertEquals(2, resultMatrixCSV0.getMeanPrec());\n assertFalse(resultMatrixCSV0.getShowStdDev());\n assertTrue(resultMatrixCSV0.getDefaultPrintRowNames());\n assertTrue(resultMatrixCSV0.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixCSV0.getColNameWidth());\n assertEquals(0, resultMatrixCSV0.getMeanWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixCSV0.colNameWidthTipText());\n assertFalse(resultMatrixCSV0.getShowAverage());\n assertEquals(2, resultMatrixCSV0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixCSV0.getStdDevWidth());\n assertTrue(resultMatrixCSV0.getEnumerateColNames());\n assertTrue(resultMatrixCSV0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixCSV0.showAverageTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixCSV0.printRowNamesTipText());\n assertEquals(\"Generates the matrix in CSV ('comma-separated values') format.\", resultMatrixCSV0.globalInfo());\n assertEquals(\"CSV\", resultMatrixCSV0.getDisplayName());\n assertEquals(2, resultMatrixCSV0.getDefaultMeanPrec());\n assertEquals(1, resultMatrixCSV0.getVisibleColCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixCSV0.meanPrecTipText());\n assertEquals(0, resultMatrixCSV0.getCountWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultColNameWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateColNamesTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixCSV0.printColNamesTipText());\n assertFalse(resultMatrixCSV0.getRemoveFilterName());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixCSV0.rowNameWidthTipText());\n assertEquals(1, resultMatrixCSV0.getColCount());\n assertFalse(resultMatrixCSV0.getDefaultShowStdDev());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixCSV0.stdDevPrecTipText());\n assertEquals(1, resultMatrixCSV0.getVisibleRowCount());\n assertFalse(resultMatrixCSV0.getDefaultPrintColNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateRowNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixCSV0.removeFilterNameTipText());\n assertFalse(resultMatrixCSV0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixCSV0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultStdDevWidth());\n assertFalse(resultMatrixCSV0.getDefaultRemoveFilterName());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixCSV0.countWidthTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultSignificanceWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertTrue(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(0, resultMatrixGnuPlot0.getColNameWidth());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertFalse(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(25, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n \n ResultMatrixSignificance resultMatrixSignificance0 = new ResultMatrixSignificance(2, 117);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertNotNull(resultMatrixSignificance0);\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(2, resultMatrixSignificance0.getVisibleColCount());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(117, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(2, resultMatrixSignificance0.getColCount());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(117, resultMatrixSignificance0.getRowCount());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n \n int int1 = resultMatrixSignificance0.getDisplayCol((-657));\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertFalse(int1 == int0);\n assertEquals((-1), int1);\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(2, resultMatrixSignificance0.getVisibleColCount());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(117, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(2, resultMatrixSignificance0.getColCount());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(117, resultMatrixSignificance0.getRowCount());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n \n String[] stringArray0 = resultMatrixSignificance0.getOptions();\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertNotNull(stringArray0);\n assertEquals(18, stringArray0.length);\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(2, resultMatrixSignificance0.getVisibleColCount());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(117, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(2, resultMatrixSignificance0.getColCount());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(117, resultMatrixSignificance0.getRowCount());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n \n ResultMatrixPlainText resultMatrixPlainText0 = new ResultMatrixPlainText();\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertNotNull(resultMatrixPlainText0);\n assertTrue(resultMatrixPlainText0.getEnumerateColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixPlainText0.stdDevWidthTipText());\n assertTrue(resultMatrixPlainText0.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixPlainText0.getMeanWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixPlainText0.significanceWidthTipText());\n assertEquals(0, resultMatrixPlainText0.getDefaultMeanWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixPlainText0.stdDevPrecTipText());\n assertEquals(2, resultMatrixPlainText0.getStdDevPrec());\n assertEquals(\"Plain Text\", resultMatrixPlainText0.getDisplayName());\n assertTrue(resultMatrixPlainText0.getDefaultPrintColNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixPlainText0.removeFilterNameTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixPlainText0.meanWidthTipText());\n assertEquals(0, resultMatrixPlainText0.getColNameWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateColNamesTipText());\n assertTrue(resultMatrixPlainText0.getDefaultPrintRowNames());\n assertFalse(resultMatrixPlainText0.getShowStdDev());\n assertEquals(1, resultMatrixPlainText0.getColCount());\n assertEquals(1, resultMatrixPlainText0.getVisibleColCount());\n assertEquals(\"Generates the output as plain text (for fixed width fonts).\", resultMatrixPlainText0.globalInfo());\n assertEquals(0, resultMatrixPlainText0.getSignificanceWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixPlainText0.showStdDevTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixPlainText0.printColNamesTipText());\n assertEquals(0, resultMatrixPlainText0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixPlainText0.countWidthTipText());\n assertEquals(2, resultMatrixPlainText0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixPlainText0.getDefaultStdDevWidth());\n assertTrue(resultMatrixPlainText0.getPrintRowNames());\n assertEquals(5, resultMatrixPlainText0.getCountWidth());\n assertEquals(1, resultMatrixPlainText0.getVisibleRowCount());\n assertFalse(resultMatrixPlainText0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixPlainText0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixPlainText0.getDefaultShowAverage());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixPlainText0.rowNameWidthTipText());\n assertEquals(0, resultMatrixPlainText0.getDefaultColNameWidth());\n assertFalse(resultMatrixPlainText0.getDefaultShowStdDev());\n assertEquals(5, resultMatrixPlainText0.getDefaultCountWidth());\n assertEquals(2, resultMatrixPlainText0.getMeanPrec());\n assertEquals(25, resultMatrixPlainText0.getDefaultRowNameWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateRowNamesTipText());\n assertFalse(resultMatrixPlainText0.getEnumerateRowNames());\n assertEquals(1, resultMatrixPlainText0.getRowCount());\n assertFalse(resultMatrixPlainText0.getRemoveFilterName());\n assertTrue(resultMatrixPlainText0.getPrintColNames());\n assertEquals(25, resultMatrixPlainText0.getRowNameWidth());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixPlainText0.printRowNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixPlainText0.meanPrecTipText());\n assertEquals(2, resultMatrixPlainText0.getDefaultStdDevPrec());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixPlainText0.colNameWidthTipText());\n assertEquals(0, resultMatrixPlainText0.getStdDevWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixPlainText0.showAverageTipText());\n assertFalse(resultMatrixPlainText0.getShowAverage());\n \n resultMatrixPlainText0.setShowStdDev(true);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertTrue(resultMatrixPlainText0.getEnumerateColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixPlainText0.stdDevWidthTipText());\n assertTrue(resultMatrixPlainText0.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixPlainText0.getMeanWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixPlainText0.significanceWidthTipText());\n assertEquals(0, resultMatrixPlainText0.getDefaultMeanWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixPlainText0.stdDevPrecTipText());\n assertEquals(2, resultMatrixPlainText0.getStdDevPrec());\n assertEquals(\"Plain Text\", resultMatrixPlainText0.getDisplayName());\n assertTrue(resultMatrixPlainText0.getDefaultPrintColNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixPlainText0.removeFilterNameTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixPlainText0.meanWidthTipText());\n assertEquals(0, resultMatrixPlainText0.getColNameWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateColNamesTipText());\n assertTrue(resultMatrixPlainText0.getDefaultPrintRowNames());\n assertEquals(1, resultMatrixPlainText0.getColCount());\n assertEquals(1, resultMatrixPlainText0.getVisibleColCount());\n assertEquals(\"Generates the output as plain text (for fixed width fonts).\", resultMatrixPlainText0.globalInfo());\n assertEquals(0, resultMatrixPlainText0.getSignificanceWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixPlainText0.showStdDevTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixPlainText0.printColNamesTipText());\n assertEquals(0, resultMatrixPlainText0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixPlainText0.countWidthTipText());\n assertEquals(2, resultMatrixPlainText0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixPlainText0.getDefaultStdDevWidth());\n assertTrue(resultMatrixPlainText0.getPrintRowNames());\n assertEquals(5, resultMatrixPlainText0.getCountWidth());\n assertTrue(resultMatrixPlainText0.getShowStdDev());\n assertEquals(1, resultMatrixPlainText0.getVisibleRowCount());\n assertFalse(resultMatrixPlainText0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixPlainText0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixPlainText0.getDefaultShowAverage());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixPlainText0.rowNameWidthTipText());\n assertEquals(0, resultMatrixPlainText0.getDefaultColNameWidth());\n assertFalse(resultMatrixPlainText0.getDefaultShowStdDev());\n assertEquals(5, resultMatrixPlainText0.getDefaultCountWidth());\n assertEquals(2, resultMatrixPlainText0.getMeanPrec());\n assertEquals(25, resultMatrixPlainText0.getDefaultRowNameWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateRowNamesTipText());\n assertFalse(resultMatrixPlainText0.getEnumerateRowNames());\n assertEquals(1, resultMatrixPlainText0.getRowCount());\n assertFalse(resultMatrixPlainText0.getRemoveFilterName());\n assertTrue(resultMatrixPlainText0.getPrintColNames());\n assertEquals(25, resultMatrixPlainText0.getRowNameWidth());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixPlainText0.printRowNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixPlainText0.meanPrecTipText());\n assertEquals(2, resultMatrixPlainText0.getDefaultStdDevPrec());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixPlainText0.colNameWidthTipText());\n assertEquals(0, resultMatrixPlainText0.getStdDevWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixPlainText0.showAverageTipText());\n assertFalse(resultMatrixPlainText0.getShowAverage());\n \n String string2 = resultMatrixPlainText0.toStringKey();\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertNotNull(string2);\n assertFalse(string2.equals((Object)string0));\n assertEquals(\"Key:\\n(1) col0\\n\", string2);\n assertTrue(resultMatrixPlainText0.getEnumerateColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixPlainText0.stdDevWidthTipText());\n assertTrue(resultMatrixPlainText0.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixPlainText0.getMeanWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixPlainText0.significanceWidthTipText());\n assertEquals(0, resultMatrixPlainText0.getDefaultMeanWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixPlainText0.stdDevPrecTipText());\n assertEquals(2, resultMatrixPlainText0.getStdDevPrec());\n assertEquals(\"Plain Text\", resultMatrixPlainText0.getDisplayName());\n assertTrue(resultMatrixPlainText0.getDefaultPrintColNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixPlainText0.removeFilterNameTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixPlainText0.meanWidthTipText());\n assertEquals(0, resultMatrixPlainText0.getColNameWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateColNamesTipText());\n assertTrue(resultMatrixPlainText0.getDefaultPrintRowNames());\n assertEquals(1, resultMatrixPlainText0.getColCount());\n assertEquals(1, resultMatrixPlainText0.getVisibleColCount());\n assertEquals(\"Generates the output as plain text (for fixed width fonts).\", resultMatrixPlainText0.globalInfo());\n assertEquals(0, resultMatrixPlainText0.getSignificanceWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixPlainText0.showStdDevTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixPlainText0.printColNamesTipText());\n assertEquals(0, resultMatrixPlainText0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixPlainText0.countWidthTipText());\n assertEquals(2, resultMatrixPlainText0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixPlainText0.getDefaultStdDevWidth());\n assertTrue(resultMatrixPlainText0.getPrintRowNames());\n assertEquals(5, resultMatrixPlainText0.getCountWidth());\n assertTrue(resultMatrixPlainText0.getShowStdDev());\n assertEquals(1, resultMatrixPlainText0.getVisibleRowCount());\n assertFalse(resultMatrixPlainText0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixPlainText0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixPlainText0.getDefaultShowAverage());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixPlainText0.rowNameWidthTipText());\n assertEquals(0, resultMatrixPlainText0.getDefaultColNameWidth());\n assertFalse(resultMatrixPlainText0.getDefaultShowStdDev());\n assertEquals(5, resultMatrixPlainText0.getDefaultCountWidth());\n assertEquals(2, resultMatrixPlainText0.getMeanPrec());\n assertEquals(25, resultMatrixPlainText0.getDefaultRowNameWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateRowNamesTipText());\n assertFalse(resultMatrixPlainText0.getEnumerateRowNames());\n assertEquals(1, resultMatrixPlainText0.getRowCount());\n assertFalse(resultMatrixPlainText0.getRemoveFilterName());\n assertTrue(resultMatrixPlainText0.getPrintColNames());\n assertEquals(25, resultMatrixPlainText0.getRowNameWidth());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixPlainText0.printRowNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixPlainText0.meanPrecTipText());\n assertEquals(2, resultMatrixPlainText0.getDefaultStdDevPrec());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixPlainText0.colNameWidthTipText());\n assertEquals(0, resultMatrixPlainText0.getStdDevWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixPlainText0.showAverageTipText());\n assertFalse(resultMatrixPlainText0.getShowAverage());\n \n int int2 = resultMatrixPlainText0.getMeanPrec();\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertFalse(int2 == int1);\n assertFalse(int2 == int0);\n assertEquals(2, int2);\n assertTrue(resultMatrixPlainText0.getEnumerateColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixPlainText0.stdDevWidthTipText());\n assertTrue(resultMatrixPlainText0.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixPlainText0.getMeanWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixPlainText0.significanceWidthTipText());\n assertEquals(0, resultMatrixPlainText0.getDefaultMeanWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixPlainText0.stdDevPrecTipText());\n assertEquals(2, resultMatrixPlainText0.getStdDevPrec());\n assertEquals(\"Plain Text\", resultMatrixPlainText0.getDisplayName());\n assertTrue(resultMatrixPlainText0.getDefaultPrintColNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixPlainText0.removeFilterNameTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixPlainText0.meanWidthTipText());\n assertEquals(0, resultMatrixPlainText0.getColNameWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateColNamesTipText());\n assertTrue(resultMatrixPlainText0.getDefaultPrintRowNames());\n assertEquals(1, resultMatrixPlainText0.getColCount());\n assertEquals(1, resultMatrixPlainText0.getVisibleColCount());\n assertEquals(\"Generates the output as plain text (for fixed width fonts).\", resultMatrixPlainText0.globalInfo());\n assertEquals(0, resultMatrixPlainText0.getSignificanceWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixPlainText0.showStdDevTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixPlainText0.printColNamesTipText());\n assertEquals(0, resultMatrixPlainText0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixPlainText0.countWidthTipText());\n assertEquals(2, resultMatrixPlainText0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixPlainText0.getDefaultStdDevWidth());\n assertTrue(resultMatrixPlainText0.getPrintRowNames());\n assertEquals(5, resultMatrixPlainText0.getCountWidth());\n assertTrue(resultMatrixPlainText0.getShowStdDev());\n assertEquals(1, resultMatrixPlainText0.getVisibleRowCount());\n assertFalse(resultMatrixPlainText0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixPlainText0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixPlainText0.getDefaultShowAverage());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixPlainText0.rowNameWidthTipText());\n assertEquals(0, resultMatrixPlainText0.getDefaultColNameWidth());\n assertFalse(resultMatrixPlainText0.getDefaultShowStdDev());\n assertEquals(5, resultMatrixPlainText0.getDefaultCountWidth());\n assertEquals(2, resultMatrixPlainText0.getMeanPrec());\n assertEquals(25, resultMatrixPlainText0.getDefaultRowNameWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateRowNamesTipText());\n assertFalse(resultMatrixPlainText0.getEnumerateRowNames());\n assertEquals(1, resultMatrixPlainText0.getRowCount());\n assertFalse(resultMatrixPlainText0.getRemoveFilterName());\n assertTrue(resultMatrixPlainText0.getPrintColNames());\n assertEquals(25, resultMatrixPlainText0.getRowNameWidth());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixPlainText0.printRowNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixPlainText0.meanPrecTipText());\n assertEquals(2, resultMatrixPlainText0.getDefaultStdDevPrec());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixPlainText0.colNameWidthTipText());\n assertEquals(0, resultMatrixPlainText0.getStdDevWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixPlainText0.showAverageTipText());\n assertFalse(resultMatrixPlainText0.getShowAverage());\n \n boolean boolean2 = resultMatrixSignificance0.getDefaultEnumerateColNames();\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertTrue(boolean2 == boolean0);\n assertTrue(boolean2 == boolean1);\n assertTrue(boolean2);\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(2, resultMatrixSignificance0.getVisibleColCount());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(117, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(2, resultMatrixSignificance0.getColCount());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(117, resultMatrixSignificance0.getRowCount());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n }", "title": "" }, { "docid": "5049b2f3a14fea83e8b6fa369c5f8724", "score": "0.5719774", "text": "@Test(timeout = 4000)\n public void test095() throws Throwable {\n ResultMatrixCSV resultMatrixCSV0 = new ResultMatrixCSV();\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertNotNull(resultMatrixCSV0);\n assertFalse(resultMatrixCSV0.getDefaultPrintColNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateRowNamesTipText());\n assertFalse(resultMatrixCSV0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixCSV0.getDefaultShowAverage());\n assertEquals(1, resultMatrixCSV0.getVisibleRowCount());\n assertEquals(2, resultMatrixCSV0.getMeanPrec());\n assertEquals(2, resultMatrixCSV0.getDefaultStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixCSV0.meanPrecTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultCountWidth());\n assertEquals(1, resultMatrixCSV0.getRowCount());\n assertEquals(25, resultMatrixCSV0.getRowNameWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixCSV0.showAverageTipText());\n assertEquals(0, resultMatrixCSV0.getSignificanceWidth());\n assertEquals(\"CSV\", resultMatrixCSV0.getDisplayName());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixCSV0.rowNameWidthTipText());\n assertFalse(resultMatrixCSV0.getPrintColNames());\n assertFalse(resultMatrixCSV0.getShowStdDev());\n assertTrue(resultMatrixCSV0.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixCSV0.getMeanWidth());\n assertEquals(0, resultMatrixCSV0.getColNameWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixCSV0.removeFilterNameTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixCSV0.stdDevPrecTipText());\n assertTrue(resultMatrixCSV0.getEnumerateColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixCSV0.stdDevWidthTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultStdDevWidth());\n assertFalse(resultMatrixCSV0.getShowAverage());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixCSV0.colNameWidthTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateColNamesTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixCSV0.significanceWidthTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixCSV0.printColNamesTipText());\n assertEquals(25, resultMatrixCSV0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixCSV0.getStdDevWidth());\n assertEquals(1, resultMatrixCSV0.getVisibleColCount());\n assertEquals(0, resultMatrixCSV0.getCountWidth());\n assertTrue(resultMatrixCSV0.getPrintRowNames());\n assertEquals(2, resultMatrixCSV0.getDefaultMeanPrec());\n assertEquals(\"Generates the matrix in CSV ('comma-separated values') format.\", resultMatrixCSV0.globalInfo());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixCSV0.printRowNamesTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixCSV0.countWidthTipText());\n assertFalse(resultMatrixCSV0.getEnumerateRowNames());\n assertEquals(2, resultMatrixCSV0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixCSV0.meanWidthTipText());\n assertFalse(resultMatrixCSV0.getRemoveFilterName());\n assertFalse(resultMatrixCSV0.getDefaultShowStdDev());\n assertEquals(1, resultMatrixCSV0.getColCount());\n assertEquals(0, resultMatrixCSV0.getDefaultSignificanceWidth());\n assertTrue(resultMatrixCSV0.getDefaultPrintRowNames());\n assertFalse(resultMatrixCSV0.getDefaultRemoveFilterName());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixCSV0.showStdDevTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultColNameWidth());\n \n resultMatrixCSV0.m_EnumerateRowNames = false;\n assertFalse(resultMatrixCSV0.getDefaultPrintColNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateRowNamesTipText());\n assertFalse(resultMatrixCSV0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixCSV0.getDefaultShowAverage());\n assertEquals(1, resultMatrixCSV0.getVisibleRowCount());\n assertEquals(2, resultMatrixCSV0.getMeanPrec());\n assertEquals(2, resultMatrixCSV0.getDefaultStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixCSV0.meanPrecTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultCountWidth());\n assertEquals(1, resultMatrixCSV0.getRowCount());\n assertEquals(25, resultMatrixCSV0.getRowNameWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixCSV0.showAverageTipText());\n assertEquals(0, resultMatrixCSV0.getSignificanceWidth());\n assertEquals(\"CSV\", resultMatrixCSV0.getDisplayName());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixCSV0.rowNameWidthTipText());\n assertFalse(resultMatrixCSV0.getPrintColNames());\n assertFalse(resultMatrixCSV0.getShowStdDev());\n assertTrue(resultMatrixCSV0.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixCSV0.getMeanWidth());\n assertEquals(0, resultMatrixCSV0.getColNameWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixCSV0.removeFilterNameTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixCSV0.stdDevPrecTipText());\n assertTrue(resultMatrixCSV0.getEnumerateColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixCSV0.stdDevWidthTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultStdDevWidth());\n assertFalse(resultMatrixCSV0.getShowAverage());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixCSV0.colNameWidthTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateColNamesTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixCSV0.significanceWidthTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixCSV0.printColNamesTipText());\n assertEquals(25, resultMatrixCSV0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixCSV0.getStdDevWidth());\n assertEquals(1, resultMatrixCSV0.getVisibleColCount());\n assertEquals(0, resultMatrixCSV0.getCountWidth());\n assertTrue(resultMatrixCSV0.getPrintRowNames());\n assertEquals(2, resultMatrixCSV0.getDefaultMeanPrec());\n assertEquals(\"Generates the matrix in CSV ('comma-separated values') format.\", resultMatrixCSV0.globalInfo());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixCSV0.printRowNamesTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixCSV0.countWidthTipText());\n assertFalse(resultMatrixCSV0.getEnumerateRowNames());\n assertEquals(2, resultMatrixCSV0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixCSV0.meanWidthTipText());\n assertFalse(resultMatrixCSV0.getRemoveFilterName());\n assertFalse(resultMatrixCSV0.getDefaultShowStdDev());\n assertEquals(1, resultMatrixCSV0.getColCount());\n assertEquals(0, resultMatrixCSV0.getDefaultSignificanceWidth());\n assertTrue(resultMatrixCSV0.getDefaultPrintRowNames());\n assertFalse(resultMatrixCSV0.getDefaultRemoveFilterName());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixCSV0.showStdDevTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultColNameWidth());\n \n String string0 = resultMatrixCSV0.countWidthTipText();\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertNotNull(string0);\n assertEquals(\"The width of the counts (0 = optimal).\", string0);\n assertFalse(resultMatrixCSV0.getDefaultPrintColNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateRowNamesTipText());\n assertFalse(resultMatrixCSV0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixCSV0.getDefaultShowAverage());\n assertEquals(1, resultMatrixCSV0.getVisibleRowCount());\n assertEquals(2, resultMatrixCSV0.getMeanPrec());\n assertEquals(2, resultMatrixCSV0.getDefaultStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixCSV0.meanPrecTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultCountWidth());\n assertEquals(1, resultMatrixCSV0.getRowCount());\n assertEquals(25, resultMatrixCSV0.getRowNameWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixCSV0.showAverageTipText());\n assertEquals(0, resultMatrixCSV0.getSignificanceWidth());\n assertEquals(\"CSV\", resultMatrixCSV0.getDisplayName());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixCSV0.rowNameWidthTipText());\n assertFalse(resultMatrixCSV0.getPrintColNames());\n assertFalse(resultMatrixCSV0.getShowStdDev());\n assertTrue(resultMatrixCSV0.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixCSV0.getMeanWidth());\n assertEquals(0, resultMatrixCSV0.getColNameWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixCSV0.removeFilterNameTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixCSV0.stdDevPrecTipText());\n assertTrue(resultMatrixCSV0.getEnumerateColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixCSV0.stdDevWidthTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultStdDevWidth());\n assertFalse(resultMatrixCSV0.getShowAverage());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixCSV0.colNameWidthTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateColNamesTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixCSV0.significanceWidthTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixCSV0.printColNamesTipText());\n assertEquals(25, resultMatrixCSV0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixCSV0.getStdDevWidth());\n assertEquals(1, resultMatrixCSV0.getVisibleColCount());\n assertEquals(0, resultMatrixCSV0.getCountWidth());\n assertTrue(resultMatrixCSV0.getPrintRowNames());\n assertEquals(2, resultMatrixCSV0.getDefaultMeanPrec());\n assertEquals(\"Generates the matrix in CSV ('comma-separated values') format.\", resultMatrixCSV0.globalInfo());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixCSV0.printRowNamesTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixCSV0.countWidthTipText());\n assertFalse(resultMatrixCSV0.getEnumerateRowNames());\n assertEquals(2, resultMatrixCSV0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixCSV0.meanWidthTipText());\n assertFalse(resultMatrixCSV0.getRemoveFilterName());\n assertFalse(resultMatrixCSV0.getDefaultShowStdDev());\n assertEquals(1, resultMatrixCSV0.getColCount());\n assertEquals(0, resultMatrixCSV0.getDefaultSignificanceWidth());\n assertTrue(resultMatrixCSV0.getDefaultPrintRowNames());\n assertFalse(resultMatrixCSV0.getDefaultRemoveFilterName());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixCSV0.showStdDevTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultColNameWidth());\n \n ResultMatrixSignificance resultMatrixSignificance0 = new ResultMatrixSignificance(resultMatrixCSV0);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertNotNull(resultMatrixSignificance0);\n assertFalse(resultMatrixCSV0.getDefaultPrintColNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateRowNamesTipText());\n assertFalse(resultMatrixCSV0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixCSV0.getDefaultShowAverage());\n assertEquals(1, resultMatrixCSV0.getVisibleRowCount());\n assertEquals(2, resultMatrixCSV0.getMeanPrec());\n assertEquals(2, resultMatrixCSV0.getDefaultStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixCSV0.meanPrecTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultCountWidth());\n assertEquals(1, resultMatrixCSV0.getRowCount());\n assertEquals(25, resultMatrixCSV0.getRowNameWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixCSV0.showAverageTipText());\n assertEquals(0, resultMatrixCSV0.getSignificanceWidth());\n assertEquals(\"CSV\", resultMatrixCSV0.getDisplayName());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixCSV0.rowNameWidthTipText());\n assertFalse(resultMatrixCSV0.getPrintColNames());\n assertFalse(resultMatrixCSV0.getShowStdDev());\n assertTrue(resultMatrixCSV0.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixCSV0.getMeanWidth());\n assertEquals(0, resultMatrixCSV0.getColNameWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixCSV0.removeFilterNameTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixCSV0.stdDevPrecTipText());\n assertTrue(resultMatrixCSV0.getEnumerateColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixCSV0.stdDevWidthTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultStdDevWidth());\n assertFalse(resultMatrixCSV0.getShowAverage());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixCSV0.colNameWidthTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateColNamesTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixCSV0.significanceWidthTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixCSV0.printColNamesTipText());\n assertEquals(25, resultMatrixCSV0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixCSV0.getStdDevWidth());\n assertEquals(1, resultMatrixCSV0.getVisibleColCount());\n assertEquals(0, resultMatrixCSV0.getCountWidth());\n assertTrue(resultMatrixCSV0.getPrintRowNames());\n assertEquals(2, resultMatrixCSV0.getDefaultMeanPrec());\n assertEquals(\"Generates the matrix in CSV ('comma-separated values') format.\", resultMatrixCSV0.globalInfo());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixCSV0.printRowNamesTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixCSV0.countWidthTipText());\n assertFalse(resultMatrixCSV0.getEnumerateRowNames());\n assertEquals(2, resultMatrixCSV0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixCSV0.meanWidthTipText());\n assertFalse(resultMatrixCSV0.getRemoveFilterName());\n assertFalse(resultMatrixCSV0.getDefaultShowStdDev());\n assertEquals(1, resultMatrixCSV0.getColCount());\n assertEquals(0, resultMatrixCSV0.getDefaultSignificanceWidth());\n assertTrue(resultMatrixCSV0.getDefaultPrintRowNames());\n assertFalse(resultMatrixCSV0.getDefaultRemoveFilterName());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixCSV0.showStdDevTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultColNameWidth());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(25, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n \n resultMatrixSignificance0.setCount(1, 2833.967827254518);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertFalse(resultMatrixCSV0.getDefaultPrintColNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateRowNamesTipText());\n assertFalse(resultMatrixCSV0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixCSV0.getDefaultShowAverage());\n assertEquals(1, resultMatrixCSV0.getVisibleRowCount());\n assertEquals(2, resultMatrixCSV0.getMeanPrec());\n assertEquals(2, resultMatrixCSV0.getDefaultStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixCSV0.meanPrecTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultCountWidth());\n assertEquals(1, resultMatrixCSV0.getRowCount());\n assertEquals(25, resultMatrixCSV0.getRowNameWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixCSV0.showAverageTipText());\n assertEquals(0, resultMatrixCSV0.getSignificanceWidth());\n assertEquals(\"CSV\", resultMatrixCSV0.getDisplayName());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixCSV0.rowNameWidthTipText());\n assertFalse(resultMatrixCSV0.getPrintColNames());\n assertFalse(resultMatrixCSV0.getShowStdDev());\n assertTrue(resultMatrixCSV0.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixCSV0.getMeanWidth());\n assertEquals(0, resultMatrixCSV0.getColNameWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixCSV0.removeFilterNameTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixCSV0.stdDevPrecTipText());\n assertTrue(resultMatrixCSV0.getEnumerateColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixCSV0.stdDevWidthTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultStdDevWidth());\n assertFalse(resultMatrixCSV0.getShowAverage());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixCSV0.colNameWidthTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateColNamesTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixCSV0.significanceWidthTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixCSV0.printColNamesTipText());\n assertEquals(25, resultMatrixCSV0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixCSV0.getStdDevWidth());\n assertEquals(1, resultMatrixCSV0.getVisibleColCount());\n assertEquals(0, resultMatrixCSV0.getCountWidth());\n assertTrue(resultMatrixCSV0.getPrintRowNames());\n assertEquals(2, resultMatrixCSV0.getDefaultMeanPrec());\n assertEquals(\"Generates the matrix in CSV ('comma-separated values') format.\", resultMatrixCSV0.globalInfo());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixCSV0.printRowNamesTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixCSV0.countWidthTipText());\n assertFalse(resultMatrixCSV0.getEnumerateRowNames());\n assertEquals(2, resultMatrixCSV0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixCSV0.meanWidthTipText());\n assertFalse(resultMatrixCSV0.getRemoveFilterName());\n assertFalse(resultMatrixCSV0.getDefaultShowStdDev());\n assertEquals(1, resultMatrixCSV0.getColCount());\n assertEquals(0, resultMatrixCSV0.getDefaultSignificanceWidth());\n assertTrue(resultMatrixCSV0.getDefaultPrintRowNames());\n assertFalse(resultMatrixCSV0.getDefaultRemoveFilterName());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixCSV0.showStdDevTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultColNameWidth());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(25, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n \n String[] stringArray0 = new String[2];\n stringArray0[0] = \"]\";\n stringArray0[1] = \"]\";\n ResultMatrixLatex.main(stringArray0);\n assertEquals(2, stringArray0.length);\n \n ResultMatrixCSV resultMatrixCSV1 = new ResultMatrixCSV(resultMatrixSignificance0);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertNotNull(resultMatrixCSV1);\n assertFalse(resultMatrixCSV1.equals((Object)resultMatrixCSV0));\n assertFalse(resultMatrixCSV0.getDefaultPrintColNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateRowNamesTipText());\n assertFalse(resultMatrixCSV0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixCSV0.getDefaultShowAverage());\n assertEquals(1, resultMatrixCSV0.getVisibleRowCount());\n assertEquals(2, resultMatrixCSV0.getMeanPrec());\n assertEquals(2, resultMatrixCSV0.getDefaultStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixCSV0.meanPrecTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultCountWidth());\n assertEquals(1, resultMatrixCSV0.getRowCount());\n assertEquals(25, resultMatrixCSV0.getRowNameWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixCSV0.showAverageTipText());\n assertEquals(0, resultMatrixCSV0.getSignificanceWidth());\n assertEquals(\"CSV\", resultMatrixCSV0.getDisplayName());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixCSV0.rowNameWidthTipText());\n assertFalse(resultMatrixCSV0.getPrintColNames());\n assertFalse(resultMatrixCSV0.getShowStdDev());\n assertTrue(resultMatrixCSV0.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixCSV0.getMeanWidth());\n assertEquals(0, resultMatrixCSV0.getColNameWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixCSV0.removeFilterNameTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixCSV0.stdDevPrecTipText());\n assertTrue(resultMatrixCSV0.getEnumerateColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixCSV0.stdDevWidthTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultStdDevWidth());\n assertFalse(resultMatrixCSV0.getShowAverage());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixCSV0.colNameWidthTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateColNamesTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixCSV0.significanceWidthTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixCSV0.printColNamesTipText());\n assertEquals(25, resultMatrixCSV0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixCSV0.getStdDevWidth());\n assertEquals(1, resultMatrixCSV0.getVisibleColCount());\n assertEquals(0, resultMatrixCSV0.getCountWidth());\n assertTrue(resultMatrixCSV0.getPrintRowNames());\n assertEquals(2, resultMatrixCSV0.getDefaultMeanPrec());\n assertEquals(\"Generates the matrix in CSV ('comma-separated values') format.\", resultMatrixCSV0.globalInfo());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixCSV0.printRowNamesTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixCSV0.countWidthTipText());\n assertFalse(resultMatrixCSV0.getEnumerateRowNames());\n assertEquals(2, resultMatrixCSV0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixCSV0.meanWidthTipText());\n assertFalse(resultMatrixCSV0.getRemoveFilterName());\n assertFalse(resultMatrixCSV0.getDefaultShowStdDev());\n assertEquals(1, resultMatrixCSV0.getColCount());\n assertEquals(0, resultMatrixCSV0.getDefaultSignificanceWidth());\n assertTrue(resultMatrixCSV0.getDefaultPrintRowNames());\n assertFalse(resultMatrixCSV0.getDefaultRemoveFilterName());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixCSV0.showStdDevTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultColNameWidth());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(25, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertTrue(resultMatrixCSV1.getDefaultPrintRowNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixCSV1.meanWidthTipText());\n assertEquals(25, resultMatrixCSV1.getRowNameWidth());\n assertEquals(0, resultMatrixCSV1.getSignificanceWidth());\n assertEquals(1, resultMatrixCSV1.getRowCount());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixCSV1.showStdDevTipText());\n assertEquals(25, resultMatrixCSV1.getDefaultRowNameWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixCSV1.significanceWidthTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixCSV1.stdDevWidthTipText());\n assertFalse(resultMatrixCSV1.getEnumerateRowNames());\n assertFalse(resultMatrixCSV1.getPrintColNames());\n assertEquals(2, resultMatrixCSV1.getStdDevPrec());\n assertFalse(resultMatrixCSV1.getDefaultShowAverage());\n assertEquals(2, resultMatrixCSV1.getMeanPrec());\n assertFalse(resultMatrixCSV1.getShowStdDev());\n assertEquals(0, resultMatrixCSV1.getColNameWidth());\n assertTrue(resultMatrixCSV1.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixCSV1.getMeanWidth());\n assertEquals(0, resultMatrixCSV1.getStdDevWidth());\n assertEquals(0, resultMatrixCSV1.getDefaultCountWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixCSV1.colNameWidthTipText());\n assertEquals(2, resultMatrixCSV1.getDefaultStdDevPrec());\n assertTrue(resultMatrixCSV1.getEnumerateColNames());\n assertFalse(resultMatrixCSV1.getShowAverage());\n assertEquals(2, resultMatrixCSV1.getDefaultMeanPrec());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixCSV1.printRowNamesTipText());\n assertTrue(resultMatrixCSV1.getPrintRowNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixCSV1.countWidthTipText());\n assertEquals(\"CSV\", resultMatrixCSV1.getDisplayName());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixCSV1.showAverageTipText());\n assertFalse(resultMatrixCSV1.getDefaultShowStdDev());\n assertEquals(\"Generates the matrix in CSV ('comma-separated values') format.\", resultMatrixCSV1.globalInfo());\n assertEquals(0, resultMatrixCSV1.getCountWidth());\n assertEquals(0, resultMatrixCSV1.getDefaultColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixCSV1.meanPrecTipText());\n assertFalse(resultMatrixCSV1.getDefaultRemoveFilterName());\n assertEquals(1, resultMatrixCSV1.getVisibleRowCount());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV1.enumerateColNamesTipText());\n assertFalse(resultMatrixCSV1.getRemoveFilterName());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV1.enumerateRowNamesTipText());\n assertEquals(1, resultMatrixCSV1.getColCount());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixCSV1.stdDevPrecTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixCSV1.rowNameWidthTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixCSV1.removeFilterNameTipText());\n assertFalse(resultMatrixCSV1.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixCSV1.getDefaultPrintColNames());\n assertEquals(0, resultMatrixCSV1.getDefaultMeanWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixCSV1.printColNamesTipText());\n assertEquals(1, resultMatrixCSV1.getVisibleColCount());\n assertEquals(0, resultMatrixCSV1.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixCSV1.getDefaultStdDevWidth());\n \n ResultMatrixHTML resultMatrixHTML0 = new ResultMatrixHTML(resultMatrixCSV1);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertNotNull(resultMatrixHTML0);\n assertFalse(resultMatrixCSV0.equals((Object)resultMatrixCSV1));\n assertFalse(resultMatrixCSV1.equals((Object)resultMatrixCSV0));\n assertFalse(resultMatrixCSV0.getDefaultPrintColNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateRowNamesTipText());\n assertFalse(resultMatrixCSV0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixCSV0.getDefaultShowAverage());\n assertEquals(1, resultMatrixCSV0.getVisibleRowCount());\n assertEquals(2, resultMatrixCSV0.getMeanPrec());\n assertEquals(2, resultMatrixCSV0.getDefaultStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixCSV0.meanPrecTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultCountWidth());\n assertEquals(1, resultMatrixCSV0.getRowCount());\n assertEquals(25, resultMatrixCSV0.getRowNameWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixCSV0.showAverageTipText());\n assertEquals(0, resultMatrixCSV0.getSignificanceWidth());\n assertEquals(\"CSV\", resultMatrixCSV0.getDisplayName());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixCSV0.rowNameWidthTipText());\n assertFalse(resultMatrixCSV0.getPrintColNames());\n assertFalse(resultMatrixCSV0.getShowStdDev());\n assertTrue(resultMatrixCSV0.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixCSV0.getMeanWidth());\n assertEquals(0, resultMatrixCSV0.getColNameWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixCSV0.removeFilterNameTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixCSV0.stdDevPrecTipText());\n assertTrue(resultMatrixCSV0.getEnumerateColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixCSV0.stdDevWidthTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultStdDevWidth());\n assertFalse(resultMatrixCSV0.getShowAverage());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixCSV0.colNameWidthTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateColNamesTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixCSV0.significanceWidthTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixCSV0.printColNamesTipText());\n assertEquals(25, resultMatrixCSV0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixCSV0.getStdDevWidth());\n assertEquals(1, resultMatrixCSV0.getVisibleColCount());\n assertEquals(0, resultMatrixCSV0.getCountWidth());\n assertTrue(resultMatrixCSV0.getPrintRowNames());\n assertEquals(2, resultMatrixCSV0.getDefaultMeanPrec());\n assertEquals(\"Generates the matrix in CSV ('comma-separated values') format.\", resultMatrixCSV0.globalInfo());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixCSV0.printRowNamesTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixCSV0.countWidthTipText());\n assertFalse(resultMatrixCSV0.getEnumerateRowNames());\n assertEquals(2, resultMatrixCSV0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixCSV0.meanWidthTipText());\n assertFalse(resultMatrixCSV0.getRemoveFilterName());\n assertFalse(resultMatrixCSV0.getDefaultShowStdDev());\n assertEquals(1, resultMatrixCSV0.getColCount());\n assertEquals(0, resultMatrixCSV0.getDefaultSignificanceWidth());\n assertTrue(resultMatrixCSV0.getDefaultPrintRowNames());\n assertFalse(resultMatrixCSV0.getDefaultRemoveFilterName());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixCSV0.showStdDevTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultColNameWidth());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(25, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertTrue(resultMatrixCSV1.getDefaultPrintRowNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixCSV1.meanWidthTipText());\n assertEquals(25, resultMatrixCSV1.getRowNameWidth());\n assertEquals(0, resultMatrixCSV1.getSignificanceWidth());\n assertEquals(1, resultMatrixCSV1.getRowCount());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixCSV1.showStdDevTipText());\n assertEquals(25, resultMatrixCSV1.getDefaultRowNameWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixCSV1.significanceWidthTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixCSV1.stdDevWidthTipText());\n assertFalse(resultMatrixCSV1.getEnumerateRowNames());\n assertFalse(resultMatrixCSV1.getPrintColNames());\n assertEquals(2, resultMatrixCSV1.getStdDevPrec());\n assertFalse(resultMatrixCSV1.getDefaultShowAverage());\n assertEquals(2, resultMatrixCSV1.getMeanPrec());\n assertFalse(resultMatrixCSV1.getShowStdDev());\n assertEquals(0, resultMatrixCSV1.getColNameWidth());\n assertTrue(resultMatrixCSV1.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixCSV1.getMeanWidth());\n assertEquals(0, resultMatrixCSV1.getStdDevWidth());\n assertEquals(0, resultMatrixCSV1.getDefaultCountWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixCSV1.colNameWidthTipText());\n assertEquals(2, resultMatrixCSV1.getDefaultStdDevPrec());\n assertTrue(resultMatrixCSV1.getEnumerateColNames());\n assertFalse(resultMatrixCSV1.getShowAverage());\n assertEquals(2, resultMatrixCSV1.getDefaultMeanPrec());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixCSV1.printRowNamesTipText());\n assertTrue(resultMatrixCSV1.getPrintRowNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixCSV1.countWidthTipText());\n assertEquals(\"CSV\", resultMatrixCSV1.getDisplayName());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixCSV1.showAverageTipText());\n assertFalse(resultMatrixCSV1.getDefaultShowStdDev());\n assertEquals(\"Generates the matrix in CSV ('comma-separated values') format.\", resultMatrixCSV1.globalInfo());\n assertEquals(0, resultMatrixCSV1.getCountWidth());\n assertEquals(0, resultMatrixCSV1.getDefaultColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixCSV1.meanPrecTipText());\n assertFalse(resultMatrixCSV1.getDefaultRemoveFilterName());\n assertEquals(1, resultMatrixCSV1.getVisibleRowCount());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV1.enumerateColNamesTipText());\n assertFalse(resultMatrixCSV1.getRemoveFilterName());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV1.enumerateRowNamesTipText());\n assertEquals(1, resultMatrixCSV1.getColCount());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixCSV1.stdDevPrecTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixCSV1.rowNameWidthTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixCSV1.removeFilterNameTipText());\n assertFalse(resultMatrixCSV1.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixCSV1.getDefaultPrintColNames());\n assertEquals(0, resultMatrixCSV1.getDefaultMeanWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixCSV1.printColNamesTipText());\n assertEquals(1, resultMatrixCSV1.getVisibleColCount());\n assertEquals(0, resultMatrixCSV1.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixCSV1.getDefaultStdDevWidth());\n assertFalse(resultMatrixHTML0.getRemoveFilterName());\n assertEquals(1, resultMatrixHTML0.getColCount());\n assertEquals(1, resultMatrixHTML0.getVisibleColCount());\n assertEquals(0, resultMatrixHTML0.getCountWidth());\n assertEquals(\"HTML\", resultMatrixHTML0.getDisplayName());\n assertEquals(\"Generates the matrix output as HTML.\", resultMatrixHTML0.globalInfo());\n assertTrue(resultMatrixHTML0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixHTML0.showAverageTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixHTML0.colNameWidthTipText());\n assertEquals(0, resultMatrixHTML0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixHTML0.getColNameWidth());\n assertEquals(25, resultMatrixHTML0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixHTML0.getMeanWidth());\n assertEquals(2, resultMatrixHTML0.getDefaultMeanPrec());\n assertTrue(resultMatrixHTML0.getEnumerateColNames());\n assertEquals(0, resultMatrixHTML0.getDefaultStdDevWidth());\n assertEquals(0, resultMatrixHTML0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixHTML0.countWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixHTML0.significanceWidthTipText());\n assertTrue(resultMatrixHTML0.getDefaultEnumerateColNames());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixHTML0.rowNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixHTML0.stdDevPrecTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixHTML0.printColNamesTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixHTML0.getSignificanceWidth());\n assertFalse(resultMatrixHTML0.getShowStdDev());\n assertFalse(resultMatrixHTML0.getPrintColNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixHTML0.removeFilterNameTipText());\n assertEquals(2, resultMatrixHTML0.getMeanPrec());\n assertFalse(resultMatrixHTML0.getEnumerateRowNames());\n assertEquals(1, resultMatrixHTML0.getRowCount());\n assertEquals(0, resultMatrixHTML0.getDefaultCountWidth());\n assertFalse(resultMatrixHTML0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixHTML0.showStdDevTipText());\n assertFalse(resultMatrixHTML0.getShowAverage());\n assertEquals(25, resultMatrixHTML0.getRowNameWidth());\n assertFalse(resultMatrixHTML0.getDefaultPrintColNames());\n assertEquals(1, resultMatrixHTML0.getVisibleRowCount());\n assertEquals(0, resultMatrixHTML0.getStdDevWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixHTML0.stdDevWidthTipText());\n assertFalse(resultMatrixHTML0.getDefaultRemoveFilterName());\n assertEquals(2, resultMatrixHTML0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixHTML0.getDefaultColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixHTML0.meanPrecTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixHTML0.printRowNamesTipText());\n assertFalse(resultMatrixHTML0.getDefaultShowStdDev());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateRowNamesTipText());\n assertTrue(resultMatrixHTML0.getDefaultPrintRowNames());\n assertFalse(resultMatrixHTML0.getDefaultShowAverage());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixHTML0.meanWidthTipText());\n assertEquals(2, resultMatrixHTML0.getStdDevPrec());\n \n double double0 = resultMatrixHTML0.getAverage((-747));\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertFalse(resultMatrixCSV0.equals((Object)resultMatrixCSV1));\n assertFalse(resultMatrixCSV1.equals((Object)resultMatrixCSV0));\n assertEquals(0.0, double0, 0.01);\n assertNotSame(resultMatrixCSV0, resultMatrixCSV1);\n assertNotSame(resultMatrixCSV1, resultMatrixCSV0);\n assertFalse(resultMatrixCSV0.getDefaultPrintColNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateRowNamesTipText());\n assertFalse(resultMatrixCSV0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixCSV0.getDefaultShowAverage());\n assertEquals(1, resultMatrixCSV0.getVisibleRowCount());\n assertEquals(2, resultMatrixCSV0.getMeanPrec());\n assertEquals(2, resultMatrixCSV0.getDefaultStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixCSV0.meanPrecTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultCountWidth());\n assertEquals(1, resultMatrixCSV0.getRowCount());\n assertEquals(25, resultMatrixCSV0.getRowNameWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixCSV0.showAverageTipText());\n assertEquals(0, resultMatrixCSV0.getSignificanceWidth());\n assertEquals(\"CSV\", resultMatrixCSV0.getDisplayName());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixCSV0.rowNameWidthTipText());\n assertFalse(resultMatrixCSV0.getPrintColNames());\n assertFalse(resultMatrixCSV0.getShowStdDev());\n assertTrue(resultMatrixCSV0.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixCSV0.getMeanWidth());\n assertEquals(0, resultMatrixCSV0.getColNameWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixCSV0.removeFilterNameTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixCSV0.stdDevPrecTipText());\n assertTrue(resultMatrixCSV0.getEnumerateColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixCSV0.stdDevWidthTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultStdDevWidth());\n assertFalse(resultMatrixCSV0.getShowAverage());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixCSV0.colNameWidthTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateColNamesTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixCSV0.significanceWidthTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixCSV0.printColNamesTipText());\n assertEquals(25, resultMatrixCSV0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixCSV0.getStdDevWidth());\n assertEquals(1, resultMatrixCSV0.getVisibleColCount());\n assertEquals(0, resultMatrixCSV0.getCountWidth());\n assertTrue(resultMatrixCSV0.getPrintRowNames());\n assertEquals(2, resultMatrixCSV0.getDefaultMeanPrec());\n assertEquals(\"Generates the matrix in CSV ('comma-separated values') format.\", resultMatrixCSV0.globalInfo());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixCSV0.printRowNamesTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixCSV0.countWidthTipText());\n assertFalse(resultMatrixCSV0.getEnumerateRowNames());\n assertEquals(2, resultMatrixCSV0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixCSV0.meanWidthTipText());\n assertFalse(resultMatrixCSV0.getRemoveFilterName());\n assertFalse(resultMatrixCSV0.getDefaultShowStdDev());\n assertEquals(1, resultMatrixCSV0.getColCount());\n assertEquals(0, resultMatrixCSV0.getDefaultSignificanceWidth());\n assertTrue(resultMatrixCSV0.getDefaultPrintRowNames());\n assertFalse(resultMatrixCSV0.getDefaultRemoveFilterName());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixCSV0.showStdDevTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultColNameWidth());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(25, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertTrue(resultMatrixCSV1.getDefaultPrintRowNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixCSV1.meanWidthTipText());\n assertEquals(25, resultMatrixCSV1.getRowNameWidth());\n assertEquals(0, resultMatrixCSV1.getSignificanceWidth());\n assertEquals(1, resultMatrixCSV1.getRowCount());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixCSV1.showStdDevTipText());\n assertEquals(25, resultMatrixCSV1.getDefaultRowNameWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixCSV1.significanceWidthTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixCSV1.stdDevWidthTipText());\n assertFalse(resultMatrixCSV1.getEnumerateRowNames());\n assertFalse(resultMatrixCSV1.getPrintColNames());\n assertEquals(2, resultMatrixCSV1.getStdDevPrec());\n assertFalse(resultMatrixCSV1.getDefaultShowAverage());\n assertEquals(2, resultMatrixCSV1.getMeanPrec());\n assertFalse(resultMatrixCSV1.getShowStdDev());\n assertEquals(0, resultMatrixCSV1.getColNameWidth());\n assertTrue(resultMatrixCSV1.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixCSV1.getMeanWidth());\n assertEquals(0, resultMatrixCSV1.getStdDevWidth());\n assertEquals(0, resultMatrixCSV1.getDefaultCountWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixCSV1.colNameWidthTipText());\n assertEquals(2, resultMatrixCSV1.getDefaultStdDevPrec());\n assertTrue(resultMatrixCSV1.getEnumerateColNames());\n assertFalse(resultMatrixCSV1.getShowAverage());\n assertEquals(2, resultMatrixCSV1.getDefaultMeanPrec());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixCSV1.printRowNamesTipText());\n assertTrue(resultMatrixCSV1.getPrintRowNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixCSV1.countWidthTipText());\n assertEquals(\"CSV\", resultMatrixCSV1.getDisplayName());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixCSV1.showAverageTipText());\n assertFalse(resultMatrixCSV1.getDefaultShowStdDev());\n assertEquals(\"Generates the matrix in CSV ('comma-separated values') format.\", resultMatrixCSV1.globalInfo());\n assertEquals(0, resultMatrixCSV1.getCountWidth());\n assertEquals(0, resultMatrixCSV1.getDefaultColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixCSV1.meanPrecTipText());\n assertFalse(resultMatrixCSV1.getDefaultRemoveFilterName());\n assertEquals(1, resultMatrixCSV1.getVisibleRowCount());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV1.enumerateColNamesTipText());\n assertFalse(resultMatrixCSV1.getRemoveFilterName());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV1.enumerateRowNamesTipText());\n assertEquals(1, resultMatrixCSV1.getColCount());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixCSV1.stdDevPrecTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixCSV1.rowNameWidthTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixCSV1.removeFilterNameTipText());\n assertFalse(resultMatrixCSV1.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixCSV1.getDefaultPrintColNames());\n assertEquals(0, resultMatrixCSV1.getDefaultMeanWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixCSV1.printColNamesTipText());\n assertEquals(1, resultMatrixCSV1.getVisibleColCount());\n assertEquals(0, resultMatrixCSV1.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixCSV1.getDefaultStdDevWidth());\n assertFalse(resultMatrixHTML0.getRemoveFilterName());\n assertEquals(1, resultMatrixHTML0.getColCount());\n assertEquals(1, resultMatrixHTML0.getVisibleColCount());\n assertEquals(0, resultMatrixHTML0.getCountWidth());\n assertEquals(\"HTML\", resultMatrixHTML0.getDisplayName());\n assertEquals(\"Generates the matrix output as HTML.\", resultMatrixHTML0.globalInfo());\n assertTrue(resultMatrixHTML0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixHTML0.showAverageTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixHTML0.colNameWidthTipText());\n assertEquals(0, resultMatrixHTML0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixHTML0.getColNameWidth());\n assertEquals(25, resultMatrixHTML0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixHTML0.getMeanWidth());\n assertEquals(2, resultMatrixHTML0.getDefaultMeanPrec());\n assertTrue(resultMatrixHTML0.getEnumerateColNames());\n assertEquals(0, resultMatrixHTML0.getDefaultStdDevWidth());\n assertEquals(0, resultMatrixHTML0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixHTML0.countWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixHTML0.significanceWidthTipText());\n assertTrue(resultMatrixHTML0.getDefaultEnumerateColNames());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixHTML0.rowNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixHTML0.stdDevPrecTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixHTML0.printColNamesTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixHTML0.getSignificanceWidth());\n assertFalse(resultMatrixHTML0.getShowStdDev());\n assertFalse(resultMatrixHTML0.getPrintColNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixHTML0.removeFilterNameTipText());\n assertEquals(2, resultMatrixHTML0.getMeanPrec());\n assertFalse(resultMatrixHTML0.getEnumerateRowNames());\n assertEquals(1, resultMatrixHTML0.getRowCount());\n assertEquals(0, resultMatrixHTML0.getDefaultCountWidth());\n assertFalse(resultMatrixHTML0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixHTML0.showStdDevTipText());\n assertFalse(resultMatrixHTML0.getShowAverage());\n assertEquals(25, resultMatrixHTML0.getRowNameWidth());\n assertFalse(resultMatrixHTML0.getDefaultPrintColNames());\n assertEquals(1, resultMatrixHTML0.getVisibleRowCount());\n assertEquals(0, resultMatrixHTML0.getStdDevWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixHTML0.stdDevWidthTipText());\n assertFalse(resultMatrixHTML0.getDefaultRemoveFilterName());\n assertEquals(2, resultMatrixHTML0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixHTML0.getDefaultColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixHTML0.meanPrecTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixHTML0.printRowNamesTipText());\n assertFalse(resultMatrixHTML0.getDefaultShowStdDev());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateRowNamesTipText());\n assertTrue(resultMatrixHTML0.getDefaultPrintRowNames());\n assertFalse(resultMatrixHTML0.getDefaultShowAverage());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixHTML0.meanWidthTipText());\n assertEquals(2, resultMatrixHTML0.getStdDevPrec());\n }", "title": "" }, { "docid": "0fc50c4778508df8fe4d69c52c2eb9d7", "score": "0.5718709", "text": "@org.junit.Test(timeout = 10000)\n public void testGetFalsePositiveProbability_cf7623() {\n // These probabilities are taken from the bloom filter probability table at\n // http://pages.cs.wisc.edu/~cao/papers/summary-cache/node8.html\n java.lang.System.out.println(\"expectedFalsePositiveProbability\");\n com.clearspring.analytics.stream.membership.BloomFilter instance = new com.clearspring.analytics.stream.membership.BloomFilter(100, 10);\n double expResult = 0.00819;// m/n=10, k=7\n \n double result = com.clearspring.analytics.stream.membership.BloomCalculations.getFalsePositiveProbability(10, 7);\n org.junit.Assert.assertEquals(7, instance.getHashCount());\n org.junit.Assert.assertEquals(expResult, result, 9.0E-6);\n instance = new com.clearspring.analytics.stream.membership.BloomFilter(10, 10);\n expResult = 0.00819;// m/n=10, k=7\n \n result = com.clearspring.analytics.stream.membership.BloomCalculations.getFalsePositiveProbability(10, 7);\n org.junit.Assert.assertEquals(7, instance.getHashCount());\n org.junit.Assert.assertEquals(expResult, result, 9.0E-6);\n instance = new com.clearspring.analytics.stream.membership.BloomFilter(10, 2);\n expResult = 0.393;// m/n=2, k=1\n \n result = com.clearspring.analytics.stream.membership.BloomCalculations.getFalsePositiveProbability(2, 1);\n org.junit.Assert.assertEquals(instance.getHashCount(), 1);\n org.junit.Assert.assertEquals(expResult, result, 5.0E-4);\n instance = new com.clearspring.analytics.stream.membership.BloomFilter(10, 11);\n expResult = 0.00509;// m/n=11, k=8\n \n result = com.clearspring.analytics.stream.membership.BloomCalculations.getFalsePositiveProbability(11, 8);\n org.junit.Assert.assertEquals(8, instance.getHashCount());\n // StatementAdderOnAssert create null value\n com.clearspring.analytics.stream.membership.Filter[] vc_1558 = (com.clearspring.analytics.stream.membership.Filter[])null;\n // AssertGenerator replace invocation\n com.clearspring.analytics.stream.membership.Filter o_testGetFalsePositiveProbability_cf7623__41 = // StatementAdderMethod cloned existing statement\ninstance.merge(vc_1558);\n // AssertGenerator add assertion\n org.junit.Assert.assertEquals(((com.clearspring.analytics.stream.membership.BloomFilter)o_testGetFalsePositiveProbability_cf7623__41).buckets(), 192);\n // AssertGenerator add assertion\n org.junit.Assert.assertEquals(((com.clearspring.analytics.stream.membership.BloomFilter)o_testGetFalsePositiveProbability_cf7623__41).getHashCount(), 8);\n org.junit.Assert.assertEquals(expResult, result, 1.0E-5);\n }", "title": "" }, { "docid": "136d9e95a389a7a6e6ea6988db885625", "score": "0.5718485", "text": "@Test(timeout = 4000)\n public void test226() throws Throwable {\n String[] stringArray0 = new String[0];\n ResultMatrixSignificance.main(stringArray0);\n ResultMatrixSignificance resultMatrixSignificance0 = new ResultMatrixSignificance(0, 2112);\n resultMatrixSignificance0.countWidthTipText();\n resultMatrixSignificance0.setCount(3, 0);\n ResultMatrixLatex.main(stringArray0);\n resultMatrixSignificance0.removeFilterNameTipText();\n ResultMatrixCSV resultMatrixCSV0 = new ResultMatrixCSV(resultMatrixSignificance0);\n resultMatrixCSV0.getDefaultPrintColNames();\n assertEquals(2, resultMatrixCSV0.getStdDevPrec());\n assertEquals(0, resultMatrixCSV0.getStdDevWidth());\n assertEquals(40, resultMatrixCSV0.getRowNameWidth());\n }", "title": "" }, { "docid": "e6e29d953eb1b1ad376c668d47e7b5a4", "score": "0.5714777", "text": "@Override\n public double getFeatureCoverage() {\n return featureCoverage_;\n }", "title": "" } ]
25197b4cf814864ecd440f23b9149cb3
TODO Autogenerated method stub
[ { "docid": "f32a1180c91a11b387c75379d92c545d", "score": "0.0", "text": "@Override\n\tpublic BigInteger getBatchRunNo() {\n\t\treturn null;\n\t}", "title": "" } ]
[ { "docid": "63a51b9825ac81396e1d7ad0b9f3ed82", "score": "0.6866318", "text": "@Override\n\tpublic void 군무() {\n\t\t\n\t}", "title": "" }, { "docid": "15ae679aae74424c73fde647cf4332f6", "score": "0.68461496", "text": "@Override\r\n\t\t\tpublic void hissetmek() {\n\r\n\t\t\t}", "title": "" }, { "docid": "76a80470fd21f5a9092c258ed3a8a632", "score": "0.68199706", "text": "private static void 로또번호리스트() {\n\t\t\r\n\t}", "title": "" }, { "docid": "bfad11e436c98998f434617a4d2907e5", "score": "0.6690517", "text": "@Override\r\n\tpublic void adharno() {\n\t\t\r\n\t}", "title": "" }, { "docid": "33d41636b65afa8267c9085dae3d1a2d", "score": "0.6679176", "text": "private void apparence() {\r\n\r\n\t}", "title": "" }, { "docid": "9969c2cd0a26f223be9eea348d1c6160", "score": "0.6571234", "text": "private static void 로또수동생성() {\n\t\t\r\n\t}", "title": "" }, { "docid": "0b5b11f4251ace8b3d0f5ead186f7beb", "score": "0.65677965", "text": "@Override\n\tpublic void comer() {\n\t\t\n\t}", "title": "" }, { "docid": "5f8d37aee09bc1e9959f768d6eb0183c", "score": "0.6481211", "text": "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "title": "" }, { "docid": "1dd3d9bdd67d8cc8bddfe021796a9286", "score": "0.6433148", "text": "@Override\n protected void lodate() {\n\n }", "title": "" }, { "docid": "b62655d47438ae6875a06d0702721dbc", "score": "0.6424808", "text": "@Override\r\n\t\t\tpublic void koklama() {\n\r\n\t\t\t}", "title": "" }, { "docid": "d92d5fe4c6efcfe66d53457e76817518", "score": "0.64108074", "text": "@Override\r\n\t\t\tprotected void init() {\n\t\t\t\t\r\n\t\t\t}", "title": "" }, { "docid": "5435fed6c0a9345524c30343d8ed9829", "score": "0.63912827", "text": "@Override\r\n\tpublic void entrenar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "dda3b5a5b8e9e69b6eec0807bf162606", "score": "0.63636446", "text": "@Override\r\n\tpublic void rozmnozovat() {\n\t\t\r\n\t}", "title": "" }, { "docid": "00075c50e26b18237953cd05ffd5428b", "score": "0.63032013", "text": "@Override\n\tpublic void beber() {\n\t\t\n\t}", "title": "" }, { "docid": "1f7c82e188acf30d59f88faf08cf24ac", "score": "0.623686", "text": "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "title": "" }, { "docid": "1f7c82e188acf30d59f88faf08cf24ac", "score": "0.623686", "text": "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "title": "" }, { "docid": "76e3d99118a00e74a082f6a955778f7d", "score": "0.62293875", "text": "Grensesnitt(){}", "title": "" }, { "docid": "61358eff9372995c8157b02d47a44a6a", "score": "0.6186996", "text": "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "title": "" }, { "docid": "bf8fefe7b85b49281edb456698bfd556", "score": "0.616781", "text": "@Override\r\n\tpublic void descansar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "10ead2e988bf977cb8edb2bacf974891", "score": "0.61546874", "text": "@Override\n\tprotected void init() {\n\t\t\n\t}", "title": "" }, { "docid": "10ead2e988bf977cb8edb2bacf974891", "score": "0.61546874", "text": "@Override\n\tprotected void init() {\n\t\t\n\t}", "title": "" }, { "docid": "c612bcadafd393d086f44fd19558a8be", "score": "0.61533993", "text": "@Override\r\n\tpublic void inicialize() {\n\t\t\r\n\t}", "title": "" }, { "docid": "106ce0ada7b978eeffda7ec9cccc29e2", "score": "0.61470556", "text": "public void дразнит() {\n\n\t}", "title": "" }, { "docid": "a6e9388ba580a030c48b527221f8e81a", "score": "0.6139653", "text": "@Override\n\tpublic void actuar() {\n\t\t\n\t}", "title": "" }, { "docid": "958663dc976180cba7b91b2a4ebcb522", "score": "0.61089844", "text": "@Override\n\tpublic void atualiza() {\n\n\t}", "title": "" }, { "docid": "2bd152bb33ecbe797b9818e175c5d4ec", "score": "0.6105675", "text": "public void mo55659a() {\n }", "title": "" }, { "docid": "42693116fba02f3f07be1ab752c6d9bc", "score": "0.6063955", "text": "@Override\r\n\tpublic void concentrarse() {\n\t\t\r\n\t}", "title": "" }, { "docid": "cce15f647f795017e06f2ca544477ccd", "score": "0.6063628", "text": "@Override\n\tpublic void chamCong() {\n\n\t}", "title": "" }, { "docid": "c95af00aee2fa41e8a03e3640ca30750", "score": "0.6041561", "text": "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "title": "" }, { "docid": "b7d3c2b49702a5ed673b243bf8d2b7c0", "score": "0.60215324", "text": "@Override\n\tprotected void funcionario() {\n\t\t\n\t}", "title": "" }, { "docid": "0d996fa345e18b74a73dce6394fc0b15", "score": "0.60198766", "text": "@Override\r\n\tpublic void sunricers() {\n\t\t\r\n\t}", "title": "" }, { "docid": "a6c2db17f79f35f8fc3b8e99eee9ab48", "score": "0.60124713", "text": "@Override\r\n\tprotected void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "27c725838f280928d869cc973588317c", "score": "0.6001773", "text": "@Override\r\n\tpublic void doSelfOpertion() {\n\t\t\r\n\t}", "title": "" }, { "docid": "f350fb57d7c81ec6d70f2643960940a8", "score": "0.5986621", "text": "@Override \r\n public void init() {\n \r\n }", "title": "" }, { "docid": "4f035da85a44bb830509e046190e6ee5", "score": "0.59682363", "text": "@Override\r\n\tpublic void rajastanroyals() {\n\t\t\r\n\t}", "title": "" }, { "docid": "a0486d5f3890f3b56ce5a39122c4bdd7", "score": "0.59527355", "text": "@Override\r\n\tvoid metodo4() {\n\t\t\r\n\t}", "title": "" }, { "docid": "c744960aa067b28111e99db9ddf6aeed", "score": "0.59477377", "text": "@Override\r\n\tpublic void fragancia() {\n\t\t\r\n\t}", "title": "" }, { "docid": "288fd3ee71b736e770bbef790831c263", "score": "0.59301406", "text": "User mo18615e();", "title": "" }, { "docid": "6f1e0cfaa7350cf143896dace56978f5", "score": "0.59270483", "text": "@Override\n\tpublic void respirar() {\n\t\t\n\t}", "title": "" }, { "docid": "8b18fd12dbb5303a665e92c25393fb78", "score": "0.59239364", "text": "@Override\n\tprotected void initData() {\n\t\t\n\t}", "title": "" }, { "docid": "9808ba3c113b79c3677f2c08c09e60a1", "score": "0.59020513", "text": "@Override\n\tpublic void resert() {\n\t\t\n\t}", "title": "" }, { "docid": "416a053368cfd700d9d09414458911cd", "score": "0.58986443", "text": "@Override\n\tpublic void assamblyOfControlhead() {\n\t\t\n\t\t\n\t\t\n\t\n\n\t}", "title": "" }, { "docid": "c9b74342d0ae0e22bc7119b60588c66a", "score": "0.5897873", "text": "@Override\n\t\t\tpublic int getType() {\n\t\t\t\treturn 0;\n\t\t\t}", "title": "" }, { "docid": "c9b74342d0ae0e22bc7119b60588c66a", "score": "0.5897873", "text": "@Override\n\t\t\tpublic int getType() {\n\t\t\t\treturn 0;\n\t\t\t}", "title": "" }, { "docid": "77d32d2a2070d9c3117ff146ac04f114", "score": "0.5891585", "text": "@Override\r\n\tpublic void climaChuvoso() {\n\r\n\t}", "title": "" }, { "docid": "77f859c241fd5e1d997f67c3b890833e", "score": "0.5886342", "text": "@Override\n\tpublic void dormir() {\n\t\t\n\t}", "title": "" }, { "docid": "40577cf33330bd70c08bc8e310b4436d", "score": "0.58706117", "text": "@Override\n\tpublic void falar() {\n\n\t}", "title": "" }, { "docid": "79c707f3d28263fcc89902b0527d5c14", "score": "0.58528596", "text": "public void mo736a() {\n }", "title": "" }, { "docid": "42c3f8e63385f8e328b6828c1f7243d4", "score": "0.584987", "text": "@Override\r\n\t\tpublic void method_4() {\n\t\t\t\r\n\t\t}", "title": "" }, { "docid": "60e50abec8df6d4d5a80de13ba750171", "score": "0.5842782", "text": "@Override\r\n\tpublic void retour() {\n\t\t\r\n\t}", "title": "" }, { "docid": "debc6b4612a5fe9f0680a6bff73f25e6", "score": "0.58388203", "text": "@Override\r\n\t\tpublic void emettreSon() {\n\t\t\t\r\n\t\t}", "title": "" }, { "docid": "d56c498b25d1ea77dc09f49efcf80f6c", "score": "0.58347356", "text": "@Override\r\n\tpublic void aumentaFatorAcidade() {\n\r\n\t}", "title": "" }, { "docid": "a5d63cf5eb472d80fba18b0149c96501", "score": "0.5825308", "text": "@Override\n\tpublic void memberSecession() {\n\t\t\n\t}", "title": "" }, { "docid": "f4f7bcdf27874d7a17a80f57f8df43e0", "score": "0.5822819", "text": "public void mo10744d() {\n }", "title": "" }, { "docid": "d45e7311f809d3019d7382af887cb3cf", "score": "0.5799729", "text": "@Override\r\n\tpublic void dehlidervels() {\n\t\t\r\n\t}", "title": "" }, { "docid": "ce91051d32625345f2bf3562abbb93de", "score": "0.5794177", "text": "@Override\n\tprotected void inicializar() {\n\t}", "title": "" }, { "docid": "89b37f5fcca98bdfa7c243fc99d06675", "score": "0.5790634", "text": "@Override\r\n\tpublic void reanudar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "54b1134554bc066c34ed30a72adb660c", "score": "0.57844025", "text": "@Override\n\tprotected void initData() {\n\n\t}", "title": "" }, { "docid": "54b1134554bc066c34ed30a72adb660c", "score": "0.57844025", "text": "@Override\n\tprotected void initData() {\n\n\t}", "title": "" }, { "docid": "54b1134554bc066c34ed30a72adb660c", "score": "0.57844025", "text": "@Override\n\tprotected void initData() {\n\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "4a3a3aeaffc4b367a8aa8488e4b59610", "score": "0.57720804", "text": "public void mo10856b() {\n }", "title": "" }, { "docid": "1c10afc999966d89d84d1fb549910281", "score": "0.5770528", "text": "@Override \n\t\tprotected void parse() {\t\t\t\n\t\t}", "title": "" }, { "docid": "a46afb3a57efda28ee1b37c4a9b1960f", "score": "0.57642525", "text": "private void getEx() {\n\r\n\t}", "title": "" }, { "docid": "5e6804b1ba880a8cc8a98006ca4ba35b", "score": "0.5761362", "text": "@Override\n public void init() {\n\n }", "title": "" }, { "docid": "518a761521ca9f5cb8a8055b32b72cda", "score": "0.57596046", "text": "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "title": "" }, { "docid": "518a761521ca9f5cb8a8055b32b72cda", "score": "0.57596046", "text": "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "title": "" }, { "docid": "518a761521ca9f5cb8a8055b32b72cda", "score": "0.57596046", "text": "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "title": "" }, { "docid": "b95bbed498007dfeba9b078798c02e53", "score": "0.5754483", "text": "@Override\r\n\tpublic void exibir() {\n\t\t\r\n\t}", "title": "" }, { "docid": "03b93c6668ea7af171bbcdb3af74bb4a", "score": "0.57524616", "text": "@Override\n public void bicar() {\n }", "title": "" }, { "docid": "b2cde12cf50e0ec60f909684878e936c", "score": "0.57514966", "text": "@Override\n\tpublic void wykonajZamknij() {\n\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.575025", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57337177", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57337177", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "a53d232dac89259f961cbc93762f65b2", "score": "0.5731746", "text": "@Override\r\n\t\t\tvoid n() {\n\t\t\t\t\r\n\t\t\t}", "title": "" }, { "docid": "cf193ee51fc2ac8c94c94264e19ff99c", "score": "0.57304704", "text": "@Override\n public boolean cannibale() {\n return false;\n }", "title": "" }, { "docid": "cf193ee51fc2ac8c94c94264e19ff99c", "score": "0.57304704", "text": "@Override\n public boolean cannibale() {\n return false;\n }", "title": "" }, { "docid": "3b072172b17a5e5ab0081f24545795f2", "score": "0.57235396", "text": "public void przymocowac() {\n\t\t\n\t}", "title": "" }, { "docid": "17e507b0166d99f88c8237ad30d967b7", "score": "0.5716563", "text": "public void zamowic() {\n\t\t\n\t}", "title": "" }, { "docid": "a937c607590931387a357d03c3b0eef4", "score": "0.5715831", "text": "@Override\n\tprotected void initialize() {\n\n\t}", "title": "" }, { "docid": "a937c607590931387a357d03c3b0eef4", "score": "0.5715831", "text": "@Override\n\tprotected void initialize() {\n\n\t}", "title": "" }, { "docid": "7bbf3f0011f317b7faa88562e06495b7", "score": "0.5714223", "text": "@Override\r\n public void reculer() {\n }", "title": "" }, { "docid": "1ba6f6b334c51461b3fe944110e91ef5", "score": "0.5707728", "text": "@Override\n\tpublic void comerHojas() {\n\t\t\n\t}", "title": "" }, { "docid": "39132efb6b42f8ec625d96ff6226d80b", "score": "0.56991017", "text": "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "title": "" }, { "docid": "2d9072b54f55f18557f92b99be58ec2f", "score": "0.56886935", "text": "@Override\r\n public String toString() {\n\treturn null;\r\n }", "title": "" }, { "docid": "0ca16e78cddd3c7d9de74c662606bbac", "score": "0.5686997", "text": "public void mo4570b() {\n }", "title": "" }, { "docid": "359579516b65b36ff8c4344d8363a3ed", "score": "0.5686103", "text": "@Override\r\n\tprotected void initData() {\n\t}", "title": "" }, { "docid": "09488e6c7d4190869b37b126a578249f", "score": "0.56821704", "text": "@Override\r\n\t/**\r\n\t * \r\n\t */\r\n\tpublic int size() {\n\t\treturn 0;\r\n\t}", "title": "" }, { "docid": "b6c641fa6ba40a5b14cc33cb07aa0671", "score": "0.5669649", "text": "@Override\n\tprotected void initData() {\n\t}", "title": "" }, { "docid": "b6c641fa6ba40a5b14cc33cb07aa0671", "score": "0.5669649", "text": "@Override\n\tprotected void initData() {\n\t}", "title": "" }, { "docid": "001227e6b58a587f9eb4f77b15fc3588", "score": "0.5668976", "text": "@Override\n\tprotected void local() {\n\t\t\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5655942", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5655942", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" } ]
8ce2c46ed7a767f688300fed93eee30b
/ Adds a song to the queue. Parameters: s The song to be added to the queue.
[ { "docid": "d7d17d1b96481abf0f12daf42c8a7ec0", "score": "0.90793353", "text": "public void addSong(Song s) {\n\t\tqueue.add(s);\n\t}", "title": "" } ]
[ { "docid": "4b7e4d3bd52e6d6a853d7385666af467", "score": "0.7654051", "text": "public void addSong(SongsResultsTableItem s){\r\n\t\tsongs.put(s.getTrack(), s);\r\n\t}", "title": "" }, { "docid": "ef5f151f2c2096ef706d0485a4581a1f", "score": "0.7355288", "text": "public void addToQueue(Song song) {\n songQueue.add(song);\n }", "title": "" }, { "docid": "14448bae7ac508d7b74b433b15bb52c9", "score": "0.6951675", "text": "public void addSong(String song) {\n\n songs.add(song);\n }", "title": "" }, { "docid": "18be6341e2054a74bbb28726f32537f2", "score": "0.6810428", "text": "public void addSong(Song song) {\n mSongs.add(song);\r\n }", "title": "" }, { "docid": "e97088e019a82583e2b158dcb14f6fac", "score": "0.6768492", "text": "public void addSong(Song song) {\n songs.add(song);\n }", "title": "" }, { "docid": "8af329db08e4639bd915c781131b4e85", "score": "0.671708", "text": "private void pushData(SongQueue s){\n Log.d(\"PushData\", \"1234\");\n HashMap<String, Object> map = new HashMap<>();\n String folder = \"/queues/\"+ Integer.toString(s.partyLeaderID);\n map.put(folder, s);\n mDatabase.updateChildren(map)\n .addOnFailureListener(new OnFailureListener() {\n @Override\n public void onFailure(@NonNull Exception e) {\n Log.w(\"Potato\", \"Error adding document\", e);\n }\n });\n }", "title": "" }, { "docid": "fdd63a696c37ac54509941785957b824", "score": "0.65885115", "text": "private void addASong (SongQueue songQueue, Song song) throws InterruptedException {\n if (song != null) {\n songQueue.addSong(song);\n pushData(songQueue);\n }\n //pullData(Integer.parseInt(yourPartyID), \"displayQueue\", null,null);\n\n\n if (songQueue.getQueueSize() == 2){\n Log.i(\"Song queue size\", Integer.toString(songQueue.getQueueSize()));\n playNextSong(songQueue);\n //Log.i(\"Call Result: \", result.toString());\n }\n\n }", "title": "" }, { "docid": "e2c4eda102ff250d00c7462931840c6f", "score": "0.6575464", "text": "public void addSong() {\n\n\t}", "title": "" }, { "docid": "fe1fbb372db7513e35b246b23f7f9dfb", "score": "0.6472889", "text": "public void addSong(Integer uniqueId) { addSong(uniqueId, true); }", "title": "" }, { "docid": "7f18cfb70e57eac8322566e1c1d40474", "score": "0.6412488", "text": "@Override\n \tpublic void enqueue(Song song) {\n \n \t}", "title": "" }, { "docid": "eaf4070543e20fa150c660adff0de6c8", "score": "0.6264195", "text": "public void addSong(Song song) {\n\t\tsongDAO.create(song);\n\t\tsongs.add(song);\n\t}", "title": "" }, { "docid": "ee29b9873d260566b8f5c11ab643fda1", "score": "0.62105834", "text": "public void addToQueue(SongList songs) {\n songQueue.addAll(songs.getSongs());\n //.addAll appends ALL the parameter elements to the songQueue\n }", "title": "" }, { "docid": "e16234690dd042f867fcb9f983d0bc38", "score": "0.6127267", "text": "public void push(String s) {\n\t\t// Creates a temporary node to hold the string to be pushed\n\t\t// the next node head points to is temp which stores the string.\n\t\tNode temp = head;\n\t\thead = new Node();\n\t\thead.data = s;\n\t\thead.next = temp;\n\t\tsize++;\n\n\t}", "title": "" }, { "docid": "fb92583d630bf09d797b44bc37e87189", "score": "0.61046726", "text": "@Override\n\tpublic void add(Song song) {\n\t\tif (!(song instanceof OfflineSong)) {\n\n\t\t} else {\n\t\t\tsongs.add((OfflineSong) song);\n\t\t}\n\n\t}", "title": "" }, { "docid": "7124ebcde5fc5a703d39c0632a1833d4", "score": "0.6061393", "text": "public void addSong(Song song) {\n\t\talbumSongs.put(song.getSongID(), song);\n\t\t//database\n\t\tString sql = \"INSERT INTO album_song(fk_album_id, fk_song_id) VALUES (?, ?);\";\n\t\ttry {\n\t\t\tDbUtilities db = new DbUtilities();\n\t\t\tConnection conn = db.getConn();\n\t\t\tPreparedStatement ps = conn.prepareStatement(sql);\n\t\t\tps.setString(1, this.albumID);\n\t\t\tps.setString(2, song.getSongID());\n\t\t\t\n\t\t\tps.executeUpdate();\n\t\t\tdb.closeDbConnection();\n\t\t\tdb = null;\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\t\n\t\t\n\t}", "title": "" }, { "docid": "bc2cc052690dbfadc61f3b8246d1ae98", "score": "0.602173", "text": "public void addTrack(Song newSong){\r\n\r\n\t\tthis.songList.add(newSong);\r\n\r\n\t}", "title": "" }, { "docid": "1d46b30a6b3b46ced9ebb7504126dc6e", "score": "0.6018732", "text": "public void addSegment(TrackSegment s) {\n\t\t//segments.add(s);\n\t\ts.setTrack(this);\n\t}", "title": "" }, { "docid": "1a25c71f68b76a7fe4630ae491849155", "score": "0.60091496", "text": "public void add(String s) {\r\n\t\tlist.add(0, s);\r\n\t\tthis.notifyDataSetChanged();\r\n\t}", "title": "" }, { "docid": "2d613a53a0c56b143bec7eead666ad83", "score": "0.5998127", "text": "public void addSong(int track, String name, String artist, int length){\r\n\t\tSongsResultsTableItem s = new SongsResultsTableItem(track,name,artist,length);\r\n\t\tsongs.put(track, s);\r\n\t}", "title": "" }, { "docid": "344eb586c2eb3925cd2ca68b928c7b2d", "score": "0.5902599", "text": "public void setQueue(String s){\n\t\t//if(backupQueue.size() >= max){\n\t\t\t//backupQueue.remove();\n\t\t//}\n\t\tbackupQueue.add(s);\n\t}", "title": "" }, { "docid": "66e0f51fda9856cc439dca6d58b8e2cc", "score": "0.59004897", "text": "public boolean addSong(Song song) {\n try {\n this.listOfSongs.putIfAbsent(listOfSongs.size(), song);\n } catch(Exception e) {\n System.out.println(e.getMessage());\n return false;\n }\n return true;\n }", "title": "" }, { "docid": "52fa8a0a7aa740856a38354449e60e48", "score": "0.5885197", "text": "public void add(String s) {\n Node tmp = new Node(s);\n\ttmp.setNext(l);\n\tl = tmp;\n }", "title": "" }, { "docid": "4808a11ffcc984ecd5b5e5300f7032dd", "score": "0.5808064", "text": "public static void addQueued(LinkedList<String> eventHistory, String previousSongId, String queuedSongId) {\n if(previousSongId == null) return;\n\n if(eventHistory.size() >= size()) {\n eventHistory.removeFirst();\n }\n\n eventHistory.add(previousSongId + \"-\" + queuedSongId + \"-\" + PlayerEvent.QUEUE + \"-\" + System.currentTimeMillis());\n }", "title": "" }, { "docid": "f1a45d2c8b358659e66629d5b12d28c2", "score": "0.5803021", "text": "public void addSongToPlaylist(Playlist playlist, Songs songs) {\n plManager.addSongToPlaylist(playlist, songs);\n }", "title": "" }, { "docid": "5a90cd8fceb57d28aef95ba50494d6ab", "score": "0.56747586", "text": "public void add(Track t){\n playList.add(t);\n }", "title": "" }, { "docid": "974a9fd0b93538d158a509d0813f7b96", "score": "0.56641155", "text": "public void addMusic(Music music) {\n this.secondaryQueue.add(music);\n // indications aux listeners\n contentHasChanged();\n }", "title": "" }, { "docid": "44cb438b24c4cbabd4e0decad0fc3f3e", "score": "0.5614697", "text": "public boolean addSong(String title, String duration) {\n if(findSong(title) == null){\n //if song doesn't exists add it to album, return true\n this.trackList.add(new Song(title, duration));\n return true;\n }\n //else return false\n return false;\n }", "title": "" }, { "docid": "62cb7296d1dfe02f8829b637203a360c", "score": "0.55932", "text": "public void enqueue(String string) {\n\t\tNode oldRear = rear;\n\t\trear = new Node();\n\t\trear.data = string;\n\t\trear.next = null;\n\t\tif (isEmpty()) {\n\t\t\tfront = rear;\n\t\t} else {\n\t\t\toldRear.next = rear;\n\t\t}\n\t\tcurrentSize++;\n\t\tSystem.out.println(string + \" added to the queue\");\n\n\t}", "title": "" }, { "docid": "d4efd8f61d806182af0a3c768b185032", "score": "0.5587625", "text": "public boolean addSong(String title, double duration){\n Song newSong = findSong(title);\n if(newSong==null){\n //Jika belom ada, baru di add\n this.songs.add(new Song(title,duration));\n //System.out.println(\"Song\" +title+\" successfully added to \"+ this.name+\" album\");\n return true;\n }\n\n System.out.println(\"That song already in the album!\");\n return false;\n }", "title": "" }, { "docid": "fe62eabc505f18499582f63c08a48feb", "score": "0.55870026", "text": "public void add(String s) {\n\t\t// if it's full need to resize\n\t\tif(size==strArray.length) {\n\t\t\tresize();\n\t\t}\n\t\t\n\t\t// search for next null occurrence to put the string s\n\t\tfor(int i=0; i<strArray.length;i++) {\n\t\t\tif(strArray[i]==null) {\n\t\t\t\tstrArray[i] = s;\n\t\t\t\tthis.size++;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "d387cea4222f3c6658844651aef3a66e", "score": "0.55753124", "text": "public boolean addToPlaylist(SongWeiss newSong)\n\t{\n\t\tboolean success = false;\n\t\t\n\t\tif (mySize < mySongs.length)\n\t\t{\n\t\t\t\tmySongs[mySize] = newSong;\n\t\t\t\tmySize++;\n\t\t\t\tsuccess = true;\n\t\t}//if\n\t\treturn success;\n\t}", "title": "" }, { "docid": "9efe08368e7ef53bc9e3afaab09bc315", "score": "0.5537176", "text": "public void push(E s) {\r\n\t\t//add parameter to list\r\n\t\tthis.list.add(s);\r\n\t}", "title": "" }, { "docid": "57ca4efde464d800af5675368eb5a066", "score": "0.5500952", "text": "private void playNextSong (SongQueue songQueue) throws InterruptedException {\n Song s = songQueue.nextSong();\n if (s != null) {\n currentSong = s;\n mSpotifyAppRemote.getPlayerApi().getPlayerState().setResultCallback(playerState -> {\n mSpotifyAppRemote.getPlayerApi().play(s.getURI());\n })\n .setErrorCallback(throwable -> {\n Log.i(\"Error in playSong\", mSpotifyAppRemote.toString());\n });\n\n mSpotifyAppRemote.getPlayerApi().play(s.getURI());\n //playSong(s.getURI());\n //mSpotifyAppRemote.getPlayerApi().play(s.getURI());\n //songQueue.removeSong(s.getURI());\n //pushData(songQueue);\n }\n }", "title": "" }, { "docid": "c44faba74a40ffd886f0e97573e588d0", "score": "0.5493891", "text": "public void put(String s) {\n int hashValue = computeHash(s);\n hashArray[hashValue].addToStart(s);\n }", "title": "" }, { "docid": "38c3877537e2a6303bcee28c7c0bef30", "score": "0.5486589", "text": "void addSong(Song song, String tableName) {\n SQLiteDatabase db = this.getWritableDatabase();\n ArrayList<Song> songArrayList = getAllSongs(tableName, false);\n for (Song song1 : songArrayList) {\n if (song1.id.equals(song.id)) {\n return;\n }\n }\n ContentValues values = new ContentValues();\n values.put(KEY_SONGS_TITLE, song.title);\n values.put(KEY_SONGS_ARTIST, song.artist);\n values.put(KEY_SONGS_ALBUM, song.album);\n values.put(KEY_SONGS_COVER_LOC, song.cover_loc);\n values.put(KEY_SONGS_DURATION, song.duration);\n values.put(KEY_SONGS_LOCATION, song.location);\n values.put(KEY_SONG_ID, song.id);\n\n // Inserting Row\n db.insert(tableName, null, values);\n db.close(); // Closing database connection\n }", "title": "" }, { "docid": "0897f18e12688c513ad1feec1050e292", "score": "0.5479796", "text": "public void addSong(String songTitle, String songLocation) {\n\n\t\t// make new song object with title and location\n\t\tSong s = new Song(songTitle, songLocation);\n\t\tint index = 0;\n\n\t\t// iterate song list and get empty index\n\t\tif (songList.length > 0) {\n\t\t\tint i = 0;\n\n\t\t\t// iterate loop\n\t\t\twhile (i < songList.length) {\n\t\t\t\t// check for null\n\t\t\t\tif (songList[i] == null) {\n\t\t\t\t\tindex = i; // match found\n\t\t\t\t\ti = songList.length + 1; // terminate the loop\n\t\t\t\t}\n\t\t\t\ti = i + 1; // iterate loop\n\t\t\t}\n\t\t}\n\n\t\t// add song object\n\t\tsongList[index] = s;\n\n\t}", "title": "" }, { "docid": "56174c0474277fb74c6ad28c788acaca", "score": "0.54551506", "text": "private static void addAlbumTrack(Album album, String title, String file,\n Time length, Artist artist, int disc,\n int positionOnDisc, Session session) {\n Track track = new Track(title, file, length, new HashSet<Artist>(),\n new Date(), (short)0,\n new HashSet<String>());\n track.getArtists().add(artist);\n // session.save(track);\n album.getTracks().add(track);\n }", "title": "" }, { "docid": "d8bac74cf43a20e0e9d81d031288fd77", "score": "0.54398763", "text": "public synchronized void addURL(String url) {\n queue.addLast(url);\n notify();\n }", "title": "" }, { "docid": "4b1d53c7f6a960754ae218bd7849aee2", "score": "0.54368806", "text": "@Override\r\n\tpublic void enqueue(final Object item) {\r\n\t\t// TODO Auto-generated method stub\r\n\t\tq.add(item);\r\n\t}", "title": "" }, { "docid": "0ac2c16004c5c244c49bf504d67a8c83", "score": "0.53966653", "text": "public synchronized void add(MTerms s) {\n if (!checkIdExist(Long.parseLong(s.getItemID()))) {\n SQLiteDatabase db = this.getWritableDatabase();\n ContentValues values = new ContentValues();\n values.put(CARD_DEFINITION, s.getDefinition());\n values.put(CARD_ID, Long.parseLong(s.getItemID()));\n values.put(CARD_TERM, s.getTerm());\n values.put(TRANSLATE_LANGFROM, s.langfrom);\n values.put(TRANSLATE_LANGTO, s.langto);\n values.put(MARK, s.mark);\n values.put(BOOKMARK_TIME, s.bookmarkTime);\n if (s.getImage() != null) {\n values.put(CARD_IMAGE, s.getImage().getUrl());\n values.put(CARD_IMAGE_WIDTH, s.getImage().getWidth());\n values.put(CARD_IMAGE_HEIGHT, s.getImage().getHeight());\n }\n values.put(TRANSLATEID, s.translateID);\n values.put(BOX, s.box); // -1 is default\n db.insert(TABLE_CARD, null, values);\n db.close();\n } else {\n update(s);\n }\n }", "title": "" }, { "docid": "755ca7a8ceb06b7655d76acbc769cea1", "score": "0.5380425", "text": "public void enqueue(Message message) {\n\t\tqueue.add(message);\n\n\t}", "title": "" }, { "docid": "669bbfb34527f8303ca99ed4ab7f9e73", "score": "0.53771037", "text": "public void addStore(Store s) throws SQLException {\n\t\tint sID = s.getsID();\n\t\tString sName = s.getsName();\n\t\tString founded = s.getFounded();\n\n\t\tConnection conn = mysqlDS.getConnection();\n\t\tString query = \"insert into store values(?, ?, ?);\";\n\t\tPreparedStatement statement = conn.prepareStatement(query);\n\t\tstatement.setInt(1, sID);\n\t\tstatement.setString(2, sName);\n\t\tstatement.setString(3, founded);\n\t\tstatement.executeUpdate();\n\n\t\tconn.close();\n\t}", "title": "" }, { "docid": "286c9a8855bf6f9fe5c78c1163841832", "score": "0.53596234", "text": "public void addWord(String s)\n\t{\n\t\tString newword = normalize(s);\n\t\tint index = findIndex(newword);\n\t\tif (index >= 0)\n\t\t\twords[index].incFrequency();\n\t\telse\n\t\t{\n\t\t\tif (wordcount == capacity)\n\t\t\t\texpand();\n\t\t\tint k = wordcount;\n\t\t\twhile (k>0 && words[k-1].getWord().compareTo(newword) > 0)\n\t\t\t{\n\t\t\t\twords[k]=words[k-1];\n\t\t\t\tk = k-1;\n\t\t\t}\n\t\t\twords[k] = new WordRecord(newword);\n\t\t\twordcount++;\n\n\t\t}\n\t}", "title": "" }, { "docid": "0218f5ab51226e7b220cef7409b82d42", "score": "0.5357002", "text": "private void add(Stream stream) {\n String expectedPreviousToken = stream.getExpectedPreviousToken();\n\n boolean startPlaying = playQueue.isEmpty();\n\n if (expectedPreviousToken == null || latestStreamToken.isEmpty()\n || latestStreamToken.equals(expectedPreviousToken)) {\n playQueue.add(stream);\n }\n\n if (startPlaying) {\n startPlayback();\n }\n }", "title": "" }, { "docid": "3131e2739f48f9bf237fe8f5709e181e", "score": "0.5337542", "text": "private static void enqueue(String word) {\n\t\ts1.push(word);\n\t}", "title": "" }, { "docid": "b4c88e914baff3ad6ca96c0cd722b3e1", "score": "0.53362894", "text": "public void addSprite(Sprite s) {\r\n this.spriteCollection.add(s);\r\n }", "title": "" }, { "docid": "ea5e440ad3593e138abe47f854ceb9ee", "score": "0.53332657", "text": "void enqueue(Item item);", "title": "" }, { "docid": "73f1781d1d209472e8dc38f939b9d722", "score": "0.5320575", "text": "public void put(String s) {\n if (size() > buckets.length * maxLoad) {\n resize();\n }\n int code = s.hashCode() & 0x7fffffff;\n int theBucket = code % buckets.length;\n LinkedList<String> bucket = buckets[theBucket];\n if (bucket == null) {\n bucket = new LinkedList<String>();\n bucket.add(s);\n _size++;\n } else if (!bucket.contains(s)) {\n bucket.add(s);\n _size++;\n }\n\n }", "title": "" }, { "docid": "84a6ae38989538976090791fd7c4dde4", "score": "0.53167754", "text": "public void enqueue(Item item)\n\t{\n\t\tqueue.append(item);\n\t}", "title": "" }, { "docid": "e0890a0ab02df107f991b39d8e332c49", "score": "0.5315632", "text": "public void nextSong() {\n if (songQueue.size() == 0) {\n System.out.println(\"Queue is Empty\");\n currentlyPlaying = null;\n return;\n }\n\n currentlyPlaying = songQueue.get(0);\n songQueue.get(0).play();\n songQueue.remove(0);\n }", "title": "" }, { "docid": "74b443386eacd680dc52d1af72c79cfd", "score": "0.5303915", "text": "public void addPlayer(String name) {\n if (!queue.contains(name)) queue.add(name);\n }", "title": "" }, { "docid": "7bf90c02d148e1904292356b626866d7", "score": "0.53019005", "text": "void push(String s);", "title": "" }, { "docid": "13977ea86059b183410405801681f353", "score": "0.52836084", "text": "void enqueue(E e) {\n queue.add(queue.size(), e);\n }", "title": "" }, { "docid": "367a784a8d9f1b82dfae34c2e48593a0", "score": "0.5277399", "text": "public void addStation(Station s) {\r\n\t\tstations.add(s);\r\n\t}", "title": "" }, { "docid": "3e7abea7cecb41833313236aac914edd", "score": "0.52740276", "text": "public void add(ServiceListener s){\n\t\tif (songListComputed){\n\t\t\ts.onServiceReady();\n\t\t} else {\n\t\t\tcomputedSongListener.add(s);\n\t\t}\n\t}", "title": "" }, { "docid": "b14b332d6d92e62c46d4e45dcace30e0", "score": "0.5264699", "text": "public void addSongFromPath(String filePath){\n\t\tif(!sdao.checkSongExistsByPath(filePath)){\n\t\t\t\n\t\t\tString[] metaData = readID3(new File(filePath));\n\n\t\t\tif(metaData != null){\t\n\t\t\t\n\t\t\t\tmetaData[0] = pathToUrl(metaData[0]);\n\t\t\t\t\n\t\t\t\tJSONObject jsonObj = makeJsonObject(metaData[0], metaData[1], metaData[2], metaData[3], metaData[4],\n\t\t\t\t\t\tmetaData[5], metaData[6], metaData[7], metaData[8], metaData[9], metaData[10]);\n\t\t\t\t\n\t\t\t\tjsonObj.put(\"Action\", \"C\");\n\t\t\t\t\n\t\t\t\tint songId = sdao.getMaxId();\n\t\t\t\t\n\t\t\t\ttry {\n\t\t\t\t\tsdao.insertSong(new Song(songId, metaData[0], metaData[1], metaData[2], metaData[3], metaData[4], metaData[5], metaData[6], metaData[7], metaData[8], metaData[9], metaData[10]));\n\t\t\t\t\twriteJsonFile(\"C\", jsonObj, songId, metaData[0], false);\n\t\t\t\t} catch (SQLException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "6bcc0320790cb2b1c36fc2e39d4a48a3", "score": "0.5257919", "text": "public void addSprite(Sprite s) {\r\n this.sprites.addSprite(s);\r\n }", "title": "" }, { "docid": "6bcc0320790cb2b1c36fc2e39d4a48a3", "score": "0.5257919", "text": "public void addSprite(Sprite s) {\r\n this.sprites.addSprite(s);\r\n }", "title": "" }, { "docid": "5c68e0a76bfa05ca9f1cb2c1ebcd7882", "score": "0.52563226", "text": "public void addSprite(Sprite s) {\r\n spriteList.add(s);\r\n }", "title": "" }, { "docid": "ad3d17eed1fbd4952063ca8bf3e286c9", "score": "0.52455986", "text": "public boolean addSong(String songID){\n Boolean found = false;\n for(int i = 0 ; i < this.songsID.size(); i++){\n if(songID.equals(this.songsID.get(i))){\n found = true;\n }\n }\n if(found){\n return false;\n } else {\n this.songsID.add(songID);\n return true;\n }\n }", "title": "" }, { "docid": "e11620476986bf58ca357f6154caa78c", "score": "0.52327776", "text": "public void add(T item) {\n\t\tthisQueue.add(item);\n\t}", "title": "" }, { "docid": "4c60531f2d3393a3891c64eb60a1c8e4", "score": "0.5228791", "text": "public void addState(State s) {\n states.add(s);\n }", "title": "" }, { "docid": "9c72e940ea37c3270a0909e9c0da1e27", "score": "0.52194375", "text": "public void addSprite(Sprite s) {\r\n sprites.add(s);\r\n }", "title": "" }, { "docid": "6dc37777adcc96eb3574ee284d3bc87d", "score": "0.5211988", "text": "@Override\n public boolean add(String s) {\n return list.add(s);\n }", "title": "" }, { "docid": "86d0d08c77d83002bd80bf58c5e8f9f2", "score": "0.5209025", "text": "public void addSymbol(Symbol s) {\n symbols.add(s);\n }", "title": "" }, { "docid": "f576adaafce65200c5068b5bfdd4f8aa", "score": "0.51990277", "text": "public void add(String s){\n\t\tint hash=Math.abs(s.hashCode()%tamanho);\n\t\tbloom[hash]=1;\n\t\tfor(int i=1;i<k;i++){\n\t\t\ts=s+i;\n\t\t\thash=Math.abs(s.hashCode()%tamanho);\n\t\t\tbloom[hash]=1;\n\t\t}\n\t}", "title": "" }, { "docid": "7234fc1f8c95c1be1270abdce5f609ad", "score": "0.51875085", "text": "public void add(final Alias alias) {\r\n\t\tsongs.add(alias);\r\n\t}", "title": "" }, { "docid": "07673822431d7b888f7a498d86fe947f", "score": "0.5184687", "text": "private void next(){\n //if theres available songs in queue, play the next song in queue\n if(queue.peek() != null) player.playTrack(queue.poll());\n }", "title": "" }, { "docid": "cb4896305ed0f965f448cb8366d3accb", "score": "0.51834", "text": "public void sendSoundT(Player player, String s)\n {\n Sound[] arrayOfSound;\n int j = (arrayOfSound = Sound.values()).length;\n for (int i = 0; i < j; i++)\n {\n Sound sounValue = arrayOfSound[i];\n if (sounValue.toString().equals(s))\n {\n Sound sound = Sound.valueOf(s);\n player.getWorld().playSound(player.getLocation(), sound, 2.0F, 2.0F);\n break;\n }\n }\n }", "title": "" }, { "docid": "71250fec71f0709d6e64468802520174", "score": "0.5182655", "text": "public void addSprite(Sprite s) {\n this.sprites.addSprite(s);\n }", "title": "" }, { "docid": "a7fff296ba1dbb8a0467a4db6bdf4d11", "score": "0.51763105", "text": "@Override\n\tpublic void addSpeler(Speler_Model sm) throws RemoteException {\n\t\tthis.players.add(sm);\n\t\tnotifyObservers();\n\t}", "title": "" }, { "docid": "ddbb83b8ade909077661037d8e939ab6", "score": "0.5167125", "text": "private void appendToQueue(State s) {\n\t\tif (visited.containsKey(s.hash)) {\n\t\t\t// Only visit it if current plan improves others in this state\n\t\t\tif(visited.get(s.hash) > s.plan.totalDistance()) {\n\t\t\t\tvisited.replace(s.hash, new Double(s.plan.totalDistance()));\n\t\t\t\tqueue.add(s);\n\t\t\t}\n\t\t} else {\n\t\t\tvisited.put(s.hash, new Double(s.plan.totalDistance()));\n\t\t\tqueue.add(s);\n\t\t\t\n\t\t}\n\t}", "title": "" }, { "docid": "a3d6781fed44d89391e3e10cdf401bd3", "score": "0.5162534", "text": "private void playSong() {\n\tif (this.songPlaying == false) {\n\t if (this.songQueue.hasNext()) {\n\t\tthis.songPlaying = true;\n\t\tSong nextSong = this.songQueue.getNextWithoutRemoving();\n\t\tsongplayer.SongPlayer.playFile(new WaitingForSongToEnd(),\n\t\t\t(System.getProperty(\"user.dir\") + nextSong.getPathString()));\n\t }\n\t}\n }", "title": "" }, { "docid": "8d6a3514d359da246156f9918e2732df", "score": "0.5144979", "text": "@RequestMapping(value = \"/addSong\", method = RequestMethod.POST)\n\t@ResponseBody\n\tpublic Map<String, Object> addSong(@RequestParam Map<String, String> params,\n\t\t\tHttpServletRequest request) {\n\n\t\tMap<String, Object> response = new HashMap<String, Object>();\n\t\tresponse.put(\"path\", String.format(\"POST %s\", Utils.getUrl(request)));\n\t\tSystem.out.println(\"params\" + params);\n\t\t// create a song obj and try and enter it into the database\n\t\tif (!params.containsKey(\"songName\") || !params.containsKey(\"songArtistFullName\") || !params\n\t\t\t\t.containsKey(\"songAlbum\")) {\n\t\t\tresponse.put(\"message\", \"Missing required parameters\");\n\t\t\tresponse = Utils.setResponseStatus(response, DbQueryExecResult.QUERY_ERROR_GENERIC, null);\n\t\t\treturn response;\n\t\t}\n\t\tSong toInsert = new Song(params.get(\"songName\"), params.get(\"songArtistFullName\"),\n\t\t\t\tparams.get(\"songAlbum\"));\n\t\tDbQueryStatus dbQueryStatus = songDal.addSong(toInsert);\n\n\t\tresponse.put(\"message\", dbQueryStatus.getMessage());\n\t\tresponse = Utils\n\t\t\t\t.setResponseStatus(response, dbQueryStatus.getdbQueryExecResult(), dbQueryStatus.getData());\n\t\treturn response;\n\t}", "title": "" }, { "docid": "52c744544aef1b8a0be7d9447e78774f", "score": "0.5138242", "text": "public void addFile(String s) throws IOException {\n\t\tFile f = new File(s);\n\t\taddFile(f);\n\t}", "title": "" }, { "docid": "386fe77e6c41edcd3b7af79b1d036904", "score": "0.5128057", "text": "@Override\n public void AddSongToPlaylist(int playlist_id, int song_id) throws IOException {\n File file = new File(LOCAL_PLAYLIST_SONG);\n try(RandomAccessFile raf = new RandomAccessFile(file,\"rw\")){\n while(raf.getFilePointer()<raf.length()){\n if(raf.readInt()==emptyIntValue){\n raf.seek(raf.getFilePointer()-4);\n raf.writeInt(playlist_id);\n raf.writeInt(song_id);\n return;\n }\n else raf.skipBytes(4);\n }\n raf.seek(raf.length());\n raf.writeInt(playlist_id);\n raf.writeInt(song_id);\n }\n }", "title": "" }, { "docid": "81c4eea388243ff3d05b650222559e7c", "score": "0.512445", "text": "public void insert( String s )\n {\n add(current, s);\n \n }", "title": "" }, { "docid": "f6a2608a8cbc341dc08a7df3c6426118", "score": "0.51233363", "text": "int insert(SongComment record);", "title": "" }, { "docid": "c31ab9e1baa58710b23c3a9e75ea70be", "score": "0.51157653", "text": "synchronized public void enqueue(T t) {\n list.add(t);\n }", "title": "" }, { "docid": "9e12f49027f7845b91378a13533738bb", "score": "0.50999725", "text": "public void add(S session);", "title": "" }, { "docid": "22657ed04bcbb73722e6c60ea8ab0ad8", "score": "0.5090299", "text": "public void add (Event e){\n\t\tqueue.add(e);\n\t}", "title": "" }, { "docid": "5913eb7cac411e86ba7d5693abfdca17", "score": "0.5087751", "text": "public static void addStock(Stock sIn) \n\t{ \n\t\tdbConnection();\n\t\ttry {\n\t\t\tjava.sql.PreparedStatement pstatement = conn.prepareStatement(\"INSERT INTO DevOpsPansies.Stock(SuppOrderId,Name,Expiry,quantity,Colour,price,code) values(?,?,?,?,?,?,?)\");\n\t\t\tpstatement.setInt(1, sIn.getSupOrderId());\n\t\t\tpstatement.setString(2, sIn.getName());\n\t\t\tpstatement.setString(3, sIn.getExpiry());\n\t\t\tpstatement.setString(4,sIn.getQuantity());\n\t\t\tpstatement.setString(5,sIn.getColour());\n\t\t\tpstatement.setDouble(6,sIn.getPrice());\n\t\t\tpstatement.setString(7,sIn.getCode());\n\t\t\tpstatement.executeUpdate();\n\t\t\tJOptionPane.showMessageDialog(null, \"Stock added to the Stock table\");\n\t\t} catch (SQLException e1) {\n\t\t\tSystem.out.println(\"ERROR EXECUTING PREPARED STATEMENT\");\n\t\t\te1.printStackTrace();\n\t\t}\n\n\t\tcloseConnection();\n\t}", "title": "" }, { "docid": "440e39c41134f5fb30b4f2bae58b7ea2", "score": "0.5086458", "text": "public void insert (SimEvent e)\r\n\t{\r\n\t\tqueue.insert ((SortableQueueItem) e);\r\n\t}", "title": "" }, { "docid": "325f988215628935621afcc8d4743265", "score": "0.5076035", "text": "public void addRequest(Message request){\n requests.put(request.getRequestId(), request);\n currentState.put(request.getRequestId(), \"In Queue\");\n }", "title": "" }, { "docid": "e9287415b9262e4bcebae8d18010dad1", "score": "0.5072103", "text": "public void add(String str) {\n lastYank = false;\n\n if (lastKill) {\n if (slots[head] != null) {\n slots[head] += str;\n return;\n }\n }\n\n lastKill = true;\n next();\n slots[head] = str;\n }", "title": "" }, { "docid": "a25ebcc51c7b31a3c21dbdd0e09ca15e", "score": "0.50713795", "text": "public void sendSoundP(Player player, String s)\n {\n Sound[] arrayOfSound;\n int j = (arrayOfSound = Sound.values()).length;\n for (int i = 0; i < j; i++)\n {\n Sound sounValue = arrayOfSound[i];\n if (sounValue.toString().equals(s))\n {\n Sound sound = Sound.valueOf(s);\n player.getWorld().playSound(player.getLocation(), sound, 1.0F, 1.0F);\n break;\n }\n }\n }", "title": "" }, { "docid": "058686454cd0d642cca792d33a1b58b4", "score": "0.50682116", "text": "public void addSongToPlaylist(PlaylistModel playlist, Song song) {\n SQLiteDatabase db = this.getWritableDatabase();\n ArrayList<Song> songArrayList = getPlaylist(playlist.getId()).getSongs();\n for (Song loopSong : songArrayList) {\n if (loopSong.id.equals(song.id)) {\n return;\n }\n }\n songArrayList.add(song);\n Gson gson = new Gson();\n String jsonSongs = gson.toJson(songArrayList);\n // updating row\n Cursor c = db.rawQuery(\"UPDATE \" + TABLE_PLAYLIST + \" SET \" + KEY_PLAYLISTS_SONGS + \" = \" + \"'\" + jsonSongs + \"'\" + \" WHERE \" + KEY_PLAYLIST_ID + \" = \" + \"'\" + playlist.getId() + \"'\", null);\n CurrentSong.makeToast(myContext, c.getCount());\n c.close();\n db.close();\n }", "title": "" }, { "docid": "02a51c480e3540a4f098cc15b73a20ad", "score": "0.5063647", "text": "public void add(String ques) {\n Question question = new Question(ques);\n questions.put(noq, question);\n noq++;\n }", "title": "" }, { "docid": "584a20e97d2ccb3ce4d5e837d7b16883", "score": "0.50591445", "text": "@Override\n public void trackLoaded(AudioTrack track) {\n //add to queue\n queue.offer(track);\n //if the player is not playing, play the song next in queue\n if(!isPlaying()) next();\n }", "title": "" }, { "docid": "1e2a802438b6248a7501dd766457f9a8", "score": "0.50491506", "text": "public void queueMessage(OgreMessage message) {\n if (message == null) {\n throw new IllegalArgumentException(\"message must not be null\");\n }\n\n synchronized( mMessageQueue )\n {\n mMessageQueue.add(message);\n }\n }", "title": "" }, { "docid": "0945f840820dcd0b35f5c9451e6fab3f", "score": "0.5046417", "text": "public void setAlbum(String s)\r\n {\r\n set(createAlbumField(s));\r\n }", "title": "" }, { "docid": "566cfab4d958ab66467b684e7b7d3415", "score": "0.5045867", "text": "public void postAddSongDataAtService(Song song) {\n\t\tsongRepository.save(song);\n\t}", "title": "" }, { "docid": "475179dce113bbaf2fb75b0bbbe27e18", "score": "0.5041982", "text": "public static void addURI(String s) {\n\t\tif (null == lstURIs) {\n\t\t\tlstURIs = new ArrayList<String>();\n\t\t}\n\n\t\tif (!lstURIs.contains(s)) {\n\t\t\tlstURIs.add(s);\n\t\t}\n\t}", "title": "" }, { "docid": "30fbd9b5e1abf5682c5aa1babe6b6605", "score": "0.50335675", "text": "@Override\r\n\tpublic void addRequest(Request req) {\r\n\t\t\r\n\t\tqueue.enqueue(req);\r\n\t}", "title": "" }, { "docid": "8ecf59f07fc3bbc253e7153501f9b4ba", "score": "0.5033282", "text": "public void enqueue(Item i) {\n\n }", "title": "" }, { "docid": "e971ada774e3ddc9bad77fd6208bef75", "score": "0.50295234", "text": "public void add(Space s) {\n\t\tmyEmptySpaces.add(s);\n\t}", "title": "" }, { "docid": "693e6b6fc61e48f7198fb192854018db", "score": "0.5017887", "text": "public void add(String s) {\n //throw new UnsupportedOperationException(\"The method Trie.add has not been implemented.\");\n //allStrings().add(s);\n\n/* int strLenghth = s.length();*/\n\n // Given string is empty\n/* if(strLenghth == 0){\n return error;\n }*/\n\n // Check if there is a subTree\n // I need position to return character when use character type\n // When string, we can use subtring?????\n if (s.length() < 1) {\n\n finished = true;\n\n } else {\n\n String firstChar = s.substring(0, 1);\n\n if (subTries == null) {\n subTries = new HashMap<String, Trie>();\n }\n\n Trie trieFirstChar = subTries.get(firstChar);\n\n if (trieFirstChar == null) {\n trieFirstChar = new Trie();\n subTries.put(firstChar, trieFirstChar);\n }\n\n trieFirstChar.add(s.substring(1));\n }\n\n }", "title": "" }, { "docid": "6262b8d34512ae68f197a4e8a205c04f", "score": "0.50136495", "text": "public static void addRecord(String s, String fileName) {\n Path file = Paths.get(fileName);\n byte[] data = s.getBytes();\n ByteBuffer buffer = ByteBuffer.wrap(data);\n try {\n FileChannel fc;\n int id = Integer.parseInt(s.substring(0, 3));\n System.out.println(id);\n fc = (FileChannel) Files.newByteChannel(file, WRITE);\n fc.position((id-1) * RECORD_LAYOUT.length());\n fc.write(buffer);\n fc.close();\n } catch (NumberFormatException | IOException e) {\n System.out.println(\"Error message: \" + e);\n }\n }", "title": "" }, { "docid": "f8ddf407b8726fda68c02beef1cf93a1", "score": "0.5012196", "text": "public <T> void addToRequestQueue(Request<T> request) {\n getRequestQueue().add(request);\n }", "title": "" }, { "docid": "d68357281f298f91fb8e2bec30c6eb7b", "score": "0.5003499", "text": "public void addToQueue(Object o) throws DatabaseException {\n\t\tthrow new DatabaseException(\n\t\t\t\t\"Cleaner.addToQueue should never be called.\");\n\t}", "title": "" } ]
efd1c493a5002dd2ed38388e1d57480c
Returns the result of interpreting the object as an instance of 'Predicate Mul'. This implementation returns null; returning a nonnull result will terminate the switch.
[ { "docid": "58adf36ea0863bef062200f2efa56064", "score": "0.8262362", "text": "public T casePredicateMul(PredicateMul object)\n {\n return null;\n }", "title": "" } ]
[ { "docid": "379a7322dfac6ffb4bdfc5c04096c424", "score": "0.6490883", "text": "public T caseMulOrDiv(MulOrDiv object)\n {\n return null;\n }", "title": "" }, { "docid": "961a77dfb4d48f92592155d910f78a68", "score": "0.6456721", "text": "public T casePredicateDiv(PredicateDiv object)\n {\n return null;\n }", "title": "" }, { "docid": "52d4714b0843c5a8cce7e1414db93fa2", "score": "0.6404707", "text": "public T caseMult(Mult object)\n {\n return null;\n }", "title": "" }, { "docid": "dee28f6ac2154289c066d8738b99596e", "score": "0.6251063", "text": "public T caseMultiply(Multiply object)\n {\n return null;\n }", "title": "" }, { "docid": "c1974a8107aed7e8712e982fed42c58b", "score": "0.61037827", "text": "public T caseUpdateMul(UpdateMul object)\n {\n return null;\n }", "title": "" }, { "docid": "215679bca562e78aa8abcb48ddfcabeb", "score": "0.6072005", "text": "public T casePredicatePlu(PredicatePlu object)\n {\n return null;\n }", "title": "" }, { "docid": "7a175de0b1daefc16121d0251d660aee", "score": "0.58545154", "text": "private Allop parseMulOp() {\n\t\t\tif (check(TokenType.STAR)) {\r\n\t\t\t\tmatch(TokenType.STAR);\r\n\t\t\t\treturn Allop.times;\r\n\t\t\t}\r\n\t\t\telse if (check(TokenType.DIV)) {\r\n\t\t\t\tmatch(TokenType.DIV);\r\n\t\t\t\treturn Allop.div;\r\n\t\t\t}\r\n\t\t\telse if(check(TokenType.MOD)) {\r\n\t\t\t\tmatch(TokenType.MOD);\r\n\t\t\t\treturn Allop.mod;\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tSystem.exit(1);\r\n\t\t\t}\r\n\t\t\treturn null;\r\n\t\t}", "title": "" }, { "docid": "18358fd1ec8fdddba723c59a64e48599", "score": "0.5850556", "text": "public T caseMultiplicativeExpression(MultiplicativeExpression object)\r\n {\r\n return null;\r\n }", "title": "" }, { "docid": "18358fd1ec8fdddba723c59a64e48599", "score": "0.5850556", "text": "public T caseMultiplicativeExpression(MultiplicativeExpression object)\r\n {\r\n return null;\r\n }", "title": "" }, { "docid": "0d8a5fad90a9c9f22a1497e9976cecee", "score": "0.58348453", "text": "static public ELPAtom Mul(String op1, String op2, String result) {\r\n\t\treturn new ArithmeticPredicate(\"*\", op1, op2, result);\r\n\t}", "title": "" }, { "docid": "818218f26262fda86a4fa33ae967c370", "score": "0.578279", "text": "public T caseMultiplicativeExpressionPart(MultiplicativeExpressionPart object)\r\n {\r\n return null;\r\n }", "title": "" }, { "docid": "92800599f17b616062ae646a7f61536f", "score": "0.57620656", "text": "public T casePredicateProcess(PredicateProcess object)\n {\n return null;\n }", "title": "" }, { "docid": "b459eb6d7841c58d59bb7ad0017d93d9", "score": "0.57575685", "text": "T mul(T arg);", "title": "" }, { "docid": "8d2bc090b27e694cbe99ff5685d14cb3", "score": "0.5537117", "text": "public T caseMultiplicationStatement(MultiplicationStatement object)\n {\n return null;\n }", "title": "" }, { "docid": "06ad7b3c6403186b52c97915c0490162", "score": "0.55080116", "text": "public T casePredicate(Predicate object)\n {\n return null;\n }", "title": "" }, { "docid": "6eee244b7a92d51ee8ae61269c5692fb", "score": "0.54639655", "text": "public T caseMultExp(MultExp object) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "43c20e474c1da6170182e18624161de1", "score": "0.5410458", "text": "public T casePredicateSub(PredicateSub object)\n {\n return null;\n }", "title": "" }, { "docid": "7ede2925c9536b53b3dd201eb11a7400", "score": "0.5343527", "text": "BinaryOperation<T> multiplication();", "title": "" }, { "docid": "232c0dbee0a5a6540f749557f44dcca4", "score": "0.5336591", "text": "public static Object mul(Object a, Object b) {\n if (a.getClass() == GridData.class) {\n if (b.getClass() == GridData.class) {\n return ((GridData) a).mul((GridData) b);\n } else {\n return ((GridData) a).mul(Double.parseDouble(b.toString()));\n }\n } else if (a.getClass() == StationData.class) {\n if (b.getClass() == StationData.class) {\n return ((StationData) a).mul((StationData) b);\n } else {\n return ((StationData) a).mul(Double.parseDouble(b.toString()));\n }\n } else if (b.getClass() == GridData.class) {\n return ((GridData) b).mul(Double.parseDouble(a.toString()));\n } else if (b.getClass() == StationData.class) {\n return ((StationData) b).mul(Double.parseDouble(a.toString()));\n } else {\n return Double.parseDouble(a.toString()) * Double.parseDouble(b.toString());\n }\n }", "title": "" }, { "docid": "6fa367ff44ab3f11563bc20169651f8a", "score": "0.52894783", "text": "public T casePredicateExpression(PredicateExpression object)\n {\n return null;\n }", "title": "" }, { "docid": "0007303433dad24271285e8e596968fa", "score": "0.5264725", "text": "public T casePredicateComparison(PredicateComparison object)\n {\n return null;\n }", "title": "" }, { "docid": "9297242fa745a827571273dedc4a3c51", "score": "0.523317", "text": "public Module.Member scalarMultiply(Ring.Member x) {\n if (x instanceof MathInteger) return scalarMultiply(((MathInteger) x).value()); else throw new IllegalArgumentException(\"Member class not recognised by this method.\");\n }", "title": "" }, { "docid": "c4d829bb2842bc0f6bd27318b0af1b91", "score": "0.5176375", "text": "public T caseSequenceOperationOrReductionOrExpansion(SequenceOperationOrReductionOrExpansion object)\r\n {\r\n return null;\r\n }", "title": "" }, { "docid": "4d96224da8f4a7b221b6474e800a0f22", "score": "0.51507777", "text": "public Ifactor multiply(final int oth)\n {\n /* the optimization is to factorize oth _before_ multiplying\n */\n return( multiply(new Ifactor(oth)) ) ;\n }", "title": "" }, { "docid": "c5952415d354e42d92182eca51d6020d", "score": "0.5133049", "text": "private Expression factor() {\n\t\tif (isUnaryOp()) {\n\t\t\tOperator op = new Operator(match(token.type()));\n\t\t\tExpression term = primary();\n\t\t\treturn new Unary(op, term);\n\t\t} else\n\t\t\treturn primary();\n\t}", "title": "" }, { "docid": "420db7fbd46d0c12616272ebb01467e9", "score": "0.50633657", "text": "protected void sequence_MulOrDiv(ISerializationContext context, Mult semanticObject) {\n\t\tif (errorAcceptor != null) {\n\t\t\tif (transientValues.isValueTransient(semanticObject, MathInterpreterPackage.Literals.EXP__LEFT) == ValueTransient.YES)\n\t\t\t\terrorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, MathInterpreterPackage.Literals.EXP__LEFT));\n\t\t\tif (transientValues.isValueTransient(semanticObject, MathInterpreterPackage.Literals.MULT__OP) == ValueTransient.YES)\n\t\t\t\terrorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, MathInterpreterPackage.Literals.MULT__OP));\n\t\t\tif (transientValues.isValueTransient(semanticObject, MathInterpreterPackage.Literals.EXP__RIGHT) == ValueTransient.YES)\n\t\t\t\terrorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, MathInterpreterPackage.Literals.EXP__RIGHT));\n\t\t}\n\t\tSequenceFeeder feeder = createSequencerFeeder(context, semanticObject);\n\t\tfeeder.accept(grammarAccess.getMulOrDivAccess().getMultLeftAction_1_0_0_0(), semanticObject.getLeft());\n\t\tfeeder.accept(grammarAccess.getMulOrDivAccess().getOpAsteriskKeyword_1_0_0_1_0(), semanticObject.getOp());\n\t\tfeeder.accept(grammarAccess.getMulOrDivAccess().getRightPrimaryParserRuleCall_1_1_0(), semanticObject.getRight());\n\t\tfeeder.finish();\n\t}", "title": "" }, { "docid": "ef7b110fef73649aedf52b5637f7d647", "score": "0.50351137", "text": "public T casePredicateNot(PredicateNot object)\n {\n return null;\n }", "title": "" }, { "docid": "c86258ff0801f5b12d6c81f6830e4996", "score": "0.50102013", "text": "public T caseNumericUnaryExpression(NumericUnaryExpression object)\r\n {\r\n return null;\r\n }", "title": "" }, { "docid": "8085b12b6d04e87987764bdf8cc11b7e", "score": "0.5006777", "text": "@Override\n\tpublic Operation getMultiplicationOperation() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "2109f7113ae8b16ca701eac5809126a2", "score": "0.5001235", "text": "public T mul(float scalar) {\n m00 *= scalar;\n m01 *= scalar;\n m02 *= scalar;\n m10 *= scalar;\n m11 *= scalar;\n m12 *= scalar;\n m20 *= scalar;\n m21 *= scalar;\n m22 *= scalar;\n return (T) this;\n }", "title": "" }, { "docid": "aaff3c5dec679e1ffd706bb93e2d8f12", "score": "0.4974923", "text": "@Override\r\n\tpublic String mul(String costo, int numero) {\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "956ac7811776781aa5467500c767c9e0", "score": "0.4970123", "text": "public ResultType getReduction(){\n return getReduction(ROOT);\n }", "title": "" }, { "docid": "a29a098a88cc7b8d2c577695a9faa3fd", "score": "0.49587393", "text": "public void multiply() {\n\t\tapplyOperator('*');\n\t}", "title": "" }, { "docid": "d356ecd6d30e24a89f8e788faf3aefc4", "score": "0.49557024", "text": "public T mul(Tuple3f s) {\n mul(this, s);\n return (T) this;\n }", "title": "" }, { "docid": "01dfa4e93c38213dbf4798a50f141e74", "score": "0.4936412", "text": "public T caseEntityMoveMultiplier(EntityMoveMultiplier object)\n {\n return null;\n }", "title": "" }, { "docid": "d0fa67a40482498cca41df46d03b3f97", "score": "0.4918918", "text": "Numeric multiply(Numeric multiplier);", "title": "" }, { "docid": "47adec76650f4f730875baeda786d30d", "score": "0.49166885", "text": "public Ifactor multiply(final Ifactor oth)\n {\n /* This might be done similar to the lcm() implementation by adding\n * the powers of the components and calling the constructor with the\n * list of exponents. This here is the simplest implementation, but slow because\n * it calls another prime factorization of the product:\n * return( new Ifactor(n.multiply(oth.n))) ;\n */\n return multGcdLcm(oth,0) ;\n }", "title": "" }, { "docid": "f4d20acbf021f7fd1b2773bf77ddddd3", "score": "0.49150506", "text": "public void multiply();", "title": "" }, { "docid": "211b199c807aeee8e1b98a46961a329f", "score": "0.49149653", "text": "public T caseMultiplicativeExpressionCompletion(MultiplicativeExpressionCompletion object)\r\n {\r\n return null;\r\n }", "title": "" }, { "docid": "74faf59d0be93910369cfd5f5cc6183f", "score": "0.49107057", "text": "public T casePrimitiveType(PrimitiveType object)\n {\n return null;\n }", "title": "" }, { "docid": "1922ca65102f285672161c0df5d6e765", "score": "0.4910137", "text": "public T casePredicateOr(PredicateOr object)\n {\n return null;\n }", "title": "" }, { "docid": "7bd912c49662fdab4ac6f675d6e904a2", "score": "0.4901841", "text": "public T caseDomainPredicate(DomainPredicate object) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "e762498e8be5d61ec408b424415b9654", "score": "0.48939788", "text": "public static PrimeFactorization multiply(PrimeFactorization pf1, PrimeFactorization pf2)\r\n\t{\r\n\t\t// TODO \r\n\t\treturn null; \r\n\t}", "title": "" }, { "docid": "ed7bdc497771b0341e3d4d5afa382216", "score": "0.48933396", "text": "private Expr mult(Expr x) throws Err {\n if (x instanceof ExprUnary) {\n ExprUnary y=(ExprUnary)x;\n if (y.op==ExprUnary.Op.SOME) return ExprUnary.Op.SOMEOF.make(y.pos, y.sub);\n if (y.op==ExprUnary.Op.LONE) return ExprUnary.Op.LONEOF.make(y.pos, y.sub);\n if (y.op==ExprUnary.Op.ONE) return ExprUnary.Op.ONEOF.make(y.pos, y.sub);\n }\n return x;\n }", "title": "" }, { "docid": "2eb55d8229dfe4e5adc1079f63acdba7", "score": "0.48731032", "text": "public T caseFeature_Or_SequenceOperationOrReductionOrExpansion_Or_Index(Feature_Or_SequenceOperationOrReductionOrExpansion_Or_Index object)\r\n {\r\n return null;\r\n }", "title": "" }, { "docid": "5475c35fc9f48faf6bcde81bdbe4af88", "score": "0.48543888", "text": "public T caseUnaryExpression(UnaryExpression object)\r\n {\r\n return null;\r\n }", "title": "" }, { "docid": "5475c35fc9f48faf6bcde81bdbe4af88", "score": "0.48543888", "text": "public T caseUnaryExpression(UnaryExpression object)\r\n {\r\n return null;\r\n }", "title": "" }, { "docid": "7dc99a25f045b61b6a607b6b8fe7e1ca", "score": "0.4848335", "text": "static final Functor getFunctor(PrologObject term) {\n if (term instanceof Variable) {\n term = ((Variable) term).getObject();\n }\n\n // check type\n if (term instanceof Atom) {\n if (BuiltInFactory.isBuiltIn(((Atom) term).getName() + \"/0\")) {\n term = new BuiltInPredicate(((Atom) term).getName() + \"/0\", null);\n } else {\n term = new Functor(((Atom) term).getName() + \"/0\", null);\n }\n }\n\n if (term instanceof Functor)\n return (Functor) term;\n else\n throw new JIPTypeException(JIPTypeException.PREDICATE_INDICATOR, term);\n\n }", "title": "" }, { "docid": "5a877672309d2cd820b8c9e74bb4f0e2", "score": "0.4841888", "text": "protected void sequence_MulOrDiv(ISerializationContext context, Div semanticObject) {\n\t\tif (errorAcceptor != null) {\n\t\t\tif (transientValues.isValueTransient(semanticObject, MathInterpreterPackage.Literals.EXP__LEFT) == ValueTransient.YES)\n\t\t\t\terrorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, MathInterpreterPackage.Literals.EXP__LEFT));\n\t\t\tif (transientValues.isValueTransient(semanticObject, MathInterpreterPackage.Literals.DIV__OP) == ValueTransient.YES)\n\t\t\t\terrorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, MathInterpreterPackage.Literals.DIV__OP));\n\t\t\tif (transientValues.isValueTransient(semanticObject, MathInterpreterPackage.Literals.EXP__RIGHT) == ValueTransient.YES)\n\t\t\t\terrorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, MathInterpreterPackage.Literals.EXP__RIGHT));\n\t\t}\n\t\tSequenceFeeder feeder = createSequencerFeeder(context, semanticObject);\n\t\tfeeder.accept(grammarAccess.getMulOrDivAccess().getDivLeftAction_1_0_1_0(), semanticObject.getLeft());\n\t\tfeeder.accept(grammarAccess.getMulOrDivAccess().getOpSolidusKeyword_1_0_1_1_0(), semanticObject.getOp());\n\t\tfeeder.accept(grammarAccess.getMulOrDivAccess().getRightPrimaryParserRuleCall_1_1_0(), semanticObject.getRight());\n\t\tfeeder.finish();\n\t}", "title": "" }, { "docid": "d9fafbf7f944f26a63e4c00ec4da7e3d", "score": "0.48306093", "text": "public Scalar handle(Scalar o1);", "title": "" }, { "docid": "3b9883c20cc07862d7dc5991ba17210f", "score": "0.4816078", "text": "public final Boolean ruleMult() throws RecognitionException {\n Boolean current = false;\n\n Token otherlv_2=null;\n Boolean this_Prim_0 = null;\n\n Boolean lv_right_3_0 = null;\n\n\n try {\n // PsiInternalElementMatcherTestLanguage.g:935:1: ( (this_Prim_0= rulePrim ( () otherlv_2= '*' ( (lv_right_3_0= rulePrim ) ) )* ) )\n // PsiInternalElementMatcherTestLanguage.g:936:2: (this_Prim_0= rulePrim ( () otherlv_2= '*' ( (lv_right_3_0= rulePrim ) ) )* )\n {\n // PsiInternalElementMatcherTestLanguage.g:936:2: (this_Prim_0= rulePrim ( () otherlv_2= '*' ( (lv_right_3_0= rulePrim ) ) )* )\n // PsiInternalElementMatcherTestLanguage.g:937:3: this_Prim_0= rulePrim ( () otherlv_2= '*' ( (lv_right_3_0= rulePrim ) ) )*\n {\n\n \t\t\tmarkComposite(elementTypeProvider.getMult_PrimParserRuleCall_0ElementType());\n \t\t\n pushFollow(FollowSets000.FOLLOW_19);\n this_Prim_0=rulePrim();\n\n state._fsp--;\n\n\n \t\t\tcurrent = this_Prim_0;\n \t\t\tdoneComposite();\n \t\t\n // PsiInternalElementMatcherTestLanguage.g:945:3: ( () otherlv_2= '*' ( (lv_right_3_0= rulePrim ) ) )*\n loop14:\n do {\n int alt14=2;\n int LA14_0 = input.LA(1);\n\n if ( (LA14_0==29) ) {\n alt14=1;\n }\n\n\n switch (alt14) {\n \tcase 1 :\n \t // PsiInternalElementMatcherTestLanguage.g:946:4: () otherlv_2= '*' ( (lv_right_3_0= rulePrim ) )\n \t {\n \t // PsiInternalElementMatcherTestLanguage.g:946:4: ()\n \t // PsiInternalElementMatcherTestLanguage.g:947:5: \n \t {\n\n \t \t\t\t\t\tprecedeComposite(elementTypeProvider.getMult_MultLeftAction_1_0ElementType());\n \t \t\t\t\t\tdoneComposite();\n \t \t\t\t\t\tassociateWithSemanticElement();\n \t \t\t\t\t\n\n \t }\n\n\n \t \t\t\t\tmarkLeaf(elementTypeProvider.getMult_AsteriskKeyword_1_1ElementType());\n \t \t\t\t\n \t otherlv_2=(Token)match(input,29,FollowSets000.FOLLOW_17); \n\n \t \t\t\t\tdoneLeaf(otherlv_2);\n \t \t\t\t\n \t // PsiInternalElementMatcherTestLanguage.g:960:4: ( (lv_right_3_0= rulePrim ) )\n \t // PsiInternalElementMatcherTestLanguage.g:961:5: (lv_right_3_0= rulePrim )\n \t {\n \t // PsiInternalElementMatcherTestLanguage.g:961:5: (lv_right_3_0= rulePrim )\n \t // PsiInternalElementMatcherTestLanguage.g:962:6: lv_right_3_0= rulePrim\n \t {\n\n \t \t\t\t\t\t\tmarkComposite(elementTypeProvider.getMult_RightPrimParserRuleCall_1_2_0ElementType());\n \t \t\t\t\t\t\n \t pushFollow(FollowSets000.FOLLOW_19);\n \t lv_right_3_0=rulePrim();\n\n \t state._fsp--;\n\n\n \t \t\t\t\t\t\tdoneComposite();\n \t \t\t\t\t\t\tif(!current) {\n \t \t\t\t\t\t\t\tassociateWithSemanticElement();\n \t \t\t\t\t\t\t\tcurrent = true;\n \t \t\t\t\t\t\t}\n \t \t\t\t\t\t\n\n \t }\n\n\n \t }\n\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop14;\n }\n } while (true);\n\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n }\n return current;\n }", "title": "" }, { "docid": "553c070b384a1eb26e10f96872c8f839", "score": "0.48113263", "text": "public Node getMatchPredicate()\n { return anyToNull( pred ); }", "title": "" }, { "docid": "0d9b2517f1ab1f3c271ee9d771a176a7", "score": "0.47682306", "text": "@Override\n\tpublic double evaluate() {\n\t\treturn left.evaluate() * right.evaluate();\n\t}", "title": "" }, { "docid": "2188a179b92b680b788a13fcb34b3055", "score": "0.47514078", "text": "long getMult();", "title": "" }, { "docid": "6519a066e1774bf0c5bfd1fdc880e833", "score": "0.47501746", "text": "private static Object invokeMathMethod(Class<?> mathType, Object object, Class<?> returnType,\n String methodName, Object[] args, Interpreter interpreter, CallStack callstack,\n Node callerInfo) throws EvalError {\n Object retrn = invokeObjectMethod(Primitive.castWrapper(mathType, object),\n methodName, args, interpreter, callstack, callerInfo);\n if (retrn instanceof Primitive && ((Primitive)retrn).getType() == mathType)\n return Primitive.wrap(Primitive.castWrapper(returnType, retrn), returnType);\n return retrn;\n }", "title": "" }, { "docid": "c62e01954c48bf5e98850019886b653f", "score": "0.47311905", "text": "public RationalNumber mul(RationalNumber other) {\n return new RationalNumber(this.numerator * other.numerator, this.denominator * other.denominator);\n }", "title": "" }, { "docid": "feba9285eaec688dc49995a75be7b982", "score": "0.47243166", "text": "OperatorTree firstProductInSum() {\n \t\tif(entities.isEmpty()) return null;\n \t\tif(op.equals(\"+\") || op.equals(\"-\")) return entities.get(0).asTree().asProduct();\n \t\treturn null;\n \t}", "title": "" }, { "docid": "174e8686be1266d39dbe43e4fd2298fd", "score": "0.4703784", "text": "public Ifactor multiply(final BigInteger oth)\n {\n /* the optimization is to factorize oth _before_ multiplying\n */\n return( multiply(new Ifactor(oth)) ) ;\n }", "title": "" }, { "docid": "9fdbddcf01b5bdeaccb6741eaf5291f1", "score": "0.4691215", "text": "PolyTerm mul(PolyTerm term)\r\n\t{\r\n\t\tPolyTerm output = new PolyTerm(this.coefficient.mul(term.getCoefficient()), this.exponent.add(term.getExponent()));\r\n\t\treturn output;\r\n\t}", "title": "" }, { "docid": "bb2e5b18dbc08d5d2578ddd6999d08e2", "score": "0.46768337", "text": "@Override\n\tprotected Object getResult() {\n\t\t\n\t\tDouble operand = (Double) this.getOperandResult();\n\t\t\n\t\treturn - operand;\n\t}", "title": "" }, { "docid": "2d45fc5368ccfdbb4f34ad9f1ba68ebe", "score": "0.4662894", "text": "@Override\r\n\tpublic int getResult() {\n\t\treturn this.getNumberA()*this.getNumberB();\r\n\t}", "title": "" }, { "docid": "64ea59f5861dbff719d593ebf0e9c512", "score": "0.46577504", "text": "public void testMixedOperatorsMultiplicationFirst() throws Exception {\n\t\t// Parse from code\n\t\tString basicWorkflow = \n\t\t\t\"workflow { \" +\n\t\t\t\t\"def job helloWorld() { \" +\n\t\t\t\t\t\"var = 3 * 4 + 2;\" + \n\t\t\t\t\"}\" +\n\t\t\t\"}\";\n\t\tWorkflow workflow = new SparkWorkflowParser(mockDbAccessor).loadWorkflow(new StringReader(basicWorkflow));\n\n\t\tExpression expr = getExpression(workflow);\n\t\t\n\t\t// Test run\n\t\tVariableStore context = new VariableStore();\n\t\tPrimitive result = expr.evaluate(context);\n\t\tassertTrue(result instanceof NumberPrimitive);\n\t\tassertEquals(\"14\", result.evaluate());\n\t}", "title": "" }, { "docid": "02507107f13a0acccbcfb8ff2e968076", "score": "0.46413442", "text": "public Ring.Member multiply(final Ring.Member m) {\n if (m instanceof IntegerMatrix) return multiply((IntegerMatrix) m); else throw new IllegalArgumentException(\"Member class not recognised by this method.\");\n }", "title": "" }, { "docid": "a0d42bcc9886f3dbc152e0cebb032136", "score": "0.46360752", "text": "public T casePowerStatement(PowerStatement object)\n {\n return null;\n }", "title": "" }, { "docid": "841a3798ed118eb9b1072099547137fa", "score": "0.46329054", "text": "private Scalar grabMatchingScalar(Instruction instruction, int opIndex, int subOpIndex) {\n\t\tScalar scalarAtCursor = action.plugin.getScalar(context);\n\t\tScalar scalar = action.plugin.getScalar(instruction, opIndex, subOpIndex);\n\n\t\tif (scalarAtCursor.equals(scalar)) {\n\t\t\treturn scalar;\n\t\t}\n\n\t\tif (scalar == null) {\n\t\t\t// Checks the sub-operands for any scalars.\n\t\t\tList<?> opObjects = instruction.getDefaultOperandRepresentationList(opIndex);\n\t\t\t//@formatter:off\n\t\t\tOptional<Scalar> match = opObjects.stream()\n\t\t\t\t.filter(Scalar.class::isInstance)\n\t\t\t\t.map(Scalar.class::cast)\n\t\t\t\t.filter(s -> s.equals(scalarAtCursor))\n\t\t\t\t.findAny()\n\t\t\t\t;\n\t\t\t//@formatter:on\n\n\t\t\tif (match.isPresent()) {\n\t\t\t\treturn match.get();\n\t\t\t}\n\t\t}\n\n\t\treturn null;\n\t}", "title": "" }, { "docid": "b55d327ca868fbdd9da741af4f646690", "score": "0.46316144", "text": "@Override\n public Valor visitMultExpressao(ScriptParser.MultExpressaoContext ctx) {\n switch (ctx.op.getType()) {\n case ScriptLexer.Multiply:\n return multiply(ctx);\n case ScriptLexer.Divide:\n return divisao(ctx);\n case ScriptLexer.Modulus:\n return modulo(ctx);\n default:\n throw new RuntimeException(\"unknown operator type: \" + ctx.op.getType());\n }\n }", "title": "" }, { "docid": "785222bd194d2141dda8c466ae5c0011", "score": "0.4631066", "text": "private void mul() {\n\t\tpopTemp();\t\t//pop into the t matrix\n\t\tm.mult(t);\n\t}", "title": "" }, { "docid": "076a29855f134330145cb00aef0bf024", "score": "0.4619506", "text": "public T caseUnaryExpression(UnaryExpression object) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "194f5b449e4c37d446b6977ab8a8f8c9", "score": "0.46172392", "text": "public static Radical1 mul(Radical1 a, Radical1 b, Radical1 result) {\r\n\r\n\t\tRadical1 tmp = new Radical1();\r\n\r\n\t\t// like multiplying out brackets, every term in a is multiplied by every\r\n\t\t// term in b\r\n\t\tfor (Integer radicandA : a.radicands.keySet()) {\r\n\t\t\tfor (Integer radicandB : b.radicands.keySet()) {\r\n\t\t\t\tRational multiplierA = a.radicands.get(radicandA);\r\n\t\t\t\tRational multiplierB = b.radicands.get(radicandB);\r\n\r\n\t\t\t\tRational resultantMultiplier = Rational.mul(multiplierA, multiplierB, new Rational());\r\n\t\t\t\tint resultantRadicand = radicandA * radicandB;\r\n\r\n\t\t\t\ttmp.addTerm(resultantMultiplier, resultantRadicand);\r\n\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tIterator<Integer> radicandIter = tmp.radicands.keySet().iterator();\r\n\t\twhile (radicandIter.hasNext()) {\r\n\t\t\tInteger radicand = (Integer) radicandIter.next();\r\n\t\t\tif (tmp.radicands.get(radicand).equals(Rational.ZERO)) {\r\n\t\t\t\ttmp.radicands.get(radicand).equals(Rational.ZERO);\r\n\t\t\t\tradicandIter.remove();\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tresult.radicands.clear();\r\n\t\tresult.radicands.putAll(tmp.radicands);\r\n\r\n\t\treturn (result);\r\n\t}", "title": "" }, { "docid": "d813b67ef2e97408b5f4ba584cf8286a", "score": "0.46115205", "text": "public static Val mul(Val a, Val b)\n\t{\n\t\tif (a.type != b.type)\n\t\t\tif (a.type == VECTOR && (b.type == COMPLEX_NUMBER || b.type == NUMBER))\n\t\t\t\t;// ALLOW\n\t\t\telse if (a.type == COMPLEX_NUMBER && b.type == NUMBER)\n\t\t\t\tb = new Val(COMPLEX_NUMBER, b, Val.ZERO);\n\t\t\telse if (a.type == NUMBER && b.type == COMPLEX_NUMBER)\n\t\t\t\ta = new Val(COMPLEX_NUMBER, a, Val.ZERO);\n\t\t\telse\n\t\t\t\tthrow new EquationParserException(\"Cannot multiply the two given value types!\");\n\n\t\tswitch (a.type)\n\t\t{\n\t\t\tcase NUMBER:\n\t\t\t\treturn new Val(a.value.multiply(b.value));\n\n\t\t\tcase VECTOR:\n\t\t\t\tif (b.type != VECTOR)\n\t\t\t\t{\n\t\t\t\t\tVal[] elements = new Val[a.size];\n\t\t\t\t\tfor (int i = 0; i < a.size; i++)\n\t\t\t\t\t\telements[i] = mul(a.get(i), b);\n\n\t\t\t\t\treturn new Val(VECTOR, elements);\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tif (a.size != b.size)\n\t\t\t\t\t\tthrow new EquationParserException(\"Cannot multiply vectors of different sizes!\");\n\n\t\t\t\t\tVal s = Val.ZERO;\n\t\t\t\t\tfor (int i = 0; i < a.size; i++)\n\t\t\t\t\t\ts = add(s, mul(a.get(i), b.get(i)));\n\n\t\t\t\t\treturn s;\n\t\t\t\t}\n\n\t\t\tcase COMPLEX_NUMBER:\n\t\t\t\tVal a1 = a.get(0);\n\t\t\t\tVal a2 = a.get(1);\n\t\t\t\tVal b1 = b.get(0);\n\t\t\t\tVal b2 = b.get(1);\n\n\t\t\t\tVal s1 = mul(a1, b1);\n\t\t\t\tVal s2 = mul(a2, b2);\n\t\t\t\tVal s3 = sub(s1, s2);\n\n\t\t\t\tVal s4 = mul(a1, b2);\n\t\t\t\tVal s5 = mul(a2, b1);\n\t\t\t\tVal s6 = add(s4, s5);\n\n\t\t\t\treturn new Val(COMPLEX_NUMBER, s3, s6);\n\n\t\t\tdefault:\n\t\t\t\tthrow new EquationParserException(\"Cannot multiply list-type values!\");\n\t\t}\n\t}", "title": "" }, { "docid": "fa3fe2edf41564c581d136746e6dbebd", "score": "0.46060747", "text": "public T caseLogicalExpressionPart(LogicalExpressionPart object)\r\n {\r\n return null;\r\n }", "title": "" }, { "docid": "508ce9ec50e9918e3e4b0badc0f199aa", "score": "0.45993266", "text": "public abstract NumericValue multiply(NumericValue other);", "title": "" }, { "docid": "f3f0b93ed20834d96f82815e8d46c769", "score": "0.45984137", "text": "@Test\n public void testMultiplication() {\n String operation = OclKeyWords.MULT;\n boolean isSymmetric = true;\n NumberOperationUtils.assertArithmeticConstraint(1, 2.0, operation, 2.0, isSymmetric, RealType.TYPE);\n NumberOperationUtils.assertArithmeticConstraint(10.1, 50.1, operation, 506.01, isSymmetric, RealType.TYPE);\n NumberOperationUtils.assertArithmeticConstraint(-1, 4.2, operation, -4.2, isSymmetric, RealType.TYPE);\n \n NumberOperationUtils.realOperationLoop(operation, isSymmetric, new RealOperation() {\n \n @Override\n double operation(int value1, double value2) {\n return value1 * value2;\n }\n });\n }", "title": "" }, { "docid": "5800a399c5b8d65ec461925967af3981", "score": "0.4595587", "text": "public T caseSum(Sum object)\n {\n return null;\n }", "title": "" }, { "docid": "c6299f6445ecc0c78fc97e94188c48b5", "score": "0.459521", "text": "public T caseProduct(Product object) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "8e6c59558da698b82bc8957f8b6c62a8", "score": "0.4593792", "text": "public T caseKnowledge(Knowledge object)\n {\n return null;\n }", "title": "" }, { "docid": "3ee87af913fbbd4011160c97b0e0c5b5", "score": "0.45846897", "text": "public void multiply(Object mulValue) {\t\t\r\n\t\tsetValue(executeOperation(value, mulValue, Operation.MULTIPLY));\r\n\t}", "title": "" }, { "docid": "281c08d5c4e1c415fc1ac34c21fd7158", "score": "0.4577629", "text": "public Integer mul(Integer i, Integer j) throws NoSuchMethodException {\n Integer result = i*j;\n// LogUtil.stop(mul,result);\n return result;\n }", "title": "" }, { "docid": "cb9e628b7f1b1183ff0bdc435e9fb4e4", "score": "0.45769316", "text": "public T caseDecision(Decision object)\r\n {\r\n return null;\r\n }", "title": "" }, { "docid": "5595871d3a22dd3b5a0252242a211117", "score": "0.4568056", "text": "public void mul() {\n\t\tSystem.out.println(\"hi mul\");\n\t}", "title": "" }, { "docid": "ba33f5176e7f7a18e31fb27962be98c1", "score": "0.45615688", "text": "public double getMultiplicationResult(){\n return firstNumber * secondNumber;\n }", "title": "" }, { "docid": "933765b4a00f3fce000077e7c5d30179", "score": "0.45568725", "text": "private void multiply(int firstArg, int secondArg){\n this.result= firstArg*secondArg;\n }", "title": "" }, { "docid": "941521771c8d55313d8a8ccad897568c", "score": "0.45475882", "text": "public T caseObjective(Objective object)\r\n {\r\n return null;\r\n }", "title": "" }, { "docid": "3ed26e7805786184b7ee7b27509a32eb", "score": "0.4546593", "text": "abstract double multiply(int x, int y);", "title": "" }, { "docid": "d85d6b07ff50eda6297a919ec53b651a", "score": "0.45430505", "text": "@Pure\r\n @Delegate(facade = Op.class, method = \"mul\")\r\n public Matrix mul(Matrix matrix) {\r\n Matrix clone = Matrices.copy(matrix);\r\n this.applyLeft(clone);\r\n return clone;\r\n }", "title": "" }, { "docid": "72a40c349bab4f84a9366d888f48392a", "score": "0.4541132", "text": "public T casePRIMITIVE_LITERAL(PRIMITIVE_LITERAL object)\r\n {\r\n return null;\r\n }", "title": "" }, { "docid": "dc376db9a412fe1fcb243800dab96e27", "score": "0.45387387", "text": "double product();", "title": "" }, { "docid": "0564d7b2a42e64aa4255f89651f7fa4f", "score": "0.45350483", "text": "public Scalar evaluate(Scalar scalar) {\n\t\tScalar s;\n\t\tif(this.polynom.get(0).geTipe().equals(\"Q\"))\n\t\ts=new RationalScalar (0, 1);\n\t\telse\n\t\t\ts=new RealScalar(0);\n\t\tfor(int i=0; i<this.polynom.size(); i++)\n\t\t{\n\t\t\ts= s.add(this.polynom.get(i).evaluate(scalar));\n\t\t}\n\t\treturn s;\n\t}", "title": "" }, { "docid": "c3d0b20a91e424fe99d907798ea3d5c7", "score": "0.45340067", "text": "public T caseFP(FP object)\n {\n return null;\n }", "title": "" }, { "docid": "c2616ffba76af4655f49445bfdbed4b5", "score": "0.45295388", "text": "public T caseMultiplicityElement(MultiplicityElement object) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "599791e4cea2c2dbab0801525e906868", "score": "0.45227593", "text": "public Object evaluate() {\r\n final String resultString = processComplexExpr(initialExpression);\r\n \r\n // set the final scale as requested\r\n BigDecimal result = new BigDecimal(resultString);\r\n result = result.setScale(scale, RoundingMode.HALF_EVEN);\r\n \r\n Object returnValue;\r\n \r\n if (scale == 0) {\r\n returnValue = result.longValue();\r\n } else {\r\n returnValue = result.doubleValue();\r\n }\r\n \r\n return returnValue;\r\n }", "title": "" }, { "docid": "9a7b87a3fced7c5a8bbc9f82a0d2cc8a", "score": "0.45196834", "text": "public double getProduct()\n {\n double product = first * second;\n return product;\n }", "title": "" }, { "docid": "a6497aeabce9a6348f752284c68bde22", "score": "0.45127738", "text": "public void mul() {\n\t\tSystem.out.println(\"Hello mul\");\n\t}", "title": "" }, { "docid": "84d35ddbf65af9ff2a493dd3df75d806", "score": "0.45080248", "text": "public T casePredicateAnd(PredicateAnd object)\n {\n return null;\n }", "title": "" }, { "docid": "cfd33cf5829a2e43a85d7a47e6b8e53d", "score": "0.45006144", "text": "public T mul(float scalar, Matrix3f m1) {\n m00 = scalar * m1.m00;\n m01 = scalar * m1.m01;\n m02 = scalar * m1.m02;\n m10 = scalar * m1.m10;\n m11 = scalar * m1.m11;\n m12 = scalar * m1.m12;\n m20 = scalar * m1.m20;\n m21 = scalar * m1.m21;\n m22 = scalar * m1.m22;\n return (T) this;\n }", "title": "" }, { "docid": "42865e6172641eacf0c8be516c12fc88", "score": "0.44969863", "text": "public T caseMultiplicity(Multiplicity object)\r\n {\r\n return null;\r\n }", "title": "" }, { "docid": "232d1101c7f7ede54afe78d18e006d2e", "score": "0.44928318", "text": "public T caseNonPostfixNonCastUnaryExpression(NonPostfixNonCastUnaryExpression object)\r\n {\r\n return null;\r\n }", "title": "" }, { "docid": "9547f541cd2d805004d8e77a46aebdc6", "score": "0.4488478", "text": "public T casePredicateEquality(PredicateEquality object)\n {\n return null;\n }", "title": "" }, { "docid": "4e20ae3db8c1513c3bc0d58a74a4dca2", "score": "0.44850713", "text": "private TreeNode invokePrimitive(String name, SExpression obj) throws Exception{\n\t\tjava.lang.reflect.Method m;\n\n\t\tm = Primitives.class.getDeclaredMethod(name, SExpression.class);\n\t\tm.setAccessible(true);\n\t\tObject o = m.invoke(null, obj);\n\t\tif ( o.toString().matches(\"true\") ){\n\t\t\treturn new Atom(\"T\");\n\t\t} else if ( o.toString().matches(\"false\") ){\n\t\t\treturn new Atom(\"NIL\");\n\t\t} else {\n\t\t\treturn (TreeNode) o;\n\t\t}\n\t}", "title": "" }, { "docid": "e1e78400ca8b55c508373246d341f7b4", "score": "0.448468", "text": "public T caseLogicalExpression(LogicalExpression object)\r\n {\r\n return null;\r\n }", "title": "" } ]
ab2b6d0b5a3e9064881e798c6edcffe2
Test case number: 6 /Coverage entropy=1.4708084763221112
[ { "docid": "e87b2c0b4c368c3287c88d2d88985356", "score": "0.0", "text": "@Test(timeout = 4000)\n public void test06() throws Throwable {\n FileUtil fileUtil0 = new FileUtil();\n ArrayList<Integer> arrayList0 = new ArrayList<Integer>();\n EvoSuiteFile evoSuiteFile0 = new EvoSuiteFile(\"/A_NULL.XML\");\n FileSystemHandling.createFolder(evoSuiteFile0);\n File file0 = fileUtil0.getAccessories((String) null, arrayList0);\n assertNotNull(file0);\n assertTrue(file0.canExecute());\n assertEquals(\"/A_NULL.XML\", file0.toString());\n }", "title": "" } ]
[ { "docid": "d6df76b4cd9e17e2c3e4b99debdb01f6", "score": "0.7319873", "text": "@Test\n public void test16() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.coverageOfTestCasesByPredictedRegions();\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01D);\n assertEquals(Double.NaN, double0, 0.01D);\n }", "title": "" }, { "docid": "28fc1c03589c689478e686556e2e01ff", "score": "0.68578714", "text": "@Test\n public void test28() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toSummaryString(\"LzUl=-U!>\", true);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01D);\n assertEquals(0.0, evaluation0.unclassified(), 0.01D);\n }", "title": "" }, { "docid": "d16371413e002b2d8e04f3fe250eadc7", "score": "0.6736399", "text": "@Test\n public void test12() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFPriorEntropy();\n assertEquals(0.0, double0, 0.01D);\n }", "title": "" }, { "docid": "1e076fed62c990d73299d563576ffae4", "score": "0.6733286", "text": "@Test(timeout = 4000)\n public void test014() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n CostMatrix costMatrix0 = new CostMatrix(0);\n costMatrix0.initialize();\n Evaluation evaluation0 = new Evaluation(instances0, costMatrix0);\n evaluation0.toSummaryString(\".arff\", true);\n String string0 = evaluation0.toSummaryString(\"@data\", false);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(\"@data\\nTotal Number of Instances 0 \\n\", string0);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n }", "title": "" }, { "docid": "70ed22b84aebe1102b77c4bf7aacbb48", "score": "0.66977316", "text": "@Test\n public void test31() throws Throwable {\n AdditiveRegression additiveRegression0 = new AdditiveRegression();\n Capabilities capabilities0 = additiveRegression0.getCapabilities();\n TestInstances testInstances0 = TestInstances.forCapabilities(capabilities0);\n Instances instances0 = testInstances0.generate(\"setOptions\");\n Evaluation evaluation0 = new Evaluation(instances0);\n double[] doubleArray0 = evaluation0.makeDistribution(1774.70273682);\n assertArrayEquals(new double[] {1774.70273682}, doubleArray0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n }", "title": "" }, { "docid": "45558a2f8e85852a55243c9d83489ac4", "score": "0.6680434", "text": "@Test\n public void test13() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.KBMeanInformation();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n }", "title": "" }, { "docid": "96ec9f7aa97af13ced46aea15561aa02", "score": "0.66369677", "text": "@Test(timeout = 4000)\n public void test025() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n MockRandom mockRandom0 = new MockRandom();\n boolean[] booleanArray0 = new boolean[7];\n booleanArray0[0] = true;\n booleanArray0[1] = true;\n booleanArray0[2] = true;\n booleanArray0[3] = true;\n booleanArray0[4] = false;\n booleanArray0[5] = false;\n booleanArray0[6] = true;\n textDirectoryLoader0.getDataSet();\n instances0.resampleWithWeights((Random) mockRandom0, booleanArray0);\n CostMatrix costMatrix0 = new CostMatrix(0);\n Evaluation evaluation0 = new Evaluation(instances0, costMatrix0);\n double double0 = evaluation0.m_SumPriorEntropy;\n double double1 = evaluation0.SFMeanSchemeEntropy();\n assertEquals(Double.NaN, double1, 0.01);\n \n double double2 = evaluation0.matthewsCorrelationCoefficient(1243);\n assertEquals(0.0, double2, 0.01);\n }", "title": "" }, { "docid": "a778a1ec3c09a8a4e9807f175bed9ab6", "score": "0.65979636", "text": "@Test(timeout = 4000)\n public void test013() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.m_SumClass;\n String string0 = evaluation0.toSummaryString();\n assertEquals(\"\\nTotal Number of Instances 0 \\n\", string0);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "title": "" }, { "docid": "4be36023b9506f0fe469cbffbfb571e3", "score": "0.6541252", "text": "@Test\n public void test08() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toSummaryString(\"zUl=-U!>\", false);\n assertEquals(0.0, evaluation0.unclassified(), 0.01D);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01D);\n }", "title": "" }, { "docid": "bec4928214a9054453d8848402de9a81", "score": "0.6527454", "text": "@Test\n public void test11() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFMeanPriorEntropy();\n assertEquals(Double.NaN, double0, 0.01D);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n }", "title": "" }, { "docid": "e18a904c7be6dd7dc3afae3e3d935dcb", "score": "0.6479092", "text": "@Test(timeout = 4000)\n public void test12() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n textDirectoryLoader0.setRetrieval(100000);\n evaluation0.toSummaryString();\n EvoSuiteFile evoSuiteFile0 = new EvoSuiteFile(\"/home/ubuntu/evosuite_readability_gen/projects/107_weka\");\n FileSystemHandling.appendLineToFile(evoSuiteFile0, \"@relation\");\n CostMatrix costMatrix0 = new CostMatrix(7);\n evaluation0.recall(0);\n evaluation0.weightedMatthewsCorrelation();\n int[] intArray0 = new int[3];\n intArray0[0] = 0;\n RegressionByDiscretization regressionByDiscretization0 = new RegressionByDiscretization();\n regressionByDiscretization0.setDeleteEmptyBins(false);\n double double0 = evaluation0.coverageOfTestCasesByPredictedRegions();\n assertEquals(Double.NaN, double0, 0.01);\n \n String string0 = evaluation0.toClassDetailsString();\n assertEquals(\"=== Detailed Accuracy By Class ===\\n\\n TP Rate FP Rate Precision Recall F-Measure MCC ROC Area PRC Area Class\\nWeighted Avg. NaN NaN NaN NaN NaN NaN NaN NaN \\n\", string0);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n }", "title": "" }, { "docid": "928ec49755c160eca8f8e6438653dbca", "score": "0.6431258", "text": "@Test(timeout = 4000)\n public void test012() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n CostMatrix costMatrix0 = new CostMatrix(0);\n Evaluation evaluation0 = new Evaluation(instances0, costMatrix0);\n FileSystemHandling fileSystemHandling0 = new FileSystemHandling();\n double double0 = evaluation0.incorrect();\n assertEquals(0.0, double0, 0.01);\n \n double double1 = evaluation0.falseNegativeRate(0);\n assertEquals(0.0, double1, 0.01);\n \n evaluation0.setPriors(instances0);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "title": "" }, { "docid": "da65591930d1a5692670c96825f9221e", "score": "0.63914317", "text": "@Test(timeout = 4000)\n public void test006() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n textDirectoryLoader0.setOutputFilename(true);\n CostMatrix costMatrix0 = new CostMatrix(0);\n textDirectoryLoader0.setCharSet(\"classifiersTipText\");\n Evaluation evaluation0 = new Evaluation(instances0, costMatrix0);\n double[][] doubleArray0 = evaluation0.confusionMatrix();\n assertEquals(0, doubleArray0.length);\n \n double double0 = evaluation0.priorEntropy();\n assertEquals(0.0, double0, 0.01);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n }", "title": "" }, { "docid": "825ea4dbbb73bf07e85bbc96571ca987", "score": "0.63740844", "text": "@Test\n public void test09() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0, (CostMatrix) null);\n double double0 = evaluation0.SFMeanEntropyGain();\n assertEquals(Double.NaN, double0, 0.01D);\n }", "title": "" }, { "docid": "4b9ee5074ea12292494f23641e368910", "score": "0.636363", "text": "@Test(timeout = 4000)\n public void test43() throws Throwable {\n JRip jRip0 = new JRip();\n double[] doubleArray0 = new double[0];\n BinarySparseInstance binarySparseInstance0 = new BinarySparseInstance(2576.86, doubleArray0);\n FileSystemHandling.appendStringToFile((EvoSuiteFile) null, (String) null);\n Attribute attribute0 = new Attribute((String) null);\n binarySparseInstance0.setValue(attribute0, (-713.7029286));\n JRip.NominalAntd jRip_NominalAntd0 = jRip0.new NominalAntd(attribute0);\n boolean boolean0 = jRip_NominalAntd0.covers(binarySparseInstance0);\n assertEquals(2, jRip0.getOptimizations());\n assertEquals(2.0, jRip0.getMinNo(), 0.01);\n assertTrue(jRip0.getCheckErrorRate());\n assertFalse(boolean0);\n assertEquals(0.0, jRip_NominalAntd0.getMaxInfoGain(), 0.01);\n assertEquals(Double.NaN, jRip_NominalAntd0.getAttrValue(), 0.01);\n assertEquals(1L, jRip0.getSeed());\n assertTrue(jRip0.getUsePruning());\n assertFalse(jRip0.getDebug());\n assertEquals(Double.NaN, jRip_NominalAntd0.getCover(), 0.01);\n assertEquals(Double.NaN, jRip_NominalAntd0.getAccu(), 0.01);\n assertEquals(3, jRip0.getFolds());\n assertEquals(Double.NaN, jRip_NominalAntd0.getAccuRate(), 0.01);\n }", "title": "" }, { "docid": "03fa8eecc763846ad4b52e440f4963fe", "score": "0.6336172", "text": "@Test(timeout = 4000)\n public void test04() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n SparseInstance sparseInstance0 = new SparseInstance(120);\n instances0.deleteWithMissingClass();\n DatabaseLoader databaseLoader0 = new DatabaseLoader();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.correct();\n assertEquals(0.0, double0, 0.01);\n \n double double1 = evaluation0.SFSchemeEntropy();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(0.0, double1, 0.01);\n }", "title": "" }, { "docid": "f96a0aaab37d7488bc445516b8d55c55", "score": "0.6311344", "text": "@Test\n public void test21() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double[][] doubleArray0 = evaluation0.confusionMatrix();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n }", "title": "" }, { "docid": "0587e50e9925562c252a95f819808dbd", "score": "0.6289871", "text": "@Test(timeout = 4000)\n public void test008() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n CostMatrix costMatrix0 = new CostMatrix(0);\n Evaluation evaluation0 = new Evaluation(instances0, costMatrix0);\n double double0 = Evaluation.MIN_SF_PROB;\n evaluation0.setDiscardPredictions(false);\n EvoSuiteFile evoSuiteFile0 = new EvoSuiteFile(\"/home/ubuntu/evosuite_readability_gen/projects/107_weka\");\n FileSystemHandling.appendStringToFile(evoSuiteFile0, \"setFolds\");\n CoverTree coverTree0 = new CoverTree();\n assertEquals(1.3, coverTree0.getBase(), 0.01);\n }", "title": "" }, { "docid": "c2dfc45070722d3e6179b84bfbb28281", "score": "0.6275019", "text": "@Test(timeout = 4000)\n public void test05() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n LinkedList<SGD> linkedList0 = new LinkedList<SGD>();\n SGD sGD0 = new SGD();\n FileSystemHandling.shouldAllThrowIOExceptions();\n instances0.removeAll(linkedList0);\n Evaluation evaluation0 = new Evaluation(instances0);\n double[] doubleArray0 = new double[1];\n textDirectoryLoader0.getDataSet();\n doubleArray0[0] = (double) 0;\n DatabaseLoader databaseLoader0 = new DatabaseLoader();\n databaseLoader0.getNextInstance(instances0);\n Evaluation evaluation1 = new Evaluation(instances0);\n String string0 = evaluation0.toClassDetailsString(\":\\n\\n\");\n assertEquals(\":\\n\\n\\n TP Rate FP Rate Precision Recall F-Measure MCC ROC Area PRC Area Class\\nWeighted Avg. NaN NaN NaN NaN NaN NaN NaN NaN \\n\", string0);\n \n double double0 = evaluation1.avgCost();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation1.SFSchemeEntropy(), 0.01);\n }", "title": "" }, { "docid": "765aabea734e44b10569de16c4f71ed8", "score": "0.6263302", "text": "@Test(timeout = 4000)\n public void test024() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.m_CoverageStatisticsAvailable = false;\n double double0 = evaluation0.weightedMatthewsCorrelation();\n double double1 = evaluation0.coverageOfTestCasesByPredictedRegions();\n assertEquals(double1, double0, 0.01);\n \n double[] doubleArray0 = evaluation0.makeDistribution(Double.NaN);\n assertNotNull(doubleArray0);\n assertEquals(0, doubleArray0.length);\n \n GaussianProcesses gaussianProcesses0 = new GaussianProcesses();\n evaluation0.equals(gaussianProcesses0);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "title": "" }, { "docid": "ffdf504bca7096b6b62a4b7b51266eba", "score": "0.62154967", "text": "@Test(timeout = 4000)\n public void test010() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.weightedTrueNegativeRate();\n evaluation0.setNumericPriorsFromBuffer();\n evaluation0.setNumericPriorsFromBuffer();\n double[] doubleArray0 = new double[4];\n doubleArray0[0] = (double) 59;\n doubleArray0[2] = 202.6;\n evaluation0.updateNumericScores(doubleArray0, doubleArray0, 2.0);\n double double1 = evaluation0.pctUnclassified();\n assertEquals(Double.NaN, evaluation0.rootMeanSquaredError(), 0.01);\n assertEquals(double1, double0, 0.01);\n assertEquals(Double.NaN, evaluation0.meanAbsoluteError(), 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(Double.NaN, double1, 0.01);\n }", "title": "" }, { "docid": "d9ecd407f1fc3f0588c72936212d5549", "score": "0.62114424", "text": "@Test(timeout = 4000)\n public void test005() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n CostMatrix costMatrix0 = new CostMatrix(0);\n Evaluation evaluation0 = new Evaluation(instances0, costMatrix0);\n double double0 = evaluation0.errorRate();\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(Double.NaN, double0, 0.01);\n }", "title": "" }, { "docid": "1980a097b8ee60cb94fb0fb44d6dd41c", "score": "0.62079984", "text": "@Test\n public void test26() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toMatrixString();\n assertEquals(\"=== Confusion Matrix ===\\n\\n <-- classified as\\n\", string0);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01D);\n }", "title": "" }, { "docid": "932939b848e4cd1297dd7ffe8d5ae4d5", "score": "0.6189112", "text": "@Test\n public void testEstimateErrorRateForBigCardinalities() {\n double stdError = (1.04 / Math.sqrt(1 << precision())) * 100;\n double maxError = Math.ceil(stdError + 3.0);\n\n IntHashSet actualCount = new IntHashSet(runLength(), -1);\n Random random = new Random();\n Histogram histogram = new Histogram(5);\n ByteBuffer bb = ByteBuffer.allocate(4);\n\n int sampleStep = 100;\n long expected;\n long actual;\n\n for (int i = 1; i <= runLength(); i++) {\n int toCount = random.nextInt();\n actualCount.add(toCount);\n\n bb.clear();\n bb.putInt(toCount);\n encoder.add(HashUtil.MurmurHash3_x64_64(bb.array(), 0, bb.array().length));\n\n if (i % sampleStep == 0) {\n expected = actualCount.size();\n actual = encoder.estimate();\n double errorPct = ((actual * 100.0) / expected) - 100;\n histogram.recordValue(Math.abs((long) (errorPct * 100)));\n }\n }\n\n double errorPerc99 = histogram.getValueAtPercentile(99) / 100.0;\n if (errorPerc99 > maxError) {\n fail(\"For P=\" + precision() + \", max error=\" + maxError + \"% expected.\"\n + \" Error: \" + errorPerc99 + \"%.\");\n }\n }", "title": "" }, { "docid": "fa88eb8e24179f2249e654e5ec04c9ee", "score": "0.6132667", "text": "private float entropy(int occurences, int total){\r\n\t\tif(occurences == 0)\r\n\t\t\treturn 0;\r\n\t\tfloat ratio = (float) occurences/total;\r\n\t\tfloat rslt = ratio * ((float)(Math.log(ratio)) / (float)(Math.log(2)));\r\n\t\t//System.out.println(rslt);\r\n\t\treturn -rslt;\r\n\t}", "title": "" }, { "docid": "f05d20bbcc0261c170c2ffa44521c16f", "score": "0.61160773", "text": "@Test\n public void test14() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.KBRelativeInformation();\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01D);\n }", "title": "" }, { "docid": "86cb608aeed261199a7a49535035bda5", "score": "0.61058104", "text": "@Test\n public void test10() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFEntropyGain();\n assertEquals(0.0, double0, 0.01D);\n }", "title": "" }, { "docid": "fa2896d45f38d5381aa00d0235ff545c", "score": "0.6090172", "text": "@Test\n public void test07() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toClassDetailsString(\"The first argument must be the class name of a classifier\");\n assertEquals(\"The first argument must be the class name of a classifier\\n TP Rate FP Rate Precision Recall F-Measure MCC ROC Area PRC Area Class\\nWeighted Avg. NaN NaN NaN NaN NaN NaN NaN NaN \\n\", string0);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01D);\n }", "title": "" }, { "docid": "6ab0176bbe6b8ad90fb6351ea883fba1", "score": "0.6089616", "text": "@Test(timeout = 4000)\n public void test26() throws Throwable {\n JRip jRip0 = new JRip();\n jRip0.globalInfo();\n assertEquals(3, jRip0.getFolds());\n assertEquals(2.0, jRip0.getMinNo(), 0.01);\n assertTrue(jRip0.getCheckErrorRate());\n assertEquals(2, jRip0.getOptimizations());\n assertTrue(jRip0.getUsePruning());\n assertEquals(1L, jRip0.getSeed());\n assertFalse(jRip0.getDebug());\n }", "title": "" }, { "docid": "fa00c0d155d7c9a7180f5df713434a4c", "score": "0.60865635", "text": "@Test(timeout = 4000)\n public void test05() throws Throwable {\n double[] doubleArray0 = new double[3];\n doubleArray0[0] = 1732.955775904258;\n doubleArray0[1] = 1732.955775904258;\n doubleArray0[2] = 1732.955775904258;\n BinarySparseInstance binarySparseInstance0 = new BinarySparseInstance(1732.955775904258, doubleArray0);\n JRip jRip0 = new JRip();\n Attribute attribute0 = new Attribute((String) null, (String) null);\n binarySparseInstance0.setMissing(attribute0);\n JRip.NumericAntd jRip_NumericAntd0 = jRip0.new NumericAntd(attribute0);\n jRip_NumericAntd0.value = 1.0;\n jRip_NumericAntd0.accuRate = (double) 2;\n jRip_NumericAntd0.covers(binarySparseInstance0);\n System.setCurrentTimeMillis(1);\n Random.setNextRandom(2);\n }", "title": "" }, { "docid": "a50f3866d136e80efcd053a4e17ed74b", "score": "0.6004331", "text": "@Test(timeout = 4000)\n public void test016() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n CostMatrix costMatrix0 = new CostMatrix(0);\n String[] stringArray0 = new String[4];\n stringArray0[0] = \".cost\";\n stringArray0[1] = \".bsi\";\n stringArray0[2] = \"numBinsTipText\";\n stringArray0[3] = \".cost\";\n textDirectoryLoader0.setOptions(stringArray0);\n byte[] byteArray0 = new byte[7];\n byteArray0[0] = (byte)97;\n byteArray0[1] = (byte)97;\n byteArray0[2] = (byte)97;\n byteArray0[3] = (byte)12;\n byteArray0[4] = (byte)97;\n byteArray0[5] = (byte)70;\n byteArray0[6] = (byte)97;\n FileSystemHandling.appendDataToFile((EvoSuiteFile) null, byteArray0);\n Evaluation evaluation0 = new Evaluation(instances0, costMatrix0);\n // Undeclared exception!\n try { \n evaluation0.makeDistribution(423.28734579);\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // 423\n //\n verifyException(\"weka.classifiers.Evaluation\", e);\n }\n }", "title": "" }, { "docid": "000ff4e5fd4fd6cb2d75fe37a3628a8c", "score": "0.5977156", "text": "@Test\n public void levelOfEvidenceTest() {\n // TODO: test levelOfEvidence\n }", "title": "" }, { "docid": "0e14853e410eedb4bc85ae5c5174c85c", "score": "0.59534156", "text": "@Test\n public void testPhenoMatchScore() throws IOException {\n \n System.out.println(\"phenoMatchScore\");\n HashSet<Term> terms = new HashSet<Term>();\n terms.add(phenotypeData.getTermIncludingAlternatives(\"EP:06\"));\n \n // build gene A of example data set\n ArrayList<String> genePhenotypes = new ArrayList<String>();\n genePhenotypes.add(\"EP:04\");\n genePhenotypes.add(\"EP:05\"); \n Gene geneA = new Gene(\"chr1\", 26, 32, \"geneA\", genePhenotypes);\n geneA.setPhenotypeTerms( new HashSet<Term>() );\n geneA.addPhenotypeTerm(phenotypeData.getTermIncludingAlternatives(\"EP:04\"));\n geneA.addPhenotypeTerm(phenotypeData.getTermIncludingAlternatives(\"EP:05\"));\n \n System.out.println(\"terms: \" + terms);\n System.out.println(\"gene A phenotypes: \" + geneA.getPhenotypeTerms());\n // DEBUG IC of terms in example data\n System.out.println(\"EP:00: \" + phenotypeData.getIC(phenotypeData.getTermIncludingAlternatives(\"EP:00\")));\n System.out.println(\"EP:01: \" + phenotypeData.getIC(phenotypeData.getTermIncludingAlternatives(\"EP:01\")));\n System.out.println(\"EP:02: \" + phenotypeData.getIC(phenotypeData.getTermIncludingAlternatives(\"EP:02\")));\n System.out.println(\"EP:03: \" + phenotypeData.getIC(phenotypeData.getTermIncludingAlternatives(\"EP:03\")));\n System.out.println(\"EP:04: \" + phenotypeData.getIC(phenotypeData.getTermIncludingAlternatives(\"EP:04\")));\n System.out.println(\"EP:05: \" + phenotypeData.getIC(phenotypeData.getTermIncludingAlternatives(\"EP:05\")));\n System.out.println(\"EP:06: \" + phenotypeData.getIC(phenotypeData.getTermIncludingAlternatives(\"EP:06\")));\n \n \n // expect sum IC of most specific common terms for each gene phenotype\n double expResult = phenotypeData.getIC(phenotypeData.getTermIncludingAlternatives(\"EP:04\"));\n expResult += phenotypeData.getIC(phenotypeData.getTermIncludingAlternatives(\"EP:05\"));\n double result = phenotypeData.phenoMatchScore(terms, geneA);\n \n assertEquals(expResult, result, 0.001);\n \n }", "title": "" }, { "docid": "2dc64acab6c4a5c94d5389928a4e65dc", "score": "0.594319", "text": "@Test(timeout = 4000)\n public void test45() throws Throwable {\n JRip jRip0 = new JRip();\n Attribute attribute0 = new Attribute(\"5.\", (-1514));\n JRip.NominalAntd jRip_NominalAntd0 = jRip0.new NominalAntd(attribute0);\n SparseInstance sparseInstance0 = new SparseInstance(0);\n boolean boolean0 = jRip_NominalAntd0.covers(sparseInstance0);\n assertEquals(1L, jRip0.getSeed());\n assertTrue(jRip0.getCheckErrorRate());\n assertTrue(jRip0.getUsePruning());\n assertEquals(2, jRip0.getOptimizations());\n assertEquals(2.0, jRip0.getMinNo(), 0.01);\n assertEquals(Double.NaN, jRip_NominalAntd0.getAccuRate(), 0.01);\n assertEquals(Double.NaN, jRip_NominalAntd0.getAccu(), 0.01);\n assertEquals(3, jRip0.getFolds());\n assertEquals(Double.NaN, jRip_NominalAntd0.getAttrValue(), 0.01);\n assertEquals(Double.NaN, jRip_NominalAntd0.getCover(), 0.01);\n assertTrue(boolean0);\n assertFalse(jRip0.getDebug());\n assertEquals(0.0, jRip_NominalAntd0.getMaxInfoGain(), 0.01);\n }", "title": "" }, { "docid": "4369e1f86016ab49582f630a2ce068b2", "score": "0.59430003", "text": "@Test\n public void test03() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.unweightedMacroFmeasure();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n }", "title": "" }, { "docid": "74a1ec398c11b8c9b8666539e6c0447a", "score": "0.5913184", "text": "@Test(timeout = 4000)\n public void test18() throws Throwable {\n JRip jRip0 = new JRip();\n JRip.NumericAntd jRip_NumericAntd0 = jRip0.new NumericAntd((Attribute) null);\n String string0 = jRip_NumericAntd0.getRevision();\n assertEquals(Double.NaN, jRip_NumericAntd0.getCover(), 0.01);\n assertEquals(0.0, jRip_NumericAntd0.getMaxInfoGain(), 0.01);\n assertFalse(jRip0.getDebug());\n assertEquals(Double.NaN, jRip_NumericAntd0.getAttrValue(), 0.01);\n assertEquals(2, jRip0.getOptimizations());\n assertEquals(2.0, jRip0.getMinNo(), 0.01);\n assertEquals(Double.NaN, jRip_NumericAntd0.getSplitPoint(), 0.01);\n assertEquals(\"8118\", string0);\n assertEquals(1L, jRip0.getSeed());\n assertTrue(jRip0.getUsePruning());\n assertTrue(jRip0.getCheckErrorRate());\n assertEquals(Double.NaN, jRip_NumericAntd0.getAccuRate(), 0.01);\n assertEquals(Double.NaN, jRip_NumericAntd0.getAccu(), 0.01);\n assertEquals(3, jRip0.getFolds());\n }", "title": "" }, { "docid": "1906809bdca6935f39ee7064dcb270ab", "score": "0.59120655", "text": "@Test\n public void test27() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.weightedRecall();\n assertEquals(Double.NaN, double0, 0.01D);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n }", "title": "" }, { "docid": "19279c06f64a6a088be60bd0c1c5a053", "score": "0.59115356", "text": "@Test(timeout = 4000)\n public void test64() throws Throwable {\n double[] doubleArray0 = new double[3];\n doubleArray0[0] = 1732.955775904258;\n doubleArray0[1] = 1732.955775904258;\n doubleArray0[2] = 1732.955775904258;\n BinarySparseInstance binarySparseInstance0 = new BinarySparseInstance(1732.955775904258, doubleArray0);\n JRip jRip0 = new JRip();\n Attribute attribute0 = new Attribute((String) null, (String) null);\n SparseInstance sparseInstance0 = new SparseInstance(1);\n ArrayList<Attribute> arrayList0 = new ArrayList<Attribute>();\n arrayList0.add(attribute0);\n Instances instances0 = new Instances(\"SQ%F4p<7Wb\", arrayList0, 1);\n instances0.add((Instance) binarySparseInstance0);\n binarySparseInstance0.setMissing(attribute0);\n JRip.NumericAntd jRip_NumericAntd0 = jRip0.new NumericAntd(attribute0);\n jRip_NumericAntd0.covers(sparseInstance0);\n System.setCurrentTimeMillis(1);\n Random.setNextRandom(3);\n }", "title": "" }, { "docid": "1bfa61ad671abd352f3575b7f4062cb2", "score": "0.5904942", "text": "@Test(timeout = 4000)\n public void test078() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n assertEquals(\"Whether to print additional debug information to the console.\", textDirectoryLoader0.debugTipText());\n assertEquals(\"Whether to store the filename in an additional attribute.\", textDirectoryLoader0.outputFilenameTipText());\n assertEquals(\"The character set to use when reading text files (eg UTF-8) - leave blank to use the default character set.\", textDirectoryLoader0.charSetTipText());\n assertFalse(textDirectoryLoader0.getDebug());\n assertFalse(textDirectoryLoader0.getOutputFilename());\n assertEquals(\"Directories\", textDirectoryLoader0.getFileDescription());\n assertEquals(\"\", textDirectoryLoader0.getCharSet());\n assertEquals(\"Loads all text files in a directory and uses the subdirectory names as class labels. The content of the text files will be stored in a String attribute, the filename can be stored as well.\", textDirectoryLoader0.globalInfo());\n assertNotNull(textDirectoryLoader0);\n \n CostMatrix costMatrix0 = new CostMatrix(0);\n assertEquals(0, costMatrix0.numRows());\n assertEquals(0, costMatrix0.size());\n assertEquals(0, costMatrix0.numColumns());\n assertNotNull(costMatrix0);\n \n double double0 = Evaluation.MIN_SF_PROB;\n assertEquals(4.9E-324, double0, 0.01);\n \n EvoSuiteFile evoSuiteFile0 = new EvoSuiteFile(\"/home/ubuntu/evosuite_readability_gen/projects/107_weka\");\n boolean boolean0 = FileSystemHandling.appendStringToFile(evoSuiteFile0, \"setFolds\");\n assertFalse(boolean0);\n \n CoverTree coverTree0 = new CoverTree();\n assertEquals(\"The distance function to use for finding neighbours (default: weka.core.EuclideanDistance). \", coverTree0.distanceFunctionTipText());\n assertEquals(0.0, coverTree0.measureNumLeaves(), 0.01);\n assertEquals(0.0, coverTree0.measureMaxDepth(), 0.01);\n assertFalse(coverTree0.getMeasurePerformance());\n assertEquals(0.0, coverTree0.measureTreeSize(), 0.01);\n assertEquals(1.3, coverTree0.getBase(), 0.01);\n assertEquals(\"The base for the expansion constant.\", coverTree0.baseTipText());\n assertEquals(\"Whether to calculate performance statistics for the NN search or not\", coverTree0.measurePerformanceTipText());\n assertNotNull(coverTree0);\n \n TestInstances testInstances0 = new TestInstances();\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertEquals(0, testInstances0.getNumRelationalNumeric());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(0, testInstances0.getNumDate());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(0, testInstances0.getNumRelationalDate());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(0, testInstances0.getNumNumeric());\n assertEquals(20, testInstances0.getNumInstances());\n assertFalse(testInstances0.getNoClass());\n assertEquals(1, testInstances0.getClassType());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(2, testInstances0.getNumAttributes());\n assertNotNull(testInstances0);\n \n Instances instances0 = testInstances0.generate();\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertEquals(0, testInstances0.getNumRelationalNumeric());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(0, testInstances0.getNumDate());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(0, testInstances0.getNumRelationalDate());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(0, testInstances0.getNumNumeric());\n assertEquals(20, testInstances0.getNumInstances());\n assertFalse(testInstances0.getNoClass());\n assertEquals(1, testInstances0.getClassType());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(2, testInstances0.getNumAttributes());\n assertEquals(2, instances0.numClasses());\n assertFalse(instances0.checkForStringAttributes());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertEquals(20, instances0.size());\n assertEquals(2, instances0.numAttributes());\n assertEquals(20, instances0.numInstances());\n assertEquals(\"Testdata\", instances0.relationName());\n assertEquals(1, instances0.classIndex());\n assertNotNull(instances0);\n \n Evaluation evaluation0 = new Evaluation(instances0);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertEquals(0, testInstances0.getNumRelationalNumeric());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(0, testInstances0.getNumDate());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(0, testInstances0.getNumRelationalDate());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(0, testInstances0.getNumNumeric());\n assertEquals(20, testInstances0.getNumInstances());\n assertFalse(testInstances0.getNoClass());\n assertEquals(1, testInstances0.getClassType());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(2, testInstances0.getNumAttributes());\n assertEquals(2, instances0.numClasses());\n assertFalse(instances0.checkForStringAttributes());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertEquals(20, instances0.size());\n assertEquals(2, instances0.numAttributes());\n assertEquals(20, instances0.numInstances());\n assertEquals(\"Testdata\", instances0.relationName());\n assertEquals(1, instances0.classIndex());\n assertEquals(Double.NaN, evaluation0.unweightedMicroFmeasure(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanPriorSquaredError(), 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedTrueNegativeRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootRelativeSquaredError(), 0.01);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(Double.NaN, evaluation0.coverageOfTestCasesByPredictedRegions(), 0.01);\n assertEquals(0.0, evaluation0.correct(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanPriorEntropy(), 0.01);\n assertFalse(evaluation0.getDiscardPredictions());\n assertEquals(0.0, evaluation0.totalCost(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedPrecision(), 0.01);\n assertEquals(Double.NaN, evaluation0.relativeAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFalseNegativeRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedRecall(), 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctIncorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.errorRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedTruePositiveRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.sizeOfPredictedRegions(), 0.01);\n assertEquals(0.0, evaluation0.incorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanPriorAbsoluteError(), 0.01);\n assertEquals(1.0, evaluation0.kappa(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFalsePositiveRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctUnclassified(), 0.01);\n assertEquals(Double.NaN, evaluation0.avgCost(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanSchemeEntropy(), 0.01);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFMeasure(), 0.01);\n assertEquals(0.0, evaluation0.numInstances(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctCorrect(), 0.01);\n assertNotNull(evaluation0);\n \n double double1 = evaluation0.kappa();\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertEquals(1.0, double1, 0.01);\n assertEquals(0, testInstances0.getNumRelationalNumeric());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(0, testInstances0.getNumDate());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(0, testInstances0.getNumRelationalDate());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(0, testInstances0.getNumNumeric());\n assertEquals(20, testInstances0.getNumInstances());\n assertFalse(testInstances0.getNoClass());\n assertEquals(1, testInstances0.getClassType());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(2, testInstances0.getNumAttributes());\n assertEquals(2, instances0.numClasses());\n assertFalse(instances0.checkForStringAttributes());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertEquals(20, instances0.size());\n assertEquals(2, instances0.numAttributes());\n assertEquals(20, instances0.numInstances());\n assertEquals(\"Testdata\", instances0.relationName());\n assertEquals(1, instances0.classIndex());\n assertEquals(Double.NaN, evaluation0.unweightedMicroFmeasure(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanPriorSquaredError(), 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedTrueNegativeRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootRelativeSquaredError(), 0.01);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(Double.NaN, evaluation0.coverageOfTestCasesByPredictedRegions(), 0.01);\n assertEquals(0.0, evaluation0.correct(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanPriorEntropy(), 0.01);\n assertFalse(evaluation0.getDiscardPredictions());\n assertEquals(0.0, evaluation0.totalCost(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedPrecision(), 0.01);\n assertEquals(Double.NaN, evaluation0.relativeAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFalseNegativeRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedRecall(), 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctIncorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.errorRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedTruePositiveRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.sizeOfPredictedRegions(), 0.01);\n assertEquals(0.0, evaluation0.incorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanPriorAbsoluteError(), 0.01);\n assertEquals(1.0, evaluation0.kappa(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFalsePositiveRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctUnclassified(), 0.01);\n assertEquals(Double.NaN, evaluation0.avgCost(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanSchemeEntropy(), 0.01);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFMeasure(), 0.01);\n assertEquals(0.0, evaluation0.numInstances(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctCorrect(), 0.01);\n assertNotEquals(double1, double0, 0.01);\n }", "title": "" }, { "docid": "1bd0da2d51e68d1a5d4e880fa23f9a58", "score": "0.5891823", "text": "@Test(timeout = 4000)\n public void test06() throws Throwable {\n JRip jRip0 = new JRip();\n Properties properties0 = new Properties();\n ProtectedProperties protectedProperties0 = new ProtectedProperties(properties0);\n ProtectedProperties protectedProperties1 = new ProtectedProperties(protectedProperties0);\n Attribute attribute0 = new Attribute(\"mAGk+F.!yh\", protectedProperties1);\n attribute0.copy(\"mAGk+F.!yh\");\n Attribute attribute1 = attribute0.copy(\"\");\n JRip.NumericAntd jRip_NumericAntd0 = jRip0.new NumericAntd(attribute1);\n double double0 = jRip_NumericAntd0.getSplitPoint();\n assertEquals(0.0, jRip_NumericAntd0.getMaxInfoGain(), 0.01);\n assertEquals(Double.NaN, jRip_NumericAntd0.getCover(), 0.01);\n assertEquals(Double.NaN, jRip_NumericAntd0.getAccu(), 0.01);\n assertEquals(Double.NaN, jRip_NumericAntd0.getAccuRate(), 0.01);\n assertFalse(jRip0.getDebug());\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(1L, jRip0.getSeed());\n assertEquals(2.0, jRip0.getMinNo(), 0.01);\n assertEquals(2, jRip0.getOptimizations());\n assertTrue(jRip0.getUsePruning());\n assertTrue(jRip0.getCheckErrorRate());\n assertEquals(3, jRip0.getFolds());\n assertEquals(Double.NaN, jRip_NumericAntd0.getAttrValue(), 0.01);\n }", "title": "" }, { "docid": "5b5fc87d98c006736c0d89f99a9df6cf", "score": "0.5880612", "text": "@Test(timeout = 4000)\n public void test069() throws Throwable {\n ResultMatrixSignificance resultMatrixSignificance0 = new ResultMatrixSignificance();\n ResultMatrixHTML resultMatrixHTML0 = new ResultMatrixHTML(resultMatrixSignificance0);\n ResultMatrixCSV resultMatrixCSV0 = new ResultMatrixCSV(resultMatrixHTML0);\n resultMatrixHTML0.listOptions();\n resultMatrixCSV0.assign(resultMatrixHTML0);\n resultMatrixCSV0.doubleToString(0, 0);\n ResultMatrixSignificance resultMatrixSignificance1 = new ResultMatrixSignificance(resultMatrixCSV0);\n ResultMatrixSignificance resultMatrixSignificance2 = new ResultMatrixSignificance(46, 12);\n resultMatrixSignificance2.getVisibleColCount();\n ResultMatrixLatex resultMatrixLatex0 = new ResultMatrixLatex(2, 0);\n resultMatrixLatex0.toStringKey();\n resultMatrixLatex0.setRowName(2, \"v\");\n ResultMatrixPlainText resultMatrixPlainText0 = new ResultMatrixPlainText(123, 1076);\n }", "title": "" }, { "docid": "4a18d3105870d5874fe398937b41a13e", "score": "0.58788764", "text": "@Test(timeout = 4000)\n public void test018() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n CostMatrix costMatrix0 = new CostMatrix(0);\n Evaluation evaluation0 = new Evaluation(instances0, costMatrix0);\n double[] doubleArray0 = new double[7];\n doubleArray0[0] = (double) 0;\n doubleArray0[1] = (double) 0;\n doubleArray0[2] = (double) 0;\n doubleArray0[3] = (double) 0;\n doubleArray0[4] = (double) 0;\n doubleArray0[6] = (double) 0;\n String string0 = evaluation0.toMatrixString();\n assertEquals(\"=== Confusion Matrix ===\\n\\n <-- classified as\\n\", string0);\n }", "title": "" }, { "docid": "09be16c156c4e4f5f8fc4204d68a2dfd", "score": "0.5851706", "text": "@Test(timeout = 4000)\n public void test02() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n SparseInstance sparseInstance0 = new SparseInstance(120);\n instances0.deleteWithMissingClass();\n DatabaseLoader databaseLoader0 = new DatabaseLoader();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.correct();\n assertEquals(0.0, double0, 0.01);\n \n evaluation0.setDiscardPredictions(false);\n assertFalse(evaluation0.getDiscardPredictions());\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n }", "title": "" }, { "docid": "267c51869f6dd106c2219b21bea56d8f", "score": "0.58495265", "text": "@Test\n public void test15() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.kappa();\n assertEquals(1.0, double0, 0.01D);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01D);\n }", "title": "" }, { "docid": "6470e7dc7c441d5e3dcc96ad618a580c", "score": "0.5848639", "text": "@Test(timeout = 4000)\n public void test40() throws Throwable {\n JRip jRip0 = new JRip();\n Attribute attribute0 = new Attribute(\"^?~GK1VU{\", \"\");\n JRip.NominalAntd jRip_NominalAntd0 = jRip0.new NominalAntd(attribute0);\n JRip.NominalAntd jRip_NominalAntd1 = (JRip.NominalAntd)jRip_NominalAntd0.copy();\n assertEquals(Double.NaN, jRip_NominalAntd1.getCover(), 0.01);\n assertEquals(Double.NaN, jRip_NominalAntd1.getAttrValue(), 0.01);\n assertEquals(Double.NaN, jRip_NominalAntd1.getAccu(), 0.01);\n assertEquals(1L, jRip0.getSeed());\n assertEquals(Double.NaN, jRip_NominalAntd1.getAccuRate(), 0.01);\n assertEquals(3, jRip0.getFolds());\n assertFalse(jRip0.getDebug());\n assertEquals(0.0, jRip_NominalAntd1.getMaxInfoGain(), 0.01);\n assertEquals(2.0, jRip0.getMinNo(), 0.01);\n assertTrue(jRip0.getCheckErrorRate());\n assertTrue(jRip0.getUsePruning());\n assertEquals(2, jRip0.getOptimizations());\n }", "title": "" }, { "docid": "daf2f93fcf30bfc75a829efb7413b259", "score": "0.58424395", "text": "@Test(timeout = 4000)\n public void test41() throws Throwable {\n JRip jRip0 = new JRip();\n FileSystemHandling.appendStringToFile((EvoSuiteFile) null, \"\");\n JRip jRip1 = new JRip();\n LinkedList<String> linkedList0 = new LinkedList<String>();\n Attribute attribute0 = new Attribute(\"weka.classifiers.rules.JRip$RipperRule\", linkedList0, 71);\n Attribute attribute1 = attribute0.copy(\"weka.classifiers.rules.JRip$RipperRule\");\n JRip.NominalAntd jRip_NominalAntd0 = jRip0.new NominalAntd(attribute1);\n JRip.NominalAntd jRip_NominalAntd1 = jRip0.new NominalAntd(attribute1);\n jRip_NominalAntd0.getAccuRate();\n double[] doubleArray0 = new double[2];\n doubleArray0[0] = 20.0;\n doubleArray0[1] = 2325.50591;\n }", "title": "" }, { "docid": "c2ad9fddd739c602efa2cb6581be6bb7", "score": "0.5834322", "text": "@Test(timeout = 4000)\n public void test009() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n CostMatrix costMatrix0 = new CostMatrix(0);\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.weightedTrueNegativeRate();\n assertEquals(Double.NaN, double0, 0.01);\n \n evaluation0.setNumericPriorsFromBuffer();\n Evaluation evaluation1 = new Evaluation(instances0);\n double double1 = evaluation1.numInstances();\n assertEquals(0.0, double1, 0.01);\n }", "title": "" }, { "docid": "185acf7382b24cb63260bbd35f114aa5", "score": "0.58253187", "text": "@Test(timeout = 4000)\n public void test52() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertNotNull(testInstances0);\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(0, testInstances0.getNumDate());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(0, testInstances0.getNumRelationalNumeric());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(20, testInstances0.getNumInstances());\n assertFalse(testInstances0.getNoClass());\n assertEquals(1, testInstances0.getClassType());\n assertEquals(2, testInstances0.getNumAttributes());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(0, testInstances0.getNumNumeric());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(0, testInstances0.getNumRelationalDate());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(0, testInstances0.getNumString());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n \n Instances instances0 = testInstances0.generate(\"Using kernel matrix from file with name: \");\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertNotNull(instances0);\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(0, testInstances0.getNumDate());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(0, testInstances0.getNumRelationalNumeric());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(20, testInstances0.getNumInstances());\n assertFalse(testInstances0.getNoClass());\n assertEquals(1, testInstances0.getClassType());\n assertEquals(2, testInstances0.getNumAttributes());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(0, testInstances0.getNumNumeric());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(0, testInstances0.getNumRelationalDate());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(0, testInstances0.getNumString());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertEquals(2, instances0.numAttributes());\n assertEquals(\"Testdata\", instances0.relationName());\n assertEquals(2, instances0.numClasses());\n assertEquals(20, instances0.size());\n assertEquals(1, instances0.classIndex());\n assertFalse(instances0.checkForStringAttributes());\n assertEquals(20, instances0.numInstances());\n \n HashSet<LinearRegression> hashSet0 = new HashSet<LinearRegression>();\n assertNotNull(hashSet0);\n assertTrue(hashSet0.isEmpty());\n assertEquals(0, hashSet0.size());\n \n boolean boolean0 = instances0.removeAll(hashSet0);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertFalse(boolean0);\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(0, testInstances0.getNumDate());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(0, testInstances0.getNumRelationalNumeric());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(20, testInstances0.getNumInstances());\n assertFalse(testInstances0.getNoClass());\n assertEquals(1, testInstances0.getClassType());\n assertEquals(2, testInstances0.getNumAttributes());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(0, testInstances0.getNumNumeric());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(0, testInstances0.getNumRelationalDate());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(0, testInstances0.getNumString());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertEquals(2, instances0.numAttributes());\n assertEquals(\"Testdata\", instances0.relationName());\n assertEquals(2, instances0.numClasses());\n assertEquals(20, instances0.size());\n assertEquals(1, instances0.classIndex());\n assertFalse(instances0.checkForStringAttributes());\n assertEquals(20, instances0.numInstances());\n assertTrue(hashSet0.isEmpty());\n assertEquals(0, hashSet0.size());\n \n Evaluation evaluation0 = new Evaluation(instances0);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertNotNull(evaluation0);\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(0, testInstances0.getNumDate());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(0, testInstances0.getNumRelationalNumeric());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(20, testInstances0.getNumInstances());\n assertFalse(testInstances0.getNoClass());\n assertEquals(1, testInstances0.getClassType());\n assertEquals(2, testInstances0.getNumAttributes());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(0, testInstances0.getNumNumeric());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(0, testInstances0.getNumRelationalDate());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(0, testInstances0.getNumString());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertEquals(2, instances0.numAttributes());\n assertEquals(\"Testdata\", instances0.relationName());\n assertEquals(2, instances0.numClasses());\n assertEquals(20, instances0.size());\n assertEquals(1, instances0.classIndex());\n assertFalse(instances0.checkForStringAttributes());\n assertEquals(20, instances0.numInstances());\n assertEquals(Double.NaN, evaluation0.pctCorrect(), 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.coverageOfTestCasesByPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFMeasure(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanPriorSquaredError(), 0.01);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(0.0, evaluation0.correct(), 0.01);\n assertFalse(evaluation0.getDiscardPredictions());\n assertEquals(Double.NaN, evaluation0.pctUnclassified(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedTruePositiveRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.unweightedMicroFmeasure(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootRelativeSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.sizeOfPredictedRegions(), 0.01);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n assertEquals(0.0, evaluation0.numInstances(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctIncorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedRecall(), 0.01);\n assertEquals(Double.NaN, evaluation0.avgCost(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.relativeAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFalseNegativeRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanPriorAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedTrueNegativeRate(), 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(0.0, evaluation0.incorrect(), 0.01);\n assertEquals(1.0, evaluation0.kappa(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFalsePositiveRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.errorRate(), 0.01);\n assertEquals(0.0, evaluation0.totalCost(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedPrecision(), 0.01);\n \n String string0 = evaluation0.toClassDetailsString(\"Using kernel matrix from file with name: \");\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertEquals(\"Using kernel matrix from file with name: \\n TP Rate FP Rate Precision Recall F-Measure MCC ROC Area PRC Area Class\\n 0 0 0 0 0 0 ? ? class1\\n 0 0 0 0 0 0 ? ? class2\\nWeighted Avg. NaN NaN NaN NaN NaN NaN NaN NaN \\n\", string0);\n assertNotNull(string0);\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(0, testInstances0.getNumDate());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(0, testInstances0.getNumRelationalNumeric());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(20, testInstances0.getNumInstances());\n assertFalse(testInstances0.getNoClass());\n assertEquals(1, testInstances0.getClassType());\n assertEquals(2, testInstances0.getNumAttributes());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(0, testInstances0.getNumNumeric());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(0, testInstances0.getNumRelationalDate());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(0, testInstances0.getNumString());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertEquals(2, instances0.numAttributes());\n assertEquals(\"Testdata\", instances0.relationName());\n assertEquals(2, instances0.numClasses());\n assertEquals(20, instances0.size());\n assertEquals(1, instances0.classIndex());\n assertFalse(instances0.checkForStringAttributes());\n assertEquals(20, instances0.numInstances());\n assertEquals(Double.NaN, evaluation0.pctCorrect(), 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.coverageOfTestCasesByPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFMeasure(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanPriorSquaredError(), 0.01);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(0.0, evaluation0.correct(), 0.01);\n assertFalse(evaluation0.getDiscardPredictions());\n assertEquals(Double.NaN, evaluation0.pctUnclassified(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedTruePositiveRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.unweightedMicroFmeasure(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootRelativeSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.sizeOfPredictedRegions(), 0.01);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n assertEquals(0.0, evaluation0.numInstances(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctIncorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedRecall(), 0.01);\n assertEquals(Double.NaN, evaluation0.avgCost(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.relativeAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFalseNegativeRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanPriorAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedTrueNegativeRate(), 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(0.0, evaluation0.incorrect(), 0.01);\n assertEquals(1.0, evaluation0.kappa(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFalsePositiveRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.errorRate(), 0.01);\n assertEquals(0.0, evaluation0.totalCost(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedPrecision(), 0.01);\n \n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n assertNotNull(textDirectoryLoader0);\n assertFalse(textDirectoryLoader0.getOutputFilename());\n assertFalse(textDirectoryLoader0.getDebug());\n assertEquals(\"\", textDirectoryLoader0.getCharSet());\n assertEquals(\"Directories\", textDirectoryLoader0.getFileDescription());\n assertEquals(\"Whether to print additional debug information to the console.\", textDirectoryLoader0.debugTipText());\n assertEquals(\"The character set to use when reading text files (eg UTF-8) - leave blank to use the default character set.\", textDirectoryLoader0.charSetTipText());\n assertEquals(\"Loads all text files in a directory and uses the subdirectory names as class labels. The content of the text files will be stored in a String attribute, the filename can be stored as well.\", textDirectoryLoader0.globalInfo());\n assertEquals(\"Whether to store the filename in an additional attribute.\", textDirectoryLoader0.outputFilenameTipText());\n \n textDirectoryLoader0.reset();\n assertFalse(textDirectoryLoader0.getOutputFilename());\n assertFalse(textDirectoryLoader0.getDebug());\n assertEquals(\"\", textDirectoryLoader0.getCharSet());\n assertEquals(\"Directories\", textDirectoryLoader0.getFileDescription());\n assertEquals(\"Whether to print additional debug information to the console.\", textDirectoryLoader0.debugTipText());\n assertEquals(\"The character set to use when reading text files (eg UTF-8) - leave blank to use the default character set.\", textDirectoryLoader0.charSetTipText());\n assertEquals(\"Loads all text files in a directory and uses the subdirectory names as class labels. The content of the text files will be stored in a String attribute, the filename can be stored as well.\", textDirectoryLoader0.globalInfo());\n assertEquals(\"Whether to store the filename in an additional attribute.\", textDirectoryLoader0.outputFilenameTipText());\n \n double double0 = evaluation0.kappa();\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertEquals(1.0, double0, 0.01);\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(0, testInstances0.getNumDate());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(0, testInstances0.getNumRelationalNumeric());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(20, testInstances0.getNumInstances());\n assertFalse(testInstances0.getNoClass());\n assertEquals(1, testInstances0.getClassType());\n assertEquals(2, testInstances0.getNumAttributes());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(0, testInstances0.getNumNumeric());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(0, testInstances0.getNumRelationalDate());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(0, testInstances0.getNumString());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertEquals(2, instances0.numAttributes());\n assertEquals(\"Testdata\", instances0.relationName());\n assertEquals(2, instances0.numClasses());\n assertEquals(20, instances0.size());\n assertEquals(1, instances0.classIndex());\n assertFalse(instances0.checkForStringAttributes());\n assertEquals(20, instances0.numInstances());\n assertEquals(Double.NaN, evaluation0.pctCorrect(), 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.coverageOfTestCasesByPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFMeasure(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanPriorSquaredError(), 0.01);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(0.0, evaluation0.correct(), 0.01);\n assertFalse(evaluation0.getDiscardPredictions());\n assertEquals(Double.NaN, evaluation0.pctUnclassified(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedTruePositiveRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.unweightedMicroFmeasure(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootRelativeSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.sizeOfPredictedRegions(), 0.01);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n assertEquals(0.0, evaluation0.numInstances(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctIncorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedRecall(), 0.01);\n assertEquals(Double.NaN, evaluation0.avgCost(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.relativeAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFalseNegativeRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanPriorAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedTrueNegativeRate(), 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(0.0, evaluation0.incorrect(), 0.01);\n assertEquals(1.0, evaluation0.kappa(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFalsePositiveRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.errorRate(), 0.01);\n assertEquals(0.0, evaluation0.totalCost(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedPrecision(), 0.01);\n }", "title": "" }, { "docid": "c02f6b09a9799aa3010856ee1aba676a", "score": "0.5820688", "text": "@Test(timeout = 4000)\n public void test021() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n SMOreg sMOreg0 = new SMOreg();\n Capabilities capabilities0 = sMOreg0.getCapabilities();\n TestInstances testInstances0 = TestInstances.forCapabilities(capabilities0);\n Instances instances0 = testInstances0.generate(\"weka/core/Capabilities.props\");\n Evaluation evaluation0 = new Evaluation(instances0);\n instances0.getRevision();\n Object object0 = new Object();\n try { \n evaluation0.toClassDetailsString();\n fail(\"Expecting exception: Exception\");\n \n } catch(Exception e) {\n //\n // Evaluation: No per class statistics possible!\n //\n verifyException(\"weka.classifiers.Evaluation\", e);\n }\n }", "title": "" }, { "docid": "2dda23f11dd1bb472053b37a1e38b8ed", "score": "0.57999206", "text": "@Test(timeout = 4000)\n public void test063() throws Throwable {\n ResultMatrixSignificance resultMatrixSignificance0 = new ResultMatrixSignificance();\n resultMatrixSignificance0.clearRanking();\n resultMatrixSignificance0.toArray();\n resultMatrixSignificance0.getDefaultMeanPrec();\n ResultMatrixGnuPlot resultMatrixGnuPlot0 = new ResultMatrixGnuPlot();\n int[][] intArray0 = new int[0][5];\n resultMatrixSignificance0.m_NonSigWins = intArray0;\n int[][] intArray1 = new int[0][4];\n resultMatrixGnuPlot0.setRanking(intArray1);\n Vector<Object> vector0 = new Vector<Object>();\n resultMatrixGnuPlot0.m_HeaderKeys = vector0;\n resultMatrixGnuPlot0.m_StdDevPrec = 1;\n resultMatrixGnuPlot0.setMeanPrec(270);\n resultMatrixSignificance0.setStdDevPrec(1);\n resultMatrixSignificance0.getColCount();\n resultMatrixSignificance0.getDefaultShowStdDev();\n resultMatrixSignificance0.getDefaultRowNameWidth();\n resultMatrixSignificance0.getPrintRowNames();\n Vector<String> vector1 = new Vector<String>();\n Predicate<Object> predicate0 = Predicate.isEqual((Object) vector1);\n predicate0.negate();\n Predicate<Object> predicate1 = predicate0.negate();\n predicate1.negate();\n vector1.setSize(40);\n Vector<Integer> vector2 = new Vector<Integer>();\n vector2.removeIf(predicate1);\n resultMatrixSignificance0.setCount(50, 155.738);\n resultMatrixSignificance0.getDefaultMeanWidth();\n assertEquals(1, resultMatrixSignificance0.getStdDevPrec());\n }", "title": "" }, { "docid": "2a1f1b252b9ed301cb1999bc48bc0d20", "score": "0.57989365", "text": "@Test(timeout = 4000)\n public void test38() throws Throwable {\n JRip jRip0 = new JRip();\n ArrayList<String> arrayList0 = new ArrayList<String>();\n Attribute attribute0 = new Attribute(\"^IB-wDX7 %a$Q&/g\", arrayList0);\n JRip.NominalAntd jRip_NominalAntd0 = jRip0.new NominalAntd(attribute0);\n String string0 = jRip_NominalAntd0.getRevision();\n assertEquals(Double.NaN, jRip_NominalAntd0.getCover(), 0.01);\n assertEquals(Double.NaN, jRip_NominalAntd0.getAttrValue(), 0.01);\n assertFalse(jRip0.getDebug());\n assertEquals(1L, jRip0.getSeed());\n assertEquals(2, jRip0.getOptimizations());\n assertTrue(jRip0.getUsePruning());\n assertTrue(jRip0.getCheckErrorRate());\n assertEquals(0.0, jRip_NominalAntd0.getMaxInfoGain(), 0.01);\n assertEquals(3, jRip0.getFolds());\n assertEquals(Double.NaN, jRip_NominalAntd0.getAccuRate(), 0.01);\n assertEquals(Double.NaN, jRip_NominalAntd0.getAccu(), 0.01);\n assertEquals(2.0, jRip0.getMinNo(), 0.01);\n assertEquals(\"8118\", string0);\n }", "title": "" }, { "docid": "3ccd9a7d1d37774efa013e9e0eba2469", "score": "0.57981145", "text": "private double performChiTest(){\r\n\t\tdouble[] expected = getExpected();\r\n\t\tlong[] pov = getPov();\r\n\t\tdouble chiTestResult = new ChiSquareTest().chiSquareTest(expected, pov);\r\n\t\treturn chiTestResult;\r\n\t}", "title": "" }, { "docid": "badc7c9e9d9e3fa5dca576d6790c043b", "score": "0.57932496", "text": "@Test(timeout = 4000)\n public void test49() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n assertEquals((-2), TestInstances.NO_CLASS);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertNotNull(testInstances0);\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(1, testInstances0.getSeed());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(0, testInstances0.getNumDate());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(20, testInstances0.getNumInstances());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(2, testInstances0.getNumAttributes());\n assertEquals(1, testInstances0.getClassType());\n assertEquals(0, testInstances0.getNumRelationalDate());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(0, testInstances0.getNumNumeric());\n assertFalse(testInstances0.getNoClass());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(0, testInstances0.getNumRelationalNumeric());\n \n Instances instances0 = testInstances0.generate(\"Using kernel matrix from file with name: \");\n assertEquals((-2), TestInstances.NO_CLASS);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertNotNull(instances0);\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(1, testInstances0.getSeed());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(0, testInstances0.getNumDate());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(20, testInstances0.getNumInstances());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(2, testInstances0.getNumAttributes());\n assertEquals(1, testInstances0.getClassType());\n assertEquals(0, testInstances0.getNumRelationalDate());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(0, testInstances0.getNumNumeric());\n assertFalse(testInstances0.getNoClass());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(0, testInstances0.getNumRelationalNumeric());\n assertFalse(instances0.checkForStringAttributes());\n assertEquals(2, instances0.numClasses());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertEquals(20, instances0.size());\n assertEquals(\"Testdata\", instances0.relationName());\n assertEquals(2, instances0.numAttributes());\n assertEquals(20, instances0.numInstances());\n assertEquals(1, instances0.classIndex());\n \n EvoSuiteFile evoSuiteFile0 = new EvoSuiteFile(\"/home/ubuntu/wekafiles\");\n boolean boolean0 = FileSystemHandling.appendStringToFile(evoSuiteFile0, \"+HgP:6|49H\");\n assertTrue(boolean0);\n \n DatabaseLoader databaseLoader0 = new DatabaseLoader();\n assertNotNull(databaseLoader0);\n assertEquals(\"Select * from Results0\", databaseLoader0.getQuery());\n assertFalse(databaseLoader0.getSparseData());\n assertEquals(\"The custom properties that the user can use to override the default ones.\", databaseLoader0.customPropsFileTipText());\n assertEquals(\"The query that should load the instances.\\n The query has to be of the form SELECT <column-list>|* FROM <table> [WHERE <conditions>]\", databaseLoader0.queryTipText());\n assertEquals(\"The URL of the database\", databaseLoader0.urlTipText());\n assertEquals(\"\", databaseLoader0.getPassword());\n assertEquals(\"For incremental loading a unique identiefer has to be specified.\\nIf the query includes all columns of a table (SELECT *...) a primary key\\ncan be detected automatically depending on the JDBC driver. If that is not possible\\nspecify the key columns here in a comma separated list.\", databaseLoader0.keysTipText());\n assertEquals(\"jdbc:idb=experiments.prp\", databaseLoader0.getUrl());\n assertEquals(\"Encode data as sparse instances.\", databaseLoader0.sparseDataTipText());\n assertEquals(\"The user name for the database\", databaseLoader0.userTipText());\n assertEquals(\"The database password\", databaseLoader0.passwordTipText());\n assertEquals(\"\", databaseLoader0.getUser());\n \n EvoSuiteFile evoSuiteFile1 = new EvoSuiteFile(\"/home/ubuntu/wekafiles/props/DatabaseUtils.props\");\n boolean boolean1 = FileSystemHandling.setPermissions(evoSuiteFile1, false, false, true);\n assertFalse(evoSuiteFile1.equals((Object)evoSuiteFile0));\n assertFalse(boolean1 == boolean0);\n assertFalse(boolean1);\n assertNotSame(evoSuiteFile1, evoSuiteFile0);\n \n Evaluation evaluation0 = new Evaluation(instances0);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertNotNull(evaluation0);\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(1, testInstances0.getSeed());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(0, testInstances0.getNumDate());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(20, testInstances0.getNumInstances());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(2, testInstances0.getNumAttributes());\n assertEquals(1, testInstances0.getClassType());\n assertEquals(0, testInstances0.getNumRelationalDate());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(0, testInstances0.getNumNumeric());\n assertFalse(testInstances0.getNoClass());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(0, testInstances0.getNumRelationalNumeric());\n assertFalse(instances0.checkForStringAttributes());\n assertEquals(2, instances0.numClasses());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertEquals(20, instances0.size());\n assertEquals(\"Testdata\", instances0.relationName());\n assertEquals(2, instances0.numAttributes());\n assertEquals(20, instances0.numInstances());\n assertEquals(1, instances0.classIndex());\n assertEquals(Double.NaN, evaluation0.rootRelativeSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedTrueNegativeRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.relativeAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanPriorSquaredError(), 0.01);\n assertEquals(0.0, evaluation0.correct(), 0.01);\n assertFalse(evaluation0.getDiscardPredictions());\n assertEquals(Double.NaN, evaluation0.SFMeanPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.coverageOfTestCasesByPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctUnclassified(), 0.01);\n assertEquals(Double.NaN, evaluation0.avgCost(), 0.01);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctCorrect(), 0.01);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFMeasure(), 0.01);\n assertEquals(0.0, evaluation0.numInstances(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.unweightedMicroFmeasure(), 0.01);\n assertEquals(Double.NaN, evaluation0.errorRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedTruePositiveRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctIncorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFalsePositiveRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.sizeOfPredictedRegions(), 0.01);\n assertEquals(1.0, evaluation0.kappa(), 0.01);\n assertEquals(0.0, evaluation0.incorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanPriorAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedPrecision(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedRecall(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFalseNegativeRate(), 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(0.0, evaluation0.totalCost(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanAbsoluteError(), 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n \n evaluation0.m_NoPriors = true;\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(1, testInstances0.getSeed());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(0, testInstances0.getNumDate());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(20, testInstances0.getNumInstances());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(2, testInstances0.getNumAttributes());\n assertEquals(1, testInstances0.getClassType());\n assertEquals(0, testInstances0.getNumRelationalDate());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(0, testInstances0.getNumNumeric());\n assertFalse(testInstances0.getNoClass());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(0, testInstances0.getNumRelationalNumeric());\n assertFalse(instances0.checkForStringAttributes());\n assertEquals(2, instances0.numClasses());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertEquals(20, instances0.size());\n assertEquals(\"Testdata\", instances0.relationName());\n assertEquals(2, instances0.numAttributes());\n assertEquals(20, instances0.numInstances());\n assertEquals(1, instances0.classIndex());\n assertEquals(Double.NaN, evaluation0.rootRelativeSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedTrueNegativeRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.relativeAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanPriorSquaredError(), 0.01);\n assertEquals(0.0, evaluation0.correct(), 0.01);\n assertFalse(evaluation0.getDiscardPredictions());\n assertEquals(Double.NaN, evaluation0.SFMeanPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.coverageOfTestCasesByPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctUnclassified(), 0.01);\n assertEquals(Double.NaN, evaluation0.avgCost(), 0.01);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctCorrect(), 0.01);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFMeasure(), 0.01);\n assertEquals(0.0, evaluation0.numInstances(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.unweightedMicroFmeasure(), 0.01);\n assertEquals(Double.NaN, evaluation0.errorRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedTruePositiveRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctIncorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFalsePositiveRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.sizeOfPredictedRegions(), 0.01);\n assertEquals(1.0, evaluation0.kappa(), 0.01);\n assertEquals(0.0, evaluation0.incorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanPriorAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedPrecision(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedRecall(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFalseNegativeRate(), 0.01);\n assertEquals(0.0, evaluation0.totalCost(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanAbsoluteError(), 0.01);\n \n double double0 = evaluation0.weightedMatthewsCorrelation();\n assertEquals((-2), TestInstances.NO_CLASS);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(1, testInstances0.getSeed());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(0, testInstances0.getNumDate());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(20, testInstances0.getNumInstances());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(2, testInstances0.getNumAttributes());\n assertEquals(1, testInstances0.getClassType());\n assertEquals(0, testInstances0.getNumRelationalDate());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(0, testInstances0.getNumNumeric());\n assertFalse(testInstances0.getNoClass());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(0, testInstances0.getNumRelationalNumeric());\n assertFalse(instances0.checkForStringAttributes());\n assertEquals(2, instances0.numClasses());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertEquals(20, instances0.size());\n assertEquals(\"Testdata\", instances0.relationName());\n assertEquals(2, instances0.numAttributes());\n assertEquals(20, instances0.numInstances());\n assertEquals(1, instances0.classIndex());\n assertEquals(Double.NaN, evaluation0.rootRelativeSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedTrueNegativeRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.relativeAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanPriorSquaredError(), 0.01);\n assertEquals(0.0, evaluation0.correct(), 0.01);\n assertFalse(evaluation0.getDiscardPredictions());\n assertEquals(Double.NaN, evaluation0.SFMeanPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.coverageOfTestCasesByPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctUnclassified(), 0.01);\n assertEquals(Double.NaN, evaluation0.avgCost(), 0.01);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctCorrect(), 0.01);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFMeasure(), 0.01);\n assertEquals(0.0, evaluation0.numInstances(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.unweightedMicroFmeasure(), 0.01);\n assertEquals(Double.NaN, evaluation0.errorRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedTruePositiveRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctIncorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFalsePositiveRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.sizeOfPredictedRegions(), 0.01);\n assertEquals(1.0, evaluation0.kappa(), 0.01);\n assertEquals(0.0, evaluation0.incorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanPriorAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedPrecision(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedRecall(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFalseNegativeRate(), 0.01);\n assertEquals(0.0, evaluation0.totalCost(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanAbsoluteError(), 0.01);\n \n double double1 = evaluation0.relativeAbsoluteError();\n assertEquals(double1, double0, 0.01);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals(Double.NaN, double1, 0.01);\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(1, testInstances0.getSeed());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(0, testInstances0.getNumDate());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(20, testInstances0.getNumInstances());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(2, testInstances0.getNumAttributes());\n assertEquals(1, testInstances0.getClassType());\n assertEquals(0, testInstances0.getNumRelationalDate());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(0, testInstances0.getNumNumeric());\n assertFalse(testInstances0.getNoClass());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(0, testInstances0.getNumRelationalNumeric());\n assertFalse(instances0.checkForStringAttributes());\n assertEquals(2, instances0.numClasses());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertEquals(20, instances0.size());\n assertEquals(\"Testdata\", instances0.relationName());\n assertEquals(2, instances0.numAttributes());\n assertEquals(20, instances0.numInstances());\n assertEquals(1, instances0.classIndex());\n assertEquals(Double.NaN, evaluation0.rootRelativeSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedTrueNegativeRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.relativeAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanPriorSquaredError(), 0.01);\n assertEquals(0.0, evaluation0.correct(), 0.01);\n assertFalse(evaluation0.getDiscardPredictions());\n assertEquals(Double.NaN, evaluation0.SFMeanPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.coverageOfTestCasesByPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctUnclassified(), 0.01);\n assertEquals(Double.NaN, evaluation0.avgCost(), 0.01);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctCorrect(), 0.01);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFMeasure(), 0.01);\n assertEquals(0.0, evaluation0.numInstances(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.unweightedMicroFmeasure(), 0.01);\n assertEquals(Double.NaN, evaluation0.errorRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedTruePositiveRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctIncorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFalsePositiveRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.sizeOfPredictedRegions(), 0.01);\n assertEquals(1.0, evaluation0.kappa(), 0.01);\n assertEquals(0.0, evaluation0.incorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanPriorAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedPrecision(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedRecall(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFalseNegativeRate(), 0.01);\n assertEquals(0.0, evaluation0.totalCost(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanAbsoluteError(), 0.01);\n }", "title": "" }, { "docid": "9524f63bbbfe1c3767f2d79a03d895c9", "score": "0.5788072", "text": "@Test(timeout = 4000)\n public void test076() throws Throwable {\n ResultMatrixHTML resultMatrixHTML0 = new ResultMatrixHTML();\n ResultMatrixLatex resultMatrixLatex0 = new ResultMatrixLatex(resultMatrixHTML0);\n int[][] intArray0 = new int[2][5];\n int[] intArray1 = new int[5];\n intArray1[0] = 1;\n intArray1[1] = 0;\n resultMatrixHTML0.m_RankingDiff = intArray1;\n intArray1[2] = 0;\n intArray1[3] = 2;\n intArray1[4] = 1;\n intArray0[0] = intArray1;\n resultMatrixLatex0.removeFilterName(\"!h.U]`ND1$UMoaR\");\n int[] intArray2 = new int[9];\n intArray2[0] = 1;\n resultMatrixHTML0.addHeader((String) null, \"sig-width\");\n intArray2[1] = 2;\n intArray2[2] = 0;\n intArray2[3] = 0;\n intArray2[4] = 0;\n intArray2[5] = 1;\n intArray2[6] = 2;\n resultMatrixLatex0.toStringMatrix();\n intArray2[7] = 0;\n intArray2[8] = 1;\n intArray0[1] = intArray2;\n resultMatrixLatex0.m_NonSigWins = intArray0;\n resultMatrixLatex0.m_EnumerateRowNames = false;\n resultMatrixHTML0.LOSS_STRING = \"b:!<cBz?L6eXj}ZqI\";\n resultMatrixLatex0.assign(resultMatrixHTML0);\n resultMatrixLatex0.m_MeanWidth = 2;\n resultMatrixLatex0.isStdDev(1);\n resultMatrixHTML0.getRowHidden(1);\n resultMatrixLatex0.isMean(1);\n String[] stringArray0 = new String[0];\n ResultMatrixLatex.main(stringArray0);\n assertEquals(0, stringArray0.length);\n }", "title": "" }, { "docid": "4467bc4bff2dcc7485c3f24a9bdea4bd", "score": "0.5783482", "text": "@Test(timeout = 4000)\n public void test13() throws Throwable {\n JRip jRip0 = new JRip();\n String string0 = jRip0.getRevision();\n assertTrue(jRip0.getUsePruning());\n assertEquals(1L, jRip0.getSeed());\n assertFalse(jRip0.getDebug());\n assertEquals(3, jRip0.getFolds());\n assertEquals(\"8118\", string0);\n assertEquals(2.0, jRip0.getMinNo(), 0.01);\n assertEquals(2, jRip0.getOptimizations());\n assertTrue(jRip0.getCheckErrorRate());\n }", "title": "" }, { "docid": "8c3436e38d7c935f457343d9a216d1c4", "score": "0.5773605", "text": "@Test(timeout = 4000)\n public void test055() throws Throwable {\n ResultMatrixPlainText resultMatrixPlainText0 = new ResultMatrixPlainText(17, 39);\n ResultMatrixHTML resultMatrixHTML0 = new ResultMatrixHTML(resultMatrixPlainText0);\n String[] stringArray0 = new String[2];\n resultMatrixPlainText0.m_PrintRowNames = true;\n resultMatrixHTML0.clearRanking();\n stringArray0[0] = \"v\";\n stringArray0[1] = \")\";\n ResultMatrixSignificance.main(stringArray0);\n resultMatrixPlainText0.getStdDevWidth();\n resultMatrixHTML0.countWidthTipText();\n int[][] intArray0 = new int[5][9];\n int[] intArray1 = new int[7];\n intArray1[0] = 0;\n intArray1[1] = (-2004);\n intArray1[2] = 39;\n intArray1[3] = 1;\n intArray1[4] = 0;\n intArray1[5] = 17;\n intArray1[6] = 0;\n intArray0[0] = intArray1;\n int[] intArray2 = new int[6];\n intArray2[0] = 0;\n intArray2[1] = 2;\n intArray2[2] = 2162;\n intArray2[3] = 1;\n intArray2[4] = 1;\n intArray2[5] = 2;\n intArray0[1] = intArray2;\n int[] intArray3 = new int[4];\n intArray3[0] = 0;\n intArray3[1] = 0;\n intArray3[2] = 2;\n intArray3[3] = 1;\n intArray0[2] = intArray3;\n int[] intArray4 = new int[7];\n intArray4[0] = 0;\n intArray4[1] = 0;\n intArray4[2] = 2162;\n intArray4[3] = (-664);\n intArray4[4] = 2;\n intArray4[5] = 1290;\n intArray4[6] = 0;\n intArray0[3] = intArray4;\n int[] intArray5 = new int[2];\n intArray5[0] = 1;\n intArray5[1] = 17;\n intArray0[4] = intArray5;\n // Undeclared exception!\n try { \n resultMatrixPlainText0.setRanking(intArray0);\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // 5\n //\n verifyException(\"weka.experiment.ResultMatrix\", e);\n }\n }", "title": "" }, { "docid": "06024bd3b31c933de8eb76d9487a3cc7", "score": "0.5770253", "text": "@Test(timeout = 4000)\n public void test61() throws Throwable {\n Attribute attribute0 = new Attribute(\"\", \"\");\n attribute0.copy((String) null);\n byte[] byteArray0 = new byte[9];\n byteArray0[0] = (byte)93;\n byteArray0[1] = (byte)6;\n byteArray0[2] = (byte)59;\n byteArray0[3] = (byte) (-37);\n byteArray0[4] = (byte)16;\n byteArray0[5] = (byte)97;\n byteArray0[6] = (byte) (-54);\n byteArray0[7] = (byte) (-4);\n byteArray0[8] = (byte) (-47);\n FileSystemHandling.appendDataToFile((EvoSuiteFile) null, byteArray0);\n attribute0.copy(\"@end\");\n ArrayList<Attribute> arrayList0 = new ArrayList<Attribute>();\n Instances instances0 = new Instances(\"integer\", arrayList0, 2);\n Instances instances1 = new Instances(instances0, 0, 0);\n Instances instances2 = new Instances(instances1);\n FileSystemHandling.appendStringToFile((EvoSuiteFile) null, \".bsi\");\n JRip jRip0 = new JRip();\n jRip0.setUsePruning(false);\n try { \n jRip0.rulesetForOneClass(0, instances0, 2, 1);\n fail(\"Expecting exception: RuntimeException\");\n \n } catch(RuntimeException e) {\n //\n // Class index is negative (not set)!\n //\n verifyException(\"weka.core.Instances\", e);\n }\n }", "title": "" }, { "docid": "227ee5f837f1b4cf60ea5ea3df930b5f", "score": "0.5769231", "text": "@Test(timeout = 4000)\n public void test17() throws Throwable {\n JRip jRip0 = new JRip();\n double double0 = jRip0.getMinNo();\n assertEquals(3, jRip0.getFolds());\n assertEquals(2, jRip0.getOptimizations());\n assertTrue(jRip0.getCheckErrorRate());\n assertEquals(2.0, double0, 0.01);\n assertTrue(jRip0.getUsePruning());\n assertEquals(1L, jRip0.getSeed());\n assertFalse(jRip0.getDebug());\n }", "title": "" }, { "docid": "293f8d9a55f52edacf64c35f2477df57", "score": "0.57630104", "text": "@Test(timeout = 4000)\n public void test43() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertNotNull(testInstances0);\n assertEquals(20, testInstances0.getNumInstances());\n assertFalse(testInstances0.getNoClass());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(0, testInstances0.getNumRelationalNumeric());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(0, testInstances0.getNumNumeric());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(1, testInstances0.getClassType());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(0, testInstances0.getNumDate());\n assertEquals(2, testInstances0.getNumAttributes());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertEquals(0, testInstances0.getNumRelationalDate());\n \n Instances instances0 = testInstances0.generate(\"Using kernel matrix from file with name: \");\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertNotNull(instances0);\n assertEquals(20, testInstances0.getNumInstances());\n assertFalse(testInstances0.getNoClass());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(0, testInstances0.getNumRelationalNumeric());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(0, testInstances0.getNumNumeric());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(1, testInstances0.getClassType());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(0, testInstances0.getNumDate());\n assertEquals(2, testInstances0.getNumAttributes());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertEquals(0, testInstances0.getNumRelationalDate());\n assertEquals(20, instances0.numInstances());\n assertEquals(\"Testdata\", instances0.relationName());\n assertEquals(2, instances0.numClasses());\n assertEquals(1, instances0.classIndex());\n assertEquals(2, instances0.numAttributes());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertFalse(instances0.checkForStringAttributes());\n assertEquals(20, instances0.size());\n \n EvoSuiteFile evoSuiteFile0 = new EvoSuiteFile(\"/home/ubuntu/wekafiles\");\n boolean boolean0 = FileSystemHandling.appendStringToFile(evoSuiteFile0, \"+HgP:6|49H\");\n assertTrue(boolean0);\n \n DatabaseLoader databaseLoader0 = new DatabaseLoader();\n assertNotNull(databaseLoader0);\n assertEquals(\"jdbc:idb=experiments.prp\", databaseLoader0.getUrl());\n assertEquals(\"Encode data as sparse instances.\", databaseLoader0.sparseDataTipText());\n assertEquals(\"The user name for the database\", databaseLoader0.userTipText());\n assertEquals(\"The database password\", databaseLoader0.passwordTipText());\n assertEquals(\"The custom properties that the user can use to override the default ones.\", databaseLoader0.customPropsFileTipText());\n assertEquals(\"Select * from Results0\", databaseLoader0.getQuery());\n assertEquals(\"\", databaseLoader0.getPassword());\n assertEquals(\"The query that should load the instances.\\n The query has to be of the form SELECT <column-list>|* FROM <table> [WHERE <conditions>]\", databaseLoader0.queryTipText());\n assertEquals(\"For incremental loading a unique identiefer has to be specified.\\nIf the query includes all columns of a table (SELECT *...) a primary key\\ncan be detected automatically depending on the JDBC driver. If that is not possible\\nspecify the key columns here in a comma separated list.\", databaseLoader0.keysTipText());\n assertFalse(databaseLoader0.getSparseData());\n assertEquals(\"\", databaseLoader0.getUser());\n assertEquals(\"The URL of the database\", databaseLoader0.urlTipText());\n \n EvoSuiteFile evoSuiteFile1 = new EvoSuiteFile(\"/home/ubuntu/wekafiles/props/DatabaseUtils.props\");\n boolean boolean1 = FileSystemHandling.setPermissions(evoSuiteFile1, false, false, true);\n assertFalse(evoSuiteFile1.equals((Object)evoSuiteFile0));\n assertFalse(boolean1 == boolean0);\n assertFalse(boolean1);\n assertNotSame(evoSuiteFile1, evoSuiteFile0);\n \n Evaluation evaluation0 = new Evaluation(instances0);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertNotNull(evaluation0);\n assertEquals(20, testInstances0.getNumInstances());\n assertFalse(testInstances0.getNoClass());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(0, testInstances0.getNumRelationalNumeric());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(0, testInstances0.getNumNumeric());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(1, testInstances0.getClassType());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(0, testInstances0.getNumDate());\n assertEquals(2, testInstances0.getNumAttributes());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertEquals(0, testInstances0.getNumRelationalDate());\n assertEquals(20, instances0.numInstances());\n assertEquals(\"Testdata\", instances0.relationName());\n assertEquals(2, instances0.numClasses());\n assertEquals(1, instances0.classIndex());\n assertEquals(2, instances0.numAttributes());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertFalse(instances0.checkForStringAttributes());\n assertEquals(20, instances0.size());\n assertEquals(Double.NaN, evaluation0.weightedRecall(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedPrecision(), 0.01);\n assertEquals(Double.NaN, evaluation0.avgCost(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanSquaredError(), 0.01);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertFalse(evaluation0.getDiscardPredictions());\n assertEquals(Double.NaN, evaluation0.SFMeanPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctIncorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFalsePositiveRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctUnclassified(), 0.01);\n assertEquals(Double.NaN, evaluation0.errorRate(), 0.01);\n assertEquals(0.0, evaluation0.correct(), 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanPriorSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.relativeAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFalseNegativeRate(), 0.01);\n assertEquals(0.0, evaluation0.totalCost(), 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.coverageOfTestCasesByPredictedRegions(), 0.01);\n assertEquals(1.0, evaluation0.kappa(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanPriorAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.unweightedMicroFmeasure(), 0.01);\n assertEquals(0.0, evaluation0.incorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootRelativeSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.sizeOfPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedTrueNegativeRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedTruePositiveRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFMeasure(), 0.01);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctCorrect(), 0.01);\n assertEquals(0.0, evaluation0.numInstances(), 0.01);\n \n double double0 = evaluation0.rootRelativeSquaredError();\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(20, testInstances0.getNumInstances());\n assertFalse(testInstances0.getNoClass());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(0, testInstances0.getNumRelationalNumeric());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(0, testInstances0.getNumNumeric());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(1, testInstances0.getClassType());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(0, testInstances0.getNumDate());\n assertEquals(2, testInstances0.getNumAttributes());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertEquals(0, testInstances0.getNumRelationalDate());\n assertEquals(20, instances0.numInstances());\n assertEquals(\"Testdata\", instances0.relationName());\n assertEquals(2, instances0.numClasses());\n assertEquals(1, instances0.classIndex());\n assertEquals(2, instances0.numAttributes());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertFalse(instances0.checkForStringAttributes());\n assertEquals(20, instances0.size());\n assertEquals(Double.NaN, evaluation0.weightedRecall(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedPrecision(), 0.01);\n assertEquals(Double.NaN, evaluation0.avgCost(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanSquaredError(), 0.01);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertFalse(evaluation0.getDiscardPredictions());\n assertEquals(Double.NaN, evaluation0.SFMeanPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctIncorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFalsePositiveRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctUnclassified(), 0.01);\n assertEquals(Double.NaN, evaluation0.errorRate(), 0.01);\n assertEquals(0.0, evaluation0.correct(), 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanPriorSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.relativeAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFalseNegativeRate(), 0.01);\n assertEquals(0.0, evaluation0.totalCost(), 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.coverageOfTestCasesByPredictedRegions(), 0.01);\n assertEquals(1.0, evaluation0.kappa(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanPriorAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.unweightedMicroFmeasure(), 0.01);\n assertEquals(0.0, evaluation0.incorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootRelativeSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.sizeOfPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedTrueNegativeRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedTruePositiveRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFMeasure(), 0.01);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctCorrect(), 0.01);\n assertEquals(0.0, evaluation0.numInstances(), 0.01);\n \n evaluation0.addNumericTrainClass((-3405.506471419351), (-1));\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertEquals(20, testInstances0.getNumInstances());\n assertFalse(testInstances0.getNoClass());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(0, testInstances0.getNumRelationalNumeric());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(0, testInstances0.getNumNumeric());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(1, testInstances0.getClassType());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(0, testInstances0.getNumDate());\n assertEquals(2, testInstances0.getNumAttributes());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertEquals(0, testInstances0.getNumRelationalDate());\n assertEquals(20, instances0.numInstances());\n assertEquals(\"Testdata\", instances0.relationName());\n assertEquals(2, instances0.numClasses());\n assertEquals(1, instances0.classIndex());\n assertEquals(2, instances0.numAttributes());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertFalse(instances0.checkForStringAttributes());\n assertEquals(20, instances0.size());\n assertEquals(Double.NaN, evaluation0.weightedRecall(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedPrecision(), 0.01);\n assertEquals(Double.NaN, evaluation0.avgCost(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanSquaredError(), 0.01);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertFalse(evaluation0.getDiscardPredictions());\n assertEquals(Double.NaN, evaluation0.SFMeanPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctIncorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFalsePositiveRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctUnclassified(), 0.01);\n assertEquals(Double.NaN, evaluation0.errorRate(), 0.01);\n assertEquals(0.0, evaluation0.correct(), 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanPriorSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.relativeAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFalseNegativeRate(), 0.01);\n assertEquals(0.0, evaluation0.totalCost(), 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.coverageOfTestCasesByPredictedRegions(), 0.01);\n assertEquals(1.0, evaluation0.kappa(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanPriorAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.unweightedMicroFmeasure(), 0.01);\n assertEquals(0.0, evaluation0.incorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootRelativeSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.sizeOfPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedTrueNegativeRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedTruePositiveRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFMeasure(), 0.01);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctCorrect(), 0.01);\n assertEquals(0.0, evaluation0.numInstances(), 0.01);\n \n try { \n evaluation0.correlationCoefficient();\n fail(\"Expecting exception: Exception\");\n \n } catch(Exception e) {\n //\n // Can't compute correlation coefficient: class is nominal!\n //\n verifyException(\"weka.classifiers.Evaluation\", e);\n }\n }", "title": "" }, { "docid": "35c1c7eba9604f64cf85b3ae55305a6c", "score": "0.5761361", "text": "@Test\n public void costTest() {\n // TODO: test cost\n }", "title": "" }, { "docid": "f6d1b54cd64031ab613eb9130995cc9d", "score": "0.57565457", "text": "@Test(timeout = 4000)\n public void test29() throws Throwable {\n JRip jRip0 = new JRip();\n jRip0.setFolds(3322);\n Random.setNextRandom(1733);\n }", "title": "" }, { "docid": "a1b7d3aeb720f1718383425efb370603", "score": "0.57529294", "text": "@Test\n\tpublic void test6bestSeq() {\n\t}", "title": "" }, { "docid": "0823b2bfa224924a4e3c8ddea51178cb", "score": "0.5734496", "text": "@Test(timeout = 4000)\n public void test29() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n assertEquals((-2), TestInstances.NO_CLASS);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertNotNull(testInstances0);\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(1, testInstances0.getClassType());\n assertEquals(1, testInstances0.getSeed());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(0, testInstances0.getNumDate());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(2, testInstances0.getNumAttributes());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(20, testInstances0.getNumInstances());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(0, testInstances0.getNumRelationalDate());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertFalse(testInstances0.getNoClass());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(0, testInstances0.getNumNumeric());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(0, testInstances0.getNumRelationalNumeric());\n assertEquals(0, testInstances0.getNumString());\n \n Instances instances0 = testInstances0.generate(\"Using kernel matrix from file with name: \");\n assertEquals((-2), TestInstances.NO_CLASS);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertNotNull(instances0);\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(1, testInstances0.getClassType());\n assertEquals(1, testInstances0.getSeed());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(0, testInstances0.getNumDate());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(2, testInstances0.getNumAttributes());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(20, testInstances0.getNumInstances());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(0, testInstances0.getNumRelationalDate());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertFalse(testInstances0.getNoClass());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(0, testInstances0.getNumNumeric());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(0, testInstances0.getNumRelationalNumeric());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertFalse(instances0.checkForStringAttributes());\n assertEquals(2, instances0.numAttributes());\n assertEquals(1, instances0.classIndex());\n assertEquals(20, instances0.size());\n assertEquals(\"Testdata\", instances0.relationName());\n assertEquals(20, instances0.numInstances());\n assertEquals(2, instances0.numClasses());\n \n Evaluation evaluation0 = new Evaluation(instances0);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertNotNull(evaluation0);\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(1, testInstances0.getClassType());\n assertEquals(1, testInstances0.getSeed());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(0, testInstances0.getNumDate());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(2, testInstances0.getNumAttributes());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(20, testInstances0.getNumInstances());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(0, testInstances0.getNumRelationalDate());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertFalse(testInstances0.getNoClass());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(0, testInstances0.getNumNumeric());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(0, testInstances0.getNumRelationalNumeric());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertFalse(instances0.checkForStringAttributes());\n assertEquals(2, instances0.numAttributes());\n assertEquals(1, instances0.classIndex());\n assertEquals(20, instances0.size());\n assertEquals(\"Testdata\", instances0.relationName());\n assertEquals(20, instances0.numInstances());\n assertEquals(2, instances0.numClasses());\n assertEquals(Double.NaN, evaluation0.relativeAbsoluteError(), 0.01);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootRelativeSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedTrueNegativeRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanPriorSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanSquaredError(), 0.01);\n assertEquals(0.0, evaluation0.correct(), 0.01);\n assertFalse(evaluation0.getDiscardPredictions());\n assertEquals(Double.NaN, evaluation0.SFMeanPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctUnclassified(), 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedPrecision(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedRecall(), 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFalseNegativeRate(), 0.01);\n assertEquals(0.0, evaluation0.totalCost(), 0.01);\n assertEquals(Double.NaN, evaluation0.sizeOfPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.errorRate(), 0.01);\n assertEquals(0.0, evaluation0.incorrect(), 0.01);\n assertEquals(1.0, evaluation0.kappa(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctIncorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanPriorAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFalsePositiveRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.coverageOfTestCasesByPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFMeasure(), 0.01);\n assertEquals(Double.NaN, evaluation0.avgCost(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedTruePositiveRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.unweightedMicroFmeasure(), 0.01);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctCorrect(), 0.01);\n assertEquals(0.0, evaluation0.numInstances(), 0.01);\n \n String string0 = evaluation0.toSummaryString();\n assertEquals((-2), TestInstances.NO_CLASS);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals(\"\\nTotal Number of Instances 0 \\n\", string0);\n assertNotNull(string0);\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(1, testInstances0.getClassType());\n assertEquals(1, testInstances0.getSeed());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(0, testInstances0.getNumDate());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(2, testInstances0.getNumAttributes());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(20, testInstances0.getNumInstances());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(0, testInstances0.getNumRelationalDate());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertFalse(testInstances0.getNoClass());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(0, testInstances0.getNumNumeric());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(0, testInstances0.getNumRelationalNumeric());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertFalse(instances0.checkForStringAttributes());\n assertEquals(2, instances0.numAttributes());\n assertEquals(1, instances0.classIndex());\n assertEquals(20, instances0.size());\n assertEquals(\"Testdata\", instances0.relationName());\n assertEquals(20, instances0.numInstances());\n assertEquals(2, instances0.numClasses());\n assertEquals(Double.NaN, evaluation0.relativeAbsoluteError(), 0.01);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootRelativeSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedTrueNegativeRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanPriorSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanSquaredError(), 0.01);\n assertEquals(0.0, evaluation0.correct(), 0.01);\n assertFalse(evaluation0.getDiscardPredictions());\n assertEquals(Double.NaN, evaluation0.SFMeanPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctUnclassified(), 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedPrecision(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedRecall(), 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFalseNegativeRate(), 0.01);\n assertEquals(0.0, evaluation0.totalCost(), 0.01);\n assertEquals(Double.NaN, evaluation0.sizeOfPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.errorRate(), 0.01);\n assertEquals(0.0, evaluation0.incorrect(), 0.01);\n assertEquals(1.0, evaluation0.kappa(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctIncorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanPriorAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFalsePositiveRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.coverageOfTestCasesByPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFMeasure(), 0.01);\n assertEquals(Double.NaN, evaluation0.avgCost(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedTruePositiveRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.unweightedMicroFmeasure(), 0.01);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctCorrect(), 0.01);\n assertEquals(0.0, evaluation0.numInstances(), 0.01);\n \n double[] doubleArray0 = new double[6];\n doubleArray0[0] = (double) (-1);\n doubleArray0[1] = (double) (-2);\n doubleArray0[2] = (double) (-2);\n doubleArray0[3] = (double) (-1);\n doubleArray0[4] = (double) (-2);\n int int0 = 1;\n PrincipalComponents principalComponents0 = new PrincipalComponents();\n assertNotNull(principalComponents0);\n assertEquals(\"Performs a principal components analysis and transformation of the data. Use in conjunction with a Ranker search. Dimensionality reduction is accomplished by choosing enough eigenvectors to account for some percentage of the variance in the original data---default 0.95 (95%). Attribute noise can be filtered by transforming to the PC space, eliminating some of the worst eigenvectors, and then transforming back to the original space.\", principalComponents0.globalInfo());\n assertEquals(0.95, principalComponents0.getVarianceCovered(), 0.01);\n assertFalse(principalComponents0.getCenterData());\n assertEquals(\"Center (rather than standardize) the data. PCA will be computed from the covariance (rather than correlation) matrix\", principalComponents0.centerDataTipText());\n assertEquals(\"Retain enough PC attributes to account for this proportion of variance.\", principalComponents0.varianceCoveredTipText());\n assertEquals(\"The maximum number of attributes to include in transformed attribute names.\", principalComponents0.maximumAttributeNamesTipText());\n assertEquals(\"Transform through the PC space and back to the original space. If only the best n PCs are retained (by setting varianceCovered < 1) then this option will give a dataset in the original space but with less attribute noise.\", principalComponents0.transformBackToOriginalTipText());\n assertEquals(5, principalComponents0.getMaximumAttributeNames());\n assertFalse(principalComponents0.getTransformBackToOriginal());\n \n double double0 = evaluation0.weightedFalseNegativeRate();\n assertEquals((-2), TestInstances.NO_CLASS);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(1, testInstances0.getClassType());\n assertEquals(1, testInstances0.getSeed());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(0, testInstances0.getNumDate());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(2, testInstances0.getNumAttributes());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(20, testInstances0.getNumInstances());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(0, testInstances0.getNumRelationalDate());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertFalse(testInstances0.getNoClass());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(0, testInstances0.getNumNumeric());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(0, testInstances0.getNumRelationalNumeric());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertFalse(instances0.checkForStringAttributes());\n assertEquals(2, instances0.numAttributes());\n assertEquals(1, instances0.classIndex());\n assertEquals(20, instances0.size());\n assertEquals(\"Testdata\", instances0.relationName());\n assertEquals(20, instances0.numInstances());\n assertEquals(2, instances0.numClasses());\n assertEquals(Double.NaN, evaluation0.relativeAbsoluteError(), 0.01);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootRelativeSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedTrueNegativeRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanPriorSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanSquaredError(), 0.01);\n assertEquals(0.0, evaluation0.correct(), 0.01);\n assertFalse(evaluation0.getDiscardPredictions());\n assertEquals(Double.NaN, evaluation0.SFMeanPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctUnclassified(), 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedPrecision(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedRecall(), 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFalseNegativeRate(), 0.01);\n assertEquals(0.0, evaluation0.totalCost(), 0.01);\n assertEquals(Double.NaN, evaluation0.sizeOfPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.errorRate(), 0.01);\n assertEquals(0.0, evaluation0.incorrect(), 0.01);\n assertEquals(1.0, evaluation0.kappa(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctIncorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanPriorAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFalsePositiveRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.coverageOfTestCasesByPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFMeasure(), 0.01);\n assertEquals(Double.NaN, evaluation0.avgCost(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedTruePositiveRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.unweightedMicroFmeasure(), 0.01);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctCorrect(), 0.01);\n assertEquals(0.0, evaluation0.numInstances(), 0.01);\n \n try { \n principalComponents0.transformedData(instances0);\n fail(\"Expecting exception: Exception\");\n \n } catch(Exception e) {\n //\n // Principal components hasn't been built yet\n //\n verifyException(\"weka.attributeSelection.PrincipalComponents\", e);\n }\n }", "title": "" }, { "docid": "8e9010ac1a61ef7dfa7b269facd893e6", "score": "0.5727652", "text": "@Test(timeout = 4000)\n public void test27() throws Throwable {\n JRip jRip0 = new JRip();\n Capabilities capabilities0 = jRip0.getCapabilities();\n assertEquals(1L, jRip0.getSeed());\n assertEquals(3, capabilities0.getMinimumNumberInstances());\n assertFalse(jRip0.getDebug());\n assertEquals(2.0, jRip0.getMinNo(), 0.01);\n assertEquals(2, jRip0.getOptimizations());\n assertTrue(jRip0.getUsePruning());\n assertTrue(jRip0.getCheckErrorRate());\n }", "title": "" }, { "docid": "6eed51adfff8ae1ec9c877be19f9d0c3", "score": "0.5726864", "text": "@Test(timeout = 4000)\n public void test020() throws Throwable {\n Logistic logistic0 = new Logistic();\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n CostMatrix costMatrix0 = new CostMatrix(0);\n Evaluation evaluation0 = new Evaluation(instances0, costMatrix0);\n evaluation0.setDiscardPredictions(true);\n assertTrue(evaluation0.getDiscardPredictions());\n }", "title": "" }, { "docid": "b1272446634fa95b586bb2c5218e00c9", "score": "0.5719371", "text": "@Test\n public void testProbabilityViaConstructor() {\n }", "title": "" }, { "docid": "2e56ef0b5a3eea1c6c26b6b977f7e60b", "score": "0.57152504", "text": "@Test\n public void testGetSelfRegulatedLearningHourCount() {\n System.out.println(\"getSelfRegulatedLearningHourCount\");\n float expResult = createdModule.getSelfRegulatedLearningHourCount();\n float result = importedModule.getSelfRegulatedLearningHourCount();\n assertEquals(expResult, result, 0.0);\n }", "title": "" }, { "docid": "8e7b51508028b28490f016a6e6c1d78b", "score": "0.5709779", "text": "@Test(timeout = 4000)\n public void test01() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n LinkedList<SGD> linkedList0 = new LinkedList<SGD>();\n SGD sGD0 = new SGD();\n linkedList0.add(sGD0);\n instances0.removeAll(linkedList0);\n Evaluation evaluation0 = new Evaluation(instances0);\n DatabaseLoader databaseLoader0 = new DatabaseLoader();\n databaseLoader0.getNextInstance(instances0);\n double double0 = evaluation0.rootMeanPriorSquaredError();\n double double1 = evaluation0.weightedFalseNegativeRate();\n assertEquals(double1, double0, 0.01);\n \n evaluation0.unclassified();\n double[][] doubleArray0 = evaluation0.confusionMatrix();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(0, doubleArray0.length);\n }", "title": "" }, { "docid": "f795a86160c9c0a0d83c4a29e2a71b46", "score": "0.5708326", "text": "@Test\n public void energyUsedTest() {\n // TODO: test energyUsed\n }", "title": "" }, { "docid": "4766b33af139dbaacedd0b6b72cf9e7a", "score": "0.5706581", "text": "@Test(timeout = 4000)\n public void test50() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n assertNotNull(textDirectoryLoader0);\n assertEquals(\"Whether to store the filename in an additional attribute.\", textDirectoryLoader0.outputFilenameTipText());\n assertFalse(textDirectoryLoader0.getOutputFilename());\n assertEquals(\"Loads all text files in a directory and uses the subdirectory names as class labels. The content of the text files will be stored in a String attribute, the filename can be stored as well.\", textDirectoryLoader0.globalInfo());\n assertEquals(\"\", textDirectoryLoader0.getCharSet());\n assertEquals(\"Directories\", textDirectoryLoader0.getFileDescription());\n assertFalse(textDirectoryLoader0.getDebug());\n assertEquals(\"Whether to print additional debug information to the console.\", textDirectoryLoader0.debugTipText());\n assertEquals(\"The character set to use when reading text files (eg UTF-8) - leave blank to use the default character set.\", textDirectoryLoader0.charSetTipText());\n \n RegressionByDiscretization regressionByDiscretization0 = new RegressionByDiscretization();\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertNotNull(regressionByDiscretization0);\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertFalse(regressionByDiscretization0.getDebug());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n \n Capabilities capabilities0 = regressionByDiscretization0.getCapabilities();\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertNotNull(capabilities0);\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertFalse(regressionByDiscretization0.getDebug());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertEquals(2, capabilities0.getMinimumNumberInstances());\n assertTrue(capabilities0.hasDependencies());\n \n TestInstances testInstances0 = TestInstances.forCapabilities(capabilities0);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertNotNull(testInstances0);\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertFalse(regressionByDiscretization0.getDebug());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertEquals(2, capabilities0.getMinimumNumberInstances());\n assertTrue(capabilities0.hasDependencies());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(0, testInstances0.getNumString());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(1, testInstances0.getNumRelationalDate());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(1, testInstances0.getNumDate());\n assertEquals(0, testInstances0.getClassType());\n assertEquals(4, testInstances0.getNumAttributes());\n assertEquals(20, testInstances0.getNumInstances());\n assertFalse(testInstances0.getNoClass());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertEquals(1, testInstances0.getNumRelationalNumeric());\n assertEquals(1, testInstances0.getNumNumeric());\n assertEquals(0, testInstances0.getNumRelationalString());\n \n Instances instances0 = testInstances0.generate(\"Using kernel matrix from file with name: \");\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertNotNull(instances0);\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertFalse(regressionByDiscretization0.getDebug());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertEquals(2, capabilities0.getMinimumNumberInstances());\n assertTrue(capabilities0.hasDependencies());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(0, testInstances0.getNumString());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(1, testInstances0.getNumRelationalDate());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(1, testInstances0.getNumDate());\n assertEquals(0, testInstances0.getClassType());\n assertEquals(4, testInstances0.getNumAttributes());\n assertEquals(20, testInstances0.getNumInstances());\n assertFalse(testInstances0.getNoClass());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertEquals(1, testInstances0.getNumRelationalNumeric());\n assertEquals(1, testInstances0.getNumNumeric());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(20, instances0.numInstances());\n assertEquals(1, instances0.numClasses());\n assertEquals(3, instances0.classIndex());\n assertEquals(\"Testdata\", instances0.relationName());\n assertFalse(instances0.checkForStringAttributes());\n assertEquals(4, instances0.numAttributes());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertEquals(20, instances0.size());\n \n EvoSuiteFile evoSuiteFile0 = new EvoSuiteFile(\"/home/ubuntu/wekafiles\");\n boolean boolean0 = FileSystemHandling.appendStringToFile(evoSuiteFile0, \"qZ+\");\n assertTrue(boolean0);\n \n DatabaseLoader databaseLoader0 = new DatabaseLoader();\n assertNotNull(databaseLoader0);\n assertEquals(\"Encode data as sparse instances.\", databaseLoader0.sparseDataTipText());\n assertEquals(\"The database password\", databaseLoader0.passwordTipText());\n assertEquals(\"The user name for the database\", databaseLoader0.userTipText());\n assertEquals(\"jdbc:idb=experiments.prp\", databaseLoader0.getUrl());\n assertEquals(\"\", databaseLoader0.getPassword());\n assertEquals(\"Select * from Results0\", databaseLoader0.getQuery());\n assertFalse(databaseLoader0.getSparseData());\n assertEquals(\"The custom properties that the user can use to override the default ones.\", databaseLoader0.customPropsFileTipText());\n assertEquals(\"The query that should load the instances.\\n The query has to be of the form SELECT <column-list>|* FROM <table> [WHERE <conditions>]\", databaseLoader0.queryTipText());\n assertEquals(\"For incremental loading a unique identiefer has to be specified.\\nIf the query includes all columns of a table (SELECT *...) a primary key\\ncan be detected automatically depending on the JDBC driver. If that is not possible\\nspecify the key columns here in a comma separated list.\", databaseLoader0.keysTipText());\n assertEquals(\"\", databaseLoader0.getUser());\n assertEquals(\"The URL of the database\", databaseLoader0.urlTipText());\n \n EvoSuiteFile evoSuiteFile1 = new EvoSuiteFile(\"/home/ubuntu/wekafiles/props/DatabaseUtils.props\");\n boolean boolean1 = FileSystemHandling.setPermissions(evoSuiteFile1, false, false, true);\n assertFalse(evoSuiteFile1.equals((Object)evoSuiteFile0));\n assertFalse(boolean1 == boolean0);\n assertFalse(boolean1);\n assertNotSame(evoSuiteFile1, evoSuiteFile0);\n \n Evaluation evaluation0 = new Evaluation(instances0);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertNotNull(evaluation0);\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertFalse(regressionByDiscretization0.getDebug());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertEquals(2, capabilities0.getMinimumNumberInstances());\n assertTrue(capabilities0.hasDependencies());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(0, testInstances0.getNumString());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(1, testInstances0.getNumRelationalDate());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(1, testInstances0.getNumDate());\n assertEquals(0, testInstances0.getClassType());\n assertEquals(4, testInstances0.getNumAttributes());\n assertEquals(20, testInstances0.getNumInstances());\n assertFalse(testInstances0.getNoClass());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertEquals(1, testInstances0.getNumRelationalNumeric());\n assertEquals(1, testInstances0.getNumNumeric());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(20, instances0.numInstances());\n assertEquals(1, instances0.numClasses());\n assertEquals(3, instances0.classIndex());\n assertEquals(\"Testdata\", instances0.relationName());\n assertFalse(instances0.checkForStringAttributes());\n assertEquals(4, instances0.numAttributes());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertEquals(20, instances0.size());\n assertEquals(Double.NaN, evaluation0.meanAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.sizeOfPredictedRegions(), 0.01);\n assertEquals(0.0, evaluation0.incorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctIncorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.avgCost(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctUnclassified(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctCorrect(), 0.01);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n assertEquals(0.0, evaluation0.numInstances(), 0.01);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanPriorSquaredError(), 0.01);\n assertEquals(0.0, evaluation0.correct(), 0.01);\n assertFalse(evaluation0.getDiscardPredictions());\n assertEquals(Double.NaN, evaluation0.rootRelativeSquaredError(), 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.relativeAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.coverageOfTestCasesByPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanPriorAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.errorRate(), 0.01);\n assertEquals(0.0, evaluation0.totalCost(), 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n \n // Undeclared exception!\n try { \n evaluation0.weightedMatthewsCorrelation();\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"weka.classifiers.Evaluation\", e);\n }\n }", "title": "" }, { "docid": "e21b98562127a7b6ae6f99935b32a092", "score": "0.5701445", "text": "public static void testing(){\n\t\tdouble[] desiredOutput = new double[4];\t\t\t//Desired output based on inputs. \n\t\tdouble[] hiddenOutput = new double[12]; //Output out of hidden layer.\n\t\tdouble[] finalOutput = new double[4];\n\t\tint correct = 0, wrong = 0;\n\t\tfor(int i = 0; i < 1797; i++){\n\t\t\tcalculateHiddenOutput(hiddenOutput, i, testData);\n\t\t\tcalculateFinalOutput(finalOutput, hiddenOutput, i);\n\t\t\tcalculateDesiredOutput(desiredOutput, i, testData);\n\t\t\tif(finalOutput[0] == desiredOutput[0] && finalOutput[1] == desiredOutput[1] && \n\t\t\t\t\tfinalOutput[2] == desiredOutput[2] && finalOutput[3] == desiredOutput[3])\n\t\t\t\tcorrect++;\n\t\t\telse\n\t\t\t\twrong++;\n\t\t}\n\t\tSystem.out.println(\"Correct: \" +correct);\n\t\tSystem.out.println(\"Wrong: \" +wrong);\n\t\tSystem.out.println(\"Percentage correct: \" +correct/wrong+ \"%\");\n\t}", "title": "" }, { "docid": "1703c90b0076e5598c717c06d65805f5", "score": "0.56968695", "text": "@Test(timeout = 4000)\n public void test46() throws Throwable {\n JRip jRip0 = new JRip();\n LinkedList<String> linkedList0 = new LinkedList<String>();\n JRip jRip1 = new JRip();\n String string0 = jRip1.toString();\n assertEquals(\"JRIP: No model built yet.\", string0);\n \n Properties properties0 = new Properties();\n ProtectedProperties protectedProperties0 = new ProtectedProperties(properties0);\n Attribute attribute0 = new Attribute(\";A<)I$C/&\", linkedList0, protectedProperties0);\n JRip.NominalAntd jRip_NominalAntd0 = jRip1.new NominalAntd(attribute0);\n double double0 = jRip_NominalAntd0.getAccu();\n assertEquals(Double.NaN, double0, 0.01);\n \n JRip.NumericAntd jRip_NumericAntd0 = jRip0.new NumericAntd(attribute0);\n SparseInstance sparseInstance0 = new SparseInstance(2);\n boolean boolean0 = jRip_NumericAntd0.covers(sparseInstance0);\n assertEquals(0.0, jRip_NumericAntd0.getMaxInfoGain(), 0.01);\n assertEquals(3, jRip0.getFolds());\n assertTrue(boolean0);\n assertFalse(jRip0.getDebug());\n assertEquals(Double.NaN, jRip_NumericAntd0.getAttrValue(), 0.01);\n assertEquals(1L, jRip0.getSeed());\n assertTrue(jRip0.getCheckErrorRate());\n assertTrue(jRip0.getUsePruning());\n assertEquals(2.0, jRip0.getMinNo(), 0.01);\n assertEquals(Double.NaN, jRip_NumericAntd0.getSplitPoint(), 0.01);\n assertEquals(Double.NaN, jRip_NumericAntd0.getCover(), 0.01);\n assertEquals(2, jRip0.getOptimizations());\n assertEquals(Double.NaN, jRip_NumericAntd0.getAccuRate(), 0.01);\n }", "title": "" }, { "docid": "ffed7dc2660dc25d3e806103344f0157", "score": "0.5695131", "text": "@Test(timeout = 4000)\n public void test070() throws Throwable {\n ResultMatrixSignificance resultMatrixSignificance0 = new ResultMatrixSignificance();\n resultMatrixSignificance0.setStdDevWidth(1);\n resultMatrixSignificance0.toString();\n resultMatrixSignificance0.m_EnumerateRowNames = true;\n resultMatrixSignificance0.doubleToString(0.0, 0);\n resultMatrixSignificance0.m_SignificanceWidth = 0;\n resultMatrixSignificance0.getDefaultPrintColNames();\n resultMatrixSignificance0.getDefaultEnumerateColNames();\n resultMatrixSignificance0.isAverage(0);\n ResultMatrixGnuPlot resultMatrixGnuPlot0 = new ResultMatrixGnuPlot(resultMatrixSignificance0);\n int[] intArray0 = new int[0];\n resultMatrixGnuPlot0.m_RowOrder = intArray0;\n resultMatrixGnuPlot0.getColName((-1107));\n resultMatrixGnuPlot0.assign(resultMatrixSignificance0);\n resultMatrixGnuPlot0.toStringRanking();\n ResultMatrixCSV resultMatrixCSV0 = new ResultMatrixCSV(resultMatrixSignificance0);\n int[][] intArray1 = new int[2][3];\n intArray1[0] = intArray0;\n intArray1[1] = null;\n resultMatrixCSV0.setSummary(intArray1, intArray1);\n resultMatrixCSV0.toStringKey();\n resultMatrixCSV0.setRowOrder(intArray0);\n resultMatrixCSV0.getCount(1);\n // Undeclared exception!\n try { \n resultMatrixGnuPlot0.toStringHeader();\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // 0\n //\n verifyException(\"weka.experiment.ResultMatrix\", e);\n }\n }", "title": "" }, { "docid": "031b6f88d6e9e1c7e1d35cb2a70343bb", "score": "0.5693155", "text": "public static void main(String[] args) {\n javaai.ann.output.EquilateralEncoding.load();\n\n Random ran = new Random(0);\n\n int success = 0;\n\n for(int n=0; n < NUM_TESTS; n++) {\n // Pick a species randomly\n int actualIndex = ran.nextInt(ideals.length);\n\n // TODO:\n // 1. Get a random encoding with the actual index.\n // 2. Create a new array of activations perturbed by the tolerance divided by 100.\n // 3. Decode these perturbed activations.\n // 4. If the predicted index equals the actual index, update success count.\n // Get its encoding\n double[] encodings = ideals[actualIndex];\n\n double[] activations = new double[encodings.length];\n\n // Perturb each activation by training error tolerance\n for(int k=0; k < encodings.length; k++) {\n double epsilon = 1 + ran.nextGaussian() * TOLERANCE / 100.;\n\n activations[k] = encodings[k] * epsilon;\n }\n\n int predictedIndex = EquilateralEncoding.eq.decode(activations);\n\n String species1 = species.get(actualIndex);\n String species2 = species.get(predictedIndex);\n String outcome = species1 == species2 ? \"\" : \"MISSED!\";\n\n System.out.println(\n \"actual: \" + species1+asString(encodings) + \" \" +\n \"predicted: \"+species2+asString(activations) + \" \" +\n outcome);\n\n if(species1 == species2)\n success++;\n }\n\n double rate = (double)success / NUM_TESTS;\n\n System.out.printf(\"%d of %d or %4.2f%% tolerance = %5.2f%%\\n\",success, NUM_TESTS, rate, TOLERANCE);\n }", "title": "" }, { "docid": "a24c96a0b90cfd29b23d7f7f40727ccf", "score": "0.56861705", "text": "@Test(timeout = 4000)\n public void test07() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n textDirectoryLoader0.setRetrieval(100000);\n String string0 = evaluation0.toSummaryString();\n EvoSuiteFile evoSuiteFile0 = new EvoSuiteFile(\"/home/ubuntu/evosuite_readability_gen/projects/107_weka\");\n FileSystemHandling.appendLineToFile(evoSuiteFile0, \"@relation\");\n CostMatrix costMatrix0 = new CostMatrix(7);\n evaluation0.recall(0);\n evaluation0.weightedMatthewsCorrelation();\n int[] intArray0 = new int[3];\n intArray0[0] = 0;\n intArray0[1] = 7;\n evaluation0.rootMeanSquaredError();\n evaluation0.pctUnclassified();\n SMOreg sMOreg0 = new SMOreg();\n String string1 = Evaluation.makeOptionString(sMOreg0, false);\n assertFalse(string1.equals((Object)string0));\n }", "title": "" }, { "docid": "5fc54cd7c19ae6534320c94e8d22dfe8", "score": "0.56786317", "text": "@Test(timeout = 4000)\n public void test39() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertNotNull(testInstances0);\n assertEquals(20, testInstances0.getNumInstances());\n assertFalse(testInstances0.getNoClass());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(0, testInstances0.getNumRelationalDate());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(0, testInstances0.getNumDate());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(1, testInstances0.getClassType());\n assertEquals(2, testInstances0.getNumAttributes());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(0, testInstances0.getNumRelationalNumeric());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(0, testInstances0.getNumNumeric());\n assertEquals((-1), testInstances0.getClassIndex());\n \n Instances instances0 = testInstances0.generate(\"Using kernel matrix from file with name: \");\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertNotNull(instances0);\n assertEquals(20, testInstances0.getNumInstances());\n assertFalse(testInstances0.getNoClass());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(0, testInstances0.getNumRelationalDate());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(0, testInstances0.getNumDate());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(1, testInstances0.getClassType());\n assertEquals(2, testInstances0.getNumAttributes());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(0, testInstances0.getNumRelationalNumeric());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(0, testInstances0.getNumNumeric());\n assertEquals((-1), testInstances0.getClassIndex());\n assertFalse(instances0.checkForStringAttributes());\n assertEquals(20, instances0.size());\n assertEquals(2, instances0.numClasses());\n assertEquals(\"Testdata\", instances0.relationName());\n assertEquals(1, instances0.classIndex());\n assertEquals(2, instances0.numAttributes());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertEquals(20, instances0.numInstances());\n \n Evaluation evaluation0 = new Evaluation(instances0);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertNotNull(evaluation0);\n assertEquals(20, testInstances0.getNumInstances());\n assertFalse(testInstances0.getNoClass());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(0, testInstances0.getNumRelationalDate());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(0, testInstances0.getNumDate());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(1, testInstances0.getClassType());\n assertEquals(2, testInstances0.getNumAttributes());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(0, testInstances0.getNumRelationalNumeric());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(0, testInstances0.getNumNumeric());\n assertEquals((-1), testInstances0.getClassIndex());\n assertFalse(instances0.checkForStringAttributes());\n assertEquals(20, instances0.size());\n assertEquals(2, instances0.numClasses());\n assertEquals(\"Testdata\", instances0.relationName());\n assertEquals(1, instances0.classIndex());\n assertEquals(2, instances0.numAttributes());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertEquals(20, instances0.numInstances());\n assertEquals(0.0, evaluation0.totalCost(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanPriorAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.sizeOfPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanAbsoluteError(), 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.errorRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedTruePositiveRate(), 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(0.0, evaluation0.correct(), 0.01);\n assertFalse(evaluation0.getDiscardPredictions());\n assertEquals(Double.NaN, evaluation0.weightedFalseNegativeRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanPriorSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedRecall(), 0.01);\n assertEquals(Double.NaN, evaluation0.relativeAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctUnclassified(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedPrecision(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootRelativeSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanSchemeEntropy(), 0.01);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(Double.NaN, evaluation0.coverageOfTestCasesByPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation0.unweightedMicroFmeasure(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFMeasure(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFalsePositiveRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctIncorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctCorrect(), 0.01);\n assertEquals(1.0, evaluation0.kappa(), 0.01);\n assertEquals(0.0, evaluation0.numInstances(), 0.01);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n assertEquals(0.0, evaluation0.incorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedTrueNegativeRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.avgCost(), 0.01);\n \n String string0 = evaluation0.toSummaryString();\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertEquals(\"\\nTotal Number of Instances 0 \\n\", string0);\n assertNotNull(string0);\n assertEquals(20, testInstances0.getNumInstances());\n assertFalse(testInstances0.getNoClass());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(0, testInstances0.getNumRelationalDate());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(0, testInstances0.getNumDate());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(1, testInstances0.getClassType());\n assertEquals(2, testInstances0.getNumAttributes());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(0, testInstances0.getNumRelationalNumeric());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(0, testInstances0.getNumNumeric());\n assertEquals((-1), testInstances0.getClassIndex());\n assertFalse(instances0.checkForStringAttributes());\n assertEquals(20, instances0.size());\n assertEquals(2, instances0.numClasses());\n assertEquals(\"Testdata\", instances0.relationName());\n assertEquals(1, instances0.classIndex());\n assertEquals(2, instances0.numAttributes());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertEquals(20, instances0.numInstances());\n assertEquals(0.0, evaluation0.totalCost(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanPriorAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.sizeOfPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanAbsoluteError(), 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.errorRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedTruePositiveRate(), 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(0.0, evaluation0.correct(), 0.01);\n assertFalse(evaluation0.getDiscardPredictions());\n assertEquals(Double.NaN, evaluation0.weightedFalseNegativeRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanPriorSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedRecall(), 0.01);\n assertEquals(Double.NaN, evaluation0.relativeAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctUnclassified(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedPrecision(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootRelativeSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanSchemeEntropy(), 0.01);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(Double.NaN, evaluation0.coverageOfTestCasesByPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation0.unweightedMicroFmeasure(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFMeasure(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFalsePositiveRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctIncorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctCorrect(), 0.01);\n assertEquals(1.0, evaluation0.kappa(), 0.01);\n assertEquals(0.0, evaluation0.numInstances(), 0.01);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n assertEquals(0.0, evaluation0.incorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedTrueNegativeRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.avgCost(), 0.01);\n \n double[] doubleArray0 = new double[6];\n doubleArray0[0] = (double) (-1);\n doubleArray0[1] = (double) (-2);\n boolean boolean0 = FileSystemHandling.shouldAllThrowIOExceptions();\n assertTrue(boolean0);\n \n evaluation0.updateNumericScores(doubleArray0, doubleArray0, 300.0);\n assertEquals(6, doubleArray0.length);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertArrayEquals(new double[] {(-1.0), (-2.0), 0.0, 0.0, 0.0, 0.0}, doubleArray0, 0.01);\n assertEquals(20, testInstances0.getNumInstances());\n assertFalse(testInstances0.getNoClass());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(0, testInstances0.getNumRelationalDate());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(0, testInstances0.getNumDate());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(1, testInstances0.getClassType());\n assertEquals(2, testInstances0.getNumAttributes());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(0, testInstances0.getNumRelationalNumeric());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(0, testInstances0.getNumNumeric());\n assertEquals((-1), testInstances0.getClassIndex());\n assertFalse(instances0.checkForStringAttributes());\n assertEquals(20, instances0.size());\n assertEquals(2, instances0.numClasses());\n assertEquals(\"Testdata\", instances0.relationName());\n assertEquals(1, instances0.classIndex());\n assertEquals(2, instances0.numAttributes());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertEquals(20, instances0.numInstances());\n assertEquals(0.0, evaluation0.totalCost(), 0.01);\n assertEquals(Double.NaN, evaluation0.sizeOfPredictedRegions(), 0.01);\n assertEquals(Double.POSITIVE_INFINITY, evaluation0.meanPriorAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanAbsoluteError(), 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.errorRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedTruePositiveRate(), 0.01);\n assertEquals(Double.POSITIVE_INFINITY, evaluation0.rootMeanPriorSquaredError(), 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(0.0, evaluation0.correct(), 0.01);\n assertFalse(evaluation0.getDiscardPredictions());\n assertEquals(Double.NaN, evaluation0.weightedFalseNegativeRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedRecall(), 0.01);\n assertEquals(Double.NaN, evaluation0.relativeAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctUnclassified(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedPrecision(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootRelativeSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanSchemeEntropy(), 0.01);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(Double.NaN, evaluation0.coverageOfTestCasesByPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation0.unweightedMicroFmeasure(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFMeasure(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFalsePositiveRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctIncorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctCorrect(), 0.01);\n assertEquals(1.0, evaluation0.kappa(), 0.01);\n assertEquals(0.0, evaluation0.numInstances(), 0.01);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n assertEquals(0.0, evaluation0.incorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedTrueNegativeRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.avgCost(), 0.01);\n \n double double0 = evaluation0.m_TotalCost;\n assertEquals(0.0, double0, 0.01);\n \n Evaluation evaluation1 = new Evaluation(instances0);\n assertTrue(evaluation1.equals((Object)evaluation0));\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertNotNull(evaluation1);\n assertEquals(20, testInstances0.getNumInstances());\n assertFalse(testInstances0.getNoClass());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(0, testInstances0.getNumRelationalDate());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(0, testInstances0.getNumDate());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(1, testInstances0.getClassType());\n assertEquals(2, testInstances0.getNumAttributes());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(0, testInstances0.getNumRelationalNumeric());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(0, testInstances0.getNumNumeric());\n assertEquals((-1), testInstances0.getClassIndex());\n assertFalse(instances0.checkForStringAttributes());\n assertEquals(20, instances0.size());\n assertEquals(2, instances0.numClasses());\n assertEquals(\"Testdata\", instances0.relationName());\n assertEquals(1, instances0.classIndex());\n assertEquals(2, instances0.numAttributes());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertEquals(20, instances0.numInstances());\n assertEquals(Double.NaN, evaluation1.errorRate(), 0.01);\n assertEquals(Double.NaN, evaluation1.weightedTruePositiveRate(), 0.01);\n assertEquals(Double.NaN, evaluation1.sizeOfPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation1.weightedPrecision(), 0.01);\n assertEquals(1.0, evaluation1.kappa(), 0.01);\n assertEquals(0.0, evaluation1.incorrect(), 0.01);\n assertEquals(Double.NaN, evaluation1.weightedFalsePositiveRate(), 0.01);\n assertEquals(Double.NaN, evaluation1.pctUnclassified(), 0.01);\n assertEquals(Double.NaN, evaluation1.pctIncorrect(), 0.01);\n assertEquals(Double.NaN, evaluation1.SFMeanPriorEntropy(), 0.01);\n assertEquals(0.0, evaluation1.unclassified(), 0.01);\n assertEquals(Double.NaN, evaluation1.weightedTrueNegativeRate(), 0.01);\n assertEquals(Double.NaN, evaluation1.avgCost(), 0.01);\n assertEquals(Double.NaN, evaluation1.SFMeanSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation1.unweightedMicroFmeasure(), 0.01);\n assertEquals(Double.NaN, evaluation1.pctCorrect(), 0.01);\n assertEquals(0.0, evaluation1.SFSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation1.weightedFMeasure(), 0.01);\n assertEquals(0.0, evaluation1.numInstances(), 0.01);\n assertEquals(Double.NaN, evaluation1.coverageOfTestCasesByPredictedRegions(), 0.01);\n assertEquals(0.0, evaluation1.SFPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation1.rootMeanPriorSquaredError(), 0.01);\n assertEquals(0.0, evaluation1.correct(), 0.01);\n assertFalse(evaluation1.getDiscardPredictions());\n assertEquals(Double.NaN, evaluation1.rootRelativeSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation1.SFMeanEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation1.meanPriorAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation1.relativeAbsoluteError(), 0.01);\n assertEquals(0.0, evaluation1.totalCost(), 0.01);\n assertEquals(Double.NaN, evaluation1.rootMeanSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation1.weightedRecall(), 0.01);\n assertEquals(Double.NaN, evaluation1.meanAbsoluteError(), 0.01);\n assertEquals(0.0, evaluation1.SFEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation1.weightedFalseNegativeRate(), 0.01);\n \n double double1 = evaluation1.SFSchemeEntropy();\n assertTrue(evaluation1.equals((Object)evaluation0));\n assertEquals(double1, double0, 0.01);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertEquals(0.0, double1, 0.01);\n assertNotSame(evaluation1, evaluation0);\n assertEquals(20, testInstances0.getNumInstances());\n assertFalse(testInstances0.getNoClass());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(0, testInstances0.getNumRelationalDate());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(0, testInstances0.getNumDate());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(1, testInstances0.getClassType());\n assertEquals(2, testInstances0.getNumAttributes());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(0, testInstances0.getNumRelationalNumeric());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(0, testInstances0.getNumNumeric());\n assertEquals((-1), testInstances0.getClassIndex());\n assertFalse(instances0.checkForStringAttributes());\n assertEquals(20, instances0.size());\n assertEquals(2, instances0.numClasses());\n assertEquals(\"Testdata\", instances0.relationName());\n assertEquals(1, instances0.classIndex());\n assertEquals(2, instances0.numAttributes());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertEquals(20, instances0.numInstances());\n assertEquals(Double.NaN, evaluation1.errorRate(), 0.01);\n assertEquals(Double.NaN, evaluation1.weightedTruePositiveRate(), 0.01);\n assertEquals(Double.NaN, evaluation1.sizeOfPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation1.weightedPrecision(), 0.01);\n assertEquals(1.0, evaluation1.kappa(), 0.01);\n assertEquals(0.0, evaluation1.incorrect(), 0.01);\n assertEquals(Double.NaN, evaluation1.weightedFalsePositiveRate(), 0.01);\n assertEquals(Double.NaN, evaluation1.pctUnclassified(), 0.01);\n assertEquals(Double.NaN, evaluation1.pctIncorrect(), 0.01);\n assertEquals(Double.NaN, evaluation1.SFMeanPriorEntropy(), 0.01);\n assertEquals(0.0, evaluation1.unclassified(), 0.01);\n assertEquals(Double.NaN, evaluation1.weightedTrueNegativeRate(), 0.01);\n assertEquals(Double.NaN, evaluation1.avgCost(), 0.01);\n assertEquals(Double.NaN, evaluation1.SFMeanSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation1.unweightedMicroFmeasure(), 0.01);\n assertEquals(Double.NaN, evaluation1.pctCorrect(), 0.01);\n assertEquals(0.0, evaluation1.SFSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation1.weightedFMeasure(), 0.01);\n assertEquals(0.0, evaluation1.numInstances(), 0.01);\n assertEquals(Double.NaN, evaluation1.coverageOfTestCasesByPredictedRegions(), 0.01);\n assertEquals(0.0, evaluation1.SFPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation1.rootMeanPriorSquaredError(), 0.01);\n assertEquals(0.0, evaluation1.correct(), 0.01);\n assertFalse(evaluation1.getDiscardPredictions());\n assertEquals(Double.NaN, evaluation1.rootRelativeSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation1.SFMeanEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation1.meanPriorAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation1.relativeAbsoluteError(), 0.01);\n assertEquals(0.0, evaluation1.totalCost(), 0.01);\n assertEquals(Double.NaN, evaluation1.rootMeanSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation1.weightedRecall(), 0.01);\n assertEquals(Double.NaN, evaluation1.meanAbsoluteError(), 0.01);\n assertEquals(0.0, evaluation1.SFEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation1.weightedFalseNegativeRate(), 0.01);\n \n Evaluation evaluation2 = new Evaluation(instances0, (CostMatrix) null);\n assertTrue(evaluation2.equals((Object)evaluation1));\n assertTrue(evaluation2.equals((Object)evaluation0));\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertNotNull(evaluation2);\n assertEquals(20, testInstances0.getNumInstances());\n assertFalse(testInstances0.getNoClass());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(0, testInstances0.getNumRelationalDate());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(0, testInstances0.getNumDate());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(1, testInstances0.getClassType());\n assertEquals(2, testInstances0.getNumAttributes());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(0, testInstances0.getNumRelationalNumeric());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(0, testInstances0.getNumNumeric());\n assertEquals((-1), testInstances0.getClassIndex());\n assertFalse(instances0.checkForStringAttributes());\n assertEquals(20, instances0.size());\n assertEquals(2, instances0.numClasses());\n assertEquals(\"Testdata\", instances0.relationName());\n assertEquals(1, instances0.classIndex());\n assertEquals(2, instances0.numAttributes());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertEquals(20, instances0.numInstances());\n assertEquals(Double.NaN, evaluation2.rootMeanPriorSquaredError(), 0.01);\n assertEquals(0.0, evaluation2.SFEntropyGain(), 0.01);\n assertFalse(evaluation2.getDiscardPredictions());\n assertEquals(Double.NaN, evaluation2.SFMeanEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation2.rootRelativeSquaredError(), 0.01);\n assertEquals(0.0, evaluation2.correct(), 0.01);\n assertEquals(0.0, evaluation2.unclassified(), 0.01);\n assertEquals(Double.NaN, evaluation2.weightedFalseNegativeRate(), 0.01);\n assertEquals(0.0, evaluation2.SFPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation2.unweightedMicroFmeasure(), 0.01);\n assertEquals(Double.NaN, evaluation2.SFMeanSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation2.pctUnclassified(), 0.01);\n assertEquals(Double.NaN, evaluation2.weightedRecall(), 0.01);\n assertEquals(Double.NaN, evaluation2.rootMeanSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation2.relativeAbsoluteError(), 0.01);\n assertEquals(0.0, evaluation2.incorrect(), 0.01);\n assertEquals(Double.NaN, evaluation2.sizeOfPredictedRegions(), 0.01);\n assertEquals(1.0, evaluation2.kappa(), 0.01);\n assertEquals(Double.NaN, evaluation2.errorRate(), 0.01);\n assertEquals(Double.NaN, evaluation2.weightedFalsePositiveRate(), 0.01);\n assertEquals(Double.NaN, evaluation2.meanPriorAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation2.weightedTruePositiveRate(), 0.01);\n assertEquals(0.0, evaluation2.totalCost(), 0.01);\n assertEquals(Double.NaN, evaluation2.meanAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation2.avgCost(), 0.01);\n assertEquals(0.0, evaluation2.numInstances(), 0.01);\n assertEquals(Double.NaN, evaluation2.weightedPrecision(), 0.01);\n assertEquals(Double.NaN, evaluation2.pctCorrect(), 0.01);\n assertEquals(0.0, evaluation2.SFSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation2.weightedFMeasure(), 0.01);\n assertEquals(Double.NaN, evaluation2.pctIncorrect(), 0.01);\n assertEquals(Double.NaN, evaluation2.SFMeanPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation2.coverageOfTestCasesByPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation2.weightedTrueNegativeRate(), 0.01);\n \n double double2 = evaluation2.weightedAreaUnderROC();\n assertTrue(evaluation2.equals((Object)evaluation1));\n assertTrue(evaluation2.equals((Object)evaluation0));\n assertNotEquals(double2, double1, 0.01);\n assertNotEquals(double2, double0, 0.01);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertEquals(Double.NaN, double2, 0.01);\n assertNotSame(evaluation2, evaluation0);\n assertNotSame(evaluation2, evaluation1);\n assertEquals(20, testInstances0.getNumInstances());\n assertFalse(testInstances0.getNoClass());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(0, testInstances0.getNumRelationalDate());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(0, testInstances0.getNumDate());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(1, testInstances0.getClassType());\n assertEquals(2, testInstances0.getNumAttributes());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(0, testInstances0.getNumRelationalNumeric());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(0, testInstances0.getNumNumeric());\n assertEquals((-1), testInstances0.getClassIndex());\n assertFalse(instances0.checkForStringAttributes());\n assertEquals(20, instances0.size());\n assertEquals(2, instances0.numClasses());\n assertEquals(\"Testdata\", instances0.relationName());\n assertEquals(1, instances0.classIndex());\n assertEquals(2, instances0.numAttributes());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertEquals(20, instances0.numInstances());\n assertEquals(Double.NaN, evaluation2.rootMeanPriorSquaredError(), 0.01);\n assertEquals(0.0, evaluation2.SFEntropyGain(), 0.01);\n assertFalse(evaluation2.getDiscardPredictions());\n assertEquals(Double.NaN, evaluation2.SFMeanEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation2.rootRelativeSquaredError(), 0.01);\n assertEquals(0.0, evaluation2.correct(), 0.01);\n assertEquals(0.0, evaluation2.unclassified(), 0.01);\n assertEquals(Double.NaN, evaluation2.weightedFalseNegativeRate(), 0.01);\n assertEquals(0.0, evaluation2.SFPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation2.unweightedMicroFmeasure(), 0.01);\n assertEquals(Double.NaN, evaluation2.SFMeanSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation2.pctUnclassified(), 0.01);\n assertEquals(Double.NaN, evaluation2.weightedRecall(), 0.01);\n assertEquals(Double.NaN, evaluation2.rootMeanSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation2.relativeAbsoluteError(), 0.01);\n assertEquals(0.0, evaluation2.incorrect(), 0.01);\n assertEquals(Double.NaN, evaluation2.sizeOfPredictedRegions(), 0.01);\n assertEquals(1.0, evaluation2.kappa(), 0.01);\n assertEquals(Double.NaN, evaluation2.errorRate(), 0.01);\n assertEquals(Double.NaN, evaluation2.weightedFalsePositiveRate(), 0.01);\n assertEquals(Double.NaN, evaluation2.meanPriorAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation2.weightedTruePositiveRate(), 0.01);\n assertEquals(0.0, evaluation2.totalCost(), 0.01);\n assertEquals(Double.NaN, evaluation2.meanAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation2.avgCost(), 0.01);\n assertEquals(0.0, evaluation2.numInstances(), 0.01);\n assertEquals(Double.NaN, evaluation2.weightedPrecision(), 0.01);\n assertEquals(Double.NaN, evaluation2.pctCorrect(), 0.01);\n assertEquals(0.0, evaluation2.SFSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation2.weightedFMeasure(), 0.01);\n assertEquals(Double.NaN, evaluation2.pctIncorrect(), 0.01);\n assertEquals(Double.NaN, evaluation2.SFMeanPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation2.coverageOfTestCasesByPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation2.weightedTrueNegativeRate(), 0.01);\n \n double double3 = evaluation2.pctIncorrect();\n assertTrue(evaluation2.equals((Object)evaluation1));\n assertTrue(evaluation2.equals((Object)evaluation0));\n assertEquals(double3, double2, 0.01);\n assertNotEquals(double3, double0, 0.01);\n assertNotEquals(double3, double1, 0.01);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertEquals(Double.NaN, double3, 0.01);\n assertNotSame(evaluation2, evaluation0);\n assertNotSame(evaluation2, evaluation1);\n assertEquals(20, testInstances0.getNumInstances());\n assertFalse(testInstances0.getNoClass());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(0, testInstances0.getNumRelationalDate());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(0, testInstances0.getNumDate());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(1, testInstances0.getClassType());\n assertEquals(2, testInstances0.getNumAttributes());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(0, testInstances0.getNumRelationalNumeric());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(0, testInstances0.getNumNumeric());\n assertEquals((-1), testInstances0.getClassIndex());\n assertFalse(instances0.checkForStringAttributes());\n assertEquals(20, instances0.size());\n assertEquals(2, instances0.numClasses());\n assertEquals(\"Testdata\", instances0.relationName());\n assertEquals(1, instances0.classIndex());\n assertEquals(2, instances0.numAttributes());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertEquals(20, instances0.numInstances());\n assertEquals(Double.NaN, evaluation2.rootMeanPriorSquaredError(), 0.01);\n assertEquals(0.0, evaluation2.SFEntropyGain(), 0.01);\n assertFalse(evaluation2.getDiscardPredictions());\n assertEquals(Double.NaN, evaluation2.SFMeanEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation2.rootRelativeSquaredError(), 0.01);\n assertEquals(0.0, evaluation2.correct(), 0.01);\n assertEquals(0.0, evaluation2.unclassified(), 0.01);\n assertEquals(Double.NaN, evaluation2.weightedFalseNegativeRate(), 0.01);\n assertEquals(0.0, evaluation2.SFPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation2.unweightedMicroFmeasure(), 0.01);\n assertEquals(Double.NaN, evaluation2.SFMeanSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation2.pctUnclassified(), 0.01);\n assertEquals(Double.NaN, evaluation2.weightedRecall(), 0.01);\n assertEquals(Double.NaN, evaluation2.rootMeanSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation2.relativeAbsoluteError(), 0.01);\n assertEquals(0.0, evaluation2.incorrect(), 0.01);\n assertEquals(Double.NaN, evaluation2.sizeOfPredictedRegions(), 0.01);\n assertEquals(1.0, evaluation2.kappa(), 0.01);\n assertEquals(Double.NaN, evaluation2.errorRate(), 0.01);\n assertEquals(Double.NaN, evaluation2.weightedFalsePositiveRate(), 0.01);\n assertEquals(Double.NaN, evaluation2.meanPriorAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation2.weightedTruePositiveRate(), 0.01);\n assertEquals(0.0, evaluation2.totalCost(), 0.01);\n assertEquals(Double.NaN, evaluation2.meanAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation2.avgCost(), 0.01);\n assertEquals(0.0, evaluation2.numInstances(), 0.01);\n assertEquals(Double.NaN, evaluation2.weightedPrecision(), 0.01);\n assertEquals(Double.NaN, evaluation2.pctCorrect(), 0.01);\n assertEquals(0.0, evaluation2.SFSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation2.weightedFMeasure(), 0.01);\n assertEquals(Double.NaN, evaluation2.pctIncorrect(), 0.01);\n assertEquals(Double.NaN, evaluation2.SFMeanPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation2.coverageOfTestCasesByPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation2.weightedTrueNegativeRate(), 0.01);\n \n double double4 = evaluation0.KBRelativeInformation();\n assertTrue(evaluation0.equals((Object)evaluation2));\n assertTrue(evaluation0.equals((Object)evaluation1));\n assertEquals(double4, double0, 0.01);\n assertEquals(double4, double1, 0.01);\n assertNotEquals(double4, double3, 0.01);\n assertNotEquals(double4, double2, 0.01);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertEquals(0.0, double4, 0.01);\n assertNotSame(evaluation0, evaluation1);\n assertNotSame(evaluation0, evaluation2);\n assertEquals(20, testInstances0.getNumInstances());\n assertFalse(testInstances0.getNoClass());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(0, testInstances0.getNumRelationalDate());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(0, testInstances0.getNumDate());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(1, testInstances0.getClassType());\n assertEquals(2, testInstances0.getNumAttributes());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(0, testInstances0.getNumRelationalNumeric());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(0, testInstances0.getNumNumeric());\n assertEquals((-1), testInstances0.getClassIndex());\n assertFalse(instances0.checkForStringAttributes());\n assertEquals(20, instances0.size());\n assertEquals(2, instances0.numClasses());\n assertEquals(\"Testdata\", instances0.relationName());\n assertEquals(1, instances0.classIndex());\n assertEquals(2, instances0.numAttributes());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertEquals(20, instances0.numInstances());\n assertEquals(0.0, evaluation0.totalCost(), 0.01);\n assertEquals(Double.NaN, evaluation0.sizeOfPredictedRegions(), 0.01);\n assertEquals(Double.POSITIVE_INFINITY, evaluation0.meanPriorAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanAbsoluteError(), 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.errorRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedTruePositiveRate(), 0.01);\n assertEquals(Double.POSITIVE_INFINITY, evaluation0.rootMeanPriorSquaredError(), 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(0.0, evaluation0.correct(), 0.01);\n assertFalse(evaluation0.getDiscardPredictions());\n assertEquals(Double.NaN, evaluation0.weightedFalseNegativeRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedRecall(), 0.01);\n assertEquals(Double.NaN, evaluation0.relativeAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctUnclassified(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedPrecision(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootRelativeSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanSchemeEntropy(), 0.01);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(Double.NaN, evaluation0.coverageOfTestCasesByPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation0.unweightedMicroFmeasure(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFMeasure(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFalsePositiveRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctIncorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctCorrect(), 0.01);\n assertEquals(1.0, evaluation0.kappa(), 0.01);\n assertEquals(0.0, evaluation0.numInstances(), 0.01);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n assertEquals(0.0, evaluation0.incorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedTrueNegativeRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.avgCost(), 0.01);\n \n char[] charArray0 = new char[3];\n charArray0[0] = 'r';\n charArray0[1] = 'G';\n charArray0[2] = '\\u0084';\n String string1 = evaluation1.num2ShortID(13, charArray0, 17);\n assertEquals(3, charArray0.length);\n assertFalse(string1.equals((Object)string0));\n assertTrue(evaluation1.equals((Object)evaluation0));\n assertTrue(evaluation1.equals((Object)evaluation2));\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertEquals(\" rrG\", string1);\n assertNotNull(string1);\n assertNotSame(evaluation1, evaluation2);\n assertNotSame(evaluation1, evaluation0);\n assertArrayEquals(new char[] {'r', 'G', '\\u0084'}, charArray0);\n assertEquals(20, testInstances0.getNumInstances());\n assertFalse(testInstances0.getNoClass());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(0, testInstances0.getNumRelationalDate());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(0, testInstances0.getNumDate());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(1, testInstances0.getClassType());\n assertEquals(2, testInstances0.getNumAttributes());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(0, testInstances0.getNumRelationalNumeric());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(0, testInstances0.getNumNumeric());\n assertEquals((-1), testInstances0.getClassIndex());\n assertFalse(instances0.checkForStringAttributes());\n assertEquals(20, instances0.size());\n assertEquals(2, instances0.numClasses());\n assertEquals(\"Testdata\", instances0.relationName());\n assertEquals(1, instances0.classIndex());\n assertEquals(2, instances0.numAttributes());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertEquals(20, instances0.numInstances());\n assertEquals(Double.NaN, evaluation1.errorRate(), 0.01);\n assertEquals(Double.NaN, evaluation1.weightedTruePositiveRate(), 0.01);\n assertEquals(Double.NaN, evaluation1.sizeOfPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation1.weightedPrecision(), 0.01);\n assertEquals(1.0, evaluation1.kappa(), 0.01);\n assertEquals(0.0, evaluation1.incorrect(), 0.01);\n assertEquals(Double.NaN, evaluation1.weightedFalsePositiveRate(), 0.01);\n assertEquals(Double.NaN, evaluation1.pctUnclassified(), 0.01);\n assertEquals(Double.NaN, evaluation1.pctIncorrect(), 0.01);\n assertEquals(Double.NaN, evaluation1.SFMeanPriorEntropy(), 0.01);\n assertEquals(0.0, evaluation1.unclassified(), 0.01);\n assertEquals(Double.NaN, evaluation1.weightedTrueNegativeRate(), 0.01);\n assertEquals(Double.NaN, evaluation1.avgCost(), 0.01);\n assertEquals(Double.NaN, evaluation1.SFMeanSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation1.unweightedMicroFmeasure(), 0.01);\n assertEquals(Double.NaN, evaluation1.pctCorrect(), 0.01);\n assertEquals(0.0, evaluation1.SFSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation1.weightedFMeasure(), 0.01);\n assertEquals(0.0, evaluation1.numInstances(), 0.01);\n assertEquals(Double.NaN, evaluation1.coverageOfTestCasesByPredictedRegions(), 0.01);\n assertEquals(0.0, evaluation1.SFPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation1.rootMeanPriorSquaredError(), 0.01);\n assertEquals(0.0, evaluation1.correct(), 0.01);\n assertFalse(evaluation1.getDiscardPredictions());\n assertEquals(Double.NaN, evaluation1.rootRelativeSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation1.SFMeanEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation1.meanPriorAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation1.relativeAbsoluteError(), 0.01);\n assertEquals(0.0, evaluation1.totalCost(), 0.01);\n assertEquals(Double.NaN, evaluation1.rootMeanSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation1.weightedRecall(), 0.01);\n assertEquals(Double.NaN, evaluation1.meanAbsoluteError(), 0.01);\n assertEquals(0.0, evaluation1.SFEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation1.weightedFalseNegativeRate(), 0.01);\n }", "title": "" }, { "docid": "01c9dd853c8f82c63948ece2b986256e", "score": "0.56587577", "text": "@Test(timeout = 4000)\n public void test40() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n assertEquals((-2), TestInstances.NO_CLASS);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertNotNull(testInstances0);\n assertEquals(20, testInstances0.getNumInstances());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertEquals(0, testInstances0.getNumRelationalDate());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(0, testInstances0.getNumNumeric());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(1, testInstances0.getClassType());\n assertEquals(1, testInstances0.getSeed());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(0, testInstances0.getNumRelationalNumeric());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(0, testInstances0.getNumDate());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(2, testInstances0.getNumAttributes());\n assertEquals(0, testInstances0.getNumRelational());\n assertFalse(testInstances0.getNoClass());\n assertEquals(2, testInstances0.getNumClasses());\n \n Instances instances0 = testInstances0.generate(\"Using kernel matrix from file with name: \");\n assertEquals((-2), TestInstances.NO_CLASS);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertNotNull(instances0);\n assertEquals(20, testInstances0.getNumInstances());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertEquals(0, testInstances0.getNumRelationalDate());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(0, testInstances0.getNumNumeric());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(1, testInstances0.getClassType());\n assertEquals(1, testInstances0.getSeed());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(0, testInstances0.getNumRelationalNumeric());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(0, testInstances0.getNumDate());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(2, testInstances0.getNumAttributes());\n assertEquals(0, testInstances0.getNumRelational());\n assertFalse(testInstances0.getNoClass());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertEquals(1, instances0.classIndex());\n assertEquals(20, instances0.numInstances());\n assertEquals(\"Testdata\", instances0.relationName());\n assertFalse(instances0.checkForStringAttributes());\n assertEquals(20, instances0.size());\n assertEquals(2, instances0.numClasses());\n assertEquals(2, instances0.numAttributes());\n \n EvoSuiteFile evoSuiteFile0 = new EvoSuiteFile(\"/home/ubuntu/wekafiles\");\n boolean boolean0 = FileSystemHandling.appendStringToFile(evoSuiteFile0, \"+HgP:6|49H\");\n assertTrue(boolean0);\n \n DatabaseLoader databaseLoader0 = new DatabaseLoader();\n assertNotNull(databaseLoader0);\n assertEquals(\"Encode data as sparse instances.\", databaseLoader0.sparseDataTipText());\n assertEquals(\"The user name for the database\", databaseLoader0.userTipText());\n assertEquals(\"The database password\", databaseLoader0.passwordTipText());\n assertEquals(\"jdbc:idb=experiments.prp\", databaseLoader0.getUrl());\n assertEquals(\"For incremental loading a unique identiefer has to be specified.\\nIf the query includes all columns of a table (SELECT *...) a primary key\\ncan be detected automatically depending on the JDBC driver. If that is not possible\\nspecify the key columns here in a comma separated list.\", databaseLoader0.keysTipText());\n assertEquals(\"\", databaseLoader0.getPassword());\n assertEquals(\"Select * from Results0\", databaseLoader0.getQuery());\n assertEquals(\"\", databaseLoader0.getUser());\n assertEquals(\"The custom properties that the user can use to override the default ones.\", databaseLoader0.customPropsFileTipText());\n assertFalse(databaseLoader0.getSparseData());\n assertEquals(\"The query that should load the instances.\\n The query has to be of the form SELECT <column-list>|* FROM <table> [WHERE <conditions>]\", databaseLoader0.queryTipText());\n assertEquals(\"The URL of the database\", databaseLoader0.urlTipText());\n \n EvoSuiteFile evoSuiteFile1 = new EvoSuiteFile(\"/home/ubuntu/wekafiles/props/DatabaseUtils.props\");\n boolean boolean1 = FileSystemHandling.setPermissions(evoSuiteFile1, false, false, true);\n assertFalse(evoSuiteFile1.equals((Object)evoSuiteFile0));\n assertFalse(boolean1 == boolean0);\n assertFalse(boolean1);\n assertNotSame(evoSuiteFile1, evoSuiteFile0);\n \n Evaluation evaluation0 = new Evaluation(instances0);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertNotNull(evaluation0);\n assertEquals(20, testInstances0.getNumInstances());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertEquals(0, testInstances0.getNumRelationalDate());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(0, testInstances0.getNumNumeric());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(1, testInstances0.getClassType());\n assertEquals(1, testInstances0.getSeed());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(0, testInstances0.getNumRelationalNumeric());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(0, testInstances0.getNumDate());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(2, testInstances0.getNumAttributes());\n assertEquals(0, testInstances0.getNumRelational());\n assertFalse(testInstances0.getNoClass());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertEquals(1, instances0.classIndex());\n assertEquals(20, instances0.numInstances());\n assertEquals(\"Testdata\", instances0.relationName());\n assertFalse(instances0.checkForStringAttributes());\n assertEquals(20, instances0.size());\n assertEquals(2, instances0.numClasses());\n assertEquals(2, instances0.numAttributes());\n assertEquals(Double.NaN, evaluation0.coverageOfTestCasesByPredictedRegions(), 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFMeasure(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctCorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.unweightedMicroFmeasure(), 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFalseNegativeRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanPriorSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.relativeAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanPriorAbsoluteError(), 0.01);\n assertEquals(0.0, evaluation0.totalCost(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedTrueNegativeRate(), 0.01);\n assertEquals(1.0, evaluation0.kappa(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedPrecision(), 0.01);\n assertEquals(Double.NaN, evaluation0.errorRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctIncorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFalsePositiveRate(), 0.01);\n assertEquals(0.0, evaluation0.incorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedRecall(), 0.01);\n assertEquals(Double.NaN, evaluation0.avgCost(), 0.01);\n assertEquals(0.0, evaluation0.numInstances(), 0.01);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctUnclassified(), 0.01);\n assertFalse(evaluation0.getDiscardPredictions());\n assertEquals(0.0, evaluation0.correct(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedTruePositiveRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.sizeOfPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootRelativeSquaredError(), 0.01);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n \n double double0 = evaluation0.weightedMatthewsCorrelation();\n assertEquals((-2), TestInstances.NO_CLASS);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(20, testInstances0.getNumInstances());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertEquals(0, testInstances0.getNumRelationalDate());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(0, testInstances0.getNumNumeric());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(1, testInstances0.getClassType());\n assertEquals(1, testInstances0.getSeed());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(0, testInstances0.getNumRelationalNumeric());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(0, testInstances0.getNumDate());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(2, testInstances0.getNumAttributes());\n assertEquals(0, testInstances0.getNumRelational());\n assertFalse(testInstances0.getNoClass());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertEquals(1, instances0.classIndex());\n assertEquals(20, instances0.numInstances());\n assertEquals(\"Testdata\", instances0.relationName());\n assertFalse(instances0.checkForStringAttributes());\n assertEquals(20, instances0.size());\n assertEquals(2, instances0.numClasses());\n assertEquals(2, instances0.numAttributes());\n assertEquals(Double.NaN, evaluation0.coverageOfTestCasesByPredictedRegions(), 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFMeasure(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctCorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.unweightedMicroFmeasure(), 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFalseNegativeRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanPriorSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.relativeAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanPriorAbsoluteError(), 0.01);\n assertEquals(0.0, evaluation0.totalCost(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedTrueNegativeRate(), 0.01);\n assertEquals(1.0, evaluation0.kappa(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedPrecision(), 0.01);\n assertEquals(Double.NaN, evaluation0.errorRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctIncorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFalsePositiveRate(), 0.01);\n assertEquals(0.0, evaluation0.incorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedRecall(), 0.01);\n assertEquals(Double.NaN, evaluation0.avgCost(), 0.01);\n assertEquals(0.0, evaluation0.numInstances(), 0.01);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctUnclassified(), 0.01);\n assertFalse(evaluation0.getDiscardPredictions());\n assertEquals(0.0, evaluation0.correct(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedTruePositiveRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.sizeOfPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootRelativeSquaredError(), 0.01);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n \n double double1 = evaluation0.unweightedMacroFmeasure();\n assertEquals(double1, double0, 0.01);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals(Double.NaN, double1, 0.01);\n assertEquals(20, testInstances0.getNumInstances());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertEquals(0, testInstances0.getNumRelationalDate());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(0, testInstances0.getNumNumeric());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(1, testInstances0.getClassType());\n assertEquals(1, testInstances0.getSeed());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(0, testInstances0.getNumRelationalNumeric());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(0, testInstances0.getNumDate());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(2, testInstances0.getNumAttributes());\n assertEquals(0, testInstances0.getNumRelational());\n assertFalse(testInstances0.getNoClass());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertEquals(1, instances0.classIndex());\n assertEquals(20, instances0.numInstances());\n assertEquals(\"Testdata\", instances0.relationName());\n assertFalse(instances0.checkForStringAttributes());\n assertEquals(20, instances0.size());\n assertEquals(2, instances0.numClasses());\n assertEquals(2, instances0.numAttributes());\n assertEquals(Double.NaN, evaluation0.coverageOfTestCasesByPredictedRegions(), 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFMeasure(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctCorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.unweightedMicroFmeasure(), 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFalseNegativeRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanPriorSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.relativeAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanPriorAbsoluteError(), 0.01);\n assertEquals(0.0, evaluation0.totalCost(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedTrueNegativeRate(), 0.01);\n assertEquals(1.0, evaluation0.kappa(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedPrecision(), 0.01);\n assertEquals(Double.NaN, evaluation0.errorRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctIncorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedFalsePositiveRate(), 0.01);\n assertEquals(0.0, evaluation0.incorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedRecall(), 0.01);\n assertEquals(Double.NaN, evaluation0.avgCost(), 0.01);\n assertEquals(0.0, evaluation0.numInstances(), 0.01);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctUnclassified(), 0.01);\n assertFalse(evaluation0.getDiscardPredictions());\n assertEquals(0.0, evaluation0.correct(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.weightedTruePositiveRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.sizeOfPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootRelativeSquaredError(), 0.01);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n }", "title": "" }, { "docid": "562ddf750d72ab5170622e5cb85180ba", "score": "0.565123", "text": "public void doTest(){\r\n\r\n\t\tint draws;\r\n\t\tint effectiveSamples;\r\n\t\t\r\n\t\tif(!dataReady){\t\t\r\n\t\t\tSystem.out.println(\"Data is not ready\");\r\n\t\t\treturn;\t\r\n\t\t}\r\n\t\t\r\n\t\t//compute K statistics\r\n\t\t\t\t\r\n\t\tK=0;\r\n\t\tK2=0;\r\n\t\tdraws=0;\r\n\t\t\r\n\t\tfor(int i=0;i<sequence.size();i++){\r\n\t\t\tif(sequence.get(i)>0){\r\n\t\t\t\tK++;\r\n\t\t\t}\r\n\t\t\tif(sequence.get(i)<0){\r\n\t\t\t\tK2++;\r\n\t\t\t}\r\n\t\t\tif(sequence.get(i)==0){\r\n\t\t\t\tdraws++;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\t\t\r\n\t\t//compute p-values\r\n\t\t\r\n\t\teffectiveSamples=sequence.size()-draws;\r\n\t\tbinomial.setN(effectiveSamples);\r\n\t\t\r\n\t\texactLeftTail=binomial.computeCumulativeProbability(effectiveSamples-K2);\r\n\t\texactRightTail=binomial.computeCumulativeProbability(effectiveSamples-K);\r\n\t\texactDoubleTail=Math.min(Math.min(exactLeftTail,exactRightTail)*2.0,1.0);\r\n\t\t\t\t\t\t\t\r\n\t\t//asymptotic p-values\r\n\t\tdouble numerator, denominator;\r\n\t\t\r\n\t\tdenominator=0.5*Math.sqrt(effectiveSamples);\r\n\t\t\r\n\t\tnumerator=((double)K-(0.5*effectiveSamples)+0.5);\r\n\r\n\t\tasymptoticLeftTail=normal.getTipifiedProbability(numerator/denominator, false);\r\n\r\n\t\tnumerator=((double)K-(0.5*effectiveSamples)-0.5);\r\n\t\tasymptoticRightTail=1.0-normal.getTipifiedProbability(numerator/denominator, false);\r\n\t\t\r\n\t\tasymptoticDoubleTail=Math.min(Math.min(asymptoticLeftTail,asymptoticRightTail)*2.0,1.0);\r\n\t\t\r\n\t\tperformed=true;\r\n\r\n\t}", "title": "" }, { "docid": "a85a64db26c488fa3f077d83c4294b8c", "score": "0.56483305", "text": "@Test(timeout = 4000)\n public void test060() throws Throwable {\n ResultMatrixSignificance resultMatrixSignificance0 = new ResultMatrixSignificance();\n int[] intArray0 = new int[0];\n resultMatrixSignificance0.m_ColOrder = intArray0;\n resultMatrixSignificance0.removeFilterName(\"+OnooqKiKr}\\\"\");\n resultMatrixSignificance0.setStdDevWidth((-1138));\n resultMatrixSignificance0.m_PrintColNames = false;\n resultMatrixSignificance0.m_RowNameWidth = (-1138);\n resultMatrixSignificance0.m_MeanPrec = 1817;\n resultMatrixSignificance0.setPrintColNames(true);\n ResultMatrixGnuPlot resultMatrixGnuPlot0 = new ResultMatrixGnuPlot(resultMatrixSignificance0);\n resultMatrixSignificance0.setCountWidth(670);\n resultMatrixGnuPlot0.toStringMatrix();\n resultMatrixGnuPlot0.m_CountWidth = 0;\n resultMatrixGnuPlot0.getColName(26);\n int[] intArray1 = new int[1];\n intArray1[0] = 1;\n resultMatrixGnuPlot0.m_RankingLosses = intArray1;\n resultMatrixGnuPlot0.getShowStdDev();\n resultMatrixGnuPlot0.getDefaultPrintRowNames();\n resultMatrixGnuPlot0.getDisplayName();\n resultMatrixGnuPlot0.toStringSummary();\n resultMatrixSignificance0.stdDevWidthTipText();\n assertEquals((-1138), resultMatrixSignificance0.getRowNameWidth());\n }", "title": "" }, { "docid": "01d4463df525b9d31160f76ead64826a", "score": "0.564816", "text": "double getLogProbabilityOfEstimate();", "title": "" }, { "docid": "602fc611f508ef1c2c23499c17759e83", "score": "0.56428814", "text": "@Test\n void main() {\n N = 64;\n logN = 6; // its log, manually\n\n // Set the curve base points\n G = Curve25519Point.G;\n H = Curve25519Point.hashToPoint(G);\n Gi = new Curve25519Point[N];\n Hi = new Curve25519Point[N];\n for (int i = 0; i < N; i++) {\n Gi[i] = getHpnGLookup(2 * i);\n Hi[i] = getHpnGLookup(2 * i + 1);\n }\n\n // Run a bunch of randomized trials\n Random rando = new Random();\n int TRIALS = 250;\n int count = 0;\n\n while (count < TRIALS) {\n long amount = rando.nextLong();\n if (amount > Math.pow(2, N) - 1 || amount < 0)\n continue;\n\n LogBulletproof.ProofTuple proof = PROVE(new Scalar(BigInteger.valueOf(amount)), randomScalar());\n if (!VERIFY(proof))\n Assertions.fail(\"Test failed\");\n\n count += 1;\n }\n }", "title": "" }, { "docid": "98943b895466c2405962b8dbde4925e6", "score": "0.5640485", "text": "@Test\n public void test22() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.weightedAreaUnderPRC();\n assertEquals(Double.NaN, double0, 0.01D);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01D);\n }", "title": "" }, { "docid": "d753da9c6635fd688dfd74b25272e91d", "score": "0.563987", "text": "@Test\n public void testPuma8nh() {\n System.out.println(\"puma8nh\");\n ArffParser parser = new ArffParser();\n parser.setResponseIndex(8);\n try {\n AttributeDataset data = parser.parse(this.getClass().getResourceAsStream(\"/smile/data/weka/regression/puma8nh.arff\"));\n double[] y = data.toArray(new double[data.size()]);\n double[][] x = data.toArray(new double[data.size()][]);\n\n int[] perm = Math.permutate(x.length);\n double[][] datax = new double[4000][];\n double[] datay = new double[datax.length];\n for (int i = 0; i < datax.length; i++) {\n datax[i] = x[perm[i]];\n datay[i] = y[perm[i]];\n }\n\n int n = datax.length;\n int k = 10;\n\n CrossValidation cv = new CrossValidation(n, k);\n double rss = 0.0;\n double sparseRSS30 = 0.0;\n for (int i = 0; i < k; i++) {\n double[][] trainx = Math.slice(datax, cv.train[i]);\n double[] trainy = Math.slice(datay, cv.train[i]);\n double[][] testx = Math.slice(datax, cv.test[i]);\n double[] testy = Math.slice(datay, cv.test[i]);\n\n GaussianProcessRegression<double[]> rkhs = new GaussianProcessRegression<double[]>(trainx, trainy, new GaussianKernel(38.63), 0.1);\n\n KMeans kmeans = new KMeans(trainx, 30, 10);\n double[][] centers = kmeans.centroids();\n double r0 = 0.0;\n for (int l = 0; l < centers.length; l++) {\n for (int j = 0; j < l; j++) {\n r0 += Math.distance(centers[l], centers[j]);\n }\n }\n r0 /= (2 * centers.length);\n System.out.println(\"Kernel width = \" + r0);\n GaussianProcessRegression<double[]> sparse30 = new GaussianProcessRegression<double[]>(trainx, trainy, centers, new GaussianKernel(r0), 0.1);\n\n for (int j = 0; j < testx.length; j++) {\n double r = testy[j] - rkhs.predict(testx[j]);\n rss += r * r;\n \n r = testy[j] - sparse30.predict(testx[j]);\n sparseRSS30 += r * r;\n }\n }\n\n System.out.println(\"Regular 10-CV MSE = \" + rss / n);\n System.out.println(\"Sparse (30) 10-CV MSE = \" + sparseRSS30 / n);\n } catch (Exception ex) {\n System.err.println(ex);\n }\n }", "title": "" }, { "docid": "ff563bf0b12a09b615e13889be356b74", "score": "0.56376195", "text": "@Test(timeout = 4000)\n public void test001() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n CostMatrix costMatrix0 = new CostMatrix(0);\n Evaluation evaluation0 = new Evaluation(instances0, costMatrix0);\n double double0 = evaluation0.m_SumKBInfo;\n double double1 = evaluation0.weightedMatthewsCorrelation();\n assertEquals(Double.NaN, double1, 0.01);\n }", "title": "" }, { "docid": "006dbeb783c5bb77acbf52bd9fba486d", "score": "0.5636899", "text": "@Test(timeout = 4000)\n public void test35() throws Throwable {\n JRip jRip0 = new JRip();\n JRip.RipperRule jRip_RipperRule0 = jRip0.new RipperRule();\n boolean boolean0 = jRip_RipperRule0.covers((Instance) null);\n assertTrue(jRip0.getCheckErrorRate());\n assertEquals((-1.0), jRip_RipperRule0.getConsequent(), 0.01);\n assertEquals(1L, jRip0.getSeed());\n assertTrue(jRip0.getUsePruning());\n assertEquals(2.0, jRip0.getMinNo(), 0.01);\n assertFalse(jRip0.getDebug());\n assertEquals(3, jRip0.getFolds());\n assertTrue(boolean0);\n assertEquals(2, jRip0.getOptimizations());\n }", "title": "" }, { "docid": "69591b5d309759c7ac5b78133a3adcd5", "score": "0.562947", "text": "@Test\n\tpublic void test5bestSeq() {\n\t}", "title": "" }, { "docid": "124f15dbf512fd365d98e40cd6de04dc", "score": "0.5622706", "text": "double entropy() throws MatrixException;", "title": "" }, { "docid": "092d798887c9332c5de318c97092c598", "score": "0.561807", "text": "@Test(timeout = 4000)\n public void test025() throws Throwable {\n ResultMatrixHTML resultMatrixHTML0 = new ResultMatrixHTML();\n ResultMatrixLatex resultMatrixLatex0 = new ResultMatrixLatex(resultMatrixHTML0);\n int[][] intArray0 = new int[2][5];\n int[] intArray1 = new int[5];\n intArray1[0] = 1;\n intArray1[1] = 0;\n intArray1[2] = 1;\n intArray1[3] = 2;\n intArray1[4] = 1;\n int[] intArray2 = new int[9];\n intArray2[0] = 1;\n intArray2[1] = 2;\n intArray2[2] = 0;\n intArray2[3] = 0;\n ResultMatrixSignificance resultMatrixSignificance0 = new ResultMatrixSignificance(2, 44);\n resultMatrixSignificance0.stdDevWidthTipText();\n resultMatrixSignificance0.showStdDevTipText();\n resultMatrixSignificance0.clearRanking();\n resultMatrixSignificance0.setShowAverage(true);\n resultMatrixSignificance0.setMean((-4136), 0, 0);\n resultMatrixSignificance0.getDefaultRemoveFilterName();\n ResultMatrixSignificance resultMatrixSignificance1 = new ResultMatrixSignificance(resultMatrixSignificance0);\n resultMatrixSignificance1.getVisibleColCount();\n resultMatrixSignificance1.stdDevWidthTipText();\n resultMatrixSignificance1.setColHidden(2, true);\n assertTrue(resultMatrixSignificance0.getShowAverage());\n assertEquals(0, resultMatrixSignificance1.getCountWidth());\n }", "title": "" }, { "docid": "631ff8df6557cc1a8326fc7169a0fbfe", "score": "0.56010854", "text": "@Test(timeout = 4000)\n public void test01() throws Throwable {\n JRip jRip0 = new JRip();\n jRip0.enumerateMeasures();\n assertTrue(jRip0.getUsePruning());\n assertTrue(jRip0.getCheckErrorRate());\n assertEquals(2.0, jRip0.getMinNo(), 0.01);\n assertEquals(1L, jRip0.getSeed());\n assertEquals(3, jRip0.getFolds());\n assertEquals(2, jRip0.getOptimizations());\n assertFalse(jRip0.getDebug());\n }", "title": "" }, { "docid": "1ce37eb217fb6540466da0e485b13340", "score": "0.55988246", "text": "public static void testEnvironment() throws Exception {\n TinyImageExtractor tinyImageExtractor = new TinyImageExtractor(16);\n\n VFSGroupDataset<FImage> input = new VFSGroupDataset<FImage>(filepathTraining, ImageUtilities.FIMAGE_READER);\n\n for(int k = 1; k < 30; k++) {\n System.out.println(\"EVALUATE CLASSIFIER K = \" + k);\n double result = 0;\n for(int i = 1; i < 10; i++) {\n // Use GroupedRandomSplitter to generate train and test dataset\n GroupedRandomSplitter<String, Record> splitter = new GroupedRandomSplitter(input,75,0,25);\n // Generator KNN annotator which uses the euclidean distance between images\n KNNAnnotator<Record, String, TinyImageExtractor> knnAnnotator = new KNNAnnotator(tinyImageExtractor, DoubleFVComparison.EUCLIDEAN, k);\n\n // Train the annotator on the training data\n knnAnnotator.trainMultiClass(splitter.getTrainingDataset());\n\n // Evaluate the outcome of the test data set\n ClassificationEvaluator<CMResult<String>, String, Record> eval =\n new ClassificationEvaluator<>(\n knnAnnotator, splitter.getTestDataset(), new CMAnalyser<Record, String>(CMAnalyser.Strategy.SINGLE));\n\n Map<Record, ClassificationResult<String>> guesses = eval.evaluate();\n result += eval.analyse(guesses).getMatrix().getAccuracy();\n\n }\n // Average the accuracy\n System.out.println(result / 10);\n }\n }", "title": "" }, { "docid": "f6c485791a7124ab443bee7ccfa57e16", "score": "0.559751", "text": "public static void jamesltests() {\n\r\n\r\n System.out.println(\"ranftestsWITHCHANGES\");\r\n \r\n String dataset = \"ItalyPowerDemand\";\r\n \r\n Instances train = ClassifierTools.loadData(\"c:/tsc problems/\"+dataset+\"/\"+dataset+\"_TRAIN\");\r\n Instances test = ClassifierTools.loadData(\"c:/tsc problems/\"+dataset+\"/\"+dataset+\"_TEST\");\r\n \r\n int rs = 50;\r\n \r\n double[] trainAccs = new double[rs];\r\n double[] testAccs = new double[rs];\r\n double trainAcc =0;\r\n double testAcc =0;\r\n for (int r = 0; r < rs; r++) {\r\n Instances[] data = InstanceTools.resampleTrainAndTestInstances(train, test, r);\r\n \r\n TunedRandomForest ranF = new TunedRandomForest();\r\n ranF.setCrossValidate(true);\r\n ranF.setTrainAcc(true);\r\n try {\r\n ranF.buildClassifier(data[0]);\r\n } catch (Exception ex) {\r\n Logger.getLogger(TunedRandomForest.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n \r\n trainAccs[r] = ranF.res.acc;\r\n trainAcc+=trainAccs[r];\r\n \r\n testAccs[r] = ClassifierTools.accuracy(data[1], ranF);\r\n testAcc+=testAccs[r];\r\n \r\n System.out.print(\".\");\r\n }\r\n trainAcc/=rs;\r\n testAcc/=rs;\r\n \r\n System.out.println(\"\\nacc=\"+trainAcc);\r\n System.out.println(Arrays.toString(trainAccs));\r\n \r\n System.out.println(\"\\nacc=\"+testAcc);\r\n System.out.println(Arrays.toString(testAccs));\r\n }", "title": "" }, { "docid": "7e124d4619cdf828bd97450427ec2633", "score": "0.55974543", "text": "public int getTests()\n {\n return 1; //JG\n }", "title": "" }, { "docid": "99598e7c399d3427b206e0bf9880ed1f", "score": "0.5595711", "text": "@Test\n public void checkInteractions() throws IOException {\n// Set<String> driverGenes = new FICancerDriverPredictor().loadNatureDriverGenes();\n// Set<String> driverGenes = new FICancerDriverPredictor().loadCancerCensusGenes();\n Set<String> driverGenes = new FICancerDriverPredictor().loadScienceReportDriverGenes(false);\n System.out.println(\"Total driver genes: \" + driverGenes.size());\n Set<String> fis = fu.loadInteractions(R3Constants.GENE_FI_BIG_COMP_FILE_NAME);\n Set<String> fiGenes = InteractionUtilities.grepIDsFromInteractions(fis);\n driverGenes.retainAll(fiGenes);\n System.out.println(\"In the FI network: \" + driverGenes.size());\n System.out.println(\"FIs per gene: \" + (double)fis.size() / fiGenes.size());\n if (true)\n return;\n \n Set<String> fisInDriver = InteractionUtilities.grepFIsContains(driverGenes, fis);\n System.out.println(\"Total FIs in driver genes: \" + fisInDriver.size());\n \n // Permutation test\n List<Integer> fisNumbers = new ArrayList<Integer>();\n for (int i = 0; i < 1000; i++) {\n Set<String> randomGenes = MathUtilities.randomSampling(fiGenes, driverGenes.size());\n Set<String> randomFIs = InteractionUtilities.grepFIsContains(randomGenes, fis);\n fisNumbers.add(randomFIs.size());\n }\n Collections.sort(fisNumbers, new Comparator<Integer>() {\n public int compare(Integer n1, Integer n2) {\n return n2.compareTo(n1);\n }\n });\n for (Integer number : fisNumbers)\n System.out.println(number);\n }", "title": "" }, { "docid": "ea88dc4ff35cc91e5dc2562e1692629f", "score": "0.5587374", "text": "@Test(timeout = 4000)\n public void test007() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n CostMatrix costMatrix0 = new CostMatrix(0);\n Evaluation evaluation0 = new Evaluation(instances0, costMatrix0);\n evaluation0.setNumericPriorsFromBuffer();\n double double0 = evaluation0.unweightedMicroFmeasure();\n assertEquals(Double.NaN, double0, 0.01);\n }", "title": "" }, { "docid": "ec4919a3c6349d857f61d38de8330fe5", "score": "0.55857176", "text": "private void proveHypothesisOne(long noOfSamples){\n // Pick two nodes at random from the graph.\n // Find if they are equal in the Education : University fields. Call it Series A\n // Find if they are in the same circle. Call it Series B.\n // Find the Correlation between the Two Series A and B above\n System.out.println(\"Testing the First Hypothesis : <dding3>-<01>\");\n Random rnd = new Random();\n boolean[] seriesA = new boolean[(int)noOfSamples];\n boolean[] seriesB = new boolean[(int)noOfSamples];\n double[] seriesADouble = new double[(int)noOfSamples];\n double[] seriesBDouble = new double[(int)noOfSamples];\n\n\n for(int i = 0; i< noOfSamples; i++){\n //pick a pair.\n long firstNodeId = rnd.nextInt((int)noOfNodes);\n long secondNodeId = rnd.nextInt((int)noOfNodes);\n Node firstNode = graphDb.getNodeById(firstNodeId);\n Node secondNode = graphDb.getNodeById(secondNodeId);\n if(firstNode == null || secondNode == null){\n System.out.println(\"NULL Node!\");\n continue;\n }\n //find their education arrays.\n // 24 to 52 is the education;school;id;anonymized feature XX\n String[] firstVec;\n String[] secondVec;\n if(firstNode.hasProperty(\"FeatureVector\") && secondNode.hasProperty(\"FeatureVector\")){\n firstVec = (String[])firstNode.getProperty(\"FeatureVector\");\n secondVec = (String[])secondNode.getProperty(\"FeatureVector\");\n } else {\n continue;\n }\n boolean isSameEducation = true;\n for(int j = 24; j <= 52; j++ ){\n if(firstVec[j] != secondVec[j])\n isSameEducation = false;\n }\n\n\n //check if same circle.\n boolean isSameCircle = false;\n String circle1;\n String circle2;\n if(firstNode.hasProperty(\"CircleID\") && secondNode.hasProperty(\"CircleID\")){\n circle1 = (String)firstNode.getProperty(\"CircleID\");\n circle2 = (String)secondNode.getProperty(\"CircleID\");\n } else {\n continue;\n }\n\n if(circle1.equals(circle2))\n isSameCircle = true;\n else\n isSameCircle = false;\n\n\n seriesA[i] = isSameEducation;\n seriesB[i] = isSameCircle;\n\n if(seriesA[i] == true)\n seriesADouble[i] = 1;\n else\n seriesADouble[i] = 0;\n\n if(seriesB[i] == true)\n seriesBDouble[i] = 1;\n else\n seriesBDouble[i] = 0;\n\n }\n //Check correlation.\n int matchCountTrue = 0;\n int matchCountFalse = 0;\n for(int i = 0; i < seriesA.length; i++){\n if(seriesA[i] == seriesB[i]){\n if(seriesA[i] == true)\n matchCountTrue++;\n else\n matchCountFalse++;\n }\n }\n System.out.println(\"The True - True Matches in the SeriesA and B = \" + matchCountTrue);\n System.out.println(\"The False - False Matches in the SeriesA and B = \" + matchCountFalse);\n System.out.println(\"Total No of Samples = \" + noOfSamples);\n System.out.println(\"Correlation Between the Double Series = \" + new PearsonsCorrelation().correlation(seriesADouble, seriesBDouble));\n return;\n }", "title": "" }, { "docid": "b61677c7be7067eeabe363bf9284a481", "score": "0.5584183", "text": "@Test\n public void victoryPointsThresholdTest() {\n // TODO: test victoryPointsThreshold\n }", "title": "" }, { "docid": "cacdaacdea908afd87935a1d7b19588f", "score": "0.5577757", "text": "@Test\n public void test24() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n CostSensitiveClassifier costSensitiveClassifier0 = new CostSensitiveClassifier();\n CostMatrix costMatrix0 = costSensitiveClassifier0.getCostMatrix();\n Evaluation evaluation0 = null;\n try {\n evaluation0 = new Evaluation(instances0, costMatrix0);\n fail(\"Expecting exception: Exception\");\n \n } catch(Exception e) {\n //\n // Cost matrix not compatible with data!\n //\n }\n }", "title": "" }, { "docid": "903a880814dec379f792a6cb7ec0701a", "score": "0.55775917", "text": "@Test(timeout = 4000)\n public void test62() throws Throwable {\n double[] doubleArray0 = new double[3];\n doubleArray0[0] = 1732.955775904258;\n doubleArray0[1] = 1732.955775904258;\n doubleArray0[2] = 1732.955775904258;\n BinarySparseInstance binarySparseInstance0 = new BinarySparseInstance(1732.955775904258, doubleArray0);\n Attribute attribute0 = new Attribute((String) null, (String) null);\n SparseInstance sparseInstance0 = new SparseInstance(1);\n ArrayList<Attribute> arrayList0 = new ArrayList<Attribute>();\n Instances instances0 = new Instances(\"SQ%F4p<7Wb\", arrayList0, 1);\n instances0.add((Instance) binarySparseInstance0);\n int[] intArray0 = new int[7];\n intArray0[0] = 0;\n intArray0[1] = 4;\n intArray0[2] = 4;\n intArray0[4] = 0;\n intArray0[6] = 1;\n BinarySparseInstance binarySparseInstance1 = new BinarySparseInstance((Instance) binarySparseInstance0);\n FileSystemHandling.shouldAllThrowIOExceptions();\n JRip jRip0 = new JRip();\n jRip0.setUsePruning(false);\n arrayList0.add(attribute0);\n try { \n jRip0.rulesetForOneClass(4, instances0, 0, (-1222.0));\n fail(\"Expecting exception: RuntimeException\");\n \n } catch(RuntimeException e) {\n //\n // Class is not set!\n //\n verifyException(\"weka.core.AbstractInstance\", e);\n }\n }", "title": "" }, { "docid": "454a5b9e8ef31c80194a46dce9f48bc5", "score": "0.557599", "text": "@Test(timeout = 4000)\n public void test007() throws Throwable {\n ResultMatrixSignificance resultMatrixSignificance0 = new ResultMatrixSignificance();\n resultMatrixSignificance0.clearRanking();\n resultMatrixSignificance0.toArray();\n resultMatrixSignificance0.globalInfo();\n resultMatrixSignificance0.getDefaultMeanPrec();\n int[][] intArray0 = new int[0][5];\n resultMatrixSignificance0.m_NonSigWins = intArray0;\n int[][] intArray1 = new int[0][4];\n Vector<Object> vector0 = new Vector<Object>();\n ResultMatrixLatex resultMatrixLatex0 = new ResultMatrixLatex(resultMatrixSignificance0);\n String string0 = resultMatrixLatex0.toStringMatrix();\n assertEquals(\"\\\\begin{table}[thb]\\n\\\\caption{\\\\label{labelname}Table Caption}\\n\\\\footnotesize\\n{\\\\centering \\\\begin{tabular}{lr}\\n\\\\\\\\\\n\\\\hline\\nDataset & (1)\\\\\\\\\\n\\\\hline\\nrow0 & \\\\\\\\\\n\\\\hline\\n\\\\multicolumn{2}{c}{$\\\\circ$, $\\\\bullet$ statistically significant improvement or degradation}\\\\\\\\\\n\\\\end{tabular} \\\\footnotesize \\\\par}\\n\\\\end{table}\\n\", string0);\n \n resultMatrixLatex0.assign(resultMatrixLatex0);\n ResultMatrixPlainText resultMatrixPlainText0 = new ResultMatrixPlainText();\n resultMatrixPlainText0.setRanking(intArray1);\n ResultMatrixLatex resultMatrixLatex1 = new ResultMatrixLatex(resultMatrixLatex0);\n assertEquals(0, resultMatrixLatex1.getSignificanceWidth());\n assertEquals(2, resultMatrixLatex1.getMeanPrec());\n assertEquals(0, resultMatrixLatex1.getMeanWidth());\n \n ResultMatrixLatex resultMatrixLatex2 = new ResultMatrixLatex();\n resultMatrixLatex2.toStringKey();\n int int0 = resultMatrixPlainText0.getSignificanceCount((-2080), 26);\n assertEquals(0, int0);\n }", "title": "" }, { "docid": "fac2f2d80d32725e3118211708b0a3e2", "score": "0.55753964", "text": "@Test(timeout = 4000)\n public void test073() throws Throwable {\n ResultMatrixSignificance resultMatrixSignificance0 = new ResultMatrixSignificance();\n resultMatrixSignificance0.clearSummary();\n resultMatrixSignificance0.m_RemoveFilterName = false;\n resultMatrixSignificance0.clear();\n int[][] intArray0 = new int[4][3];\n int[] intArray1 = new int[1];\n intArray1[0] = 0;\n intArray0[0] = intArray1;\n int[] intArray2 = new int[7];\n intArray2[0] = 2;\n intArray2[1] = 0;\n intArray2[2] = 0;\n intArray2[3] = 1;\n intArray2[4] = 10;\n intArray2[5] = 1;\n intArray2[6] = 0;\n intArray0[1] = intArray2;\n int[] intArray3 = new int[2];\n intArray3[0] = (-783);\n intArray3[1] = 1;\n intArray0[2] = intArray3;\n int[] intArray4 = new int[3];\n intArray4[0] = 0;\n intArray4[1] = (-783);\n intArray4[2] = 0;\n intArray0[3] = intArray4;\n resultMatrixSignificance0.m_NonSigWins = intArray0;\n resultMatrixSignificance0.stdDevWidthTipText();\n resultMatrixSignificance0.showStdDevTipText();\n resultMatrixSignificance0.clearRanking();\n resultMatrixSignificance0.setShowAverage(true);\n resultMatrixSignificance0.setMean(2148, (-144), (-144));\n resultMatrixSignificance0.getDefaultStdDevPrec();\n resultMatrixSignificance0.getDefaultRemoveFilterName();\n resultMatrixSignificance0.getVisibleColCount();\n resultMatrixSignificance0.stdDevWidthTipText();\n resultMatrixSignificance0.setColHidden(2, false);\n assertTrue(resultMatrixSignificance0.getShowAverage());\n }", "title": "" }, { "docid": "31673d069ae8db06cb0fa634a22efcc1", "score": "0.55750275", "text": "@Test\n public void affinityTest() {\n // TODO: test affinity\n }", "title": "" } ]
e19a7cf945b003447a66a870ae14892f
para poner el fragmento del mapa
[ { "docid": "7f11ad10684ffc6ffabae8d51e9c1afe", "score": "0.51258826", "text": "private void add_fragment(Fragment fragment){\n // este metodo permite remplazar un fragment por otro () siempre hay que hacer un comit\n getSupportFragmentManager().beginTransaction().replace(R.id.container_layout,fragment).\n\n // el setTrasition envia una animacion\n setTransition(FragmentTransaction.TRANSIT_FRAGMENT_FADE)\n .addToBackStack(null).commit();\n\n }", "title": "" } ]
[ { "docid": "bc9a74fd2f53b46eda8bcedc3bdd575a", "score": "0.6365253", "text": "private void createFragment(){\r\n\t\tFragmentManager fragMgr = getFragmentManager();\r\n\t\tFragmentTransaction xact = fragMgr.beginTransaction();\r\n\t\tBundle bundle = new Bundle();\r\n\t\tbundle.putInt(\"MAP_TYPE\", currentMapType);\r\n\t\tswitch(currentMap){\r\n\t\tcase 1:\r\n\t\t\tMapViewer tempMap;\r\n\t\t\tif(fragMgr.findFragmentByTag(\"AVATAR_MAP\") != null){\r\n\t\t\t\ttempMap = (MapViewer) fragMgr.findFragmentByTag(\"AVATAR_MAP\");\r\n\t\t\t\txact.detach(tempMap);\r\n\t\t\t}\r\n\t\t\ttempMap = new MapViewer();\r\n\t\t\txact.replace(R.id.container,tempMap, \"AVATAR_MAP\");\r\n\t\t\txact.addToBackStack(null);\r\n\t\t\ttempMap.setArguments(bundle);\r\n\t\t\txact.commit();\r\n\t\t\t\r\n\t\t\tbreak;\r\n\t\tcase 2:\r\n\t\t\tMapViewerTC tempMap2;\r\n\t\t\tif(fragMgr.findFragmentByTag(\"TRICORDER_MAP\") != null){\r\n\t\t\t\ttempMap2 = (MapViewerTC) fragMgr.findFragmentByTag(\"TRICORDER_MAP\");\r\n\t\t\t\txact.detach(tempMap2);\r\n\t\t\t}\r\n\t\t\ttempMap2 = new MapViewerTC();\r\n\t\t\txact.replace(R.id.container, tempMap2, \"TRICORDER_MAP\");\r\n\t\t\txact.addToBackStack(null);\r\n\t\t\ttempMap2.setArguments(bundle);\r\n\t\t\txact.commit();\r\n\t\t\t\r\n\t\t\tbreak;\r\n\t\tcase 3:\r\n\t\t\tMapViewerGA tempMap3;\r\n\t\t\tif(fragMgr.findFragmentByTag(\"GUARDIAN_ANGEL_MAP\") != null){\r\n\t\t\t\ttempMap3 = (MapViewerGA) fragMgr.findFragmentByTag(\"GUARDIAN_ANGEL_MAP\");\r\n\t\t\t\txact.detach(tempMap3);\r\n\t\t\t}\r\n\t\t\ttempMap3 = new MapViewerGA();\r\n\t\t\txact.replace(R.id.container, tempMap3, \"GUARDIAN_ANGEL_MAP\");\r\n\t\t\txact.addToBackStack(null);\r\n\t\t\ttempMap3.setArguments(bundle);\r\n\t\t\txact.commit();\r\n\t\t\t\r\n\t\t\tbreak;\r\n\t\tcase 4:\r\n\t\t\tMapViewerEE tempMap4;\r\n\t\t\tif(fragMgr.findFragmentByTag(\"EAGLE_EYE_MAP\") != null){\r\n\t\t\t\ttempMap4 = (MapViewerEE) fragMgr.findFragmentByTag(\"EAGLE_EYE_MAP\");\r\n\t\t\t\txact.detach(tempMap4);\r\n\t\t\t}\r\n\t\t\ttempMap4 = new MapViewerEE();\r\n\t\t\txact.replace(R.id.container,tempMap4,\"EAGLE_EYE_MAP\");\r\n\t\t\txact.addToBackStack(null);\r\n\t\t\ttempMap4.setArguments(bundle);\r\n\t\t\txact.commit();\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "78b3f7857546675bec0d0895da791aed", "score": "0.6162939", "text": "private void Inicializar(){\n fragment=null;\n }", "title": "" }, { "docid": "4f5ac62142b4f9972c211abc3b665586", "score": "0.6110104", "text": "public void redimensionarMapa() {\r\n\t\tGameObject[] nuevoMapa = new GameObject[this.max*2];\r\n\t\tfor(int i = 0; i < this.posicionNuevo; ++i)\r\n\t\t\tnuevoMapa[i] = this.mapaPlantZombie[i];\r\n\t\tthis.max *= 2;\r\n\t\tthis.mapaPlantZombie = nuevoMapa;\r\n\t\t//System.out.println(\"#### - Redimensionar -\" + this.max);\r\n\t}", "title": "" }, { "docid": "0d4f23b8d6bc00372cb6be0ebec3b693", "score": "0.59740925", "text": "@Override\n public void onClick(View arg0) {\n ((BaseContainerFragment)getParentFragment()).replaceFragment(new MapFragment(), true);\n }", "title": "" }, { "docid": "bfe29706c450c59ddd1953d0c17d2256", "score": "0.59656465", "text": "private void cargarFragmento(Fragment fragment){\n FragmentManager fragmentManager = getSupportFragmentManager();\n fragmentManager.beginTransaction().replace(R.id.Contenedor1, fragment).commit();\n }", "title": "" }, { "docid": "89d68ac775fba59e3632fc44c479ea28", "score": "0.594659", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_map, container, false);\n unbinder = ButterKnife.bind(this, rootView);\n\n initilaize();\n\n SupportMapFragment mapFragment = (SupportMapFragment) getChildFragmentManager()\n .findFragmentById(R.id.frg); //use SuppoprtMapFragment for using in fragment instead of activity MapFragment = activity SupportMapFragment = fragment\n mapFragment.getMapAsync(new OnMapReadyCallback() {\n @Override\n public void onMapReady(GoogleMap mMap) {\n mMap.setMapType(GoogleMap.MAP_TYPE_NORMAL);\n\n mMap.clear(); //clear old markers\n\n setLatLng(mMap);\n\n initPinMap(mMap);\n }\n });\n\n\n return rootView;\n }", "title": "" }, { "docid": "4686422475842c7df90453b883b8858a", "score": "0.58947796", "text": "@Override\r\n\t\tpublic void onClick(View v) {\r\n\t\t\tToast.makeText(getActivity(), \"No Option\", Toast.LENGTH_LONG).show();\r\n\t\t\tFragmentTransaction fragmentTransaction = getFragmentManager().beginTransaction();\r\n\t\t\t//frag1 = new MapFragment(); \r\n\t\t\tif(frag1.isAdded())\r\n\t\t {\r\n\t\t Log.d(\"fff\", \"Show() BFrag\");\r\n\t\t fragmentTransaction.show(frag1); \r\n\t\t }\r\n\t\t\telse\r\n\t\t {\r\n\t\t Log.d(\"sss\", \"Replacing AFrag -> BFrag\");\r\n\t\t //frag1 = new MapFragment(); \r\n\t\t fragmentTransaction.replace(R.id.layoutfordetails, frag1);\t\r\n\t\t }\r\n\r\n\t\t // Keep the transaction in the back stack so it will be reversed when backbutton is pressed\r\n\t\t fragmentTransaction.addToBackStack(null);\t\r\n\t\t\t\r\n\t\t\t/* if(getFragmentManager().findFragmentByTag(\"MapFragment\")==null)\r\n\t\t\t{\t\r\n\t\t\t\tLog.d(\"in null\",\"in null\" );\r\n\t\t\t\tfrag1 = new MapFragment(); \r\n\t\t\t\tfragmentTransaction.replace(R.id.layoutfordetails, frag1,\"MapFragment\");\t\r\n\t\t\t\t//fragmentTransaction.addToBackStack(\"MapFragment\");\r\n\t\t\t}\r\n\t\t\t \r\n\r\n\t\t\t\telse\r\n\t\t\t\t{\r\n\t\t\t\t\tLog.d(\"in not null\",\"in not null\" );\r\n\t\t\t\t\t//frag1=new MapFragment();\r\n\t\t\t\t\t//Fragment f11 = getFragmentManager().findFragmentByTag(\"MapFragment\");\r\n\t\t\t\t\tfragmentTransaction.remove(getFragmentManager().findFragmentByTag(\"MapFragment\"));\r\n\t\t\t\t\t//fragmentTransaction.replace(R.id.layoutfordetails, frag1,\"MapFragment\");\r\n\t\t\t\t\tfragmentTransaction.replace(R.id.layoutfordetails, frag1,\"MapFragment\");\r\n\t\t\t\t\r\n\t\t\t\t\tfragmentTransaction.addToBackStack(\"MapFragment\");\r\n\t\t\t\t}\r\n\t\t\t \t//fragmentTransaction.setTransition(FragmentTransaction.TRANSIT_FRAGMENT_OPEN);\r\n*/\t\t\t \tfragmentTransaction.commit();\r\n\t\t}", "title": "" }, { "docid": "37bd1d4cd138b8fb3f402a900d852ad6", "score": "0.5888353", "text": "private void mapNaviToFragment(int id, Fragment fragment) {\r\n View view = findViewById(id);\r\n Utils.logh(TAG, \"mapNaviToFragment \" + id + \" view: \" + view);\r\n view.setOnClickListener(this);\r\n view.setSelected(false);\r\n navigateMap.put(id, fragment);\r\n }", "title": "" }, { "docid": "baa223c0a474dfedb3d1cb37a445dd63", "score": "0.57705456", "text": "@Override\n protected void notifyFragment() {\n if (mMap != null) {\n mMap.clear();\n setMarker();\n }\n }", "title": "" }, { "docid": "51baa44906a4dea2305d89159a4bab77", "score": "0.57557136", "text": "private void setFragmentByDefault(){\n fragment=new BienvenidoFragment();\n getSupportFragmentManager().beginTransaction().replace(R.id.contenedorFragment,fragment).commit();\n }", "title": "" }, { "docid": "f09abb7ed48707b3caa0cc917e660f42", "score": "0.5746684", "text": "private void MoveTileFragmentation()\n {\n for(int i = 0; i < mFrag.size(); i++)\n {\n mFrag.get(i).MoveFrag();\n if(mFrag.get(i).bOutOfRange == true)\n mFrag.remove(i);\n }\n }", "title": "" }, { "docid": "37f23d253b0c4f1419edee3049c92734", "score": "0.5733417", "text": "public MapFragment() {\n // Required empty public constructor\n }", "title": "" }, { "docid": "924ca2574bc98500834e66fbcd7aea5b", "score": "0.57152694", "text": "public void revealMap() {\n\t\tLinearLayout.LayoutParams newMapParams = new LinearLayout.LayoutParams(LayoutParams.MATCH_PARENT, 0, 1);\n\t\tLinearLayout.LayoutParams newSearchParams = new LinearLayout.LayoutParams(LayoutParams.MATCH_PARENT, 0, 0);\n\t\tLinearLayout.LayoutParams newEditSearchParams = new LinearLayout.LayoutParams(LayoutParams.MATCH_PARENT, 0, 0);\n\n\t\tsearchPageFrag.getView().setLayoutParams(newSearchParams);\n\t\teditSearchFrag.getView().setLayoutParams(newEditSearchParams);\n\t\tmapFrag.getView().setLayoutParams(newMapParams);\n\n\t\t// visibility for the check later.\n\t\tsearchPageFrag.getView().setVisibility(View.GONE);\n\t\teditSearchFrag.getView().setVisibility(View.GONE);\n\t\tmapFrag.getView().setVisibility(View.VISIBLE);\n\t}", "title": "" }, { "docid": "84c770518afa05c31760cbd7eb71534a", "score": "0.5714763", "text": "private NearbyMapFragment setMapFragment() {\n // Mapbox access token is configured here. This needs to be called either in your application\n // object or in the same activity which contains the mapview.\n Mapbox.getInstance(getActivity(), getString(R.string.mapbox_commons_app_token));\n NearbyMapFragment mapFragment;\n\n // Create fragment\n FragmentTransaction transaction = getChildFragmentManager().beginTransaction();\n\n // Build mapboxMap\n isDarkTheme = applicationKvStore.getBoolean(\"theme\", false);\n MapboxMapOptions options = new MapboxMapOptions()\n .compassGravity(Gravity.BOTTOM | Gravity.LEFT)\n .compassMargins(new int[]{12, 0, 0, 24})\n .logoEnabled(false)\n .attributionEnabled(false)\n .camera(new CameraPosition.Builder()\n .zoom(ZOOM_LEVEL)\n .target(new com.mapbox.mapboxsdk.geometry.LatLng(-52.6885, -70.1395))\n .build());\n\n // Create map fragment\n mapFragment = NearbyMapFragment.newInstance(options);\n\n // Add map fragment to parent container\n getChildFragmentManager().executePendingTransactions();\n transaction.add(R.id.container, mapFragment, TAG_RETAINED_MAP_FRAGMENT);\n transaction.commit();\n\n mapFragment.getMapAsync(mapboxMap ->\n mapboxMap.setStyle(\n NearbyParentFragment.this.isDarkTheme ? Style.DARK : Style.OUTDOORS, style -> {\n NearbyParentFragment.this.childMapFragmentAttached();\n // Map is set up and the style has loaded. Now you can add data or make other map adjustments\n }));\n return mapFragment;\n }", "title": "" }, { "docid": "d0e82e30b23b205c191c8357c0cc96cc", "score": "0.5698304", "text": "private void modifyMap() {\n \t\tPosition pos = new Position(5, 3);\n \t\tmap.setTile(new Pillar(), pos);\n \t\tpos = new Position(5, 4);\n \t\tmap.setTile(new Pillar(), pos);\n \t\tpos = new Position(5, 5);\n \t\tmap.setTile(new Pillar(), pos);\n \t}", "title": "" }, { "docid": "ad357b022a9526b3f0f1718b4dc6e792", "score": "0.5687992", "text": "@Override\n public View onCreateView(LayoutInflater inflater, final ViewGroup container,Bundle savedInstanceState) {\n\n commandHandlerManager = CommandHandlerManager.getInstance();\n\n commandHandlerManager.defineActivity(CommandHandlerManager.ACTIVITY_PARKING,commandHandlerManager.getMainActivity());\n\n View v = inflater.inflate(ar.com.klee.marvinSimulator.R.layout.fragment_donde_estacione,container, false);\n\n FragmentManager manager = ((MainMenuActivity)commandHandlerManager.getMainActivity()).getSupportFragmentManager();\n FragmentTransaction transaction = manager.beginTransaction();\n fragment = new ParkingMap();\n transaction.add(ar.com.klee.marvinSimulator.R.id.parkingMap, fragment);\n transaction.commit();\n\n MainMenuActivity mainMenuActivity = (MainMenuActivity)commandHandlerManager.getMainActivity();\n\n SharedPreferences mPrefs = mainMenuActivity.getPreferences(mainMenuActivity.MODE_PRIVATE);\n\n Gson gson = new Gson();\n String json = mPrefs.getString(\"ParkingSite\", \"\");\n\n if(!json.equals(\"\")) {\n final LatLng coordinates = gson.fromJson(json, LatLng.class);\n\n Handler handler = new Handler();\n handler.postDelayed(new Runnable() {\n public void run() {\n fragment.setParkSite(coordinates.latitude, coordinates.longitude);\n }\n }, 1000);\n }else{\n Toast.makeText(getActivity(), \"Es la primera vez que ingresás. No se detectó el lugar de estacionamiento.\", Toast.LENGTH_LONG).show();\n }\n\n return v;\n }", "title": "" }, { "docid": "56ef11aaf8fa9db7a9e03a1a774b557e", "score": "0.5676255", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n\n if (view != null) {\n ViewGroup parent = (ViewGroup) view.getParent();\n if (parent != null) {\n parent.removeView(view);\n }\n }\n try {\n view = inflater.inflate(R.layout.fragment_map, container, false);\n init(view);\n } catch (InflateException e) {\n /* map is already there, just return view as it is */\n }\n return view;\n }", "title": "" }, { "docid": "95c8033604b2e5ac6e89bb6e3453c329", "score": "0.56623346", "text": "private NearbyMapFragment getNearbyMapFragment() {\n NearbyMapFragment existingFragment = (NearbyMapFragment) getChildFragmentManager()\n .findFragmentByTag(TAG_RETAINED_MAP_FRAGMENT);\n if (existingFragment == null) {\n existingFragment = setMapFragment();\n }\n return existingFragment;\n }", "title": "" }, { "docid": "366508314d176571b1f119b9ac694106", "score": "0.5641096", "text": "public MapsFragment() {\n }", "title": "" }, { "docid": "d2f8e2ab99c8ea04898a05d8e2facddf", "score": "0.56279665", "text": "public static MapFragment newInstance()\r\n\t{\r\n\t\treturn new MapFragment();\r\n\t}", "title": "" }, { "docid": "1611c24b8c974342efc6dd1f45365a71", "score": "0.5624375", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fram_map, container, false);\n\n SupportMapFragment mapFragment = (SupportMapFragment) getChildFragmentManager().findFragmentById(R.id.frg); //use SuppoprtMapFragment for using in fragment instead of activity FragmentMap = activity SupportMapFragment = fragment\n mapFragment.getMapAsync(new OnMapReadyCallback() {\n @Override\n public void onMapReady(GoogleMap myMap) {\n mMap = myMap;\n mMap.setMapType(GoogleMap.MAP_TYPE_NORMAL);\n\n mMap.clear(); //clear old markers\n\n callBack_location.setMarkers();\n\n// mMap.addMarker(new MarkerOptions()\n// .position(new LatLng(37.4219999, -122.0862462))\n// .title(\"Spider Man\")\n// .icon(bitmapDescriptorFromVector(getActivity(),R.drawable.ic_launcher_background)));\n }\n });\n\n return rootView;\n }", "title": "" }, { "docid": "b590f4ce17391bd8ebeecf23a2230e97", "score": "0.55770856", "text": "public void mo3252r(Fragment fragment) {\n if (fragment.mInnerView != null) {\n SparseArray<Parcelable> sparseArray = this.f2376w0;\n if (sparseArray == null) {\n this.f2376w0 = new SparseArray<>();\n } else {\n sparseArray.clear();\n }\n fragment.mInnerView.saveHierarchyState(this.f2376w0);\n if (this.f2376w0.size() > 0) {\n fragment.mSavedViewState = this.f2376w0;\n this.f2376w0 = null;\n }\n }\n }", "title": "" }, { "docid": "a38a7d54d5f52b49b2ad2d57a1b591bc", "score": "0.5563034", "text": "private void createMapFragmentAndInflate() {\n mMapFragment = (SupportMapFragment) getChildFragmentManager().findFragmentById(R.id.map);\n mMapFragment.getMapAsync(this);\n fragmentManager = getActivity().getSupportFragmentManager();\n // locationManager = (LocationManager) getActivity().getSystemService(getContext().LOCATION_SERVICE);\n locationManager = (LocationManager) getActivity().getSystemService(\n Context.LOCATION_SERVICE);\n criteria = new Criteria();\n locationProvider = locationManager.getBestProvider(criteria, true);\n setMyLocationOff(locationProvider);\n\n }", "title": "" }, { "docid": "545e2b295e5e6bbaa37ef71fb353176a", "score": "0.5557417", "text": "private void prepareMap() {\n GameObject potion = new GameObject(26276, map.convertX(2276), map.convertY(4679), 0, 10, 0);\n Tile.getObject(12576, map.convertX(2276), map.convertY(4679), 0).setId(26267);\n Tile.get(map.convertX(2276), map.convertY(4679), 0).addObject(potion.spawn());\n\n /* Remove KBD lever */\n Tile.getObject(1817, map.convertX(2271), map.convertY(4680), 0).remove();\n }", "title": "" }, { "docid": "e48ab1e90005a5c973b47bee4a7a3619", "score": "0.5557155", "text": "private void initMapFragment() {\n m_mapFragment = (MapFragment) m_activity.getFragmentManager()\n .findFragmentById(R.id.mapfragment);\n\n if (m_mapFragment != null) {\n /* Initialize the MapFragment, results will be given via the called back. */\n m_mapFragment.init(new OnEngineInitListener() {\n @Override\n public void onEngineInitializationCompleted(OnEngineInitListener.Error error) {\n\n if (error == Error.NONE) {\n /*\n * If no error returned from map fragment initialization, the map will be\n * rendered on screen at this moment.Further actions on map can be provided\n * by calling Map APIs.\n */\n m_map = m_mapFragment.getMap();\n\n /*\n * Set the map center to the 4350 Still Creek Dr Burnaby BC (no animation).\n */\n m_map.setCenter(new GeoCoordinate(49.259149, -123.008555, 0.0),\n Map.Animation.NONE);\n\n /* Set the zoom level to the average between min and max zoom level. */\n m_map.setZoomLevel(14);\n\n }\n }\n });\n }\n }", "title": "" }, { "docid": "98807aea751e8475a5261f8705bed4c5", "score": "0.55509865", "text": "private void cambioFragment(Fragment fragment) {\n\t\tmDrawerLayout.closeDrawer(mDrawerList);\n\t\tFragmentManager frgManager = getSupportFragmentManager();\n\t\tfrgManager.beginTransaction().replace(R.id.content_frame, fragment).commit();\n\t\t\n\t}", "title": "" }, { "docid": "d4695ede601a42c21b3dd01aa3ce463a", "score": "0.55378586", "text": "@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container, \r\n\t\t\tBundle savedInstanceState) {\n\t\tString lugar = Environment.getExternalStorageDirectory()\r\n\t + \"/Android/data/\"\r\n\t + getActivity().getPackageName()\r\n\t + \"/Files/\"; \r\n\t\tSystem.out.println(lugar);\r\n\t\t//targetUri= Uri.parse(uri);\r\n\t\tSystem.out.println(targetUri);\r\n\t\tView v = inflater.inflate(R.layout.fragment_map, container, false);\r\n\t\tm = (MapView) v.findViewById(R.id.map);\r\n\t\t\r\n\t\tMapsInitializer.initialize(getActivity());\r\n\t\tnew getDAtafromSensors().execute(\"\");\r\n\t\tnew getSensors().execute(\"\");\r\n\t\t\r\n\t\t\r\n\t\r\n\t\tm.onCreate(savedInstanceState);\r\n\t\t if (mMap == null) {\r\n\t mMap = ((MapView) v.findViewById(R.id.map)).getMap();\r\n\t setUpMap2();\r\n\t }\r\n\t \r\n\t\t\r\n\t\t\r\n\t\treturn v;\r\n\t}", "title": "" }, { "docid": "e7a75af6aa9854e8390094bd51d89bf2", "score": "0.5505177", "text": "@Override\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n\t\tView view = inflater.inflate(R.layout.fragment_find_ending_point, container, false);\n\t\tFragmentTransaction ft = getChildFragmentManager().beginTransaction();\n\t\tft.replace(R.id.map_placeholder, mMapFrag);\n\t\tft.commit();\n\t\t\n\t\tcontext = (E) getActivity();\n\n\t\tinit();\n\n\t\treturn view;\n\t}", "title": "" }, { "docid": "51ef4893b980742cc512ade6d2f6b9fd", "score": "0.5500123", "text": "public MarcaFragment() {}", "title": "" }, { "docid": "46bed4e054a65029121ad19fad0055e1", "score": "0.547663", "text": "private void populateFragment() {\n getSupportFragmentManager()\n .beginTransaction()\n .replace(R.id.frame_fragment_edit_post, EditPostFragment.newInstance(), EditPostFragment.TAG)\n .commit();\n }", "title": "" }, { "docid": "bdd6749a4efc407f85479fcbf128cab2", "score": "0.54729927", "text": "private void initMapFragment() {\n m_mapFragment = getMapFragment();\n\n\n // Set path of isolated disk cache\n String diskCacheRoot = Environment.getExternalStorageDirectory().getPath()\n + File.separator + \".isolated-here-maps\";\n // Retrieve intent name from manifest\n String intentName = \"\";\n try {\n ApplicationInfo ai = m_activity.getPackageManager().getApplicationInfo(m_activity.getPackageName(), PackageManager.GET_META_DATA);\n Bundle bundle = ai.metaData;\n intentName = bundle.getString(\"com.demo.here.maps.service\");\n } catch (PackageManager.NameNotFoundException e) {\n Log.e(this.getClass().toString(), \"Failed to find intent name, NameNotFound: \" + e.getMessage());\n }\n\n boolean success = com.here.android.mpa.common.MapSettings.setIsolatedDiskCacheRootPath(diskCacheRoot, intentName);\n if (!success) {\n // Setting the isolated disk cache was not successful, please check if the path is valid and\n // ensure that it does not match the default location\n // (getExternalStorageDirectory()/.here-maps).\n // Also, ensure the provided intent name does not match the default intent name.\n } else {\n if (m_mapFragment != null) {\n /* Initialize the MapFragment, results will be given via the called back. */\n m_mapFragment.init(new OnEngineInitListener() {\n @Override\n public void onEngineInitializationCompleted(Error error) {\n if (error == Error.NONE) {\n icon = new Image();\n m_positionIndicatorFixed = new MapMarker();\n setUpMap();\n } else {\n Toast.makeText(m_activity,\n \"ERROR: Cannot initialize Map with error \" + error,\n Toast.LENGTH_LONG).show();\n }\n }\n\n private void setUpMap() {\n\n m_map = m_mapFragment.getMap();\n m_map.setCenter(new GeoCoordinate(28.6077159025 ,77.224249103), Map.Animation.NONE);\n mHandler = new Handler(Looper.getMainLooper()) {\n @Override\n public void handleMessage(Message message) {\n // This is where you do your work in the UI thread.\n // Your worker tells you in the message what to do.\n if (message.what ==1){\n final MapMarker mapMarker = (MapMarker)message.obj;\n Toast.makeText(m_activity, \"\"+mapMarker.getTitle(), Toast.LENGTH_LONG).show();\n\n\n ReverseGeocodeRequest2 revGecodeRequest = new ReverseGeocodeRequest2(mapMarker.getCoordinate());\n revGecodeRequest.execute(new ResultListener<Location>() {\n @Override\n public void onCompleted(Location location, ErrorCode errorCode) {\n if (errorCode == ErrorCode.NONE) {\n /*\n * From the location object, we retrieve the address and display to the screen.\n * Please refer to HERE Android SDK doc for other supported APIs.\n */\n generateDialog(location.getAddress().toString(), mapMarker);\n } else {\n generateDialog(\"ERROR:RevGeocode Request returned error code:\" + errorCode, mapMarker);\n }\n }\n });\n }\n }\n };\n\n m_map.addTransformListener(MapFragmentView.this);\n m_mapFragment.getMapGesture().addOnGestureListener(MapFragmentView.this, 1, true);\n setUpPositionManager();\n\n }\n\n private void setUpPositionManager() {\n mPositioningManager = PositioningManager.getInstance();\n mHereLocation = LocationDataSourceHERE.getInstance(\n new StatusListener() {\n @Override\n public void onOfflineModeChanged(boolean offline) {\n // called when offline mode changes\n }\n\n @Override\n public void onAirplaneModeEnabled() {\n // called when airplane mode is enabled\n }\n\n @Override\n public void onWifiScansDisabled() {\n // called when Wi-Fi scans are disabled\n }\n\n @Override\n public void onBluetoothDisabled() {\n // called when Bluetooth is disabled\n }\n\n @Override\n public void onCellDisabled() {\n // called when Cell radios are switch off\n }\n\n @Override\n public void onGnssLocationDisabled() {\n // called when GPS positioning is disabled\n }\n\n @Override\n public void onNetworkLocationDisabled() {\n // called when network positioning is disabled\n }\n\n @Override\n public void onServiceError(ServiceError serviceError) {\n // called on HERE service error\n }\n\n @Override\n public void onPositioningError(PositioningError positioningError) {\n // called when positioning fails\n }\n\n @Override\n public void onWifiIndoorPositioningNotAvailable() {\n // called when running on Android 9.0 (Pie) or newer\n }\n });\n if (mHereLocation == null) {\n Toast.makeText(m_activity, \"LocationDataSourceHERE.getInstance(): failed, exiting\", Toast.LENGTH_LONG).show();\n m_activity.finish();\n }\n mPositioningManager.setDataSource(mHereLocation);\n mPositioningManager.addListener(new WeakReference<PositioningManager.OnPositionChangedListener>(\n MapFragmentView.this));\n\n // start position updates, accepting GPS, network or indoor positions\n if (mPositioningManager.start(PositioningManager.LocationMethod.GPS_NETWORK_INDOOR)) {\n m_mapFragment.getPositionIndicator().setVisible(true);\n } else {\n Toast.makeText(m_activity, \"PositioningManager.start: failed, exiting\", Toast.LENGTH_LONG).show();\n m_activity.finish();\n }\n }\n });\n }\n }\n }", "title": "" }, { "docid": "f6e8450450daed511fcea2f47fdc906c", "score": "0.5457944", "text": "public void mo3238l(Fragment fragment) {\n if (fragment != null) {\n if (!this.f2353Z.containsKey(fragment.mWho)) {\n if (f2346A0) {\n StringBuilder sb = new StringBuilder();\n sb.append(\"Ignoring moving \");\n sb.append(fragment);\n sb.append(\" to state \");\n sb.append(this.f2362i0);\n sb.append(\"since it is not added to \");\n sb.append(this);\n Log.v(\"FragmentManager\", sb.toString());\n }\n return;\n }\n int i = this.f2362i0;\n if (fragment.mRemoving) {\n if (fragment.isInBackStack()) {\n i = Math.min(i, 1);\n } else {\n i = Math.min(i, 0);\n }\n }\n mo3191a(fragment, i, fragment.getNextTransition(), fragment.getNextTransitionStyle(), false);\n if (fragment.mView != null) {\n Fragment v = m2939v(fragment);\n if (v != null) {\n View view = v.mView;\n ViewGroup viewGroup = fragment.mContainer;\n int indexOfChild = viewGroup.indexOfChild(view);\n int indexOfChild2 = viewGroup.indexOfChild(fragment.mView);\n if (indexOfChild2 < indexOfChild) {\n viewGroup.removeViewAt(indexOfChild2);\n viewGroup.addView(fragment.mView, indexOfChild);\n }\n }\n if (fragment.mIsNewlyAdded && fragment.mContainer != null) {\n float f = fragment.mPostponedAlpha;\n if (f > 0.0f) {\n fragment.mView.setAlpha(f);\n }\n fragment.mPostponedAlpha = 0.0f;\n fragment.mIsNewlyAdded = false;\n C0550g a = mo3183a(fragment, fragment.getNextTransition(), true, fragment.getNextTransitionStyle());\n if (a != null) {\n Animation animation = a.f2394a;\n if (animation != null) {\n fragment.mView.startAnimation(animation);\n } else {\n a.f2395b.setTarget(fragment.mView);\n a.f2395b.start();\n }\n }\n }\n }\n if (fragment.mHiddenChanged) {\n mo3216c(fragment);\n }\n }\n }", "title": "" }, { "docid": "98f7d9428a45f80b1a672f60274e2d92", "score": "0.54483455", "text": "public static MapFragment newInstance( ) {\n MapFragment fragment = new MapFragment();\n return fragment;\n }", "title": "" }, { "docid": "6d3744460c8314eca2c0cd5fb3c537d8", "score": "0.54453534", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,Bundle savedInstanceState) {\n View v = inflater.inflate(ar.com.klee.marvinSimulator.R.layout.fragment_donde_estacione, container, false);\n mMapView = (MapView) v.findViewById(ar.com.klee.marvinSimulator.R.id.parkingMap);\n mMapView.onCreate(savedInstanceState);\n\n mMapView.onResume();// needed to get the map to display immediately\n\n try {\n MapsInitializer.initialize(getActivity().getApplicationContext());\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n googleMap = mMapView.getMap();\n\n // Perform any camera updates here\n return v;\n }", "title": "" }, { "docid": "f386d40a6416bf62d6083049e53fda8b", "score": "0.53834265", "text": "public static MapFragment newInstance() {\n MapFragment fragment = new MapFragment();\n Bundle args = new Bundle();\n// args.putString(ARG_PARAM1, param1);\n// args.putString(ARG_PARAM2, param2);\n fragment.setArguments(args);\n return fragment;\n }", "title": "" }, { "docid": "53f23ed3c4d91f840a289113e137d5c3", "score": "0.5365291", "text": "@Nullable\r\n @Override\r\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_guard_tracker_list_map, container, false);\r\n\r\n FragmentManager mng = getFragmentManager();\r\n SupportMapFragment map = (SupportMapFragment) mng.findFragmentById(R.id.map_guard_tracker_list);\r\n\r\n Log.i(TAG, \"onCreateView\");\r\n // Check if fragment is currently shown, otherwise initiate it.\r\n if (map == null) {\r\n // Make new fragment to show this selection.\r\n map = SupportMapFragment.newInstance();\r\n\r\n // Execute a transaction, replacing any existing fragment\r\n // with this one inside the frame.\r\n Log.i(TAG, \"Creates new SupportMapFragment\");\r\n mng.beginTransaction().replace(R.id.map_guard_tracker_list, map).\r\n setTransition(FragmentTransaction.TRANSIT_FRAGMENT_OPEN).commit();\r\n }\r\n\r\n map.getMapAsync(this);\r\n return view;\r\n }", "title": "" }, { "docid": "1b98562afb6bc40031a79604e8349ae9", "score": "0.53262573", "text": "public abstract String imprimirMapa();", "title": "" }, { "docid": "9b6e02173477fb4a7ca307e7d556914e", "score": "0.5314215", "text": "public void mo3236k(Fragment fragment) {\n if (this.f2353Z.get(fragment.mWho) != null) {\n if (f2346A0) {\n StringBuilder sb = new StringBuilder();\n sb.append(\"Removed fragment from active set \");\n sb.append(fragment);\n Log.v(\"FragmentManager\", sb.toString());\n }\n for (Fragment fragment2 : this.f2353Z.values()) {\n if (fragment2 != null && fragment.mWho.equals(fragment2.mTargetWho)) {\n fragment2.mTarget = fragment;\n fragment2.mTargetWho = null;\n }\n }\n this.f2353Z.put(fragment.mWho, null);\n mo3248p(fragment);\n String str = fragment.mTargetWho;\n if (str != null) {\n fragment.mTarget = (Fragment) this.f2353Z.get(str);\n }\n fragment.initState();\n }\n }", "title": "" }, { "docid": "647b78838787112e25119cb9bfd875a0", "score": "0.5306395", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_ver_mas, container, false);\n imageSwitcher = (ImageSwitcher) v.findViewById(R.id.imageSwicher);\n back = (AppCompatImageButton) v.findViewById(R.id.back);\n next = (AppCompatImageButton) v.findViewById(R.id.next);\n mapa = (AppCompatImageButton) v.findViewById(R.id.mapa);\n mapa.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n Intent intent = new Intent(getActivity(), Map_Activity.class);\n startActivity(intent);\n }\n });\n volver = (AppCompatButton)v.findViewById(R.id.volver);\n apartar = (AppCompatButton)v.findViewById(R.id.apartar);\n volver.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n Fragment newFragment = new homeFragment();\n android.app.FragmentTransaction ft = getFragmentManager().beginTransaction();\n ft.replace(R.id.content_main, newFragment);\n ft.commit();\n }\n });\n apartar.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n Fragment newFragment = new ApartadoFragment();\n android.app.FragmentTransaction ft = getFragmentManager().beginTransaction();\n ft.replace(R.id.content_main, newFragment);\n ft.commit();\n }\n });\n\n imageSwitcher.setFactory(new ViewSwitcher.ViewFactory() {\n @Override\n public View makeView() {\n ImageView imageView = new ImageView(getActivity().getApplicationContext());\n imageView.setScaleType(ImageView.ScaleType.CENTER_INSIDE);\n imageView.setLayoutParams(new ImageSwitcher.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.MATCH_PARENT));\n return imageView;\n\n }\n });\n\n Animation in = AnimationUtils.loadAnimation(getActivity().getApplicationContext(), R.anim.in);\n Animation out = AnimationUtils.loadAnimation(getActivity().getApplicationContext(), R.anim.out);\n\n imageSwitcher.setImageResource(images[0]);\n\n back.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n Animation in = AnimationUtils.loadAnimation(getActivity().getApplicationContext(), R.anim.in);\n Animation out = AnimationUtils.loadAnimation(getActivity().getApplicationContext(), R.anim.out);\n imageSwitcher.setInAnimation(in);\n imageSwitcher.setOutAnimation(out);\n i--;\n if (i < 0) {\n i = images.length - 1;\n }\n\n imageSwitcher.setImageResource(images[i]);\n\n\n }\n });\n\n next.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n Animation in = AnimationUtils.loadAnimation(getActivity().getApplicationContext(), R.anim.in2);\n Animation out = AnimationUtils.loadAnimation(getActivity().getApplicationContext(), R.anim.out2);\n imageSwitcher.setInAnimation(in);\n imageSwitcher.setOutAnimation(out);\n i++;\n if(i== images.length){\n i= 0;\n }\n imageSwitcher.setImageResource(images[i]);\n\n }\n });\n\n\n return v;\n }", "title": "" }, { "docid": "f3acfb8c0a0ab2fa28a21fef1bcf3157", "score": "0.5288487", "text": "MapFragmentGUI(MapFragment mfrag, View view, String sellocname, boolean isfromintent){\n\t\tmMFragment = mfrag;\n\t\tmSelLocName = sellocname;\n\t\tmMarkerIcon = BitmapDescriptorFactory.fromResource(R.drawable.reisszwecke_klein);\n\t\tFragmentManager mFragmentManager = mfrag.getActivity().getSupportFragmentManager();\n\t\tif(mFragment == null){\n\t\t\tmFragment = (SupportMapFragment) mFragmentManager.findFragmentById(R.id.map);\n\t\t}\n\t\tmMap = mFragment.getMap();\n\t\tmSpinner = (Spinner) view.findViewById(R.id.spinner1);\n\t}", "title": "" }, { "docid": "60461ebc76a9f37d64520e8b6a9c360a", "score": "0.5285643", "text": "public static MapFrag newInstance(int position) {\n MapFrag mapFrag = new MapFrag();\n\n // 2.2 Create bundle and add it some data\n Bundle args = new Bundle();\n args.putInt(KEY_POSITION, position);\n mapFrag.setArguments(args);\n\n return(mapFrag);\n }", "title": "" }, { "docid": "e88de82d80022b71fd5f6e4b15661c62", "score": "0.52842677", "text": "private void initDataFra() {\n\t\tHashMap<String, String> dataMap = new HashMap<String, String>();\n\t\tdataMap.put(\"pro_id\", dataConvert(pro_id));\n\t\tdataMap.put(\"chan_id\", dataConvert(chan_id));\n\t\tdataMap.put(\"wang_id\", dataConvert(wang_id));\n\t\tFragmentTransaction ft = getSupportFragmentManager().beginTransaction();\n\t\tft.replace(R.id.fl_content, new ItemFragDataNew(1, dataMap));\n\t\tft.commit();\n\t}", "title": "" }, { "docid": "9150b22f64e3a57e0e470be2a88d4a6a", "score": "0.5266401", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n if (rootView != null) {\n ViewGroup parent = (ViewGroup) rootView.getParent();\n if (parent != null)\n parent.removeView(rootView);\n }\n try {\n rootView = inflater.inflate(R.layout.fragment_map, container,\n false);\n }\n\n catch(Exception e){\n e.printStackTrace();\n return rootView;\n }\n face= Typeface.createFromAsset(getActivity().getAssets(), \"Avenir-Book.otf\");\n HomeActivity.changeTitle(\"ROUTE\", true, false);\n isConnected = NetConnection.checkInternetConnectionn(getActivity());\n\n init();\n\n return rootView ;\n }", "title": "" }, { "docid": "cad89622c163d3e099c528a0a8be6971", "score": "0.5262619", "text": "private void loadMapDown() {\n }", "title": "" }, { "docid": "adfdb6e8739e45dfd77299ea8497c02c", "score": "0.5261011", "text": "public void restore() {\n for (View view : this.savedMap.keySet()) {\n ((CellAndSpan) this.map.get(view)).copyFrom((CellAndSpan) this.savedMap.get(view));\n }\n }", "title": "" }, { "docid": "85b61916482552105247c1c78efe9a3d", "score": "0.52567863", "text": "@SuppressWarnings(\"deprecation\")\n private MapFragment getMapFragment() {\n return (MapFragment) m_activity.getFragmentManager().findFragmentById(R.id.search_mapfragment);\n }", "title": "" }, { "docid": "746dfe52ab7a409a6ef8a17e0ca2fbef", "score": "0.52503324", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n v = inflater.inflate(R.layout.fragment_map, container,\n false);\n\n latitude = 63.8266178;\n longitude = 20.2740246;\n\n mMapView = (MapView) v.findViewById(R.id.mapView);\n mMapView.onCreate(savedInstanceState);\n\n mMapView.onResume();// needed to get the map to display immediately\n\n try {\n MapsInitializer.initialize(getActivity().getApplicationContext());\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n googleMap = mMapView.getMap();\n\n bundle = getArguments();\n// showNavigationButtons = bundle.getBoolean(\"KEY\");\n\n try{\n getMyLocation();\n }catch (Exception e){\n e.printStackTrace();\n }\n\n //setUpMapWithPosition(); Kanske ej nödvändigt. Flyttat till onResume\n\n try{\n int bundle = getArguments().getInt(\"KEY\");\n\n if(bundle == 2){\n\n //setOutReligiosMarkers(); Gammalt\n\n\n }\n\n }catch (Exception e){\n Log.i(\"TAGGIE\", \"No bundle\");\n e.printStackTrace();\n }\n\n\n return v;\n }", "title": "" }, { "docid": "fbe0950e9ab7c65caef3a71412cce78f", "score": "0.52315825", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_moving_map, container, false);\n }", "title": "" }, { "docid": "0dd3f1000c76941d3228cd6f56bbb77e", "score": "0.522386", "text": "public SaidaFragment() {\n }", "title": "" }, { "docid": "51e25b659cf7fa6cdf97a20c555dba9d", "score": "0.5222096", "text": "private void setFragmentOnContainer (Fragment fragment) {\n getSupportFragmentManager().beginTransaction().replace(R.id.fragmentContainer,fragment).commit();\n }", "title": "" }, { "docid": "3687bdb330ded17bcbcce49ed405ccad", "score": "0.5212575", "text": "@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_assistencia, container, false);\n loktal_map = v.findViewById(R.id.google_maps);\n loktal_map.onCreate(savedInstanceState);\n loktal_map.getMapAsync(this);\n return v;\n }", "title": "" }, { "docid": "e1449390ba933be27d1904857e194f39", "score": "0.5205346", "text": "public void reloadFragments() {\n \tfor(int i=0;i<mFragments.size(); i++) {\n \t\tmFragments.valueAt(i).setServerIp(mServerIp);\n \t\tmFragments.valueAt(i).reload();\n \t}\n }", "title": "" }, { "docid": "f225a871eafdf53d7804411d3b20b3fe", "score": "0.51994777", "text": "private void replaceFragmentOnContainer(Fragment fragment) {\n FragmentManager fragmentManager = getSupportFragmentManager();\n fragmentManager.beginTransaction()\n .replace(R.id.activity_main_detail_layout, fragment)\n .commit();\n }", "title": "" }, { "docid": "9315d984d15c4082accd5463300244e8", "score": "0.5196056", "text": "private void populateFragment() {\n getSupportFragmentManager()\n .beginTransaction()\n .replace(R.id.frame_fragment_add_profile, AddProfileFragment.newInstance(), AddProfileFragment.TAG)\n .commit();\n }", "title": "" }, { "docid": "13836e6307d09301a847dc5e267d2937", "score": "0.5188366", "text": "@Override\r\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\r\n\t\tsetContentView(R.layout.map_myfragment);\r\n\t\tylbfrawebview = (WebView) findViewById(R.id.mapfrawebview);\r\n\t\tIntent intent=getIntent();\r\n\t\turl_map=intent.getStringExtra(\"url_map\");\r\n\t\ttypes=intent.getStringExtra(\"type\");\r\n\t\tinitSetWebview(ylbfrawebview);\r\n\t\tylbfrawebview.loadUrl(url_map);\r\n\t}", "title": "" }, { "docid": "6e3109c2668f9a33615a9658534df642", "score": "0.51747066", "text": "public MapFragmentView(Activity activity) {\n m_activity = activity;\n initMapFragment();\n initCreatePolygonButton();\n initCreatePolylineButton();\n initCreateCircleButton();\n initCreateMapMarkerButton();\n }", "title": "" }, { "docid": "0c85ecbd33a4c3626728527cc7740fb8", "score": "0.5174671", "text": "@Override\n public void onClick(View v) {\n if (m_map != null && m_map_marker != null) {\n m_map.removeMapObject(m_map_marker);\n m_map_marker = null;\n } else {\n createMapMarker();\n }\n }", "title": "" }, { "docid": "014557d71f4a5a2982529eefba28954f", "score": "0.51728636", "text": "public void seDeplacer(Map map, Panneau pan){\n\t\tif(pan.moveH == 1){\r\n\t\t\tif(this.x<63*(map.colonnes) && ((map.tab00[(int) Math.floor((this.y+12)/64)][(int) Math.floor((this.x+53)/64)] != 7) && (map.tab00[(int) Math.floor((this.y+52)/64)][(int) Math.floor((this.x+53)/64)] != 7)) && this.obstacle != -1){\r\n\t\t\t\tboolean isDisturbed = false;\r\n\t\t\t\tfor(int i = 0; i<pan.listObstacles.size(); i++){\r\n\t\t\t\t\tif(this.x+53 >= pan.listObstacles.get(i).x && this.x+12<pan.listObstacles.get(i).x && this.y+51>pan.listObstacles.get(i).y && this.y+12<pan.listObstacles.get(i).y+pan.listObstacles.get(i).height){isDisturbed = true;}\r\n\t\t\t\t}\r\n\t\t\t\tif(!isDisturbed){this.x=this.x+(pan.getWidth()/968)+1;}\r\n\t\t\t}\r\n\t\t\tif(this.etat == 0 || this.etat == 1){\r\n\t\t\t\tthis.etat = 1;\r\n\t\t\t\tthis.statik = 1;\r\n\t\t\t}\r\n\t\t\t}\r\n\t\t\r\n\t\t// AVANCER VERS LA GAUCHE\r\n\t\tif(pan.moveH == -1){\r\n\t\t\tif(this.x>0 && ((map.tab00[(int) Math.floor((this.y+12)/64)][(int) Math.floor((this.x+11)/64)] != 7) && (map.tab00[(int) Math.floor((this.y+52)/64)][(int) Math.floor((this.x+11)/64)] != 7)) && this.obstacle != 1){\r\n\t\t\t\tboolean isDisturbed = false;\r\n\t\t\t\tfor(int i = 0; i<pan.listObstacles.size(); i++){\r\n\t\t\t\t\tif(this.x+11 <= pan.listObstacles.get(i).x+pan.listObstacles.get(i).width && this.x+12>pan.listObstacles.get(i).x && this.y+51>pan.listObstacles.get(i).y && this.y+12<pan.listObstacles.get(i).y+pan.listObstacles.get(i).height){isDisturbed = true;}\r\n\t\t\t\t}\r\n\t\t\t\tif(!isDisturbed){this.x=this.x-(pan.getWidth()/968)-1;}\r\n\t\t\t}\r\n\t\t\tif(this.etat == 0 || this.etat == -1){\r\n\t\t\t\tthis.etat = -1;\r\n\t\t\t\tthis.statik = -1;\r\n\t\t\t}\r\n\t\t\t}\r\n\t\t\r\n\t\t// AVANCER VERS LE HAUT\r\n\t\tif(pan.moveV == 1){\r\n\t\t\tif(this.y>0 && ((map.tab00[(int) Math.floor((this.y+11)/64)][(int) Math.floor((this.x+12)/64)] != 7) && (map.tab00[(int) Math.floor((this.y+11)/64)][(int) Math.floor((this.x+51)/64)] != 7)) && this.obstacle != 2){\r\n\t\t\t\tboolean isDisturbed = false;\r\n\t\t\t\tfor(int i = 0; i<pan.listObstacles.size(); i++){\r\n\t\t\t\t\tif(this.y+11 <= pan.listObstacles.get(i).y+pan.listObstacles.get(i).height && this.y+12>pan.listObstacles.get(i).y && this.x+51>pan.listObstacles.get(i).x && this.x+12<pan.listObstacles.get(i).x+pan.listObstacles.get(i).width){isDisturbed = true;}\r\n\t\t\t\t}\r\n\t\t\t\tif(!isDisturbed){this.y=this.y-(pan.getHeight()/622)-1;}\r\n\t\t\t}\r\n\t\t\tif(this.etat == 0 || this.etat == 2){\r\n\t\t\t\tthis.etat = 2;\r\n\t\t\t\tthis.statik = 2;\r\n\t\t\t}\r\n\t\t\t}\r\n\t\t\r\n\t\t// AVANCER VERS LE BAS\r\n\t\tif(pan.moveV == -1){\r\n\t\t\tif(this.y<64*(map.lignes-1) && ((map.tab00[(int) Math.floor((this.y+60)/64)][(int) Math.floor((this.x+12)/64)] != 7) && (map.tab00[(int) Math.floor((this.y+60)/64)][(int) Math.floor((this.x+51)/64)] != 7)) && this.obstacle != -2){\r\n\t\t\t\tboolean isDisturbed = false;\r\n\t\t\t\tfor(int i = 0; i<pan.listObstacles.size(); i++){\r\n\t\t\t\t\tif(this.y+60 >= pan.listObstacles.get(i).y && this.y+12<pan.listObstacles.get(i).y && this.x+51>pan.listObstacles.get(i).x && this.x+12<pan.listObstacles.get(i).x+pan.listObstacles.get(i).width){isDisturbed = true;}\r\n\t\t\t\t}\r\n\t\t\t\tif(!isDisturbed){this.y=this.y+(pan.getHeight()/622)+1;}\r\n\t\t\t}\r\n\t\t\tif(this.etat == 0 || this.etat == -2){\r\n\t\t\t\tthis.etat = -2;\r\n\t\t\t\tthis.statik = -2;\r\n\t\t\t}\r\n\t\t\t}\r\n\t\t\r\n\t\t// PERSONNAGE STATIQUE\r\n\t\tif(pan.moveH == 0 && pan.moveV == 0){\r\n\t\t\tthis.etat = 0;\r\n\t\t}\r\n\t\t\r\n\t\tobstacle = 0;\r\n\t\t\r\n\t}", "title": "" }, { "docid": "a927ffd66c998b0d80af1f299eadd7b5", "score": "0.51559293", "text": "@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_maps, container, false);\n //set the imageView for the main content invisible in any of the other fragments\n ImageView im = (ImageView)getActivity().findViewById(R.id.imgLogo);\n im.setVisibility(View.INVISIBLE);\n im.getLayoutParams().height = 0;\n //mapview\n initilizeMap();\n //init the rest of the view elements here---\n TextView txtLabel = (TextView) v.findViewById(R.id.txtMaps);\n //spinner that we can implement later on for some places\n// spinner = (Spinner) v.findViewById(R.id.spinner);\n// // Create an ArrayAdapter using the string array and a default spinner layout\n// ArrayAdapter<CharSequence> adapter = ArrayAdapter.createFromResource(getActivity().getApplicationContext(), cityNumbers, R.layout.support_simple_spinner_dropdown_item);\n// // Apply the adapter to the spinner\n// spinner.setAdapter(adapter);\n// spinner.setOnItemSelectedListener(this);\n //restAdapter of the models\n restAdapt = new RestAdapter.Builder()\n .setEndpoint(Constant.BASE_URL)\n .setLogLevel(RestAdapter.LogLevel.FULL)\n .build();\n return v;\n }", "title": "" }, { "docid": "728135ac0f16c3c0c6f5fef854c3c9dc", "score": "0.5155317", "text": "public void replaceThisFragment(){\n Fragment fragment = new CrimeFragment();\n getActivity().getFragmentManager().beginTransaction().replace(R.id.fragmentContainer, fragment).commit();\n }", "title": "" }, { "docid": "dfaa3ef0c614fe7c6b2d190650484e16", "score": "0.5152365", "text": "public void mo3188a(Parcelable parcelable) {\n C0562n nVar;\n if (parcelable != null) {\n C0557k kVar = (C0557k) parcelable;\n if (kVar.f2415c != null) {\n for (Fragment fragment : this.f2378y0.mo3291y()) {\n if (f2346A0) {\n StringBuilder sb = new StringBuilder();\n sb.append(\"restoreSaveState: re-attaching retained \");\n sb.append(fragment);\n Log.v(\"FragmentManager\", sb.toString());\n }\n Iterator it = kVar.f2415c.iterator();\n while (true) {\n if (!it.hasNext()) {\n nVar = null;\n break;\n }\n nVar = (C0562n) it.next();\n if (nVar.f2427U.equals(fragment.mWho)) {\n break;\n }\n }\n if (nVar == null) {\n if (f2346A0) {\n StringBuilder sb2 = new StringBuilder();\n sb2.append(\"Discarding retained Fragment \");\n sb2.append(fragment);\n sb2.append(\" that was not found in the set of active Fragments \");\n sb2.append(kVar.f2415c);\n Log.v(\"FragmentManager\", sb2.toString());\n }\n Fragment fragment2 = fragment;\n mo3191a(fragment2, 1, 0, 0, false);\n fragment.mRemoving = true;\n mo3191a(fragment2, 0, 0, 0, false);\n } else {\n nVar.f2440g0 = fragment;\n fragment.mSavedViewState = null;\n fragment.mBackStackNesting = 0;\n fragment.mInLayout = false;\n fragment.mAdded = false;\n Fragment fragment3 = fragment.mTarget;\n fragment.mTargetWho = fragment3 != null ? fragment3.mWho : null;\n fragment.mTarget = null;\n Bundle bundle = nVar.f2439f0;\n if (bundle != null) {\n bundle.setClassLoader(this.f2363j0.mo3143c().getClassLoader());\n fragment.mSavedViewState = nVar.f2439f0.getSparseParcelableArray(\"android:view_state\");\n fragment.mSavedFragmentState = nVar.f2439f0;\n }\n }\n }\n this.f2353Z.clear();\n Iterator it2 = kVar.f2415c.iterator();\n while (it2.hasNext()) {\n C0562n nVar2 = (C0562n) it2.next();\n if (nVar2 != null) {\n Fragment a = nVar2.mo3304a(this.f2363j0.mo3143c().getClassLoader(), mo3158d());\n a.mFragmentManager = this;\n if (f2346A0) {\n StringBuilder sb3 = new StringBuilder();\n sb3.append(\"restoreSaveState: active (\");\n sb3.append(a.mWho);\n sb3.append(\"): \");\n sb3.append(a);\n Log.v(\"FragmentManager\", sb3.toString());\n }\n this.f2353Z.put(a.mWho, a);\n nVar2.f2440g0 = null;\n }\n }\n this.f2352Y.clear();\n ArrayList<String> arrayList = kVar.f2411U;\n if (arrayList != null) {\n Iterator it3 = arrayList.iterator();\n while (it3.hasNext()) {\n String str = (String) it3.next();\n Fragment fragment4 = (Fragment) this.f2353Z.get(str);\n if (fragment4 != null) {\n fragment4.mAdded = true;\n if (f2346A0) {\n StringBuilder sb4 = new StringBuilder();\n sb4.append(\"restoreSaveState: added (\");\n sb4.append(str);\n sb4.append(\"): \");\n sb4.append(fragment4);\n Log.v(\"FragmentManager\", sb4.toString());\n }\n if (!this.f2352Y.contains(fragment4)) {\n synchronized (this.f2352Y) {\n this.f2352Y.add(fragment4);\n }\n } else {\n StringBuilder sb5 = new StringBuilder();\n sb5.append(\"Already added \");\n sb5.append(fragment4);\n throw new IllegalStateException(sb5.toString());\n }\n } else {\n StringBuilder sb6 = new StringBuilder();\n sb6.append(\"No instantiated fragment for (\");\n sb6.append(str);\n sb6.append(\")\");\n m2926a((RuntimeException) new IllegalStateException(sb6.toString()));\n throw null;\n }\n }\n }\n C0528b[] bVarArr = kVar.f2412V;\n if (bVarArr != null) {\n this.f2354a0 = new ArrayList<>(bVarArr.length);\n int i = 0;\n while (true) {\n C0528b[] bVarArr2 = kVar.f2412V;\n if (i >= bVarArr2.length) {\n break;\n }\n C0527a a2 = bVarArr2[i].mo3056a(this);\n if (f2346A0) {\n StringBuilder sb7 = new StringBuilder();\n sb7.append(\"restoreAllState: back stack #\");\n sb7.append(i);\n sb7.append(\" (index \");\n sb7.append(a2.f2319u);\n sb7.append(\"): \");\n sb7.append(a2);\n Log.v(\"FragmentManager\", sb7.toString());\n PrintWriter printWriter = new PrintWriter(new C4110b(\"FragmentManager\"));\n a2.mo3037a(\" \", printWriter, false);\n printWriter.close();\n }\n this.f2354a0.add(a2);\n int i2 = a2.f2319u;\n if (i2 >= 0) {\n mo3184a(i2, a2);\n }\n i++;\n }\n } else {\n this.f2354a0 = null;\n }\n String str2 = kVar.f2413W;\n if (str2 != null) {\n this.f2366m0 = (Fragment) this.f2353Z.get(str2);\n m2938u(this.f2366m0);\n }\n this.f2351X = kVar.f2414X;\n }\n }\n }", "title": "" }, { "docid": "8c8830e1223734ab4bd583bcb9ae94e9", "score": "0.51423526", "text": "private void loadEulaFragment() {\n \tFragment newFragment = new EulaFragment();\n \tFragmentTransaction transaction = getFragmentManager().beginTransaction();\n\n \t// Replace whatever is in the fragment_container view with this fragment,\n \t// and add the transaction to the back stack\n \ttransaction.replace(R.id.fragment_container, newFragment);\n \ttransaction.addToBackStack(null);\n\n \t// Commit the transaction\n \ttransaction.commit();\t\n\t}", "title": "" }, { "docid": "849a25d582aae2fbdaf30c24aec91ba4", "score": "0.5138614", "text": "private void toMap(){\n\t\tsetVisible(false);\r\n\t\tgetContentPane().removeAll();\r\n\t\tsetVisible(true);\r\n\t}", "title": "" }, { "docid": "48b7bfb6e969933ffee9da8bdcd211d3", "score": "0.5119194", "text": "@Override\n public void onViewCreated(View view, @Nullable Bundle savedInstanceState) {\n super.onViewCreated(view, savedInstanceState);\n \n CustomScrollMapFragment mapFragment = ((CustomScrollMapFragment) getChildFragmentManager().findFragmentByTag(\"mapFragment\"));\n if (mapFragment == null) {\n mapFragment = new CustomScrollMapFragment();\n getChildFragmentManager().beginTransaction()\n .add(R.id.user_location_map, mapFragment, \"mapFragment\")\n .commit();\n getChildFragmentManager().executePendingTransactions();\n }\n mapFragment.getMapAsync(this);\n \n mapFragment.setListener(new CustomScrollMapFragment.OnTouchListener() {\n @Override\n public void onTouch() {\n coordinator_container.requestDisallowInterceptTouchEvent(true);\n }\n });\n }", "title": "" }, { "docid": "f06d7e65c1b1114896c2d13d90a5adcc", "score": "0.51148766", "text": "@Nullable\n @Override\n public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_maps, container, false);\n ButterKnife.bind(this, rootView);\n\n Bitmap mapErangel = BitmapFactory.decodeResource(getResources(), R.drawable.map_erangel);\n Bitmap mapMiramar = BitmapFactory.decodeResource(getResources(), R.drawable.map_miramar);\n Bitmap mapSanhok = BitmapFactory.decodeResource(getResources(), R.drawable.map_savage);\n Bitmap mapVikendi = BitmapFactory.decodeResource(getResources(), R.drawable.map_vikendi);\n\n List<Map> maps = new ArrayList<>();\n maps.add(new Map(\"Erangel\", mapErangel));\n maps.add(new Map(\"Miramar\", mapMiramar));\n maps.add(new Map(\"Sanhok\", mapSanhok));\n maps.add(new Map(\"Vikendi\", mapVikendi));\n\n recyclerViewMaps.setLayoutManager(new LinearLayoutManager(getContext()));\n recyclerViewMaps.setAdapter(new MapAdapter(maps, new MapAdapter.OnItemClickListener() {\n @Override\n public void onItemClick(Map map) {\n Intent intent = new Intent(getContext(), FullMapActivity.class);\n intent.putExtra(\"map_name\", map.getMapName());\n startActivity(intent);\n }\n }));\n\n return rootView;\n }", "title": "" }, { "docid": "4496886e5dc0e64e29c461be214656a5", "score": "0.5109258", "text": "@Override\n public void relayout()\n {\n super.relayout();\n _copyThatFits = null;\n }", "title": "" }, { "docid": "a3ff99fe221f09a1a00acdd4e65af26b", "score": "0.51042575", "text": "public FragmentFretados() {\n // Required empty public constructor\n }", "title": "" }, { "docid": "2b3e29edbd75d21853ccaa0dcb1775f0", "score": "0.5104175", "text": "public void ramasserObjet(Tuple coordObjet, Map map) {\n\t\tCase caseTemp = map.getCase(coordObjet.y, coordObjet.x);\n\t\tif (insererObjet(caseTemp.objet))\n\t\t\tcaseTemp.objet = null;\n\t}", "title": "" }, { "docid": "0f8e3b8dfd9ac73f6274b000e918e919", "score": "0.50976586", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n\n rootView = inflater.inflate(R.layout.fragment_map, container, false);\n Bundle dataFromDetail = getArguments();\n mapView = rootView.findViewById(R.id.mapView);\n mapView.onCreate(savedInstanceState);\n mapView.getMapAsync(onMapReady);\n setHasOptionsMenu(true);\n artViewModel = new ViewModelProvider(getActivity()).get(ArtViewModel.class);\n fusedLocationClient = LocationServices.getFusedLocationProviderClient(fragmentActivity);\n return rootView;\n }", "title": "" }, { "docid": "5067afc5becd4939ca7ea64d520b0a1a", "score": "0.50937945", "text": "public void mo3244o(Fragment fragment) {\n if (f2346A0) {\n StringBuilder sb = new StringBuilder();\n sb.append(\"remove: \");\n sb.append(fragment);\n sb.append(\" nesting=\");\n sb.append(fragment.mBackStackNesting);\n Log.v(\"FragmentManager\", sb.toString());\n }\n boolean z = !fragment.isInBackStack();\n if (!fragment.mDetached || z) {\n synchronized (this.f2352Y) {\n this.f2352Y.remove(fragment);\n }\n if (m2940w(fragment)) {\n this.f2367n0 = true;\n }\n fragment.mAdded = false;\n fragment.mRemoving = true;\n }\n }", "title": "" }, { "docid": "5963d3dcae2822341f6c529c40a42878", "score": "0.5093762", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n mView = inflater.inflate(R.layout.fragment_google_map, container, false);\n btnList = (Button) mView.findViewById(R.id.btn_serviciales);\n btnList.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n FragmentManager fragmentManager = getFragmentManager();\n FragmentTransaction fragmentTransaction = fragmentManager.beginTransaction();\n HomeFragment mHomeFragment = new HomeFragment();\n fragmentTransaction.replace(R.id.main_content_frame, mHomeFragment, getString(R.string.tag_fragment_home));\n fragmentTransaction.addToBackStack(getString(R.string.tag_fragment_home));\n fragmentTransaction.commit();\n }\n });\n return mView;\n }", "title": "" }, { "docid": "5356ea23601dd0d42fa0e743eaf7a50d", "score": "0.5091401", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n if (v == null){\n\n v = inflater.inflate(R.layout.fragment_map_link, container, false); ;\n ButterKnife.bind(this, v);\n initLoading(this.progrssView, this.containerHolder);\n setupMap();\n// map_link_input.addTextChangedListener(new MyTextWatcher(map_link_input) );\n }\n setupMap();\n return v ;\n }", "title": "" }, { "docid": "0ca00733d6359734f1c3e8b2a178fb70", "score": "0.5080057", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView=inflater.inflate(R.layout.fragment_llegada2, container, false);\n SupportMapFragment mapFragment = (SupportMapFragment)getChildFragmentManager()\n .findFragmentById(R.id.map);\n mapFragment.getMapAsync(this);\n return rootView;\n }", "title": "" }, { "docid": "9ff3dab566e394f7cca341411ab9c6bc", "score": "0.5079673", "text": "@Override\n public void onMapLoaded() {\n googleMap.moveCamera(cu);\n\n }", "title": "" }, { "docid": "e48e02a886b073a1fe8012eef74aa6a3", "score": "0.50773335", "text": "public void reloadMap(){\n SupportMapFragment supportMapFragment = (SupportMapFragment)getSupportFragmentManager().findFragmentById(R.id.map);\n supportMapFragment.getMapAsync(this);\n }", "title": "" }, { "docid": "0790b15ea4b49abf23e3a54a50e78ac4", "score": "0.507655", "text": "private void chargementMap() {\n String requete = \"SELECT `animal`.`id`,`animal`.`nom`,`animal`.`espece`,`animal`.`age`,`animal`.`race`,`animal`.`poids`,`animal`.`couleur`,`animal`.`vaccin`,`animal`.`etat`,`animal`.`autre`,`animal`.`sexe`,`animal`.`adr`,`adresse`.`lat`,`adresse`.`lon`FROM `sosanimaux`.`animal`,`sosanimaux`.`adresse`where `animal`.`adr`=`adresse`.`ville`;\";\n try {\n java.sql.PreparedStatement ps = MyConnection.getInstance().prepareStatement(requete);\n ResultSet resultat = ps.executeQuery();\n while (resultat.next()) {\n MapMarkerDot ville = new MapMarkerDot(resultat.getString(\"adr\"), new Coordinate(resultat.getDouble(\"lat\"), resultat.getDouble(\"lon\")));\n mapAnimal.addMapMarker(ville);\n }\n } catch (SQLException ex) {\n //Logger.getLogger(PersonneDao.class.getName()).log(Level.SEVERE, null, ex);\n System.out.println(\"erreur lors du chargement des villes \" + ex.getMessage());\n }\n }", "title": "" }, { "docid": "7ecfbae189faeeac5318e724e3cbff45", "score": "0.5074991", "text": "@Override\n public void onClick(View v) {\n View parentRow = (View) v.getParent();\n\n if (MapsActivity.pd.isShowing()) {\n MapsActivity.pd.dismiss();\n }\n MapsActivity.pd.show();\n\n TextView place_id = (TextView) parentRow.findViewById(R.id.place_id);\n String place_id_text = place_id.getText().toString();\n\n Fragment fragment = null;\n Class fragmentClass = null;\n fragmentClass = LocationDetailsActivity.class;\n try {\n // DataHolderClass.getInstance().setDistributor_id(place_id_text);\n DataHolderClass.getInstance2().setDistributor_id2(\"Time\");\n\n\n DataHolderClass.getInstancearray().setDistributor_idarray(place_id_text);\n\n fragment = (Fragment) fragmentClass.newInstance();\n\n } catch (InstantiationException e) {\n e.printStackTrace();\n } catch (IllegalAccessException e) {\n e.printStackTrace();\n }\n\n FragmentManager fragmentManager = ((FragmentActivity) holder.itemView.getContext()).getSupportFragmentManager();\n FragmentTransaction fragmentTransaction = fragmentManager.beginTransaction();\n //TODO:Note this one is originally replace, change to add to allow not refreash\n fragmentTransaction.replace(R.id.flContent2, fragment);\n fragmentTransaction.addToBackStack(null);\n fragmentTransaction.commit();\n\n\n }", "title": "" }, { "docid": "6617c6cb9db8d37b4a6098ab4a195046", "score": "0.5073491", "text": "private void refreshFragment() {\n Fragment fragment;\n String fragmentTag;\n\n // Makes new Fragment rather than detach and attach because I can't get fragment context\n if (currentFragmentTag.equalsIgnoreCase(DISCOVER_TAG)) {\n fragment = new DiscoverFragment();\n fragmentTag = DISCOVER_TAG;\n } else if (currentFragmentTag.equalsIgnoreCase(SEARCH_TAG)) {\n fragment = new SearchFragment();\n fragmentTag = SEARCH_TAG;\n } else if (currentFragmentTag.equalsIgnoreCase(SETTINGS_TAG)) {\n fragment = new SettingsFragment();\n fragmentTag = SETTINGS_TAG;\n } else if (currentFragmentTag.equalsIgnoreCase(SETTINGS_TAG)) {\n fragment = new LibraryFragment();\n fragmentTag = LIBRARY_TAG;\n } else {\n fragment = new LibsBuilder().supportFragment();\n fragmentTag = ABOUT_TAG;\n }\n\n replaceFragment(fragment, fragmentTag);\n }", "title": "" }, { "docid": "0f2492b056887fa313487f2a084b2ca7", "score": "0.50670487", "text": "private void setUpMap() {\n mMap.setOnMapLoadedCallback(new GoogleMap.OnMapLoadedCallback() {\n @Override\n public void onMapLoaded() {\n Story story = databaseHandler.getStoryByStoryId(storyId);\n storyElementIds = story.getStoryElementId();\n ArrayList<StoryElement> storyElements = new ArrayList<StoryElement>();\n for (int i = 0; i < storyElementIds.length; i++) {\n StoryElement currentElement = databaseHandler.getStoryElementByStoryElementId(storyElementIds[i]);\n if(currentElement != null){\n storyElements.add(databaseHandler.getStoryElementByStoryElementId(storyElementIds[i]));\n }\n }\n\n addStoryElementsToMap(storyElements);\n\n PolylineOptions storyLine = databaseHandler.getPolylineOptionsByStoryId(storyId);\n storyLine.color(Color.BLUE);\n addPolylineToMap(storyLine);\n }\n });\n }", "title": "" }, { "docid": "e18a03c2cd153d3ee2ed74fe8c200175", "score": "0.5065508", "text": "public void onGotoMainFragment() {\n\n getSupportFragmentManager().beginTransaction().replace(R.id.container, fragment1).commit();\n\n\n }", "title": "" }, { "docid": "12aa823018057e0ed9638d30d995bc5a", "score": "0.5064782", "text": "public void getBinsPositionOnMap (){\n map = mapView.getMap();\n\n try {\n\n allBinsInfo.setContext(getActivity().getBaseContext());//need to recheck\n allBinsInfo.getAllRegBins();\n\n while(BinInfo.bins==null){}\n\n for (int i = 0; BinInfo.bins!=null && i < BinInfo.bins.length(); i++) {\n // MarkerOptions options = new MarkerOptions().position();\n //\n // options.position(Bangalore1);\n // options.position(Bangalore2);\n // options.position(Bangalore3);\n JSONObject c = BinInfo.bins.getJSONObject(i);\n map.addMarker(new MarkerOptions().position(new LatLng(Double.parseDouble(c.getString(TAG_LATITUDE)), Double.parseDouble(c.getString(TAG_LONGITUDE)) ))\n .draggable(false)\n .title(\"Bin\"+i)\n );\n }\n\n map.getUiSettings().setMyLocationButtonEnabled(false);\n map.setMyLocationEnabled(true);\n CameraUpdate cameraUpdate=CameraUpdateFactory.newLatLngZoom(Bangalore1,13); // get center position and zoom level\n MapsInitializer.initialize(this.getActivity());\n\n map.animateCamera(cameraUpdate);\n } catch (JSONException e) {\n e.printStackTrace();\n }\n\n //draw path\n\n// int size_coordinates = coordinates.length;\n\n\n// for(int i=0;i<size_coordinates-1;i++) {\n// LatLng source = new LatLng(coordinates[i][0],coordinates[i][1]);\n// LatLng dest = new LatLng(coordinates[i+1][0],coordinates[i+1][1]);;\n// //String url = getMapsApiDirectionsUrl(source, dest);\n// // Log.d(TAG, \"hehehe in oncreate \" + i + \" \" + url);\n// // ReadTask downloadTask = new ReadTask();\n// // downloadTask.execute(url);\n//\n//// cameraUpdate = CameraUpdateFactory.newLatLngZoom(Bangalore1,13);\n//\n// addMarkers();\n// }\n\n\n\n\n // Needs to call MapsInitializer before doing any CameraUpdateFactory calls\n// try {\n\n// } catch (GooglePlayServicesNotAvailableException e) {\n// e.printStackTrace();\n// }\n\n // Updates the location and zoom of the MapView\n// CameraUpdate cameraUpdate = CameraUpdateFactory.newLatLngZoom(Bangalore1,13);\n// map.animateCamera(cameraUpdate);\n }", "title": "" }, { "docid": "5c4a15119478f4966090271dd48cbd77", "score": "0.50601465", "text": "private void loadFragments(Fragment fragment, String tag) {\n fragmentManager = this.getSupportFragmentManager();\n fragmentTransaction = fragmentManager.beginTransaction();\n fragmentTransaction.replace(R.id.lytContent, fragment, tag);\n fragmentTransaction.commit();\n }", "title": "" }, { "docid": "322f2565d902f9b2a8857951cf6b2d8e", "score": "0.5052544", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_map, container, false);\n }", "title": "" }, { "docid": "44ba3510bbbc80c41622a4d966e2169a", "score": "0.5048404", "text": "@Override\n public void onClick(View v) {\n opcionFragment = \"2\";\n tituloFragment.setText(\"RECIBIDOS\");\n editor.putString(\"opcionfragment\", String.valueOf(opcionFragment));\n editor.commit();\n fragment = new MensajesFragment();\n FragmentManager fragmentManager4 = getFragmentManager();\n fragmentManager4.beginTransaction().replace(R.id.frame, fragment).addToBackStack(\"Mensajes\").commit();\n }", "title": "" }, { "docid": "38f512534ddd8296b3ca4d6f970d1f40", "score": "0.5048019", "text": "public void reset() {\n \tm_geom.setVertices(m_geomSave.getVertices().clone());\n \tm_geom.update(m_geom);\n }", "title": "" }, { "docid": "4c882994c82d5f82d2ee372001991919", "score": "0.50471747", "text": "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\ttry{\n\t\t\t\t\n\t\t\t\tFragment newFrag = new ProdutoFragment((int)getItemId(pos));\n\t\t\t\t\n\t\t\t\tFragmentTransaction trans = activity.getFragmentManager().beginTransaction();\n\t\t\t\t\n\t\t\t\ttrans.replace(R.id.frame_container, newFrag);\n\t\t\t\ttrans.addToBackStack(null);\n\t\t\t\t\n\t\t\t\ttrans.commit();\n\t\t\t\t}catch(Exception e){}\n\t\t\t}", "title": "" }, { "docid": "b507cb25270123617d18b999a586ab01", "score": "0.50455165", "text": "public void changeFragment(String tag){\n\n Fragment tmpFragment;\n FragmentTransaction fragmentTransaction = getFragmentManager().beginTransaction();\n\n //look to see if we have already added the fragment\n tmpFragment = getFragmentManager().findFragmentByTag(tag);\n\n //we currently have a fragment, hide it\n if (currentFragment != null){\n fragmentTransaction.detach(currentFragment);\n }\n\n //did not find the fragment\n if (tmpFragment == null){\n if (tag.equals(\"map\")){\n currentFragment = CustomMapFragment.newInstance();\n } else if (tag.equals(\"list\")){\n currentFragment = CustomListFragment.newInstance();\n }else {\n //TODO\n }\n fragmentTransaction.add(R.id.content_frame, currentFragment, tag); //add fragment for 1st time\n } else {\n //we found the fragment\n currentFragment = tmpFragment;\n fragmentTransaction.attach(currentFragment); //show the fragment we found\n }\n fragmentTransaction.commit();\n }", "title": "" }, { "docid": "c7d4b218ec0d470029aaaaa0085b5656", "score": "0.50443745", "text": "private void replaceFragment(FragmentManager fm, int id) {\r\n Utils\r\n .logh(TAG,\r\n \"replaceFragment EntryCount: \"\r\n + fm.getBackStackEntryCount()\r\n + \" size: \"\r\n + (null == fm.getFragments() ? \"0[null]\" : fm.getFragments()\r\n .size()));\r\n String tag = String.valueOf(id);\r\n // Do replacement\r\n FragmentTransaction trans = fm.beginTransaction();\r\n if (null == fm.findFragmentByTag(tag)) {\r\n trans.replace(R.id.content_frame, navigateMap.get(id), tag);\r\n // if not exist, add to stack{fm.getFragments()}\r\n // if exist, do not add to avoid BackStackEntry increase\r\n Utils.logh(TAG, \"null +++ add to back\");\r\n // trans.addToBackStack(tag);\r\n } else {\r\n trans.replace(R.id.content_frame, fm.findFragmentByTag(tag), tag);\r\n }\r\n trans.commit();\r\n Utils.logh(TAG, \"replace map: \" + navigateMap.get(id) + \"\\n\"\r\n + \"---- fm tag: \" + fm.findFragmentByTag(tag));\r\n // Reset focus of navigation bar\r\n for (int i = 0, size = navigateMap.size(); i < size; i++) {\r\n int curId = navigateMap.keyAt(i);\r\n Utils.logh(TAG, \"curId: \" + curId);\r\n if (curId == id) {\r\n findViewById(id).setSelected(true);\r\n } else {\r\n findViewById(curId).setSelected(false);\r\n }\r\n }\r\n }", "title": "" }, { "docid": "8865210073c5b4e9ac3be4e8b6394867", "score": "0.5039063", "text": "private void loadFragment(Fragment fragment) {\n // load fragment\n FragmentTransaction transaction = getSupportFragmentManager().beginTransaction();\n transaction.replace(R.id.content_juri, fragment);\n transaction.addToBackStack(null);\n transaction.commit();\n }", "title": "" }, { "docid": "0e556c068c7620347e51d9282c704bf4", "score": "0.5037832", "text": "private void adjustMap()\n\t{\n\t\tArrayList<Item> l = null;\n\t\tif(e != null)\n\t\t{\n\t\t\tl = getItems();\n\t\t}\n\t\te = new Partition[(width/partitionSize)+1][(height/partitionSize)+1][(depth/partitionSize)+1];\n\t\tfor(int i = (width/partitionSize); i >= 0; i--)\n\t\t{\n\t\t\tfor(int a = (height/partitionSize); a >= 0; a--)\n\t\t\t{\n\t\t\t\tfor(int q = (depth/partitionSize); q >= 0; q--)\n\t\t\t\t{\n\t\t\t\t\te[i][a][q] = new Partition();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif(l != null)\n\t\t{\n\t\t\tfor(int i = l.size()-1; i >= 0; i--)\n\t\t\t{\n\t\t\t\taddElement(l.get(i));\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "9edaf66dda08516ffc28647f70ba3c26", "score": "0.50363106", "text": "@Override\n public void onClick(View v) {\n if (m_map != null && m_polygon != null) {\n m_map.removeMapObject(m_polygon);\n m_polygon = null;\n } else {\n createPolygon();\n }\n }", "title": "" }, { "docid": "4a42ff7ea9194e49ceda5d519db8a323", "score": "0.503624", "text": "@Override\n public void onClick(View v) {\n\n opcionFragment = \"3\";\n editor.putString(\"opcionfragment\", String.valueOf(opcionFragment));\n editor.commit();\n fragment = new MensajesFragment();\n FragmentManager fragmentManager4 = getFragmentManager();\n fragmentManager4.beginTransaction().replace(R.id.frame, fragment).addToBackStack(\"Mensajes\").commit();\n }", "title": "" }, { "docid": "d40480f8454a7c181216f1bf6b421046", "score": "0.503335", "text": "private void onProcessFootprint(String message) {\n\n if(targetBitmap == null && mapBitmap != null) {\n targetBitmap = Bitmap.createBitmap(mapWidth, mapHeight, Bitmap.Config.ARGB_8888);\n backupTargetBitmap = Bitmap.createBitmap(mapWidth, mapHeight, Bitmap.Config.ARGB_8888);\n }\n else{\n targetBitmap = backupTargetBitmap.copy(backupTargetBitmap.getConfig(), true);\n }\n\n try {\n JSONObject jsonobject = new JSONObject(message);\n JSONObject msgJsonObject = new JSONObject(jsonobject.getString(\"msg\"));\n JSONObject polygonJsonObject = new JSONObject(msgJsonObject.getString(\"polygon\"));\n JSONArray pointsJsonArray = polygonJsonObject.getJSONArray(\"points\");\n\n int countX = 0;\n int countY = 0;\n\n for(int i=0; i<pointsJsonArray.length(); i++)\n {\n JSONObject item = pointsJsonArray.getJSONObject(i);\n MapPoint mapPoint = new MapPoint();\n double x = Double.parseDouble(item.getString(\"x\"));\n double y = Double.parseDouble(item.getString(\"y\"));\n double z = Double.parseDouble(item.getString(\"z\"));\n mapPoint.setX(x);\n mapPoint.setY(y);\n mapPoint.setZ(z);\n int point_X = meterToCell(mapPoint.getX(), mapOrigin_x, mapResolution);\n int point_Y = meterToCell(mapPoint.getY(), mapOrigin_y, mapResolution);\n countX = countX + point_X;\n countY = countY + ((mapHeight - point_Y) - 1);\n //targetBitmap.setPixel(point_X, ((mapHeight - point_Y) - 1), Color.RED);\n }\n\n targetX = countX / pointsJsonArray.length();\n targetY = countY / pointsJsonArray.length();\n\n } catch (JSONException e) {\n e.printStackTrace();\n }\n\n }", "title": "" }, { "docid": "520b4c9c98e3c99fcfcbcb66fc830290", "score": "0.50295633", "text": "public void refrescarFragmentActual() {\n\n\t\tFragment fragment = getVisibleFragment();\n\t\tif (fragment != null) {\n\n\t\t\tint fragmentActual = fragment.getArguments().getInt(\n\t\t\t\t\tConst.FRAGMENT_ACTUAL);\n\n\t\t\tswitch (fragmentActual) {\n\t\t\tcase Const.POSICION_OPCION_CATEGORIAS:\n\n\t\t\t\tCategoriaFragment CFragment = (CategoriaFragment) fragment;\n\t\t\t\tCFragment.cargarInfoGeneral();\n\t\t\t\tbreak;\n\n\t\t\tcase Const.POSICION_OPCION_CATALOGO_APP:\n\t\t\t\tCatalogoFragment CatFragment = (CatalogoFragment) fragment;\n\t\t\t\tCatFragment.cargarInfoGeneral();\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase Const.POSICION_OPCION_INFO_APP:\n\t\t\t\tInformacionAppFragment InfFragment = (InformacionAppFragment) fragment;\n\t\t\t\tInfFragment.cargarInfoGeneral();\n\t\t\t\tbreak;\n\n\t\t\t}\n\n\t\t}\n\t}", "title": "" }, { "docid": "636ad8dfe9fa9f0d2d9b2f6944ab526f", "score": "0.50269794", "text": "public void clear()\r\n/* 353: */ {\r\n/* 354:465 */ this.map.clear();\r\n/* 355: */ }", "title": "" }, { "docid": "f490fe8168cf571ba305630dbe30617a", "score": "0.50241655", "text": "public void replaceData(Comparable series) {\n //clear memory first\n lengthHist = new XYSeries(series, true, false);\n\n //add data\n\n if (fragmentMap.size() > 0) {\n Iterator it = fragmentMap.entrySet().iterator();\n \n while(it.hasNext()) {\n Map.Entry mapEntry = (Map.Entry)it.next();\n Fragment f = (Fragment)mapEntry.getValue();\n addData(series, f);\n }\n }\n \n\t\tplotData();\n \n \n }", "title": "" }, { "docid": "2bec8cd2cae5ea76ad1995cb2df3b872", "score": "0.50215876", "text": "private void populateMapData() {\n boolean yoDataIsStale = true;\n try {\n if (resolver.getAllPointsOfInterest().size() > 0) {\n yoDataIsStale = false;\n loadMapMarkers();\n }\n } catch(RemoteException e) {\n yoDataIsStale = true;\n Log.e(LOG_TAG, e.getMessage());\n }\n\n if (yoDataIsStale) {\n ScraperWikiLoaderTask scraperWikiLoaderTask = new ScraperWikiLoaderTask(MapsActivity.this);\n scraperWikiLoaderTask.execute();\n }\n }", "title": "" }, { "docid": "a5fb7dc01d63e283048c371b190a1359", "score": "0.5020637", "text": "@Override\n public void onClick(View v) {\n Fragment vFragment = new SchermataLocali();\n FragmentTransaction ft = getFragmentManager().beginTransaction();\n ft.replace(R.id.container, vFragment);\n ft.commit();\n mDrawerLayout.closeDrawers();\n }", "title": "" }, { "docid": "fef4c0cf3a121bb887bd1312d179c8ad", "score": "0.5019266", "text": "public void clear()\n/* */ {\n/* 379 */ this.map.clear();\n/* */ }", "title": "" }, { "docid": "7570f721587c899d634deb02166257de", "score": "0.50139153", "text": "private void setFragment(Fragment fragment) {\n FragmentTransaction fragmentTransaction = getSupportFragmentManager().beginTransaction();\n fragmentTransaction.replace(R.id.main_frame, fragment);\n fragmentTransaction.commit();\n }", "title": "" } ]
d22a66f2dd209a1db970607348636a52
A method to set the turn of a map
[ { "docid": "03e2d28f54c3960a027cfc7156bab6c7", "score": "0.0", "text": "public void setTurn(Turn turn) {\n this.turn = turn;\n }", "title": "" } ]
[ { "docid": "257cb90103671734c8d755f06a6a3168", "score": "0.66351324", "text": "@Override\n \tpublic void setMapValue(int x, int y, boolean value) {\n \t\tmap.set(x, y, value);\n \t}", "title": "" }, { "docid": "90e2501c7d6b0302d43b928dd76294dc", "score": "0.6455296", "text": "public void setMap(Map map)\n {\n this.map = map;\n }", "title": "" }, { "docid": "125750ee695c9883acbc772924f9c844", "score": "0.6393211", "text": "public static void setMap(Map m) {\n map = m;\n }", "title": "" }, { "docid": "27ab6d1502ae07c1cbf80547733d54fa", "score": "0.63366854", "text": "public void setMap(Map map) {\r\n\t\tthis.map = map;\r\n\t}", "title": "" }, { "docid": "0ed42d27388ccdd23c3a13fcde409401", "score": "0.63152283", "text": "protected void setCurrentMap(FullMap map) {\n\t\tthis.currentMap = map;\n\t}", "title": "" }, { "docid": "fbfd284c3179cb1532e4b899d2e6cfed", "score": "0.6312146", "text": "public void setMap(Map map) {\n this.map = map;\n }", "title": "" }, { "docid": "84d4c7d65735cbb1b6609ffca082e8ee", "score": "0.63107973", "text": "public void setMap(Coordinates coordinate, char ch) {\r\n\t\tcurrentMap[coordinate.getY()][coordinate.getX()] = ch;\r\n\t}", "title": "" }, { "docid": "42e1248edfc27dd09961838f55b18482", "score": "0.6285669", "text": "private void setGameMapping() {\t\n\t\tRandom random;\n\t\trandom = new Random();\n\t\tmappingSeed = random.nextInt();\t\t//use the first generated integer to create a random mapping seed (used when loading games in order to reconstruct the mapping)\n\t\tgenerateMapping(mappingSeed);\n\t}", "title": "" }, { "docid": "556129f8e5db953af74002af425e8579", "score": "0.6282091", "text": "public void setMap(Intersection[][] map, WindDirections lastWindDirection) {\r\n //determines the map width and height the try and catch is to make sure there isn't a exception thrown\r\n this.mapHeight = 0;\r\n this.mapWidth = 0;\r\n try {\r\n while (map[mapWidth][0] != null) {\r\n mapWidth++;\r\n }\r\n } catch (Exception ignored) {\r\n\r\n }\r\n try {\r\n while (map[0][mapHeight] != null) {\r\n mapHeight++;\r\n }\r\n } catch (Exception ignored) {\r\n\r\n }\r\n\r\n this.state = MapSolverState.Nothing;\r\n this.lastWindDirection = lastWindDirection;\r\n this.directionsNESWFromEnd = new ArrayList<>();\r\n this.directionsNESWFromStart = new ArrayList<>();\r\n this.instructions = new ArrayList<>();\r\n this.map = map;\r\n this.firstCall = true;\r\n }", "title": "" }, { "docid": "5080e9e0afbb29c39fcede4fd8f61b7f", "score": "0.6262161", "text": "public void setMap(Map<Offset, String> map) { this.map = map; }", "title": "" }, { "docid": "6e9903a04698a7bf6b6f6928d1099a31", "score": "0.62417805", "text": "public void setMap(Square[][] map) {\n\t\tthis.map = map;\n\t}", "title": "" }, { "docid": "a6bd604f3b573797a7d20f39d7ef0e32", "score": "0.62271154", "text": "public void setMap(Map map) {\n\t\tthis.map = map;\n\t}", "title": "" }, { "docid": "903f043b93faec576084ef17993136c9", "score": "0.62064075", "text": "public void setMap(int[] map) {\r\n\t\tthis.map = map;\r\n\t}", "title": "" }, { "docid": "999533dc24e855a00902be3c5908b2f2", "score": "0.61656606", "text": "public void setMap(char map[][]) {\r\n\t\tinitialMap = map;\r\n\t\tcloneMap();\r\n\t}", "title": "" }, { "docid": "e9ddf4fc866e67e93742276ebd20eb56", "score": "0.61426336", "text": "public void setMap(Intersection[][] map) {\r\n setMap(map, WindDirections.North);\r\n }", "title": "" }, { "docid": "1260f728999f8dbd4f72ae023deb0349", "score": "0.6110199", "text": "public void setMap(GridMap _map);", "title": "" }, { "docid": "9fa8d5aeadd8ecf187c677db3087adec", "score": "0.60992426", "text": "void passTurn(){this.getMap().getBoard().passTurn();}", "title": "" }, { "docid": "dc734bb46cb8c15ddae59a868f55d2e7", "score": "0.60697025", "text": "public void updateMap() {\r\n\t\tcloneMap();\r\n\t\r\n\t\tupdateDoors();\r\n\t\tupdateKey();\r\n\t\tupdateHero();\r\n\t\tupdateGuardians();\r\n\t\tupdateOgres();\r\n\t}", "title": "" }, { "docid": "20f5c67cc3914d98258a51bef1f62d10", "score": "0.60592115", "text": "public void mo1773a(Map<String, String> map) {\n }", "title": "" }, { "docid": "a0aeb90c531be25d297a9150afd6b9c4", "score": "0.6050011", "text": "public static void setMap(Map map) {\n settings = map;\n }", "title": "" }, { "docid": "2b32594a65d59dca72f487e668f16cab", "score": "0.6030556", "text": "void mo6348a(boolean z, Map<String, String> map);", "title": "" }, { "docid": "4c765d9ef2f3237bce8ee0d9affe1cc4", "score": "0.5990817", "text": "void setMap(String map) {\n builtLocalize = null;\n currentExplorationMap = map;\n }", "title": "" }, { "docid": "5b112e44aed0e2d766e28fdb570a12c7", "score": "0.59718746", "text": "public void setMap(String map) {\n sql.updateSQL(\"UPDATE \" + TABLE + \" SET \" + MAP + \"=\" + map + \" WHERE \" + NAME + \"='\" + server + \"'\");\n }", "title": "" }, { "docid": "f0d676c1eaa122ce33b0dc1266323273", "score": "0.5967278", "text": "private void initMap() {\n for (int i=0; i<map.length; i++) {\n for (int j=0; j<map[0].length; j++) {\n if (i == 0 || i == 13 || j == 0 || j == 29 )\n map[i][j] = 1;\n else\n map[i][j] = 0;\n }\n }\n }", "title": "" }, { "docid": "cb3b80303027b3a95b7b84f8a9027662", "score": "0.5954486", "text": "private void toggleMapType(int type) {\n\t\tswitch (type) {\n\t\tcase MAP_TYPE_MAP:\n\t\t\tmap.setSatellite(false);\n\t\t\tbreak;\n\t\tcase MAP_TYPE_SATELLITE:\n\t\t\tmap.setSatellite(true);\n\t\t\tbreak;\n\t\t}\n\t}", "title": "" }, { "docid": "708235b6f78b628092e4d664f547b5ff", "score": "0.5944472", "text": "void restoreMap(Map<Integer, Boolean> t, Map<Integer, Boolean> s) {\n t.clear();\n \n for (Integer key: s.keySet()) {\n t.put(key, s.get(key));\n }\n }", "title": "" }, { "docid": "7ed37c578ea05366bdf2f53f716d455f", "score": "0.592669", "text": "public void changeMapRequest(Map map){\r\n\t\tthis.map = map;\r\n\t\tserver.getGameLogic().setMap(map);\r\n\t}", "title": "" }, { "docid": "6f1056706b9d49970de6d5b162b76e5b", "score": "0.5891597", "text": "public abstract void executeTurn(Map map);", "title": "" }, { "docid": "5af026110501911b3c37766e28436e8e", "score": "0.58554095", "text": "public void fillMap() {\n \t\n }", "title": "" }, { "docid": "e9d3978174d20f84f288f9dbd4b4daf8", "score": "0.5807229", "text": "public Map1(int state){\r\n }", "title": "" }, { "docid": "6a54f60e31006ad5c6c17171ed6bf33f", "score": "0.5805828", "text": "public ToggleMapModifier(MyoMapModifier mod) {\n this(mod, -1);\n }", "title": "" }, { "docid": "9fab046263209df53b703d6ac2f0381d", "score": "0.5800615", "text": "public int setMap(boolean map[][]) {\n\t\tthis.map = map;\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "09b7264c75b9c824e7512b488c99103c", "score": "0.5796409", "text": "public static void assign() { //assign function is used for the querying of Tile values using the letter as a key\r\n value.put('A', 1); //this assigns 'A' its integer value of '1' and adds it to the hashMap value\r\n value.put('B', 3);\r\n value.put('C', 3);\r\n value.put('D', 2);\r\n value.put('E', 1);\r\n value.put('F', 4);\r\n value.put('G', 2);\r\n value.put('H', 4);\r\n value.put('I', 1);\r\n value.put('J', 8);\r\n value.put('K', 5);\r\n value.put('L', 1);\r\n value.put('M', 3);\r\n value.put('N', 1);\r\n value.put('O', 1);\r\n value.put('P', 3);\r\n value.put('Q', 10);\r\n value.put('R', 1);\r\n value.put('S', 1);\r\n value.put('T', 1);\r\n value.put('U', 1);\r\n value.put('V', 4);\r\n value.put('W', 4);\r\n value.put('X', 8);\r\n value.put('Y', 4);\r\n value.put('Z', 10);\r\n value.put(' ', 0);// this blank char represents the blank tile that can be used as any letter in the game of scrabble\r\n\t}", "title": "" }, { "docid": "5c238d90da70b8f062a444f118d5ce4f", "score": "0.57684517", "text": "@Test\n\tpublic void testSetMap_1()\n\t\tthrows Exception {\n\t\tGame fixture = GameFactory.createGame2();\n\t\tMap newMap = new Map(GameFactory.createGame(), 1, 1);\n\n\t\tfixture.setMap(newMap);\n\n\t\t// add additional test code here\n\t\t// An unexpected exception was thrown in user code while executing this test:\n\t\t// java.lang.IllegalStateException: game.getNextId not implemented\n\t\t// at net.sf.freecol.common.model.Game.getNextId(Game.java:298)\n\t\t// at net.sf.freecol.common.model.FreeColGameObject.<init>(FreeColGameObject.java:72)\n\t\t// at net.sf.freecol.common.model.Map.<init>(Map.java:280)\n\t}", "title": "" }, { "docid": "4ee72efc65f5e69a4420464c94bb74ff", "score": "0.5765997", "text": "public static void setmap_patent(Map<Object, Set<String>> map) {\n\t\t// TODO Auto-generated method stub\n\t\tmap_patent = map;\n\t}", "title": "" }, { "docid": "f2079ef1ab63a51444fcc2d8458b48d6", "score": "0.576065", "text": "@Override\r\n\tpublic void setContactMap(Map<String, Object> arg0) {\n\t\tthis.mMapNumber = arg0;\r\n\r\n\t}", "title": "" }, { "docid": "dbbb39544d04a7d5aba3def5e8e5389f", "score": "0.57501525", "text": "public static void makeMap()\n {\n }", "title": "" }, { "docid": "c5f97a8e613d330921f03b9556d15f33", "score": "0.5748389", "text": "private void setMove(Tile t)\n\t {\n\t\t Coor loc;\n\t\t int rot;\n\t\t // decisions to set loc and rot...\n\t\t//move = new Move(loc,rot,t);\n\t }", "title": "" }, { "docid": "e6d8d79c6ff8eb3d821527a6c4bfc775", "score": "0.5745993", "text": "private void stitchMap(char view[][]) {\n char[][] newView = rotate_view(view, direction);\n // for each y coordinate\n for (int i = 0; i < 5; i++) {\n // for each x coordinate\n for (int j = 0; j < 5; j++) {\n // convert the viewCoordinate to the mapCoordinate\n Cood newCood = createCood(i, j);\n // record the positions of everything in the map\n if (view[j][i] != '\\0') {\n map.put(newCood, newView[j][i]);\n } else {\n if (onWater) {\n map.put(newCood, '~');\n } else {\n map.put(newCood, ' ');\n }\n }\n }\n }\n map.put(new Cood(0,0), 'G');\n // DEBUG\n print_map();\n }", "title": "" }, { "docid": "354c1bae9ba731f76e4f91dd5812186e", "score": "0.5733666", "text": "public int setBit(int bitMap,int i) {\n return (bitMap | (1 << i));\n }", "title": "" }, { "docid": "10634b7165f5c11fd19ab16d767a6b7a", "score": "0.57212937", "text": "private void setGameState (ArrayList<ArrayList<Block>> newGameMap) {\n this.gameMap = newGameMap;\n }", "title": "" }, { "docid": "90d1dba8e0bafefa9b0d0a2fce7d039e", "score": "0.57009184", "text": "@Test\n\tpublic void testSetMap_4()\n\t\tthrows Exception {\n\t\tGame fixture = GameFactory.createGame2();\n\t\tMap newMap = new Map(GameFactory.createGame(), 1, 1);\n\n\t\tfixture.setMap(newMap);\n\n\t\t// add additional test code here\n\t\t// An unexpected exception was thrown in user code while executing this test:\n\t\t// java.lang.IllegalStateException: game.getNextId not implemented\n\t\t// at net.sf.freecol.common.model.Game.getNextId(Game.java:298)\n\t\t// at net.sf.freecol.common.model.FreeColGameObject.<init>(FreeColGameObject.java:72)\n\t\t// at net.sf.freecol.common.model.Map.<init>(Map.java:280)\n\t}", "title": "" }, { "docid": "642f8d246ebb0a31c6c4bf1bd2d395b8", "score": "0.57005215", "text": "@Override\n public void setParameterMap(Map arg0) {\n\n }", "title": "" }, { "docid": "8bd6231486a7e9d1ac5a7974981fc603", "score": "0.56993896", "text": "@Test\n\tpublic void testSetMap_2()\n\t\tthrows Exception {\n\t\tGame fixture = GameFactory.createGame2();\n\t\tMap newMap = new Map(GameFactory.createGame(), 1, 1);\n\n\t\tfixture.setMap(newMap);\n\n\t\t// add additional test code here\n\t\t// An unexpected exception was thrown in user code while executing this test:\n\t\t// java.lang.IllegalStateException: game.getNextId not implemented\n\t\t// at net.sf.freecol.common.model.Game.getNextId(Game.java:298)\n\t\t// at net.sf.freecol.common.model.FreeColGameObject.<init>(FreeColGameObject.java:72)\n\t\t// at net.sf.freecol.common.model.Map.<init>(Map.java:280)\n\t}", "title": "" }, { "docid": "0cf2011831a1d7a644bc56cc9f58df97", "score": "0.5685365", "text": "public final void setActionMap(ActionMap am) {\n actionMap = am;\n setFlag(ACTIONMAP_CREATED, true);\n }", "title": "" }, { "docid": "91fbede116ac3bafb4ef4d0ea1627c4a", "score": "0.56852394", "text": "void setTile(GameTile tile);", "title": "" }, { "docid": "0e1ece6faf97be4798adbff49152131d", "score": "0.56803447", "text": "private void setInitialPlayerMapping() {\n\t\tfor(int index=0;index<playerMapping.length;index++) {\n\t\t\tif(letterFrequency[index]==0) \n\t\t\t\tplayerMapping[index] = index;\n\t\t\telse \n\t\t\t\tplayerMapping[index] = NOT_MAPPED;\t\t\n\t\t}\n\t}", "title": "" }, { "docid": "a94ac3da04d20b101dc9137589356014", "score": "0.5671571", "text": "private void resetMap(Int2ObjectMap<Int2IntMap> map) {\n\t\tfor (int key : map.keySet()) {\n\t\t\tmap.put(key, new Int2IntOpenHashMap());\n\t\t}\n\t}", "title": "" }, { "docid": "e366c8db6793a3505fe0fb96a8abd025", "score": "0.5657338", "text": "@Test\n\tpublic void testSetMap_3()\n\t\tthrows Exception {\n\t\tGame fixture = GameFactory.createGame2();\n\t\tMap newMap = new Map(GameFactory.createGame(), 1, 1);\n\n\t\tfixture.setMap(newMap);\n\n\t\t// add additional test code here\n\t\t// An unexpected exception was thrown in user code while executing this test:\n\t\t// java.lang.IllegalStateException: game.getNextId not implemented\n\t\t// at net.sf.freecol.common.model.Game.getNextId(Game.java:298)\n\t\t// at net.sf.freecol.common.model.FreeColGameObject.<init>(FreeColGameObject.java:72)\n\t\t// at net.sf.freecol.common.model.Map.<init>(Map.java:280)\n\t}", "title": "" }, { "docid": "3bcb7828bcd8b6130281fe1c2df94d55", "score": "0.56523407", "text": "private void setUpMap() {\n UpDateMapToUserLocation();\n CheckLongTapMap();\n }", "title": "" }, { "docid": "8ec7aec0ebc8fc9830d0581ec7f40380", "score": "0.565063", "text": "private void updateMap(int competitionMap[][]){\n\n\n\t\tfor(int row=0; row<12 ;row++){\n\t\t\tfor(int column = 0; column<12; column++){\n\t\t\t\tif(row==0){\n\t\t\t\t\tmap[row][column][3]=1;\n\t\t\t\t}\n\t\t\t\tif(row==11){\n\t\t\t\t\tmap[row][column][5]=1;\n\t\t\t\t}\n\t\t\t\tif(column==0){\n\t\t\t\t\tmap[row][column][4]=1;\n\t\t\t\t}\n\t\t\t\tif(column==11){\n\t\t\t\t\tmap[row][column][2]=1;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\n\t\tfor(int row =0; row < competitionMap.length; row++){\n\t\t\tint i = (competitionMap[row][0]+15)/30;\n\t\t\tint j = (competitionMap[row][1]+15)/30;\n\t\t\tif(i-1>=0){\n\t\t\t\tmap[i-1][j][5]=1;\n\t\t\t}\n\n\t\t\tif(i+1<=11){\n\t\t\t\tmap[i+1][j][3]=1;\n\t\t\t}\n\t\t\tif(j-1>=0){\n\t\t\t\tmap[i][j-1][2]=1;\n\t\t\t}\n\t\t\tif(j+1<=11){\n\t\t\t\tmap[i][j+1][4]=1;\n\t\t\t}\n\t\t}\n\n\t}", "title": "" }, { "docid": "906603242feaa634a655ed682c90a19d", "score": "0.56373614", "text": "private void siftMap() {\n Iterator it = map.entrySet().iterator();\n String key , hkey;\n Element val;\n Way temp;\n\n List<Node> nodes;\n\n while (it.hasNext()) {\n Map.Entry entry = (Map.Entry) it.next();\n key = (String) entry.getKey();\n val = (Element)entry.getValue();\n hkey = val.getTags().get(\"highway\");\n if(key.charAt(0) == 'W' && hkey != null ) {\n switch (hkey) {\n case \"motorway\":\n case \"trunk\":\n case \"primary\":\n case \"secondary\":\n case \"tertiary\":\n case \"unclassified\":\n case \"residential\":\n case \"service\":\n case \"motorway_link\":\n case \"trunk_link\":\n case \"primary_link\":\n case \"secondary_link\":\n case \"tertiary_link\":\n case \"living_street\":\n case \"raceway\":\n case \"road\":\n siftedMap.put((String)entry.getKey(),(Way)entry.getValue());\n break;\n default:\n break;\n }\n }\n else\n it.remove();\n }\n\n Iterator<Map.Entry<String, Way>> iter = siftedMap.entrySet().iterator();\n Node node, nextnode, newnode;\n SelectedRect rect = sessionObjects.getSelectedRect();\n Set<String> addedNodes = new HashSet<>();\n while(iter.hasNext()) {\n //System.out.println(\"next\");\n Way way = iter.next().getValue();\n nodes = way.getNodes();\n for (int i = 0; i < nodes.size() - 1; i++) {\n node = nodes.get(i);\n nextnode = nodes.get(i + 1);\n //добавим точки на пересечении границ и дорог\n boolean currout = false;\n boolean nextout = false;\n if (rect.inRectangle(node) && !rect.inRectangle(nextnode)) {\n nextout = true;\n } else if (!rect.inRectangle(node) && rect.inRectangle(nextnode)) {\n currout = true;\n }\n if (nextout || currout) {\n\n newnode = nodeOnBoundaryBetween(node, nextnode);\n if (newnode == null) {\n\n }\n else {\n String keystr = way.getId() + newnode.getLon() + newnode.getLat();\n if(!addedNodes.contains(keystr)) {\n addedNodes.add(keystr);\n\n if (nextout) nodes.set(i + 1, newnode);\n if (currout) nodes.set(i, newnode);\n\n }\n }\n\n }\n }\n }\n iter = siftedMap.entrySet().iterator();\n while(iter.hasNext()) {\n nodes = iter.next().getValue().getNodes();\n Iterator<Node> nodesIter = nodes.iterator();\n while(nodesIter.hasNext()) {\n node = nodesIter.next();\n if(!sessionObjects.getSelectedRect().inRectangle(node)) {\n nodesIter.remove();\n }\n }\n }\n\n\n map = null;\n }", "title": "" }, { "docid": "2d894c05bdf6fd1aacf1d4e281176aa5", "score": "0.56369793", "text": "private void initiateCurrentMap() {\n boolean dungeon = ThreadLocalRandom.current().nextBoolean();\n this.maps[this.index - 1] = createNewMap(this.index, this.player.getLevel(), dungeon,\n this.difficulty);\n this.index++;\n }", "title": "" }, { "docid": "6954e4d7de4db45242c7ab47c5f2517a", "score": "0.56270194", "text": "public void setFitness(Map<I, T> f);", "title": "" }, { "docid": "05d4a508fa702b01e30df4c80425b764", "score": "0.559311", "text": "protected final void setKeys() {\n\t\tupKey = keyMap[0];\n\t\trightKey = keyMap[1];\n\t\tdownKey = keyMap[2];\n\t\tleftKey = keyMap[3];\n\t}", "title": "" }, { "docid": "65c7b2fff2ff2f5362f5d9b509efc08e", "score": "0.55919445", "text": "public void setMap(JLabel theMap){\r\n \tmapView = theMap;\r\n \tthis.add(mapView);\r\n }", "title": "" }, { "docid": "9d298c6eeb0b7ca9793e4d789ddf79a0", "score": "0.5591383", "text": "public void mo13270a(Map<String, String> map) {\n C1790g.f4966b = map;\n C1790g.m6219b(new Oaid((String) map.get(\"id\")));\n }", "title": "" }, { "docid": "9aed9d827274d76e0f505c992b1012ba", "score": "0.5581966", "text": "public Map() {\r\n\t\tmapName = \"Very small Labyrinth of Doom\";\r\n\t\tgoldRequired = 2;\r\n\t\tmap = new char[][]{\r\n\t\t{'#','#','#','#','#','#','#','#','#','#','#','#','#','#','#','#','#','#','#','#'},\r\n\t\t{'#','.','.','.','.','.','.','.','.','.','.','.','.','.','.','.','.','.','.','#'},\r\n\t\t{'#','.','.','.','.','.','.','G','.','.','.','.','.','.','.','.','.','E','.','#'},\r\n\t\t{'#','.','.','.','.','.','.','.','.','.','.','.','.','.','.','.','.','.','.','#'},\r\n\t\t{'#','.','.','E','.','.','.','.','.','.','.','.','.','.','.','.','.','.','.','#'},\r\n\t\t{'#','.','.','.','.','.','.','.','.','.','.','.','G','.','.','.','.','.','.','#'},\r\n\t\t{'#','.','.','.','.','.','.','.','.','.','.','.','.','.','.','.','.','.','.','#'},\r\n\t\t{'#','.','.','.','.','.','.','.','.','.','.','.','.','.','.','.','.','.','.','#'},\r\n\t\t{'#','#','#','#','#','#','#','#','#','#','#','#','#','#','#','#','#','#','#','#'}\r\n\t\t};\r\n\t\tran = new Random();\r\n\r\n\r\n\t}", "title": "" }, { "docid": "4cc8c02e1ca919971310f99bf4b21da6", "score": "0.5559369", "text": "protected void setTableMap(JBitSet tableMap)\n\t{\n\t\tthis.tableMap = tableMap;\n\t}", "title": "" }, { "docid": "b9f54dfc4cc8fc5650ab2d72f9f45460", "score": "0.5557723", "text": "public void toggle(int m) {\n\t\tswitch (m) {\n\t\tcase 0:\n\t\t\tswitch (dpMap[curY][curX]) {\n\t\t\tcase 0:\n\t\t\t\tdpMap[curY][curX] = 1;\n\t\t\t\tbreak;\n\t\t\tcase 1:\n\t\t\t\tdpMap[curY][curX] = 0;\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t}\n\t\t\tbreak;\n\t\tcase 1:\n\t\t\tswitch (dpMap[curY][curX]) {\n\t\t\tcase 0:\n\t\t\t\tdpMap[curY][curX] = 4;\n\t\t\t\tbreak;\n\t\t\tcase 4:\n\t\t\t\tdpMap[curY][curX] = 0;\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t}\n\t\t\tbreak;\n\t\tdefault:\n\t\t}\n\t}", "title": "" }, { "docid": "7108fdacc56546d134adea54f916f871", "score": "0.5543418", "text": "public void setMatriz() {\r\n this.mapa[0][0] = 0;\r\n this.mapa[0][1] = 1;\r\n this.mapa[1][0] = 1;\r\n this.mapa[1][1] = 0;\r\n }", "title": "" }, { "docid": "74b36542f2e7e499999bb90733978d48", "score": "0.55429196", "text": "@Override\n public void setCoord(Coordinates coord) {\n map.setCoord(coord);\n }", "title": "" }, { "docid": "af4f536b70bd361f30abf3d8ef5042bd", "score": "0.55426526", "text": "public GameMap(char[][] map) {\n\t\tthis.map = map;\n\t\tthis.collum = map.length;\n\t\tthis.lines = map[0].length;\n\t\tthis.hero = new Hero(getCharc('H'));\n\t\tthis.lever = new Lever(getCharc('k'));\n\n\t}", "title": "" }, { "docid": "6e66b5bbde84a147f6c1ea1c3233ff03", "score": "0.55335164", "text": "private synchronized void updateMap() {\n theMap.update();\n }", "title": "" }, { "docid": "f78d8214c29783bd40216ad265692a57", "score": "0.5533413", "text": "public void setTwoDMap(String map)\n {\n if(map.equalsIgnoreCase(backgroundImagePath))\n {\n // do nothing\n return;\n }\n \n backgroundImagePath = map;\n ImageIcon temp = createImageIcon(backgroundImagePath,\"Earth\");\n bimage = getBufferedImage(temp);\n rescaleAndSetBackgroundImage(); // repaint the image\n \n// switch(map)\n// {\n// case 0:\n// ImageIcon temp = createImageIcon(\"/images/Earth_PE_small.png\",\"Earth\");\n// bimage = getBufferedImage(temp);\n// ScaleImageMap(); // repaint the image\n// earthNoaaMenu.setIcon(null);\n// earthPeMenu.setIcon(checkMark);\n// imageMapNum = 0; //0=PE, 1=NOAA\n// break;\n// case 1:\n// temp = createImageIcon(\"/images/Earth_NOAA_NGDC_small.png\",\"Earth\");\n// bimage = getBufferedImage(temp);\n// ScaleImageMap(); // repaint the image\n// earthNoaaMenu.setIcon(checkMark);\n// earthPeMenu.setIcon(null);\n// imageMapNum = 1; //0=PE, 1=NOAA\n// break;\n// default:\n// temp = createImageIcon(\"/images/Earth_NOAA_NGDC_small.png\",\"Earth\");\n// bimage = getBufferedImage(temp);\n// ScaleImageMap(); // repaint the image\n// earthNoaaMenu.setIcon(checkMark);\n// earthPeMenu.setIcon(null);\n// imageMapNum = 1; //0=PE, 1=NOAA\n// break;\n// } // switch\n }", "title": "" }, { "docid": "dad3dedb629a0203702bb07047398bfa", "score": "0.55231506", "text": "public void activateLever(Hero hero) {\r\n\t\tfor (int i = 0; i < levelOneMap.length; i++) {\r\n\t\t\tfor (int j = 0; j < levelOneMap[i].length; j++) {\r\n\t\t\t\tif (levelOneMap[i][j] == 'I')\r\n\t\t\t\t\tlevelOneMap[i][j] = 'S';\r\n\t\t\t}\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "4b8617254cc58a5b5a2f60cb80ecf4c5", "score": "0.5521895", "text": "@Override\n public void moveToNextMap() {\n // TODO Auto-generated method stub\n \n }", "title": "" }, { "docid": "94223b7b346aee7eefa6077d8e840755", "score": "0.5518555", "text": "public void set_map(Map world) {\n\t\tthis.world = world;\n\t\t// find max x and max y\n\t\tmax_x = max_y = 0;\n\t\tif (world != null)\n\t\t\tfor (int i = 0; i < world.getSettlement().length; i++) {\n\t\t\t\tif (world.getSettlement()[i].getLocation().getPosition().getPoint_x()+world.getSettlement()[i].getLocation().getsize().getWidth() > max_x) {\n\t\t\t\t\tmax_x = world.getSettlement()[i].getLocation().getPosition().getPoint_x()+world.getSettlement()[i].getLocation().getsize().getWidth();\n\t\t\t\t}\n\t\t\t\tif (world.getSettlement()[i].getLocation().getPosition().getPoint_y()+world.getSettlement()[i].getLocation().getsize().getHeight() > max_y) {\n\t\t\t\t\tmax_y = world.getSettlement()[i].getLocation().getPosition().getPoint_y()+world.getSettlement()[i].getLocation().getsize().getHeight();\n\t\t\t\t}\n\t\t\t}\n\t\tmax_x += 10;\n\t\tmax_y +=10;\n\t\tthis.repaint();\n\t}", "title": "" }, { "docid": "033091b4206be86f674c7f08b5f8c0d6", "score": "0.55065626", "text": "public TreasureMap(boolean [][] map)\n\t{\n\t\tmyGrid = map;\n\t}", "title": "" }, { "docid": "c8860cea14182d15f7b1bb5ad5dc9971", "score": "0.55029035", "text": "public static void setTurn(Turn t) {\n turn = t;\n }", "title": "" }, { "docid": "95bbd3b4f0d8657d9a3ed8c62bc0d4c6", "score": "0.55010194", "text": "public static void setMap(int id, Point playerPos)\n\t{\n\n\t\tPlayer player;\n\t\tPoint spawnPoint = playerPos;\n\n\t\tif (currentMap == null) // if this is the starting map, create player\n\t\t{\n\t\t\tplayer = new Player(Integer.parseInt(\"2600\", 16), spawnPoint);\n\t\t} else // else retrieve player from previous map\n\t\t{\n\t\t\tplayer = currentMap.getPlayer();\n\t\t\tplayer.stopAllActions();\n\t\t\tcurrentMap.removePlayer();\n\t\t\tcurrentMap.resetCamera();\n\t\t}\n\n\t\tfor (Map map : maps)\n\t\t{\n\t\t\tif (map.id() == id)\n\t\t\t\tcurrentMap = map;\n\t\t}\n\n\t\tcurrentMap.add(player, spawnPoint);\n\n\t}", "title": "" }, { "docid": "b35bffce5758e5005a41c842f59725d3", "score": "0.5495169", "text": "public final void mo41780a(Map<String, String> map) {\n this.f26265a = map;\n }", "title": "" }, { "docid": "c905626984a81fbaca5d88936da4733f", "score": "0.5494638", "text": "public void setStateMap(SortedMap<CrewMember, I_State> evaStates) {\n\t\tthis.stateMap = evaStates;\n\t}", "title": "" }, { "docid": "14c7f9a1093bc3fb2cc7c6c9f5058d13", "score": "0.5491853", "text": "public final void mo71551a(Map map, int i) {\n }", "title": "" }, { "docid": "4d19ec6056d8eb450f3a3995dd607ff2", "score": "0.5473672", "text": "public MapInstance setMap(MapInstance newmap) {\r\n\t\tMapInstance oldmap = map;\r\n\t\tif (map != null) this.getContentPane().remove(map);\r\n\t\tmap = newmap;\r\n\t\tthis.getContentPane().add(map);\r\n\t\t// sychronise the map layer visibility\r\n\t\tif (map.getLayerVisibility(MapGrid.LayerType.LAYER_MAP)) layermenuitem.get(MapGrid.LayerType.LAYER_MAP).setSelected(true);\r\n\t\telse layermenuitem.get(MapGrid.LayerType.LAYER_TRAVERSABLEMAP).setSelected(true);\r\n\t\tfor (MapGrid.LayerType layer: layermenuitem.keySet())\r\n\t\t\tif (layer != MapGrid.LayerType.LAYER_TRAVERSABLEMAP && layer != MapGrid.LayerType.LAYER_MAP) layermenuitem.get(layer).setSelected(map.getLayerVisibility(layer));\r\n\t\tthis.validate();\r\n\t\t\r\n\t\t\r\n\t\treturn oldmap;\r\n\t}", "title": "" }, { "docid": "d8bc1eab0eecd8b868a2d1a9df647b65", "score": "0.5461549", "text": "void setMineTile(Tile tile);", "title": "" }, { "docid": "573c33147d7b7823053611ee84337cd3", "score": "0.54547894", "text": "public void initMap(){\n\n for (int i = 0; i < (taille*taille)*foodRatio; i++){\n this.dropRandom(1);\n\n }\n for (int i = 0; i < (taille*taille)*trapRatio; i++){\n this.dropRandom(2);\n }\n // on met la premier case (0,0) avec rien dessus\n map[0][0] = 0;\n }", "title": "" }, { "docid": "4f710dfb6c107ac02b398291a471d50d", "score": "0.5437628", "text": "public final void setMap(MapWidget mapWidget) {\n\t\tif (mapWidget == null) {\n\t\t\tsetMapImpl(null);\n\t\t} else {\n\t\t\tsetMapImpl(mapWidget.getJso());\n\t\t}\n\t}", "title": "" }, { "docid": "ac350096467dca1502d3b1721f3c58a4", "score": "0.54317415", "text": "private void setStateMap(){\n\t\tmapState.put(\"0000\",\"<html><font color='green'>正常出勤</font></html>\");\n\t\tmapState.put(\"1000\",\"<html><font color='blue'>请假</font></html>\");\n\t\tmapState.put(\"0100\",\"<html><font color='cyan'>出差</font></html>\");\n\t\tmapState.put(\"0010\",\"<html><font color='red'>旷工</font></html>\");\n\t\tmapState.put(\"0001\",\"<html><font color='yellow'>迟到/早退</font></html>\");\n\t}", "title": "" }, { "docid": "35b9c98a5edc65cb9da6729d4181c326", "score": "0.54304135", "text": "public void a(Map<E, Count> map) {\n this.a = map;\n }", "title": "" }, { "docid": "bae8a6be1bd0da1367a392b73cebbdd7", "score": "0.54268575", "text": "public void setMapped(boolean mapped);", "title": "" }, { "docid": "97bdf28f77c4920d5ac6d4ca82a1f1a5", "score": "0.54266655", "text": "public void changeTurnSwitch(){\n if (turnSwitch==0){\n turnSwitch=1;\n }else{\n turnSwitch=0;\n }\n }", "title": "" }, { "docid": "4795dca252f32c73ef6fb3026053b165", "score": "0.54212236", "text": "static void setMaps(byte chars[], byte refl[]) {\n\tchar_map = chars;\n\treflector = refl;\n }", "title": "" }, { "docid": "ff6865c85b11be01fa08119a0e160b6f", "score": "0.5419949", "text": "public void updateMap(){\n\n\t\tmap=new TriangleMap(triangle,(int) image.getHeight(),(int) image.getWidth());\n\t\tmap.setMap();\n\t}", "title": "" }, { "docid": "39db1301f16ea9b01e4619d4ded1d27a", "score": "0.5408371", "text": "@Override\r\n public void setMapUtility(MapUtility mapUtility) {\r\n this.mapUtility = mapUtility;\r\n }", "title": "" }, { "docid": "2554b93528dd3c1ffa89d9017d6fae6a", "score": "0.53999853", "text": "public void run()\n {\n map.put(key, \"value\");\n }", "title": "" }, { "docid": "70c92ef15a4966b86b394edc952c39f1", "score": "0.5392446", "text": "public void setSolution() {\n\t\tfor(int i=0;i<playerMapping.length;i++) {\n\t\t\tplayerMapping[i] = i;\n\t\t}\n\t}", "title": "" }, { "docid": "b892fdfca5ae58298afaee01b92b0a6a", "score": "0.5391876", "text": "public Builder map(String map) {\n this.map = map;\n return this;\n }", "title": "" }, { "docid": "4ecee534d4432d1dfc8ca4d7d6d704a1", "score": "0.53873557", "text": "public void setGameMap(String mapid){\r\n String oldMusic = null;\r\n if (myGameMap != null){\r\n oldMusic = myGameMap.getBGMusic();\r\n }\r\n this.myGameMap = AssetManager.getMap(mapid);\r\n Globals.theMouse.bindToMap(myGameMap);\r\n thegame.setMap(this.myGameMap);\r\n camControl.bindToCamera(myGameMap.getCamera());\r\n //BackgroundMusic only has 1 track slot for bgm, so it gets overridden each time\r\n if (oldMusic == null || !myGameMap.getBGMusic().equals(oldMusic)){ // only swap if the music actually changes\r\n SoundManager.getChannel(\"BackgroundMusic\").addTrack(myGameMap.getBGMusic());\r\n }\r\n }", "title": "" }, { "docid": "c2963d0172c8359344dc0a5d5adb933c", "score": "0.53724337", "text": "public void setGameMap(GameMap gameMap) {\n this.gameMap = gameMap;\n }", "title": "" }, { "docid": "cf291c906fd7fadf90cd5d6c6816ee69", "score": "0.5369754", "text": "@Test\n public void testDarCambio_int_Map() {\n System.out.println(\"darCambio Voraz\");\n Map<Integer, Integer> mapaActual = Esquemas.darCambio(1200, can);\n Map<Integer,Integer> mapaEsperado = new HashMap<>();\n mapaEsperado.insertar(200,1);\n mapaEsperado.insertar(500,2);\n \n boolean result = mapasIguales(mapaActual,mapaEsperado);\n \n assertTrue(result);\n }", "title": "" }, { "docid": "4e7f9810585f3387ef0e191098b7c1b7", "score": "0.53695136", "text": "void InitializeCharacterTileMap()\r\n\t{\r\n\t\tcharacterToTileMap = new HashMap<>();\r\n characterToTileMap.put(' ',new AtlasTileData(0,15));\r\n\t\tcharacterToTileMap.put('.',new AtlasTileData(14,13));\r\n characterToTileMap.put('@',new AtlasTileData(0,11));\r\n\t\tcharacterToTileMap.put('&',new AtlasTileData(6,13));\r\n characterToTileMap.put('~',new AtlasTileData(14,8));\r\n //alphabet\r\n\t\tcharacterToTileMap.put('A',new AtlasTileData(1,11));\r\n\t\tcharacterToTileMap.put('B',new AtlasTileData(2,11));\r\n\t\tcharacterToTileMap.put('C',new AtlasTileData(3,11));\r\n\t\tcharacterToTileMap.put('D',new AtlasTileData(4,11));\r\n\t\tcharacterToTileMap.put('E',new AtlasTileData(5,11));\r\n\t\tcharacterToTileMap.put('F',new AtlasTileData(6,11));\r\n\t\tcharacterToTileMap.put('G',new AtlasTileData(7,11));\r\n\t\tcharacterToTileMap.put('H',new AtlasTileData(8,11));\r\n\t\tcharacterToTileMap.put('I',new AtlasTileData(9,11));\r\n\t\tcharacterToTileMap.put('J',new AtlasTileData(10,11));\r\n\t\tcharacterToTileMap.put('K',new AtlasTileData(11,11));\r\n\t\tcharacterToTileMap.put('L',new AtlasTileData(12,11));\r\n\t\tcharacterToTileMap.put('M',new AtlasTileData(13,11));\r\n\t\tcharacterToTileMap.put('N',new AtlasTileData(14,11));\r\n\t\tcharacterToTileMap.put('O',new AtlasTileData(15,11));\r\n\t\t//row change\r\n\t\tcharacterToTileMap.put('P',new AtlasTileData(0,10));\r\n\t\tcharacterToTileMap.put('Q',new AtlasTileData(1,10));\r\n\t\tcharacterToTileMap.put('R',new AtlasTileData(2,10));\r\n\t\tcharacterToTileMap.put('S',new AtlasTileData(3,10));\r\n\t\tcharacterToTileMap.put('T',new AtlasTileData(4,10));\r\n\t\tcharacterToTileMap.put('U',new AtlasTileData(5,10));\r\n\t\tcharacterToTileMap.put('V',new AtlasTileData(6,10));\r\n\t\tcharacterToTileMap.put('W',new AtlasTileData(7,10));\r\n\t\tcharacterToTileMap.put('X',new AtlasTileData(8,10));\r\n\t\tcharacterToTileMap.put('Y',new AtlasTileData(9,10));\r\n\t\tcharacterToTileMap.put('Z',new AtlasTileData(10,10));\r\n\t\t//row change\r\n\t\tcharacterToTileMap.put('a',new AtlasTileData(1,9));\r\n\t\tcharacterToTileMap.put('b',new AtlasTileData(2,9));\r\n\t\tcharacterToTileMap.put('c',new AtlasTileData(3,9));\r\n\t\tcharacterToTileMap.put('d',new AtlasTileData(4,9));\r\n\t\tcharacterToTileMap.put('e',new AtlasTileData(5,9));\r\n\t\tcharacterToTileMap.put('f',new AtlasTileData(6,9));\r\n\t\tcharacterToTileMap.put('g',new AtlasTileData(7,9));\r\n\t\tcharacterToTileMap.put('h',new AtlasTileData(8,9));\r\n\t\tcharacterToTileMap.put('i',new AtlasTileData(9,9));\r\n\t\tcharacterToTileMap.put('j',new AtlasTileData(10,9));\r\n\t\tcharacterToTileMap.put('k',new AtlasTileData(11,9));\r\n\t\tcharacterToTileMap.put('l',new AtlasTileData(12,9));\r\n\t\tcharacterToTileMap.put('m',new AtlasTileData(13,9));\r\n\t\tcharacterToTileMap.put('n',new AtlasTileData(14,9));\r\n\t\tcharacterToTileMap.put('o',new AtlasTileData(15,9));\r\n\t\t//row change\r\n\t\tcharacterToTileMap.put('p',new AtlasTileData(0,8));\r\n\t\tcharacterToTileMap.put('q',new AtlasTileData(1,8));\r\n\t\tcharacterToTileMap.put('r',new AtlasTileData(2,8));\r\n\t\tcharacterToTileMap.put('s',new AtlasTileData(3,8));\r\n\t\tcharacterToTileMap.put('t',new AtlasTileData(4,8));\r\n\t\tcharacterToTileMap.put('u',new AtlasTileData(5,8));\r\n\t\tcharacterToTileMap.put('v',new AtlasTileData(6,8));\r\n\t\tcharacterToTileMap.put('w',new AtlasTileData(7,8));\r\n\t\tcharacterToTileMap.put('x',new AtlasTileData(8,8));\r\n\t\tcharacterToTileMap.put('y',new AtlasTileData(9,8));\r\n\t\tcharacterToTileMap.put('z',new AtlasTileData(10,8));\r\n\t}", "title": "" }, { "docid": "92d1f515f594441145c01817b09300ed", "score": "0.53689855", "text": "public void advanceOneLevel() {\n initiateCurrentMap();\n }", "title": "" }, { "docid": "af8fa679db8c6ebf085f3973b514d82c", "score": "0.5355534", "text": "public Map() {\n map = new Tile[5][9];\n map[0][0] = new Tile(\"Plain\");\n map[0][1] = new Tile(\"Plain\");\n map[0][2] = new Tile(\"Mountain1\");\n map[0][3] = new Tile(\"Plain\");\n map[0][4] = new Tile(\"River\");\n map[0][5] = new Tile(\"Plain\");\n map[0][6] = new Tile(\"Mountain3\");\n map[0][7] = new Tile(\"Plain\");\n map[0][8] = new Tile(\"Plain\");\n \n map[1][0] = new Tile(\"Plain\");\n map[1][1] = new Tile(\"Mountain1\");\n map[1][2] = new Tile(\"Plain\");\n map[1][3] = new Tile(\"Plain\");\n map[1][4] = new Tile(\"River\");\n map[1][5] = new Tile(\"Plain\");\n map[1][6] = new Tile(\"Plain\");\n map[1][7] = new Tile(\"Plain\");\n map[1][8] = new Tile(\"Mountain3\");\n \n map[2][0] = new Tile(\"Mountain3\");\n map[2][1] = new Tile(\"Plain\");\n map[2][2] = new Tile(\"Plain\");\n map[2][3] = new Tile(\"Plain\");\n map[2][4] = new Tile(\"Town\", \"Default\");\n map[2][5] = new Tile(\"Plain\");\n map[2][6] = new Tile(\"Plain\");\n map[2][7] = new Tile(\"Plain\");\n map[2][8] = new Tile(\"Mountain1\");\n \n map[3][0] = new Tile(\"Plain\");\n map[3][1] = new Tile(\"Mountain2\");\n map[3][2] = new Tile(\"Plain\");\n map[3][3] = new Tile(\"Plain\");\n map[3][4] = new Tile(\"River\");\n map[3][5] = new Tile(\"Plain\");\n map[3][6] = new Tile(\"Mountain2\");\n map[3][7] = new Tile(\"Plain\");\n map[3][8] = new Tile(\"Plain\");\n \n map[4][0] = new Tile(\"Plain\");\n map[4][1] = new Tile(\"Plain\");\n map[4][2] = new Tile(\"Mountain2\");\n map[4][3] = new Tile(\"Plain\");\n map[4][4] = new Tile(\"River\");\n map[4][5] = new Tile(\"Plain\");\n map[4][6] = new Tile(\"Plain\");\n map[4][7] = new Tile(\"Plain\");\n map[4][8] = new Tile(\"Mountain2\");\n }", "title": "" }, { "docid": "97af9f26e2ec013d1165f2c30dc7386f", "score": "0.5348683", "text": "private void setUpMap() {\n mMap.getUiSettings().setMapToolbarEnabled(false);\n mMap.setOnMapClickListener(new GoogleMap.OnMapClickListener() {\n @Override\n public void onMapClick(LatLng latLng) {\n isLockedToBus = false;\n }\n });\n mMap.setOnMarkerClickListener(new GoogleMap.OnMarkerClickListener() {\n @Override\n public boolean onMarkerClick(Marker marker) {\n if (marker.getTitle().equals(\"Buss\")) {\n isLockedToBus = true;\n }\n\n return false;\n }\n });\n\n // Start location\n LatLng startloc = new LatLng(57.704874, 11.965345);\n mMap.animateCamera(CameraUpdateFactory.newLatLngZoom(startloc, 8));\n apiHelper.execute();\n }", "title": "" }, { "docid": "c0f7179b896b0d33e87b1ce01927d893", "score": "0.53450215", "text": "protected void initMapType(MapType maprange, jalview.util.MapList ml,\n boolean setUnits)\n {\n initMapType(maprange, ml, setUnits, false);\n }", "title": "" }, { "docid": "7f67288412bfb0f3497034cf49d1f748", "score": "0.53367746", "text": "void clearMap();", "title": "" }, { "docid": "d2b244bcabc623b5ccc2d9b8af5510c7", "score": "0.5332979", "text": "public void setNewDirection() {\n int n = random_turn();\n switch (n) {\n case 0:\n break;\n case 1:\n case 2:\n case 3:\n case 4:\n for (int i = 1; i <= n; i++) {\n this.setOrientation(MapDirection.next(this.getOrientation()));\n }\n break;\n\n case 5:\n case 6:\n case 7:\n for (int i = 1; i <= 8 - n; i++) {\n this.setOrientation(MapDirection.previous(this.getOrientation()));\n }\n break;\n }\n }", "title": "" }, { "docid": "e1bf29aba1b7428f6ec83f339d8ad6ea", "score": "0.5323676", "text": "public void setIslandLevel(int i)\r\n/* 281: */ {\r\n/* 282:256 */ this.islandLevel = i;\r\n/* 283: */ }", "title": "" }, { "docid": "5a922fa3773ec6cb651f2404f2adfd17", "score": "0.5310965", "text": "private void initializeValues(int[][] map, boolean hasBomb, boolean inDangerPath) {\n for (int y = 0; y < map.length; y++) {\n for (int x = 0; x < map[0].length; x++) {\n if ((!hasBomb || inDangerPath) && map[y][x] > 0)\n ClosedSet.add(new Point(x, y));\n }\n }\n if (!inDangerPath) {\n Iterator<Map.Entry<Point, Bomb.BombType>> iter = DangerPath.entrySet().iterator();\n \n while (iter.hasNext()) {\n Map.Entry<Point, Bomb.BombType> e = iter.next();\n if (e.getValue() == Bomb.BombType.Bomb1)\n continue;\n ClosedSet.add(e.getKey());\n iter.remove();\n }\n }\n }", "title": "" }, { "docid": "6b0fd441c317e4761a80f80e4c6d4bea", "score": "0.5309577", "text": "public void setTile(int x, int y, Image tile) {\r\n Map[x][y] = tile;\r\n }", "title": "" } ]
053b4a76c9119cea686ec82fde51f701
TODO refactor to use root.view.color
[ { "docid": "499b5872fbe83e28c0c99baaf6defca9", "score": "0.0", "text": "Color getBackgroundColor();", "title": "" } ]
[ { "docid": "f23cdfdab33e5a32ec15250504a5962f", "score": "0.72805387", "text": "public javafx.scene.paint.Color viewColor() { \n\t\treturn javafx.scene.paint.Color.WHITE; \n\t}", "title": "" }, { "docid": "2f35914973c8512e0a220bb9704c1c30", "score": "0.70112616", "text": "public javafx.scene.paint.Color viewColor() {\n\t\t\treturn javafx.scene.paint.Color.WHITE;\n\t\t}", "title": "" }, { "docid": "3eedb0abaeda7083c1f74d52739b4011", "score": "0.6812697", "text": "private void updateColor() {\n \tthis.getWindow().getDecorView().setBackgroundColor( model.getColor() );\n }", "title": "" }, { "docid": "3c9e514917ee9005c468a412b648d086", "score": "0.65728563", "text": "@Override\n public Color getColor() {\n return color;\n }", "title": "" }, { "docid": "3d8526c7d4302687a5a37f824c8f8392", "score": "0.64881986", "text": "public String getColor() {return color;}", "title": "" }, { "docid": "26b3c894e8dd2f6f0e95fc3ca1315578", "score": "0.64206505", "text": "@java.lang.Override\n public int getColor() {\n return color_;\n }", "title": "" }, { "docid": "8ebf7f982f3c2847c00abebca5510cca", "score": "0.6386528", "text": "@Override\n public String getColor() {\n\t return color;\n }", "title": "" }, { "docid": "f4b327ab12170be363e7dac2e3d4aea5", "score": "0.63755035", "text": "@Override\n public Color getColor() {\n return ColorChooser.getColor();\n }", "title": "" }, { "docid": "df84d6e90350f30045094e55237ef19b", "score": "0.6370162", "text": "public String getColor() { return Color; }", "title": "" }, { "docid": "960c3e40140890ee87dd7f0e6e1e41c6", "score": "0.6359879", "text": "@java.lang.Override\n public int getColor() {\n return color_;\n }", "title": "" }, { "docid": "960c3e40140890ee87dd7f0e6e1e41c6", "score": "0.63597167", "text": "@java.lang.Override\n public int getColor() {\n return color_;\n }", "title": "" }, { "docid": "efe265f5127838b117cafd070e89e35e", "score": "0.6357731", "text": "public Color getColor(){\n return color;\n }", "title": "" }, { "docid": "4dc50529522cb7b843617bfa965351f4", "score": "0.6320837", "text": "Oval() {\n setColor(151, 240, 67);\n }", "title": "" }, { "docid": "18bd2296809f45abe874cae97282fdf7", "score": "0.6319065", "text": "public Color getColor(){\n return color;\n }", "title": "" }, { "docid": "42857e84ea686c8086bdba839467e35f", "score": "0.63170546", "text": "abstract public Color getActualColor();", "title": "" }, { "docid": "006fc7fa819a90da0ddc57fb4533d6ca", "score": "0.63101983", "text": "int getColor() {\n return color;\n }", "title": "" }, { "docid": "7ae7db09262983292e37c4480ae98c86", "score": "0.6301237", "text": "@Override\r\n\tpublic Color getColor() {\n\t\treturn color;\r\n\t}", "title": "" }, { "docid": "7ae7db09262983292e37c4480ae98c86", "score": "0.6301237", "text": "@Override\r\n\tpublic Color getColor() {\n\t\treturn color;\r\n\t}", "title": "" }, { "docid": "b7c28810475dd7e79f939fe51bd557d9", "score": "0.6297137", "text": "public Color getColor() { return Color.BLACK; }", "title": "" }, { "docid": "673416f5bc224fe4f1a20ea0c49625d2", "score": "0.6295789", "text": "public Color getColor() {\n/* 437 */ return new Color(this.currentColor);\n/* */ }", "title": "" }, { "docid": "4d1476e721d2b5a869a106e2f5420b0b", "score": "0.62921923", "text": "public String getColor() {\r\nreturn color;\r\n}", "title": "" }, { "docid": "dac9b6b0da3fc80fa261e5e7f8c88a9f", "score": "0.62691003", "text": "@java.lang.Override\n public int getColor() {\n return color_;\n }", "title": "" }, { "docid": "dac9b6b0da3fc80fa261e5e7f8c88a9f", "score": "0.62691003", "text": "@java.lang.Override\n public int getColor() {\n return color_;\n }", "title": "" }, { "docid": "dac9b6b0da3fc80fa261e5e7f8c88a9f", "score": "0.62686425", "text": "@java.lang.Override\n public int getColor() {\n return color_;\n }", "title": "" }, { "docid": "bb4e64990c207c74e67f769992d8bbdc", "score": "0.62491965", "text": "@Override\n\tpublic void updateColor() {\n\n\t}", "title": "" }, { "docid": "b2855a2184f4f581e939547b87ce7b18", "score": "0.62472796", "text": "@Override\n\tpublic void updateColor() {\n\t}", "title": "" }, { "docid": "f763f20f1564bd29ae474d7d9865d043", "score": "0.62364167", "text": "public Color getColor(){\n return this.color;\n }", "title": "" }, { "docid": "177ec725b52af13cdc56102191c7e193", "score": "0.62269557", "text": "public Color color() { return c; }", "title": "" }, { "docid": "bfb09753905d6e229385ee48d3f580cc", "score": "0.6218193", "text": "public Color getColor() {\n/* 272 */ return this.selectionModel.getSelectedColor();\n/* */ }", "title": "" }, { "docid": "44cc54e9b59be6d9a3f33b5a1f9dee24", "score": "0.62109554", "text": "protected String getColor() {\r\n\t\treturn factory.color;\r\n\t}", "title": "" }, { "docid": "f92f0a727ef6b5e416328e13c0d01442", "score": "0.62087005", "text": "public int color() {\n return color;\n }", "title": "" }, { "docid": "180bb7ae3af18d3b35ec93571e170cbf", "score": "0.6180451", "text": "@Override\r\n\tpublic String getColor() {\n\t\treturn color;\r\n\t}", "title": "" }, { "docid": "c4caf472a2aebdac90593b8099f86911", "score": "0.6180401", "text": "@Override\n\tpublic void OnColorChanged(int color) {\n\n\t}", "title": "" }, { "docid": "52d9d57e1a515df0fdfb2f12ebc71ca9", "score": "0.6172961", "text": "public String getColor(){\n return color;\n }", "title": "" }, { "docid": "a9c54f54f4fe505912230e7dc98bdc4b", "score": "0.6167217", "text": "public void displayDarkerColour() { \n JFrame frame = new JFrame();\n frame.setSize(200, 200);\n Color myColor = Color.RED;\n Color c2 = myColor.darker();\n frame.getContentPane().setBackground(c2);\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n frame.setVisible(true); \n }", "title": "" }, { "docid": "05b0c26277e1021592918219b8ac981b", "score": "0.6163113", "text": "public void colourBlack(View v) { returnColour(BLACK); }", "title": "" }, { "docid": "e77b832d006a5eff523decee145b017e", "score": "0.61599845", "text": "public void init() {\nsetBackground(Color.cyan);\nsetForeground(Color.red);\n}", "title": "" }, { "docid": "06a829786dfe31114e42d2a6e69da669", "score": "0.6154791", "text": "public Color getColor(){\r\n\t\treturn color;\r\n\t}", "title": "" }, { "docid": "65de916f4faf0d2b9a357b71079d608d", "score": "0.6147848", "text": "private void interpretColor(Tree<Token> tree) {\n\t\tString color = tree.getChild(0).getValue().value;\n\t\tif (\"red\".equals(color))\n\t\t\tthis.color = Color.RED;\n\t\telse if (\"black\".equals(color))\n\t\t\tthis.color = Color.BLACK;\n\t\telse if (\"blue\".equals(color))\n\t\t\tthis.color = Color.BLUE;\n\t\telse if (\"cyan\".equals(color))\n\t\t\tthis.color = Color.CYAN;\n\t\telse if (\"darkGray\".equals(color))\n\t\t\tthis.color = Color.DARK_GRAY;\n\t\telse if (\"gray\".equals(color))\n\t\t\tthis.color = Color.GRAY;\n\t\telse if (\"green\".equals(color))\n\t\t\tthis.color = Color.GREEN;\n\t\telse if (\"lightGray\".equals(color))\n\t\t\tthis.color = Color.LIGHT_GRAY;\n\t\telse if (\"magenta\".equals(color))\n\t\t\tthis.color = Color.MAGENTA;\n\t\telse if (\"orange\".equals(color))\n\t\t\tthis.color = Color.ORANGE;\n\t\telse if (\"pink\".equals(color))\n\t\t\tthis.color = Color.PINK;\n\t\telse if (\"white\".equals(color))\n\t\t\tthis.color = Color.WHITE;\n\t\telse if (\"yellow\".equals(color))\n\t\t\tthis.color = Color.YELLOW;\n\t\telse if (\"brown\".equals(color))\n\t\t\tthis.color = brown;\n\t\telse if (\"purple\".equals(color))\n\t\t\tthis.color = purple;\n\t\telse if (\"none\".equals(color))\n\t\t\tthis.color = null;\n\t\telse\n\t\t\tthrow new IllegalArgumentException();\n\t}", "title": "" }, { "docid": "eab1b6307b75b2396d2cc145fb517882", "score": "0.61424845", "text": "public Color getColor() {\r\n return color;\r\n }", "title": "" }, { "docid": "eab1b6307b75b2396d2cc145fb517882", "score": "0.61424845", "text": "public Color getColor() {\r\n return color;\r\n }", "title": "" }, { "docid": "eab1b6307b75b2396d2cc145fb517882", "score": "0.61424845", "text": "public Color getColor() {\r\n return color;\r\n }", "title": "" }, { "docid": "b6d54e97201154dc3410bd17ded620de", "score": "0.6139858", "text": "@Override\n public void onOk(AmbilWarnaDialog dialog, int _color) {\n panelColor.setBackgroundColor(_color);\n color = \"#\" + Integer.toHexString(_color);\n Log.d(Util.APP_TAG, \"COLOR STRING: \" + color);\n// Toast.makeText(getActivity().getBaseContext(), \"Selected Color : \" + color, Toast.LENGTH_LONG).show();\n }", "title": "" }, { "docid": "ec5f81fd3b43d5f5d39285804f70a0b6", "score": "0.6125986", "text": "public String getColor()\n {\n return color;\n }", "title": "" }, { "docid": "505611d00a767fbbf1610f1937b5d30e", "score": "0.6112597", "text": "int backgroundColor();", "title": "" }, { "docid": "a8022b7b5a76e84cc8994bf44ad38813", "score": "0.61078995", "text": "public String getColor()\r\n {\n return color;\r\n }", "title": "" }, { "docid": "8e46dff76c26c392992f955dc8176faf", "score": "0.61075157", "text": "public void init()\r\n{\r\nsetBackground(Color.cyan);\r\nsetForeground(Color.red);\r\n}", "title": "" }, { "docid": "fbdec6aaa8168cb6f5116da445c8be6b", "score": "0.61008686", "text": "public void onSelect$color() {\n\r\n\r\n\t}", "title": "" }, { "docid": "168f7c832496b509d49cf025a1b8c079", "score": "0.60982764", "text": "int backgroundColor()\n {\n return 0;\n }", "title": "" }, { "docid": "10c3fffba00ca754e09e46caca90c4a5", "score": "0.60747814", "text": "public Color getColor() {\r\n return myColor; }", "title": "" }, { "docid": "6dba89c48a88d296067e9499f0f47c1f", "score": "0.607096", "text": "protected abstract void setColor ();", "title": "" }, { "docid": "74dbe2e3120ad5439140ec13559f2922", "score": "0.6056559", "text": "@Override\n\tprotected void colourmode() {\n\t}", "title": "" }, { "docid": "cf45f9b7bbbe9898e3353ad2be1bd9ce", "score": "0.6051646", "text": "public int getColor(){\n\t\t\n\t\treturn color;\n\t}", "title": "" }, { "docid": "0d931a2558c5073f3b74c8a3d26b6c98", "score": "0.60505", "text": "public void changeColor(View view) {\n Random random = new Random();\n String colorName = mColorArray[random.nextInt(5)];\n //Get all the resources in your project and associate them with an identifier\n int colorResourceName = getResources().getIdentifier(colorName, \"color\", getApplicationContext().getPackageName());\n //Get the specific colot\n int colorRes = ContextCompat.getColor(this, colorResourceName);\n\n mColorTextView.setTextColor(colorRes);\n }", "title": "" }, { "docid": "9a8dcd055e03df7d6e1ae8ce1b292800", "score": "0.6015444", "text": "private void colorpicker() {\n\n AmbilWarnaDialog dialog = new AmbilWarnaDialog(getActivity(), 0xff0000ff,\n new AmbilWarnaDialog.OnAmbilWarnaListener() {\n\n // Executes, when user click Cancel button\n @Override\n public void onCancel(AmbilWarnaDialog dialog){\n }\n\n // Executes, when user click OK button\n @Override\n public void onOk(AmbilWarnaDialog dialog, int _color) {\n panelColor.setBackgroundColor(_color);\n color = \"#\" + Integer.toHexString(_color);\n Log.d(Util.APP_TAG, \"COLOR STRING: \" + color);\n// Toast.makeText(getActivity().getBaseContext(), \"Selected Color : \" + color, Toast.LENGTH_LONG).show();\n }\n });\n dialog.show();\n }", "title": "" }, { "docid": "a090041abe89b118596d9415a559bde2", "score": "0.60142297", "text": "@FXML\n private void printButtonAction() {\n\n /*\n @TODO Print the each color's name and value.\n */\n\n }", "title": "" }, { "docid": "4504392704878e2fa895f40a269401a4", "score": "0.601241", "text": "Color color() { return color; }", "title": "" }, { "docid": "94cf0e6c9745075bca67df4834f98fe8", "score": "0.60111964", "text": "public String getColor() {\n return color;\n }", "title": "" }, { "docid": "3809078a93810dfa05c24b39005fa862", "score": "0.6000528", "text": "public Color getColor() {\n return color;\n }", "title": "" }, { "docid": "3809078a93810dfa05c24b39005fa862", "score": "0.6000528", "text": "public Color getColor() {\n return color;\n }", "title": "" }, { "docid": "3809078a93810dfa05c24b39005fa862", "score": "0.6000528", "text": "public Color getColor() {\n return color;\n }", "title": "" }, { "docid": "0cf8fbd377cb2c705155ece2c596ad34", "score": "0.59965914", "text": "int getColorSelectedIndex(){\n \t\n return this.color_index;\n \t\n \t\t\n }", "title": "" }, { "docid": "141eeaa69e332347ace5c964d60db42c", "score": "0.5995501", "text": "public int getColor()\n {\n \treturn this.color;\n }", "title": "" }, { "docid": "59265df635497efd36044931a0451885", "score": "0.599358", "text": "public String getColor() {\r\n return color;\r\n }", "title": "" }, { "docid": "62212ef1fba687ec3bab90d0fdf13128", "score": "0.59933954", "text": "@Override\n public void setBackgroundColor(int color) {\n\n }", "title": "" }, { "docid": "82f5dccd1ce8cb0afb0647bb2f50b22b", "score": "0.5985958", "text": "@Override\n\tpublic void changeColor() {\n\t\t\n\t}", "title": "" }, { "docid": "35c8dd3037521dc291f686615931968e", "score": "0.59820515", "text": "abstract public ColorProperty getColor();", "title": "" }, { "docid": "25e0d92146812e8b2ba764a93f5e27c3", "score": "0.59776235", "text": "public Color getColor()\n {\n return this.color;\n }", "title": "" }, { "docid": "36e5dd657f5adc7706f44750bf630750", "score": "0.5975602", "text": "@Override\n\tpublic Color getColor() {\n\t\treturn theColor;\n\t}", "title": "" }, { "docid": "ccd0f3dc75ffe8e9e105138551757678", "score": "0.5973898", "text": "@Override\n\tpublic Color getColor() {\n\t\treturn this.color;\n\t}", "title": "" }, { "docid": "ccd0f3dc75ffe8e9e105138551757678", "score": "0.5973898", "text": "@Override\n\tpublic Color getColor() {\n\t\treturn this.color;\n\t}", "title": "" }, { "docid": "ccd0f3dc75ffe8e9e105138551757678", "score": "0.5973898", "text": "@Override\n\tpublic Color getColor() {\n\t\treturn this.color;\n\t}", "title": "" }, { "docid": "c9aaf0eb6286cad396336ff357fc5017", "score": "0.59726083", "text": "private void setColor(int position, @ColorInt int color) {\n @ColorInt int systemUIColor = color;\n @ColorInt int tintColor = DynamicColorUtils.getTintColor(color);\n\n if (mDynamicWindowResolver != null) {\n systemUIColor = mDynamicWindowResolver.getSystemUIColor(color);\n } else {\n if (DynamicTheme.getInstance().get().getPrimaryColorDark(false) == Theme.AUTO) {\n systemUIColor = DynamicTheme.getInstance().generateDarkColor(systemUIColor);\n } else {\n systemUIColor = DynamicTheme.getInstance().get().getPrimaryColor()\n != DynamicTheme.getInstance().get().getPrimaryColorDark()\n ? DynamicTheme.getInstance().get().getPrimaryColorDark()\n : systemUIColor;\n }\n }\n\n updateTaskDescription(color);\n setStatusBarColor(systemUIColor);\n setNavigationBarColor(systemUIColor);\n mCoordinatorLayout.setStatusBarBackgroundColor(getStatusBarColor());\n mCoordinatorLayout.setBackgroundColor(color);\n\n if (mAdapter.getRecyclerView() != null) {\n DynamicScrollUtils.setEdgeEffectColor(mAdapter.getRecyclerView(), tintColor);\n }\n\n mActionPrevious.setContrastWithColor(color);\n mActionNext.setContrastWithColor(color);\n mActionCustom.setContrastWithColor(color);\n mActionPrevious.setColor(tintColor);\n mActionNext.setColor(tintColor);\n mActionCustom.setColor(tintColor);\n mActionCustom.setTextColor(color);\n mPageIndicator.setSelectedColour(tintColor);\n mPageIndicator.setUnselectedColour(DynamicColorUtils.adjustAlpha(\n tintColor, WidgetDefaults.ADS_ALPHA_UNCHECKED));\n DynamicTintUtils.setViewBackgroundTint(mActionPrevious,\n color, tintColor, true, false);\n DynamicTintUtils.setViewBackgroundTint(mActionNext, color,\n tintColor, true, false);\n\n if (hasTutorialPrevious()) {\n mActionPrevious.setVisibility(View.VISIBLE);\n mActionPrevious.setContentDescription(getString(R.string.ads_previous));\n } else {\n mActionPrevious.setVisibility(View.INVISIBLE);\n mActionPrevious.setContentDescription(null);\n }\n\n if (hasTutorialNext()) {\n mActionNext.setImageDrawable(DynamicResourceUtils.getDrawable(\n this, R.drawable.ads_ic_chevron_right));\n mActionNext.setContentDescription(getString(R.string.ads_next));\n } else {\n mActionNext.setImageDrawable(DynamicResourceUtils.getDrawable(\n this, R.drawable.ads_ic_check));\n mActionNext.setContentDescription(getString(R.string.ads_finish));\n }\n\n DynamicTooltip.set(mActionPrevious, tintColor, color,\n mActionPrevious.getContentDescription());\n DynamicTooltip.set(mActionNext, tintColor, color,\n mActionNext.getContentDescription());\n }", "title": "" }, { "docid": "1a46cc158e8a34b67fd991aabb7c791b", "score": "0.59706104", "text": "@java.lang.Override public int getColorValue() {\n return color_;\n }", "title": "" }, { "docid": "f9b2e7f366284e09708fe918a1b2764e", "score": "0.5969985", "text": "public int getColor(){\nreturn mColor;\n}", "title": "" }, { "docid": "2622a098ce120076a6fafb87967f8685", "score": "0.59673434", "text": "public void onStartColor() {\n mManager.onStartColor();\n }", "title": "" }, { "docid": "a530be1e2a63c0bf4431b989ad594685", "score": "0.59669036", "text": "public String getColor() { // method to return the current color\n return this.color;\n }", "title": "" }, { "docid": "61152fbdc369d847cab7cd90c21dc5fb", "score": "0.5963187", "text": "public Color getBerryColor(){\n\t\treturn seed.getColor();\n\t}", "title": "" }, { "docid": "39144fdb03db0fe1e4b7d5a66c89833b", "score": "0.59621596", "text": "public void onColorSelected(int color);", "title": "" }, { "docid": "8b2c043366645333cdd20a73a7f08eed", "score": "0.59610695", "text": "public Color getColor() {\n\t return color;\n }", "title": "" }, { "docid": "9ac889861bc4e31aecef9fa7ebaebad1", "score": "0.59546405", "text": "@Override\r\n public void onColorModeChanged(long arg0) {\n\r\n }", "title": "" }, { "docid": "9732a3edd217e853705dbea8639b5617", "score": "0.5948795", "text": "public String getColor(){\n\t\treturn color;\n\t}", "title": "" }, { "docid": "9732a3edd217e853705dbea8639b5617", "score": "0.5948795", "text": "public String getColor(){\n\t\treturn color;\n\t}", "title": "" }, { "docid": "77583e259dee3ddf4208c585fe8bc5ae", "score": "0.5938921", "text": "public Color getColor() {\n return myColor;\n }", "title": "" }, { "docid": "c1e20853d3ebca52c6b38679757d9a10", "score": "0.59320056", "text": "private static View getOutlineViewFocus(Context ctx, int color) {\n FrameLayout outline = new FrameLayout(ctx);\n Util.setBackgroundDrawable(outline, Util.makeOutline(color, Util.realDp(4, ctx)));\n\n return outline;\n }", "title": "" }, { "docid": "1dd9ae567c7a800409bec29a28b55085", "score": "0.59276354", "text": "public int getColor();", "title": "" }, { "docid": "0b59d380383eb2afcefd8fd3edbe0534", "score": "0.5917947", "text": "@Override\n public String getColour() {\n return \"green\";\n }", "title": "" }, { "docid": "7d57f9abe464f2692f5e4fd183a5c4bf", "score": "0.5913202", "text": "@Override\n\tpublic void colours() {\n\t\t\n\t}", "title": "" }, { "docid": "b26a6714da8b7dec3f5765db1fd6ecd2", "score": "0.5910562", "text": "public int makePressColor() {\n return makePressColor(backgroundColor);\n// int r = Color.red(backgroundColor);\n// int g = Color.green(backgroundColor);\n// int b = Color.blue(backgroundColor);\n// r = (int) (r * 7 / 8.0);\n// g = (int) (g * 7 / 8.0);\n// b = (int) (b * 7 / 8.0);\n// return Color.rgb(r, g, b);\n }", "title": "" }, { "docid": "3753e3e1a376342829edee850140f058", "score": "0.5908069", "text": "Color getColor() {\r\n \treturn Color.RED;\r\n }", "title": "" }, { "docid": "b501903a928bd5c12c9769cd429e97dc", "score": "0.5906427", "text": "public abstract int getColor();", "title": "" }, { "docid": "b501903a928bd5c12c9769cd429e97dc", "score": "0.5906427", "text": "public abstract int getColor();", "title": "" }, { "docid": "e1e709ca155a6980144d94d8a88df8da", "score": "0.59040105", "text": "String getColor(){\n\t\treturn color;\n\t}", "title": "" }, { "docid": "41eb90e3032268e92e2c40e03ddc86af", "score": "0.5903984", "text": "public Colors getColor() {\n return color;\n }", "title": "" }, { "docid": "41eb90e3032268e92e2c40e03ddc86af", "score": "0.5903984", "text": "public Colors getColor() {\n return color;\n }", "title": "" }, { "docid": "c318bfe930ba6cc7e6f121591b2208cf", "score": "0.59039783", "text": "private ColorSwatch() {\r\n \r\n }", "title": "" }, { "docid": "6cd3319e20a8e26efb599c1531ecd1b9", "score": "0.59035295", "text": "public Color getColor();", "title": "" }, { "docid": "1b06de6ef5bb3a8f90a678149eaee89c", "score": "0.5900252", "text": "public int darColor( )\n {\n return color;\n }", "title": "" }, { "docid": "aebf0492e6429d0f3ef3b70cde83d801", "score": "0.58979946", "text": "public String getColor() {\n return color;\n }", "title": "" }, { "docid": "aebf0492e6429d0f3ef3b70cde83d801", "score": "0.58979946", "text": "public String getColor() {\n return color;\n }", "title": "" }, { "docid": "aebf0492e6429d0f3ef3b70cde83d801", "score": "0.58979946", "text": "public String getColor() {\n return color;\n }", "title": "" } ]
eef899f429c00cb8f98be097b4d6a757
Constructs a String with all attributes in name = value format.
[ { "docid": "81273871a739072309bbaf62054a9784", "score": "0.0", "text": "@Override\r\n\tpublic String toString() {\r\n\t\tfinal String TAB = \" \";\r\n\r\n\t\tStringBuilder retValue = new StringBuilder();\r\n\r\n\t\tretValue.append(\"FileDTO ( \").append(super.toString()).append(TAB)\r\n\t\t\t\t.append(\"bytes = \").append(Arrays.toString(this.bytes))\r\n\t\t\t\t.append(TAB).append(\"contentType = \").append(this.contentType)\r\n\t\t\t\t.append(TAB).append(\"fileId = \").append(this.fileId)\r\n\t\t\t\t.append(TAB).append(\"fileSize = \").append(this.fileSize)\r\n\t\t\t\t.append(TAB).append(\"mapId = \").append(this.mapId).append(TAB)\r\n\t\t\t\t.append(\"realFilename = \").append(this.realFilename)\r\n\t\t\t\t.append(TAB).append(\"repositoryPath = \")\r\n\t\t\t\t.append(this.repositoryPath).append(TAB)\r\n\t\t\t\t.append(\"uniqueFilename = \").append(this.uniqueFilename)\r\n\t\t\t\t.append(TAB).append(\" )\");\r\n\r\n\t\treturn retValue.toString();\r\n\t}", "title": "" } ]
[ { "docid": "679b8d8f0be0fdf1fbe42085f5849888", "score": "0.69966674", "text": "public String toString()\n {\n StringBuffer result = new StringBuffer(\"LDAPAttribute: \");\n try {\n result.append(\"{type='\" + name + \"'\");\n if( values != null) {\n result.append(\", \");\n if( values.length == 1) {\n result.append(\"value='\");\n } else {\n result.append(\"values='\");\n }\n for(int i=0; i < values.length; i++) {\n if( i != 0) {\n result.append(\"','\");\n }\n if( ((byte[])values[i]).length == 0) {\n continue;\n }\n String sval = new String( (byte[])values[ i ], \"UTF-8\" );\n if( sval.length() == 0) {\n // didn't decode well, must be binary\n result.append(\"<binary value, length:\" + sval.length());\n continue;\n }\n result.append(sval);\n }\n result.append(\"'\");\n }\n result.append(\"}\");\n } catch( Exception e) {\n throw new RuntimeException(e.toString());\n }\n return result.toString();\n }", "title": "" }, { "docid": "136d0ff0ae9864f91405f54bae0b8c34", "score": "0.6765961", "text": "private String getAttributesString() {\n\t\tString out = \"\"; \n\t\tfor( XMLAttribute attribute : getAttributes() ) {\n\t\t\tout += \" \" + attribute.toString(); \n\t\t}\n\t\t\n\t\treturn out; \n\t}", "title": "" }, { "docid": "f46468206afa29ed6af326a84af712cc", "score": "0.673377", "text": "public String attributesToString() {\n StringBuilder sb = new StringBuilder();\n\n sb.append(\"class='\");\n sb.append(this.getClass().getName());\n sb.append(\"', \");\n\n sb.append(\"rank='\");\n sb.append(rank);\n sb.append(\"', \");\n\n sb.append(\"id='\");\n sb.append(id);\n sb.append(\"', \");\n\n return sb.toString();\n }", "title": "" }, { "docid": "e201e1eb528328a1243ae963775b7ff0", "score": "0.6573144", "text": "public String toString(){\n\t\treturn attribute+\"=\"+value;\n\t}", "title": "" }, { "docid": "33493b1d8753f71129f409641541b89d", "score": "0.6529537", "text": "public Attribute buildStringAttribute(String name, String value) {\r\n ArrayList<String> values = new ArrayList<>();\r\n values.add(value);\r\n return buildStringAttribute(name, values);\r\n }", "title": "" }, { "docid": "8b7486ca570cbf82d94655e47f392ac9", "score": "0.6378871", "text": "@SyntheticMember\n @Pure\n protected String attributesToString() {\n StringBuilder result = new StringBuilder(super.attributesToString());\n result.append(\"boid = \").append(this.boid);\n result.append(\"x = \").append(this.x);\n result.append(\"y = \").append(this.y);\n return result.toString();\n }", "title": "" }, { "docid": "87e80f074c9cd23c4c10fbbb0b9b0bc7", "score": "0.624651", "text": "public String getAllAttributes(){\n\t\tif(allAttributes == null){\n\t\t\tStringBuilder strb = new StringBuilder();\n\t\t\tfor(int i = 0; i < attributes.size(); i++){\n\t\t\t\tstrb.append(getTableName())\n\t\t\t\t.append(\".\")\n\t\t\t\t.append(attributes.get(i).getDBName());\n\t\t\t\tif( i + 1 < attributes.size())\n\t\t\t\t\tstrb.append(\",\");\n\t\t\t}\n\t\t\tallAttributes = strb.toString();\n\t\t}\n\t\treturn allAttributes;\n\t}", "title": "" }, { "docid": "679972d2a759e42809e375c6c5effd8b", "score": "0.62450355", "text": "public CharSequence generateAttributes(final Attribute attribute) {\n StringConcatenation _builder = new StringConcatenation();\n _builder.append(\"private $\");\n String _name = attribute.getName();\n _builder.append(_name, \"\");\n _builder.append(\";\");\n _builder.newLineIfNotEmpty();\n return _builder;\n }", "title": "" }, { "docid": "28f2250fa2e118c37afca6b36db1c679", "score": "0.6100213", "text": "public String createHtmlAttribute(String name, String value) {\n value = StringUtils.trim(value);\n if (StringUtils.isNotEmpty(value)) {\n return new StringBuffer().append(name).append(\"=\\\"\").append(value).append(\"\\\"\").toString();\n }\n return StringUtils.EMPTY;\n }", "title": "" }, { "docid": "13883732d1809285ad8f6f621e547786", "score": "0.6075083", "text": "public Attribute buildStringAttribute(String name, Collection<String> values) {\r\n SAMLObjectBuilder attrBuilder = getObjectBuilder(Attribute.DEFAULT_ELEMENT_NAME);\r\n Attribute attr = (Attribute) attrBuilder.buildObject();\r\n attr.setName(name);\r\n\r\n // Set custom Attributes\r\n for (String value : values) {\r\n XMLObjectBuilder stringBuilder = Configuration.getBuilderFactory().getBuilder(XSString.TYPE_NAME);\r\n XSString attrValue = (XSString) stringBuilder.buildObject(\r\n AttributeValue.DEFAULT_ELEMENT_NAME, XSString.TYPE_NAME\r\n );\r\n attrValue.setValue(value);\r\n attr.getAttributeValues().add(attrValue);\r\n }\r\n\r\n return attr;\r\n }", "title": "" }, { "docid": "f30b5c85d9d36eb4664f966a983ced32", "score": "0.60741985", "text": "public String toString()\n\t{\n\t\t\tString append=StringHelper.nonNull(SUFFIX);\n\t\t\t\n\t\t String xname=this.getAttributeValue(\"name\");\n\t\t if(xname!=null){\n\t\t\treturn xname+append;\n\t\t }else{\n\t\t\t return name+append;\n\t\t }\n\t\t \n\t}", "title": "" }, { "docid": "f0deb1deff259ee6d0e50df07da327a1", "score": "0.6040858", "text": "public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(dataName);\n sb.append(\"=\");\n sb.append(dataValue);\n return sb.toString();\n }", "title": "" }, { "docid": "9d55e1ba416648d875749bf47b03c28f", "score": "0.60026693", "text": "protected String getAttributeData()\r\n {\r\n String result=\"\";\r\n if(attribute!=null && attribute!=\"\")\r\n result = \" \" + attribute.toString() + \" \"; \r\n return result;\r\n }", "title": "" }, { "docid": "dc0a82ad717fd38ddeda4ceb5f93ef5b", "score": "0.5960161", "text": "@Override\n\tpublic String toString() {\n\t\tStringBuilder sb = new StringBuilder();\n\t\tsb.append('(');\n\t\tsb.append(\"field0: \");\n\t\tsb.append(field0);\n\t\tsb.append(\", \");\n\t\tsb.append(\"att1: \");\n\t\tsb.append(att1);\n\t\tsb.append(\", \");\n\t\tsb.append(\"att2: \");\n\t\tsb.append(att2);\n\t\tsb.append(')');\n\t\treturn sb.toString();\n\t}", "title": "" }, { "docid": "eb93c893441a6680669fa6c18ddc5ff0", "score": "0.5934248", "text": "@Override\r\n public String toString()\r\n {\r\n return \"(\" + getAttribute() + \", \" + getValue() + \")\";\r\n }", "title": "" }, { "docid": "c5efb4e64ee64c36e032242314dc3fc6", "score": "0.5911579", "text": "public String toString() {\n\n\t\tfinal StringBuilder buffer = new StringBuilder();\n\n\t\tbuffer.append(\"attrGroupId=[\").append(attrGroupId).append(\"] \");\n\t\tbuffer.append(\"attrId=[\").append(attrId).append(\"] \");\n\n\t\treturn buffer.toString();\n\t}", "title": "" }, { "docid": "6ea609c2e61bc0af65f8493ed653af7f", "score": "0.587588", "text": "public String toStringStructure() {\n return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)\n .append(\"attributes\", attributes.entrySet().stream().map(entry-> \" \"+entry.getKey()+\"=\"+entry.getValue()).collect(Collectors.joining(\"\\n\")))\n .append(\"renderers\", renderers.stream().map(BaseWordRenderer::toString).collect(Collectors.joining(\"\\n \", \" \", \"\")))\n .build();\n }", "title": "" }, { "docid": "b23bd10942cee992189a82637fd41be6", "score": "0.5865208", "text": "@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(\"{\");\n if (getIdAttributeName() != null)\n sb.append(\"IdAttributeName: \").append(getIdAttributeName()).append(\",\");\n if (getTimestampAttributeName() != null)\n sb.append(\"TimestampAttributeName: \").append(getTimestampAttributeName()).append(\",\");\n if (getXAttributeName() != null)\n sb.append(\"XAttributeName: \").append(getXAttributeName()).append(\",\");\n if (getYAttributeName() != null)\n sb.append(\"YAttributeName: \").append(getYAttributeName());\n sb.append(\"}\");\n return sb.toString();\n }", "title": "" }, { "docid": "7f4e5ef4f84cf5854dc3246b221759b6", "score": "0.58524936", "text": "Attribute newAttribute( String name, String... values );", "title": "" }, { "docid": "96d115784550f7eee27886edeb2c5bdb", "score": "0.5848044", "text": "protected static void addAttribute(StringBuffer buffer, String name, String value) {\n if ( value != null ) {\n buffer.append(' ');\n buffer.append(name);\n buffer.append(\"=\\\"\");\n buffer.append(value);\n buffer.append(\"\\\"\");\n }\n }", "title": "" }, { "docid": "3eb9206caf2d099ace3e18785ff38413", "score": "0.5831014", "text": "public final String toString()\n\t{\n\t\tString res = \"\";\n\t\tres += \"Name:\" + getName();\n\t\tres += \" Val:\" + getValue();\n\t\treturn res;\n\t}", "title": "" }, { "docid": "eed2f333ce5ca4389b9797457336d140", "score": "0.5830549", "text": "public Attribute(String name, String value)\n {\n\tthis.name = name;\n\tthis.value = value;\n }", "title": "" }, { "docid": "a6aa239afd401be3e2a20d622fb0eb66", "score": "0.58234644", "text": "@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(\"{\");\n if (getAttributes() != null)\n sb.append(\"Attributes: \").append(getAttributes()).append(\",\");\n if (getKmsKeyId() != null)\n sb.append(\"KmsKeyId: \").append(getKmsKeyId());\n sb.append(\"}\");\n return sb.toString();\n }", "title": "" }, { "docid": "39ca9c722d8226eb619f401f6ace6f1b", "score": "0.58217514", "text": "public String toString() {\n StringBuffer sb = new StringBuffer();\n\n sb.append(\"DateAttribute: [\\n\");\n sb.append(\" Date: \" + value + \" local time\");\n sb.append(\" TimeZone: \" + timeZone);\n sb.append(\" Defaulted TimeZone: \" + defaultedTimeZone);\n sb.append(\"]\");\n\n return sb.toString();\n }", "title": "" }, { "docid": "61d0ddd60d03898dd05947278cd46752", "score": "0.58120865", "text": "protected String formatString() {\n\n StringBuffer valueBuffer = new StringBuffer(\"( \");\n String token;\n String[] strArray;\n\n if( (token = getID()) != null){\n valueBuffer.append(token);\n }\n strArray = getNames();\n if( strArray != null){\n valueBuffer.append(\" NAME \");\n if (strArray.length == 1){\n valueBuffer.append(\"'\" + strArray[0] + \"'\");\n }\n else {\n valueBuffer.append(\"( \");\n\n for( int i = 0; i < strArray.length; i++ ){\n valueBuffer.append(\" '\" + strArray[i] + \"'\");\n }\n valueBuffer.append(\" )\");\n }\n }\n if( (token = getDescription()) != null){\n valueBuffer.append(\" DESC \");\n valueBuffer.append(\"'\" + token + \"'\");\n }\n if( isObsolete()){\n valueBuffer.append(\" OBSOLETE\");\n }\n if( (token = getSyntaxString()) != null){\n valueBuffer.append(\" SYNTAX \");\n valueBuffer.append(token);\n }\n valueBuffer.append(\" )\");\n return valueBuffer.toString();\n }", "title": "" }, { "docid": "2926ec78aa6d41dc2a777d255cfb4fca", "score": "0.5772175", "text": "@Override\n protected AttributesImpl getXMLAttributes() {\n AttributesImpl attrs = super.getXMLAttributes();\n try {\n attrs.addAttribute(\"\", \"name\", \"name\", \"CDATA\", getParameterName());\n if (getParameterType() != null && getParameterType().trim().length() > 0) {\n attrs.addAttribute(\"\", \"type\", \"type\", \"CDATA\", getParameterType());\n }\n attrs.addAttribute(\"\", \"value\", \"value\", \"CDATA\", getParameterValue());\n } catch (Exception e) {\n e.printStackTrace();\n }\n return attrs;\n }", "title": "" }, { "docid": "ad7c847d03ef4c2a226d2fbaec29e5bd", "score": "0.5766405", "text": "public String toXMLString() {\r\n\t\t\r\n\t\tStringBuffer buf = new StringBuffer();\r\n\t\tbuf.append(\"<\" + XML_FIELD);\r\n\t\tfor (Iterator<String> iter3 = this.getAttrs().iterator(); iter3.hasNext(); )\r\n\t\t{\r\n\t\t\tString attr = (String)iter3.next();\r\n\t\t\tbuf.append(\" \").append(attr);\r\n\t\t}\r\n\t\tbuf.append(\">\");\r\n\t\tif (this.getValue() != null) {\r\n\t\t\tbuf.append(this.getValue());\r\n\t\t}\r\n\t\tbuf.append(QPXMLHelper.buildElementEnd(XML_FIELD));\r\n\t\t\r\n\t\treturn buf.toString();\r\n\t}", "title": "" }, { "docid": "dcddc19afb1161d571d602e76f918e01", "score": "0.57425195", "text": "List<String> attributes();", "title": "" }, { "docid": "78e433c33de6d0d0cefbad4ab5787d03", "score": "0.5738948", "text": "public String toString() {\n String str = name + \"-->\" + value;\n\n return str;\n }", "title": "" }, { "docid": "4a4fa64fed1c7cd057b164eb3bfec5b6", "score": "0.5694673", "text": "public String asString() {\n\t\treturn StringUtils.formatString(\"Person[Name='{0}', DOB='{1}', Address='{2}', Postcode='{3}', Gender='{4}', Phone='{5}']\", this.name, this.dateOfBirth, this.address, this.postcode, this.gender, this.telephone);\n\t}", "title": "" }, { "docid": "d3a6959968576af4cc7e2f266fce3283", "score": "0.56904966", "text": "public String toString(){\n String end = \"\";\n end += name + \"\\n{\\n\";\n for(DataPair<String, String> i : stringVars){\n end += \"\\tString \"+ i.getOne() + \" = \\\"\" + i.getTwo() + \"\\\";\\n\";\n }\n for(DataPair<String, Integer> i : intVars){\n end += \"\\tint \" + i.getOne() + \" = \" + i.getTwo() + \";\\n\";\n }\n for(DataPair<String, Double> i : doubleVars){\n end += \"\\tdouble \" + i.getOne() + \" = \" + i.getTwo() + \";\\n\";\n }\n for(DataPair<String, Boolean> i : boolVars){\n end += \"\\tboolean \" + i.getOne() + \" = \" + i.getTwo() + \";\\n\";\n }\n for(DataPair<String, Character> i : charVars){\n end += \"\\tchar \" + i.getOne() + \" = \\'\" + i.getTwo() + \"\\';\\n\";\n }\n for(DataPair<String, String> i : miscVars){\n end +=\"\\tTYPE_NOT_FOUND \" + i.getOne() + \" = \" + i.getTwo() + \";\\n\";\n }\n end += \"}\\n\";\n return end;\n }", "title": "" }, { "docid": "874dac1e207d1b020cedb42d492cb19d", "score": "0.56269187", "text": "public String buildMessageAttribute() {\n String s = \"Classification Status: \" + getDataManager().getClassification() + \"\\n\"\n + \"Encryption Status: \" + getDataManager().getEncryption() + \"\\n\";\n if (shouldEncrypt()) {\n s = s.concat(\"Algorithm: \" + (getDataManager().getIsEcc() ? \"ECC\" : \"RSA\") + \"\\n\");\n }\n return s;\n }", "title": "" }, { "docid": "e34633f22d44b48da87b6281afc545b8", "score": "0.561838", "text": "public String toString() {\n\n\t\tStringBuilder buffer = new StringBuilder();\n\n\t\tbuffer.append(\"id=[\").append(id).append(\"] \");\n\t\tbuffer.append(\"name=[\").append(name).append(\"] \");\n\n\t\treturn buffer.toString();\n\t}", "title": "" }, { "docid": "2ac8ab7036579b677f1ff1147922f448", "score": "0.55657876", "text": "public String toString(){\r\n StringBuffer szBuf = new StringBuffer();\r\n\r\n szBuf.append(getName());\r\n if (_vars!=null){\r\n szBuf.append(\" as \");\r\n szBuf.append(getVars().toString());\r\n }\r\n\r\n return (szBuf.toString());\r\n }", "title": "" }, { "docid": "c12909406de310488a537d49f896fc59", "score": "0.55554277", "text": "@Override\n public String toString() {\n return String.format(\"Name: %-20s ID: %-12s Username: %-18s Mail: %-20s\", name, ID, username, email);\n }", "title": "" }, { "docid": "5d1361cd98670b98a453afd8bfb58915", "score": "0.55214244", "text": "public static final String xmlAttributes(final BaseObject object) {\r\n\t\t\r\n\t\ttry {\r\n\t\t\treturn FormatSAPI.xmlAttributesImpl(object, new StringBuilder(64)).toString();\r\n\t\t} catch (final IOException e) {\r\n\t\t\tthrow new RuntimeException(e);\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "63b39ee76e74c94eef3953ce9218c483", "score": "0.549343", "text": "private String stringAttraytoString(String[] a) {\r\n\t\tString line = \"\";\r\n\t\tif (a != null) {\r\n\t\t\tfor (int i = 0; i < a.length; i++) {\r\n\t\t\t\tline = line + a[i] + \"\\n\";\r\n\t\t\t}\r\n\t\t\tline = line.substring(0, line.length() - \"\\n\".length());\r\n\t\t}\r\n\t\treturn line;\r\n\t}", "title": "" }, { "docid": "dd07cc400bf1d4a9d3bb398411908354", "score": "0.548063", "text": "@Override\n public String toString() {\n String str = \"\";\n\n str += String.format(\"%-15s: %s\\n\", \"Name\", name);\n str += String.format(\"%-15s: %s\\n\", \"Nationality\", nationality);\n str += String.format(\"%-15s: %s\\n\", \"Email\", email);\n\n return str;\n }", "title": "" }, { "docid": "f816490205351b93e0b30749e7d0f394", "score": "0.5479607", "text": "public static final String xmlElements(final String name, final BaseObject attributes) {\r\n\t\t\r\n\t\tassert Format.Xml.isValidName(name) : \"invalid element name: \" + name;\r\n\t\tif (attributes == null || attributes == BaseObject.UNDEFINED) {\r\n\t\t\treturn \"\";\r\n\t\t}\r\n\t\tif (attributes instanceof CharSequence || attributes.baseIsPrimitive()) {\r\n\t\t\tfinal StringBuilder result = new StringBuilder(64);\r\n\t\t\tresult.append('<').append(name).append('>');\r\n\t\t\ttry {\r\n\t\t\t\tFormat.Xml.xmlNodeValueImpl(attributes, result);\r\n\t\t\t} catch (final IOException e) {\r\n\t\t\t\tthrow new RuntimeException(e);\r\n\t\t\t}\r\n\t\t\tresult.append(\"</\").append(name).append('>');\r\n\t\t\treturn result.toString();\r\n\t\t}\r\n\t\t{\r\n\t\t\tfinal BaseArray array = attributes.baseArray();\r\n\t\t\tif (array != null) {\r\n\t\t\t\tfinal int count = array.length();\r\n\t\t\t\tif (count == 0) {\r\n\t\t\t\t\treturn \"\";\r\n\t\t\t\t}\r\n\t\t\t\tfinal StringBuilder result = new StringBuilder(128);\r\n\t\t\t\ttry {\r\n\t\t\t\t\tfor (int i = 0; i < count; ++i) {\r\n\t\t\t\t\t\tfinal BaseObject item = array.baseGet(i, BaseObject.UNDEFINED);\r\n\t\t\t\t\t\tif (item == null || item == BaseObject.UNDEFINED) {\r\n\t\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif (item instanceof CharSequence || item.baseIsPrimitive()) {\r\n\t\t\t\t\t\t\tresult.append('<').append(name).append('>');\r\n\t\t\t\t\t\t\tFormat.Xml.xmlNodeValueImpl(item, result);\r\n\t\t\t\t\t\t\tresult.append(\"</\").append(name).append('>');\r\n\t\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tFormatSAPI.xmlElementImpl(name, item, result);\r\n\t\t\t\t\t}\r\n\t\t\t\t} catch (final IOException e) {\r\n\t\t\t\t\tthrow new RuntimeException(e);\r\n\t\t\t\t}\r\n\t\t\t\treturn result.toString();\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn FormatSAPI.xmlElement(name, attributes);\r\n\t}", "title": "" }, { "docid": "7b9ebc0e266c1296abcc07ba21cd96ba", "score": "0.54782677", "text": "@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(\"{\");\n if (getName() != null)\n sb.append(\"Name: \").append(getName()).append(\",\");\n if (getImage() != null)\n sb.append(\"Image: \").append(getImage()).append(\",\");\n if (getMountPoints() != null)\n sb.append(\"MountPoints: \").append(getMountPoints()).append(\",\");\n if (getPrivileged() != null)\n sb.append(\"Privileged: \").append(getPrivileged());\n sb.append(\"}\");\n return sb.toString();\n }", "title": "" }, { "docid": "aab006ef60cb0c836699faa180ce5058", "score": "0.5477016", "text": "Attribute newAttribute( String name, Value... values );", "title": "" }, { "docid": "817c98610847e005daddb2eca3940e07", "score": "0.54755455", "text": "public static HtmlAttributes name(String name) {\n return new HtmlAttributes().add(\"name\", name, ESCAPE_CHARS);\n }", "title": "" }, { "docid": "972a95e87569f28de3f9ead7aa7a91b4", "score": "0.54504997", "text": "private static String formatAttributeValue (String unformated)\n\t{\n\t\tString formated = unformated;\n\t\tformated = \"\\\"\" + formated + \"\\\"\";\n\t\treturn formated;\n\t}", "title": "" }, { "docid": "5ad759c6e4c4f74143bf20f2bbb75cc9", "score": "0.5444518", "text": "IAttributeValue.String makeValue(java.lang.String value);", "title": "" }, { "docid": "604c0d20ac9331524325a12a7d6ac877", "score": "0.5440424", "text": "public String formXMLString(final String tagName, final Object... attrNamesAndValues) {\n final Element element = makeElement(tagName, attrNamesAndValues);\n return xmlOutputter.outputString(element);\n }", "title": "" }, { "docid": "66832d31b4cc2af6aadf295112a1e387", "score": "0.5423632", "text": "public String toString() {\n\n String str = null;\n StringBuffer sb = new StringBuffer(1000);\n sb.append(\"[\" + super.toString() + \"]={\");\n boolean firstPropertyDisplayed = false;\n try {\n Field[] fields = this.getClass().getDeclaredFields();\n for (int i = 0; i < fields.length; i++) {\n if (firstPropertyDisplayed) {\n sb.append(\", \");\n } else {\n firstPropertyDisplayed = true;\n }\n sb.append(fields[i].getName() + \"=\" + fields[i].get(this));\n }\n sb.append(\"}\");\n str = sb.toString().trim();\n } catch (IllegalAccessException iae) {\n iae.printStackTrace();\n }\n return str;\n\n }", "title": "" }, { "docid": "704c74ba2fa0871d11c334930bc467d2", "score": "0.54235685", "text": "protected String paramString() {\r\n\t\tStringBuffer result = new StringBuffer();\r\n\r\n\t\tresult.append(\"path=\" + (path == null ? \"null\" : path.toString()));\r\n\t\tresult.append(\",stroke=\"\r\n\t\t\t\t+ (stroke == null ? \"null\" : stroke.toString()));\r\n\t\tresult.append(\",strokePaint=\"\r\n\t\t\t\t+ (strokePaint == null ? \"null\" : strokePaint.toString()));\r\n\t\tresult.append(',');\r\n\t\tresult.append(super.paramString());\r\n\r\n\t\treturn result.toString();\r\n\t}", "title": "" }, { "docid": "f212db78820a564e6bed315f4d26a6bd", "score": "0.5409597", "text": "@Override\r\n\tpublic String toString()\r\n\t{\r\n\t\tString nameLength = name.replaceAll(\".\", \"=\"); //the name variable but every character is replaced with '=', used for formatting\r\n\t\t\r\n\t\tString str = (\"======= \" + name + \" =======\"); //this is the actual string being displayed\r\n\t\tstr += (\"\\nLevel: \" + level);\r\n\t\tstr += (\"\\n(Total Experience: \" + experience + \")\");\r\n\t\tstr += (\"\\n\\nHealth: \" + health + \"/\" + maxHealth);\r\n\t\tstr += (\"\\nSP: \" + sp + \"/\" + maxSp);\r\n\t\tstr += (\"\\n\\nPower: \" + power);\r\n\t\tstr += (\"\\nDefense: \" + defense);\r\n\t\tstr += (\"\\nSpeed: \" + speed);\r\n\t\tstr += (\"\\nLuck: \" + luck);\r\n\t\tstr += (\"\\n========\" + nameLength + \"========\"); //this ensures that the bottom row of '=' is equal to the top row, which uses the character's name variable\r\n\t\t\r\n\t\treturn (str);\r\n\t}", "title": "" }, { "docid": "fb269e0bb786104df6f9116830017590", "score": "0.53993386", "text": "private void serializeAttribute(\r\n final StringBuffer result,\r\n final String value,\r\n final String xmlTag) {\r\n if (value != null\r\n && value.length() > 0) {\r\n result.append(\" \" + xmlTag + \"=\" + '\\\"'\r\n + value + '\\\"');\r\n }\r\n }", "title": "" }, { "docid": "854e035289b8b112d06f3a3001d20a2e", "score": "0.53770316", "text": "public String formXMLStringUsingMap(final String tagName,\n final Map<String, String> attrNamesAndValues) {\n final Element element = new Element(tagName);\n\n for (final Map.Entry<String, String> me : attrNamesAndValues.entrySet()) {\n setAttributeValue(element, me.getKey(), me.getValue());\n }\n\n return xmlOutputter.outputString(element);\n }", "title": "" }, { "docid": "dd24d3a57e7d201beaa15a32a88df873", "score": "0.536816", "text": "public void addAttr(String name, String value) { \r\n\t\tattrs.add( name + \"=\\\"\" + value + \"\\\"\"); \r\n\t}", "title": "" }, { "docid": "3a05c29e1488e19ce951a34c6f02eed1", "score": "0.5358088", "text": "public String toString()\n\t{\n\t\treturn \"Name: \" + name + \"Age \" + age;\n\t}", "title": "" }, { "docid": "6cbd19ce995a077b2701887f6ac833f7", "score": "0.53476876", "text": "public String toString() {\n\t\tString str = \"\";\n\t\tstr = String.format(\"%1s \", this.name);\n\t\treturn str; \n\t}", "title": "" }, { "docid": "f68671ddb60a3b2233b9363fb7a693bf", "score": "0.53411317", "text": "public String toString() {\r\n\t\treturn fieldname + \"=\" + value;\r\n\t}", "title": "" }, { "docid": "4c25dcfa0a9141de62e7eccb4c40731c", "score": "0.53383493", "text": "@Override\r\n public StringBuilder appendAttributes(StringBuilder buf) {\r\n super.appendAttributes(buf);\r\n appendAttribute(buf, \"operator\", operator);\r\n appendAttribute(buf, \"unit\", unit);\r\n return buf;\r\n }", "title": "" }, { "docid": "7fd5ccb98c2d07e4f6f4f3358e82f3a2", "score": "0.5335106", "text": "public String toString() { \n StringBuffer sb = new StringBuffer(); \n sb.append(\"{\\\"id\\\":\"); \n sb.append(id);\n sb.append(\",\\\"username\\\":\"); \n sb.append(username);\n sb.append(\",\\\"password\\\":\");\n sb.append(password);\n sb.append(\",\\\"displayname\\\":\");\n sb.append(displayname);\n sb.append(\",\\\"email\\\":\");\n sb.append(email);\n sb.append(\",\\\"firstname\\\":\");\n sb.append(firstname);\n sb.append(\",\\\"lastname\\\":\");\n sb.append(lastname);\n sb.append(\",\\\"enabled\\\":\");\n sb.append(enabled);\n sb.append(\",\\\"version\\\":\");\n sb.append(version);\n sb.append(\"}\"); \n return sb.toString(); \n }", "title": "" }, { "docid": "cfdcba5e2d2fde9de9b2cbfeeec5e45f", "score": "0.5333697", "text": "private static void writeAttribute(\r\n\t\tStringBuffer buf, \r\n\t\tString name, \r\n\t\tString value\r\n\t) throws IllegalArgumentException {\r\n\t\tif (isValidXMLAttributeName(name)) {\r\n\t\t\tbuf.append(\" \").append(name).append(\"=\\\"\").append(escapeXMLAttribute(value)).append(\"\\\"\");\r\n\t\t} else {\r\n\t\t\tthrow new IllegalArgumentException(\"Invalid attribute name: \" + name);\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "4623822af9b86f3adb89d690d5654e6c", "score": "0.5316782", "text": "private void attribute(String name, String value) {\n getLogger().info(\"@\" + name + \"=\" + value);\n\n attr.addAttribute(\"\", name, name, \"CDATA\", value);\n }", "title": "" }, { "docid": "587f9c3e7233fb47a3b107db18893a1d", "score": "0.5313596", "text": "public String toString() {\n StringBuffer out = new StringBuffer();\n out.append(\"\\nRadioProgram class, mapping to table radio-program\\n\");\n out.append(\"Persistent attributes: \\n\"); \n out.append(\"name = \" + this.name + \"\\n\"); \n out.append(\"address = \" + this.address + \"\\n\"); \n out.append(\"datejoin = \" + this.datejoin + \"\\n\"); \n return out.toString();\n }", "title": "" }, { "docid": "95fa826efbeb39c327895a9b0f7a9bf5", "score": "0.53100765", "text": "private Attributes() {\n\t\tsuper(\"ATTRIBUTES\", org.jooq.util.db2.syscat.Syscat.SYSCAT);\n\t}", "title": "" }, { "docid": "f0d71811049f15ea8f4aed5504eb33c3", "score": "0.53062886", "text": "@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(\"{\");\n if (getDescription() != null)\n sb.append(\"Description: \").append(getDescription()).append(\",\");\n if (getExpireTime() != null)\n sb.append(\"ExpireTime: \").append(getExpireTime()).append(\",\");\n if (getForceUpdate() != null)\n sb.append(\"ForceUpdate: \").append(getForceUpdate()).append(\",\");\n if (getKeyName() != null)\n sb.append(\"KeyName: \").append(getKeyName()).append(\",\");\n if (getNoExpiry() != null)\n sb.append(\"NoExpiry: \").append(getNoExpiry()).append(\",\");\n if (getRestrictions() != null)\n sb.append(\"Restrictions: \").append(getRestrictions());\n sb.append(\"}\");\n return sb.toString();\n }", "title": "" }, { "docid": "bbeaf1e0ce6e26de7f27d9b5ee770c31", "score": "0.530537", "text": "public String attributeString(Instances dataset) {\n \n return dataset.attribute(attIndex).name();\n }", "title": "" }, { "docid": "e9f1f474ffa44f69981bbb8e17ce55e4", "score": "0.5297998", "text": "public String build() {\n StringBuilder stringBuilder = new StringBuilder();\n stringBuilder.append(\"{\").append(NEW_LINE);\n\n Iterator<String> iterator = variables.iterator(); // Recorremos toda la lista de variables y las vamos añadiendo\n // al String final\n\n while (iterator.hasNext()) {\n\n stringBuilder.append(new String(new char[nivelSangrado]).replace('\\0', ' '));\n stringBuilder.append(anadirSangrado(iterator.next(), nivelSangrado)); // Añadimos el valor asociado, pero\n // sangrando todas las líneas a partir\n // de la primera (si son varias\n // líneas, el sangrado no aparece\n // automáticamente)\n\n if (iterator.hasNext()) {\n stringBuilder.append(\",\"); // Ponemos la coma si hay más elementos\n }\n\n stringBuilder.append(NEW_LINE);\n }\n\n stringBuilder.append(\"}\");\n\n return stringBuilder.toString();\n }", "title": "" }, { "docid": "e6d4daad35b186b6f91e988dac0a72d7", "score": "0.5284336", "text": "private String toString(int level) {\n\n StringBuffer text = new StringBuffer();\n\n if (m_Attribute == null) {\n if (Instance.isMissingValue(m_ClassValue)) {\n text.append(\": null\");\n } else {\n text.append(\": \" + m_ClassAttribute.value((int) m_ClassValue));\n }\n } else {\n for (int j = 0; j < m_Attribute.numValues(); j++) {\n text.append(\"\\n\");\n for (int i = 0; i < level; i++) {\n text.append(\"| \");\n }\n text.append(m_Attribute.name() + \" = \" + m_Attribute.value(j));\n text.append(m_Successors[j].toString(level + 1));\n }\n }\n return text.toString();\n }", "title": "" }, { "docid": "b187488ed40f63bcb48c1b4467064390", "score": "0.52779186", "text": "public interface String extends IAttributeType {\n\n\t\t/**\n\t\t * Returns a new attribute value for this attribute type with the given\n\t\t * value.\n\t\t * \n\t\t * @param value\n\t\t * a value\n\t\t * @return a new attribute value for this type and the given value\n\t\t */\n\t\tIAttributeValue.String makeValue(java.lang.String value);\n\n\t}", "title": "" }, { "docid": "dc4dae258d07ae60003cb96175e5d6f6", "score": "0.52672005", "text": "@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(\"{\");\n if (getAttributePath() != null)\n sb.append(\"AttributePath: \").append(getAttributePath());\n sb.append(\"}\");\n return sb.toString();\n }", "title": "" }, { "docid": "a2f7ff5554e0b579001dbf0a94db2e34", "score": "0.52656496", "text": "public String toString(){\r\n StringBuffer buff = new StringBuffer();\r\n \tbuff.append(CLASS_NAME).append(\"[\").append(\"\\n\")\r\n \t .append(\"name \").append(name).append(\"\\n\")\r\n\t \t.append(\"vendor \").append(vendor).append(\"\\n\")\t\t\t\r\n\t \t.append(\"dbDriver \").append(dbDriver).append(\"\\n\")\r\n\t \t.append(\"dbServer \").append(dbServer).append(\"\\n\")\t\t\t\r\n\t \t.append(\"dbLogin \").append(dbLogin).append(\"\\n\")\t\t\t\r\n\t \t.append(\"]\").append(\"\\n\");\r\n\t\t\t\r\n\t\treturn buff.toString();\r\n }", "title": "" }, { "docid": "bb80aa9539e0b506d4a0ca5c80e701ed", "score": "0.52633494", "text": "private String attr(String attrName) {\n return \"\\\"\" + attrName + \"\\\"\";\n }", "title": "" }, { "docid": "0ddc7c38863acc45a9cb9bb4b3a4743b", "score": "0.5262199", "text": "@Override\n\t\tpublic String toString() {\n\t\t\treturn \"\" + key + \"=\" + value;\n\t\t}", "title": "" }, { "docid": "fd65e69d7e373463aaa657fad2b8eb43", "score": "0.5259251", "text": "public String toString() {\n int max = size() - 1;\n StringBuffer buf = new StringBuffer();\n Enumeration k = keys();\n Enumeration e = elements();\n buf.append(\"{\");\n\n for (int i = 0; i <= max; i++) {\n String s1 = k.nextElement().toString();\n String s2 = e.nextElement().toString();\n buf.append(s1 + \"=\" + s2);\n if (i < max) {\n buf.append(\", \");\n }\n }\n buf.append(\"}\");\n return buf.toString();\n }", "title": "" }, { "docid": "f5dbdedb352283b96be1d2d9be06ed6b", "score": "0.52554566", "text": "protected void append4CIAttributes(final StringBuilder _cmd)\n {\n _cmd.append(\"\\n\\ntestAttributes -\").append(this.getCI().getMxType()).append(\" \\\"${NAME}\\\"\");\n // ignore attributes\n for (final AbstractAttributeData<?> attr : this.ignoreAttributes) {\n _cmd.append(\" -ignoreattr \\\"\").append(AbstractTest.convertTcl(attr.getName())).append('\\\"');\n }\n // remove attributes\n for (final AbstractAttributeData<?> attr : this.removeAttributes) {\n _cmd.append(\" -removeattr \\\"\").append(AbstractTest.convertTcl(attr.getName())).append('\\\"');\n }\n // assigned attributes\n _cmd.append(\" -attributes [list \\\\\\n\");\n for (final AbstractAttributeData<?> attr : this.attributes) {\n _cmd.append(\" \\\"\").append(AbstractTest.convertTcl(attr.getName())).append(\"\\\" \\\\\\n\");\n }\n _cmd.append(\"]\\n\");\n }", "title": "" }, { "docid": "6d381ef0c8567ee2859547bc008794bb", "score": "0.5250604", "text": "public static HtmlAttributes compact(String compact) {\n return new HtmlAttributes().add(\"compact\", compact, ESCAPE_CHARS);\n }", "title": "" }, { "docid": "3d936dbcb3b5e095d55c845494b7b8e8", "score": "0.5243029", "text": "@Override\n public String toString() {\n return \"{email: \\\"\" + email + \"\\\", name: \" + name + \"\\\"}\";\n }", "title": "" }, { "docid": "7b0e17865befbe7cbba8df743a9d54a0", "score": "0.5236312", "text": "@Function\n public static String createHtmlAttribute(String name, String value) {\n return getTemplatingFunctions().createHtmlAttribute(name, value);\n }", "title": "" }, { "docid": "0f14f7b2a08d1b17a09f7c7d63b29522", "score": "0.52226967", "text": "@Override\n public String toString() {\n if (value != null) {\n return name + \"=\" + value;\n } else if (CoreUtils.isNullOrEmpty(values)) {\n return \"\";\n }\n\n checkCachedStringValue();\n return name + \"=\" + CACHED_STRING_VALUE_UPDATER.get(this);\n }", "title": "" }, { "docid": "a820852b1581e1391e43770366d1ddc7", "score": "0.5218162", "text": "public String toString()\n {\n String str = this.getClass().getName() + \"[\";\n String separator = \"\";\n\n Field[] fields = this.getClass().getDeclaredFields();\n\n for ( Field field : fields )\n {\n try\n {\n str += separator + field.getType().getName() + \" \"\n + field.getName() + \":\" + field.get( this );\n }\n catch ( IllegalAccessException ex )\n {\n System.out.println( ex );\n }\n\n separator = \", \";\n }\n\n return str + \"]\";\n }", "title": "" }, { "docid": "b08c34e5fe39678afe5faa7040478b4f", "score": "0.5217926", "text": "@Override\r\n\tpublic String toString() {\n\t\treturn \"[ name : \"+name+\", id : \"+id+\" ]\";\r\n\t}", "title": "" }, { "docid": "488dee488ff241152ad803312c3b3dbc", "score": "0.5213289", "text": "public String toString(){\n \treturn String.format(\" Name:%s HP: %d Type: %s Resist: %s Weakness: %s \\n\", name, hp, type, resist, weak);\n }", "title": "" }, { "docid": "321ec68613862e29f558e1d38043a8f4", "score": "0.52095544", "text": "public String paramString() {\n StringBuilder str = new StringBuilder(80);\n\n switch (id) {\n case MOUSE_PRESSED:\n str.append(\"MOUSE_PRESSED\");\n break;\n case MOUSE_RELEASED:\n str.append(\"MOUSE_RELEASED\");\n break;\n case MOUSE_CLICKED:\n str.append(\"MOUSE_CLICKED\");\n break;\n case MOUSE_ENTERED:\n str.append(\"MOUSE_ENTERED\");\n break;\n case MOUSE_EXITED:\n str.append(\"MOUSE_EXITED\");\n break;\n case MOUSE_MOVED:\n str.append(\"MOUSE_MOVED\");\n break;\n case MOUSE_DRAGGED:\n str.append(\"MOUSE_DRAGGED\");\n break;\n case MOUSE_WHEEL:\n str.append(\"MOUSE_WHEEL\");\n break;\n default:\n str.append(\"unknown type\");\n }\n\n // (x,y) coordinates\n str.append(\",(\").append(x).append(\",\").append(y).append(\")\");\n str.append(\",absolute(\").append(xAbs).append(\",\").append(yAbs).append(\")\");\n\n if (id != MOUSE_DRAGGED && id != MOUSE_MOVED) {\n str.append(\",button=\").append(getButton());\n }\n\n if (getModifiers() != 0) {\n str.append(\",modifiers=\").append(getMouseModifiersText(modifiers));\n }\n\n if (getModifiersEx() != 0) {\n // Using plain \"modifiers\" here does show an excluded extended\n // buttons in the string event representation.\n // getModifiersEx() solves the problem.\n str.append(\",extModifiers=\").append(getModifiersExText(getModifiersEx()));\n }\n\n str.append(\",clickCount=\").append(clickCount);\n\n return str.toString();\n }", "title": "" }, { "docid": "6fa6eaf1b9f94743947f1afa91441252", "score": "0.5206747", "text": "public String toString() {\n String types = \"\";\n\n for (int i = 0, ii = getAttributeCount(); i < ii; i++) {\n types += get(i);\n\n if (i < ii) {\n types += \" , \";\n }\n }\n\n return \"FeatureTypeFactory(\" + getClass().getName() + \") [ \" + types\n + \" ]\";\n }", "title": "" }, { "docid": "44789070d02f9f676b6f3c9ca728b050", "score": "0.52062243", "text": "protected String convertToString() {\n\t\tString s = \"\";\n\t\ts.concat(\"User: \");\n\t\ts.concat(\"(\" + firstName + \")\" + \" \");\n\t\ts.concat(\"(\" + lastName + \")\" + \" \");\n\t\ts.concat(\"(\"+ ID + \")\" + \" \");\n\t\ts.concat(\"(X) / (X) / (X)/ (X) / (X)\" );\n\t\treturn s;\n\t}", "title": "" }, { "docid": "45d41d422d4927d2724a5b6b215160b9", "score": "0.5203682", "text": "@Override\r\n public StringBuilder appendAttributeString(StringBuilder buf)\r\n {\r\n return appendAttribute(buf, \"val\", Integer.toString(val));\r\n }", "title": "" }, { "docid": "fc3c692e03a12d3d74ec14c9e78960b7", "score": "0.5202594", "text": "public String toString() {\n\t\tString output = mKey + \"\\\" \\\"\" + mValue + \"\\\"\";\n\t\t// System.out.println(output);\n\t\treturn output;\n\t}", "title": "" }, { "docid": "e69a44eda1f4693195b2320e98259a5e", "score": "0.5202544", "text": "public Attribute(String name)\n {\n\tthis.name = name;\n }", "title": "" }, { "docid": "13de0a8ad4d7e0906cb2805d8bb45598", "score": "0.52018964", "text": "public String toString() {\n String result=\"\";\n for(int i = 0; i<this.numSelections; i++){\n \tresult = result+ instances.attribute(i).name();\n }\n \n return result;\n }", "title": "" }, { "docid": "a785fc1ecbe90bde5823539f417f3526", "score": "0.51991713", "text": "public String toString() {\n\n\t\treturn (\n\n\t\t\" The name is \" + name + \" and the age is \" + age);\n\n\t}", "title": "" }, { "docid": "874343e472ce94ade91fc36b9fc14c32", "score": "0.5193812", "text": "private void printAttribute(String keyString, Object value) {\n // If the value is a symbol table entry, use the identifier's name.\n // Else just use the value string.\n boolean isSymTabEntry = value instanceof SymbolTableEntry;\n String valueString = isSymTabEntry ?\n ( (SymbolTableEntry) value ).getName() :\n value.toString();\n \n String text = keyString.toLowerCase() + \"=\\\"\" + valueString + \"\\\"\";\n append(\" \");\n append(text);\n \n // Include an identifier's nesting level.\n if (isSymTabEntry) {\n int level = ( (SymbolTableEntry) value ).getSymbolTable().getNestingLevel();\n printAttribute(\"LEVEL\", level);\n }\n }", "title": "" }, { "docid": "c75accd9457be00f74b353e401e3e489", "score": "0.51926935", "text": "public String toString () {\n\t\tString ret = \"\\n\";\n\t\tret += \"Name: \" + name + \" \\tLvl: \" + level + \" \\tXP: \" + xp + \"\\n\";\n\t\tret += \"Class: \" + Class + \" \\tBackground: \" + background + \"\\n\";\n\t\tret += \"Training: \" + training + \" \\tTrait: \" + trait + \"\\n\";\n\t\tret += \"\\nAttributes\\n\";\n\t\tret += \"Str: \" + str + \"\\t\" + getMod(str) + \"\\n\";\n\t\tret += \"Dex: \" + dex + \"\\t\" + getMod(dex) + \"\\n\";\n\t\tret += \"Con: \" + con + \"\\t\" + getMod(con) + \"\\n\";\n\t\tret += \"Int: \" + Int + \"\\t\" + getMod(Int) + \"\\n\";\n\t\tret += \"Wis: \" + wis + \"\\t\" + getMod(wis) + \"\\n\";\n\t\tret += \"Cha: \" + cha + \"\\t\" + getMod(cha) + \"\\n\";\n\t\tret += \"\\nHP - max: \" + maxhp + \" \\tcurrent: \" + curhp + \" \\tEncumbrance: \" + getTotalEncumbrance() + \"\\n\";\n\t\tret += \"Attack Bonus: \" + ab + \" \\tArmor Class : \" + ac + \"\\n\";\n\t\tret += \"\\nArmor\\t\\t\\tAC\\n\";\n\t\tfor ( int i = 0; i < equip.size(); i++ ) {\n\t\t\tif( equip.get(i).isArmor ) {\n\t\t\t\tret += equip.get(i).toArmor() + \"\\n\";\n\t\t\t}\n\t\t} \n\t\t\n\t\tret += \"\\nWeapons\\t\\tHit\\tDmg\\tRange\\tAmmo\\n\";\n\t\tfor ( int i = 0; i < equip.size(); i++ ) {\n\t\t\tif( equip.get(i).isWeapon ) {\n\t\t\t\tret += equip.get(i).toWeapon() + \"\\n\";\n\t\t\t}\n\t\t} \n\t\t\n\t\tret += \"\\nEquipment\\tEnc\\n\";\n\t\tfor ( int i = 0; i < equip.size(); i++ ) {\n\t\t\tret += equip.get(i) + \"\\n\";\n\t\t} \n\t\t\n\t\tret += \"\\nSkills\\tRank\\n\";\n\t\tfor ( int i = 0; i < skills.size(); i++ ) {\n\t\t\tret += skills.get(i) + \"\\n\";\n\t\t} \n\n\t\tret += \"\\nSaving Throws\\n\";\t\t\n\t\tret += \"physical: \" + physical + \"\\n\";\n\t\tret += \"mental: \" + mental + \"\\n\";\n\t\tret += \"evade: \" + evade + \"\\n\";\n\t\tret += \"luck: \" + luck + \"\\n\";\n\t\tret += \"tech: \" + tech + \"\\n\";\n\t\t\n\t\tret += \"\\n\";\n\t\t\n\t\treturn ret;\n\t}", "title": "" }, { "docid": "2def356ec6fc77ccdd9bc84e41be7b1f", "score": "0.51900357", "text": "public String toString(){\r\n String result = \"Title: \" + title;\r\n result += \", \" + \"Artist: \" + artist;\r\n result += \", \" + \"Album: \" + album;\r\n \r\n for (int i = 0; i < scores.length; i ++){\r\n result += \", \" + attributes.get(i) + \": \" + scores[i];\r\n }\r\n return result;\r\n }", "title": "" }, { "docid": "557f62de8ed698741cb6966255a68951", "score": "0.5183596", "text": "@Override\n\tpublic String toString() {\n\t\treturn \"<cl:Construct>\" + \n\t comments().toString() +\n\t expressions().toString() + \"</cl:Construct>\";\n\t}", "title": "" }, { "docid": "0711e4fe8582b1cb52af61b2521971e1", "score": "0.51817036", "text": "@Override\n\tpublic String toString() {\n\t\tStringBuilder strBuilder = new StringBuilder(\"id :\").append(id)\n\t\t\t\t.append(\" name: \").append(name);\n\t\treturn strBuilder.toString();\n\t}", "title": "" }, { "docid": "b4df50251931f943edb13584bc79c821", "score": "0.5178934", "text": "public String toString() {\n return String.format(\"║ %-20s ║ %-5d ║ %-5d ║ %-20s ║ %-20s ║ %-20s ║ %-10b ║ %-10b ║\", this.name, this.hp, this.EC, this.type, this.resistance, this.weakness, this.stunned, this.disabled);\r\n }", "title": "" }, { "docid": "8a04b3923c49164fcfdd84cf8054a1b5", "score": "0.5178649", "text": "public String toString() {\n\t\t\n\t\treturn String.format (\"%s: %4d\",name, id);\n\t\t/*\n\t\tStringBuilder sb = new StringBuilder();\n\t\tsb.append(name).append( \": \" ).append(id);\n\t\t\n\t\treturn sb.toString();\n\t\t\t*/\t\n\t}", "title": "" }, { "docid": "8c959c49ef0bf807f881548cd2e436ab", "score": "0.517567", "text": "public String formatToString(){\r\n String info = super.secondaryToString(); \r\n for(int a = 0; a < NUMANS; a++){\r\n for(int b = 0; b < NUMSPECSEC; b++)\r\n info = info + yaAttr[b][a]; \r\n info = info + nextLine;\r\n } \r\n return info; \r\n }", "title": "" }, { "docid": "e009aa70d7d100ac4c8f4c8566034b6c", "score": "0.5171442", "text": "public String toString() {\n\t\tStringBuilder sb = new StringBuilder();\n\n\t\tsb.append(this.getClass().getName());\n\t\tsb.append(\" { \");\n\t\tsb.append(\"authScopeHost=\" + authScopeHost);\n\t\tsb.append(\" authScopePort=\" + authScopePort);\n\t\tsb.append(\" userName=\" + userName);\n\t\tsb.append(\" password=\" + password);\n\t\tsb.append(\" host=\" + host);\n\t\tsb.append(\" domain=\" + domain);\n\t\tsb.append(\" }\");\n\n\t\treturn sb.toString();\n\t}", "title": "" }, { "docid": "fb8b0f7cbc45e798ec6c2ffbfaf056aa", "score": "0.5169503", "text": "public String getAttributeStr() {\n\t\treturn attributeStr;\n\t}", "title": "" }, { "docid": "4e87d9ae954b74e56a3abef0739299fd", "score": "0.5169426", "text": "public String getPropertyAttributes();", "title": "" }, { "docid": "d80e53a0b02e6f30c6cf935f3f731ba8", "score": "0.5165455", "text": "@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(\"{\");\n if (getIdentityAttributeName() != null)\n sb.append(\"IdentityAttributeName: \").append(getIdentityAttributeName());\n sb.append(\"}\");\n return sb.toString();\n }", "title": "" }, { "docid": "8647bdfe573539740943dcd0a2610b9d", "score": "0.5164565", "text": "public String toString() {\r\n\t\t\r\n\t\tStringBuilder buffer = new StringBuilder();\r\n\r\n\t\tbuffer.append(\"<\" + xmltag);\r\n\r\n\t\tbuffer.append(\" name=\\\"\" + name + \"\\\"\");\r\n\t\t\r\n\t\tif (null != id) {\r\n\t\t\tbuffer.append(\" id=\\\"\" + id.getId() + \"\\\"\");\r\n\t\t}\r\n\t\t\r\n\t\tif (null != source) {\r\n\t\t\tbuffer.append(\" source=\\\"\" + source + \"\\\"\");\r\n\t\t}\r\n\t\t\r\n\t\tif (null != usp) {\r\n\t\t\tbuffer.append(\" usp=\\\"\" + usp + \"\\\"\");\r\n\t\t}\r\n\t\t\r\n\t\tbuffer.append(\">\" + newline);\r\n\t\t\r\n\t\tfor (Element currentElement : elements) {\r\n\t\t\tbuffer.append(\"\\t\\t\\t\\t\" + currentElement.toString());\r\n\t\t}\r\n\t\t\r\n\t\tif (null != target) {\r\n\t\t\tbuffer.append(\"\\t\\t\\t\\t\\t\\t\" + target.toString());\r\n\t\t}\r\n\t\t\r\n\t\tfor (FrameElement currentFe : fes) {\r\n\t\t\tbuffer.append(\"\\t\\t\\t\\t\" + currentFe.toString());\r\n\t\t}\r\n\t\t\r\n\t\tfor (Flag currentFlag : flags) {\r\n\t\t\tbuffer.append(\"\\t\\t\\t\\t\" + currentFlag.toString());\r\n\t\t}\t\t\r\n\t\t\r\n\t\tbuffer.append(\"\\t\\t\\t</\" + xmltag + \">\" + newline);\r\n\r\n\t\treturn buffer.toString();\r\n\t}", "title": "" }, { "docid": "90e3822d6dba3d03372d7459a7b7610c", "score": "0.5164383", "text": "@Override\n public String toString() {\n return MoreObjects.toStringHelper(this)\n .add(\"id\", getId())\n .add(\"name\", getName())\n .add(\"patronymic\", getPatronymic())\n .add(\"surname\", getSurname())\n .add(\"licenseNumber\", getLicenseNumber())\n .add(\"version\", getVersion())\n .toString();\n }", "title": "" }, { "docid": "62849aac6b7e57fd18f63b8c013386e0", "score": "0.51601607", "text": "private CAttribute_String(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }", "title": "" } ]
b61d5fd53f4889ec617a7aac6372d44d
/ access modifiers changed from: private
[ { "docid": "cdb0f27649c4d88a441b29ac8a118e2d", "score": "0.0", "text": "public void addBaseWrites(Write value) {\n value.getClass();\n ensureBaseWritesIsMutable();\n this.baseWrites_.add(value);\n }", "title": "" } ]
[ { "docid": "f79ed058cc4362775e2f8774fb25266d", "score": "0.7078309", "text": "private void privateAccess() {\n\n\t}", "title": "" }, { "docid": "d8211552b23c886f56d98e4efc7a55fa", "score": "0.6624908", "text": "private void OI() {\n\t\t\n\t}", "title": "" }, { "docid": "50c0e530f7bbe13279ae3d73bbb49c08", "score": "0.65451306", "text": "public void publicAccess() {\n\n\t}", "title": "" }, { "docid": "1acc57d42c31dee937ac33ea6f2a5b0b", "score": "0.6450006", "text": "@Override\r\n\tpublic void comer() {\n\t\t\r\n\t}", "title": "" }, { "docid": "f13363e9a1929d31760bbc053283bd62", "score": "0.64205074", "text": "private Helpers(){}", "title": "" }, { "docid": "7abd139f76dd87291ccb3d0c6a3da8cf", "score": "0.64188623", "text": "private Spielfeld() {\r\n\t}", "title": "" }, { "docid": "70724bded46671c6809fee3f5c683f50", "score": "0.6367876", "text": "protected void prot() {}", "title": "" }, { "docid": "88ecb62c7a1a93131fb72fdf892b6e96", "score": "0.632225", "text": "public void mo18969b() {\n }", "title": "" }, { "docid": "dc13858b427de68abc659e35f8277ccb", "score": "0.62530243", "text": "void packagePrivateAccess() {\n\n\t}", "title": "" }, { "docid": "1cebd036d4a5b7f1a13959c7b7d5caee", "score": "0.6242337", "text": "private Respostas() {\n\t\t}", "title": "" }, { "docid": "5c1dfd03fb74dc4eca35e1350b4f5ea6", "score": "0.62347704", "text": "@Override\n A access();", "title": "" }, { "docid": "77ce6d1c5c86fd23f08a3984bb6169b3", "score": "0.62289715", "text": "public void publicAccess() {\n }", "title": "" }, { "docid": "11d67a80d2cd31685776b15ccccc59f0", "score": "0.61988455", "text": "@Override\n\t\t\tpublic void PridenieNaBielu() {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "704e96abbfbd46ebb60411493a1aaa91", "score": "0.6193497", "text": "@Override\r\n\tpublic void magic() {\n\r\n\t}", "title": "" }, { "docid": "27e4479db2c37a2e77fe796119b66d4b", "score": "0.6161543", "text": "@Override\r\n\t\t\tpublic void adelante() {\n\r\n\t\t\t}", "title": "" }, { "docid": "10ead2e988bf977cb8edb2bacf974891", "score": "0.61610484", "text": "@Override\n\tprotected void init() {\n\t\t\n\t}", "title": "" }, { "docid": "10ead2e988bf977cb8edb2bacf974891", "score": "0.61610484", "text": "@Override\n\tprotected void init() {\n\t\t\n\t}", "title": "" }, { "docid": "118f2b8a20f48999973063ac332d07d3", "score": "0.6148517", "text": "@Override\r\n\t\t\tpublic void atras() {\n\r\n\t\t\t}", "title": "" }, { "docid": "e61de1ad44d261c2a107d9f6436acc95", "score": "0.61373013", "text": "protected void protectedAccess() {\n\n\t}", "title": "" }, { "docid": "0535d453c6fc64b6eaca5802d4fcc90b", "score": "0.61368734", "text": "@Override\r\n public void atacar() {\n }", "title": "" }, { "docid": "8268666b04f7b10da246b5f3b0b0ec78", "score": "0.6118564", "text": "private Cloptus () {}", "title": "" }, { "docid": "da059b94540022e282b424f37c52abbd", "score": "0.6101762", "text": "public abstract void mo42512d();", "title": "" }, { "docid": "1c10afc999966d89d84d1fb549910281", "score": "0.60995936", "text": "@Override \n\t\tprotected void parse() {\t\t\t\n\t\t}", "title": "" }, { "docid": "ad8f2bb9ec7a42161f6624497ab375f1", "score": "0.60981524", "text": "private StrawMan() {\n\t}", "title": "" }, { "docid": "768787df8b499cc8c7da8a01ae62b8dd", "score": "0.6089158", "text": "private Phenomena() {\n\t}", "title": "" }, { "docid": "b044552fe4d8d8225d09361b41fbea3a", "score": "0.6085505", "text": "public void mo5201a() {\n }", "title": "" }, { "docid": "28237d6ae20e1aa35aaca12e05c950c9", "score": "0.60787123", "text": "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "title": "" }, { "docid": "f9e89d9677a2c32741b998a15248d5eb", "score": "0.6072231", "text": "@Override\r\n\tpublic void Lyf() {\n\t\t\r\n\t}", "title": "" }, { "docid": "43b07a2625497fccb1944c19a6a9d85c", "score": "0.60711384", "text": "private Ewol() {}", "title": "" }, { "docid": "09f632c82684f7ae35c3d5f8a53e5843", "score": "0.6061677", "text": "private CodeCamp() \n \t{\n \t}", "title": "" }, { "docid": "80d20df1cc75d8fa96c12c49a757fc43", "score": "0.6038583", "text": "@Override\n\tprotected void getExras() {\n\t\t\n\t}", "title": "" }, { "docid": "f523d2f53f60a1ff3244e79927814898", "score": "0.6026108", "text": "public void mo46998a() {\n }", "title": "" }, { "docid": "95ffa256b098e9b494cb96d4874e063f", "score": "0.60245943", "text": "@Override\n\tvoid refuel() {\n\n\t}", "title": "" }, { "docid": "979a8331d3c7f8a12569f3ff6f8fa16e", "score": "0.6020632", "text": "private Territorium() {\n\t}", "title": "" }, { "docid": "f5d4f15bcecfb5439000bf8ce3463314", "score": "0.6018605", "text": "@Override\r\n protected void init() {\n \r\n }", "title": "" }, { "docid": "083b1213b275772e56abee4ff39a7e1e", "score": "0.600114", "text": "public abstract void mo2247c();", "title": "" }, { "docid": "a6c2db17f79f35f8fc3b8e99eee9ab48", "score": "0.5989431", "text": "@Override\r\n\tprotected void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "a6c2db17f79f35f8fc3b8e99eee9ab48", "score": "0.5989431", "text": "@Override\r\n\tprotected void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "22bd6b39ddec72c749f541898a9abc17", "score": "0.5979585", "text": "public abstract void mo2246b();", "title": "" }, { "docid": "0021e4ac28e65eeb87e0ddbe1a7a6bf9", "score": "0.597862", "text": "public abstract void mo104718d();", "title": "" }, { "docid": "efda110dae3567ecb4380b4b672c3e8d", "score": "0.5977471", "text": "public void anzeigen() {\n\t\t\r\n\t}", "title": "" }, { "docid": "d19f5e6b207c868213a10fae7033328c", "score": "0.5976022", "text": "private void doSomethingPrivate() {\r\n\r\n\t}", "title": "" }, { "docid": "1eb850cd140029c3284631b6ea4a3a92", "score": "0.59667706", "text": "public void mo7036d() {\n }", "title": "" }, { "docid": "a23cfe6eb1e3b4f042f03089a0f3e2f1", "score": "0.5964291", "text": "public final void mo34057y() {\n }", "title": "" }, { "docid": "af1d7a03c29969bf292760b5053e6876", "score": "0.5963637", "text": "@Override\r\n\tpublic void avanzar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "5f1811a241e41ead4415ec767e77c63d", "score": "0.5960403", "text": "@Override\n\tprotected void init() {\n\n\t}", "title": "" }, { "docid": "5f1811a241e41ead4415ec767e77c63d", "score": "0.5960403", "text": "@Override\n\tprotected void init() {\n\n\t}", "title": "" }, { "docid": "b1cf16017c8057c0255a9ad368ecaee5", "score": "0.59594554", "text": "@Override\r\n\tprotected void init() {\n\r\n\t}", "title": "" }, { "docid": "7a64af47763e4842ef0277e0c557687f", "score": "0.59548455", "text": "@Override\n public void init() {\n }", "title": "" }, { "docid": "7a64af47763e4842ef0277e0c557687f", "score": "0.59548455", "text": "@Override\n public void init() {\n }", "title": "" }, { "docid": "62d7a719dfaf95b3e32d42a11d69e870", "score": "0.59522027", "text": "private MLUtil() {\n\t\t// do noting\n\t}", "title": "" }, { "docid": "177192b7240b496ba5aefdfed60037c9", "score": "0.5945868", "text": "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "title": "" }, { "docid": "7b7a2c774aed222ddd92948cb7f5cf10", "score": "0.59383726", "text": "public final void mo9279b() {\n }", "title": "" }, { "docid": "60b0611b3c431fd71ef675a97986d8ce", "score": "0.59356564", "text": "@Override\n\tpublic void bouger() {\n\t\t\n\t}", "title": "" }, { "docid": "93def8741e9801c804ccf94cc0a8c010", "score": "0.5925261", "text": "@Override\r\n\tpublic void comenzar() {\n\r\n\t}", "title": "" }, { "docid": "56192c8b444d3beb0e4386f4166befd9", "score": "0.5924209", "text": "private void doSomethingPrivate()\n\t{\n\t\t\n\t}", "title": "" }, { "docid": "8f1e0b6c772a9b2c8e56a8a48a85e090", "score": "0.5920809", "text": "public final void mo9278a() {\n }", "title": "" }, { "docid": "5bb37ed5e0a08c04cb9e970f3e334584", "score": "0.5917101", "text": "@Override\n\tpublic void accion() {\n\n\t}", "title": "" }, { "docid": "603f0a18e57250d8f455d8cee02b8630", "score": "0.59081054", "text": "@Override\r\n public void Refuel() {\n \r\n }", "title": "" }, { "docid": "9d2f44c3ebe1fb8de1ac4ae677e2d851", "score": "0.5900381", "text": "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "04ba8cc977697122409d96df986141be", "score": "0.5898686", "text": "public abstract void mo41367d();", "title": "" }, { "docid": "6e516d7c552dcd925edbe971705ed31a", "score": "0.58840907", "text": "public void mo41019a() {\n }", "title": "" }, { "docid": "4c841421384f44238db014cb90fda536", "score": "0.5882474", "text": "@Override\n\tpublic void foocall() {\n\t}", "title": "" }, { "docid": "74e8290546e9191e1ae5373cdf611067", "score": "0.587878", "text": "@Override\r\n\tpublic void Petrol() {\n\t\t\r\n\t}", "title": "" }, { "docid": "b1e3eb9a5b9dff21ed219e48a8676b34", "score": "0.58782285", "text": "@Override\n public void memoria() {\n \n }", "title": "" }, { "docid": "b62a7c8e0bb1090171742c543bf4b253", "score": "0.5875619", "text": "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "title": "" }, { "docid": "e9de709867329e360df4f38a2c7e2980", "score": "0.5874018", "text": "@Override\n\tpublic void ab() {\n\t\t\n\t}", "title": "" }, { "docid": "4e7e65d864ab97ff1aa00afd9251e2c7", "score": "0.58713853", "text": "public abstract void mo104717c();", "title": "" }, { "docid": "36e400a516499204257ae497b7df4f8f", "score": "0.5869455", "text": "private Util() {}", "title": "" }, { "docid": "faf38c70a5abc38e6e6819931e05fdbb", "score": "0.5866693", "text": "@Override\n protected void initialize() { \n }", "title": "" }, { "docid": "ec8745d1f613de3522e52b19973434de", "score": "0.5862536", "text": "@Override\n protected void initialize()\n {\n\n }", "title": "" }, { "docid": "41b5db40976759cb8cedfb1016282af8", "score": "0.5853212", "text": "private PolyAlphabeticUtils() {\n\t}", "title": "" }, { "docid": "d4dcf8d1b9c1a18d89084161416469f7", "score": "0.58491486", "text": "public final void mo59419g() {\n }", "title": "" }, { "docid": "1f7c82e188acf30d59f88faf08cf24ac", "score": "0.58361727", "text": "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "title": "" }, { "docid": "1f7c82e188acf30d59f88faf08cf24ac", "score": "0.58361727", "text": "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "title": "" }, { "docid": "9d551589ec00d7b16a77df7a4d54caae", "score": "0.5835625", "text": "@Override\n public void init()\n {\n\n }", "title": "" }, { "docid": "993eb427445d11f39114870cbc0ce318", "score": "0.5828046", "text": "protected abstract void mo1138a();", "title": "" }, { "docid": "a0de27bfd504f6f0a2118a19feac4b29", "score": "0.5824822", "text": "private ReferencingUtilities() {\n }", "title": "" }, { "docid": "8a25055bb85939ca272f2502bebb1975", "score": "0.5821266", "text": "private Public() {\n\t\tsuper(\"PUBLIC\");\n\t}", "title": "" }, { "docid": "bd469c63919a899125dd2e538096f15b", "score": "0.5820093", "text": "private void init() {}", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.5812744", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.5812744", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.5812744", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.5812744", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.5812744", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.5812744", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.5812744", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "0793d0cb3985392f4d5395f47400b92b", "score": "0.580515", "text": "private PaquetMilieu(){\r\n\r\n\t}", "title": "" }, { "docid": "73b8b8eec1e17eae8b8035336277ea1b", "score": "0.5797382", "text": "@Override\n\tpublic void sub() {\n\t\t\n\t}", "title": "" }, { "docid": "068782d4ca6b549d5b38c417ad4e7fbc", "score": "0.57961655", "text": "@Override\n\tpublic void embauche() {\n\t\t\n\t}", "title": "" }, { "docid": "e0484a0369823567b49e79228c2162ea", "score": "0.57946664", "text": "@Override\r\n\t\t\tpublic void buscar() {\n\r\n\t\t\t}", "title": "" }, { "docid": "2d0824e923a5d66806b3bad0940abbd3", "score": "0.578626", "text": "private Utils() {}", "title": "" }, { "docid": "2d0824e923a5d66806b3bad0940abbd3", "score": "0.578626", "text": "private Utils() {}", "title": "" }, { "docid": "cd779aacc91809113f74aef470842acb", "score": "0.5785939", "text": "protected void init() {}", "title": "" }, { "docid": "d8a592e0645ddca84cf97b971d0398f0", "score": "0.57843846", "text": "@Override\n public void use() {\n }", "title": "" }, { "docid": "2542a696117bf6e5eb5502c33bd29511", "score": "0.57709634", "text": "private MemberUtils()\n\t{\n\t\tsuper();\n\t}", "title": "" }, { "docid": "9d67e3304bed769052a3ebcf78596123", "score": "0.5769252", "text": "public abstract void mo104716b();", "title": "" }, { "docid": "090b4793f6093fa45e317512e0172f9d", "score": "0.576724", "text": "public abstract void mo1788c();", "title": "" }, { "docid": "fa7199ef223a95fb19d529b0ebd86a29", "score": "0.5765321", "text": "public abstract void mo104711a();", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5764817", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5764817", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" } ]
75413d7a98692e7960314af0333359c0
Sets the primary key of this auditoria caja sorpresa.
[ { "docid": "ade9c25852939deac988147fc2355965", "score": "0.7588195", "text": "public void setPrimaryKey(long primaryKey) {\n\t\t_auditoriaCajaSorpresa.setPrimaryKey(primaryKey);\n\t}", "title": "" } ]
[ { "docid": "4437cb66c9be2a9731f52488559a4674", "score": "0.7234779", "text": "@Override\n\tpublic void setPrimaryKey(long primaryKey) {\n\t\t_segnalazione.setPrimaryKey(primaryKey);\n\t}", "title": "" }, { "docid": "6c4b844b3ea422f05982d3ed64ad75cf", "score": "0.7066095", "text": "@Override\n\tpublic void setPrimaryKey(long primaryKey) {\n\t\t_oficinaServicioMunicipio.setPrimaryKey(primaryKey);\n\t}", "title": "" }, { "docid": "989774566fc83b0bcf54bbe19bca7817", "score": "0.68919146", "text": "@Override\n public void setPrimaryKey(java.lang.String primaryKey) {\n _course.setPrimaryKey(primaryKey);\n }", "title": "" }, { "docid": "8efb0b4f35b639d19d5071b8fdc0308d", "score": "0.6849365", "text": "@Override\n\tpublic void setPrimaryKey(long primaryKey) {\n\t\t_lineaGasto.setPrimaryKey(primaryKey);\n\t}", "title": "" }, { "docid": "e245f75ad4c1657bb783bb83008e81d1", "score": "0.6765411", "text": "public void setPrimaryKey(long pk);", "title": "" }, { "docid": "b9caae1662d06d006b1a80572b11c9e1", "score": "0.6744108", "text": "public void setPrimaryKey(java.lang.String primaryKey) {\n\t\t_academicTrainingExtra.setPrimaryKey(primaryKey);\n\t}", "title": "" }, { "docid": "12da8e79dcac204e5335e78417a3127c", "score": "0.6731231", "text": "public void setPrimaryKey(long primaryKey) {\r\n this.primaryKey = primaryKey;\r\n }", "title": "" }, { "docid": "faba04c2bacc7e0aca85989ec29075fc", "score": "0.67001504", "text": "@Override\n\tpublic void setPrimaryKey(long primaryKey) {\n\t\t_tipologiaStampanti.setPrimaryKey(primaryKey);\n\t}", "title": "" }, { "docid": "de6629bbf71f36a817c43ac2b2e00564", "score": "0.6619631", "text": "public void setPrimaryKey(int primaryKey);", "title": "" }, { "docid": "6bed750938d078d83387ea8a924e261c", "score": "0.6595213", "text": "public void setPrimaryKey(java.lang.String primaryKey) {\n\t\t_vcmsPortion.setPrimaryKey(primaryKey);\n\t}", "title": "" }, { "docid": "d28f4a609a9d480bf4c75501a6b66e9e", "score": "0.6591112", "text": "public void setPrimaryKey(long primaryKey);", "title": "" }, { "docid": "d28f4a609a9d480bf4c75501a6b66e9e", "score": "0.6591112", "text": "public void setPrimaryKey(long primaryKey);", "title": "" }, { "docid": "d28f4a609a9d480bf4c75501a6b66e9e", "score": "0.6591112", "text": "public void setPrimaryKey(long primaryKey);", "title": "" }, { "docid": "d28f4a609a9d480bf4c75501a6b66e9e", "score": "0.6591112", "text": "public void setPrimaryKey(long primaryKey);", "title": "" }, { "docid": "d28f4a609a9d480bf4c75501a6b66e9e", "score": "0.6591112", "text": "public void setPrimaryKey(long primaryKey);", "title": "" }, { "docid": "d28f4a609a9d480bf4c75501a6b66e9e", "score": "0.6591112", "text": "public void setPrimaryKey(long primaryKey);", "title": "" }, { "docid": "d28f4a609a9d480bf4c75501a6b66e9e", "score": "0.6591112", "text": "public void setPrimaryKey(long primaryKey);", "title": "" }, { "docid": "d28f4a609a9d480bf4c75501a6b66e9e", "score": "0.6591112", "text": "public void setPrimaryKey(long primaryKey);", "title": "" }, { "docid": "d28f4a609a9d480bf4c75501a6b66e9e", "score": "0.6591112", "text": "public void setPrimaryKey(long primaryKey);", "title": "" }, { "docid": "d28f4a609a9d480bf4c75501a6b66e9e", "score": "0.6591112", "text": "public void setPrimaryKey(long primaryKey);", "title": "" }, { "docid": "d28f4a609a9d480bf4c75501a6b66e9e", "score": "0.6591112", "text": "public void setPrimaryKey(long primaryKey);", "title": "" }, { "docid": "d28f4a609a9d480bf4c75501a6b66e9e", "score": "0.6591112", "text": "public void setPrimaryKey(long primaryKey);", "title": "" }, { "docid": "d28f4a609a9d480bf4c75501a6b66e9e", "score": "0.6591112", "text": "public void setPrimaryKey(long primaryKey);", "title": "" }, { "docid": "d28f4a609a9d480bf4c75501a6b66e9e", "score": "0.6591112", "text": "public void setPrimaryKey(long primaryKey);", "title": "" }, { "docid": "d28f4a609a9d480bf4c75501a6b66e9e", "score": "0.6591112", "text": "public void setPrimaryKey(long primaryKey);", "title": "" }, { "docid": "d28f4a609a9d480bf4c75501a6b66e9e", "score": "0.6591112", "text": "public void setPrimaryKey(long primaryKey);", "title": "" }, { "docid": "d28f4a609a9d480bf4c75501a6b66e9e", "score": "0.6591112", "text": "public void setPrimaryKey(long primaryKey);", "title": "" }, { "docid": "ce166f4084a467df4bb16871dd9174d0", "score": "0.6535419", "text": "@Override\r\n\tpublic void setPrimaryKey(long primaryKey) {\r\n\t\t_qlvtTTHCKetQuaThamTra.setPrimaryKey(primaryKey);\r\n\t}", "title": "" }, { "docid": "fff8e26c1bbdfcbf16fb688cd72e72a4", "score": "0.65002584", "text": "@Override\r\n public void setPK(int sledeci) {\n }", "title": "" }, { "docid": "9d72237458780d379486aa8438381432", "score": "0.645253", "text": "@Override\n\tpublic void setPrimaryKey(long primaryKey) {\n\t\t_requisito.setPrimaryKey(primaryKey);\n\t}", "title": "" }, { "docid": "1344c35caa7ddd199d9d97373ddf707a", "score": "0.6430209", "text": "@Override\n\tpublic void setPrimaryKey(long primaryKey) {\n\t\t_agency.setPrimaryKey(primaryKey);\n\t}", "title": "" }, { "docid": "83ffd028e271426e5ca662450d7855e3", "score": "0.6412716", "text": "public long getPrimaryKey() {\n\t\treturn _auditoriaCajaSorpresa.getPrimaryKey();\n\t}", "title": "" }, { "docid": "8dbfc98812172210139d234967179db4", "score": "0.6388596", "text": "@Override\n\tpublic void setPrimaryKey(long primaryKey) {\n\t\t_eprint.setPrimaryKey(primaryKey);\n\t}", "title": "" }, { "docid": "a0b0f4bf19182e7108f1b043cc14157b", "score": "0.63770425", "text": "@Override\n\tpublic void setPrimaryKey(long primaryKey) {\n\t\t_esfUserCategory.setPrimaryKey(primaryKey);\n\t}", "title": "" }, { "docid": "adcbaa6304a0621645e38d5f8f69b3ca", "score": "0.6347366", "text": "@Override\n\tpublic void setPrimaryKey(long primaryKey) {\n\t\t_customer.setPrimaryKey(primaryKey);\n\t}", "title": "" }, { "docid": "a1768cdb8b357f34ba9e23b2b80facd4", "score": "0.6345837", "text": "public void setPrimaryKey(java.lang.String primaryKey) {\n\t\t_externalReference.setPrimaryKey(primaryKey);\n\t}", "title": "" }, { "docid": "f6a3b95cd333075cf5c9da2118d6aca7", "score": "0.6325705", "text": "public void setPrimaryKey(long primaryKey) {\n\t\t_staffInfo.setPrimaryKey(primaryKey);\n\t}", "title": "" }, { "docid": "23ecefe69bf52d07752b3b40e356e512", "score": "0.63235503", "text": "@Override\n public void setPrimaryKey(\n com.lycenway.chr.backbone.service.persistence.MuPK primaryKey) {\n _mu.setPrimaryKey(primaryKey);\n }", "title": "" }, { "docid": "05ec5f6f4ffd042a0cdf35af3ba47e86", "score": "0.63175917", "text": "public void setIdAuditoriaCajSorp(long idAuditoriaCajSorp) {\n\t\t_auditoriaCajaSorpresa.setIdAuditoriaCajSorp(idAuditoriaCajSorp);\n\t}", "title": "" }, { "docid": "fb48b698f708697b1616c738f312d59a", "score": "0.6314758", "text": "@Override\n\tpublic void setPrimaryKey(long primaryKey) {\n\t\t_esfShooterCategory.setPrimaryKey(primaryKey);\n\t}", "title": "" }, { "docid": "33a84cf92ceacc1359a68021a1d9373b", "score": "0.6290651", "text": "@Override\n\tpublic void setPrimaryKey(long primaryKey) {\n\t\t_alert.setPrimaryKey(primaryKey);\n\t}", "title": "" }, { "docid": "b6bb8f5f6db5372865d83499c9cf9926", "score": "0.62856036", "text": "@Override\n\tpublic void setPrimaryKey(long primaryKey) {\n\t\t_cmts.setPrimaryKey(primaryKey);\n\t}", "title": "" }, { "docid": "72fa804cace40b754f0677cf4bdde68b", "score": "0.6262635", "text": "@Override\n public void setPrimaryKey(int primaryKey) {\n _entityInventoryClasification.setPrimaryKey(primaryKey);\n }", "title": "" }, { "docid": "e102d581c65a26395dd199975610555c", "score": "0.62585235", "text": "@Override\n\tpublic void setPrimaryKey(long primaryKey) {\n\t\t_award.setPrimaryKey(primaryKey);\n\t}", "title": "" }, { "docid": "952bba9d113bff57265c75f38fb4dfa0", "score": "0.6216184", "text": "@Override\n\tpublic void setPrimaryKey(long primaryKey) {\n\t\t_tempShipSecurityPortItems.setPrimaryKey(primaryKey);\n\t}", "title": "" }, { "docid": "9a17b0dd2ae8f2fc1a6977a4823301c1", "score": "0.6202286", "text": "public void setIdPeliPrestada(int idPeliculasPrestada)\n {\n this.idPeliculaPrestada = idPeliculasPrestada;\n }", "title": "" }, { "docid": "5687dcf2ee63305ea928e24a7c08b98c", "score": "0.6173363", "text": "@Override\n\tpublic void setPrimaryKey(long primaryKey) {\n\t\tmodel.setPrimaryKey(primaryKey);\n\t}", "title": "" }, { "docid": "4380264c92d25190069f2ea548804984", "score": "0.6127267", "text": "@Override\n\tpublic void setPrimaryKey(long primaryKey) {\n\t\t_deptWork.setPrimaryKey(primaryKey);\n\t}", "title": "" }, { "docid": "ac5c519bd49c53ca5ada134334a1143c", "score": "0.6090695", "text": "public void setPrimaryKey(\n\t\torg.oep.cmon.dao.report.service.persistence.ReportTongHopChiTietPK primaryKey) {\n\t\t_reportTongHopChiTiet.setPrimaryKey(primaryKey);\n\t}", "title": "" }, { "docid": "52b212c26e91124db4a8bf147ec100b7", "score": "0.60556227", "text": "@Override\n public void setPrimaryKey(long primaryKey) {\n _meetingRoom.setPrimaryKey(primaryKey);\n }", "title": "" }, { "docid": "45ed94bb0db4f698a4f79d91067e5f72", "score": "0.60472214", "text": "@Override\n\tpublic void setPrimaryKey(long primaryKey) {\n\t\t_backTesting.setPrimaryKey(primaryKey);\n\t}", "title": "" }, { "docid": "df71bd64efeaafd66f932fdaedd9262a", "score": "0.60434836", "text": "public void setPrimaryKey(String key) throws TorqueException\n {\n setTaskid(Integer.parseInt(key));\n }", "title": "" }, { "docid": "933e25cc9a91897d0ec1455d145773b9", "score": "0.6025112", "text": "@Override\r\n\tpublic void setPrimaryKey(long primaryKey) {\r\n\t\t_historicalRealtime.setPrimaryKey(primaryKey);\r\n\t}", "title": "" }, { "docid": "2ff82da4c14d4dbc8014324c7d7cdb64", "score": "0.6021586", "text": "@Override\n\tpublic void setPrimaryKey(long primaryKey) {\n\t\t_tempPassengerDetails.setPrimaryKey(primaryKey);\n\t}", "title": "" }, { "docid": "8731076ea274615c8f3392afb5abf162", "score": "0.60047364", "text": "public void setIdcliente(int pIdcliente){\n this.idcliente = pIdcliente;\n }", "title": "" }, { "docid": "2175bade0502f129b8b80029446f27dd", "score": "0.5992289", "text": "public void setResourcePK(long resourcePK);", "title": "" }, { "docid": "e1c0b1839b69d7c0417f527fa1643082", "score": "0.59816945", "text": "public void setPrimaryKey(String key) \n {\n setDcontractItemId(Integer.parseInt(key));\n }", "title": "" }, { "docid": "64a8cf22878b8fd3479b71e04d12c394", "score": "0.59605527", "text": "@Override\n\tpublic void setPrimaryKey(long primaryKey) {\n\t\t_docTemplate.setPrimaryKey(primaryKey);\n\t}", "title": "" }, { "docid": "5b10b1dfb9199982f1dd465fab6a3562", "score": "0.5960517", "text": "public void setPkid(Integer pkid) {\n this.pkid = pkid;\n }", "title": "" }, { "docid": "73b3ba58bb9c972d557ea1432464771e", "score": "0.5952928", "text": "public void setPK(Serializable pk) {\n\r\n\t}", "title": "" }, { "docid": "1140fde8d838758469d3775a8e358efd", "score": "0.5943949", "text": "public void setPrimaryKey(long primaryKey) {\n\t\t_dlRecordLog.setPrimaryKey(primaryKey);\n\t}", "title": "" }, { "docid": "e22e4aee5c46a4bdce1247681d045dc0", "score": "0.5932728", "text": "public void setPrimaryKey(ObjectKey key)\n throws TorqueException\n {\n setTaskid(((NumberKey) key).intValue());\n }", "title": "" }, { "docid": "e67f9a8e8c5659e02a67ad31fd908752", "score": "0.59103227", "text": "@Override\n\tpublic void setPrimaryKey(int primaryKey) {\n\t\t_tempCustomerAddress.setPrimaryKey(primaryKey);\n\t}", "title": "" }, { "docid": "f139557d66d473abb4184622b56b9c3e", "score": "0.5886795", "text": "public void setIdCliente(int pIdCliente){\n this.idCliente = pIdCliente;\n }", "title": "" }, { "docid": "d95e465c5c89f713720f06c81db3fa2c", "score": "0.5885268", "text": "@Override\n\tpublic void setPrimaryKey(long primaryKey) {\n\t\t_connectionActionTypes.setPrimaryKey(primaryKey);\n\t}", "title": "" }, { "docid": "128efcabded369ab52c41bb0f68a3cf4", "score": "0.58686304", "text": "@Override\n\tpublic void setPrimaryKey(java.lang.String primaryKey) {\n\t\t_wfms_Position_Audit.setPrimaryKey(primaryKey);\n\t}", "title": "" }, { "docid": "cc074cd6360f9f8d0b7e2affb3cedccf", "score": "0.5866056", "text": "public void setIdActividadPre(Long idActividadPre) {\n this.idActividadPre = idActividadPre;\n }", "title": "" }, { "docid": "7614772bda88963e67a1ccfda624c901", "score": "0.58374786", "text": "public void setRiaKey( Long riaKey ) {\n this.riaKey = riaKey ;\n }", "title": "" }, { "docid": "e2e0a1be4b00e0bb2357d3f467c41fa8", "score": "0.58167124", "text": "public void setIdPista(String idPista) {\r\n this.idPista = idPista;\r\n }", "title": "" }, { "docid": "23b1cf3f6a71205e51357e56a9b1585c", "score": "0.5786292", "text": "public void setPrimaryKey(ObjectKey key)\n \n {\n setDcontractItemId(((NumberKey) key).intValue());\n }", "title": "" }, { "docid": "234eeaba6584bec41a3a472c885e003b", "score": "0.5785378", "text": "public LeccionesAprendidasPK(Long proyecto, Long codigoLeccionesAprendidas) {\n\t\tthis.proyecto=proyecto;\n\t\tthis.codigoLeccionesAprendidas=codigoLeccionesAprendidas;\n\t}", "title": "" }, { "docid": "381299041e5223082f8428002f40bc2b", "score": "0.5782326", "text": "public void setIdEmpresa(long value) {\n this.idEmpresa = value;\n }", "title": "" }, { "docid": "0edb2b284aa258a24e00159d6845c6d3", "score": "0.5774904", "text": "public void setIdAutorizador(java.lang.CharSequence value) {\n this.IdAutorizador = value;\n }", "title": "" }, { "docid": "64427a384086ae5f970b5f40dd39f1e1", "score": "0.57495993", "text": "public void setIdClasificacionProceso(Long idClasificacionProceso) {\n this.idClasificacionProceso = idClasificacionProceso;\n }", "title": "" }, { "docid": "b37046674892755af81861b1d2df262b", "score": "0.5725636", "text": "public void setIdcliente(Integer idcliente) {\r\n this.idcliente = idcliente;\r\n }", "title": "" }, { "docid": "63454b676cbb572209d5a28c96c6b944", "score": "0.57105494", "text": "public void setIdClienteSolicitante(int idClienteSoli)\n {\n this.idClienteSolicitante = idClienteSoli;\n }", "title": "" }, { "docid": "d48ec6087a8a2f8c79437ea06de57069", "score": "0.57044333", "text": "public SecurityPrinciplePk(int pid, int id, int rid)\n {\n this.pid = new Integer(pid);\n this.id = new Integer(id);\n this.rid = new Integer(rid);\n }", "title": "" }, { "docid": "aaa2c4df2bf41736d1d30e415834e262", "score": "0.5701401", "text": "protected void setPrimaryKey(Integer value) throws SecurityException, NoSuchFieldException, IllegalArgumentException, IllegalAccessException {\n\t\tField field = this.getClass().getDeclaredField(this.getIdFieldName());\n\t\tfield.setAccessible(true);\n\t\tfield.set(this, value);\n\t}", "title": "" }, { "docid": "63a585d0a81926e6c869d3358cbe50b4", "score": "0.5699241", "text": "public void setPrimaryOwnerId(Integer primaryOwnerId) {\n this.primaryOwnerId = primaryOwnerId;\n }", "title": "" }, { "docid": "8ed1dad5563b092c6da3f8adea8b5e73", "score": "0.5666547", "text": "public void setPkid(String pkid) {\r\n this.pkid = pkid == null ? null : pkid.trim();\r\n }", "title": "" }, { "docid": "a57355438c076456c3cc99db9cd0c188", "score": "0.565799", "text": "public void setIdCaja(Integer value) {\n\t\tsetValue(ID_CAJA, value);\n\t}", "title": "" }, { "docid": "51e36b459dc3a84b64c940e4eb90f2e2", "score": "0.5643544", "text": "public void setIdPuestoTrabajo( Integer idPuestoTrabajo )\n {\n this.idPuestoTrabajo = idPuestoTrabajo;\n }", "title": "" }, { "docid": "52db9ece615a2c13e72b882321307d34", "score": "0.5638078", "text": "public void setIdAcesso(java.lang.String idAcesso) {\r\n this.idAcesso = idAcesso;\r\n }", "title": "" }, { "docid": "8d15273f60bf5c1a267d3213c254df5b", "score": "0.56305057", "text": "public void setIdPaciente(Integer idPaciente) {\r\n this.idPaciente = idPaciente;\r\n }", "title": "" }, { "docid": "b120b81d3e562ede73b5d0457c0e740f", "score": "0.5627019", "text": "@Override\n\tpublic void setPrimaryKey(long primaryKey) {\n\t\t_statViewPeriod.setPrimaryKey(primaryKey);\n\t}", "title": "" }, { "docid": "c1090b377b1e5b8ca35098f991cd67f9", "score": "0.5614775", "text": "public RolCirculoDeConfianzaPK() {\n }", "title": "" }, { "docid": "5377565f731fb5581f20f72a2311b8b8", "score": "0.5603276", "text": "@Override\n\tpublic void setPrimaryKey(java.lang.String primaryKey) {\n\t\t_meter.setPrimaryKey(primaryKey);\n\t}", "title": "" }, { "docid": "ea1cd1e5dba0ffd19fb950e72b34b9d8", "score": "0.56012917", "text": "@Override\n\tpublic long getPrimaryKey() {\n\t\treturn _segnalazione.getPrimaryKey();\n\t}", "title": "" }, { "docid": "9d13c82e969b5c8201162e5873d2a296", "score": "0.5598058", "text": "@Override\n\tpublic void setPrimaryKey(long primaryKey) {\n\t\t_unusedFile.setPrimaryKey(primaryKey);\n\t}", "title": "" }, { "docid": "364fcdfd1d9983250839e39e25149c3b", "score": "0.5597444", "text": "public void setId_perro(int id_perro) {\n this.id_perro = id_perro;\n }", "title": "" }, { "docid": "6f96240c9bf32536bc19431a3530c13b", "score": "0.55863994", "text": "public void setIdResa(long idResa) {\r\n\t\tthis.idResa = idResa;\r\n\t}", "title": "" }, { "docid": "a1635bedc7acc2de2cccfdf291d60e83", "score": "0.55822915", "text": "public String primaryKey(String codice);", "title": "" }, { "docid": "962e5c6d29124eb17d5d762e00aea696", "score": "0.55672663", "text": "PK() {\n }", "title": "" }, { "docid": "2b373ed143621bdd3e32b00a1f92223a", "score": "0.5549974", "text": "@Override\n\tpublic void setPrimaryKey(long primaryKey) {\n\t\t_dlFileEntryType.setPrimaryKey(primaryKey);\n\t}", "title": "" }, { "docid": "81f98be2f7721202554db6b31b299b9a", "score": "0.554089", "text": "public PrimaryId getPrimaryId()\n\t{\n\t\treturn primaryId;\n\t}", "title": "" }, { "docid": "66ba25eb2cbd0f3340b9cc494e73f7ab", "score": "0.5529771", "text": "@Override\n\tpublic void setPrimaryKey(\n\t\tcom.ecoit.mr.service.persistence.UserGroupPK primaryKey) {\n\n\t\tmodel.setPrimaryKey(primaryKey);\n\t}", "title": "" }, { "docid": "db82e2d21b32c19cf4055a65464afc87", "score": "0.5529377", "text": "public void setPrimary( boolean primo ) {\n\n }", "title": "" }, { "docid": "a1a62fdf6e938cad6d406b04a998ab4a", "score": "0.5525594", "text": "String getPrimaryKey();", "title": "" }, { "docid": "544fa67392ec6f35ab1a78f2f7ef63cd", "score": "0.5511853", "text": "public void setPk(String value) {\r\n\t\trecipes_pk = value;\r\n\t}", "title": "" }, { "docid": "e41762736b70e9b9ca1d7a5bc72a7f03", "score": "0.55045426", "text": "public final void mK_PRIMARY() throws RecognitionException {\n try {\n int _type = K_PRIMARY;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // /home/alex/workspace/cassandra-mv/src/java/org/apache/cassandra/cql3/Cql.g:912:10: ( P R I M A R Y )\n // /home/alex/workspace/cassandra-mv/src/java/org/apache/cassandra/cql3/Cql.g:912:16: P R I M A R Y\n {\n mP(); \n mR(); \n mI(); \n mM(); \n mA(); \n mR(); \n mY(); \n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }", "title": "" } ]
8b8f720cdc66d57b2bea5f5c36f729c4
setter for Column COMMERCIAL_TENANT_BASIC_COPY.CID_VERIFY
[ { "docid": "860e0bcc40e3af4c58565408373158fc", "score": "0.6500067", "text": "public void setCidVerify(Short cidVerify) {\r\n this.cidVerify = cidVerify;\r\n }", "title": "" } ]
[ { "docid": "1af3556b0b14889c56826af8e76353b1", "score": "0.583565", "text": "public Short getCidVerify() {\r\n return cidVerify;\r\n }", "title": "" }, { "docid": "1af3556b0b14889c56826af8e76353b1", "score": "0.583565", "text": "public Short getCidVerify() {\r\n return cidVerify;\r\n }", "title": "" }, { "docid": "d522039e4197570558cb8d91329bd6fc", "score": "0.5335637", "text": "public void setTrccopyVerify(Short trccopyVerify) {\r\n this.trccopyVerify = trccopyVerify;\r\n }", "title": "" }, { "docid": "d522039e4197570558cb8d91329bd6fc", "score": "0.5335637", "text": "public void setTrccopyVerify(Short trccopyVerify) {\r\n this.trccopyVerify = trccopyVerify;\r\n }", "title": "" }, { "docid": "0ec42c7fa0999de502958fe047c93d86", "score": "0.51207966", "text": "public final void setBaseCIAttribute(com.mendix.systemwideinterfaces.core.IContext context, java.lang.Boolean baseciattribute)\r\n\t{\r\n\t\tgetMendixObject().setValue(context, MemberNames.BaseCIAttribute.toString(), baseciattribute);\r\n\t}", "title": "" }, { "docid": "8b08e2a84c60116531eac56ed005fe42", "score": "0.51130253", "text": "public void setVerify(String Verify) {\n this.Verify = Verify;\n }", "title": "" }, { "docid": "c487a4671682d76ebeabf1e089b5f131", "score": "0.5049794", "text": "public boolean isSetCID() {\n return this.cID != null;\n }", "title": "" }, { "docid": "c1c080d7d62b9996eec651ca00788615", "score": "0.5028073", "text": "public void setCR_ACC_CIF_SUB_NO(BigDecimal CR_ACC_CIF_SUB_NO)\r\n {\r\n\tthis.CR_ACC_CIF_SUB_NO = CR_ACC_CIF_SUB_NO;\r\n }", "title": "" }, { "docid": "62caa3d71de019442b2ed0b76690c252", "score": "0.4994137", "text": "public final void setBaseCIAttribute(java.lang.Boolean baseciattribute)\r\n\t{\r\n\t\tsetBaseCIAttribute(getContext(), baseciattribute);\r\n\t}", "title": "" }, { "docid": "a00efdfb3d24fb1fd62de267dad8af4b", "score": "0.49751726", "text": "public void setExternalOwnerCC(entity.ClaimContact value);", "title": "" }, { "docid": "5fb0441827354ce54fbd91a9a9a72a37", "score": "0.49189848", "text": "public void setBlinceVerify(Short blinceVerify) {\r\n this.blinceVerify = blinceVerify;\r\n }", "title": "" }, { "docid": "5fb0441827354ce54fbd91a9a9a72a37", "score": "0.49189848", "text": "public void setBlinceVerify(Short blinceVerify) {\r\n this.blinceVerify = blinceVerify;\r\n }", "title": "" }, { "docid": "0d01034d347a09f9a4721aa5098fd03c", "score": "0.4912029", "text": "public void setHasCPC(Integer hasCPC)\n/* */ {\n/* 870 */ this.hasCPC = hasCPC;\n/* */ }", "title": "" }, { "docid": "8ad3a5e08d35c4a140453495e3e9fef8", "score": "0.48613897", "text": "public String getCCV() {\n return ccv;\n }", "title": "" }, { "docid": "a304324d3b1235adc1d6490bfd290137", "score": "0.48608693", "text": "public void setCid(long cid);", "title": "" }, { "docid": "a842e94d654eb425ee3891ceb4495d38", "score": "0.48541608", "text": "public void setContractId(byte[] contractId, boolean fillUp) throws SMLValidationException {\n if (contractId.length < CONTRACT_ID_LENGTH && fillUp) {\n byte[] fillUpData = new byte[CONTRACT_ID_LENGTH];\n System.arraycopy(contractId, 0, fillUpData, 0, contractId.length);\n this.contractId = fillUpData;\n } else if ((fillUp && contractId.length > CONTRACT_ID_LENGTH) || contractId.length != CONTRACT_ID_LENGTH) {\n throw new SMLValidationException(\"base signature not 128 bytes long\");\n } else {\n this.contractId = contractId;\n }\n\n }", "title": "" }, { "docid": "bb68ccd8cf771a29aed128bddbb979b7", "score": "0.48360416", "text": "public Builder setCxid(int value) {\n bitField0_ |= 0x00000002;\n cxid_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "1306f04688b6367a62f4777401e2d68d", "score": "0.4783723", "text": "public void setCC(int cc){ conta_corr=cc; }", "title": "" }, { "docid": "18f8a1437acc53596620378756451921", "score": "0.4761156", "text": "@Test\n public void testClaimIdrBillProvCounty() {\n new McsClaimTransformerTest.ClaimFieldTester()\n .verifyStringFieldCopiedCorrectly(\n McsClaim.Builder::setIdrBillProvCounty,\n RdaMcsClaim::getIdrBillProvCounty,\n RdaMcsClaim.Fields.idrBillProvCounty,\n 2);\n }", "title": "" }, { "docid": "b4b79b402f5dacf52a09b6ac64cf53f9", "score": "0.47357687", "text": "@Override\n public void setCC(final int pintCC) {\n }", "title": "" }, { "docid": "ed06aab36801ca59b92a84e9e6f9f848", "score": "0.47107407", "text": "public void setCrsCrbtListener(CrsCrbtListenerBase listener)\n throws QtiImsException {\n mQtiImsExtMgr.validateInvariants(mPhoneId);\n try {\n getBinder().setCrsCrbtListener(listener == null ? null : listener.getBinder());\n } catch(RemoteException e) {\n throw new QtiImsException(\"Remote ImsService setCrsCrbtListener: \" + e);\n }\n }", "title": "" }, { "docid": "2f0266b1a3ea7d6572590125cb3b2e00", "score": "0.4708205", "text": "public Long getCid() {\n return cid;\n }", "title": "" }, { "docid": "2a0abf9aece8b63516790714722af9d0", "score": "0.46961582", "text": "public void setCCV(String ccv) {\n this.ccv = ccv;\n }", "title": "" }, { "docid": "2187c21e6edb2404493708eb50633363", "score": "0.4694521", "text": "public final void setRelatedToBaseCIAttribute(com.mendix.systemwideinterfaces.core.IContext context, java.lang.Boolean relatedtobaseciattribute)\r\n\t{\r\n\t\tgetMendixObject().setValue(context, MemberNames.RelatedToBaseCIAttribute.toString(), relatedtobaseciattribute);\r\n\t}", "title": "" }, { "docid": "408290ee308478e459d2ffc769d4d8a3", "score": "0.4689638", "text": "public org.LNDCDC_ADS_PRPSL.COST_TYP.apache.nifi.LNDCDC_ADS_PRPSL_COST_TYP.Builder setCNCRNCYVRSN(java.lang.Long value) {\n validate(fields()[3], value);\n this.CNCRNCY_VRSN = value;\n fieldSetFlags()[3] = true;\n return this;\n }", "title": "" }, { "docid": "65496b0325ae67369026e5f32129c455", "score": "0.46586242", "text": "public void setCwhich(String cwhich) {\n this.cwhich = cwhich == null ? null : cwhich.trim();\n }", "title": "" }, { "docid": "0f083d5b0177265f91ad30aa0bedece2", "score": "0.46290806", "text": "public Builder setCxid(long value) {\n bitField0_ |= 0x00000004;\n cxid_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "0f083d5b0177265f91ad30aa0bedece2", "score": "0.4626699", "text": "public Builder setCxid(long value) {\n bitField0_ |= 0x00000004;\n cxid_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "0fb68cc1e88e521a2156f25515d18929", "score": "0.46199673", "text": "public void setIsCanConstructCPC(Integer isCanConstructCPC)\n/* */ {\n/* 846 */ this.isCanConstructCPC = isCanConstructCPC;\n/* */ }", "title": "" }, { "docid": "7d4c15f3a3593706aee41f9dfbe1fbab", "score": "0.4598207", "text": "public void setCruserid(Long cruserid) {\r\n\t\tthis.cruserid = cruserid;\r\n\t}", "title": "" }, { "docid": "f1e4d1cf3e22b6a68cb67d08914cc337", "score": "0.4586536", "text": "public void setDozentCertSerialID(String value){\n\t\tthis.m_bIsDirty = (this.m_bIsDirty || (!value.equals(this.m_sDozentCertSerialID)));\n\t\tthis.m_sDozentCertSerialID=value;\n\t}", "title": "" }, { "docid": "892c40761c700a4d1c0f43a7fc922401", "score": "0.4568289", "text": "@Test\n public void testDetailIdrProcCode() {\n new McsClaimTransformerTest.DetailFieldTester()\n .verifyStringFieldCopiedCorrectlyEmptyIgnored(\n McsDetail.Builder::setIdrProcCode,\n RdaMcsDetail::getIdrProcCode,\n RdaMcsDetail.Fields.idrProcCode,\n 5);\n }", "title": "" }, { "docid": "ca0a0c279586233e373ef6b24c73637d", "score": "0.45578414", "text": "public void setCtid(Integer ctid) {\n this.ctid = ctid;\n }", "title": "" }, { "docid": "90c8ce00645bbe4ae29681c5d411ed44", "score": "0.45542642", "text": "@Test\n public void testAdjustmentIdrInitCcn() {\n new McsClaimTransformerTest.AdjustmentFieldTester()\n .verifyStringFieldCopiedCorrectly(\n McsAdjustment.Builder::setIdrInitCcn,\n RdaMcsAdjustment::getIdrInitCcn,\n RdaMcsAdjustment.Fields.idrInitCcn,\n 15);\n }", "title": "" }, { "docid": "c3e2b77e482e5d9c377b90dedfd69a4d", "score": "0.45243797", "text": "@Test\n public void testClaimIdrContrId() {\n new McsClaimTransformerTest.ClaimFieldTester()\n .verifyStringFieldCopiedCorrectly(\n McsClaim.Builder::setIdrContrId,\n RdaMcsClaim::getIdrContrId,\n RdaMcsClaim.Fields.idrContrId,\n 5);\n }", "title": "" }, { "docid": "f294f9b6624e6431fb338fc43a8db24c", "score": "0.45195833", "text": "public void setC_BPartner_ID (int C_BPartner_ID);", "title": "" }, { "docid": "5e7a5b5cb8dc0427d5435763fbf5ea5e", "score": "0.450227", "text": "@java.lang.Override\n public long getCxid() {\n return cxid_;\n }", "title": "" }, { "docid": "5e7a5b5cb8dc0427d5435763fbf5ea5e", "score": "0.450227", "text": "@java.lang.Override\n public long getCxid() {\n return cxid_;\n }", "title": "" }, { "docid": "bf747f26967318bed6f7c9fedc32de4f", "score": "0.44995025", "text": "public String getCid() {\n return cid;\n }", "title": "" }, { "docid": "bf747f26967318bed6f7c9fedc32de4f", "score": "0.44995025", "text": "public String getCid() {\n return cid;\n }", "title": "" }, { "docid": "bf747f26967318bed6f7c9fedc32de4f", "score": "0.44995025", "text": "public String getCid() {\n return cid;\n }", "title": "" }, { "docid": "173252de9329dc8600145d59379d7d06", "score": "0.44891182", "text": "public Integer getCid() {\r\n return cid;\r\n }", "title": "" }, { "docid": "173252de9329dc8600145d59379d7d06", "score": "0.44891182", "text": "public Integer getCid() {\r\n return cid;\r\n }", "title": "" }, { "docid": "2f490095c1f2948d1aff2ad2777ca3e7", "score": "0.44868442", "text": "public final void setRelatedToBaseCIAttribute(java.lang.Boolean relatedtobaseciattribute)\r\n\t{\r\n\t\tsetRelatedToBaseCIAttribute(getContext(), relatedtobaseciattribute);\r\n\t}", "title": "" }, { "docid": "7797af7046323131af79ae5c61bc71f6", "score": "0.44867027", "text": "public Integer getCid() {\n return cid;\n }", "title": "" }, { "docid": "bf1f53fb5900fdcb00e8f71f506ee874", "score": "0.44812942", "text": "@java.lang.Override\n public long getCxid() {\n return cxid_;\n }", "title": "" }, { "docid": "bf1f53fb5900fdcb00e8f71f506ee874", "score": "0.44807795", "text": "@java.lang.Override\n public long getCxid() {\n return cxid_;\n }", "title": "" }, { "docid": "b880f8935251d0d42f41b91b02dde885", "score": "0.44749817", "text": "public void setACC_CIF_CODE(BigDecimal ACC_CIF_CODE) {\r\n this.ACC_CIF_CODE = ACC_CIF_CODE;\r\n }", "title": "" }, { "docid": "2bc5358be3c0ba9d43080e69a56e94b1", "score": "0.4470828", "text": "public void setCNCRNCYVRSN(java.lang.Long value) {\n this.CNCRNCY_VRSN = value;\n }", "title": "" }, { "docid": "ce5b76d124abf95407f778cd00fa9444", "score": "0.4465664", "text": "@java.lang.Override\n public boolean hasCxid() {\n return ((bitField0_ & 0x00000002) != 0);\n }", "title": "" }, { "docid": "90d38f70ae060fd404ceee3d09a63666", "score": "0.44642976", "text": "public void setCLINIF(String newvalue) {\n fieldCLINIF.setString(newvalue);\n }", "title": "" }, { "docid": "ee007fa9de266e6d9cfca40e4af53e06", "score": "0.44607282", "text": "@Test\n public void testClaimIdrBillProvNum() {\n new McsClaimTransformerTest.ClaimFieldTester()\n .verifyStringFieldCopiedCorrectly(\n McsClaim.Builder::setIdrBillProvNum,\n RdaMcsClaim::getIdrBillProvNum,\n RdaMcsClaim.Fields.idrBillProvNum,\n 10);\n }", "title": "" }, { "docid": "feb636711c704097f1e9de685ff7f05a", "score": "0.44494286", "text": "public BigDecimal getACC_CIF_CODE() {\r\n return ACC_CIF_CODE;\r\n }", "title": "" }, { "docid": "c4eaf7411d7de1b6ab83683536115329", "score": "0.4445368", "text": "public String getVerify() {\n return this.Verify;\n }", "title": "" }, { "docid": "448654479658f00bf714035b9a3b054b", "score": "0.44431987", "text": "public boolean ca() {\n\t\t\treturn this.ca;\n\t\t}", "title": "" }, { "docid": "033bdce516f84706e7b560227564853c", "score": "0.4439593", "text": "@java.lang.Override\n public int getCxid() {\n return cxid_;\n }", "title": "" }, { "docid": "63ab0e491d6739c458b85ebd45e7252b", "score": "0.4436609", "text": "@Test\n public void testClaimIdrClmHdIcn() {\n new McsClaimTransformerTest.ClaimFieldTester()\n .verifyStringFieldCopiedCorrectly(\n McsClaim.Builder::setIdrClmHdIcn,\n RdaMcsClaim::getIdrClmHdIcn,\n RdaMcsClaim.Fields.idrClmHdIcn,\n 15);\n }", "title": "" }, { "docid": "e096cc997418c4e9ac64815587b81664", "score": "0.4423985", "text": "@java.lang.Override\n public boolean hasCxid() {\n return ((bitField0_ & 0x00000002) != 0);\n }", "title": "" }, { "docid": "da87a6616127c8376c74af65807a91f7", "score": "0.44191408", "text": "@Test\n public void testClaimIdrBillProvLoc() {\n new McsClaimTransformerTest.ClaimFieldTester()\n .verifyStringFieldCopiedCorrectly(\n McsClaim.Builder::setIdrBillProvLoc,\n RdaMcsClaim::getIdrBillProvLoc,\n RdaMcsClaim.Fields.idrBillProvLoc,\n 2);\n }", "title": "" }, { "docid": "2a41d41115a3dfe2bb70451b6f98e392", "score": "0.44186777", "text": "public void setContractid(Long newVal) {\n if ((newVal != null && this.contractid != null && (newVal.compareTo(this.contractid) == 0)) || \n (newVal == null && this.contractid == null && contractid_is_initialized)) {\n return; \n } \n this.contractid = newVal; \n contractid_is_modified = true; \n contractid_is_initialized = true; \n }", "title": "" }, { "docid": "414dc662c53605cd45c959e1b62514fb", "score": "0.44063047", "text": "@java.lang.Override\n public int getCxid() {\n return cxid_;\n }", "title": "" }, { "docid": "97a54bea98bf4e6e6bb101cd6bd7c4a7", "score": "0.44021198", "text": "public void setResponsiblePersonCertifID(String responsiblePersonCertifID)\n/* */ {\n/* 630 */ this.responsiblePersonCertifID = responsiblePersonCertifID;\n/* */ }", "title": "" }, { "docid": "914cf131f289e61487ced6f0241c6f41", "score": "0.4400624", "text": "@java.lang.Override\n public boolean hasCxid() {\n return ((bitField0_ & 0x00000004) != 0);\n }", "title": "" }, { "docid": "914cf131f289e61487ced6f0241c6f41", "score": "0.4400624", "text": "@java.lang.Override\n public boolean hasCxid() {\n return ((bitField0_ & 0x00000004) != 0);\n }", "title": "" }, { "docid": "b8c8af478d514048f848f689be2882b8", "score": "0.43972692", "text": "public void setClaimContact(entity.ClaimContact value);", "title": "" }, { "docid": "1ffaa55f81c8eac2f1834d4751d005b1", "score": "0.43948", "text": "public boolean isSetCid() {\n return EncodingUtils.testBit(__isset_bitfield, __CID_ISSET_ID);\n }", "title": "" }, { "docid": "1ffaa55f81c8eac2f1834d4751d005b1", "score": "0.43948", "text": "public boolean isSetCid() {\n return EncodingUtils.testBit(__isset_bitfield, __CID_ISSET_ID);\n }", "title": "" }, { "docid": "f8ea5038163f3b8cbf05594b1a485669", "score": "0.43940234", "text": "public void setDR_ACC_CIF_SUB_NO(BigDecimal DR_ACC_CIF_SUB_NO)\r\n {\r\n\tthis.DR_ACC_CIF_SUB_NO = DR_ACC_CIF_SUB_NO;\r\n }", "title": "" }, { "docid": "3a97fdd85fe0e1a9fdf046fc0067b5d9", "score": "0.43727556", "text": "public void setACC_CY_CODE(BigDecimal ACC_CY_CODE) {\r\n this.ACC_CY_CODE = ACC_CY_CODE;\r\n }", "title": "" }, { "docid": "479563786fb5ed88d027d9007edbc538", "score": "0.43668556", "text": "@Test\n public void testSetcID() {\n System.out.println(\"setcID\");\n int cID = 0;\n Customer instance = new Customer();\n instance.setcID(cID);\n int result = instance.getcID();\n assertEquals(0, result);\n }", "title": "" }, { "docid": "44a02b827095239ff3470283c4765480", "score": "0.43653753", "text": "@java.lang.Override\n public boolean hasCxid() {\n return ((bitField0_ & 0x00000004) != 0);\n }", "title": "" }, { "docid": "44a02b827095239ff3470283c4765480", "score": "0.4364599", "text": "@java.lang.Override\n public boolean hasCxid() {\n return ((bitField0_ & 0x00000004) != 0);\n }", "title": "" }, { "docid": "3462b6c6f4479cf8233d5facf58aa0e5", "score": "0.4362916", "text": "public void setHasCYL(Integer hasCYL)\n/* */ {\n/* 966 */ this.hasCYL = hasCYL;\n/* */ }", "title": "" }, { "docid": "95dddff11bd5dc3f1462bd3c67813c10", "score": "0.43568304", "text": "public void setCLVTON(String newvalue) {\n fieldCLVTON.setString(newvalue);\n }", "title": "" }, { "docid": "a08546f301b2bc9ce65b200955193d9e", "score": "0.43566203", "text": "public String getCid() {\n\t\treturn cid;\n\t}", "title": "" }, { "docid": "fe01106e37619bfd371ba0240090f498", "score": "0.43525952", "text": "public void setAtaxVerify(Short ataxVerify) {\r\n this.ataxVerify = ataxVerify;\r\n }", "title": "" }, { "docid": "fe01106e37619bfd371ba0240090f498", "score": "0.43525952", "text": "public void setAtaxVerify(Short ataxVerify) {\r\n this.ataxVerify = ataxVerify;\r\n }", "title": "" }, { "docid": "6f349b12f1d9df92889c3077ef4458de", "score": "0.4352063", "text": "void setCitProc(gov.nih.nlm.ncbi.www.CitProcDocument.CitProc citProc);", "title": "" }, { "docid": "86b89d97bf2b576cd73332e9e1b27ee6", "score": "0.43430677", "text": "public void setCid(String cid) {\n\t\tthis.cid = cid == null ? null : cid.trim();\n\t}", "title": "" }, { "docid": "c61bfb294adb33c179ed84c87aeef8a0", "score": "0.43353146", "text": "public void setNumberofCPCMember(Integer numberofCPCMember)\n/* */ {\n/* 894 */ this.numberofCPCMember = numberofCPCMember;\n/* */ }", "title": "" }, { "docid": "97d50031f515d529720006bdb5b92a62", "score": "0.4329412", "text": "public void setCheckingAccountIDAuto(CustomerAccount customerAccount){// adds 01 to end\n String fixedID = getFixedID();\n String checkingAccIDString = String.valueOf(customerAccount.getFinancialAccountID());\n String tempID = \"NULL\";\n\n if(!fixedID.contains(\"-\")){\n tempID = checkingAccIDString+\"-00\";\n }else{\n tempID = fixedID;\n }\n this.checkingAcctID = tempID;\n this.checkingAcctIDFixed=tempID;\n }", "title": "" }, { "docid": "4ddc7e924ff153cb4782739dd2e32b5d", "score": "0.43262714", "text": "@Test\n public void testDetailIdrDtlRendProv() {\n new McsClaimTransformerTest.DetailFieldTester()\n .verifyStringFieldCopiedCorrectly(\n McsDetail.Builder::setIdrDtlRendProv,\n RdaMcsDetail::getIdrDtlRendProv,\n RdaMcsDetail.Fields.idrDtlRendProv,\n 10);\n }", "title": "" }, { "docid": "aa905343cf8593d7f2155d1fdc7e7cf8", "score": "0.4326056", "text": "public void setVALID(java.lang.CharSequence value) {\n this.VALID = value;\n }", "title": "" }, { "docid": "c4b13bb1e016adc5492b0f3b9dddca05", "score": "0.43251154", "text": "public void setSPECIFIC_ACC_BR_CY(String SPECIFIC_ACC_BR_CY)\r\n {\r\n\tthis.SPECIFIC_ACC_BR_CY = SPECIFIC_ACC_BR_CY == null ? null : SPECIFIC_ACC_BR_CY.trim();\r\n }", "title": "" }, { "docid": "5970d3680ffff106707006d48920a07f", "score": "0.4322795", "text": "@Test\n public void validateVerifyCodeTest() throws ApiException {\n String id = null;\n ValidateCodeVerifyRequest body = null;\n List<VerifyIdResponse> response = api.validateVerifyCode(id, body);\n\n // TODO: test validations\n }", "title": "" }, { "docid": "2e6836c0ccb46c7a72b39ea0d0674b5d", "score": "0.43139893", "text": "public void setCid(String cid) {\n this.cid = cid == null ? null : cid.trim();\n }", "title": "" }, { "docid": "2e6836c0ccb46c7a72b39ea0d0674b5d", "score": "0.43139893", "text": "public void setCid(String cid) {\n this.cid = cid == null ? null : cid.trim();\n }", "title": "" }, { "docid": "7bb190910f7fc60b932367815f13f161", "score": "0.43103895", "text": "public void setCid(Integer cid) {\r\n this.cid = cid;\r\n }", "title": "" }, { "docid": "7bb190910f7fc60b932367815f13f161", "score": "0.43103895", "text": "public void setCid(Integer cid) {\r\n this.cid = cid;\r\n }", "title": "" }, { "docid": "01b88f95b9eef623f3cd141879d4a8b5", "score": "0.4297968", "text": "public MonitorDatos.Builder setCARGA(java.lang.CharSequence value) {\n validate(fields()[13], value);\n this.CARGA = value;\n fieldSetFlags()[13] = true;\n return this; \n }", "title": "" }, { "docid": "35fa924f6c545a85b50a57881696ccdc", "score": "0.42921698", "text": "public void setCustContRelaId(Long custContRelaId) {\n this.custContRelaId = custContRelaId;\n }", "title": "" }, { "docid": "0561f9d8d642012da7834e9fce09a95a", "score": "0.42862904", "text": "@Override\r\n\tpublic void setCid(Integer cid) {\n\t\t\r\n\t}", "title": "" }, { "docid": "5ff241b832a455459a2b001928abc38b", "score": "0.42821047", "text": "public void setC_Invoice_ID (int C_Invoice_ID)\n{\nset_ValueNoCheck (\"C_Invoice_ID\", new Integer(C_Invoice_ID));\n}", "title": "" }, { "docid": "c7d19c88b6519f32b75ef8790abc3872", "score": "0.42810455", "text": "public boolean hasCNCRNCYVRSN() {\n return fieldSetFlags()[3];\n }", "title": "" }, { "docid": "ab630ec748a4699ac678675e5044c338", "score": "0.42791745", "text": "public String getCc() {\r\n return cc;\r\n }", "title": "" }, { "docid": "4f1c7aecee54b7263680c07606fd9392", "score": "0.42783317", "text": "public void setDozentCertValidated(boolean value){\n\t\tthis.m_bIsDirty = (this.m_bIsDirty || (value != this.m_bDozentCertValidated));\n\t\tthis.m_bDozentCertValidated=value;\n\t}", "title": "" }, { "docid": "e839299a52bc80c524973cdb98f53dcf", "score": "0.42744702", "text": "public java.lang.String getQc_verified() {\n if (!jdbcFields) {\n populateJDBCFields();\n }\n return qc_verified;\n }", "title": "" }, { "docid": "95cd8d3ba772e5a50cc5921d15c6e1e5", "score": "0.42702904", "text": "public BigDecimal getCR_ACC_CIF_SUB_NO()\r\n {\r\n\treturn CR_ACC_CIF_SUB_NO;\r\n }", "title": "" }, { "docid": "5f819c91691468338c613dc9a6bbbeda", "score": "0.42699036", "text": "public Short getTrccopyVerify() {\r\n return trccopyVerify;\r\n }", "title": "" } ]
0afb5327cc1df33540a5f5d2d17a041e
Returns the no of ms to wait when close connection watch threads are enabled. 0 = wait forever.
[ { "docid": "b09e2c611658b533f2e2c6193578c1f9", "score": "0.6873718", "text": "public long getCloseConnectionWatchTimeoutInMs() {\n\t\treturn this.closeConnectionWatchTimeoutInMs;\n\t}", "title": "" } ]
[ { "docid": "a78e9ecd23e999c72f378508e562df14", "score": "0.65441346", "text": "long getTimeoutNs();", "title": "" }, { "docid": "d78eb6af26ee9e1a0ffc90ec6be962cf", "score": "0.65132946", "text": "int getSoTimeout();", "title": "" }, { "docid": "c3a7a71c50d99ffcfe4698f7cd7bcdfe", "score": "0.64325315", "text": "int getWaitInSecond();", "title": "" }, { "docid": "837c04eb6c11de1b925c2a2766116808", "score": "0.63895917", "text": "int getSecondsWait();", "title": "" }, { "docid": "1ea392776076562487b482531f31949a", "score": "0.6356799", "text": "public int getCyclesWaited() { return cyclesWaited; }", "title": "" }, { "docid": "8285c20768cd9b361cca3cb05306ac04", "score": "0.63003975", "text": "public int getCloseTimeout() {\n return closeTimeout;\n }", "title": "" }, { "docid": "ab0a411d673c442d1aa310f236fc5038", "score": "0.62751764", "text": "public static int getMaxWaitMillis() {\n return JedisPropUtilsBuilder.INSTANCE.getInt(\"redis.maxWaitMillis\");\n }", "title": "" }, { "docid": "504c7687aaf9fab0ccaa8b8d2c016ad1", "score": "0.6228208", "text": "public int getTotalWait() {\n\t return totalWait;\n\t}", "title": "" }, { "docid": "e834fc21e781d16a6e5bcae12b6ce5dc", "score": "0.6207358", "text": "public int getWaitInSecond() {\n return waitInSecond_;\n }", "title": "" }, { "docid": "a8251ea269fb589a963480ac094dd5db", "score": "0.61853325", "text": "int getSocketTimeout();", "title": "" }, { "docid": "6c428f2a3ec6409a2be25aa348a9f9f2", "score": "0.61831754", "text": "private int getServerTimeout()\n {\n String prop = Environment.getProperty (\"jacorb.connection.server_timeout\");\n if (prop != null)\n return Integer.parseInt (prop);\n else\n return 0; \n }", "title": "" }, { "docid": "7195f90959540941539b27a52186e679", "score": "0.61580527", "text": "int getTimeout();", "title": "" }, { "docid": "7195f90959540941539b27a52186e679", "score": "0.61580527", "text": "int getTimeout();", "title": "" }, { "docid": "7195f90959540941539b27a52186e679", "score": "0.61580527", "text": "int getTimeout();", "title": "" }, { "docid": "fb8854c475430c3bf0b3876e66c7fbe1", "score": "0.61482", "text": "int getRemoteSyncTimeout();", "title": "" }, { "docid": "d2cb6e9af9f82a7b484aa054a40cb851", "score": "0.61344516", "text": "public int getWaitInSecond() {\n return waitInSecond_;\n }", "title": "" }, { "docid": "a1f66517e612dbad6583b6da5b567445", "score": "0.6131797", "text": "private long getWaitUntilTime()\n\t{\n\t\treturn System.currentTimeMillis() + CommonSetup.TIMEOUT+10;\n\t}", "title": "" }, { "docid": "b267b7fac541908bf4049f273e020ee1", "score": "0.61262876", "text": "Integer getTimeout();", "title": "" }, { "docid": "1e98adc75b9a44a9b7c4f29949bf4f3c", "score": "0.6096299", "text": "public int getConnectionTimeout() {\n \t\tString timeOutStr = properties.getProperty(\"server.connection.timeout\",\n \t\t\t\t\"3000\");\n \t\treturn Integer.parseInt(timeOutStr);\n \t}", "title": "" }, { "docid": "32489d06a536e309f5f9634a8f8bffce", "score": "0.60797775", "text": "private native long getThreadWaitedCountImpl(Thread thread);", "title": "" }, { "docid": "31f1baa4b43ad3798b1621898b9d2084", "score": "0.60785687", "text": "public int getWaitTime(){\n int rez=0;\n for(Client t:list)rez+=t.getServiceTime();\n return rez;\n }", "title": "" }, { "docid": "514ea5d29b0575c206556ab95415791d", "score": "0.60618204", "text": "public long getTimeout()\n {\n return 5000L;\n }", "title": "" }, { "docid": "131f17f6feaa1d56e6a36db9ed09bff1", "score": "0.6054734", "text": "public long getCloseConnectionWatchTimeout(TimeUnit timeUnit) {\n\t\treturn timeUnit.convert(this.closeConnectionWatchTimeoutInMs, TimeUnit.MILLISECONDS);\n\t}", "title": "" }, { "docid": "2bf50e146eaf970a7635b8e3b53aa718", "score": "0.6047087", "text": "boolean hasWaitInSecond();", "title": "" }, { "docid": "2f4c3a41adaef6674c4d10d29e97202b", "score": "0.60422647", "text": "public int getTimeout();", "title": "" }, { "docid": "97885d031fd38a3010a8f38aa4379737", "score": "0.5993491", "text": "public int getReadTimeout();", "title": "" }, { "docid": "4344c7a808055bb014f7103ebf42f6fb", "score": "0.59833074", "text": "int getCurrentTimeout();", "title": "" }, { "docid": "d8b26690c40c619ed462e19c895b5554", "score": "0.59827524", "text": "public int getTimeoutSeconds();", "title": "" }, { "docid": "403b71286d5a7c4927a43a920c2d4a08", "score": "0.5975714", "text": "public static int getCLEAR_CACHE_THREAD_WAIT_TIME() {\n\t\tint value = getInstance().getOptions().getInt(\"CLEAR_CACHE_THREAD_WAIT_TIME\");\n\t\tcheckValues(CLEAR_CACHE_THREAD_WAIT_TIME, value);\n\t\treturn CLEAR_CACHE_THREAD_WAIT_TIME;\n\t}", "title": "" }, { "docid": "e3795106a823971cdb4f0fd321840eca", "score": "0.59599155", "text": "int getTimeoutInMilliseconds();", "title": "" }, { "docid": "d5a2cbc61f7c4d7f41acabe2fe63b05e", "score": "0.5953443", "text": "Duration getConnectTimeout();", "title": "" }, { "docid": "25ef071c6e3fec5f045b1397d852c6a4", "score": "0.59460574", "text": "long getTimeout();", "title": "" }, { "docid": "e1f8ccec4e2b5f1300a383a3af88bf85", "score": "0.59295213", "text": "private native long getThreadWaitedTimeImpl(Thread thread);", "title": "" }, { "docid": "4401affbebc7286a351c3f934920b624", "score": "0.59115845", "text": "int getMaxQueueWaitTimeInMs();", "title": "" }, { "docid": "c426b17d53460ab194514fba0ffc87d4", "score": "0.5890984", "text": "public float time_since_disconnected(){\n\t\tif(this.state == State.CONNECTED)\n\t\t\treturn 0;\n\t\treturn (System.nanoTime()-last_connect_state)/ten9;\n\t}", "title": "" }, { "docid": "4649e70aa82c8c9992e1f9d266f505df", "score": "0.5878993", "text": "public long timeoutSeconds() {\n return TIMEOUT;\n }", "title": "" }, { "docid": "e45e5e4557a9afcc41c536936c87662f", "score": "0.58661145", "text": "int getTestTcpCount();", "title": "" }, { "docid": "4c35706d32e50548a01eedad6e8da929", "score": "0.5861901", "text": "private int waitTime() {\n return random.nextInt(data.getMaxWait() / 2 - 1) + 1;\n }", "title": "" }, { "docid": "a382f66c94ce6df161f78deda6fae745", "score": "0.5860944", "text": "public int waitingToBeCheckedIn();", "title": "" }, { "docid": "27a88e0b795549b3ce041cf1cd726929", "score": "0.58553714", "text": "public int getConnectionTimeout();", "title": "" }, { "docid": "b9d192fc405738dcf96493d4c6290584", "score": "0.5852449", "text": "org.apache.xmlbeans.XmlInt xgetSecondsWait();", "title": "" }, { "docid": "d1a6c000faf9f72ef7cde55902ef3a3a", "score": "0.58465934", "text": "long timeout();", "title": "" }, { "docid": "cf41125ffcbaf872f1ea18e88ff8270e", "score": "0.58403295", "text": "public int getTimeout()\n {\n return _timeout;\n }", "title": "" }, { "docid": "4da60bec72d19a4b8263d82960e87864", "score": "0.5835726", "text": "default long longWaitInQueueEvents() {\n return 0;\n }", "title": "" }, { "docid": "0ddc83971d21462389e6318491f410ea", "score": "0.58130187", "text": "@Override\n\tpublic long defaultImplicitlyWait()\n\t{\n\t\treturn getLong( WEBDRIVER_TIMEOUTS_IMPLICITLY_WAIT_MILLIS, 5000 );\n\t}", "title": "" }, { "docid": "195f662b5493de0794970b0dfd6f8f6c", "score": "0.58055955", "text": "int getTimeOut();", "title": "" }, { "docid": "be2e6f60288318aded6c8919480b51af", "score": "0.5801137", "text": "Duration getConnectionIdleTimeout();", "title": "" }, { "docid": "112e7bcecd9b025b8041af956ad87fa8", "score": "0.57892656", "text": "public int getTotalTimeWaited(){\r\n\t\treturn totalTimeWaited;\r\n\t}", "title": "" }, { "docid": "dc05c826165cdfeeec0c4e473f67b516", "score": "0.5763244", "text": "public int getWaitSeconds() {\n return (int) ChronoUnit.SECONDS.between(timeJoined, Instant.now());\n }", "title": "" }, { "docid": "4f722270da5f1d8943b487aeb5673c4c", "score": "0.5755197", "text": "int getPingEstMs();", "title": "" }, { "docid": "422090395d5edb17bce919437a1e784d", "score": "0.57539093", "text": "public int getConnectionTimeout(){\r\n\t\treturn connection.getConnectTimeout();\r\n\t}", "title": "" }, { "docid": "3cfbd83896d19c04c64e3b0dff794411", "score": "0.57462716", "text": "public int getTimeout() {\n\t\treturn socketTimeout;\n\t}", "title": "" }, { "docid": "5744425077f25f67781437f3dac0d501", "score": "0.5741514", "text": "int getElectionTimeoutMax();", "title": "" }, { "docid": "908aaf742f557a5e466fa905076df879", "score": "0.5737708", "text": "public double getWaitDuration() {\n return waitDuration;\n }", "title": "" }, { "docid": "b5288aff8373f5abd31fe887f524076e", "score": "0.57337457", "text": "public long getConnectTimeout() throws TvlCacheException;", "title": "" }, { "docid": "013a2e3f7f59b29bba03a1d9bf79cdf6", "score": "0.57320213", "text": "public long getTimeout();", "title": "" }, { "docid": "3bed2c3f973100c33fb35021729778dd", "score": "0.5723572", "text": "public static int getConnectTimeout() {\n return connectTimeout;\n }", "title": "" }, { "docid": "350341b1d9d93684a199147d69672274", "score": "0.57227576", "text": "public Integer timeout() {\n return this.timeout;\n }", "title": "" }, { "docid": "558d556f2d372a1a0edf468ca85f7e8e", "score": "0.5718208", "text": "String getWorkerThreadCount();", "title": "" }, { "docid": "bcc636e9f86c91523c95e3576b9ca270", "score": "0.5712796", "text": "public int getHeartbeatTimeout() {\n return heartbeatTimeout;\n }", "title": "" }, { "docid": "e78bcc70ef5617988aaf6fd866345464", "score": "0.57112", "text": "public int getWaitTime() {\r\n return waitTime;\r\n }", "title": "" }, { "docid": "1c5324eeafa7dcb309f6acdc6819512a", "score": "0.5702763", "text": "public int getTimeout() {\r\n\t\treturn this.timeout;\r\n\t}", "title": "" }, { "docid": "92b8bd061982b220f2f0df69fc18f086", "score": "0.56961435", "text": "public Long get_clttimeout() throws Exception {\n\t\treturn this.clttimeout;\n\t}", "title": "" }, { "docid": "811f4f510e89a6ab175a0dcf7765bcdd", "score": "0.5688007", "text": "public int getTimeout() {\n return timeout;\n }", "title": "" }, { "docid": "811f4f510e89a6ab175a0dcf7765bcdd", "score": "0.5688007", "text": "public int getTimeout() {\n return timeout;\n }", "title": "" }, { "docid": "50408bdc6227651c6afaf199e8654f9f", "score": "0.567543", "text": "int getElectionTimeoutMin();", "title": "" }, { "docid": "421102640efafd03a4324d35da884b1e", "score": "0.5674449", "text": "public int getConnectTimeout() {\r\n\t\treturn connectTimeout;\r\n\t}", "title": "" }, { "docid": "b5bb41f6b8778ad92d292ed837da8b6e", "score": "0.5669509", "text": "public int getImplicitWait() {\n\t\treturn Integer.parseInt(OR.getProperty(\"implicitwait\"));\n\t}", "title": "" }, { "docid": "b407a1b60e81226601a3782cd9adea05", "score": "0.56691647", "text": "public int getReadTimeout() {\n/* 448 */ return this.readTimeout;\n/* */ }", "title": "" }, { "docid": "c2ed625926af3484314e99d7e0053505", "score": "0.5667461", "text": "int timeout();", "title": "" }, { "docid": "53d3b595fe0aae7ab922d2dca69102ef", "score": "0.56641924", "text": "Duration getReadTimeout();", "title": "" }, { "docid": "d89357603aab59a21cc581a2a9b578fc", "score": "0.56577784", "text": "int getSubjectWarmupTimeout();", "title": "" }, { "docid": "d89357603aab59a21cc581a2a9b578fc", "score": "0.56577784", "text": "int getSubjectWarmupTimeout();", "title": "" }, { "docid": "d89357603aab59a21cc581a2a9b578fc", "score": "0.56577784", "text": "int getSubjectWarmupTimeout();", "title": "" }, { "docid": "c48c8fe17bb3e41dbe142e5ffd2875ce", "score": "0.5649999", "text": "public int getMaxKeepAliveRequests() {\n return maxKeepAliveRequests;\n }", "title": "" }, { "docid": "b85b438e2f3deb7ef905846b55b0f6af", "score": "0.5649698", "text": "int getPollCount();", "title": "" }, { "docid": "81b4104ec9b3be8945feef4dadb53cbe", "score": "0.564118", "text": "public int getNumberOnWaitlist() {\r\n\t\treturn waitlist.size();\r\n\t}", "title": "" }, { "docid": "e8d24d17c4b7e2d96b4f43da3ce9f699", "score": "0.5638939", "text": "public static int getWebDriverTimeout() {\n\t\treturn Integer.parseInt(prop.getProperty(Consts.PN_WEBDRIVERWAITTIMEOUT));\n\t}", "title": "" }, { "docid": "2d4d3353228bc93bc9c38a6b6e77c7a7", "score": "0.5627491", "text": "public int getTimeoutSecs() {\n checkKeyExists(CCIPlugin.CCI_TIMEOUT_SECS_KEY);\n return settings.getInt(CCIPlugin.CCI_TIMEOUT_SECS_KEY);\n }", "title": "" }, { "docid": "ca7dce4c4a091bae51329d5cd31ce264", "score": "0.5624951", "text": "public boolean hasWaitInSecond() {\n return ((bitField0_ & 0x00000008) == 0x00000008);\n }", "title": "" }, { "docid": "d01fc5725a3a67c7b4694531288e2be4", "score": "0.5624373", "text": "public Integer getConnectTimeout() {\n return connectTimeout;\n }", "title": "" }, { "docid": "d01fc5725a3a67c7b4694531288e2be4", "score": "0.5624373", "text": "public Integer getConnectTimeout() {\n return connectTimeout;\n }", "title": "" }, { "docid": "e62f40d08eb9667e43251fe2cf4d2097", "score": "0.56235147", "text": "int getMaxIdleTime( int time );", "title": "" }, { "docid": "fb56ba68b2302b90688512ba4bc024a5", "score": "0.5610165", "text": "int getTestTcpRespCount();", "title": "" }, { "docid": "8dd8d8225540a6d93e115fbfb8151c99", "score": "0.55992043", "text": "protected int getDeadlockTryCount()\r\n {\r\n return DEADLOCK_TRY_COUNT;\r\n }", "title": "" }, { "docid": "d3f912c2d75565f86f32e452c2192b25", "score": "0.5598635", "text": "public int getConnectTimeout() {\n return connectTimeout;\n }", "title": "" }, { "docid": "9f89e2ababcbbd7f2a987ff8236a8aaf", "score": "0.5589047", "text": "public boolean hasWaitInSecond() {\n return ((bitField0_ & 0x00000008) == 0x00000008);\n }", "title": "" }, { "docid": "76c00b6afb1f4bd68b5f0ba842bed1df", "score": "0.55857646", "text": "public long getSmallTimeout()\n {\n return 1000L;\n }", "title": "" }, { "docid": "f6761822b293424a3d62219dfee17735", "score": "0.5584971", "text": "public long getConnectionTimeoutInMs() {\n\t\treturn this.connectionTimeoutInMs;\n\t}", "title": "" }, { "docid": "91f9e7979565932b04460a2d00559fac", "score": "0.5581489", "text": "public Integer getHeartbeatTimeout() {\n return heartbeatTimeout;\n }", "title": "" }, { "docid": "08f50cd1616e965138d16406cfcbabf1", "score": "0.5581348", "text": "public int getTimeOut() throws SocketException {\n\t\treturn socket.getSoTimeout();\n\t}", "title": "" }, { "docid": "05aeb6a43e20b49775eb0b25cba4ed20", "score": "0.5578636", "text": "long waitTimeForAmount();", "title": "" }, { "docid": "faa1ba636b58b3a271853bc94287e702", "score": "0.55767363", "text": "public long count() {\n\t\treturn this.countRTT;\n\t}", "title": "" }, { "docid": "9af03ebcb77746a5f0284ecbb88b128c", "score": "0.55699927", "text": "public Integer getTimeout() {\r\n return timeout;\r\n }", "title": "" }, { "docid": "e4c371c5645b3aaf7d83fc99f2fdaa16", "score": "0.5569733", "text": "long getThreadPoolIdleTimeMs();", "title": "" }, { "docid": "7629f753e548dd9bc8bd50e4c12de197", "score": "0.55670094", "text": "@Override\n\tpublic long getTimeout() {\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "7629f753e548dd9bc8bd50e4c12de197", "score": "0.55670094", "text": "@Override\n\tpublic long getTimeout() {\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "9de7b260e1e90c1ebad6ad489a0d3d08", "score": "0.5559445", "text": "public native int getIdleEventInterval();", "title": "" }, { "docid": "b0cdcbd32b12888678ae07e6d8ffa375", "score": "0.5558534", "text": "int getRecvinfoCount();", "title": "" }, { "docid": "cb792feaf10813d9aa93f276fd9f23a3", "score": "0.55565333", "text": "public int getBatchDownloadWaitTime()\n {\n return 1000; \n }", "title": "" } ]
565a3648d732b5fe47644381bc16ad77
This method is use to login
[ { "docid": "574117b27737909248d5387b2fbb06ea", "score": "0.0", "text": "@Override\n\tpublic UserDetailDto userLogin(UserRequestDto userRequestDto) {\n\t\t// TODO Auto-generated method stub\n\t\tlogger.info(\"inside userLogin method of UserServiceImpl class\");\n\t\t/* get user object based on specific user */\n\t\tUser user = userRepository.findByUserId(userRequestDto.getUserId());\n\t\tif (user.getUserId().equals(userRequestDto.getUserId())\n\t\t\t\t&& user.getPassword().equals(userRequestDto.getPassword())) {\n\t\t\tUserDetailDto detailDto = new UserDetailDto();\n\t\t\t\n\t\t\tdetailDto.setRoleId(user.getRole().getRoleId());\n\t\t\tdetailDto.setStatusCode(HttpStatus.OK.value());\n\t\t\tdetailDto.setMessage(\"User has been logged in successfully\");\n\t\t\t\n\t\t\treturn detailDto;\n\t\t\t\n\t\t} else {\n\t\t\tthrow new InvalidCredentialsException(\"User/Password is wrong !!!\");\n\t\t}\n\n\t}", "title": "" } ]
[ { "docid": "9dc8680c3dd52e7f7b1ba23fee75e59c", "score": "0.8503588", "text": "public void login() {\n\t\t\r\n\t}", "title": "" }, { "docid": "d08f0130bfcb3f0672ba2a0f33f98ea2", "score": "0.8444148", "text": "private static void login() {\n\t\t\n\t}", "title": "" }, { "docid": "71cfef2c893aaac427a260d563732dff", "score": "0.8099177", "text": "public void login();", "title": "" }, { "docid": "14e05b6f21a03c88f7a25fd921c30f8d", "score": "0.80376303", "text": "public void login() {\n controller.login(userName.getText(), new String(password.getPassword()));\r\n\r\n }", "title": "" }, { "docid": "205305e9a596694efd077cf9dcb0d7ca", "score": "0.7922897", "text": "public do_login() {\n\t\tsuper();\n\t}", "title": "" }, { "docid": "cd40913335fa3e65ac674cf2dc9905a3", "score": "0.79006016", "text": "void login();", "title": "" }, { "docid": "fc2d01ae480803b12985e5e8afe0749f", "score": "0.7897623", "text": "@Override\n\tpublic void login() {\n\t\t\n\t}", "title": "" }, { "docid": "d4eec1960e4a2b62ed416e20f4ae16d3", "score": "0.76888835", "text": "@Override\n\tpublic void Login() {\n\t\t\n\t}", "title": "" }, { "docid": "e50e5a97aee26039b8826f4ebd738ea5", "score": "0.76777273", "text": "private void login(){\n if (loginType == DDPConnectionSettings.LoginType.NoLogin){\n //return;\n } else if (loginType == DDPConnectionSettings.LoginType.Token){\n // token comes after login in first result message, save it as string\n TokenAuth tokenAuth = new TokenAuth(this.resumeToken);\n Object[] methodArgs = new Object[]{tokenAuth};\n ddpClient.call(\"login\", methodArgs);\n } else if (loginType == DDPConnectionSettings.LoginType.Username){\n UsernameAuth usernameAuth = new UsernameAuth(this.userName, this.password);\n Object[] methodArgs = new Object[]{usernameAuth};\n ddpClient.call(\"login\", methodArgs);\n } else if (loginType == DDPConnectionSettings.LoginType.Email){\n EmailAuth emailAuth = new EmailAuth(this.email, this.password);\n Object[] methodArgs = new Object[]{emailAuth};\n ddpClient.call(\"login\", methodArgs);\n }\n }", "title": "" }, { "docid": "1a3be3eaf5ba075b1203e1c4fe073fb9", "score": "0.76700217", "text": "public void login() {\n LoaderUtils.showProgressBar(LoginScreen.this, \"Please Wait..\");\n if (!validate()) {\n onLoginFailed();\n return;\n }\n btnLogin.setEnabled(false);\n\n\n String email = etEmail.getText().toString();\n String password = etPassword.getText().toString();\n\n // Function responsible for making the user log in\n signIn(email, password);\n }", "title": "" }, { "docid": "1f7c20622a5e3bd538de17908899b195", "score": "0.7602208", "text": "private void Login() {\n\n\t\ttry {\n\n\t\t\tArrayList<String> asName = new ArrayList<String>();\n\t\t\tasName.add(\"username\");\n\t\t\tasName.add(\"password\");\n\n\t\t\tArrayList<String> asValue = new ArrayList<String>();\n\t\t\tLocalData localData = new LocalData(HomeActivity.this);\n\n\t\t\tasValue.add(localData.GetS(\"name\"));\n\t\t\tasValue.add(localData.GetS(\"password\"));\n\n\t\t\tString sUrl = \"\";\n\n\t\t\ttry {\n\t\t\t\tsUrl = StringURLs.getQuery(StringURLs.LOGIN, asName, asValue);\n\t\t\t} catch (Exception e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\n\t\t\tConnectServer connectServer = new ConnectServer();\n\t\t\tconnectServer.setMode(ConnectServer.MODE_POST);\n\t\t\tconnectServer.setContext(HomeActivity.this);\n\t\t\tconnectServer.setListener(new ConnectServerListener() {\n\n\t\t\t\t@Override\n\t\t\t\tpublic void onServerResponse(String sJSON, JSONObject jsonObject) {\n\t\t\t\t\t// TODO Auto-generated method stub\n\n\t\t\t\t\t// {\"response\":{\"success\":\"1\",\"message\":\"successfully Login\",\"userid\":77}}\n\n\t\t\t\t\tif (sJSON.length() == 0) {\n\n\t\t\t\t\t\tToast.makeText(\n\t\t\t\t\t\t\t\tHomeActivity.this,\n\t\t\t\t\t\t\t\tMain.getStringResourceByName(HomeActivity.this,\n\t\t\t\t\t\t\t\t\t\t\"c100\"), Toast.LENGTH_LONG).show();\n\n\t\t\t\t\t} else {\n\t\t\t\t\t\tString sMsg = CheckLoginJSON(sJSON);\n\n\t\t\t\t\t\tif (sMsg.length() == 0) {\n\n\t\t\t\t\t\t\tGetNotificationCount();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\n\t\t\tconnectServer.execute(sUrl);\n\n\t\t} catch (Exception exp) {\n\n\t\t}\n\t}", "title": "" }, { "docid": "daaacdf88fd2d995239b987facdfb7bf", "score": "0.75369257", "text": "public DoLogin() {\n\t\tsuper();\n\t}", "title": "" }, { "docid": "91dbf4d192e8ff1e6ecfe79a8a2748e8", "score": "0.7534905", "text": "public void login() {\r\n if (accountDisabled) {\r\n log.info(\"Cant login with a disabled account\");\r\n }\r\n log.trace(\"do login\");\r\n Request req = _(CurrentRequestService.class).request();\r\n _(CookieAuthenticationHandler.class).setLoginCookies(this, req);\r\n }", "title": "" }, { "docid": "4a354bae68c5931d351d7e13a4274e32", "score": "0.75234646", "text": "public void login()\n\t{\n\t\ttry {\n\t\t\tkl.klWait();\n\t\t\tWebElement usernameField = kl.klIsElementPresent(ObjectRepository.USERNAME);\n\t\t\tusernameField.sendKeys(configProperties.getProperty(\"USERNAME\"));\n\n\t\t\tWebElement passwordField =kl.klIsElementPresent(ObjectRepository.PASSWORD);\n\t\t\tpasswordField.sendKeys(configProperties.getProperty(\"PASSWORD\"));\n\n\t\t\tkl.klWebElementClick(ObjectRepository.LOGINBUTTON);\n\t\t\tBasicConfigurator.configure();\n\t\t\tlogger.info(\"Logged in\");\n\t\t}\n\t\tcatch(Exception e){\n\t\t\tBasicConfigurator.configure();\n\t\t\tlogger.error(\"Exception occurred during login(): \" + e.getMessage());\n\t\t}\n\t}", "title": "" }, { "docid": "128cffbf1dd0ae864acb5363fb8987fe", "score": "0.7444366", "text": "private void login() {\n if (txtUsername.getText().isEmpty()){\n loginError(txtUsername, \"Please enter Username\");\n return;\n }\n \n if (pswPassword.getPassword().length == 0){\n loginError(pswPassword, \"Please enter Password\");\n return;\n }\n \n \n ObradaUser ou = new ObradaUser();\n User u = ou.autoriziraj(txtUsername.getText(), pswPassword.getPassword());\n \n if(u==null){\n loginError(pswPassword, \"Username and Password don't match!\");\n return;\n }\n \n Aplikacija.user=u;\n new AnimeForma().setVisible(true);\n dispose();\n }", "title": "" }, { "docid": "dc34d4afdb0f0ddb6a05f482d345f47f", "score": "0.7411852", "text": "private void loginDefault() throws Exception {\r\n \tp.start();\r\n \tgetOutputStream();\r\n \tout.write(cred.getPassword().getBytes());\r\n \tout.write('\\n');\r\n \tout.flush();\r\n }", "title": "" }, { "docid": "3043281313c20fd0ef0e36b8e8a33bda", "score": "0.7401668", "text": "private void logMeIn() {\n //Get the username and password\n String thisUsername = theUsername.getText().toString();\n String thisPassword = thePassword.getText().toString();\n //Assign the hash to the password\n thisPassword = md5(thisPassword);\n\n String sessionID = webHelper.getSessionIdFromWeb();\n String validateResult = webHelper.validateInWeb(thisUsername, thisPassword, sessionID);\n if (validateResult.equals(\"SUCCESS\")) {\n Toast.makeText(getApplicationContext(),\n \"Login Success !\",\n Toast.LENGTH_SHORT);\n\n SharedPreferences pref = getSharedPreferences(USER_PREFS, MODE_PRIVATE);\n String userID = pref.getString(\"userID\", \"\"); //如果userID为空,需要web返回userID\n saveLoggedInUserInfo(thisUsername, userID, sessionID);\n //Jump to UserInfo layout\n Intent i = new Intent(LoginActivity.this, UserProfileActivity.class);\n startActivity(i);\n } else {\n Toast.makeText(getApplicationContext(),\n \"Login error, please try again\",\n Toast.LENGTH_SHORT);\n }\n\n }", "title": "" }, { "docid": "46e46395c36b6e7a0aca81eb286e4919", "score": "0.7399675", "text": "static public void logIn(){\n\t\t// driver.manage().timeouts().implicitlyWait(3, TimeUnit.SECONDS);\n\t\t driver.get(baseUrl + \"/index.php\"); // going to the base url\n\n\t\t\n\t\t \n\t\t wait.until(visibilityOfElementLocated(By.id(\"input_username\"))); // We wait for form loading 10 seconds, hear we use private method from AT_book\n\t\t driver.findElement(By.id(\"input_username\")).sendKeys(\"root\"); // logining\n\t\t driver.findElement(By.id(\"input_password\")).sendKeys(\"123456\");\n\t\t driver.findElement(By.id(\"input_go\")).click(); // push\n\t\t\n\t }", "title": "" }, { "docid": "3d7e03de295c650be32590ae9a1267df", "score": "0.7397802", "text": "private void login() {\n String username = userTextField.getText();\n String password = String.valueOf(pass.getPassword()).toLowerCase();\n try {\n dispose();\n controller.verifyUserLogin(username, password);\n } catch (SQLException sql) {\n sql.printStackTrace();\n }\n }", "title": "" }, { "docid": "3fb3b7fb254ec0742aeea39b3adb77a1", "score": "0.7318829", "text": "private void login(){\n \n String user = userField.getText();\n String password = passwordField.getText();\n System.out.println();\n DatabaseHandler dh;\n dh = new DatabaseHandler(user);\n \n \n boolean status;\n try {\n status = dh.login(password);\n \n if(status){\n new DataScreenUI(dh, this);\n }else{\n warningDialog(dh.getException());\n }\n \n } catch (SQLException | ClassNotFoundException ex) {\n Logger.getLogger(LoginScreenUI.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "title": "" }, { "docid": "9f1af86618b45a2634dc08bc51e6ba8c", "score": "0.72999185", "text": "public void login() {\n\t\tusernameET.setError(null);\n\t\tpasswordET.setError(null);\n\n\t\tString userName = usernameET.getText().toString();\n\t\tString password = passwordET.getText().toString();\n\n\t\tif (TextUtils.isEmpty(userName)) {\n\t\t\tusernameET.setError(getString(R.string.error_field_required));\n\t\t\tusernameET.requestFocus();\n\t\t} else if (userName.length() < 6) {\n\t\t\tusernameET.setError(getString(R.string.error_invalid_username));\n\t\t\tusernameET.requestFocus();\n\t\t} else if (TextUtils.isEmpty(password)) {\n\t\t\tpasswordET.setError(getString(R.string.error_field_required));\n\t\t\tpasswordET.requestFocus();\n\t\t} else if (password.length() < 6) {\n\t\t\tpasswordET.setError(getString(R.string.error_incorrect_password));\n\t\t\tpasswordET.requestFocus();\n\t\t} else {\n\t\t\tattemptLogin();\n\t\t}\n\t}", "title": "" }, { "docid": "fe63c47c47a1811ae64520519e84972c", "score": "0.7295257", "text": "public String login(String userName, String password);", "title": "" }, { "docid": "80f57c214cccb79c440a520ab7075349", "score": "0.7281565", "text": "public static void loginToGuru99(String strUserName,String strPasword){\n\n //Fill user name\n\n setUserName(strUserName);\n\n //Fill password\n\n setPassword(strPasword);\n\n //Click Login button\n\n clickLogin(); \n\n \n\n }", "title": "" }, { "docid": "94a56dacde6998e8876193ea218ad4be", "score": "0.7263565", "text": "public void login() {\n\t\tboolean login = false;\n\t\tRegistro registro = null;\n\t\ttry {\n\t\t\tregistro = daoRegistro.login(username, password);\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\tif (registro != null) {\n\t\t\tlogin = true;\n\t\t}\n\n\t\tString rol = registro.getRol();\n\n//\t\tif (username.equals(\"admin\") && password.equals(\"admin\")) {\n//\t\t\tlogin = true;\n//\t\t}\n\n\t\tif (login) {\n\t\t\tCtrSession bean = (CtrSession) FacesUtils.getManagedBean(\"ctrSession\");\n\t\t\tif (bean != null) {\n\t\t\t\tFacesContext facesContext = FacesContext.getCurrentInstance();\n\t\t\t\tfacesContext.getExternalContext().getSessionMap().put(\"usuario\", username);\n\n\t\t\t\tif (rol.equals(\"Cajero\")) {\n\t\t\t\t\tFacesUtils.redirect(\"/blue-ice-813371382/PrincipalCajero.jsf\");\n\t\t\t\t} else if (rol.equals(\"Admin\")) {\n\t\t\t\t\tFacesUtils.redirect(\"/blue-ice-813371382/PrincipalAdministrador.jsf\");\n\t\t\t\t}else if (rol.equals(\"Cajero\")) {\n\t\t\t\t\tFacesUtils.redirect(\"/blue-ice-813371382/PrincipalCajero.jsf\");\n\t\t\t\t}else if (rol.equals(\"Cliente\")){\n\t\t\t\t\tFacesUtils.redirect(\"/blue-ice-813371382/ClienteCuentas.jsf\");\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\tFacesUtils.msgError(null, \"El usuario o contraseña son incorrectos\");\n\t\t}\n\t}", "title": "" }, { "docid": "3a90d11da3d4538c90c3299c3fa8e79f", "score": "0.7255031", "text": "public LoginStatus logIn(String username, String password);", "title": "" }, { "docid": "ed593dba89ab67ff62a9ac3b62731c27", "score": "0.7232453", "text": "public String login(String user, String pass);", "title": "" }, { "docid": "616eb334c850b45a835e997e594b97ef", "score": "0.719481", "text": "static void login() {\n AppUtils.printLabels(\"User Login\");\n\n System.out.print(\"Enter username: \");\n String username = scanner.next();\n System.out.print(\"Enter password: \");\n String password = scanner.next();\n\n List<User> users = Bank.getUsers();\n for (User u : users) {\n if (u.getUsername().equals(username) && u.getPassword().equals(password)) {\n user = u;\n }\n }\n\n if (user != null) {\n account = user.getAccount();\n showAccountMenu();\n } else {\n AppUtils.printLabels(\"ERROR: Incorrect credentials! Please try again.\");\n return;\n }\n }", "title": "" }, { "docid": "142bcafe9cace03490b6a3773e352d4c", "score": "0.71937525", "text": "public void login(){//SECURE VERSION \n currentusr = new User(userfield.getText(),\n new String(pwdfield.getPassword())); \n panelSwitcher(2);\n }", "title": "" }, { "docid": "6418e7b1a3133b7200f1d01b51255310", "score": "0.7157306", "text": "private void login(String uname, String pword) {\r\n\r\n //showToast(this, \"login\", Toast.LENGTH_LONG);\r\n\r\n gusername = uname;\r\n gpassword = pword;\r\n gapiKey = this.getSPString(SP_API_KEY, null);\r\n\r\n this.showLoadingLayer();\r\n Authentication auth = new Authentication(uname, pword);\r\n auth.setImei(gIMEI);\r\n auth.setNonce(RDStringGenerator.genNonce(7));\r\n if(gapiKey != null)\r\n auth.setApiKey(gapiKey);\r\n\r\n MsgSender.post(SystemConstants.BASE_URL + SystemConstants.URL_LOGIN,\r\n SystemConstants.KEY_JSON, auth.toDESJson(),\r\n new AccountConnectionMsgListener(this, IntentConstants.INTENT_ACTION_LOGIN));\r\n\r\n }", "title": "" }, { "docid": "38210782dff0f07afd96e7b9d1ac0560", "score": "0.7146949", "text": "public final void loginDemo() {\n login(\"demo\", \"demo\");\n }", "title": "" }, { "docid": "60b522d6ed4680d4b0c75dd67906cfc9", "score": "0.7145091", "text": "@Override\r\n\tpublic void userLogin(String loginName, String longinPassword)\r\n\t\t\tthrows Exception {\n\t\tLog.d(TAG, loginName);\r\n\t\tLog.d(TAG, longinPassword);\r\n\t\taction=\"login\";\r\n\t\t\r\n\t\tHttpClient client=new DefaultHttpClient();\r\n\t\tint UserTypeState=LoginActivity.UserTypeFlag;\r\n\t\t//http://10.100.70.255:8080/xscj/servlet/Client?LoginName=tom&LoginPassword=123\r\n\t\t//\"UserTypeState=\"+UserTypeState\r\n\t\t\r\n\t\t//用户名和密码 用户类型一起传给服务器。\r\n\t\tString uri=PATH+\"?LoginName=\"+loginName+\"&LoginPassword=\"+longinPassword+\"&action=\"+action;\r\n\t\tHttpGet get=new HttpGet(uri);\t\r\n\t\tHttpResponse response=client.execute(get);\r\n\t\t\r\n\t\tint ststusCode=response.getStatusLine().getStatusCode();\r\n\t\tif(ststusCode!=HttpStatus.SC_OK)\r\n\t\t{\r\n\t\t\tthrow new ServiceRulesException(LoginActivity.MSG_SERVER_ERROR);\r\n\t\t}\r\n\t\tString result= EntityUtils.toString(response.getEntity(),HTTP.UTF_8);\r\n\t\tLog.d(TAG, result);\r\n\t\tif(result.equals(\"success\"))\r\n\t\t{\r\n\t\t\t\r\n\t\t}else{\r\n\t\t\tthrow new ServiceRulesException(LoginActivity.MSG_LOGIN_FAILED);\r\n\t\t}\r\n\t\t\r\n\t}", "title": "" }, { "docid": "5be2ecda6c281768f5fd27d71aba3848", "score": "0.7139428", "text": "U login(String username, String password) throws AuthException;", "title": "" }, { "docid": "6fcd0c5e621539e04b43777bd088fe79", "score": "0.7137694", "text": "@FXML\n private void login() {\n String username = tfUsername.getText();\n String password = tfPassword.getText();\n if (username.length() != 0 && password.length() != 0) {\n List<Object> arguments = new ArrayList<>();\n arguments.add(username);\n long userId = executeQuery(\"SELECT User_ID, Password \" +\n \"FROM users \" +\n \"WHERE User_Name = ? \" +\n \"LIMIT 1\", arguments, this::validateInput);\n saveLoginAction(userId != -1);\n if (userId != -1) {\n BaseController.userID = userId;\n viewController.showMainView();\n } else {\n showMessageBox(resourceBundle.getString(\"error.defaultTitle\"), resourceBundle.getString(\"error.invalidCredentials\"), Alert.AlertType.ERROR);\n }\n }\n }", "title": "" }, { "docid": "481e507ba71477bef7c633357406c35a", "score": "0.713029", "text": "@Override\n\tpublic void login() {\n\t\tdatamodel.refreshData();\n\t\t@SuppressWarnings(\"deprecation\")\n\t\tvar check = datamodel.user.stream().filter(\n\t\t\t\tx -> x.username.equals(usernameField.getText().strip()) && x.password.equals(passwordField.getText()))\n\t\t\t\t.collect(Collectors.toList());\n\t\tif (check.size() == 0) {\n\t\t\tJOptionPane.showMessageDialog(null, \"Wrong Username / Password!\", \"Alert\", JOptionPane.WARNING_MESSAGE);\n\t\t} else {\n\t\t\tframe.setVisible(false);\n\t\t\ttry {\n\t\t\t\tMainMenuController window = new MainMenuController();\n\t\t\t\twindow.frame.setVisible(true);\n\t\t\t\twindow.frame.addWindowListener(new WindowAdapter() {\n\t\t\t\t\tpublic void windowClosed(WindowEvent e) {\n\t\t\t\t\t\tframe.setVisible(true);\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t} catch (Exception e) {\n\t\t\t\tJOptionPane.showMessageDialog(null, \"Cannot log in. Program is problem\", \"Alert\",\n\t\t\t\t\t\tJOptionPane.WARNING_MESSAGE);\n\t\t\t\tframe.setVisible(true);\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "4a4838f5be8dc7dbcf22c7444e0af1c3", "score": "0.712499", "text": "@SuppressWarnings(\"unused\")\n\tprivate Object login() {\n\t\t// TODO: Use the JSAPI to login and store the\n\t\t// authenticated session to add security to\n\t\t// exportReport()\n\t\tObject session = null;\n\t\t\n\t\treturn session;\n\t}", "title": "" }, { "docid": "ede693fd9b349daa5337e4e96e77cb9a", "score": "0.71100646", "text": "public Integer login() {\n\t}", "title": "" }, { "docid": "65d41463b6fe37c61c15226c2b3e3b7d", "score": "0.709763", "text": "public static void login() {\n\n\t\trender();\n\t}", "title": "" }, { "docid": "91f9a43a5d6838449bb01aff15518202", "score": "0.70898676", "text": "public SecurePage login() {\n\t\tfind(usernameLocator).sendKeys(USERNAME);\r\n\t\tfind(passwordLocator).sendKeys(PASSWORD);\r\n\t\t\r\n\t\t// Pause test for 2 seconds to view set values\r\n\t\ttry {\r\n\t\t\tThread.sleep(2000);\r\n\t\t} catch (InterruptedException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t\t// Click login button\r\n\t\tfind(loginButtonLocator).click();\r\n\t\t\r\n\t\treturn new SecurePage(driver);\r\n\t}", "title": "" }, { "docid": "ff40f0871d294c2e8638227cff8a3b88", "score": "0.7082949", "text": "boolean loginTheUser(LoginInfo loginInfo, HttpSession session) throws Exception;", "title": "" }, { "docid": "51b5e75ab8d6a2803efcce55c871a92b", "score": "0.7061747", "text": "@Override\n\tpublic void login(int cedula, String contrasenia) {\n\t}", "title": "" }, { "docid": "78b4c314d64c9864dfce2cbd22b1a52d", "score": "0.7058366", "text": "public abstract void login( String login, String password, boolean saveSession, AuthorisedScreen screen );", "title": "" }, { "docid": "992e77d2d9832859026a084b753be7d4", "score": "0.7047977", "text": "void doLogin(String name);", "title": "" }, { "docid": "2f02877c7676261c6d43a04b1050f53b", "score": "0.7038311", "text": "void login(String email, String password, String device);", "title": "" }, { "docid": "62e21919f956cba5e9e90729f8a43350", "score": "0.7037506", "text": "public void loginUser() {\n try {\n LoginManager.getInstance().registerCallback(callbackManager, loginCallback);\n LoginManager.getInstance().logInWithReadPermissions(this.mActivity, PERMISSION_LOGIN);\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "eef83cd9319403bea8baea8ad90f5c22", "score": "0.7027682", "text": "public boolean login(){\n if(emailId.equals(emailId) && password.equals(password)){\n return true;\n }\n return false;\n }", "title": "" }, { "docid": "4a3504e897604d35520a77199f1171c5", "score": "0.7026527", "text": "public boolean login(String username, String password) {\n return false;\n//end of modifiable zone..................E/7cc15aea-6d40-41db-85cb-7ead6c6e4d5c\n }", "title": "" }, { "docid": "d35fc0fc9c59f0a1a22edbe322ecf5d4", "score": "0.7005858", "text": "public void callLogin() {\n WSLoginTask loginTask = new WSLoginTask(_username, _password);\n loginTask.delegate = this;\n\n loginTask.execute();\n }", "title": "" }, { "docid": "d45ee2ce21ea29e76a05686793fe29be", "score": "0.70051426", "text": "public void login() throws IOException, GeneralSecurityException {\n sendGetRequest(\"/login.html\");\n\n String urlParameters = \"username=\" + tmsClientSecurityConfig.getUsername() + \"&password=\" + tmsClientSecurityConfig.getPassword();\n URL url = new URL(tmsBaseUrl + \"/api/security/login\");\n byte[] postData = urlParameters.getBytes(UTF_8);\n int postDataLength = postData.length;\n HttpURLConnection connection = prepareHttpConnection(tmsClientSecurityConfig, url);\n\n connection.setRequestMethod(POST);\n connection.setInstanceFollowRedirects(false);\n connection.setDoOutput(true);\n connection.setRequestProperty(\"Content-Type\", \"application/x-www-form-urlencoded\");\n connection.setRequestProperty(\"charset\", \"utf-8\");\n connection.setRequestProperty(\"Content-Length\", Integer.toString(postDataLength));\n try (DataOutputStream wr = new DataOutputStream(connection.getOutputStream())) {\n wr.write(postData);\n }\n\n saveHeaders(connection);\n\n int responseCode = connection.getResponseCode();\n if (responseCode != 302) {\n throw new FailedHttpRequestException(responseCode);\n }\n }", "title": "" }, { "docid": "c2bda89aff3af9895393247f56e091aa", "score": "0.6997062", "text": "public String login() {\n UsuarioDAO us = new UsuarioDAO();\n Usuario user = null;\n for(Usuario u: us.usuarios()){\n if(u.getCorreo().equalsIgnoreCase(this.username)&&u.getContrasena().equalsIgnoreCase(password)){\n user = u;\n break;\n }\n }\n FacesContext context = FacesContext.getCurrentInstance();\n\n if (user == null) {\n context.addMessage(null, new FacesMessage(\"No se pudo hacer logín,Usuario no encontrado\"));\n username = null;\n password = null;\n return \"\";\n } else{\n if(user.isConfirmado()==false){\n context.addMessage(null, new FacesMessage(\"No se ha verificado su correo\"));\n username = null;\n password = null;\n return \"\";\n }\n \n context.getExternalContext().getSessionMap().put(\"user\", user);\n context.addMessage(null, new FacesMessage(\"Inicio Exitoso\"));\n username = null;\n password = null;\n return \"/index.xhtml?faces-redirect=true\";\n \n }\n }", "title": "" }, { "docid": "9e825eacf67bb2bbd819eb665e9c1e04", "score": "0.69938856", "text": "public String login() {\n FacesContext currentInstance = FacesContext.getCurrentInstance();\n try {\n User user = this.loginService.login(userName, password);\n currentInstance.getExternalContext().getSessionMap().put(\"user\", user);\n return REDIRECT_HOME_PAGE;\n } catch (InvalidLoginException e) {\n String message = \"User \" + e.getUsername() + \" not found or password was incorrect, please try again\";\n currentInstance.addMessage(\"loginForm:submitButton\", new FacesMessage(FacesMessage.SEVERITY_ERROR, message, message));\n } catch (IOException e) {\n e.printStackTrace();\n }\n return null;\n }", "title": "" }, { "docid": "d7ad73cfd3600a55b9131d8a0b33d3be", "score": "0.6993395", "text": "Login userLogin(String username, String password);", "title": "" }, { "docid": "8d6b7ffad7b79070d59caae6f3e0bab3", "score": "0.69687164", "text": "public void login(String username, String password) {\n\t\t\n\t}", "title": "" }, { "docid": "c7f63fe68733258bfb363c03fa1a5caa", "score": "0.6964599", "text": "private void login(String email, String password) {\n // Show a progress spinner, and kick off a background task to\n // perform the user login attempt.\n ParticleUi.showParticleButtonProgress(this, R.id.action_log_in, true);\n loginTask = Async.executeAsync(sparkCloud, new Async.ApiWork<ParticleCloud, Void>() {\n @Override\n public Void callApi(@NonNull ParticleCloud sparkCloud) throws ParticleCloudException {\n sparkCloud.logIn(email, password);\n return null;\n }\n\n @Override\n public void onTaskFinished() {\n loginTask = null;\n }\n\n @Override\n public void onSuccess(@NonNull Void result) {\n SEGAnalytics.identify(email);\n SEGAnalytics.track(\"Auth: Login success\");\n log.d(\"Logged in...\");\n if (isFinishing()) {\n return;\n }\n startActivity(NextActivitySelector.getNextActivityIntent(\n LoginActivity.this,\n sparkCloud,\n SDKGlobals.getSensitiveDataStorage(),\n null));\n finish();\n }\n\n @Override\n public void onFailure(@NonNull ParticleCloudException error) {\n log.d(\"onFailed(): \" + error.getMessage());\n SEGAnalytics.track(\"Auth: Login failure\");\n ParticleUi.showParticleButtonProgress(LoginActivity.this,\n R.id.action_log_in, false);\n // FIXME: check specifically for 401 errors\n // and set a better error message? (Seems like\n // this works fine already...)\n passwordView.setError(error.getBestMessage());\n passwordView.requestFocus();\n }\n });\n }", "title": "" }, { "docid": "a9da4bab084dd24b50e3e34aeed98e4a", "score": "0.6962046", "text": "@RolesAllowed(\"Login\")\n\tpublic Integer login() {\n\t\tfinal Integer result = writeLoginProtocol(this.getCurrentUserName());\n\t\tLOG.info(\"User \" + this.getCurrentUserName() + \" successfully logged in.\");\n\t\treturn result;\n\t}", "title": "" }, { "docid": "b2134bb257ab8aa98b24f9665d578392", "score": "0.6955686", "text": "public void signIn(View V)\r\n\t {\r\n\t\t\r\n\t\r\n\t\t final EditText editTextUserName=(EditText)findViewById(R.id.editTextUserNameToLogin);\r\n\t\t final EditText editTextPassword=(EditText)findViewById(R.id.editTextPasswordToLogin);\r\n\t\t \r\n\t\t\t\r\n\t\t\t// get The User name and Password\r\n\t\t String userName=editTextUserName.getText().toString();\r\n\t\t\t\t\tString password=editTextPassword.getText().toString();\r\n\t\t\t\t\t\r\n\t\t\t\t\teditor.putString(Constants.UNAME, userName);\r\n\t\t\t editor.commit();\r\n\t\t\t\t\t\r\n\t\t\t\t\t// fetch the Password form database for respective user name\r\n\t\t\t\t\tString storedPassword=easyParkLoginDBAdapter.getSinlgeEntry(userName);\r\n\t\t\t\t\t\r\n\t\t\t\t\t// check if the Stored password matches with Password entered by user\r\n\t\t\t\t\tif(password.equals(storedPassword))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t// When login is successful get the current location of the user and allow user to get the parking lots data\r\n\t\t\t Intent intent = new Intent(HomeActivity.this, GetParkingLots.class);\r\n\t\t\t startActivity(intent);\r\n\t\t\t\t\t\t \r\n\t\t\t\t\t }\r\n\t\t\t\t\t\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tToast.makeText(HomeActivity.this, \"User Name or Password does not match\", Toast.LENGTH_LONG).show();\r\n\t\t\t\t\t}\r\n\t\t\t\t}", "title": "" }, { "docid": "2d0f771c1719cd0496d26c6d8c34d52a", "score": "0.69380784", "text": "private void login(String userName, String pwd) {\n\t\tString logRequestUrl = Urls.server + \"?\" + \"buss=getUserid\"\n\t\t+\"&username=\" + userName \n\t\t+ \"&password=\" + pwd;\n\t\t\n\t\tfinal ProgressDialog dialog = new ProgressDialog(this);\n\t\tdialog.setMessage(\"登录中...\");\n\t\tdialog.show();\n\t\tgetFinalHttp().get(logRequestUrl, new AjaxCallBack<String>() {\n\n\t\t\t@Override\n\t\t\tpublic void onSuccess(String t) {\n\t\t\t\tsuper.onSuccess(t);\n\t\t\t\tparseData(t);\n\t\t\t\tdialog.cancel();\n\t\t\t}\n\n\t\t\tprivate void parseData(String t) {\n\t\t\t\ttry {\n\t\t\t\t\tJSONObject json = new JSONObject(t);\n\t\t\t\t\tif(\"00\".equals(json.get(\"respCode\"))) {\n\t\t\t\t\t\tTst.toastS(\"登录成功!\", getApplicationContext());\n\t\t\t\t\t\tuserId = json.getString(\"respMsg\");\n\t\t\t\t\t\tLog.i(\"--tom\", \"userId:\" + userId);\n\t\t\t\t\t\tonSaveContent();\n\t\t\t\t\t\tsetViewVisible(false);\n\t\t\t\t\t}\n\t\t\t\t} catch (JSONException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void onFailure(Throwable t, int errorNo,\n\t\t\t\t\tString strMsg) {\n\t\t\t\tsuper.onFailure(t, errorNo, strMsg);\n\t\t\t\tToast.makeText(MainActivity.this, strMsg, Toast.LENGTH_SHORT).show();\n\t\t\t\tdialog.cancel();\n\t\t\t}\n\t\t\t\n\t\t});\n\t}", "title": "" }, { "docid": "e8c2f549fe7e98969640bde4200584b2", "score": "0.69350016", "text": "public String doLogin() throws Exception {\n\n\t\tlogger.info(\"userName: \" + userName + \": password: \" + password);\n\t\tboolean flag = userBo.validateUser(userName, password);\n\n\t\tif (flag == true) {\n\t\t\tsession.put(\"icm_loggedIn\", \"true\");\n\t\t\tsession.put(\"userName\", userName);\n\t\t\treturn SUCCESS;\n\t\t} else {\n\n\t\t\taddActionError(\"Invalid User Name or Password\");\n\t\t\treturn INPUT;\n\t\t}\n\t}", "title": "" }, { "docid": "0d8b2aaf8b799df2a4a203a94f26178d", "score": "0.69297475", "text": "public void login(View view) {\r\n\t\tEditText username = (EditText) findViewById(R.id.editTextUsername);\r\n\t\tEditText password = (EditText) findViewById(R.id.editTextPassword);\r\n\t\tString user = username.getText().toString();\r\n\t\tString pass = password.getText().toString();\r\n\t File filedir = this.getApplicationContext().getFilesDir();\r\n\t File passfile = new File(filedir, MainConstants.PASSWORDS);\r\n\t SharedPreferences sharedpreferences = getSharedPreferences(MainConstants.TRAVELLOGIN, Context.MODE_PRIVATE);\r\n\t\tif (AndroidControl.Login(user, pass, passfile)) {\r\n\t\t\tEditor editor = sharedpreferences.edit();\r\n\t\t\teditor.putString(MainConstants.keyname, user);\r\n\t\t\teditor.putString(MainConstants.keypass, pass);\r\n\t\t\teditor.commit();\r\n\t\t\tif (AndroidControl.getLoginType(user, pass, passfile).equals(MainConstants.CLIENT)) {\r\n\t\t\t\tIntent i = new Intent(getApplicationContext(), MainMenuActivity.class);\r\n\t\t\t\tstartActivity(i);\r\n\t\t\t} else if (AndroidControl.getLoginType(user, pass, passfile).equals(MainConstants.ADMIN)) {\r\n\t\t\t\tIntent i = new Intent(getApplicationContext(), MainAdminActivity.class);\r\n\t\t\t\tstartActivity(i);\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tAlertDialog.Builder builder = new AlertDialog.Builder(this);\r\n\t\t\tbuilder.setIcon(android.R.drawable.ic_dialog_alert);\r\n\t\t\tbuilder.setTitle(\"Login failed. Please try again.\");\r\n\t\t\tbuilder.setNegativeButton(\"OK\", new DialogInterface.OnClickListener() {\r\n\t\t\t\t@Override\r\n\t public void onClick(DialogInterface dialog, int which) {\r\n\t }\r\n\t });\r\n\t\t\tAlertDialog dialog = builder.create();\r\n\t\t\tdialog.show();\r\n\t\t}\r\n\t\t\r\n\t}", "title": "" }, { "docid": "ee84dfd94b6230fa421783c067c8d979", "score": "0.6927608", "text": "private void login() {\n panelLogin = new PanelLogin().setGUI(this);\n activeView = VIEW.LOGIN;\n this.frame.setContentPane(panelLogin);\n frame.setUndecorated(true);\n this.frame.setResizable(false);\n this.frame.pack();\n this.frame.setLocationRelativeTo(null);\n this.frame.setVisible(true);\n }", "title": "" }, { "docid": "2447f374d28cebc7fee5b14f9590b72e", "score": "0.69161934", "text": "private void attemptLogin() {\n\n // Reset errors.\n mUserNameView.setError(null);\n mPasswordView.setError(null);\n\n // Store values at the time of the login attempt.\n String username = mUserNameView.getText().toString();\n String password = mPasswordView.getText().toString();\n\n boolean cancel = false;\n View focusView = null;\n\n // Check for a valid password, if the user entered one.\n if (TextUtils.isEmpty(password)) {\n mPasswordView.setError(getString(R.string.error_field_required));\n focusView = mPasswordView;\n cancel = true;\n }\n\n // Check for a valid username.\n if (TextUtils.isEmpty(username)) {\n mUserNameView.setError(getString(R.string.error_field_required));\n focusView = mUserNameView;\n cancel = true;\n }\n\n if (cancel) {\n focusView.requestFocus();\n } else {\n showProgress();\n FetLifeApiIntentService.startApiCall(this, FetLifeApiIntentService.ACTION_APICALL_LOGON_USER, username, password, Boolean.toString(passwordPreferenceCheckBox.isChecked()));\n }\n }", "title": "" }, { "docid": "3704ea1940724a6ae218ab0feeab68fb", "score": "0.691362", "text": "public static Result login(){\n\t\treturn ok(login.render(Form.form(Login.class)));\n\t}", "title": "" }, { "docid": "59e4875e7bcf5c219fb4743bbf5f7ef5", "score": "0.6910032", "text": "public void login(String userName,String password){\n\n login.navigateToLogin();\n login.enterUser(userName);\n login.enterPassword(password);\n login.clickSubmit();\n waitForPageLoad(20);\n\n }", "title": "" }, { "docid": "3f24f5dd00719d27621da6d08b338dea", "score": "0.6903429", "text": "public void loginAs(User user) throws Exception;", "title": "" }, { "docid": "4c3d616783587e1cfc87f7279e4eeb3c", "score": "0.6901021", "text": "public String Login(String usuario, String clave);", "title": "" }, { "docid": "1e1c02291ba8aad000c7bddbffa34ff4", "score": "0.6900915", "text": "@Override\n public void run() {\n gotoLogin();\n }", "title": "" }, { "docid": "4989ae392d39bfdd2de09c12a1f5bebe", "score": "0.68990755", "text": "public void login(){\n DbHelper dbHelper = new DbHelper(this);\n String user = et_user.getText().toString();\n String passwd = et_passwd.getText().toString();\n if(dbHelper.validateUser(user, passwd)){\n Toast.makeText(getApplicationContext(), \"Anmeldung erfolgreich\", Toast.LENGTH_SHORT).show();\n safeUser(user);\n Intent intent = new Intent(this, Evaluation.class);\n startActivity(intent);\n this.finish();\n }\n else{\n Toast.makeText(getApplicationContext(), \"Ungültige Zugangsdaten\", Toast.LENGTH_SHORT).show();\n }\n\n }", "title": "" }, { "docid": "232cd0eaee6af0880d596dc85f7a48f3", "score": "0.6897203", "text": "private void loginTask() {\n\n\t\tString password = passwordET.getText().toString();\n\t\tString encryptPassword = GlobalMethods.makeMD5(password);\n\t\t\n\t\ttime_stamp = GlobalMethods.getTimestamp();\n\n\t\tmjs = new MakeJsonString();\n\t\tString jString = mjs.forLogin(context, usernameET.getText().toString(), encryptPassword, time_stamp);\n\t\tString[] loginData = { jString, url_profile_login };\n\n\t\tnew LoginTask().execute(loginData);\n\t}", "title": "" }, { "docid": "42bbc1c178883ccc0077e468b2d340a6", "score": "0.68969643", "text": "public login() {\n\t\tsuper(null);\n\t}", "title": "" }, { "docid": "4f96dbb98a004cd30a30a34af8244bc4", "score": "0.6895341", "text": "public login() {\n initComponents();\n showdate();\n showtime();\n }", "title": "" }, { "docid": "3a28eb05d8ae243c3def94bb7b2779b9", "score": "0.6894075", "text": "@Override\r\n\tpublic UserInfo login(String userName, String pwd) {\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "97de4ca3a17550e14b8355fa0c5f0dc0", "score": "0.68909705", "text": "public void login() {\n // maar roept wel eerst de login yut User aan\n super.login();\n\n System.out.println(\"Admin rechten toegevoegd\");\n }", "title": "" }, { "docid": "64f63b358aa1e24aed14b1982e9abea6", "score": "0.6887103", "text": "@Override\r\n\t\tpublic void login(String arg0, String arg1) throws ServletException {\n\t\t\t\r\n\t\t}", "title": "" }, { "docid": "df796a97c95d7e479be39ca00bf4313e", "score": "0.6868644", "text": "private void logIn() {\n// gi.findElement(TAG_INPUT, ATTRIBUTE_NAME, Marker.LOGIN_MAIL_NAME).sendKeys(instance.universeEntity.login);\n// gi.findElement(TAG_INPUT, ATTRIBUTE_NAME, Marker.LOGIN_PASSWORD_NAME).sendKeys(instance.universeEntity.pass);\n// gi.findElement(TAG_BUTTON, ATTRIBUTE_TYPE, VALUE_SUBMIT).click();\n\n// gi.findText(\"Login\").click();\n gi.findElement(TAG_INPUT, \"id\", \"QA_SignIn_Email_Input\").sendKeys(instance.universe.login);\n gi.findElement(TAG_BUTTON, \"id\", \"QA_SignIn_Next_Button\").click();\n Utils.secondsToSleep(2L);\n\n\n gi.findElement(TAG_INPUT, \"id\", \"QA_SignIn_Password_Input\").sendKeys(instance.universe.pass);\n gi.findElement(TAG_BUTTON, \"id\", \"QA_SignIn_SignIn_Button\").click();\n Utils.secondsToSleep(2L);\n\n //chooseServer\n webDriver.get(\"https://lobby.ogame.gameforge.com/pl_PL/accounts\"); //gi.clickText(Test.PLAY_TEXT);\n gi.doubleClickText(instance.universe.name);\n\n isLoggedIn = true;\n }", "title": "" }, { "docid": "2530771065b6e9952739bc421b5dc0cc", "score": "0.68654567", "text": "@RequiresApi(api = Build.VERSION_CODES.N)\n public void login() throws JSONException {\n Log.d(TAG, getResources().getString(R.string.login));\n\n if (!validate()) {\n onLoginFailed();\n return;\n }\n\n _loginButton.setEnabled(false);\n\n final ProgressDialog progressDialog = new ProgressDialog(LoginActivity.this,\n ThemeOverlay_AppCompat_Dark);\n progressDialog.setIndeterminate(true);\n progressDialog.setMessage(getResources().getString(R.string.authenticating));\n progressDialog.show();\n\n String email = _emailText.getText().toString();\n String password = Utils.encrypt_password(_passwordText.getText().toString());\n\n // Create JSON Object\n JSONObject json = new JSONObject();\n try {\n json.put(\"email\", email);\n json.put(\"pwd\", password);\n } catch (JSONException e) {\n e.printStackTrace();\n }\n\n // Execute POST request\n JSONObject response_json = HttpConnector.post(BACKEND_URL, json.toString());\n String response_code = response_json.get(\"status\").toString();\n\n new android.os.Handler().postDelayed(\n () -> {\n // If response if OK\n if (response_code.equals(getResources().getString(R.string.successfull_code))) {\n String fname = null;\n try {\n fname = response_json.get(\"fname\").toString();\n } catch (JSONException e) {\n e.printStackTrace();\n }\n onLoginSuccess(fname);\n progressDialog.dismiss();\n } else {\n onLoginFailed();\n progressDialog.dismiss();\n }\n }, 2000);\n }", "title": "" }, { "docid": "eb0286ce42351da881b4dd0db71feed9", "score": "0.6855125", "text": "private void attemptLogin() {\n // Reset errors.\n mEmailView.setError(null);\n mPasswordView.setError(null);\n\n // Store values at the time of the login attempt.\n final String email = mEmailView.getText().toString();\n String password = mPasswordView.getText().toString();\n\n boolean cancel = false;\n View focusView = null;\n\n // Check for a valid password\n if (TextUtils.isEmpty(password) || !InputValidator.isPasswordValid(password)) {\n mPasswordView.setError(getString(R.string.error_invalid_password));\n focusView = mPasswordView;\n cancel = true;\n }\n\n // Check for a valid email address.\n if (TextUtils.isEmpty(email)) {\n mEmailView.setError(getString(R.string.error_field_required));\n focusView = mEmailView;\n cancel = true;\n } else if (!InputValidator.isEmailValid(email)) {\n mEmailView.setError(getString(R.string.error_invalid_email));\n focusView = mEmailView;\n cancel = true;\n }\n\n if (cancel) {\n // There was an error; don't attempt login and focus the first\n // form field with an error.\n focusView.requestFocus();\n } else {\n // Show a progress spinner\n progressDialog.show();\n\n Call<LoginResponse> call = App.getLoginService().login(new LoginRequest(email, password));\n call.enqueue(new Callback<LoginResponse>() {\n @Override\n public void onResponse(Response<LoginResponse> response, Retrofit retrofit) {\n LoginResponse loginResponse = response.body();\n\n if(loginResponse != null) {\n String accessToken = loginResponse.getAccessToken();\n sessionManager.createLoginSession(email, accessToken);\n Toast.makeText(getBaseContext(), accessToken, Toast.LENGTH_LONG).show();\n Intent i = new Intent(getApplicationContext(), MainActivity.class);\n startActivity(i);\n finish();\n\n } else {\n Toast.makeText(getBaseContext(), \"An error has occured (\" + response.code() + \")\", Toast.LENGTH_LONG).show();\n }\n\n progressDialog.dismiss();\n }\n\n @Override\n public void onFailure(Throwable t) {\n Toast.makeText(getBaseContext(), \"An error has occured: \" + t.getMessage(), Toast.LENGTH_LONG).show();\n progressDialog.dismiss();\n }\n });\n }\n }", "title": "" }, { "docid": "d9886afc2e8704f31a86248ea528429c", "score": "0.68518496", "text": "private void loginConsola(CallbackJugadorInterface objCallback) {\n\t\tString password;\n\t\tScanner teclado = new Scanner (System.in);\n\t\t\n\t\tSystem.out.println(\"\\nLOGIN\\n\");\n\t\tSystem.out.println(\"Introduzca su nombre\");\n\t\tthis.setNombre(teclado.next());\n\t\tSystem.out.println(\"Por favor \" + this.getNombre() + \" introduzca su contraseña\");\n\t\tpassword = teclado.next();\n\t\ttry {\t\n\t\t\tif (this.servAutenticacionJ.login(nombre, password, objCallback)) {\n\t\t\t\tthis.servGestorJ = (ServicioGestorInterface) Naming.lookup(URL_Gestor);\n\t\t\t\tmenuInterfazJugador(objCallback);\t\t\t\n\t\t\t} else {\n\t\t\t\tmenuInicial(objCallback);\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"Fallo al conectar para realizar el login. Excepción\" +e);\n\t\t}\n\t}", "title": "" }, { "docid": "b183af987dcc62787199232e2eda4f83", "score": "0.6850938", "text": "private void logIn() throws IOException {\n\n String response = in.readLine();\n login = new Login(response);\n\n }", "title": "" }, { "docid": "853cb205795816a808c2be1b1f89037b", "score": "0.68484527", "text": "private static void loginAuth(LoginAC_Beta lp) {\n // login to auth centre\n String[] account = getAccount();\n CurrentState.getDriver().get(account[0]);\n lp.setUserName(IAutoconst.email);\n lp.setPassword(IAutoconst.password);\n lp.clickLogin();\n System.out.println(\"logged to Auth center\"); \n }", "title": "" }, { "docid": "8d93858de49beffc3f608c4e8f7a18cd", "score": "0.6844295", "text": "protected Void call() throws Exception\r\n {\n log.info(\"Logging in as user '{}'\", username);\r\n securityService.login(username, password);\r\n return null;\r\n }", "title": "" }, { "docid": "d4a2e934e425fdee9f44e1d95b1500c7", "score": "0.6841325", "text": "public String doLogin() {\n\n\t\t// Return input by default :\n String vResult = ActionSupport.INPUT;\n \n \n\t\t// Redirect if user already logged in :\n\t\tif (this.userSession.containsKey(USER) && null != this.userSession.get(USER)) {\n\t\t\t\n\t\t\treturn ActionSupport.SUCCESS; \n\t\t} \n\t\t\n\t\t\n \n // Check if we have password and userBean submitted :\n if (userBean != null && userBean.getPseudo() != null && !StringUtils.isAllEmpty(userBean.getPseudo(), password)) {\n try {\n \t\n \tSystem.out.println(\"Retrieving user with pseudo \" + userBean.getPseudo());\n \t\n Utilisateur vUtilisateur\n = managerFactory.getUtilisateurManager()\n .getUtilisateur(userBean.getPseudo());\n\n this.addActionError(\"You are already there !\");\n \n } catch (NotFoundException pEx) {\n //this.addActionError(\"Identifiant ou mot de passe invalide !\");\n\n \t/* Perfect we are all good we should continue now :*/\n \n System.out.println(\"Adding user to session\");\n \n try {\n \tmanagerFactory.getUtilisateurManager().addUtilisateur(userBean);\n\t\t\t\t} catch (FunctionalException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n \n // Ajout de l'utilisateur en session\n this.userSession.put(USER, userBean);\n \n vResult = ActionSupport.SUCCESS; \t\n \t\n }\n }\n \n return vResult;\n\t}", "title": "" }, { "docid": "e105bed5763911463dcf227be99faf7b", "score": "0.6836769", "text": "private void attemptLogin ()\n\t\t\t{\n\n\t\t\t\t// Reset errors.\n\t\t\t\tmEmailView.setError (null);\n\t\t\t\tmPasswordView.setError (null);\n\n\t\t\t\t// Store values at the time of the login attempt.\n\t\t\t\tString username = mEmailView.getText ().toString ();\n\t\t\t\tString password = mPasswordView.getText ().toString ();\n\n\t\t\t\tboolean cancel = false;\n\t\t\t\tView focusView = null;\n\n\t\t\t\t// Check for a valid password, if the user entered one.\n\t\t\t\tif (TextUtils.isEmpty (password))\n\t\t\t\t\t{\n\t\t\t\t\t\tmPasswordView.setError (getString (R.string.error_invalid_password));\n\t\t\t\t\t\tfocusView = mPasswordView;\n\t\t\t\t\t\tcancel = true;\n\t\t\t\t\t}\n\n\t\t\t\t// Check for a valid email address.\n\t\t\t\tif (TextUtils.isEmpty (username))\n\t\t\t\t\t{\n\t\t\t\t\t\tmEmailView.setError (getString (R.string.error_field_required));\n\t\t\t\t\t\tfocusView = mEmailView;\n\t\t\t\t\t\tcancel = true;\n\t\t\t\t\t}\n\n\t\t\t\tif (cancel)\n\t\t\t\t\t{\n\t\t\t\t\t\t// There was an error; don't attempt login and focus the first\n\t\t\t\t\t\t// form field with an error.\n\t\t\t\t\t\tfocusView.requestFocus ();\n\t\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\t// Show a progress spinner, and kick off a background task to\n\t\t\t\t\t\t// perform the user login attempt.\n\t\t\t\t\t\tshowProgress (true);\n\n\t\t\t\t\t\tHttpClient hc = new HttpClient ();\n\t\t\t\t\t\ttry\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tResponse r = (Response) hc.request (hc.login (new UserCredential (username, password))).get ();\n\t\t\t\t\t\t\t\t//r.dispatch (LoginActivity.this);\n\t\t\t\t\t\t\t\tif (r.getKey ())\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tModel.getInstance ().setUser (r.toObj (User.class));\n\t\t\t\t\t\t\t\t\t\tSharedPreferences.Editor editor = getSharedPreferences (\"usr_pref\", MODE_PRIVATE).edit ();\n\t\t\t\t\t\t\t\t\t\teditor.putString (\"user\", r.getValue ());\n\t\t\t\t\t\t\t\t\t\teditor.apply ();\n\t\t\t\t\t\t\t\t\t\tstartActivity (new Intent (LoginActivity.this, BookActivity.class));\n\t\t\t\t\t\t\t\t\t\tfinish ();\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\telse r.dispatch (LoginActivity.this);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\tcatch (ExecutionException | InterruptedException e)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\te.printStackTrace ();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\tshowProgress (false);\n\t\t\t\t\t}\n\t\t\t}", "title": "" }, { "docid": "b1d846a7b38dd835147e842830f178f8", "score": "0.6836166", "text": "@Override\r\n\tpublic void Login() {\n\t\t_engine.SetConnectionProperty(_view.GetConnectionProperty());\r\n\t\t_engine.Login();\r\n\t}", "title": "" }, { "docid": "ca69e23dd3b8f8700f44f8390ccdeba3", "score": "0.6834834", "text": "public static void invokeLogin() {\n log = new logIn();\n log.setLocationRelativeTo(null);\n home.setVisible(false);\n log.setVisible(true);\n }", "title": "" }, { "docid": "2424586dfb63a481be0915b6c57c2ff9", "score": "0.68288505", "text": "public boolean login() {\n\n\t\taction.enterData(loginPage.userName, config.getUserName());\n\t\tlogger.info(\"Entered \" + config.getUserName() + \" in username field.\");\n\t\taction.enterData(loginPage.password, config.getPassword());\n\t\tlogger.info(\"Entered \" + config.getPassword() + \" in password field.\");\n\t\taction.clickElement(loginPage.submitButton);\n\t\tlogger.info(\"\");\n\t\tif (action.getPageTitle().equals(\"Home - Insta HMS\")) {\n\t\t\tlogger.info(\"\");\n\t\t\treturn true;\n\t\t}\n\n\t\telse {\n\t\t\tlogger.info(\"\");\n\t\t\treturn false;\n\t\t}\n\n\t}", "title": "" }, { "docid": "a30d3f27942186c92ea289e72ebf3fb7", "score": "0.6824293", "text": "public static boolean login(final Context context) {\n try {\n cookieString = JioFiPreferences.getInstance().loadCookieString(context);\n if (cookieString != null) {\n return true;\n }\n }\n catch (NullPointerException ex) {\n return false;\n }\n\n\n String urlString = getUrlString(LOGIN_URL_ID);\n URL url = getURL(LOGIN_URL_ID);\n\n String response;\n\n try {\n Document loginDocument = Jsoup.connect(urlString).get();\n String csrfToken = loginDocument.select(TOKEN_INPUT_CSS_SELECTOR)\n .attr(VALUE_ATTRIBUTE_KEY);\n\n if (csrfToken == null || csrfToken.equals(\"\")) {\n return false;\n }\n\n Map<String, String> params = getLoginParams(context, csrfToken);\n response = postRequest(url, params, null);\n\n boolean loginSuccess = response != null &&\n !response.contains(\"Login Fail\") &&\n !response.contains(\"User already logged in !\");\n\n if (response != null) {\n if (response.contains(\"Login Fail\")) {\n authenticationError = true;\n Log.e(TAG, \"Login Failed, wrong username or pass !\");\n JioFiPreferences.getInstance().setLoginState(context, false);\n return false;\n }\n if (response.contains(\"User already logged in !\")) {\n authenticationError = true;\n Log.e(TAG, \"User already logged in !\");\n return false;\n }\n }\n\n if (loginSuccess) {\n int startIndex = response.lastIndexOf(\"ksession\") + 12;\n cookieString = response.substring(startIndex, startIndex + 32);\n\n Log.v(TAG, \"cookie \" + cookieString);\n authenticationError = false;\n\n // save the current cookie\n JioFiPreferences.getInstance().saveLoginCookie(context, cookieString);\n } else {\n Log.e(TAG, \"Login Failed !\");\n return false;\n }\n\n return true;\n } catch (IOException e) {\n Log.e(TAG, \"IOException, Jsoup connect: \" + e.getMessage());\n return false;\n }\n }", "title": "" }, { "docid": "40e16b17df92f4fffe7f2b331b82c08e", "score": "0.68228257", "text": "public void login()\n throws NetworkException;", "title": "" }, { "docid": "2cd7a551ee72bf09817cfae623193775", "score": "0.6820576", "text": "public void login(String userName, String password, int connectionID) throws Exception;", "title": "" }, { "docid": "42b2b52b289be57b2965d52c294c039b", "score": "0.68157446", "text": "@Override\n public void onClick(View v) {\n login(\"default\");\n }", "title": "" }, { "docid": "dfdcf98d72fd344b5381c9834ec3a4ec", "score": "0.68026954", "text": "private void handleLogin() {\n startRotateRefresh();\n\n String username = SecurePrefManager.with(this)\n .get(\"login_username\")\n .defaultValue(\"\")\n .go();\n\n String password = SecurePrefManager.with(this)\n .get(\"password\")\n .defaultValue(\"\")\n .go();\n\n\n if (\"\".equals(username)) {\n // Show dialog when we dont have an username\n loginDialog();\n } else {\n // Fetch usage, when credentials are set\n ChoozzeApplication.bus.post(new FetchUsageEvent(username, password));\n }\n }", "title": "" }, { "docid": "fe8f9c9b9b1fd0423e5b4d05f4748e65", "score": "0.6795229", "text": "protected SessionAutoLogin() {}", "title": "" }, { "docid": "55d79eb5b391c31b48f517240ccf85b5", "score": "0.6793549", "text": "public static Result authenticate() {\n Form<Login> loginForm = form(Login.class).bindFromRequest();\n Logger.info(\"ApplicationAuthenticate\"+loginForm.toString());\n Logger.info(\"ApplicationAuthenticate\"+loginForm.data().toString());\n if(loginForm.hasErrors()) {\n return badRequest(login.render(loginForm));\n } else {\n String name = loginForm.get().name;\n session(\"name\", name);\n Logger.info(session(\"name\"));\n return redirect(\n routes.GlobalOrderController.globalOrderList()\n );\n }\n }", "title": "" }, { "docid": "7e283f9122d673abd07dece9f88f09a1", "score": "0.6784418", "text": "public String login1()\n {\n \tboolean a = conseillerService.estValide(login, password);\n if(a == true)\n {\n \tconseiller = conseillerService.lireConseillerParLogin(login);\n \tsetClientList(clientService.lireClientParConseiller(conseiller));\n return \"conseiller/clients\";\n }\n else\n {\n FacesContext context = FacesContext.getCurrentInstance();\n context.addMessage(\"login\", new FacesMessage(\"L'identifiant ou le mot de passe saisi est invalide\"));\n return \"login\";\n }\n }", "title": "" }, { "docid": "e5311aba7c2a40b9f993a5a5167d3179", "score": "0.67769027", "text": "public Client login(String username,String password);", "title": "" }, { "docid": "18b7a5838f42bbd8eadea54e772d9e73", "score": "0.67744035", "text": "public void login(){\n String email = etEmail.getText().toString();\n String pass = etPass.getText().toString();\n\n sharedpreferences = getSharedPreferences(MyPREFERENCES, Context.MODE_PRIVATE);\n\n // If user successfully logs in, the user is brought to the Favourites screen (FavoritesActivity)\n if(db.getUser(email,pass)){\n session.setLoggedin(true);\n SharedPreferences.Editor editor = sharedpreferences.edit();\n editor.putString(\"EMAIL\", email);\n editor.commit();\n startActivity(new Intent(this, FavoritesActivity.class));\n finish();\n\n }else{\n Toast.makeText(getApplicationContext(), \"Wrong Email/Password\",Toast.LENGTH_SHORT).show();\n }\n }", "title": "" }, { "docid": "bb88415e9c7b7a0c01061e287bbdd497", "score": "0.67715126", "text": "private void attemptLogin() {\r\n if (mAuthTask != null) {\r\n return;\r\n }\r\n\r\n //LOGIN VAI SER SO POR USERNAME POR ENQUANTO\r\n\r\n // Reset errors.\r\n mEmailView.setError(null);\r\n mUsernameView.setError(null);\r\n mPasswordView.setError(null);\r\n\r\n // Store values at the time of the login attempt.\r\n String email = mEmailView.getText().toString(); //Vai ser null pq so vai pelo username\r\n String username = mUsernameView.getText().toString();\r\n String password = mPasswordView.getText().toString();\r\n\r\n boolean cancel = false;\r\n View focusView = null;\r\n\r\n // Check for a valid password, if the user entered one.\r\n if (!TextUtils.isEmpty(password) && !isPasswordValid(password)) {\r\n mPasswordView.setError(getString(R.string.error_invalid_password));\r\n focusView = mPasswordView;\r\n cancel = true;\r\n }\r\n\r\n // Check for a valid email address.\r\n// if (TextUtils.isEmpty(email)) {\r\n// mEmailView.setError(getString(R.string.error_field_required));\r\n// focusView = mEmailView;\r\n// cancel = true;\r\n// } else if (!isEmailValid(email)) {\r\n// mEmailView.setError(getString(R.string.error_invalid_email));\r\n// focusView = mEmailView;\r\n// cancel = true;\r\n// }\r\n\r\n if (cancel) {\r\n // There was an error; don't attempt login and focus the first\r\n // form field with an error.\r\n focusView.requestFocus();\r\n } else {\r\n // Show a progress spinner, and kick off a background task to\r\n // perform the user login attempt.\r\n showProgress(true);\r\n //vai ser 0 pq nao ta criando um novo user e so logando\r\n mAuthTask = new AuthTask(email, username, password, 0);\r\n mAuthTask.execute((Void) null);\r\n }\r\n }", "title": "" }, { "docid": "1fcac106fafe06866efb3a8e0bbf0467", "score": "0.6770347", "text": "public void login(User user);", "title": "" }, { "docid": "0b62cc02fe027f700c8a194f82340249", "score": "0.6769268", "text": "public User login(String login, String password)throws IncorrectCredentialsException, TimeoutException;", "title": "" }, { "docid": "f378e11956868fa221a758a6084dcfd3", "score": "0.6766881", "text": "public void login(LoginContext loginContext) throws LoginException {\n }", "title": "" }, { "docid": "e464143e50b0f9f6aa944ad17a01c29f", "score": "0.6756667", "text": "public void attemptLogin() {\n\n editTextEmail.setError(null);\n editTextPassword.setError(null);\n\n if(validationForm.validate()) {\n String email = editTextEmail.getText().toString();\n String password = editTextPassword.getText().toString();\n\n textViewMessageView.setText(R.string.login_progress_signing_in);\n hideKeyboard();\n\n showProgress(true);\n\n new RequestTokenAsyncTask(executor).execute(email, password);\n } else {\n showProgress(false);\n }\n }", "title": "" }, { "docid": "942a86b3045db12dedb1d4fcae82e7e3", "score": "0.6755583", "text": "private static boolean loginUser(){\n \t\n \tHttpResponse response = Backend.get(Backend.server + \"/loginUser?auth=\" + username + \"&port=\" + port);\n \tif(response.getStatusLine().getStatusCode() != 200){\n \t\treturn false;\n \t}\n \treturn true;\n }", "title": "" }, { "docid": "23d03b89fcd9cb695a2d84146a2a088e", "score": "0.67547023", "text": "private void attemptLogin() {\n if (mAuthTask != null) {\n return;\n }\n\n // Reset errors.\n mEmailView.setError(null);\n mPasswordView.setError(null);\n\n // Store values at the time of the login attempt.\n String email = mEmailView.getText().toString();\n String password = mPasswordView.getText().toString();\n\n boolean cancel = false;\n View focusView = null;\n\n // Check for a valid password, if the user entered one.\n if (!TextUtils.isEmpty(password) && !isPasswordValid(password)) {\n mPasswordView.setError(getString(hmf.com.project.hmfcustomer.R.string.error_invalid_password));\n focusView = mPasswordView;\n cancel = true;\n }\n\n // Check for a valid email address.\n if (TextUtils.isEmpty(email)) {\n mEmailView.setError(getString(hmf.com.project.hmfcustomer.R.string.error_field_required));\n focusView = mEmailView;\n cancel = true;\n } else if (!isValidMobile(email)) {\n mEmailView.setError(getString(hmf.com.project.hmfcustomer.R.string.error_invalid_email));\n focusView = mEmailView;\n cancel = true;\n }\n\n if (cancel) {\n // There was an error; don't attempt login and focus the first\n // form field with an error.\n focusView.requestFocus();\n } else {\n // Show a progress spinner, and kick off a background task to\n // perform the user login attempt.\n showProgress(true);\n mAuthTask = new UserLoginTask(email, password);\n if (new ConnectionDetector(this).isConnectedToInternet())\n mAuthTask.execute((Void) null);\n else\n\n Toast.makeText(this, \"you are in Offline\", Toast.LENGTH_SHORT).show();\n // Snackbar.make(getCurrentFocus(), \"you are in Offline\", Snackbar.LENGTH_INDEFINITE).show();\n }\n }", "title": "" } ]
25197b4cf814864ecd440f23b9149cb3
TODO Autogenerated method stub
[ { "docid": "8a07a225cc814291faf68bc7dba6a1f7", "score": "0.0", "text": "@Override\r\n\tpublic void onResume() {\n\t\tsuper.onResume();\r\n\t\tif(!AccountUtils.getAccounts(getActivity())){\r\n\t\t\tstartActivity(new Intent(getActivity(), Login.class).addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP | Intent.FLAG_ACTIVITY_SINGLE_TOP | Intent.FLAG_ACTIVITY_NEW_TASK));//call fragmentActivity\t\t\t\t\r\n\t\t\tgetActivity().overridePendingTransition(R.animator.anim_in_pop, R.animator.anim_out_pop);\r\n\t\t\tgetActivity().finish();\t\t\t\r\n\t\t}else{\r\n\t\t\tLog.d(Constant.TAG, \"Exist Account\");\r\n\t\t}\r\n\t}", "title": "" } ]
[ { "docid": "74a4209c94e08d9f5eb0b60e580f5e04", "score": "0.68867725", "text": "@Override\r\n\tpublic void comit() {\n\t\t\r\n\t}", "title": "" }, { "docid": "b645eacb329adc01490ab5013a6c4f7f", "score": "0.67295986", "text": "@Override\n\t\t\tpublic void perfom() {\n\n\t\t\t}", "title": "" }, { "docid": "e3110a393bd4b870b4055aa9ed6efd87", "score": "0.6602715", "text": "@Override\n\tpublic void attaquer() {\n\t\t\n\t}", "title": "" }, { "docid": "0b5b11f4251ace8b3d0f5ead186f7beb", "score": "0.65686274", "text": "@Override\n\tpublic void comer() {\n\t\t\n\t}", "title": "" }, { "docid": "534c466f09845319b9edaf959a891c09", "score": "0.65467274", "text": "@Override\r\n\tpublic void debriyaj() {\n\t\t\r\n\t}", "title": "" }, { "docid": "21d672149bbdd06ba8646ddf7f7f41d1", "score": "0.65211904", "text": "@Override\n\tprotected void descansar() {\n\t\t\n\t}", "title": "" }, { "docid": "21d672149bbdd06ba8646ddf7f7f41d1", "score": "0.65211904", "text": "@Override\n\tprotected void descansar() {\n\t\t\n\t}", "title": "" }, { "docid": "5f8d37aee09bc1e9959f768d6eb0183c", "score": "0.6481321", "text": "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "title": "" }, { "docid": "5f8d37aee09bc1e9959f768d6eb0183c", "score": "0.6481321", "text": "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "title": "" }, { "docid": "80762458b54fe841d7e4f99e4de13990", "score": "0.6464543", "text": "@Override\n\tprotected void respirar() {\n\t\t\n\t}", "title": "" }, { "docid": "80762458b54fe841d7e4f99e4de13990", "score": "0.6464543", "text": "@Override\n\tprotected void respirar() {\n\t\t\n\t}", "title": "" }, { "docid": "2dcda7054abb2ac593302e39a2284f12", "score": "0.64569044", "text": "@Override\n\tprotected void getExras() {\n\n\t}", "title": "" }, { "docid": "4541b4eaa2b2871ab4c98fc297f4dede", "score": "0.6389071", "text": "@Override\n\tpublic void descer() {\n\t\t\n\t}", "title": "" }, { "docid": "f37aebdfc461c1965abd4e2afbc83532", "score": "0.6359046", "text": "private void apparence()\r\n\t\t{\r\n\t\t//rien\r\n\t\t}", "title": "" }, { "docid": "0aeb31da8ebac864ecfc84df5be728c9", "score": "0.6342541", "text": "@Override\r\n\tpublic void koleos() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2e8b0d8bb9fd62c1559ca4b277c6505c", "score": "0.6332389", "text": "@Override\n\tpublic void 이체() {\n\t\t\n\t}", "title": "" }, { "docid": "83c17378086426b4324c4ea8c160e29d", "score": "0.626611", "text": "@Override\r\n\tpublic void provjeri() {\n\r\n\t}", "title": "" }, { "docid": "1f7c82e188acf30d59f88faf08cf24ac", "score": "0.6237362", "text": "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "title": "" }, { "docid": "1f7c82e188acf30d59f88faf08cf24ac", "score": "0.6237362", "text": "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "title": "" }, { "docid": "b14cffacd51e1ce2462cbb7320ae9815", "score": "0.6235278", "text": "@Override\n\tprotected void preInilize() {\n\t\t\n\t}", "title": "" }, { "docid": "4a318c00e2da3a27b638b396481252df", "score": "0.621979", "text": "@Override\r\n\tpublic void herbivore() {\r\n\t\t// TODO Auto-generated method stub\r\n\t\t\r\n\t}", "title": "" }, { "docid": "3e556c0f03a7d2509fe80fc61a60a369", "score": "0.62114227", "text": "@Override\n\t\t\t\tpublic void init() {\n\t\t\t\t\t\n\t\t\t\t}", "title": "" }, { "docid": "c612bcadafd393d086f44fd19558a8be", "score": "0.61539394", "text": "@Override\r\n\tpublic void inicialize() {\n\t\t\r\n\t}", "title": "" }, { "docid": "d3f774182d4215967c63b04db821b349", "score": "0.6145912", "text": "@Override\r\n\tpublic void munul() {\n\t\t\r\n\t}", "title": "" }, { "docid": "a6e9388ba580a030c48b527221f8e81a", "score": "0.6141126", "text": "@Override\n\tpublic void actuar() {\n\t\t\n\t}", "title": "" }, { "docid": "314ae73dd9b4e0fd24e41e58c68718e8", "score": "0.6126155", "text": "@Override\r\n\tpublic void conducir() {\n\t\t\r\n\t}", "title": "" }, { "docid": "50eb8922149b6987def0b49575615f5e", "score": "0.61245364", "text": "@Override\n protected void getExras() {\n }", "title": "" }, { "docid": "03dec34dcb010fb4f8aaffffeb038a5c", "score": "0.6122166", "text": "@Override\r\n public void atacar() {\n \r\n }", "title": "" }, { "docid": "7dc226c2dd73339594b9a5d78d538a9b", "score": "0.6068579", "text": "public void soigner() {\n\t\t\n\t}", "title": "" }, { "docid": "bdc1683df7d1d6b2d988cd3acab4903e", "score": "0.60398114", "text": "public void mo5201a() {\n }", "title": "" }, { "docid": "9e3b9f67f6df4ff7587902e76540dbce", "score": "0.60307544", "text": "@Override\n\tpublic void nadar() {\n\t}", "title": "" }, { "docid": "5f1811a241e41ead4415ec767e77c63d", "score": "0.6025444", "text": "@Override\n\tprotected void init() {\n\n\t}", "title": "" }, { "docid": "5f1811a241e41ead4415ec767e77c63d", "score": "0.6025444", "text": "@Override\n\tprotected void init() {\n\n\t}", "title": "" }, { "docid": "b1cf16017c8057c0255a9ad368ecaee5", "score": "0.6017447", "text": "@Override\r\n\tprotected void init() {\n\r\n\t}", "title": "" }, { "docid": "7c2f530eef910ca7368316b6425dbb09", "score": "0.60089034", "text": "@Override\n\t\t\tpublic void test12() {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "a8466bdc481ff3361d07776f72a6ad5a", "score": "0.60056853", "text": "@Override\n\tpublic void fliegen() {\n\t\t\n\t}", "title": "" }, { "docid": "4e2bc6086cff0dc11f4d0ca1a0f610c2", "score": "0.60052466", "text": "@Override\r\n\tpublic void tired() {\n\t\t\r\n\t}", "title": "" }, { "docid": "bcc647eaea257a78c8d339a2668f39eb", "score": "0.59953445", "text": "@Override\r\n\tpublic void thirsty() {\n\t\t\r\n\t}", "title": "" }, { "docid": "8a2f3b349a25374b05205f9955000cb0", "score": "0.59933674", "text": "public void omzet(){\n\t}", "title": "" }, { "docid": "4d0d3ada3b77658f4e45ede4fd37399e", "score": "0.59840435", "text": "@Override\n\t\t\tvoid fazTal() {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t}", "title": "" }, { "docid": "690c3795eb018aa9906a3ed189d8e3a0", "score": "0.5965588", "text": "@Override\n\tpublic void atacar() {\n\n\t}", "title": "" }, { "docid": "5fa8025455ce490980ad8cccfd13eea3", "score": "0.5963883", "text": "public void mo5201a() {\n }", "title": "" }, { "docid": "3f2920a75faf042f941c5de3f07f1cbc", "score": "0.59580034", "text": "@Override\n\tpublic void postInilize() {\n\t\t\n\t}", "title": "" }, { "docid": "573e777b1723411d46abc7892cb5caea", "score": "0.5933409", "text": "public void mo5608a() {\n }", "title": "" }, { "docid": "fb7e6b2a89843e694a13571c31377718", "score": "0.59090626", "text": "public void mo19849a() {\n }", "title": "" }, { "docid": "234aa77d9cf02b8617820e857e5304e4", "score": "0.58938795", "text": "public void comer(){\n\t\t\n\t}", "title": "" }, { "docid": "b9700791b625283953260f34cbaa3438", "score": "0.5879405", "text": "@Override\n public void visitEnd() {\n }", "title": "" }, { "docid": "ff2a26de6775216e86ea92e547fb9c42", "score": "0.5869516", "text": "@Override\n\tpublic void manobrar() {\n\t\t\n\t}", "title": "" }, { "docid": "4967494f628119c8d3a4740e09278944", "score": "0.5858707", "text": "@Override\r\n\tprotected void initData() {\n\r\n\t}", "title": "" }, { "docid": "5aa237d31e744d1e0729621e464fcfb2", "score": "0.5854053", "text": "@Override\r\n\tprotected void DataInit() {\n\r\n\t}", "title": "" }, { "docid": "4218376ad671a7e613b2d401e5484e2d", "score": "0.58539504", "text": "@Override\n\t\t\tpublic void accept(Visitor visitor) {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "2f3e7c4f4d0072a55c8e0187be049a27", "score": "0.58473253", "text": "public void mo9610b() {\n }", "title": "" }, { "docid": "e04f934fbe00df663fa9d5d545a1a729", "score": "0.5845961", "text": "@Override\n public void sporcuPuaniGoster() {\n\n }", "title": "" }, { "docid": "252960e025bfa106bbe3903b4e4cbd3c", "score": "0.58432287", "text": "public void mo35709a() {\n }", "title": "" }, { "docid": "c9fd6fa2969355fe1396f0967662f775", "score": "0.58328706", "text": "@Override\n\t\t\tpublic int defence() {\n\t\t\t\treturn 0;\n\t\t\t}", "title": "" }, { "docid": "087d8f1969faa21f6247025aedc8b4be", "score": "0.5826683", "text": "@Override\n\tpublic void faseRondas() {\n\t\t\n\t}", "title": "" }, { "docid": "164451c7abb6fff8ecb189a8f21fcd12", "score": "0.58159095", "text": "@Override\n\tpublic void init() {\n\t\n\n\t}", "title": "" }, { "docid": "b7e98de900f4657495e91d5ff4bd6bd6", "score": "0.58140445", "text": "@Override\r\n\tpublic void init(){\r\n\t}", "title": "" }, { "docid": "655a271d981b875feb8fbc679e1a4f87", "score": "0.5804755", "text": "public void mo9609a() {\n }", "title": "" }, { "docid": "8784a223ae524195b951c7522a3dc7dc", "score": "0.5794505", "text": "@Override\n\tprotected void createObject() {\n\n\t}", "title": "" }, { "docid": "2c61ed93c2e8a4e918b773dc3a2e7966", "score": "0.57887554", "text": "private void traiteCreerRegle() {\n\r\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "c6bc5d71695bfc44366c74f6f0fe2368", "score": "0.5771875", "text": "@Override\n\tvoid retoceder() {\n\t\t\n\t}", "title": "" }, { "docid": "a147e931a0b23fd21b8e6b39e13d9778", "score": "0.57693547", "text": "@Override\n\tprotected void alimentar() {\n\t\t\n\t}", "title": "" }, { "docid": "a147e931a0b23fd21b8e6b39e13d9778", "score": "0.57693547", "text": "@Override\n\tprotected void alimentar() {\n\t\t\n\t}", "title": "" }, { "docid": "6c897821a3b00faa6e582b1c5bd5b3c6", "score": "0.5768425", "text": "@Override\r\n\tpublic void direksiyon() {\n\t\t\r\n\t}", "title": "" }, { "docid": "24508ad049d3837bebf9e0a440e73dd1", "score": "0.5767707", "text": "@Override\n\tpublic void tomar() {\n\t\t\n\t}", "title": "" }, { "docid": "518a761521ca9f5cb8a8055b32b72cda", "score": "0.57589173", "text": "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "title": "" }, { "docid": "1ed144b4d2aead457255ab8ddb73ac57", "score": "0.57549745", "text": "@Override\r\n\tpublic void limpar() {\n\r\n\t}", "title": "" }, { "docid": "ebfe1bb4dd1c0618c0fad36d9f7674b4", "score": "0.57514423", "text": "@Override\n protected void initialize() {\n\n }", "title": "" }, { "docid": "2b918d595b2e03dbc4dff690dfae35e2", "score": "0.5750942", "text": "@Override\n\tpublic void getC() {\n\t\t\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.57491463", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.57491463", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.57491463", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.57491463", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57341826", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "c6e40448cb261fef3ee1fc3a1f5373f0", "score": "0.5732929", "text": "@Override\n\tpublic void operation() {\n\t\t\n\t}", "title": "" }, { "docid": "a937c607590931387a357d03c3b0eef4", "score": "0.5718783", "text": "@Override\n\tprotected void initialize() {\n\n\t}", "title": "" }, { "docid": "a937c607590931387a357d03c3b0eef4", "score": "0.5718783", "text": "@Override\n\tprotected void initialize() {\n\n\t}", "title": "" }, { "docid": "a937c607590931387a357d03c3b0eef4", "score": "0.5718783", "text": "@Override\n\tprotected void initialize() {\n\n\t}", "title": "" }, { "docid": "8e056894cd061aea767d71a9c1b43d97", "score": "0.5701457", "text": "@Override\n\tpublic void init(){\n\t}", "title": "" }, { "docid": "b2858312446172fa25a799c5367d2043", "score": "0.56931245", "text": "Smelting(){\r\n\r\n\t\t}", "title": "" }, { "docid": "01841f81ab35e62f2bd0f7128634a0ab", "score": "0.56905705", "text": "@Override\n\tpublic void laufen() {\n\t\t\n\t}", "title": "" }, { "docid": "79ad318e5d0ad6ee82877d05e89a4257", "score": "0.5686335", "text": "public void mo10094a() {\n }", "title": "" }, { "docid": "804a3cf5821b9c54fd66c69b0953e805", "score": "0.5676017", "text": "@Override\n\tprotected void operateDataRefer() {\n\n\t}", "title": "" }, { "docid": "c937f9289f415cfdd7aefc5d621d0867", "score": "0.567194", "text": "@Override\n protected void inicializar() {\n }", "title": "" }, { "docid": "179a686178b5933a94ef6b9a53f1ed98", "score": "0.5669961", "text": "@Override\n public void visitEnd() {\n super.visitEnd();\n }", "title": "" }, { "docid": "9c40b6fea6b82ca9a9a7d36b6c663636", "score": "0.56666464", "text": "@Override\r\n public void init() {\n\r\n }", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.56563133", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.56563133", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.56563133", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.56563133", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "a549c1e6bc27711b5c76bad3496de875", "score": "0.5647085", "text": "@Override\n\tpublic void faseInicializacion() {\n\t\t\n\t}", "title": "" } ]
78f9c1dd095f5b3137013b8d9b298258
Returns the string representation of the totalCurrency list. The presentation has a specific format. Elements are separated by '\n' (new line).
[ { "docid": "79e767f7cc39509e1315d9d790f8c361", "score": "0.0", "text": "public String TagListToString() {\n\t\tString out = \"\";\n\t\tif (tags.size() != 0) {\n\t\t\tout += tags.get(0).toString();\n\n\t\t\tfor (int i = 1; i < tags.size(); i++) {\n\t\t\t\tout += \"\\n\" + tags.get(i).toString();\n\t\t\t}\n\t\t} else {\n\t\t\tout = \"N/A\";\n\t\t}\n\t\treturn out;\n\t}", "title": "" } ]
[ { "docid": "713fda79b8d8afa1ca68052553b87ea0", "score": "0.7481737", "text": "public String currencySummary() {\n\t\tArrayList<Currency> currencyList = new ArrayList<Currency>();\n\t\tfor (int i = 0; i < getItems().size(); i++) {\n\t\t\tint load = 0;\n\t\t\tfor (int j = 0; j < currencyList.size(); j++) {\n\t\t\t\tif (getItems().get(i).getItemCurrency().getType()\n\t\t\t\t\t\t.equals(currencyList.get(j).getType())) {\n\t\t\t\t\tint c = currencyList.get(j).getAmount();\n\t\t\t\t\tcurrencyList.get(j).setAmount(c+ getItems().get(i).getItemCurrency().getAmount());\n\t\t\t\t\tload = 1;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (load == 0) {\n\t\t\t\tint m = getItems().get(i).getItemCurrency().getAmount();\n\t\t\t\tString type = getItems().get(i).getItemCurrency().getType();\n\t\t\t\tCurrency money = new Currency(type, m);\n\t\t\t\tcurrencyList.add(money);\n\t\t\t}\n\t\t}\n\t\tString summary = \"\";\n\t\tfor (int j = 0; j < currencyList.size(); j++) {\n\t\t\tsummary += currencyList.get(j).toString() + \"\\n\";\n\t\t}\n\t\treturn summary;\n\t}", "title": "" }, { "docid": "3db582f195e4239bdb52e8d0cf6906ed", "score": "0.6869863", "text": "public String getTotals() {\n\t\tTreeMap<String, Double> map = new TreeMap<String, Double>();\n\t\tString totals = new String();\n\t\t\n\t\tfor (ExpenseItem expense: getList()) {\n\t\t\tDouble originalValue = 0.0;\n\t\t\t\n\t\t\tif (map.containsKey(expense.getCurrency())) {\n\t\t\t\t// Retrieve originalValue if it exists\n\t\t\t\toriginalValue += map.get(expense.getCurrency());\n\t\t\t}\n\t\t\t\n\t\t\t// update map\n\t\t\tmap.put(expense.getCurrency(), originalValue + Double.parseDouble(expense.getAmount()));\n\t\t}\n\t\t\n\t\t// Create string of totals (currency : total)\n\t\tfor (String key : map.keySet()) {\n\t\t\ttotals += key + \" : \" + String.format(Locale.getDefault(), \"%.2f\", map.get(key)) + \"\\n\";\n\t\t}\n\t\t\n\t\treturn totals;\n\t}", "title": "" }, { "docid": "eb6759c10bca77d5a04e630c8f768b91", "score": "0.6838324", "text": "public String toString() {\r\n return this.currency + \" \" + this.amount;\r\n }", "title": "" }, { "docid": "bd6568ba8b2409ae710223bece0617f4", "score": "0.6799688", "text": "public String toString()\n\n {\n\n return javaCurrency.toString();\n\n }", "title": "" }, { "docid": "785cab5b5337b70ad0f864f2a5b5be06", "score": "0.6608769", "text": "@Override\n public String toString()\n {\n\tNumberFormat fmt = NumberFormat.getCurrencyInstance();\n\n\tString contents = \"\\nShopping Cart\\n\";\n\tcontents += \"\\nItem\\t\\tUnit Price\\tQuantity\\tTotal\\n\";\n\n\tfor (int i = 0; i < itemCount; i++){\n\t contents += cart[i].toString() + \"\\n\";\n }\n\tcontents += \"\\nTotal Price: \" + fmt.format(totalPrice);\n\tcontents += \"\\n\";\n\n\treturn contents;\n }", "title": "" }, { "docid": "72a38c3d2d9272b24c98b6db64260e32", "score": "0.6586265", "text": "@Override\n public String getDepositCashList() throws JposException {\n StringBuilder s = new StringBuilder(8 * 3);\n if (currencyCode != null ? !currencyCode.isEmpty() : false) {\n for (int i = 0; i < 8; i++) {\n if (currencyCode.equals(depositCodeList[i])) {\n if (s.length() > 0) {\n s.append(\",\");\n }\n s.append(depositCashList[i]);\n }\n }\n }\n return \";\" + s.toString();\n }", "title": "" }, { "docid": "6f051deb706a0fe241750ddb88048086", "score": "0.6575492", "text": "public String toString ()\n {\n NumberFormat fmt = NumberFormat.getCurrencyInstance();\n \n return (name + \"\\t\" + fmt.format(price) + \"\\t\" + quantity + \"\\t\"\n + fmt.format(price*quantity));\n }", "title": "" }, { "docid": "9a0b2a660eecd702ecb7310897689c56", "score": "0.65313876", "text": "@Override\n public String toString() {\n return String.format(\"%s%.2f\", currency, amount);\n\n }", "title": "" }, { "docid": "e28c4d941fca4faa1434ddacbee9e229", "score": "0.6523685", "text": "public String toString() {\n\t\tif(this.cents < 10) {\n\t\t\treturn \"$\" + this.dollars + \".0\" + this.cents;\n\t\t}\n\t\treturn \"$\" + this.dollars + \".\" + this.cents;\n\t}", "title": "" }, { "docid": "50f913949f88fdfc33ac6a824d215a67", "score": "0.64572895", "text": "public String toString() { \r\n \t\r\n \treturn this.value+\"-\"+this.currency;\r\n }", "title": "" }, { "docid": "bddcfdedd920b6aa3fdf91a8b59dedcb", "score": "0.6364844", "text": "java.lang.String getCurrency();", "title": "" }, { "docid": "bddcfdedd920b6aa3fdf91a8b59dedcb", "score": "0.6364844", "text": "java.lang.String getCurrency();", "title": "" }, { "docid": "f7791a9b9b5db53c815a71b97027ef46", "score": "0.6323973", "text": "public String getCash()\n\t{\n\t\tString s = \"\";\n\t\tfor (Player p : players)\n\t\t{\n\t\t\ts += String.valueOf(p.getCash()) + \",\";\n\t\t}\n\t\treturn s;\n\t}", "title": "" }, { "docid": "ed735a0211c4ecea61b522fd50d9ac91", "score": "0.6294261", "text": "public String toString() {\n String output = \"We offer the following units:\\n\";\n for (int i = 0; i < numConverts; i++) {\n output += list[i].toString() + \"\\n\";\n }\n return output;\n }", "title": "" }, { "docid": "123df616d6bd49ea6d09488905e0bbba", "score": "0.6265179", "text": "@Override\n\tpublic String toString() {\n\t\tString output = \"$\" + getDollar() + \".\" + getCent();\n\t\t\n//\t\tif(cents < 9) {\n//\t\t\toutput += \".0\" + getCent();\n//\t\t}\n//\t\telse {\n//\t\t\toutput += \".\" + getCent();\n//\t\t}\n\t\treturn output;\n\t}", "title": "" }, { "docid": "e11c56bc71a062881751532d32264f4f", "score": "0.6256177", "text": "String currency();", "title": "" }, { "docid": "616ae99e5ebf130aa20cbbb3f7d7712c", "score": "0.61746776", "text": "public String getValueWithCurrencySymbol(){\n\t\treturn \"$ \" + dollars + \".\" + cents;\n\t}", "title": "" }, { "docid": "d63849595606d754fa9cdca2057df22d", "score": "0.6168008", "text": "@Override\r\n public String toString() {\r\n final NumberFormat nf = NumberFormat.getCurrencyInstance(Locale.US);\r\n String output = \"\";\r\n\r\n if (this.isBulk()) {\r\n\r\n output = myItemName + ',' + ' ' + nf.format(myIndiviualPrice) + \" (\"\r\n + this.myBulkQuantity + \" for \" + nf.format(this.myBulkPrice) + \")\";\r\n } else {\r\n\r\n output = myItemName + \", \" + nf.format(myIndiviualPrice);\r\n }\r\n return output;\r\n }", "title": "" }, { "docid": "46a7c77e884ca2d43993cfb0b93c3b37", "score": "0.6166502", "text": "public void printCoinList()//:String\r\n\t{\r\n\t System.out.println(\"The current coin denominations are in circulation: £2, £1, 50p, 20p, 10p\");\r\n\t}", "title": "" }, { "docid": "ae16ec6b358e0741eaf75118d519d1bb", "score": "0.6137617", "text": "public String toString() {\n\t\t//Your code goes here\n\t\treturn receipt+\"\\nTotal: $\"+valueToString(getTotal());\n\t}", "title": "" }, { "docid": "1cdae59f213535c9a15638835d902c30", "score": "0.6122756", "text": "public String toString()\n {\n double temp = dollars + cents/100.0; \n return String.format(\"$%.2f\", temp);\n }", "title": "" }, { "docid": "0e253781b1991ff5c003e2a0ceeb55da", "score": "0.6076308", "text": "public String toString()\n {\n String retv=\"\";\n for (int i=0;i<sCode.length;i++)\n {\n String temp = String.format( \"%,.2f\", sCodeCost[i] );\n retv = retv + sCode[i] +\" \"+ temp +\" \"+sCodeDesc[i] +\"\\n\";\n }\n return retv;\n }", "title": "" }, { "docid": "1a21c5e39b6ffa8d7953a9aa129f5fb4", "score": "0.60729", "text": "public String getCurrentTotal(){\n \tString roundedAmount = \"\";\n \tString amount = \"Total: $\" + model.getBillAmount();\n \tint deciamlPlace = amount.indexOf(\".\");\n \tif(amount.length() >= deciamlPlace+3) roundedAmount = amount.substring(0, deciamlPlace+3); //display 2 decimal places\n \telse roundedAmount = amount.substring(0, deciamlPlace+2) + \"0\";\n \treturn roundedAmount;\n }", "title": "" }, { "docid": "69b1910fdc49d8854c298caf2297287e", "score": "0.6065248", "text": "public String getCurrencyPlural();", "title": "" }, { "docid": "3d664af592fe91cf89026bf01fd68771", "score": "0.6062297", "text": "@Override\r\n public String toString() {\r\n\r\n return ol.toString() + totalPrice;\r\n }", "title": "" }, { "docid": "114a524073bd8c72def5e8f137b34e46", "score": "0.6051736", "text": "public String getAmount(){ \t\r\n\t\tString retVal = String.format(\"$%d.%d\", dollars, cents);\r\n\t\treturn retVal;\r\n\t}", "title": "" }, { "docid": "c0a6e7152caeda0e22a733b6d00a3b5c", "score": "0.6049949", "text": "public String currency() {\r\n return currency;\r\n }", "title": "" }, { "docid": "bb316bf3a436aa9a8b8a9dde8379989f", "score": "0.6041915", "text": "public String toString() {\n return String.format(\"$%.2f\", savingsBalance);\n }", "title": "" }, { "docid": "34eed71edff8861181bba9d396336f86", "score": "0.60258186", "text": "public String toString() {\r\n String listString = \"\";\r\n String currentItemInfo = \"\";\r\n\r\n if (getFirstItem() != null) {\r\n ListItem currentItem = getFirstItem();\r\n\r\n while (true) {\r\n currentItemInfo = currentItem.getAmount() + \" \" +\r\n currentItem.getName() + \";\";\r\n listString += currentItemInfo;\r\n\r\n if (currentItem.getNextItem() != null) {\r\n currentItem = currentItem.getNextItem();\r\n } else {\r\n break;\r\n }\r\n }\r\n }\r\n\r\n return listString;\r\n }", "title": "" }, { "docid": "f17dfb9472821e49c902526fb4e30143", "score": "0.5995428", "text": "@Override\n public String toString() {\n String output= \"The amount is $\" + this.getMoney();\n return output;\n }", "title": "" }, { "docid": "1b55743b9f44cd573ffb99e841ffd7ff", "score": "0.5990732", "text": "public String getCoins() {\n String coinsList = new String();// create a coin list in string type to return at last\n\n for (int i = 0; i < this.size; i++) {\n if (i < this.size - 1)// check if there is coin after\n coinsList = coinsList + coins[i].toString() + \" \";// if yes, then add a space after the\n // parentheses\n else\n coinsList = coinsList + coins[i].toString();// if no, just print out the coin\n }\n return coinsList;\n }", "title": "" }, { "docid": "a2b291de106be0d78174dd4469777dfa", "score": "0.5988752", "text": "@Override\n\tpublic String getCuncurrency() {\n\t\t// \n\t\treturn this.cuncurrency;\n\t}", "title": "" }, { "docid": "6d8fb0d403da60cc1a7186cee6cf1e28", "score": "0.5969746", "text": "public void getCurrency()\r\n\t{\n \tSystem.out.println(\"Currency => £ Sterling\");\r\n\t}", "title": "" }, { "docid": "9d3f2c25bb42c48349c4806868292325", "score": "0.5960047", "text": "public String getCurrency();", "title": "" }, { "docid": "01e05d0a0c10a71b068424755137ffa0", "score": "0.59523225", "text": "public String toString() {\n return \"The card has \" + balance + \" euros\";\n }", "title": "" }, { "docid": "76fdb10edc6b9c3d186e1abea2b6516e", "score": "0.5945757", "text": "public String getCartTotal() {\n float total = 0;\n for (CartItem i : this.cart) {\n total += i.getSalesPrice() * CartItem.amountInCart.get(i.getName());\n }\n return String.format(\"$%.2f\", total);\n }", "title": "" }, { "docid": "b74e40003f7685166146c5af710108c3", "score": "0.5943299", "text": "public String toString() {\n\n String s = \"\";\n\n s = s + this.product + \": \" + this.amount;\n\n return s;\n }", "title": "" }, { "docid": "e62d4064de7dfe7573378ea88125513e", "score": "0.5926378", "text": "public String getCoins() {\n String contents = \"\";\n // traverse the coins oversize array and add each coin's string representation to the string to\n // be returned\n for (int i = 0; i < size; i++) {\n contents += \"(\" + coins[i].name() + \", \" + coins[i].value() + \")\";\n if (i < size - 1)\n contents += \" \";\n }\n return contents;\n }", "title": "" }, { "docid": "4a7d9891008b28e2859e42aa8a7686c6", "score": "0.5920078", "text": "public double currencyDisplay(){\n return 0.0;\n }", "title": "" }, { "docid": "7cbbc116e5935bbb4bc8a59542927448", "score": "0.58945966", "text": "@Override\n public String getDepositCounts() throws JposException {\n StringBuilder s = new StringBuilder(80);\n if (currencyCode != null ? !currencyCode.isEmpty() : false) {\n for (int i = 0; i < 8; i++) {\n if (currencyCode.equals(depositCodeList[i])) {\n if (s.length() > 0) {\n s.append(\",\");\n }\n s.append(depositCashList[i]);\n s.append(\":\");\n s.append(depositCounts[i]);\n\n }\n }\n }\n return \";\" + s.toString();\n }", "title": "" }, { "docid": "049e32a1dd225001454c9416f5a7b054", "score": "0.589039", "text": "public String toString() {\n StringBuilder printLedger = new StringBuilder();\n for (Item item : myLedger) {\n double amount = item.isIncome() ? item.getAmount() : -item.getAmount();\n String typeStr = item.isIncome() ? \"Income\" : \"Expense\";\n printLedger.append(item.getId()).append(\" \").append(typeStr).append(\" \").append(item.getDate())\n .append(\" \").append(item.getEntity()).append(\" \").append(item.getDescription()).append(\" \")\n .append(item.getCategory()).append(\" \").append(amount).append(\"\\n\");\n }\n return printLedger.toString();\n }", "title": "" }, { "docid": "8aeb382d9c8cb6f0b06bece971b8db3a", "score": "0.5877137", "text": "public String toString() {\n // Create a empty string \n String output = \"\";\n // Changing the cost from cents to dollars\n String costToDollars = DessertShoppe.cents2dollarsAndCents(this.getCost());\n // Calculating the space that is leftover for the cost within the receipt\n int widthLeft = DessertShoppe.RECEIPT_WIDTH - super.getName().length();\n // Printing the information on the receipt and formating the text properly for the receipt\n output += this.number + \" @ $\" + DessertShoppe.cents2dollarsAndCents(this.pricePer12) + \" /dz\" + \"\\n\" + super.getName();\n // \"%\" = indicates the formatting of the receipt && \"s\" = indicates the amount of spaces (note to myself)\n output += String.format(\"%\" + (widthLeft) + \"s\", costToDollars);\n\n // Return the output\n return output;\n }", "title": "" }, { "docid": "a9dc2851ee23893719b1bd01b3e58ef5", "score": "0.586699", "text": "public String toString()\r\n\t{\r\n\t\t//I think that they want this to be the total\r\n\t\tString result = Integer.toString(total);\r\n\t\treturn result;\r\n\t}", "title": "" }, { "docid": "36540cd2072cb1aa5b17118f8dca61d0", "score": "0.58626926", "text": "public String getCurrency() { \r\n \t\r\n \treturn this.currency;\r\n }", "title": "" }, { "docid": "993ae227477c9a0695176249f928b23c", "score": "0.58621144", "text": "@Override\n\tpublic String toString() {\n\t\tStringBuilder builder = new StringBuilder();\n\t\tbuilder.append(\"Your Sum List contains: [\").append(getSumList()).append(\"]\");\n\t\treturn builder.toString();\n\t}", "title": "" }, { "docid": "7bcc418a6978d5a23a9257cc8ba75e9f", "score": "0.58596075", "text": "public String toString() {\n\t\tDecimalFormat df = new DecimalFormat(\"#.##\");\n\t\treturn \"Account Number: \" + this.accountNo + \" Account Balance: $\" + df.format(this.balance);\n\n\t}", "title": "" }, { "docid": "5ed412fedbad65172091a475d648b970", "score": "0.58541566", "text": "public final String toString() {\n\n\tStringBuffer resultBuffer = new StringBuffer();\n\n\t// Start with the name of the trade site.\n\tresultBuffer.append( getTradeSite().getName());\n\tresultBuffer.append( \" : \");\n\n\t// For now just a rough sequence of the currencies\n\tfor( int index = 0; index < _tradeSequence.size(); ++index) {\n\n\t TradePoint currentPoint = getTradePoint( index);\n\t CurrencyPair currencyPair = currentPoint.getTradedCurrencyPair();\n\n\t if( index == 0) { // If this is the first trade point, we have to display both currencies\n\t\tif( currentPoint.isBuy()) {\n\t\t resultBuffer.append( currencyPair.getPaymentCurrency().toString());\n\t\t resultBuffer.append( \" => \");\n\t\t resultBuffer.append( currencyPair.getCurrency().toString());\n\t\t} else {\n\t\t resultBuffer.append( currencyPair.getCurrency().toString());\n\t\t resultBuffer.append( \" => \");\n\t\t resultBuffer.append( currencyPair.getPaymentCurrency().toString());\n\t\t}\n\t } else {\n\t\tresultBuffer.append( \" => \");\n\t\tresultBuffer.append( currentPoint.isBuy() ? currencyPair.getCurrency().toString() : currencyPair.getPaymentCurrency().toString());\n\t }\n\t}\n\n\treturn resultBuffer.toString();\n }", "title": "" }, { "docid": "7bc90568fd743c03d67158e6c806acfa", "score": "0.5838246", "text": "@Override\n public String toString(){\n String fullList = \"\";\n int sizeOfDeck = deck.size();\n for(int y=0; y<sizeOfDeck; y++)\n { \n String cardCurrent = deck.get(y).toString();\n fullList += cardCurrent + \"\\n\";\n }\n return fullList;\n }", "title": "" }, { "docid": "e407c1f5c143a3956c6096edbf739b46", "score": "0.58319134", "text": "public String toString() {\n\t\tString totalPriceString = String.format(\"%.2f\", price);\n\t\treturn dessertName + \" -- amount: \" + quantity + \" -- subtotal: $\" + totalPriceString + \"\\n\";\n\t}", "title": "" }, { "docid": "629a8d66a575661f4fb14e4d9348c350", "score": "0.58244014", "text": "public List<String> getCurrencies() {\n return currencies;\n }", "title": "" }, { "docid": "ba2775b477d3c985c445e17d09aabf40", "score": "0.58220124", "text": "public java.lang.CharSequence getCurrency() {\n return currency;\n }", "title": "" }, { "docid": "1279e40135440a48c02ab168707af3d4", "score": "0.5821606", "text": "public String getCurrency()\r\n {\r\n return currency;\r\n }", "title": "" }, { "docid": "e0c19952b43d2613aa7bfd2c511485a9", "score": "0.58211106", "text": "public String toString() {\r\n\t DecimalFormat myFormat = new DecimalFormat(\"#0.000\");\r\n\t StringBuilder sb = new StringBuilder();\r\n\t sb.append(\"Name: \" + this.name + \"\\t\");\r\n\t sb.append(\"Price per cm2: \" + myFormat.format(this.pricePerCm2) + \" euros\" + NL);\r\n\t return sb.toString();\r\n }", "title": "" }, { "docid": "3cf8f3db20858265818943047f2a9823", "score": "0.58196366", "text": "public String printReceipt() {\n\t\tString receipt = \"\";\n\n\t\tfor (Item item : itemList) {\n\t\t\treceipt += (item.printItem() + \"\\n\");\n\t\t}\n\n\t\treceipt += \"Total sales tax = \" + decimalFormat.format(totalSalesTax) + \"\\n\";\n\t\treceipt += \"Total amount = \" + decimalFormat.format(totalAmount) + \"\\n\";\n\n\t\treturn receipt;\n\t}", "title": "" }, { "docid": "467bd0e0ab793b49c6606ac411f6603c", "score": "0.5817865", "text": "private String getCashCounts() {\n if (currencyCode != null ? !currencyCode.isEmpty() : false) {\n StringBuilder s = new StringBuilder(80);\n for (int i = 0; i < 8; i++) {\n if (currencyCode.equals(depositCodeList[i])) {\n if (s.length() > 0) {\n s.append(\",\");\n }\n s.append(depositCashList[i]);\n s.append(\":\");\n s.append(cashCounts[i]);\n }\n }\n return \";\" + s.toString();\n } else {\n return cashCountsBuffer;\n }\n }", "title": "" }, { "docid": "ae4a1872acf5a15419755505a6be8bd6", "score": "0.5810007", "text": "public java.lang.CharSequence getCurrency() {\n return currency;\n }", "title": "" }, { "docid": "8053f3bc9cf20a0761c783eadace94d3", "score": "0.58082366", "text": "public String toString()\r\n{\r\n\tNumberFormat formatter = NumberFormat.getCurrencyInstance(Locale.US);\r\n\t\r\n\treturn \"\\n Hours worked = \" + hours + \"\\n Hourly rate = \" + formatter.format(wageRate) + \"\\n # of dependents = \" + dependents + \r\n\t\t\t\"\\n Gross income = \" + formatter.format(grossPay()) + \"\\n Federal Tax Witheld = \" + formatter.format(fedTax()) + \r\n\t\t\t\"\\n Take home pay is = \" + formatter.format(grossPay()-fedTax());\r\n}", "title": "" }, { "docid": "e5c7e3eb49fbfc374259b0186f74836a", "score": "0.5794021", "text": "public String toString() {\n ArrayList<String> billStrings = new ArrayList<>();\n billStrings.add(\"Thank you for joining us today. Your Waiter today was \" + this.waiter.getName());\n billStrings.add(\"TABLE NUMBER: \" + this.tableNumber);\n for (Integer key : dishList.keySet()) {\n String formattedPrice = String.format(\"%.2f\",dishList.get(key).getPrice());\n billStrings.add(\" \" + dishList.get(key) + \": $\" + formattedPrice);\n }\n billStrings.add(\"TOTAL PRICE: $\" + String.format(\"%.2f\", getTotalBillPrice()));\n return System.lineSeparator() + String.join(System.lineSeparator(), billStrings);\n }", "title": "" }, { "docid": "6e4f93fe0c9daac62bd102b89888fda7", "score": "0.5789233", "text": "public java.lang.String getCurrency() {\n java.lang.Object ref = currency_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n currency_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "title": "" }, { "docid": "a32d819d0db05eac13c065e50ff09c18", "score": "0.5784921", "text": "public String getCurrency() {\n return currency;\n }", "title": "" }, { "docid": "188d76069353f09fb6fa508ad70a6ded", "score": "0.5781327", "text": "java.util.List<protos.ExchangeProto.Currency> getCurrencyRatesList();", "title": "" }, { "docid": "3ff3faa5b99c7a3a3bb555b51de3984c", "score": "0.57713205", "text": "public String toString(){\r\n\t\tString cardListOutput = \"\";\r\n\t\tint i = 0;\r\n\t\tfor(Card aCard : this.cards)\r\n\t\t{\r\n\t\t\tcardListOutput += \"\\n\" + i + \"-\" + aCard.getValue() + \"-\" + aCard.getSuit();\r\n\t\t\ti++;\r\n\t\t}\r\n\t\treturn cardListOutput;\r\n\t}", "title": "" }, { "docid": "4716d6447b7986334c311c8a13ad6c30", "score": "0.5769477", "text": "public String receiptToString() {\n StringBuilder formattedString = new StringBuilder();\n formattedString.append(String.format(\"(New Item #%s %d@$%.2f/ea)\", this.getCode(), this.getQuantity(), this.getBasePrice()));\n formattedString.append(\" \".repeat(Math.max(0, 57 - formattedString.length())));\n return String.format(\"%s\\n %s$%10.2f\", this.getName(), formattedString, this.calculatePrice());\n }", "title": "" }, { "docid": "7e5fe95e26f77c183570f7f9b45df5fe", "score": "0.5758377", "text": "public java.lang.String getCurrency() {\n return currency;\n }", "title": "" }, { "docid": "3cf6e8019624af48c87649d4e6dcd5e3", "score": "0.57563317", "text": "@Override\n public String toString() {\n return \"Company Name: \" + companyName + \"\\nStock Symbol: \" + symbol + \"\\nRate: \" + rate + \"\\nQuantity: \" + quantity\n + \"\\nTotal Deals Made: \" + totalDeals + \"\\nRevolution: \" + revolution + \"\\n\";\n }", "title": "" }, { "docid": "8459ff057a0f4971233334da21132292", "score": "0.57518697", "text": "public java.util.List<protos.ExchangeProto.Currency> getCurrencyRatesList() {\n return new com.google.protobuf.Internal.ListAdapter<\n java.lang.Integer, protos.ExchangeProto.Currency>(currencyRates_, currencyRates_converter_);\n }", "title": "" }, { "docid": "ab4ef018228b768704a766659464ed7c", "score": "0.5749331", "text": "public String toString(){\n StringBuilder sb = new StringBuilder();\n String template = DessertShoppe.s1;\n String tax = String.format(template, \"Tax\", DessertShoppe.cents2dollars(totalTax()));\n int totalCost = totalCost() + totalTax();\n String total = String.format(template, \"Total Cost\", DessertShoppe.cents2dollars(totalCost));\n for(DessertItem item: dessertItems){\n sb.append(item.print());\n }\n return \"\\n\" + \" \" + DessertShoppe.storeName + \"\\n\" + \" --------------------\" + \"\\n\" + sb\n + \"\\n\" + tax + total;\n }", "title": "" }, { "docid": "34f5e2c059ed15a3d139f44f1251e2ea", "score": "0.5748296", "text": "public String getCurrencySingular();", "title": "" }, { "docid": "dce9db35b5ffeee7a4ac3afd633d1fd5", "score": "0.5742491", "text": "@Override\r\n\tpublic String toString(){\r\n\t\tString retVal = getAmount();\r\n\t\treturn retVal;\r\n\t}", "title": "" }, { "docid": "9dab37480d2ee2eabec02b97cbe5e700", "score": "0.57421476", "text": "public java.lang.String getCurrency() {\r\n return currency;\r\n }", "title": "" }, { "docid": "27733ffe0e9308057c4f05a941dbb819", "score": "0.5736376", "text": "public String getCurrency() {\n return currency;\n }", "title": "" }, { "docid": "27733ffe0e9308057c4f05a941dbb819", "score": "0.5736376", "text": "public String getCurrency() {\n return currency;\n }", "title": "" }, { "docid": "27733ffe0e9308057c4f05a941dbb819", "score": "0.5736376", "text": "public String getCurrency() {\n return currency;\n }", "title": "" }, { "docid": "27733ffe0e9308057c4f05a941dbb819", "score": "0.5736376", "text": "public String getCurrency() {\n return currency;\n }", "title": "" }, { "docid": "27733ffe0e9308057c4f05a941dbb819", "score": "0.5736376", "text": "public String getCurrency() {\n return currency;\n }", "title": "" }, { "docid": "ad35fc8f89803a97ed7ab39b35d3f980", "score": "0.5728345", "text": "public String getPurchaseTotal() {\r\n\t\treturn String.format(\"$%.2f\", purchaseTotal);\r\n\t}", "title": "" }, { "docid": "fb4989d15912319e95cc9632b7d9bb35", "score": "0.572787", "text": "java.lang.String getRatetotal();", "title": "" }, { "docid": "a119f54bcb266eba86b7bc302642d07a", "score": "0.5724262", "text": "public String toString() {\r\n\r\n\t\treturn String.format(\"%s, %d coins\", name, balance);\r\n\t}", "title": "" }, { "docid": "45a76f36ca51e60555762ff00ad24799", "score": "0.5720535", "text": "public String toString(){\n\t\tcalculateAmountsFromPercentages();\n\t\tString toPrint = \"\";\n\n\t\ttoPrint += \"With \" + getAvailableFunds() + \"$ in available funds, it is recommended that you spend:\\n\";\n\t\ttoPrint += getAmountHousing() + \"$ (\" + getPercentHousing() + \"%) for Housing\\n\";\n\t\ttoPrint += getAmountFood() + \"$ (\" + getPercentFood() + \"%) for Food\\n\";\n\t\ttoPrint += getAmountUtilities() + \"$ (\" + getPercentUtilities() + \"%) for Utilities\\n\";\n\t\ttoPrint += getAmountClothing() + \"$ (\" + getPercentClothing() + \"%) for Clothing\\n\";\n\t\ttoPrint += getAmountMedical() + \"$ (\" + getPercentMedical() + \"%) for Medical\\n\";\n\t\ttoPrint += getAmountDonations() + \"$ (\" + getPercentDonations() + \"%) for Donations\\n\";\n\t\ttoPrint += getAmountSavingsInsurance() + \"$ (\" + getPercentSavingsInsurance() + \"%) for Savings and Insurance\\n\";\n\t\ttoPrint += getAmountEntertainment() + \"$ (\" + getPercentEntertainment() + \"%) for Entertainment\\n\";\n\t\ttoPrint += getAmountTransportation() + \"$ (\" + getPercentTransportation() + \"%) for Transportation\\n\";\n\t\ttoPrint += getAmountMisc() + \"$ (\" + getPercentMisc() + \"%) for Miscellaneous\\n\";\n\n\t\treturn toPrint;\n\t}", "title": "" }, { "docid": "c59897b56d616f8b5c3b7856bef26f21", "score": "0.5715805", "text": "public String getSummary() {\n String summary = \"\";\n Coin[] values = Coin.values();\n // traverse this bank contents and update its summary\n for (int i = 0; i < values.length; i++) {\n String name = values[i].name();\n int count = getSpecificCoinCount(name);\n if (count != 0) {\n summary += name + \":\" + count + \"\\n\";\n }\n }\n return summary.trim(); // remove whitespace (spaces, new lines etc.) from the beginning and end\n // of summary and return the resulting string\n\n }", "title": "" }, { "docid": "2db609c14e0b4e2b722ca086e4387860", "score": "0.570739", "text": "public java.util.List<protos.ExchangeProto.Currency> getCurrencyRatesList() {\n return new com.google.protobuf.Internal.ListAdapter<\n java.lang.Integer, protos.ExchangeProto.Currency>(currencyRates_, currencyRates_converter_);\n }", "title": "" }, { "docid": "926e06d38476249c77047b852e09d708", "score": "0.5707015", "text": "public java.lang.String getCurrency() {\n return currency;\n }", "title": "" }, { "docid": "1b3a93a684213061b10352a7191818f0", "score": "0.56994295", "text": "public java.lang.String getCurrency() {\n java.lang.Object ref = currency_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n currency_ = s;\n return s;\n }\n }", "title": "" }, { "docid": "036885d7cd457a381027e813e97f1c4d", "score": "0.5693493", "text": "public java.lang.String getCurrency() {\n return currency;\n }", "title": "" }, { "docid": "60624d391cf2b2c35a5e50be6a1e6f31", "score": "0.5683727", "text": "public String getBill(){\n String bill=\"\";\n for(Product p:productsList.keySet()){\n bill+=\"| name : \"+p.getProduct_name()+\" | price:\"+p.getPrice()+\" € | quantity\"+productsList.get(p)+\"|\\n\";\n\n }\n return bill;\n }", "title": "" }, { "docid": "469cf598c0eedb2d3f47115ed9de3ffd", "score": "0.56779176", "text": "public String toString() {\n\t\treturn String.format(\"%.0f-%s note [%d]\",getValue(),getCurrency(),getSerial());\n\t}", "title": "" }, { "docid": "b4b593958fb5cc4bad7f5b734be4a0d2", "score": "0.56771094", "text": "public String toString()\n {\n String className = this.getClass().getSimpleName();\n if (className.equals(\"MoneyMarket\"))\n className = \"Money Market\";\n String res = \"*\" + className\n + \"*\" + holder.getFName()\n + \" \" + holder.getLName()\n + \"* $\" + regexCommafy(String.format(\"%.2f\", balance))\n + \"*\" + dateOpen.toString();\n if (this instanceof Checking)\n res += (((Checking) this).getDirectDeposit() ? \"*direct deposit account*\" : \"\");\n else if (this instanceof Savings)\n res += (((Savings) this).getIsLoyal() ? \"*special Savings account*\" : \"\");\n else if (this instanceof MoneyMarket)\n res += \"*\" + ((MoneyMarket) this).getWithdrawals() + \" withdrawals*\";\n return res;\n }", "title": "" }, { "docid": "d531c801c82671d8b15670a2e59120da", "score": "0.5660003", "text": "public String toString(){\n\t\treturn (\"Business: \" + bussName + \", Price: $\" + stckPrice);\n\t}", "title": "" }, { "docid": "efdf810f9c778390a86616c86ef59ef8", "score": "0.5659036", "text": "public String getCurrencyLabel() {\n return currencyLabel;\n }", "title": "" }, { "docid": "930d62a70392d0d42d6df3ee0f2db5d0", "score": "0.565553", "text": "private String getCurrencyInUse()\n\t{\n\t\treturn StringEscapeUtils.escapeHtml4(productDirectoryConfigService\n\t\t\t.getMerchProductDirectoryConfigForCurrentBaseSite().map(MerchProductDirectoryConfigModel :: getCurrency).map(CurrencyModel::getSymbol)\n\t\t\t.orElse(Optional.ofNullable(commerceCommonI18NService.getDefaultCurrency()).map(CurrencyModel :: getSymbol).orElse(\"\")));\n\t}", "title": "" }, { "docid": "a29366211d0673195ddf031d008e84fc", "score": "0.5653106", "text": "public List<Currency> getAllCurrency();", "title": "" }, { "docid": "f0bac7760ca70049855a3a802fd386be", "score": "0.5639168", "text": "public String toString() {\n\t\treturn super.toString() + \" Account fee: $\" + Integer.toString(this.fee);\n\t}", "title": "" }, { "docid": "881093576085ee670128d74a600b6c63", "score": "0.56385404", "text": "public String toString() {\n\t\t\n\t\t/*\n\t\t * Use a string builder to build up the string\n\t\t */\n\t\tStringBuilder productbuy = new StringBuilder();\n\t\t\n\t\t/*\n\t\t * format the quantity, price, name and total price of the product in a standard way\n\t\t */\n\t\tproductbuy.append(String.format(\"%2s %1s %3s %10.2f %-20s %5s %3s %10.2f\", \n\t\t\t\t\t\t\t \t\t\tgetQuantity(), \"*\", \"GBP\", getPrice(), getName(), \"=\", \"GBP\", getTotalPrice() ));\n\t\t/* \n\t\t * add a new line to the string for any additional products\n\t\t */\n\t\tproductbuy.append(\"\\n\"); \n\t\t\n\t\treturn productbuy.toString();\n\t}", "title": "" }, { "docid": "fb554f9bbbe10aa242bfca8f480c1016", "score": "0.56260675", "text": "public java.lang.String getCurrency() {\n return localCurrency;\n }", "title": "" }, { "docid": "347d4feb13d0d15088f3f2f077d44062", "score": "0.56256723", "text": "com.google.protobuf.ByteString\n getCurrencyBytes();", "title": "" }, { "docid": "ab789fdfde48f48efdfce7a1e0ddca9d", "score": "0.56205016", "text": "@Override\r\n public String toString() {\r\n String pattern = \"###,##0.00\";\r\n DecimalFormat df = new DecimalFormat(pattern);\r\n return super.toString() + \"::Payment $\" + df.format(payment) + \"::PART TIME::Hourly Rate $\" + df.format(hourlyPay) + \"::Hours worked this period: \" + hoursWorked;\r\n }", "title": "" }, { "docid": "2e08c54ceb3f3b789cbbe31094028dd2", "score": "0.5616413", "text": "@Override\n public String toString() {\n \n StringBuilder tempResult = new StringBuilder();\n \n tempResult.append(\"Coin-denomination: \");\n tempResult.append(this.getDenomination());\n \n return tempResult.toString();\n }", "title": "" }, { "docid": "e86a3260e6e0885681862052a1929b30", "score": "0.56149715", "text": "public String toString() {\n\t\t\n\t\t//Creating the string message\n\t\tString message = \"\";\n\t\t\n\t\t//Testing to see if the size = 0, and changing the message\n\t\t// to avoid a null pointer exception\n\t\tif ( this.size == 0 ) {\n\t\t\tmessage = \"The OrderedList is empty!\";\n\t\t\tmessage += \"\\ntotal size = \" + this.size + \"\\ntotal capacity = \" + this.totalCap + \"\\n\";\n\t\t\treturn message;\n\t\t}\n\t\t\n\t\t//If size of list > 0, then we iterate through it, print the contents, size, and capacity.\n\t\tfor (int i = 0; i < size; i++) {\n\t\t\t\n\t\t\t//Logic to format the output string with commas, except for the last element.\n\t\t\tif (i == (size - 1)) {\n\t\t\t\tmessage += this.collection[i].toString();\n\t\t\t}\n\t\t\telse {\n\t\t\t\tmessage += this.collection[i].toString() + \", \";\n\t\t\t}\n\t\t}\n\t\t\n\t\t//Inserting the size and capacity info into the string as well\n\t\tmessage += \"\\ntotal size = \" + this.size + \"\\ntotal capacity = \" + this.totalCap + \"\\n\";\n\t\treturn message;\n\t}", "title": "" }, { "docid": "572085e9c50b36d345e49806b29bbbb7", "score": "0.5607068", "text": "@Override\n\tpublic String toString(){\n\t\tString s = \"Cart\";\n\t\ts += \"\\njava.util.Set<CartItem_> items: \" + getItems();\n\t\ts += \"\\nString userID: \" + getUserID();\n\t\ts += \"\\nBigDecimal totalPrice: \" + getTotalPrice();\n\t\treturn s;\n\t}", "title": "" }, { "docid": "f8d7d9517baad705c41dd688cbaa57fd", "score": "0.5600981", "text": "private static String formattedCurrency(double value) {\r\n\t\treturn \"$\" + nf.format(value);\r\n\t}", "title": "" }, { "docid": "acd884b1c1385b658f44b2d4207d77bb", "score": "0.55980283", "text": "public String calCalories() {\n\t\treturn \"Total calories : \";\r\n\t}", "title": "" } ]
4d058345af6ff470562d460b0ddbdca4
Called repeatedly when this Command is scheduled to run
[ { "docid": "14e836a398838cbe2a0b1444ecb9cd70", "score": "0.0", "text": "protected void execute() {\n \t\n }", "title": "" } ]
[ { "docid": "f14851cbfad06077f2535249666740b6", "score": "0.71438706", "text": "@Override\n public void robotPeriodic() {\n CommandScheduler.getInstance().run();\n }", "title": "" }, { "docid": "2472b6b53e8892b700f4664befdfd5bd", "score": "0.71233726", "text": "@Override\n public void teleopPeriodic() {\n CommandScheduler.getInstance().run();\n }", "title": "" }, { "docid": "52ad3dea0808b8e4b8f2003f5f949069", "score": "0.6533061", "text": "@Override\n public void robotPeriodic() {\n // Update the Shuffleboard\n RobotManager.botShuffler.update();\n\n // Runs the Scheduler. This is responsible for polling buttons, adding newly-scheduled\n // commands, running already-scheduled commands, removing finished or interrupted commands,\n // and running subsystem periodic() methods. This must be called from the robot's periodic\n // block in order for anything in the Command-based framework to work.\n CommandScheduler.getInstance().run();\n }", "title": "" }, { "docid": "73009465a85072e60b8be02bbb3e4cf5", "score": "0.6506692", "text": "public void run() {\n\t\t\tsendCommand(command);\r\n\t\t}", "title": "" }, { "docid": "4afc0e358e11ee55241e5b42667bb612", "score": "0.6504088", "text": "public void run() {\n\t\texecute(createCommand());\n\t}", "title": "" }, { "docid": "4a247559ad5a46cb471ee904058885df", "score": "0.6456468", "text": "@Override\n public void teleopInit() {\n super.teleopInit();\n shooterCommand.schedule();\n }", "title": "" }, { "docid": "078bfab19c7cd3f952937b5eb4445815", "score": "0.6430194", "text": "@Override\n public void scheduledCallback() {\n \n }", "title": "" }, { "docid": "b9cdab0bf8f172660a697a03f7a2d8e8", "score": "0.6402974", "text": "@Override\n public void autonomousPeriodic() {\n Scheduler.getInstance().run();\n }", "title": "" }, { "docid": "1555bbd4fed7e633678b19e69253af7f", "score": "0.64007837", "text": "@Override\n public void autonomousPeriodic() {\n Scheduler.getInstance().run();\n }", "title": "" }, { "docid": "1555bbd4fed7e633678b19e69253af7f", "score": "0.64007837", "text": "@Override\n public void autonomousPeriodic() {\n Scheduler.getInstance().run();\n }", "title": "" }, { "docid": "8eb149026b9171d422480ebab7bd380a", "score": "0.6331208", "text": "@Override\n public void autonomousPeriodic()\n {\n Scheduler.getInstance().run();\n }", "title": "" }, { "docid": "68a2a90a1c9f2bff9fd164dd0f345578", "score": "0.6308937", "text": "private void scheduleJob() {\n }", "title": "" }, { "docid": "229a176bcbfdec4480a6d7052a737760", "score": "0.6296714", "text": "public void autonomousPeriodic() {\r\n Scheduler.getInstance().run();\r\n }", "title": "" }, { "docid": "ed1bdbd443fa94ad3722ad95423be7b4", "score": "0.6288912", "text": "@Override\n\tpublic void robotPeriodic() {\n\t\t// Runs the Scheduler.\tThis is responsible for polling buttons, adding newly-scheduled\n\t\t// commands, running already-scheduled commands, removing finished or interrupted commands,\n\t\t// and running subsystem periodic() methods.\tThis must be called from the robot's periodic\n\t\t// block in order for anything in the Command-based framework to work.\n\t\tCommandScheduler.getInstance().run();\n\t}", "title": "" }, { "docid": "c87b032af6dcb426c9642bd57bc76ad6", "score": "0.62784517", "text": "@Override\n public void preStart() {\n getContext().system().scheduler().schedule(config.getMetaDataUpdateMaxDuration(),\n config.getMetaDataUpdateMaxDuration(), getSelf(), TICK, getContext().dispatcher(), null);\n }", "title": "" }, { "docid": "d13c1c0a6bf32a7f52e0bd9114d17fa2", "score": "0.6270074", "text": "@Override\n public void teleopPeriodic() {\n Scheduler.getInstance().run();\n }", "title": "" }, { "docid": "18b80f592570f9d5329a686b61dde72d", "score": "0.627003", "text": "@Override\n public void teleopPeriodic() {\n Scheduler.getInstance().run();\n }", "title": "" }, { "docid": "fc8dad51e6020c587c806a2970fb4f70", "score": "0.6262696", "text": "public void autonomousPeriodic() {\n Scheduler.getInstance().run();\n }", "title": "" }, { "docid": "fc8dad51e6020c587c806a2970fb4f70", "score": "0.6262696", "text": "public void autonomousPeriodic() {\n Scheduler.getInstance().run();\n }", "title": "" }, { "docid": "fc8dad51e6020c587c806a2970fb4f70", "score": "0.6262696", "text": "public void autonomousPeriodic() {\n Scheduler.getInstance().run();\n }", "title": "" }, { "docid": "fc8dad51e6020c587c806a2970fb4f70", "score": "0.6262696", "text": "public void autonomousPeriodic() {\n Scheduler.getInstance().run();\n }", "title": "" }, { "docid": "fc8dad51e6020c587c806a2970fb4f70", "score": "0.6262696", "text": "public void autonomousPeriodic() {\n Scheduler.getInstance().run();\n }", "title": "" }, { "docid": "80523424158d1bc5d90482393591da8b", "score": "0.6241099", "text": "@Override\n public void execute() {\n intake.run(throttle);\n }", "title": "" }, { "docid": "50e761b1dc3a24955aa2f475ea2a7ea2", "score": "0.622971", "text": "@Override\n public void teleopPeriodic() {\n Scheduler.getInstance().run();\n //climber.climberDashboard();\n cargo.cargoPeriodic();\n }", "title": "" }, { "docid": "addf8a0653acc5e69551c46287771568", "score": "0.62052387", "text": "@Override\n public void autonomousPeriodic() {\n scheduler.run();\n }", "title": "" }, { "docid": "aaf391af0f3927b4822cb454dcb92130", "score": "0.61884004", "text": "public void autonomousPeriodic()\n\t{\n\t\tScheduler.getInstance().run();\n\t\t\n\t\t// Update the SmartDashboard data about the image processing\n rpi.updateSmartDashboardData();\n rpi.updateSmartDashboardActive();\n\t}", "title": "" }, { "docid": "274da363e55421b9692af1d3b0105cd5", "score": "0.61838055", "text": "public void autonomousPeriodic()\n {\n Scheduler.getInstance().run();\n }", "title": "" }, { "docid": "2201249345dff1410eca13838f0a79a2", "score": "0.61770433", "text": "@Override\r\n\tpublic void run() {\n\t\t\r\n\t\trefreshPlayListCache();\r\n\t\trefreshOrder();\r\n\t\trefreshBaseData();\r\n\t\tstartFlag=true;\r\n\t}", "title": "" }, { "docid": "2fa0c70987f10a8b4cb6fd9efc6e51c0", "score": "0.61343515", "text": "@Override\n public void teleopPeriodic() {\n scheduler.run();\n }", "title": "" }, { "docid": "3c33a338baf786a19c90ade4dfc0572e", "score": "0.61339444", "text": "public void teleopPeriodic()\r\n\t{\r\n\t\tdashboard.update();\r\n\t\tbadScheduler.changeCommand(ControlsManager.secondaryXboxController.isYButtonPressed(), visionTracking);\r\n\t\tScheduler.getInstance().run();\r\n\t}", "title": "" }, { "docid": "91cdf349fc4fbf62c0f9a6aee0494643", "score": "0.61310524", "text": "@Override\n\tpublic void autonomousPeriodic() {\n\t\tScheduler.getInstance().run();\n\t}", "title": "" }, { "docid": "01682cc0d0123d351278be109c6dccfb", "score": "0.6129437", "text": "protected void scheduleNext() {\n }", "title": "" }, { "docid": "69fd6f09f42d6369cdb94b4890ea53cd", "score": "0.6128925", "text": "@Override\n\tpublic void teleopPeriodic() {\n\t\tScheduler.getInstance().run();\n\t}", "title": "" }, { "docid": "7208e0bdcb3487ef1915d83a011f61e7", "score": "0.61264545", "text": "@Run(at = \"Every 3s\")\n public void execute() {\n }", "title": "" }, { "docid": "ab54a452bf0f772b7ec46278e95fc375", "score": "0.6121594", "text": "public void teleopPeriodic() {\r\n Scheduler.getInstance().run();\r\n }", "title": "" }, { "docid": "79b7523338771509c464dee64a5d3a79", "score": "0.6109922", "text": "public void autonomousPeriodic() {\n Scheduler.getInstance().run();\n updateData();\n }", "title": "" }, { "docid": "4d59b867a4e1cc71393d87925049a5aa", "score": "0.6091058", "text": "protected void execute() {\r\n if (!distanceReached) {\r\n speed = Ballrus.driveTrain.getEncoderSpeed();\r\n if (Ballrus.driveTrain.getRangeInches() <= (Preferences.ultraActualShootDistance + (0.12 * speed)) && Ballrus.driveTrain.getRangeInches() > 0) { //if MB1220\r\n distanceReached = true;\r\n new TriggerShootReload().start();\r\n }\r\n }\r\n }", "title": "" }, { "docid": "77dd2a40582206fed4d66e3e3c25cf17", "score": "0.60907173", "text": "public void teleopPeriodic() {\n Scheduler.getInstance().run();\n }", "title": "" }, { "docid": "77dd2a40582206fed4d66e3e3c25cf17", "score": "0.60907173", "text": "public void teleopPeriodic() {\n Scheduler.getInstance().run();\n }", "title": "" }, { "docid": "7c3dd851ddf08fbaa6586f10ffa79e04", "score": "0.6073047", "text": "protected void execute() {\n \tRobot.drivetrain.updateRangefinder();\n }", "title": "" }, { "docid": "506f74fa982c29fdc761131593ce2c3c", "score": "0.6070259", "text": "@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t}", "title": "" }, { "docid": "abcab81c9bc4779c47203be8e5d4b240", "score": "0.60500664", "text": "protected void execute() {\n\t\tSmartDashboard.putString(\"Command\", \"Running Gyro Drive Forward Command\");\n\t\tSmartDashboard.putNumber(\"Timer\", timer.get());\n\t\tif (timer.get() < rampUpTime)\n\t\t\tRobot.driveSubsystem.forwardPartialPower(timer.get()/(2*rampUpTime)+0.5);\n\t\telse\n\t\t\tRobot.driveSubsystem.forwardwithGyro();\n }", "title": "" }, { "docid": "54a99e6ff172f86c05deb274bdd03a62", "score": "0.60448337", "text": "public void startExecuting() {\n this.delay = 40;\n }", "title": "" }, { "docid": "d5244d78a4d39ce2440e376df22bc2cc", "score": "0.60386276", "text": "protected void execute() {\n \tif (Robot.gearSetter.isOnPin()) {\n \tRobot.gearSetter.Set();\n \tSmartDashboard.putDouble(\"Gear Setter\", Robot.gearSetter.gearSetterEnc.getDistance());\n \t}\n \tRobot.drive_.setVelocity(-12, 0, 0); }", "title": "" }, { "docid": "c62ab9ff72123246127a2626376b468d", "score": "0.60353947", "text": "@Override\n\tpublic void executeCommand() {\n\t}", "title": "" }, { "docid": "6b66fb70c2c96f464fac3e1865c1a122", "score": "0.6030204", "text": "@Override\n public void execute() {\n \n switch (state) {\n case Init: \n startCycle();\n state = State.Running;\n break;\n case Running:\n if (Timer.getFPGATimestamp() >= endTime) {\n endCycle();\n state = State.Waiting;\n }\n break;\n case Waiting:\n if (Timer.getFPGATimestamp() >= endTime) {\n state = (count < repeat) ? State.Init : State.Done;\n }\n break;\n case Done:\n default:\n break;\n }\n drive.velocityTankDrive(cmd_speed, cmd_speed);\n }", "title": "" }, { "docid": "8d8abb8faff7bd073e3b1408f77293a7", "score": "0.6029567", "text": "public void teleopPeriodic()\n {\n Scheduler.getInstance().run();\n }", "title": "" }, { "docid": "69425d6f0bd69be53e8529d82c61b6bd", "score": "0.60281974", "text": "@Override\n public void autonomousPeriodic() {\n }", "title": "" }, { "docid": "69425d6f0bd69be53e8529d82c61b6bd", "score": "0.60281974", "text": "@Override\n public void autonomousPeriodic() {\n }", "title": "" }, { "docid": "fac6b6fd11c388e2508dc6fd05b8d75c", "score": "0.60188186", "text": "public CommandProcessRun() {\n if (theObserverService == null){\n theObserverService = new ObserverService();\n }\n }", "title": "" }, { "docid": "d97e9682803656cd9c025dfbff2ebb53", "score": "0.6000673", "text": "protected void execute() {\r\n if (Robot.oi.getWheels())\r\n Robot.shooter.enableWheels();\r\n else\r\n Robot.shooter.disableWheels();\r\n \r\n Robot.shooter.setPitch(Shooter.COLLECT_DISTANCE);\r\n }", "title": "" }, { "docid": "cbd2d83f5089aa428b93e3161d0c6187", "score": "0.59863067", "text": "protected void execute() {\n\n /*\n * Moves the spinner clockwise or counterclockwise for shortest distance if possible, and executes the right\n * command\n */\n Robot.colorSpinner.adjustDisk(moveClockwise);\n }", "title": "" }, { "docid": "986660172b24242b2421aeec3632b046", "score": "0.5976164", "text": "protected void execute() {\n \tRobot.intakeSubsystem.setSpeed(speed);\n }", "title": "" }, { "docid": "82623909ab269c66f2248ece4639c4c4", "score": "0.59709406", "text": "@Override\n\t\t\tpublic void run() {\n\t\t\t}", "title": "" }, { "docid": "3be51c3b851e3366aba97cc9beb2a138", "score": "0.59687465", "text": "@Override\n public void autonomousPeriodic() {\n }", "title": "" }, { "docid": "b216d757ed42c1ddedc9db57a2fb3611", "score": "0.5958168", "text": "public void runNow() {\n }", "title": "" }, { "docid": "e586ccc05beaeda4051dfa3b99741368", "score": "0.59531236", "text": "protected void execute() {\n \tintake.runIntake(this.power);\n }", "title": "" }, { "docid": "98c5a46af19c6720e7007de842bbbf68", "score": "0.59498864", "text": "@Override\r\n public void execute(Runnable command) {\n }", "title": "" }, { "docid": "2c21145bead9ece41870a6530be1a7bf", "score": "0.5946308", "text": "@Override\n\t\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\t}", "title": "" }, { "docid": "08e76f77e48fc92cad49dda0e3b75a9b", "score": "0.5943033", "text": "private void run() {\n this.ui.printWelcome();\n boolean shouldRun = true;\n while (shouldRun) {\n try {\n String strCommand = this.ui.readCommand();\n Command c = Parser.parse(strCommand);\n c.execute(this.tasks, this.ui, this.storage);\n shouldRun = !c.isExit();\n } catch (DukeException e) {\n this.ui.printError(e);\n } catch (ParseException e) {\n this.ui.print(\"Passed in an invalid date\");\n } catch (NoSuchElementException e) {\n shouldRun = false;\n }\n }\n }", "title": "" }, { "docid": "f5a32bcc258723c66b024ca08e01604f", "score": "0.593881", "text": "@Override\n\t\t\tpublic void run() {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "f5a32bcc258723c66b024ca08e01604f", "score": "0.593881", "text": "@Override\n\t\t\tpublic void run() {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "f5a32bcc258723c66b024ca08e01604f", "score": "0.593881", "text": "@Override\n\t\t\tpublic void run() {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "cb13eb2379996005015ff7c5f66a35e6", "score": "0.5934643", "text": "@Override\n public void run ()\n {\n //System.out.println(\"TickAction.run() \" + new Date().getTime());\n scc.scheduledTickTime = scheduledExecutionTime();\n scc.notifyTick();\n }", "title": "" }, { "docid": "b4449b8f10117cf22f7498d035fd9add", "score": "0.59266454", "text": "public void autonomousPeriodic()\r\n\t{\r\n\t\tdashboard.update();\r\n\t\tScheduler.getInstance().run();\r\n\t}", "title": "" }, { "docid": "df721218beb3c671ffacb3cc60b123be", "score": "0.5924646", "text": "@Override\n\t\tpublic void run() {\n\n\t\t}", "title": "" }, { "docid": "231e5de3e135b7db8d00e6cd4994dddb", "score": "0.59196943", "text": "@Override\n public void execute() {\n m_time_s -= 0.02;\n if (m_time_s > 0.0) {\n // Apply power\n m_drive.setDrivePower(POWER, 0.0);\n }\n else {\n // Stop\n m_drive.setDrivePower(0.0, 0.0);\n }\n }", "title": "" }, { "docid": "efe84125ae2feef0e041bc64d5707404", "score": "0.59084904", "text": "public void invoke() {\n commands.forEach(cmd -> cmd.Do());\n }", "title": "" }, { "docid": "856656fd5b1d20a954c0ea0717081385", "score": "0.5900648", "text": "@Override\n protected void execute() {\n HABClimb();\n autoClimb();\n }", "title": "" }, { "docid": "32d90a2b565084acd88d464c314fac82", "score": "0.5899204", "text": "public void teleopPeriodic() {\n Scheduler.getInstance().run();\n \n updateData();\n }", "title": "" }, { "docid": "06d6c97c90175167e0bb71100118395a", "score": "0.5896957", "text": "@Override\n public void scheduleServices() { \n }", "title": "" }, { "docid": "c50e1766e84b5d60e2d0b48f0a6f6d3a", "score": "0.58841896", "text": "public void run (){\t \t\n\t \t\t\n\t\t\tString cmd = null; // no specific command has been issued\n\t try {\n\t // initialize and discover Devices\n\t \tdiscoverDevices();\n\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\t\n\t /* Loop forever*/\t\t\t\t\t\n\t while (true){\n\t /* If an external command has been received, manage it else do default getValues() */\n\t //TODO: set command for cmd\n\t if (cmd == null)\n\t try {\n\t \t/* a sample every minute */\n\t\t\t\t\t\tThread.sleep(Constants.METER_STREAMING_DELAY);\n\t\t\t\t\t\tthis.getValues();\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t// prepare a JSON string and print it out\n\t\t\t\t\t\tString res = this.JSONprintAll(ps.getHash());\n\t\t\t\t\t\tSystem.out.println(res);\n\t\t\t\t\t\t\t\n\t\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\t\t\n\t }\t \n\t }", "title": "" }, { "docid": "4d8f4997672f05c93c2a36759e35344e", "score": "0.5882397", "text": "private void startRepeatingTask()\n {\n statusChecker.run();\n }", "title": "" }, { "docid": "1684538dfbf14416d1e6da5681de9e0e", "score": "0.58784646", "text": "@Override\n protected void execute() {\n HatchRollers.set(pwm); //this needs to refer to the subysstem\n }", "title": "" }, { "docid": "b2db47993ffdcc0f65b719f9239a8ef9", "score": "0.5875194", "text": "protected void execute() {\n \tgyroStraight(BACKUPSPEED);\n }", "title": "" }, { "docid": "8599dcfea896d58125075257454dfba8", "score": "0.58730555", "text": "@Override\n public void run() {\n synchronized (mParent) {\n if (compareTango.get() != mTango) {\n Log.i(TAG, \"Tango ran really fast\");\n return;\n }\n mCloudWorldManager.setTango(mTango);\n // Report \"Tango Connected\" events to Firebase Analytics.\n mFirebaseEventLogger.reportTangoConnectedEventToFirebase(mParent);\n if (command == null) {\n setState(State.WAIT_FOR_COMMAND);\n mCloudWorldManager.refreshAndGetWorlds();\n updateMonitorsState();\n } else {\n Log.i(TAG, \"Running command...\");\n command.run();\n }\n }\n }", "title": "" }, { "docid": "e717dc5734127dad2a528cffd525c588", "score": "0.5870235", "text": "@Override\n public void run() {\n state.updateBatteryVoltage();\n\n long workingTime = System.currentTimeMillis() - state.getStartTime();\n\n if (workingTime >= Constants.INITIAL_BALANCING_PERIOD) {\n navigator.enableAutonomousDrive();\n }\n }", "title": "" }, { "docid": "cffeb825fd24bc4546b49096a06c3577", "score": "0.586904", "text": "@Override\n public void robotPeriodic() {\n }", "title": "" }, { "docid": "f897ed643e47a7dc8dc94a2ab6952d13", "score": "0.5860253", "text": "@Override\n public void run() {}", "title": "" }, { "docid": "975eee9b7a4d78689b6cb86e7251e602", "score": "0.585834", "text": "protected void execute() {\r\n ballIntake.retractIntake();\r\n }", "title": "" }, { "docid": "15ad63ec85b0192c4744f69c1dc7f608", "score": "0.5857633", "text": "protected void execute() {\n \t autoMiddle.start();\n }", "title": "" }, { "docid": "5732e469da9beed7ea87452bce40dc63", "score": "0.58566535", "text": "@Override\r\n\t\tpublic void run() {\n\t\t\t\r\n\t\t}", "title": "" }, { "docid": "06847bbe00efa8a7216b93228761bb13", "score": "0.5849212", "text": "@Override\n protected void execute() {\n }", "title": "" }, { "docid": "06847bbe00efa8a7216b93228761bb13", "score": "0.5849212", "text": "@Override\n protected void execute() {\n }", "title": "" }, { "docid": "06847bbe00efa8a7216b93228761bb13", "score": "0.5849212", "text": "@Override\n protected void execute() {\n }", "title": "" }, { "docid": "06847bbe00efa8a7216b93228761bb13", "score": "0.5849212", "text": "@Override\n protected void execute() {\n }", "title": "" }, { "docid": "afb5524636472fd41f242bc4cbfbb88f", "score": "0.584577", "text": "@Override\n\tpublic void teleopPeriodic()\n\t{\n\t\ttry\n\t\t{\t\t\t\n\t\t\tScheduler.getInstance().run();\n\t\t\tlog();\n\t\t\t\n\t\t}\n\t\tcatch (Throwable t)\n\t\t{\n\t\t\tLogger.logThrowable(t);\n\t\t\tthrow t;\n\t\t}\n\t\tsysIntake.IntakeState();\n\t}", "title": "" }, { "docid": "c16e084b33442963e92e39ee2622d674", "score": "0.5841083", "text": "@Override\n public void execute(Runnable command) {\n mWaitTaskList.add(((ScanTask)command).getScanPath());\n super.execute(command);\n }", "title": "" }, { "docid": "a4edd9d8334b1496aa5bb67d733e4ca6", "score": "0.5834309", "text": "protected void execute() {\n \tdouble power = SmartDashboard.getNumber(\"Collector Power\", 1);\n \tdouble current = SmartDashboard.getNumber(\"Current Maximum\", 20);\n \tdouble timeout = SmartDashboard.getNumber(\"Current Overload Delay\", 500);\n \t\n \tif (Robot.collector.getRightCurrent() > current) {\n \t\trightTimeout.reset();\n \t}\n \t\n \tif (Robot.collector.getLeftCurrent() > current) {\n \t\tleftTimeout.reset();\n \t}\n \t\n \tif (rightTimeout.get() > timeout) {\n \t\tRobot.collector.setRightMotor(power);\n \t} else {\n \t\tRobot.collector.setRightMotor(0);\n \t}\n \t\n \tif (leftTimeout.get() > timeout) {\n \t\tRobot.collector.setLeftMotor(power);\n \t} else {\n \t\tRobot.collector.setLeftMotor(0);\n \t}\n }", "title": "" }, { "docid": "6a712bbbe21303e053462ec81cefe8b5", "score": "0.5833627", "text": "public void updatePeriodically() {\n\t\t// TODO: implement in subclass\n\t}", "title": "" }, { "docid": "298c3e565edf9087b133ee95dacb3287", "score": "0.5832727", "text": "protected void execute() {\n\t\tdouble leftMotorValue = RobotMath.calcShooterSpeed(Robot.subChassis.getLeftEncoderRate(), _targetShootSpeed, _targetShootThrottle);\n\t\tdouble rightMotorValue = RobotMath.calcShooterSpeed(Robot.subChassis.getRightEncoderRate(),_targetShootSpeed, _targetShootThrottle);\n\t\tSmartDashboard.putBoolean(\"Running Auto\", true);\n\t\t//Robot.subShooter.run(leftMotorValue, rightMotorValue);\n\t\tRobot.subShooter.run(Settings.shooterTargetThrottle, Settings.shooterTargetThrottle);\n\t\tif (true/*RobotMath.withinDeadBand(_targetShootThrottle, Settings.shooterDeadBandPercent, leftMotorValue)\n\t\t\t\t&& RobotMath.withinDeadBand(_targetShootThrottle, Settings.shooterDeadBandPercent, rightMotorValue)*/) {\n\t\t\tRobot.subFeeder.run(Settings.feederMotorSpeed);\n\t\t\t//_isFinished = true;\n\t\t} else {\n\t\t\tRobot.subFeeder.run(0);\n\t\t}\n\n\t}", "title": "" }, { "docid": "268744c21350c16baf1289351cd929b2", "score": "0.58309436", "text": "@Override\r\n\tpublic void run() {\n\t\t\r\n\t}", "title": "" }, { "docid": "268744c21350c16baf1289351cd929b2", "score": "0.58309436", "text": "@Override\r\n\tpublic void run() {\n\t\t\r\n\t}", "title": "" }, { "docid": "268744c21350c16baf1289351cd929b2", "score": "0.58309436", "text": "@Override\r\n\tpublic void run() {\n\t\t\r\n\t}", "title": "" }, { "docid": "268744c21350c16baf1289351cd929b2", "score": "0.58309436", "text": "@Override\r\n\tpublic void run() {\n\t\t\r\n\t}", "title": "" }, { "docid": "268744c21350c16baf1289351cd929b2", "score": "0.58309436", "text": "@Override\r\n\tpublic void run() {\n\t\t\r\n\t}", "title": "" }, { "docid": "268744c21350c16baf1289351cd929b2", "score": "0.58309436", "text": "@Override\r\n\tpublic void run() {\n\t\t\r\n\t}", "title": "" }, { "docid": "532e885fb8ff95a6a1f7df9bb6b791ce", "score": "0.58292836", "text": "public void run() {\n\t\tresumen();\n\t}", "title": "" }, { "docid": "c693e43891e7e773f04dc9b830ea8363", "score": "0.5826601", "text": "@Override\r\n public void run() {\n service.longTime();\r\n }", "title": "" }, { "docid": "c693e43891e7e773f04dc9b830ea8363", "score": "0.5826601", "text": "@Override\r\n public void run() {\n service.longTime();\r\n }", "title": "" }, { "docid": "5fad1e7f946081f123c2bc28ae8eb9e6", "score": "0.5826284", "text": "@Override\n\tpublic void run() {\n\t\texecute();\n\t}", "title": "" } ]
e9d00c2fac6a7da2c0f01dd0895e07c3
Append an element to the CatchClause list.
[ { "docid": "d5d0a681a742d249918d26c4090509b3", "score": "0.6684364", "text": "public void addCatchClause(CatchClause node) {\n List<CatchClause> list = (parent == null || state == null) ? getCatchClauseListNoTransform() : getCatchClauseList();\n list.addChild(node);\n }", "title": "" } ]
[ { "docid": "8f962e62fae48f369c69f7a08ba9291d", "score": "0.6364941", "text": "public void addElement(Expression element){\n\t\telements.add(element);\n\t}", "title": "" }, { "docid": "c5d9cb3432f0ce73f3a9ae5152f85396", "score": "0.6123237", "text": "public void add(Statement element) {\n ensureSize(size + 1);\n arr[size++] = element;\n }", "title": "" }, { "docid": "5289793eea452cbc926f8639bf3ee614", "score": "0.6048442", "text": "void append(E element);", "title": "" }, { "docid": "98453494cfb2279d9693d4fa247c44b4", "score": "0.58552", "text": "public @Override boolean add(E element) {\n \tappend(element);\n \treturn true;\n }", "title": "" }, { "docid": "52582dbd663b1d7e81bd76e4e52f0c24", "score": "0.5849381", "text": "public void insertClause(int ix, EClause c)\n\t{ clauses.add(ix, c); }", "title": "" }, { "docid": "f284a46038d2a3cc4a177a994a2e92d9", "score": "0.5823723", "text": "public void add(E element) {\n\t\t// your code here\n\t}", "title": "" }, { "docid": "5ae9d054f4480f7672b83160f423731d", "score": "0.5732226", "text": "public void append(T element);", "title": "" }, { "docid": "5ae9d054f4480f7672b83160f423731d", "score": "0.5732226", "text": "public void append(T element);", "title": "" }, { "docid": "3263c57b4a9f9d44b1d1ed881338bfe6", "score": "0.56575817", "text": "public void addElement(ErStackTraceElement element){\n\n if (className == null){\n\n declaringClass = element.getDeclaringClass();\n if (declaringClass.contains(\".\")){\n className = declaringClass.substring(declaringClass.lastIndexOf(\".\")+1);\n packageName = declaringClass.substring(0,declaringClass.lastIndexOf(\".\"));\n }\n else{\n className = declaringClass;\n packageName = \"\";\n }\n\n fileName = element.getFileName();\n\n if (checkBasePackages(declaringClass)){\n isBasePackage = true;\n }\n }\n\n stackTraceElements.add(element);\n }", "title": "" }, { "docid": "fd4f243e6ee9829cb7de2a612e68356e", "score": "0.55806065", "text": "public void validAdd(String element){\n\t\tlist.addLast(element);\n\t}", "title": "" }, { "docid": "2979efb3aaa49c54c8cf4f7c2901103d", "score": "0.5563567", "text": "private void addClasspathElement(final ClasspathRelativePath classpathEltPath, final LogNode log) {\n if (rawClasspathElementsSet.add(classpathEltPath)) {\n rawClasspathElements.add(classpathEltPath);\n if (log != null) {\n log.log(\"Found classpath element: \" + classpathEltPath);\n }\n } else {\n if (log != null) {\n log.log(\"Ignoring duplicate classpath element: \" + classpathEltPath);\n }\n }\n }", "title": "" }, { "docid": "18bd18944908771884ff5298cf35c598", "score": "0.55317765", "text": "public void add(Declarator element) throws ChameleonProgrammerException;", "title": "" }, { "docid": "5185e6bc5554aecc00d2361f1483ed5c", "score": "0.5513301", "text": "public void add(String element){\n\t\tif(!contains(element)){\n\t\t\tlist.addLast(element);\n\t\t}\n\t}", "title": "" }, { "docid": "28bfd4662a9037c1119dce0fa762baaa", "score": "0.5496819", "text": "public final void add(final int index, final TokenStatement element) {\r\n\t\tif (index > this.size || index < 0) {\r\n\t\t\tthrow new IndexOutOfBoundsException( \"Index: \" + index + \", Size: \" + this.size );\r\n\t\t}\r\n\t\tthis.ensureCapacity( this.size + 1 ); // Increments modCount!!\r\n\t\tSystem.arraycopy( this.elementData, index, this.elementData, index + 1, this.size - index );\r\n\t\tthis.elementData[index] = element;\r\n\t\tthis.size++;\r\n\t}", "title": "" }, { "docid": "0da73d04c031569dd23a927246fb3547", "score": "0.54171616", "text": "public void addExisting(SelectableGraphElement element)\n {\n elements.add(element);\n }", "title": "" }, { "docid": "3a2530ea3914cfc600238c142e4311ec", "score": "0.5285751", "text": "public void add(int index, E element);", "title": "" }, { "docid": "dd46c6f9a9fde75bcbe9e4cba4a23ab6", "score": "0.52846164", "text": "@Override\n\t\tpublic void add(int index, LogCate element) {\n\t\t\tsuper.add(index, element);\n\t\t\tLogCateManager.getInstance().onLogsChanged();\n\t\t}", "title": "" }, { "docid": "bd8451d64236aa912a7807363506d09b", "score": "0.52777535", "text": "public void append(Block.Entry entry) {\r\n\t\tstmts.add(new Entry(entry.code,entry.attributes()));\r\n\t}", "title": "" }, { "docid": "ff49ae1cdf913820abea2faa6ee2dba5", "score": "0.52776724", "text": "@Override\r\n\tpublic void add(T element) {\n\t\tthis._list.add(element);\r\n\t}", "title": "" }, { "docid": "0abc202519bf033d7ec4bf0a149a9abf", "score": "0.527514", "text": "public void addToDBConsistCheckQueryExecs(entity.DBConsistCheckQueryExec element) {\n __getInternalInterface().addArrayElement(DBCONSISTCHECKQUERYEXECS_PROP.get(), element);\n }", "title": "" }, { "docid": "8e06160288b79ab889ff7c80871083a1", "score": "0.5268425", "text": "public void addToDBConsistCheckQueryExecs(entity.DBConsistCheckQueryExec element) {\n __getInternalInterface().addArrayElement(DBCONSISTCHECKQUERYEXECS_PROP.get(), element);\n }", "title": "" }, { "docid": "4c3f418b7413cfb7024357b69c5860f8", "score": "0.5241603", "text": "private void addElement(PEElement element) {\n\t\tif (currentGroups.size() > 0) {\n\t\t\tcurrentGroups.peek().getElements().add(element);\n\t\t} else if (currentLabeledNodeType != null) {\n\t\t\tcurrentLabeledNodeType.getElements().add(element);\n\t\t} else {\n\t\t\tcurrentNodeType.getElements().add(element);\n\t\t}\n\t}", "title": "" }, { "docid": "2969118734a9a05475169182352ba560", "score": "0.5236827", "text": "public void addElement(ThingNode element)\n\t{\n\t\tsuper.addElement(element);\n\t\telements.add(element);\n\t}", "title": "" }, { "docid": "6b56f57cf94b1be3be43fc22a981970b", "score": "0.5229865", "text": "public void addMatchedElement(ElementWrapper element)\n\t{\n\t\tif (element != null)\n\t\t{\n\t\t\t_matchedElements.add(element);\n\t\t\t_isMatched = true;\n\t\t}\n\t}", "title": "" }, { "docid": "b3fa5ec361fd9eb2a739c2995dbfa947", "score": "0.5181628", "text": "private Node append(E element) {\n \treturn new Node(sentinel.pred, element);\n }", "title": "" }, { "docid": "dd11e1f7233853b9062d2c43841506c6", "score": "0.5155418", "text": "public void addElement(Integer e){\n list.add(e);\n }", "title": "" }, { "docid": "c05b477ca40f27654e814e5dd693117f", "score": "0.51549625", "text": "public void addAll(String path, String[] element) {\n\t\taddAll(path, element, 1);\n\t}", "title": "" }, { "docid": "added96562ed7a8e72649347b926bb38", "score": "0.51493204", "text": "public void add(String element) {\n\t\tslist.add(element);\n\t}", "title": "" }, { "docid": "66320a3f82561f4cf40168f9a78c853d", "score": "0.51124436", "text": "public void addQueryElement(QueryElement element);", "title": "" }, { "docid": "d56a110627909e7f3045993f892e7f63", "score": "0.5112038", "text": "@Override\n public void add(T element) {\n add(size(), element);\n }", "title": "" }, { "docid": "7aa18baa6ef752bd52db5ec1d13afb45", "score": "0.5109782", "text": "public void addAlert(String alert) {\n\t\talertsList.add(alert);\n\t\t// now call alertFound()\n\t\t// alertFound();\n\t}", "title": "" }, { "docid": "9510eeea2ab206395e75576249d018de", "score": "0.5102519", "text": "void add(Object element);", "title": "" }, { "docid": "a7418520192fea3bf004cd8e37e42008", "score": "0.51021147", "text": "public void addAfter(T existing, T element) throws ElementNotFoundException;", "title": "" }, { "docid": "d044eb963498bd31c378c00d56367903", "score": "0.50974184", "text": "public Formula addClause(Clause c) {\n\n\t\tFormula f2;\n\t\tf2=new Formula(c,this.clauses);\n\t\treturn f2;\n\t}", "title": "" }, { "docid": "4f4df30c5e10bd44d81bd0b2294d5771", "score": "0.5060684", "text": "public void addException(Exception exception);", "title": "" }, { "docid": "227f6c09d8c323a9bbcee4658d76b03d", "score": "0.5033692", "text": "ClassPath add(ClassPathElement element);", "title": "" }, { "docid": "1436e9c838e25a629c59fa6a7052cd96", "score": "0.5029299", "text": "private void addClasspathElement(String pathElement) {\n\t if (classpathElementsSet.add(pathElement)) {\n\t final File file = new File(pathElement);\n\t if (file.exists()) {\n\t classpathElements.add(file);\n\t }\n\t }\n\t}", "title": "" }, { "docid": "b5c7099730935b4ab04e01a6cac255d9", "score": "0.50056124", "text": "public void add(T element);", "title": "" }, { "docid": "b5c7099730935b4ab04e01a6cac255d9", "score": "0.50056124", "text": "public void add(T element);", "title": "" }, { "docid": "07a70821c67377e10f01dbf63f851d1e", "score": "0.49948764", "text": "public void addNormal(E element) {\n\t\tsuper.add(element);\r\n\t}", "title": "" }, { "docid": "e68d82999a9ece7432670b06842942ff", "score": "0.49861163", "text": "public void setCatchClauseList(List<CatchClause> list) {\n setChild(list, 1);\n }", "title": "" }, { "docid": "16a2d1cf9f38732e426f012fd32ecfe8", "score": "0.49794817", "text": "public void addEntryToList(String entry){\n\t\tlogList.add(entry);\n\t}", "title": "" }, { "docid": "40b876ec5dfa1fb968fa30e70e051ec5", "score": "0.49617058", "text": "public void addElement(TLProperty element);", "title": "" }, { "docid": "5a4603024a6d1a269bcaf8c35b6cca45", "score": "0.49612883", "text": "public void add(T element, int pos);", "title": "" }, { "docid": "0cdc438d26e3fe252462e4871b3d8de6", "score": "0.49586156", "text": "public void add(GuiElementBase element)\n\t\t{ insert(children.size(), element); }", "title": "" }, { "docid": "b02dec0cfcac06a96f5343dbce9dae57", "score": "0.49551758", "text": "public synchronized void addElement(Element element) throws DTDException {\r\n\r\n String name = element.getName();\r\n\r\n if (name == null) {\r\n String err = \"An element declaration must contain a name.\";\r\n throw new DTDException(err);\r\n }\r\n if (elements.containsKey(name)) {\r\n String err = \"An element declaration already exists with the given name: \";\r\n throw new DTDException(err + name);\r\n }\r\n\r\n elements.put(name,element);\r\n\r\n }", "title": "" }, { "docid": "75b84d855da18454350379c7e9db6bd0", "score": "0.4941984", "text": "public void addElement(int index, TLProperty element);", "title": "" }, { "docid": "4ed33e45ffbb57af2541525f0828768b", "score": "0.49406534", "text": "public void addElement(Object ob) {\r\n\t\tif (ob == null) {\r\n\t\t\telements.add(TObject.nullVal());\r\n\t\t} else if (ob instanceof TObject || ob instanceof ParameterSubstitution || ob instanceof Variable || ob instanceof FunctionDef || ob instanceof Operator || ob instanceof StatementTree || ob instanceof TableSelectExpression) {\r\n\t\t\telements.add(ob);\r\n\t\t} else {\r\n\t\t\tthrow new Error(\"Unknown element type added to expression: \" + ob.getClass());\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "67157db27c44866d14128f5fafdb7ed8", "score": "0.49406332", "text": "public void addElement(int element) {\n \tif(element > 0) {\n \tarray[head++] = element;\n \t}else {\n \t\tthrow new RuntimeException(\"Invalid element to add\");\n \t}\n }", "title": "" }, { "docid": "92e1f19be5a051d5fd0da814d5f01365", "score": "0.49390298", "text": "public void addToJurisdictions(entity.AppCritJurisdiction element);", "title": "" }, { "docid": "0085baf7e2b99ceb438276545d681419", "score": "0.4930741", "text": "public void addElement(SvgElement element) {\n Objects.requireNonNull(element);\n if (!children.contains(element)) {\n children.add(element);\n updateChildrenAttribute();\n }\n }", "title": "" }, { "docid": "f96b51316708288230feca9e3e1c6b5d", "score": "0.49133417", "text": "public void add(E elem) {\n if (!list.contains(elem))\n list.insertLast(elem);\n }", "title": "" }, { "docid": "e1c9d22316e3fa95b02660eebabab028", "score": "0.48920798", "text": "public void add(Object element) {\n queue.put( new DelayedElement( element ) );\n }", "title": "" }, { "docid": "d5f8e8b9659d42ea2e2e14215b66c75d", "score": "0.48760843", "text": "public void add (T element);", "title": "" }, { "docid": "81c7980d3128e7f5d4d8884365e9256e", "score": "0.4876048", "text": "public boolean add(Object element);", "title": "" }, { "docid": "c1efd94ecb9e7970164008ca671ac92a", "score": "0.48694864", "text": "XomNode appendElement(Element element) throws XmlBuilderException;", "title": "" }, { "docid": "de7aada8525e4b724c284abdc0799a1b", "score": "0.48689944", "text": "public void insert(E element) {\n // TODO: YOUR CODE HERE\n if (contains(element)) {\n throw new IllegalArgumentException();\n } else {\n setElement(size() + 1, element);\n size += 1;\n bubbleUp(size());\n }\n }", "title": "" }, { "docid": "0eb98bb01c981210b9893dcf050fc46d", "score": "0.48664814", "text": "public void addToLinesOfBusiness(entity.AppCritLineOfBusiness element);", "title": "" }, { "docid": "fe1b896a3dbeebf8d972ffa5f1a02f4e", "score": "0.48657027", "text": "TrackRailsSectionsAtPosition tryAdd(TrackRailsSingleNodeElement sectionToAdd);", "title": "" }, { "docid": "21c8d61621f2f8164c7bdf6b62ecca24", "score": "0.48653215", "text": "public void addError(ShadowException exception) {\n if (exception != null) errorList.add(exception);\n }", "title": "" }, { "docid": "3a09ca5617f1cc398bf282f4460e2f67", "score": "0.4862696", "text": "void add(int index, Object element);", "title": "" }, { "docid": "f23f32fa6fa1cfc4a23c1f282bca2392", "score": "0.48572713", "text": "public void append(Object item);", "title": "" }, { "docid": "c594a3eaa7fa50eb5c3715210bf5ed82", "score": "0.48568955", "text": "public void addBoundContainerElement(IDecisionVariable element) {\n nestedElements.add(element);\n }", "title": "" }, { "docid": "8e175a3b0cf49efb15906a9735145bd1", "score": "0.4830071", "text": "public void addToPolicyTransactions(entity.AppCritPolicyTransaction element);", "title": "" }, { "docid": "06559a4b752221eac9799c662f22de01", "score": "0.48292655", "text": "public void push(Object element) {\r\n\t\tal.add(element, al.listSize);\r\n\t}", "title": "" }, { "docid": "2b914742d001556531752308268f66a5", "score": "0.48256695", "text": "public abstract void add(T element);", "title": "" }, { "docid": "2b914742d001556531752308268f66a5", "score": "0.48256695", "text": "public abstract void add(T element);", "title": "" }, { "docid": "351e78b0ab32023f2cbc0491f97bfa04", "score": "0.48157367", "text": "public void add(int index, Object element) {\r\n addBefore(element, (index == size ? header : entry(index)));\r\n }", "title": "" }, { "docid": "1c014c18bce01060229f70ac311144d3", "score": "0.48153016", "text": "public static <E> void append(List<E> list){\n\n }", "title": "" }, { "docid": "701ceb1a689e66a3924e92dafcef8013", "score": "0.48078874", "text": "public static <T> ConstList<T> append(List<T> list, T element) {\n TempList<T> ans = new TempList<T>(list.size() + 1);\n ans.addAll(list).add(element);\n return ans.makeConst();\n }", "title": "" }, { "docid": "4717c70f4f4b71e62a33ca50bcaf2672", "score": "0.47987723", "text": "void add(int i, E e) throws IndexOutOfBoundsException;", "title": "" }, { "docid": "f750999a492fcda81b9c3443e9fa080a", "score": "0.47850993", "text": "@Override\n public void add(T element) throws Exception\n {\n \n if (!(element instanceof Comparable))\n {\n throw new Exception(\"Bad things happened\");\n }\n \n Comparable comparableElement = (Comparable) element;\n \n //expand array if full\n \n if (tail == myArray.length)\n {\n expandArray();\n }\n \n //search for correct spot\n int insertPosition;\n for (insertPosition = 0; insertPosition < tail && comparableElement.compareTo(myArray[insertPosition]) > 0; insertPosition++)\n {\n //empty on purpose\n }\n \n //shift elements over\n \n for (int i = tail; i > insertPosition; i--)\n {\n myArray[i] = myArray[i - 1];\n }\n \n //place the element\n \n myArray[insertPosition] = element;\n tail++;\n }", "title": "" }, { "docid": "0f690c5bbd4285cfc1dcbf3dc15e13f3", "score": "0.4781815", "text": "@Override\n public void addAfter(T target, T element){\n int index = getIndex(target)+1;\n add(index,element);\n }", "title": "" }, { "docid": "423f16ee04c106630e0081eb6798444b", "score": "0.47742927", "text": "void add(int index, T element);", "title": "" }, { "docid": "423f16ee04c106630e0081eb6798444b", "score": "0.47742927", "text": "void add(int index, T element);", "title": "" }, { "docid": "1bfe035f5c989c654cfc6b6df87390c5", "score": "0.47732437", "text": "public ElementsBag add(HTMLElement element) {\n iterable.elements.push(element);\n return that();\n }", "title": "" }, { "docid": "023bf4f9f9bbd4c7a171805112fe86fd", "score": "0.4773", "text": "public void addException(String exception) {\n logger.debug(\"Exception added \\\"{}\\\"\", exception);\n exceptionList.add(exception.toLowerCase());\n }", "title": "" }, { "docid": "d7e060e1f37aa7f8114075bb8ec58ab2", "score": "0.4769312", "text": "@Override\n\t\tpublic void add(int index, Community element) {\n\t\t\t\n\t\t}", "title": "" }, { "docid": "59f8f28123c384e3f0071e8f8a7685d5", "score": "0.476899", "text": "void append(E[] elements);", "title": "" }, { "docid": "0a6dcc3997fd5ae1cd99bad27fd9dc49", "score": "0.47656536", "text": "void add(int i , E e) throws IndexOutOfBoundsException;", "title": "" }, { "docid": "c1651eab9f5f920fcc28e96ea6d4107d", "score": "0.47635627", "text": "StoreResponse append(CACHE_ELEMENT element);", "title": "" }, { "docid": "be642326008fc687902d5c31db7c0d43", "score": "0.47619757", "text": "public void append(Object element)\n {\n if(head==tail){\n head=tail=new SLListNode(element,null);\n return;\n }\n tail=tail.next=new SLListNode(element,null);\n }", "title": "" }, { "docid": "11a0415c76cbae5a4678f10e28387064", "score": "0.47582144", "text": "public void addToTrace(String traceEntry) {\n\t\tif (traceEntry != null && !traceEntry.isEmpty()) {\n\t\t\ttrace.add(traceEntry);\n\t\t}\n\t}", "title": "" }, { "docid": "5966e14f2b3d94e1a2f0b37e9f5b230f", "score": "0.4757851", "text": "public TempList<T> add(T elem) {\n chk();\n list.add(elem);\n return this;\n }", "title": "" }, { "docid": "0d0070d7f9b07b14ded1b5de2fca4438", "score": "0.4752264", "text": "public void addMessageListExpected(StringAndMessage arg) {\n this.messageListExpected.add(arg);\n }", "title": "" }, { "docid": "1e3faae8ebe3b802090c300e4a8998c3", "score": "0.47472996", "text": "void add(T element);", "title": "" }, { "docid": "1e3faae8ebe3b802090c300e4a8998c3", "score": "0.47472996", "text": "void add(T element);", "title": "" }, { "docid": "4a81d65841f394d92b18a90bfa338593", "score": "0.4733433", "text": "public void add(Fraction element)\r\n\t{\n\t\tif(n==a.length)\r\n\t\t{\r\n\t\t\t// khai bao 1 mang Rectangle b\r\n\t\t\tFraction b[]= new Fraction[a.length*2];\r\n\t\t\tfor(int i=0;i<n;i++)\r\n\t\t\t{\r\n\t\t\t\tb[i]=a[i];\r\n\t\t\t}\r\n\t\t\t//gan dia chi b qua a\r\n\t\t\ta=b;\r\n\t\t}\r\n\t\ta[n]=element;\r\n\t\tn++;\r\n\t}", "title": "" }, { "docid": "62716fa23d6150b6a5eb3a451e5f3bb0", "score": "0.47314242", "text": "public abstract void add(T element, int index);", "title": "" }, { "docid": "9503d279d7be6a77112b530b3c15aa60", "score": "0.47290477", "text": "void addAfter(T target, T element);", "title": "" }, { "docid": "2b17a5521a57098fb3e32324eff5d7c6", "score": "0.47275984", "text": "public void addElement(Integer elem){\n\t\tlist.add(elem);\n\t}", "title": "" }, { "docid": "bba9c32c93ed22621fe582ed5fcee59d", "score": "0.47274327", "text": "private void catchClause(String label, Scope scope, Vector queue)\r\n {\r\n matchKeyword(Keyword.CATCHSY);\r\n matchKeyword(Keyword.LPARSY);\r\n\r\n Parameter parameter = formalParameter();\r\n\r\n Operation root = new Operation();\r\n root.code = \"DUP \\\" \" + parameter.type.ident.string.substring(parameter.type.ident.string.lastIndexOf('.') + 1) + \" \\\" INSTANCEOF\\n IF\\n\";\r\n queue.add(root);\r\n\r\n matchKeyword(Keyword.RPARSY);\r\n\r\n VariableType a = new VariableType(parameter.type, 0);\r\n a.name = parameter.name;\r\n\r\n Vector v = new Vector();\r\n v.add(\"\" + Operation.newLabel());\r\n block(null, a, scope, v, Scope.CATCH, null, queue);\r\n\r\n root = new Operation();\r\n root.code = \"DUP \" + label + \" BRANCH\\nENDIF\\n\";\r\n queue.add(root);\r\n }", "title": "" }, { "docid": "6abc0043869341db034bf9ac55f8cec8", "score": "0.47270492", "text": "public void add(E element){\n\t\tArrayQueue<E> temp = new ArrayQueue<E>();\n\t\ttemp.enqueue(element);\n\t\tQ.enqueue(temp);\n\t}", "title": "" }, { "docid": "18640406609f7732cae26e52c55f7203", "score": "0.4723147", "text": "public void add(int element);", "title": "" }, { "docid": "32c365306538ad4fb59ab9867fb7f6ee", "score": "0.47221982", "text": "@Override\r\n public void add(int index, E element) {\r\n if (index < 0 || index > size) {\r\n throw new IndexOutOfBoundsException();\r\n\r\n }\r\n for (int i = 0; i < size; i++) {\r\n if (get(i).equals(element)) {\r\n throw new IllegalArgumentException();\r\n }\r\n }\r\n\r\n LinkedListIterator it = new LinkedListIterator(index);\r\n it.add(element);\r\n\r\n }", "title": "" }, { "docid": "f8fd49a4f113b5542097eec3b5813a73", "score": "0.47219273", "text": "@Override\n\tpublic void add(int idx, E element) {\n\t\tif (element == null)\n\t\t\tthrow new NullPointerException();\n\t\tif (idx < 0 || idx > size())\n\t\t\tthrow new IndexOutOfBoundsException();\n\t\tfor (int i = 0; i < size; i++) {\n\t\t\tif (element.equals(list[i]))\n\t\t\t\tthrow new IllegalArgumentException();\n\t\t}\n\t\t// Element is added to the end of the list\n\t\tif (idx == size)\n\t\t\tlist[idx] = element;\n\n\t\t// Element is added at the beginning or middle\n\t\telse {\n\t\t\tfor (int i = size; i > idx; i--) {\n\t\t\t\tlist[i] = list[i - 1];\n\t\t\t}\n\t\t\tlist[idx] = element;\n\t\t}\n\n\t\tsize++;\n\t\tif (size == list.length)\n\t\t\tgrowArray();\n\n\t}", "title": "" }, { "docid": "e6b1623417ec73a1d9174950453c1bab", "score": "0.47208425", "text": "public void testAddException() {\r\n list.add(\"A\");\r\n Exception e = null;\r\n try {\r\n list.add(2, \"B\");\r\n } \r\n catch (Exception exception) {\r\n e = exception;\r\n }\r\n assertTrue(e instanceof IndexOutOfBoundsException);\r\n e = null;\r\n try {\r\n list.add(-1, \"B\");\r\n } \r\n catch (Exception exception) {\r\n e = exception;\r\n }\r\n assertTrue( e instanceof IndexOutOfBoundsException);\r\n }", "title": "" }, { "docid": "1776eaace2df39559cc7ed6922a51a6d", "score": "0.47171906", "text": "public void push(E element) {\r\n items.add(0, element);\r\n }", "title": "" }, { "docid": "952b7192db858dc2a31437bad45ba580", "score": "0.47058955", "text": "public void append(Object data){\r\n try{\r\n throw new LinkedListException(); //cannot be used so throwing an exception\r\n }\r\n catch (Exception LinkedListException){\r\n System.out.println(\"Not valid method\");\r\n }\r\n }", "title": "" }, { "docid": "3900460c9f7b231a949db34463951b43", "score": "0.4694151", "text": "final void addError( ParsedElement parsedElement, ResourceKey errorMsg )\n {\n verify( parsedElement, false, errorMsg, EMPTY_ARRAY );\n }", "title": "" } ]
6e230a8d64aa764716def8e60faf1dad
Constructor for the SerialComm class
[ { "docid": "19647c79ee3982e68cc666a3ed80578f", "score": "0.722866", "text": "public SerialComm(String name) throws SerialPortException {\n\t\tport = new SerialPort(name);\t\t\n\t\tport.openPort();\n\t\tport.setParams(SerialPort.BAUDRATE_9600,\n\t\t\tSerialPort.DATABITS_8,\n\t\t\tSerialPort.STOPBITS_1,\n\t\t\tSerialPort.PARITY_NONE);\n\t\t\n\t\tdebug = false; // Default is to NOT be in debug mode\n\t}", "title": "" } ]
[ { "docid": "455172da815c4ff64d67d8cd57f77850", "score": "0.692416", "text": "public Serial() throws IOException {\n\t\tthis(\"/dev/master\", 9600);\n\t}", "title": "" }, { "docid": "2c2a218ef6a1b8d439d6c6dba409485d", "score": "0.6870521", "text": "public DevComm(Context context, Spinner p_spDevice) {\r\n\r\n// \tLibDebugManage.DeleteLog();\r\n\r\n m_Context = context;\r\n mApplicationContext = context;\r\n\r\n // UART Driver Init\r\n m_uartDriver = new CH34xUARTDriver((UsbManager) mApplicationContext.getSystemService(Context.USB_SERVICE), m_Context, UART_ACTION_USB_PERMISSION);\r\n\r\n // Buffer Init\r\n m_nConnected = 0;\r\n m_pWriteBuffer = new byte[DevComm.MAX_DATA_LEN];\r\n m_pReadBuffer = new byte[DevComm.MAX_DATA_LEN];\r\n m_pSerialBuf = new SerialBuf();\r\n\r\n DispQueue = new DispQueueThread();\r\n DispQueue.start();\r\n m_SerialPort = new SerialControl();\r\n\r\n mSerialPortFinder = new SerialPortFinder();\r\n String[] entryValues = mSerialPortFinder.getAllDevicesPath();\r\n List<String> allDevices = new ArrayList<String>();\r\n allDevices.add(\"CH34xUART\");\r\n for (int i = 0; i < entryValues.length; i++) {\r\n allDevices.add(entryValues[i]);\r\n//\t\t\tLibDebugManage.WriteLog2(entryValues[i]);\r\n }\r\n ArrayAdapter<String> aspnDevices = new ArrayAdapter<String>(m_Context, android.R.layout.simple_spinner_item, allDevices);\r\n p_spDevice.setAdapter(aspnDevices);\r\n }", "title": "" }, { "docid": "dc991ff48b8e9afe69a2698437e60021", "score": "0.6854131", "text": "CommObject createCommObject();", "title": "" }, { "docid": "35215a1b066ee929a06df64d8a34dbdb", "score": "0.68401825", "text": "Device (String serial) {\n serialNumber = serial;\n }", "title": "" }, { "docid": "d3da7a56cdf5dcf6a0953395472e9261", "score": "0.6809312", "text": "public TcpSerialHub() {\n }", "title": "" }, { "docid": "d600ea80549fc35f578db61a2bd06187", "score": "0.67961925", "text": "private void init() throws ArduinoException {\n\t\t// close();\n\n\t\t// Define uma variavel portId do tipo CommPortIdentifier para\n\t\t// realizar a comunicacao serial\n\t\tCommPortIdentifier portId = null;\n\t\ttry {\n\t\t\t// Tenta verificar se a porta COM informada existe\n\t\t\tportId = CommPortIdentifier.getPortIdentifier(serialPort);\n\t\t} catch (NoSuchPortException e) {\n\t\t\t// Caso a porta COM nao exista sera exibido um erro\n\t\t\tthrow new ArduinoException(\"Porta '\" + serialPort\n\t\t\t\t\t+ \"' nao encontrada\", e.getCause());\n\t\t}\n\n\t\ttry {\n\t\t\t// Abre a porta COM\n\t\t\tSerialPort port = (SerialPort) portId.open(\"Comunicacao serial\",\n\t\t\t\t\tbaudRate);\n\n\t\t\toutput = port.getOutputStream();\n\t\t\tinput = port.getInputStream();\n\n\t\t\tport.addEventListener(this);\n\n\t\t\tport.notifyOnDataAvailable(true);\n\n\t\t\tport.setSerialPortParams(baudRate, // taxa de transferencia da\n\t\t\t\t\t\t\t\t\t\t\t\t// porta serial\n\t\t\t\t\tSerialPort.DATABITS_8, // taxa de 10 bits 8 (envio)\n\t\t\t\t\tSerialPort.STOPBITS_1, // taxa de 10 bits 1 (recebimento)\n\t\t\t\t\tSerialPort.PARITY_NONE); // receber e enviar dados\n\n\t\t\tThread readThread = new Thread(this);\n\t\t\treadThread.start();\n\t\t} catch (PortInUseException | IOException | TooManyListenersException\n\t\t\t\t| UnsupportedCommOperationException e) {\n\t\t\tthrow new ArduinoException(\"Erro na comunicacao serial\",\n\t\t\t\t\te.getCause());\n\t\t} finally {\n\t\t\tclose();\n\t\t}\n\n\t}", "title": "" }, { "docid": "51bddbff33751435573fd20d932f6f2c", "score": "0.67499524", "text": "public SerialConnectionException() {\n\tsuper();\n }", "title": "" }, { "docid": "380c03628b6d498bc725ebeff7531fe2", "score": "0.6748398", "text": "public void initSerialPort() \n\t{\n\t\ttry \n\t\t{\n\t\t\tmySerialPort = new SerialPort(serialPortLocation);\n\t\t\tmySerialPort.openPort();\n\t\t\tmySerialPort.setParams(serialPortSettings[0], serialPortSettings[1], serialPortSettings[2], serialPortSettings[3]);\n\t\t\tmySerialPort.setFlowControlMode(SerialPort.FLOWCONTROL_NONE);\n\t\t} \n\t\tcatch (SerialPortException e) \n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "title": "" }, { "docid": "44201cdfcf83f1d3a6a225e8b3df2e92", "score": "0.6656383", "text": "public SerialConnectionException() {\n\t\tsuper();\n\t}", "title": "" }, { "docid": "c3c25d0f33793b0123256f052ac62fb7", "score": "0.65579957", "text": "public SerialControlException() {\n super();\n }", "title": "" }, { "docid": "12af220cd187c93f8f6138f08c9fcc16", "score": "0.64232534", "text": "public void initialize() throws Exception {\n CommPortIdentifier portId = null;\n Enumeration portEnum = CommPortIdentifier.getPortIdentifiers();\n\n //First, Find an instance of serial port as set in PORT_NAMES.\n while (portEnum.hasMoreElements()) {\n CommPortIdentifier currPortId = (CommPortIdentifier) portEnum.nextElement();\n if (currPortId.getName().equals(portName)) {\n portId = currPortId;\n break;\n }\n }\n \n if (portId == null) {\n throw new Exception (\"Could not find COM port.\");\n }\n\n // open serial port, and use class name for the appName.\n serialPort = (SerialPort) portId.open(this.getClass().getName(),\n TIME_OUT);\n\n // set port parameters\n serialPort.setSerialPortParams(DATA_RATE,\n SerialPort.DATABITS_8,\n SerialPort.STOPBITS_1,\n SerialPort.PARITY_NONE);\n\n // open the streams\n input = new BufferedReader(new InputStreamReader(serialPort.getInputStream()));\n output = serialPort.getOutputStream();\n\n // add event listeners\n serialPort.addEventListener(this);\n serialPort.notifyOnDataAvailable(true);\n }", "title": "" }, { "docid": "25c5ba1f2918218ebf83e60bee16f7b3", "score": "0.64230686", "text": "public SerialInputStream(SerialPort port) {\n\t\tthis.port = port;\n\t}", "title": "" }, { "docid": "e42dacf0a7f1cd7c8699937a4fd02224", "score": "0.6420204", "text": "public CommMessage() {\n\t\tsuper();\n\t}", "title": "" }, { "docid": "dade142b382e282a198b33da0dd32651", "score": "0.6367267", "text": "public SerialInterface() throws IOException{\r\n if (!Connect())\r\n throw new IOException(\"Failed to connect to the hub\");\r\n \r\n serialObserver = new Timer(100, this); //TODO why does decreasing the iteration delay cause missed characters?\r\n serialObserver.start();\r\n }", "title": "" }, { "docid": "ed84c50a2445e89428520ba9c3ce79af", "score": "0.6271422", "text": "private void myOpen(){\n try {\n mSerialPort = new SerialPort(12, 115200, 0);\n }catch (Exception e) {\n return;\n }\n is = mSerialPort.getInputStream();\n os = mSerialPort.getOutputStream();\n recvThread = new RecvThread();\n recvThread.start();\n }", "title": "" }, { "docid": "ed84c50a2445e89428520ba9c3ce79af", "score": "0.6271422", "text": "private void myOpen(){\n try {\n mSerialPort = new SerialPort(12, 115200, 0);\n }catch (Exception e) {\n return;\n }\n is = mSerialPort.getInputStream();\n os = mSerialPort.getOutputStream();\n recvThread = new RecvThread();\n recvThread.start();\n }", "title": "" }, { "docid": "84fdc0ccba94ae8934d46d0407d9e15f", "score": "0.6258869", "text": "public SerialPrioQueue() {\n initialize();\n }", "title": "" }, { "docid": "25c673b8276d95b5c14264c00ff2d5c6", "score": "0.6182615", "text": "private void init(SerialSetup serialSetup) {\n Client client = ClientBuilder.newClient();\n client.property(ClientProperties.CONNECT_TIMEOUT, 30000);\n client.property(ClientProperties.READ_TIMEOUT, 30000);\n String tempTarget = serialSetup.getTarget();\n this.target = client.target(tempTarget.startsWith(\"http://\") ? tempTarget : \"http://\" + tempTarget);\n this.sendRate = serialSetup.getSendRate();\n this.messageBuffer = Collections.synchronizedList(new ArrayList<>());\n this.baud = Baud.getInstance(serialSetup.getBaud());\n this.dataBits = DataBits.getInstance(serialSetup.getDataBits());\n this.initialized = true;\n this.stopBits = StopBits.getInstance(serialSetup.getStopBits());\n this.tryAgainIfFailed = serialSetup.isTryAgainIfFailed();\n }", "title": "" }, { "docid": "474c77889a2084319d36c270552dfe98", "score": "0.6162484", "text": "public Port() {\n super();\n }", "title": "" }, { "docid": "4eaa3ade7a826c9cc62574e074a1305c", "score": "0.61329824", "text": "private void setupSerial() {\n if (Boolean.parseBoolean(GatewayProperties.getProperty(\"arduino.enabled\"))) {\n serialCommunication = new SerialCommunication();\n }\n }", "title": "" }, { "docid": "e26b06656b7915c6e1dc06390d191e22", "score": "0.61324173", "text": "public BluetoothSerial(Handler handler) {\n\n mState = STATE_NONE;\n mHandler = handler;\n }", "title": "" }, { "docid": "be51d91c5e238ccd611cedb4e7283694", "score": "0.60697466", "text": "public PortCB()\n {\n super();\n\n }", "title": "" }, { "docid": "5062e05b42bb3065c8ef0be058d64f29", "score": "0.6046767", "text": "public ArduinoInputHandler (SensorHandler sensorHandeler, SerialCommunication com){\n \n inputRecivedEvent = new Event();\n input = new ReciveSerial(inputRecivedEvent, com);\n seperator = new StringSeparator();\n \n }", "title": "" }, { "docid": "13882256749ec95fc19d3c337b98cf43", "score": "0.60157365", "text": "public void setup () {\n println(Serial.list());\n // Open whatever port is the one you're using.\n myPort = new Serial(this, Serial.list()[1], 9600);\n // don't generate a serialEvent() unless you get a newline character:\n myPort.bufferUntil('\\n');\n // set inital background:\n background(0x000000);\n}", "title": "" }, { "docid": "9decb5165c7bdefafa5a066c12576aeb", "score": "0.60143155", "text": "public ServoConnection(int comPort) {\n setName(\"ServoConnection\");\n setPriority(MAX_PRIORITY);\n setPortNumber(comPort);\n log.info(\"Starting consumer thread for connection to servo board\");\n \n this.start();\n }", "title": "" }, { "docid": "4e942ef1296933a6ad015a19aa7e1033", "score": "0.60042447", "text": "public Serial(String serialPort, int baudRate) throws IOException {\n\t\tthis.serialPort = serialPort;\n\t\tthis.baudRate = baudRate;\n\n\t\tif (this.externOpenPort(serialPort, baudRate) == -1) {\n\t\t\tthrow new IOException(\"[serial] Serial port \" + serialPort + \" could not be opened\");\n\t\t} else {\n\t\t\tCore.debugMessage(\"[serial] Serial port \" + serialPort + \" successfully opened with baud rate \" + baudRate);\n\t\t\tthis.ready = true;\n\t\t}\n\t}", "title": "" }, { "docid": "0f4330e3d1e3d6a8c00a5bdcc5f92793", "score": "0.6002722", "text": "public Communication() {\n if (impl == null) {\n init();\n }\n }", "title": "" }, { "docid": "4f2eda386004d29f904dc4bf2b53394f", "score": "0.596116", "text": "public Comunicator(){\n\t\ttry{\n\t\tsocket = new Socket(\"10.0.1.11\",1111);\n\t\tin=new DataInputStream(socket.getInputStream());\n\t\tout=new DataOutputStream(socket.getOutputStream());\n\t\t}catch(IOException e){\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "title": "" }, { "docid": "67304824ae4f7d37c3ca9111b5bd5449", "score": "0.5912377", "text": "public JMeasure() {\n // USB0 is the default first serial usb port to be used\n this(\"/dev/ttyUSB0\");\n }", "title": "" }, { "docid": "f718e9017fa3f0f5706912bdfc215215", "score": "0.5897142", "text": "public SerialConnectionException(String str) {\n\tsuper(str);\n }", "title": "" }, { "docid": "a28bea75448406e3458881082d281dab", "score": "0.5895556", "text": "public CommunicationsManager(Robot robot) {\n String name = robot.getRobotInfo().getName();\n String address = robot.getRobotInfo().getAddress();\n\n logger.info(\"Initialising communications with \" + name + \" address \" + address + \".\");\n NXTInfo nxtInf = new NXTInfo(NXTCommFactory.BLUETOOTH, name, address);\n\n try {\n this.connected = false;\n this.communicator = NXTCommFactory.createNXTComm(NXTCommFactory.BLUETOOTH);\n\n if (this.communicator.open(nxtInf)) {\n this.commands = new LinkedBlockingQueue<>();\n this.sender = new MessageSender(this.communicator.getOutputStream(), this.commands);\n this.receiver = new MessageReceiver(this.communicator.getInputStream(), robot);\n this.connected = true;\n\n this.receiver.start();\n this.sender.start();\n\n logger.info(\"Connected to robot \" + nxtInf.name);\n }\n } catch (NXTCommException e) {\n logger.fatal(\"Could not connect to robot\");\n e.printStackTrace();\n }\n\n }", "title": "" }, { "docid": "0649364ee0defdff36157a5126a90a3b", "score": "0.5894796", "text": "private Arduino(String serialPort, int baudRate, long threadTime)\n\t\t\tthrows ArduinoException {\n\t\tsuper();\n\n\t\tthis.serialPort = serialPort;\n\t\tthis.baudRate = baudRate;\n\n\t\tthis.threadTime = threadTime;\n\n\t\tinit();\n\t}", "title": "" }, { "docid": "f248d6e0f321d24ecd007407cf820eee", "score": "0.58697814", "text": "public void initDriver(String port){\r\n\t\t\r\n\t\tPort=com1.getComm(port);\r\n\t\t\r\n\t}", "title": "" }, { "docid": "d8a9dc7bde0dbe0369a1b17e462dfce3", "score": "0.58630264", "text": "public ICCardCreditAccountIO() {\r\n\t\tsuper();\r\n\t}", "title": "" }, { "docid": "dcda2461f7069c1fcae8ec70d1f1509b", "score": "0.58616537", "text": "public Ticket()\n {\n serialNumber = getNextSerialNumber();\n }", "title": "" }, { "docid": "9aa65f613eba390aec0a67cd14ce1444", "score": "0.582675", "text": "protected CreateLabSerialDeviceNoReturnValueCommandStrategy()\n {\n }", "title": "" }, { "docid": "c07b3df3b7129225bbc4f0904633820a", "score": "0.5819993", "text": "public SerialStatus(String portDescriptor) throws IOException {\n comPort = SerialPort.getCommPort(portDescriptor);\n if(!comPort.openPort()){\n throw new IOException(\"Error on comPort.openPort call\");\n }\n\n\n comPort.addDataListener(new SerialPortPacketListener() {\n @Override\n public int getPacketSize() {\n return 4;\n }\n\n @Override\n public int getListeningEvents() {\n return SerialPort.LISTENING_EVENT_DATA_RECEIVED;\n }\n\n @Override\n public void serialEvent(SerialPortEvent event) {\n byte[] newData = event.getReceivedData();\n processData(newData,newData.length);\n statusChanged();\n }\n });\n\n Executors.newScheduledThreadPool(1).schedule(new Runnable() {\n @Override\n public void run() {\n synchronized (lock) {\n java.io.OutputStream out = comPort.getOutputStream();\n try {\n out.write(GS);\n out.write('a');\n out.write(255); /// 1111 1111\n out.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n\n }\n }, 1, TimeUnit.SECONDS);\n\n\n\n\n mapErrors = new HashMap<>();\n mapInfo = new HashMap<>();\n listPrinterStatusEvent = new ArrayList<>();\n\n\n\n finished = false;\n\n\n\n\n\n }", "title": "" }, { "docid": "4caaa96cd277c7a99e0579e82c92dd37", "score": "0.58172566", "text": "public LDRCommand()\r\n {\r\n }", "title": "" }, { "docid": "f865b76248cab1d0eec88a263309ed82", "score": "0.5810037", "text": "public CompClient() {\r\n }", "title": "" }, { "docid": "b381ee2a0bc9eb7c303761ce33266a67", "score": "0.5803996", "text": "public Dichroic()\n\t{\n\t\tsuper();\n\t\tlogger = LogManager.getLogger(this);\n\t\tconnection = new TelnetConnection();\n\t}", "title": "" }, { "docid": "a7336fe2137900c9dc5b2f7380877c25", "score": "0.5786019", "text": "public void setSerial(java.lang.String value) {\n this.serial = value;\n }", "title": "" }, { "docid": "ec3760d8ef5e32db436d825cdd40a566", "score": "0.577811", "text": "public Tcp() {}", "title": "" }, { "docid": "a933e2751bf617bd235fbcb80c8bdb93", "score": "0.5748669", "text": "public SerialJob1() {\n this(DEFAULT_RUNNING_TIME);\n }", "title": "" }, { "docid": "68e979f7ed05537d4c61cfea61efff72", "score": "0.5748118", "text": "private native int externOpenPort(String serialPort, int baudRate);", "title": "" }, { "docid": "9c792672daaa31f26c49002250cc9f9c", "score": "0.57423425", "text": "public CommChannel(double rate)\n {\n\tthis.rate = rate;\n\tthis.headerRate = rate;\n }", "title": "" }, { "docid": "87040555805091405e6cbad44e512aea", "score": "0.5732233", "text": "public Device() {\n connected = false;\n connection = new IPConnection();\n try {\n connection.setIpAddr(getConfiguration().getString(\"ipAddr\"));\n connection.setPort(Integer.parseInt(getConfiguration().getString(\"port\")));\n MAX_INPUTS = Integer.parseInt(getConfiguration().getString(\"MAX_INPUTS\"));\n MAX_OUTPUTS = Integer.parseInt(getConfiguration().getString(\"MAX_OUTPUTS\"));\n MAX_PRESETS = Integer.parseInt(getConfiguration().getString(\"MAX_PRESETS\"));\n } catch (NullPointerException ex) {\n connection = null;\n } catch (MissingResourceException ex) {\n connection = null;\n }\n \n inputs = new ArrayList();\n outputs = new ArrayList();\n \n // MRC - This initialization assumes that # inputs == # outputs\n for (int i = 0; i < MAX_INPUTS; ++i) {\n inputs.add(new Connector(\"INPUT_\" + (i + 1), \"\", i + 1)); // Connectors are 1-based for their index\n outputs.add(new Connector(\"OUTPUT_\" + (i + 1), \"\", i + 1)); \n cxnMatrix.put(i,i);\n }\n \n for (int i = 0; i < MAX_PRESETS; i++) {\n presets.add(new Preset((i + 1) + \" - Test\", i));\n }\n }", "title": "" }, { "docid": "126cbeb6558dcbf44fee54a82bbc60b8", "score": "0.5731804", "text": "public Compra() {}", "title": "" }, { "docid": "9aa4f12d621f11fcad6e47451f61d9e3", "score": "0.5702297", "text": "public DriveTrainSubsystem(){ \n }", "title": "" }, { "docid": "6ab6ef7bc863f3ba7168386626898699", "score": "0.5697286", "text": "private SerialConstants() {\n\t}", "title": "" }, { "docid": "d5e01d5a9f95a0da68dee9af26bdf656", "score": "0.5696723", "text": "public eu.rawfie.uxv.SensorInfo.Builder setSerial(java.lang.String value) {\n validate(fields()[3], value);\n this.serial = value;\n fieldSetFlags()[3] = true;\n return this;\n }", "title": "" }, { "docid": "e4cc946a1b0e3829d8eea8a960ab3369", "score": "0.566831", "text": "public CommandQueue(CommThread comm) {\n\t\tqueue = new LinkedList<Message>();\n\t\tprogramCounter = 0;\n\t\tpaused = true;\n\t\tthis.comm = comm;\n\t}", "title": "" }, { "docid": "6d32788b97fe00ab583c6f2be093bae2", "score": "0.56652033", "text": "public CommChannel(double rate, double headerRate)\n {\n\tthis.rate = rate;\n\tthis.headerRate = headerRate;\n }", "title": "" }, { "docid": "29049f9cfeebdfafdeaccdbb3d5cdc54", "score": "0.56476504", "text": "public EncodePort() {\n initComponents();\n }", "title": "" }, { "docid": "704d7e712fa058ebbc0c4a93798d2d89", "score": "0.56465966", "text": "public void openConnection() throws SerialConnectionException {\n\n // Obtain a CommPortIdentifier object for the port you want to open.\n logger.debug(\"In openConnection(): \" + parameters.getPortName());\n try {\n logger.debug(\"In openConnection(): inside try..catch block \"\n + parameters.getPortName());\n portId = CommPortIdentifier.getPortIdentifier(parameters\n .getPortName());\n logger.debug(\"In openConnection(): inside try block,portid= \"\n + portId.getPortType());\n /*\n * portList = CommPortIdentifier.getPortIdentifiers();\n * \n * while (portList.hasMoreElements()) {\n * System.out.println(\"here..1\"); portId = (CommPortIdentifier)\n * portList.nextElement(); if (portId.getPortType() ==\n * CommPortIdentifier.PORT_SERIAL) { // if\n * (portId.getName().equals(\"COM1\")) { if\n * (portId.getName().equals(parameters.getPortName())) {\n * System.out.println(\"here..2\"); portId =\n * CommPortIdentifier.getPortIdentifier(parameters.getPortName());\n * System.out.println(\"here..3\"); } } }\n */\n\n } catch (NoSuchPortException e) {\n throw new SerialConnectionException(e.getMessage());\n } catch (Exception e1) {\n logger.debug(\"Exception\" + e1);\n throw new SerialConnectionException(e1.getMessage());\n }\n\n logger.debug(\"In openConnection(): port type= \"\n + portId.getPortType());\n\n // Open the port represented by the CommPortIdentifier object. Give\n // the open call a relatively long timeout of 30 seconds to allow\n // a different application to reliquish the port if the user\n // wants to.\n try {\n //sPort = (SerialPort) portId.open(\"SerialPortApp\", 2000);\n sPort = (SerialPort) portId.open(\"SerialPortApp\", openPortTimeout);\n } catch (PortInUseException e) {\n throw new SerialConnectionException(e.getMessage());\n } catch (Exception e) {\n throw new SerialConnectionException(e.getMessage());\n }\n\n // Set the parameters of the connection. If they won't set, close the\n // port before throwing an exception.\n try {\n setConnectionParameters();\n } catch (SerialConnectionException e) {\n sPort.close();\n throw e;\n }\n\n // Open the input and output streams for the connection. If they won't\n // open, close the port before throwing an exception.\n try {\n os = sPort.getOutputStream();\n is = sPort.getInputStream();\n } catch (IOException e) {\n sPort.close();\n throw new SerialConnectionException(\"Error opening i/o streams\");\n }\n\n // Add this object as an event listener for the serial port.\n /*try {\n sPort.addEventListener(this);\n } catch (TooManyListenersException e) {\n sPort.close();\n throw new SerialConnectionException(\"too many listeners added\");\n }*/\n\n // Set notifyOnDataAvailable to true to allow event driven input.\n sPort.notifyOnDataAvailable(true);\n\n // Set notifyOnBreakInterrup to allow event driven break handling.\n sPort.notifyOnBreakInterrupt(true);\n\n // Set receive timeout to allow breaking out of polling loop during\n // input handling.\n try {\n sPort.enableReceiveTimeout(3000);\n } catch (UnsupportedCommOperationException e) {\n }\n\n open = true;\n // System.out.println(\"In openConnection(): open flag-\" + open);\n }", "title": "" }, { "docid": "8bffc9e6cc153e48e82635ef3f426589", "score": "0.5630422", "text": "public SerialControlException(String str) {\n super(str);\n }", "title": "" }, { "docid": "e087b01edd3ba21468f94646a14f1649", "score": "0.5625608", "text": "public XboxController (int port) {\n super(port);\n }", "title": "" }, { "docid": "650b3da6aedfd04713ffdd2e0a407fb5", "score": "0.56247556", "text": "public Robot () {\r\n\t\ttry {\r\n\t\t\t//Alternatively: I2C.Port.kMXP, SerialPort.Port.kMXP or SerialPort.Port.kUSB\r\n\t\t\tnavx = new AHRS(SPI.Port.kMXP);\r\n\t\t} catch (RuntimeException e) {\r\n\t\t\tDriverStation.reportError(\"There was an error instantiating the NavxMXP!\\n\" + e.getMessage(), true);\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "060eaff492fd166b89eb7eb746c1ec5a", "score": "0.5609351", "text": "public void serialEvent(SerialPortEvent oEvent) {\n if (oEvent.getEventType() == SerialPortEvent.DATA_AVAILABLE) {\n try {\n inputLine = input.readLine();\n EntitySerial s = new EntitySerial();\n s.setInput(inputLine);\n\n // System.out.println(\"Arduino \" + inputLine);\n } catch (Exception e) {\n System.err.println(e.toString());\n }\n }\n\n }", "title": "" }, { "docid": "c5b88b01eb83278796fddb6e19b32040", "score": "0.5608878", "text": "protected CommunicationPacket(byte[] data) {\n super(data[5]); // byte 5 is the protocol version in a communication packet\n verifyHeader(data);\n checkPacketType(data[4]);\n packetId = new UniqueId(data, 6);\n sentSignal = new CountDownLatch(1);\n sentTime = -1;\n }", "title": "" }, { "docid": "d76e90861714e63220a6d112bb123b4d", "score": "0.5604036", "text": "public Consommateur() throws Exception {\r\n\r\n\t\tsuper(1, 1);\r\n\r\n\t\tString souscriptionPortName = java.util.UUID.randomUUID().toString();\r\n\t\tsouscriptionPort = new SouscriptionOutboundPort(souscriptionPortName, this);\r\n\t\t\r\n\t\tString receptionPortName = java.util.UUID.randomUUID().toString();\r\n\t\treceptionPort = new ReceptionInboundPort(receptionPortName, this);\r\n\t\t\r\n\t\tthis.addPort(souscriptionPort);\r\n\t\tthis.addPort(receptionPort);\r\n\t\tsouscriptionPort.publishPort();\r\n\t\treceptionPort.publishPort();\r\n\r\n\t\tthis.tracer.setTitle(\" Consommateur : \" + AbstractCVM.getCVM().logPrefix());\r\n\t\tthis.tracer.setRelativePosition(2, 1);\r\n\t\tthis.toggleTracing();\r\n\t\tthis.toggleLogging();\r\n\t}", "title": "" }, { "docid": "b28edbae7ca7f9b2e3b6d7e2498696ca", "score": "0.55998117", "text": "public SerialConnectionException(String str) {\n\t\tsuper(str);\n\t}", "title": "" }, { "docid": "9eaa62b7afa536fa13ae71e3861cfcf0", "score": "0.5582362", "text": "public CBPeripheralManager() {}", "title": "" }, { "docid": "364d2f9741c921362cc57449f0911476", "score": "0.5572241", "text": "public SocketCommand()\n {\n m_ResultLock = new SimpleLock();\n m_ResultLock.lock();\n }", "title": "" }, { "docid": "022eefebdfdbef1a3779571fd9607cbc", "score": "0.55709195", "text": "TCPManager(int nb)\r\n\t{\r\n\t\tip = \"\";\r\n\t\tport = 0;\r\n\t\tnbCommandsMax = nb;\r\n\t}", "title": "" }, { "docid": "0cd4c834d1f266ca1c33a7cbdbc3b475", "score": "0.5568164", "text": "public Temperature(int temperatureActuelle, int temperatureSeuil) {\n\t\ttry {\n\t\t\tthis.temperatureActuelle = temperatureActuelle;\n\t\t\tthis.temperatureSeuil = temperatureSeuil;\n\t\t\tcom = new COMListener(\"COM4\");\n\t\t\twriter = new SerialWriter(com.out);\n\t\t\tnew Thread(writer).start();\n\t\t} catch (Exception e) {\n \te.printStackTrace();\n\t\t}\n\t}", "title": "" }, { "docid": "9c737fc931c2136075fe2549543c7670", "score": "0.5552624", "text": "public CharBuffer()\n {\n }", "title": "" }, { "docid": "9caac2e99809888b7125a629182023a0", "score": "0.5551547", "text": "public RemoteSensor() {\n }", "title": "" }, { "docid": "6ababe4cf4f64831ec5ee964bf856fa1", "score": "0.55511224", "text": "public Communication(String addr, int port) {\n dstAddress = addr;\n dstPort = port;\n //Tries to connect to the server\n Client myClient = new Client(dstAddress, dstPort);\n //Tries to grab the names of the components in the switch gear\n try {\n String val = myClient.execute(\"SELECT * FROM NAME;\").get();\n Log.d(\"MyApp\", val);\n String[] components = val.split(\",\");\n switchgear = new SwitchGearInfo(components);\n } catch (Exception e){\n Log.e(\"MyApp\", \"Unable to establish communication with database.\");\n }\n\n }", "title": "" }, { "docid": "5c34280f1c6e4fa2d2b76c355ea2a536", "score": "0.55360603", "text": "public ComponentRK() {\n }", "title": "" }, { "docid": "33e87b4c1f6d10aa37a7b11ba2966a5d", "score": "0.5533203", "text": "public DLSequence() {\n\t}", "title": "" }, { "docid": "833b2239f3f193ae5061966e38d4c660", "score": "0.55283034", "text": "public void initDriver(String port, int baudrate){\r\n\t\t\r\n\t\tPort=com1.getComm(port,baudrate);\r\n\t\t\r\n\t}", "title": "" }, { "docid": "368ab838c34cd770881554e3f429156a", "score": "0.55268824", "text": "public Robot() {\n\t\ttry {\n\t\tahrs = new AHRS(SerialPort.Port.kMXP, SerialDataType.kProcessedData, (byte)50);\n\t\tahrs.enableLogging(true);\n\t\t} catch (RuntimeException ex ) {\n DriverStation.reportError(\"Error instantiating navX MXP: \" + ex.getMessage(), true);\n }\n\t\t ML2.setStatusFramePeriod(StatusFrameEnhanced.Status_2_Feedback0, 1,10);\n\t\t ML2.configSelectedFeedbackSensor(FeedbackDevice.CTRE_MagEncoder_Relative, 0, 10);\n\t\t /* fire the plotter */\n\t\t\t_plotThread = new PlotThread(this);\n\t\t\tnew Thread(_plotThread).start();\n\t}", "title": "" }, { "docid": "fba1d27f0d2237cbfb136621dced5f38", "score": "0.5515718", "text": "private BDevice()\n {\n }", "title": "" }, { "docid": "bbc3bb613d362d983cecf354a0a210bb", "score": "0.54982984", "text": "public Operator(int port) {\n OP = new Controller(port);\n wheels = new Wheels();\n controlPanel = new ControlPanel();\n \n resetControlPanel();\n lastButtonPress = (Timer.getFPGATimestamp()/1000);\n }", "title": "" }, { "docid": "7467ff502427613468becf794a6f3dae", "score": "0.54867345", "text": "public void setComm(Double comm) {\n\t\tthis.comm = comm;\n\t}", "title": "" }, { "docid": "120446495c40bf5faba57d0bd236d9f5", "score": "0.54773587", "text": "@Override\n\tpublic abstract String getSerial ();", "title": "" }, { "docid": "06e19fcebeb4cc3a8d5e807f9d36e946", "score": "0.54715085", "text": "public RRBotHardware(){}", "title": "" }, { "docid": "8cb5c8eed1b695f58a7594da11f1cdc8", "score": "0.5468155", "text": "PortAudioSystem() throws Exception {\n\t\tsuper(LOCATOR_PROTOCOL, FEATURE_DENOISE | FEATURE_ECHO_CANCELLATION | FEATURE_NOTIFY_AND_PLAYBACK_DEVICES\n\t\t\t\t| FEATURE_REINITIALIZE);\n\t}", "title": "" }, { "docid": "3503be0a251f0fa267a722f6bea58c98", "score": "0.54643494", "text": "public int readSerial();", "title": "" }, { "docid": "da054cc63aaacb9754904269a4e24ae0", "score": "0.54617536", "text": "public void connect() {\n try {\n if (!serialPort.isOpened()) {\n serialPort.openPort();\n getSerialPort().setParams(9600, 8, 1, 0);\n // reader = new Thread(new SerialReadArduino(this, semaPhore, serialPort, dataHandler)); \n // reader.start();\n }\n } catch (SerialPortException e) {\n System.out.println(\"No Port Found On: \" + System.getProperty(\"os.name\"));\n }\n }", "title": "" }, { "docid": "aa7b7a80c37eacb75ddee93b7f69cb15", "score": "0.54604053", "text": "public Communicator(Socket socket) throws IOException {\n this.socket = socket;\n this.output = new ObjectOutputStream(socket.getOutputStream());\n this.input = new ObjectInputStream(socket.getInputStream());\n }", "title": "" }, { "docid": "ba50d4921cb62c69e542138980495150", "score": "0.54590464", "text": "@Override\r\n public void serialEvent(SerialPortEvent event) {\n }", "title": "" }, { "docid": "2e01710ea64ab2603d5a813ac3756c43", "score": "0.54551333", "text": "public CSVContents() {\n\tsuper();\n\tbufferSize = 100;\n\tbuffer = new char[bufferSize];\n }", "title": "" }, { "docid": "90bf2f03d318281ceaf7c1059b1bff68", "score": "0.54547805", "text": "public SerialPortBayouBot(String portName) {\n\t\tserialPort = new SerialPort(portName);\n\t\ttry {\n serialPort.openPort();\n serialPort.setParams(SerialPort.BAUDRATE_9600, \n SerialPort.DATABITS_8,\n SerialPort.STOPBITS_1,\n SerialPort.PARITY_NONE);\n }\n catch (SerialPortException ex) {\n \tSystem.err.println(\"Could not open port!!!\");\n\t\t\tex.printStackTrace();\n }\n\t\t\n\t\tinit();\n\t}", "title": "" }, { "docid": "d4a3c9878de4d412c6fb76fe57429b7e", "score": "0.545389", "text": "public void setComPort(String comPort){\r\n\t\tthis.comPort = comPort;\r\n\t}", "title": "" }, { "docid": "a959bf75236f8445e729276f53e59fb3", "score": "0.54513055", "text": "public void setComm(Number value) {\r\n setAttributeInternal(COMM, value);\r\n }", "title": "" }, { "docid": "99bd8fdae4bf0954bb628bd3799e1f09", "score": "0.54502183", "text": "public MotorBase(){\r\n this.pi = new piBase();\r\n motorid = new StringBuffer(\"#1\");\r\n }", "title": "" }, { "docid": "2082624bf1225adef945ee62a432dce7", "score": "0.5449919", "text": "public Accelerometer(String instanceName)\n {\n //\n // BNO055 IMU has a 3-axis accelerometer.\n //\n super(instanceName, 3, ACCEL_HAS_X_AXIS | ACCEL_HAS_Y_AXIS | ACCEL_HAS_Z_AXIS, null);\n }", "title": "" }, { "docid": "723133de3e54aaa70a020dd3d022f8f5", "score": "0.5443697", "text": "public Sensor() {\n\t\t\n\t}", "title": "" }, { "docid": "1b6579bf9a688aafb934eacdff2e60de", "score": "0.5443418", "text": "public Terminal(String name) {\r\n super(name);\r\n }", "title": "" }, { "docid": "ef17c84932af3f786f1e2918235bd253", "score": "0.5436636", "text": "protected DirectDL(DataLine.Info param1Info, DirectAudioDevice param1DirectAudioDevice, AudioFormat param1AudioFormat, int param1Int1, int param1Int2, int param1Int3, boolean param1Boolean) {\n/* 408 */ super(param1Info, param1DirectAudioDevice, (Control[])null, param1AudioFormat, param1Int1);\n/* */ \n/* 410 */ this.mixerIndex = param1Int2;\n/* 411 */ this.deviceID = param1Int3;\n/* 412 */ this.waitTime = 10;\n/* 413 */ this.isSource = param1Boolean;\n/* */ }", "title": "" }, { "docid": "be01f5ef8cae436240a47804c32d817c", "score": "0.5431434", "text": "public CmonSystem() {\n super();\n }", "title": "" }, { "docid": "c90b4cc2172200534ee0adbbafab919f", "score": "0.54310006", "text": "public Smartphone (){\r\n\tsuper ();\r\n\tmodelName = null;\r\n\tOperatingSystem = null;\r\n\tYearOfRelease = null;\r\n\t}", "title": "" }, { "docid": "e2710542630aa79f4cb97dc0ff1d835a", "score": "0.54303145", "text": "public void Connect() {\n EmptyArray();\n port = new Serial(this, portName, baudRate);\n connected = true;\n logFld.setText(\"Connect btn was hit.\");\n}", "title": "" }, { "docid": "5e78e1e8870dc4fab8b1944ecb56762c", "score": "0.54194975", "text": "public Televizor(){\r\n serial=generateSerialNumber();\r\n serial=serialNumber;\r\n toggle=false;\r\n }", "title": "" }, { "docid": "56dd675d69c13e8a88d2f3473598e212", "score": "0.54176486", "text": "public XboxController (Joystick joystick) {\n super(joystick);\n }", "title": "" }, { "docid": "8cb2cf6cf44ef1d02a6d280298803631", "score": "0.54162717", "text": "Channel(int number, String name, String desc, DataType dt) {\n mNumber = number;\n mName = name;\n mDescription = desc;\n mDataType = dt;\n }", "title": "" }, { "docid": "ce19a34b981f6c4c16a2df0e5bb699e5", "score": "0.54069966", "text": "public boolean initialize() {\n\t\tCommPortIdentifier portId = null;\n\t\tEnumeration portEnum = CommPortIdentifier.getPortIdentifiers();\n\n\t\t// iterate through, looking for the port\n\t\twhile (portEnum.hasMoreElements()) {\n\t\t\tCommPortIdentifier currPortId = (CommPortIdentifier) portEnum.nextElement();\n\t\t\tfor (String portName : PORT_NAMES) {\n\t\t\t\tif (currPortId.getName().equals(portName)) {\n\t\t\t\t\tportId = currPortId;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif (portId == null) {\n\t\t\tmain.println(\"Could not find COM port.\");\n\t\t\treturn false;\n\t\t}\n\t\telse{\n\t\t\tmain.println(\"Started successfully!\");\n\t\t}\n\n\t\ttry {\n\t\t\t// open serial port, and use class name for the appName.\n\t\t\tserialPort = (SerialPort) portId.open(this.getClass().getName(),\n\t\t\t\t\tTIME_OUT);\n\n\t\t\t// set port parameters\n\t\t\tserialPort.setSerialPortParams(DATA_RATE,\n\t\t\t\t\tSerialPort.DATABITS_8,\n\t\t\t\t\tSerialPort.STOPBITS_1,\n\t\t\t\t\tSerialPort.PARITY_NONE);\n\n\t\t\t// open the streams\n\t\t\tinput = serialPort.getInputStream();\n\t\t\toutput = serialPort.getOutputStream();\n\n\t\t\t// add event listeners\n\t\t\tserialPort.addEventListener(this);\n\t\t\tserialPort.notifyOnDataAvailable(true);\n\t\t} catch (Exception e) {\n\t\t\tSystem.err.println(e.toString());\n\t\t}\n\n\t\treturn true;\n\t}", "title": "" }, { "docid": "1a5bcfc6f5c21001c15b750d5013392f", "score": "0.5400415", "text": "public void setSerialView(SerialView serialView) {\n this.serialView = serialView;\n }", "title": "" }, { "docid": "1eadc8fbed0be64ad502c8c6226035af", "score": "0.5393924", "text": "public ChatRoom() {\n this(PortNumbers.INVALID_PORT);\n }", "title": "" } ]
7eb6b1c1f545e641e9a60667b6e96282
Method accepts encryption key and initialization vector, source and destination file and does the encrypting or decrypting.
[ { "docid": "cf044d696384cbf530994ffb8f33fb4c", "score": "0.6422824", "text": "private static void encryptFile(Boolean encrypt, String keyText, String ivText, String file1, String file2) {\n\t\tSecretKeySpec keySpec = new SecretKeySpec(Util.hexToByte(keyText), \"AES\");\n\t\tAlgorithmParameterSpec paramSpec = new IvParameterSpec(Util.hexToByte(ivText));\n\t\t\n\t\tCipher cipher = null;;\n\t\ttry {\n\t\t\tcipher = Cipher.getInstance(\"AES/CBC/PKCS5Padding\");\n\t\t\tcipher.init(encrypt ? Cipher.ENCRYPT_MODE : Cipher.DECRYPT_MODE, keySpec, paramSpec);\n\t\t\t\n\t\t} catch (NoSuchAlgorithmException | InvalidKeyException | \n\t\t\t\t InvalidAlgorithmParameterException | NoSuchPaddingException e) {\n\t\t\tSystem.out.printf(\"Error while crypting file %s.%n\", file1);\n\t\t} \n\t\t\n\t\tPath p1 = Paths.get(file1);\n\t\ttry (InputStream is = Files.newInputStream(p1, StandardOpenOption.READ);\n\t\t\t OutputStream os = new BufferedOutputStream(new FileOutputStream(file2));) {\n\t\t\tbyte[] buff = new byte[BUFFER_SIZE];\n\t\t\t\n\t\t\twhile(true) {\n\t\t\t\tint r = is.read(buff);\n\t\t\t\t\n\t\t\t\tif(r<1) break;\n\t\t\t\t\n\t\t\t\tos.write(cipher.update(buff, 0, r));\n\t\t\t}\n\t\t\t\n\t\t\tos.write(cipher.doFinal());\n\t\t } catch(IOException | BadPaddingException | IllegalBlockSizeException ex) {\n\t\t\t ex.printStackTrace();\n\t\t }\n\t\n\t}", "title": "" } ]
[ { "docid": "41bddd0499a1b0831f35009d282ad683", "score": "0.6896781", "text": "private static void encrypt() throws Exception\n\t{\n\t\t// Creates the master key based on the existing salts\n\t\tSecretKey masterKey = generateMasterKey();\n\n\t\t// Creates file streams for the unencrypted input file and encrypted output file\n\t\tFileInputStream unencInFile = new FileInputStream(file);\t\t\t\t\t\t// file to be encrypted\n\t\tFileOutputStream encrOutFile = new FileOutputStream(\"C:/Users/inspiron/Dropbox/\"+file+\".encrypted\");\t\t// encrypted file\n\n\t\t// Create AES CBC encryption cipher using Master Key as the key\n\t\tCipher MKCipher = Cipher.getInstance(\"AES/CBC/PKCS5Padding\");\n\t\tMKCipher.init(Cipher.ENCRYPT_MODE, masterKey);\n\t\tAlgorithmParameters params = MKCipher.getParameters();\n\n\t\t// Create initialization vector (iv) for randomness\n\t\tIvParameterSpec ivSpec = params.getParameterSpec(IvParameterSpec.class);\n\t\tbyte[] ivOut = ivSpec.getIV();\n\n\t\t// Save iv to file for decryption\n\t\tFileOutputStream ivOutFile = new FileOutputStream(\"C:/Users/inspiron/Dropbox/\"+file+ \".encrypted.iv\");\n\t\tivOutFile.write(ivOut);\n\t\tivOutFile.close();\n\n\t\t// Create a file key for AES\n\t\tKeyGenerator keyGen = KeyGenerator.getInstance(\"AES\");\n\t\tkeyGen.init(128);\n\t\tSecretKey fileKey = keyGen.generateKey();\n\t\tbyte[] fileKeyBytes = fileKey.getEncoded();\n\t\tSecretKeySpec keySpec = new SecretKeySpec(fileKeyBytes, \"AES\");\n\n\t\t// Create an AES CBC encryption cipher for file encryption\n\t\tCipher fileCipher = Cipher.getInstance(\"AES/CBC/PKCS5Padding\");\n\t\tfileCipher.init(Cipher.ENCRYPT_MODE, keySpec, ivSpec);\n\n\t\t// Encrypt file using the AES CBC encryption cipher (whose key is the random file key) and write out\n\t\tbyte[] tempOut = new byte[128];\t// takes in the unencrypted bytes\n\t\tint byteCount;\n\n\t\twhile ((byteCount = unencInFile.read(tempOut)) >= 0)\t\t// read each byte of the in file into input\n\t\t{\n\t\t\tbyte[] output = fileCipher.update(tempOut, 0, byteCount);\t// holds the encrypted bytes\n\t\t\tif (output != null)\n\t\t\t\tencrOutFile.write(output);\n\t\t}\n\n\t\tbyte[] output = fileCipher.doFinal();\t\t// pads final block\n\t\tif (output != null)\n\t\t\tencrOutFile.write(output);\n\n\t\tunencInFile.close();\n\n\t\tencrOutFile.flush();\n\t\tencrOutFile.close();\n\n\t\t// Encrypt the file key using the AES CBC encryption cipher (whose key is the Master Key)\n\t\tbyte[] encryptedFK = MKCipher.doFinal(fileKeyBytes);\n\n\t\t// Write the encrypted file key out to file for decryption\n\t\tFileOutputStream fkOutFile = new FileOutputStream(\"C:/Users/inspiron/Dropbox/\"+file + \".encrypted.key\");\n\t\tif (encryptedFK != null)\n\t\t\tfkOutFile.write(encryptedFK);\n\n\t\tfkOutFile.flush();\n\t\tfkOutFile.close();\n\n\t\t// Clear the fileKey byte arrays after use (both encrypted & unencrypted\n\t\tfor(int i = 0; i < fileKeyBytes.length; i++)\n\t\t{\n\t\t\tfileKeyBytes[i] = 0;\n\t\t}\n\t\tfor(int i = 0; i < encryptedFK.length; i++)\n\t\t{\n\t\t\tencryptedFK[i] = 0;\n\t\t}\n\n\t\tDropBoxSecurityTool.encrypt=true; // The file has been encrypted\n\t}", "title": "" }, { "docid": "978f531a2f4065a73ced74ede7d22ad1", "score": "0.65739936", "text": "private static void doCrypto(int encryptMode, String key, File inputFile, File outputFile) {\n\r\n\t}", "title": "" }, { "docid": "5857c110ddbaea4e9506700403a25e33", "score": "0.6503294", "text": "private void dencryption() {\n\t\tSystem.out.println(\"Enter file location.\");\n\t\tString fileLocation = userInput.nextLine();\n\t\tString key = decryptingKey();\n\t\tPath path = Paths.get(fileLocation);\n\t\tbyte[] encryptedContent;\n\t\ttry {\n\t\t\tencryptedContent = Files.readAllBytes(path);\n\t\t\tString fileContent = decrypt(encryptedContent, key);\n\t\t\twriteToFile(fileContent.getBytes(), fileLocation);\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"Problem with decrypting.\");\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "title": "" }, { "docid": "b5c7199ec03545d08bf03abcab1ba094", "score": "0.6418372", "text": "private void encryption() {\n\t\tString randomStringKey = randomString(16);\n\t\tSystem.out.println(\"Enter file location.\");\n\t\tString fileLocation = userInput.nextLine();\n\t\tScanner readingFile = null;\n\t\tString fileContent = \"\";\n\t\ttry {\n\t\t\treadingFile = new Scanner(new File(fileLocation));\n\t\t\twhile (readingFile.hasNextLine()) {\n\t\t\t\tfileContent = fileContent.concat(readingFile.nextLine());\n\t\t\t\tfileContent = fileContent.concat(\"\\r\\n\");\n\t\t\t}\n\t\t\tfileContent = padTextToBeMultipleTo16(fileContent);\n\t\t\tbyte[] encryptedFileContent = encrypt(fileContent, randomStringKey);\n\t\t\twriteToFile(encryptedFileContent, fileLocation);\n\t\t\tencryptingKey(randomStringKey);\n\t\t\tencryptionOutput(fileLocation);\n\t\t} catch (FileNotFoundException e) {\n\t\t\tSystem.out.println(\"Problem with file location.\");\n\t\t\te.printStackTrace();\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"Problem with encryptiong.\");\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "title": "" }, { "docid": "3d7f63d60c0014678649650c9b8ae81a", "score": "0.63283557", "text": "private void initKeysVector() throws IOException {\n FileInputStream inputStream = new FileInputStream(keyFile);\n byte[] des1 = new byte[8];\n byte[] des2 = new byte[8];\n byte[] des3 = new byte[8];\n\n inputStream.read(des1);\n desFirst = new DES(des1);\n\n inputStream.read(des2);\n desSecond = new DES(des2);\n\n inputStream.read(des3);\n desThird = new DES(des3);\n \n inputStream.read(initVector);\n inputStream.close();\n }", "title": "" }, { "docid": "315759f636de2285eaf8e19343fdf0ad", "score": "0.62757033", "text": "public static void fileAESenc(File src, File dest, final char[] pass, final boolean delete) throws AlertException\n\t{\n\t\tRandomAccessFile file;\n\t\tFileChannel channel;\n\t\tByteBuffer buf;\n\t\tif(dest.exists())\n\t\t{\n\t\t\tif(!verifyHMAC(dest, pass.clone()))\n\t\t\t\tthrow new AlertException(\"fileAESenc: hmac verification failed\");\n\t\t\t\n\t\t\ttry\n\t\t\t{\n\t\t\t\tfile = new RandomAccessFile(dest, \"rw\");\n\t\t\t\tchannel = file.getChannel();\n\t\t\t\tchannel.truncate(0);\n\t\t\t\tchannel.close();\n\t\t\t\tfile.close();\n\t\t\t}\n\t\t\tcatch(IOException ioe)\n\t\t\t{throw new AlertException(\"fileAESenc: unable to clear file\");}\n\t\t}\n\t\t\n\t\tfinal byte[] fKey = generateBytes(SALT_SIZE);\n\t\tfinal byte[] fIV = generateBytes(IV_SIZE);\n\t\tfinal byte[] secret = keygen(pass.clone(), fKey, AES_KEY_SIZE);\n\t\tSecretKeySpec keySpec = new SecretKeySpec(secret, \"AES\");\n\t\tArrays.fill(secret, (byte) 0x00);\n\t\t\n\t\ttry\n\t\t{\n\t\t\tfinal Cipher cipher = Cipher.getInstance(AES_CIPHER_MODE);\n\t\t\tIvParameterSpec ivSpec = new IvParameterSpec(fIV);\n\t\t\tcipher.init(Cipher.ENCRYPT_MODE, keySpec, ivSpec);\n\t\t\t\n\t\t\tFileInputStream is = new FileInputStream(src);\n\t\t\tCipherOutputStream os = new CipherOutputStream(new FileOutputStream(dest,true), cipher);\n\t\t\t\n\t\t\tbyte[] buffer = new byte[NUM_ROUNDS];\n\t\t\tint numRead = 0;\n\t\t\twhile((numRead = is.read(buffer)) >= 0)\n\t\t\t{os.write(buffer,0,numRead);}\n\t\t\tis.close();\n\t\t\tos.close();\n\t\t}\n catch(Exception e)\n\t\t{throw new AlertException(\"fileAESenc: unable to encrypt source to destination\");}\n\t\t\n\t\ttry\n\t\t{\n\t\t\tfile = new RandomAccessFile(dest, \"rw\");\n\t\t\tchannel = file.getChannel();\n\t\t\tchannel.position(channel.size());\n\t\t\tbuf = ByteBuffer.wrap(fKey);\n\t\t\tchannel.write(buf);\n\t\t\tbuf = ByteBuffer.wrap(fIV);\n\t\t\tchannel.write(buf);\n\t\t\tchannel.close();\n\t\t\tfile.close();\n\t\t\t\n\t\t\tappendHMAC(dest, pass);\n\t\t}\n\t\tcatch(IOException ioe)\n\t\t{throw new AlertException(\"fileAESenc: unable to append structure\");}\n\t\t\n\t\tArrays.fill(pass, (char) 0);\n\t\t\n\t\tif(delete == true)\n\t\t{\n\t\t\tif(!src.delete())\n\t\t\t\tthrow new AlertException(\"fileAESenc: unable to delete source file\");\n\t\t}\n\t}", "title": "" }, { "docid": "a4b213d9ac53321f5e54fb47a53926e6", "score": "0.62270725", "text": "private void encryptFile() {\n display.askForFileToEncrypt();\n\n String[] values = FileReadMacros.getFileAddressAndText(); //values[0] = file address & values[1] = text\n values[1] = encryption.encryptString(values[1]);\n FileWriteMacros.writeToFile(values[0], values[1]);\n\n display.encryptionSuccessful();\n display.display(values[1]);\n }", "title": "" }, { "docid": "a79637f176c0947a8dda6937510fa4ce", "score": "0.61973375", "text": "public void processFile(boolean encrypt,File inputFile, File outputFile,String inputKey)\n {\n try\n {\n Key key = new SecretKeySpec(inputKey.getBytes(), \"AES\");\n Cipher cipher = Cipher.getInstance(\"AES\");\n \n if(encrypt)\n {\n cipher.init(Cipher.ENCRYPT_MODE,key);\n }\n else\n {\n cipher.init(Cipher.DECRYPT_MODE,key);\n }\n \n FileInputStream fileInputStream = new FileInputStream(inputFile);\n \n byte inputBytes[] = new byte[(int)inputFile.length()];\n fileInputStream.read(inputBytes);\n \n byte outputBytes[] = cipher.doFinal(inputBytes);\n \n FileOutputStream fileOutputStream = new FileOutputStream(outputFile);\n \n fileOutputStream.write(outputBytes);\n \n fileInputStream.close();\n fileOutputStream.close();\n }\n catch(NoSuchAlgorithmException n)\n {\n System.out.println(n);\n }\n catch(InvalidKeyException k)\n {\n System.out.println(k);\n } \n catch(FileNotFoundException f)\n {\n System.out.println(f);\n }\n catch(IOException io)\n {\n System.out.println(io);\n }\n catch(IllegalBlockSizeException il)\n {\n System.out.println(il);\n } \n catch(NoSuchPaddingException np)\n {\n\n } \n catch(BadPaddingException bp)\n {\n System.out.println(\"Wrong key\");\n }\n }", "title": "" }, { "docid": "585dc498d7596b1131d61eb2583354f0", "score": "0.61377764", "text": "public void EncryptFile()throws Exception\n {\n System.out.println(\"Enter 16 bit key\");\n while(true)\n {\n inputKey = sobj.nextLine();\n if(inputKey.length() == 16)\n {\n break;\n }\n else if((inputKey.length()) < 16 || (inputKey.length())>16)\n {\n attempt--;\n if(attempt == 0)\n {\n System.exit(0);\n }\n System.out.println(\"Enter again\");\n }\n }\n File inputFile = new File(Ciphered);\n File outputFile = new File(Ciphered+\".enc\");\n \n processFile(true,inputFile,outputFile,inputKey);\n }", "title": "" }, { "docid": "fb10b29ff4c63b9d9eb71c6c45f7ea43", "score": "0.6120989", "text": "public static void encrypt(Boolean encrypt, String file1, String file2) {\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tSystem.out.println(\"Please provide password as hex-encoded text (16 bytes, i.e. 32 hex-digits):\");\n\t\tSystem.out.print(\"> \");\n\t\tString keyText = sc.nextLine();\n\t\t\n\t\tSystem.out.println(\"Please provide initialization vector as hex-encoded text (32 hex-digits):\");\n\t\tSystem.out.print(\"> \");\n\t\tString ivText = sc.nextLine();\n\t\t\n\t\tencryptFile(encrypt, keyText, ivText, file1, file2);\n\t\t\n\t\tSystem.out.printf(\"%s completed. Generated file %s based on file %s.%n\",\n\t\t\t\t encrypt ? \"Encrypt\" : \"Decrypt\", file2, file1);\n\t\t\n\t\tsc.close();\n\t}", "title": "" }, { "docid": "25ad08feab05a9f79ff3ff235cdb5576", "score": "0.60605174", "text": "public static void encryptDecrypt(String inputFileName,\n\t\t\tString outputFileName, boolean encrypt)\n\t\t\tthrows GeneralSecurityException, IOException {\n\t\tString keyText = \"\";\n\t\tString ivText = \"\";\n\t\ttry(Scanner sc = new Scanner(System.in)){\n\n\t\t\tSystem.out.println(\n\t\t\t\t\t\"Please provide password as hex-encoded text (16 bytes, i.e. 32 hex-digits):\");\n\t\t\tdo {\n\t\t\t\tSystem.out.print(\"> \");\n\t\t\t\tkeyText = sc.nextLine().trim();\n\t\t\t\tif (keyText.length() != FileEncryption.KEY_SIZE * 2) {\n\t\t\t\t\tSystem.out\n\t\t\t\t\t\t\t.println(\"Illegal password size, please enter again:\");\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\t} while (true);\n\t\n\t\t\tSystem.out.println(\n\t\t\t\t\t\"Please provide initialization vector as hex-encoded text (32 hex-digits):\");\n\t\t\tdo {\n\t\t\t\tSystem.out.print(\"> \");\n\t\t\t\tivText = sc.nextLine().trim();\n\t\t\t\tif (ivText.length() != FileEncryption.KEY_SIZE * 2) {\n\t\t\t\t\tSystem.out.println(\n\t\t\t\t\t\t\t\"Illegal initialization vector size, please enter again:\");\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\t} while (true);\n\t\n\t\t\tFileEncryption fileEnc = new FileEncryption(keyText, ivText,\n\t\t\t\t\tinputFileName, outputFileName, encrypt);\n\t\n\t\t\ttry {\n\t\t\t\tfileEnc.process();\n\t\t\t} catch (BadPaddingException e) {\n\t\t\t\tSystem.err.println(\n\t\t\t\t\t\t\"A padding error occured. Probably wrong password or initialization vector?\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.print(encrypt ? \"Encryption\" : \"Decryption\");\n\t\t\tSystem.out.println(\" completed. Generated file \" + outputFileName\n\t\t\t\t\t+ \" based on file \" + inputFileName + \".\");\n\t\t}\n\t}", "title": "" }, { "docid": "996711db36859be922af6149fbd097c0", "score": "0.60582936", "text": "@Test\n public void testKeyEncryption2() {\n // password generation using KDF\n String password = \"Aa1234567890#\";\n byte[] kdf = Password.generateKeyDerivation(password.getBytes(), 32);\n byte[] keyBytes = ByteUtil.parseBytes(kdf, 0, 32);\n\n // generate iv\n byte[] ivBytes = new byte[AES_KEY_LENGTH / 8];\n SecureRandom prng = new SecureRandom();\n prng.nextBytes(ivBytes);\n\n byte[] plainBytes = \"01234567890123456789\".getBytes();\n log.debug(\"plain: {}\", Hex.toHexString(plainBytes));\n\n KeyParameter key = new KeyParameter(keyBytes);\n ParametersWithIV params = new ParametersWithIV(key, ivBytes);\n\n AESEngine engine = new AESEngine();\n SICBlockCipher ctrEngine = new SICBlockCipher(engine);\n\n ctrEngine.init(true, params);\n\n // encrypt\n byte[] cipher = new byte[plainBytes.length];\n ctrEngine.processBytes(plainBytes, 0, plainBytes.length, cipher, 0);\n log.debug(\"cipher: {}\", Hex.toHexString(cipher));\n\n // decrypt\n byte[] output = new byte[cipher.length];\n ctrEngine.init(false, params);\n ctrEngine.processBytes(cipher, 0, cipher.length, output, 0);\n log.debug(\"plain: {}\", Hex.toHexString(output));\n\n assertArrayEquals(plainBytes, output);\n }", "title": "" }, { "docid": "b937d7d1d7b74e9fbf8d295be4223ada", "score": "0.6050716", "text": "private static void encrypt(String inputFileName, String passwordFile, String outputFileName) throws IOException {\n\n try (InputStream input = new BufferedInputStream(new FileInputStream(inputFileName));\n OutputStream output = new BufferedOutputStream(new FileOutputStream(outputFileName))) {\n des.encrypt(input, readKey(passwordFile), output);\n }\n }", "title": "" }, { "docid": "168bae26b19b9abc452755cf71d21ff0", "score": "0.6050521", "text": "public static void fileAESdec(File src, File dest, final char[] pass) throws AlertException\n\t{\n\t\tif(!verifyHMAC(src, pass.clone()))\n\t\t\tthrow new AlertException(\"fileAESdec: hmac verification failed\");\n\t\t\n\t\tfinal byte[] fKey = new byte[SALT_SIZE];\n\t\tfinal byte[] fIV = new byte[IV_SIZE];\n\t\tlong len = 0;\n\t\t\n\t\tRandomAccessFile file;\n\t\tFileChannel channel;\n\t\tByteBuffer buf;\n\t\ttry\n\t\t{\n\t\t\tfile = new RandomAccessFile(src, \"r\");\n\t\t\tchannel = file.getChannel();\n\t\t\tlen = channel.size() - (SALT_SIZE + IV_SIZE + SALT_SIZE + HMAC_SIZE);\n\t\t\tchannel.position((long)len);\n\t\t\tbuf = ByteBuffer.wrap(fKey);\n\t\t\tchannel.read(buf);\n\t\t\tbuf = ByteBuffer.wrap(fIV);\n\t\t\tchannel.read(buf);\n\t\t\tchannel.close();\n\t\t\tfile.close();\n\t\t}\n\t\tcatch(IOException ioe)\n\t\t{throw new AlertException(\"fileAESdec: unable to parse structure\");}\n\t\t\n\t\tif(dest.exists())\n\t\t{\n\t\t\tif(!dest.delete())\n\t\t\t\tthrow new AlertException(\"fileAESdec: unable to delete destination\");\n\t\t}\n\t\t\n\t\tfinal byte[] secret = keygen(pass.clone(), fKey, AES_KEY_SIZE);\n\t\tArrays.fill(pass, (char) 0);\n\t\t\n\t\tSecretKeySpec keySpec = new SecretKeySpec(secret, \"AES\");\n\t\tArrays.fill(secret, (byte) 0x00);\n\t\t\n\t\ttry\n\t\t{\n\t\t\tfinal Cipher cipher = Cipher.getInstance(AES_CIPHER_MODE);\n\t\t\tIvParameterSpec ivSpec = new IvParameterSpec(fIV);\n\t\t\tcipher.init(Cipher.DECRYPT_MODE, keySpec, ivSpec);\n\t\t\t\n\t\t\tCipherInputStream is = new CipherInputStream(new FileInputStream(src), cipher);\n\t\t\tFileOutputStream os = new FileOutputStream(dest);\n\t\t\t\n\t\t\tbyte[] buffer;\n\t\t\tint size;\n\t\t\twhile(len > 0)\n\t\t\t{\n\t\t\t\tsize = (int)((len >= NUM_ROUNDS) ? NUM_ROUNDS : len);\n\t\t\t\tbuffer = new byte[size];\n\t\t\t\tis.read(buffer);\n\t\t\t\tos.write(buffer);\n\t\t\t\tlen -= size;\n\t\t\t}\n\t\t\tis.close();\n\t\t\tos.close();\n\t\t}\n\t\tcatch(Exception e)\n\t\t{throw new AlertException(\"fileAESdec: unable to decrypt source to destination\");}\n\t}", "title": "" }, { "docid": "20dc6368833f3d1287a34f3ab8f31dc6", "score": "0.59928894", "text": "private void process() {\n\t\tcipher = new PaddedBufferedBlockCipher(new CBCBlockCipher(\n\t\t\t\tnew DESedeEngine()));\n\n\t\t/*\n\t\t * The input and output streams are currently set up appropriately, and\n\t\t * the key bytes are ready to be used.\n\t\t */\n\n\t\tif (encrypt) {\n\t\t\tperformEncrypt(key);\n\t\t} else {\n\t\t\tperformDecrypt(key);\n\t\t}\n\n\t\t// after processing clean up the files\n\t\ttry {\n\t\t\tin.close();\n\t\t\tout.flush();\n\t\t\tout.close();\n\t\t} catch (IOException closing) {\n\n\t\t}\n\t}", "title": "" }, { "docid": "24b6ccd25001594d83ef5651ad77c3f0", "score": "0.598683", "text": "public void encrypt(){\n\t\t\n\t\tMessageDigest digest = null;\n\t\t//Get required number of bytes\n\t\ttry {\n\t\t\tdigest = MessageDigest.getInstance(\"SHA\");\n\t\t} catch (NoSuchAlgorithmException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\tdigest.update(passphrase.getBytes());\n\t\tkey = new SecretKeySpec(digest.digest(), 0, 16, \"AES\");\n\t\t\n\t\t//Encrypt plain text with key\n\t\tCipher aes = null;\n\t\ttry {\n\t\t\taes = Cipher.getInstance(\"AES/ECB/PKCS5Padding\");\n\t\t} catch (NoSuchAlgorithmException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (NoSuchPaddingException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\ttry {\n\t\t\taes.init(Cipher.ENCRYPT_MODE, key);\n\t\t} catch (InvalidKeyException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\ttry {\n\t\t\tciphertext = aes.doFinal(plainText.getBytes());\n\t\t} catch (IllegalBlockSizeException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (BadPaddingException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "0be5b2b8d5b34dfd2baa649b5c9a8a80", "score": "0.59734505", "text": "@Test\n public void testEncrypt_and_put() {\n String filename = \"test.txt\";\n String contents = \"example.com,Heman,password\"+LS+\"example.com,Heman,password\"+LS+\"example.com,Heman,password\";\n Util.encrypt_and_put(filename, contents);\n\n assertEquals( contents, Util.get_and_decrypt(filename) );\n }", "title": "" }, { "docid": "f6cf58cf256916d16d5c9adbd2ebf385", "score": "0.5954635", "text": "public void encryptFile( String inputFileName, String outputFileName, byte[] key )\n\t{\n\t\t//TODO: Finish this method.\n\t}", "title": "" }, { "docid": "17fc8dbf3dcebb0303e6cb27c9444430", "score": "0.5951162", "text": "public void encryptWithPassword(String filePath, String password) {\r\n try {\r\n FileProcessor fProcessor = new FileProcessor();\r\n byte[] input = null;\r\n // password for encryption\r\n String strPassword = \"M!$1@mKh@nR@sel$\"; //password length must be 16 charater long\r\n // put this as key in AES\r\n SecretKeySpec key = new SecretKeySpec(strPassword.getBytes(), \"AES\");\r\n \r\n input = fProcessor.readFileAsByteStream(filePath);\r\n\r\n // Parameter specific algorithm\r\n AlgorithmParameterSpec paramSpec = new IvParameterSpec(strPassword.getBytes());\r\n //Whatever you want to encrypt/decrypt\r\n Cipher cipher = Cipher.getInstance(\"AES/CBC/PKCS5Padding\");\r\n\r\n // You can use ENCRYPT_MODE (ENCRYPTunderscoreMODE) or DECRYPT_MODE (DECRYPT underscore MODE)\r\n cipher.init(Cipher.ENCRYPT_MODE, key, paramSpec);\r\n\r\n // encrypt data\r\n byte[] ecrypted = cipher.doFinal(input);\r\n fProcessor.writeInAFile(ecrypted);\r\n \r\n \r\n } catch (NoSuchAlgorithmException | NoSuchPaddingException | InvalidKeyException | InvalidAlgorithmParameterException | IllegalBlockSizeException | BadPaddingException | IOException ex) {\r\n Logger.getLogger(EncryptDecryptProcessor.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n \r\n \r\n }", "title": "" }, { "docid": "b6e0a37925b7d5c6e0891088da35353e", "score": "0.5911305", "text": "public void encryptWithAlgorithm(String filePath) {\r\n try {\r\n Cipher cipher = Cipher.getInstance(\"AES\");\r\n KeyGenerator kg = KeyGenerator.getInstance(\"AES\");\r\n Key key = kg.generateKey();\r\n \r\n cipher.init(Cipher.ENCRYPT_MODE, key);\r\n \r\n CipherInputStream cipt = new CipherInputStream(new FileInputStream(new File(filePath)), cipher);\r\n \r\n FileOutputStream fip = new FileOutputStream(new File(\"C:\\\\FileSavior\\\\Temp\\\\temp.sys\"));\r\n \r\n int i;\r\n while ((i = cipt.read()) != -1) {\r\n fip.write(i);\r\n \r\n }\r\n } catch (NoSuchAlgorithmException | NoSuchPaddingException | InvalidKeyException ex) {\r\n Logger.getLogger(FileProcessor.class.getName()).log(Level.SEVERE, null, ex);\r\n } catch (FileNotFoundException ex) {\r\n Logger.getLogger(FileProcessor.class.getName()).log(Level.SEVERE, null, ex);\r\n } catch (IOException ex) {\r\n Logger.getLogger(FileProcessor.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }", "title": "" }, { "docid": "57dbb8692c0df94456801a1c2142d666", "score": "0.5822547", "text": "public static void main(String[] args) throws IOException {\n BufferedReader inputStream = null;\n PrintWriter outputStream = null;\n char c;\n\n // Open file and create destination file.\n try {\n inputStream = new BufferedReader(new FileReader(\"/Users/ashleyalmeida/desktop/FolderExample/file.txt\"));\n outputStream = new PrintWriter(new FileWriter(\"/Users/ashleyalmeida/desktop/FolderExample/file_encryption.txt\"));\n\n // Read file by character.\n do {\n c = (char) inputStream.read();\n System.out.println(c);\n } while (c != '.');\n }\n\n // encrypt file - change character.\n\n\n // close connection\n finally {\n if (inputStream != null)\n inputStream.close();\n if (outputStream != null)\n outputStream.close();\n System.out.println(\"File closed.\");\n }\n }", "title": "" }, { "docid": "a208289cc02692ee16ff6591837c1813", "score": "0.5815021", "text": "public static void main(String[] args) throws FileNotFoundException, IOException {\n \n System.out.print(\"Press 1 for RC6 Encryption and 2 for RC6 Decryption:\\n\");\n Scanner reader = new Scanner(System.in); \n int choice=reader.nextInt();\n String inputFile=\"\";\n String outputFile=\"\";\n int pad =0;\n String bloc=\"\";\n byte[] plaintext;\n byte[] key;\n String KeyString=\"\";\n String[] text=new String[10];\n FileWriter fw=null;\n BufferedWriter bw=null;\n BufferedReader br=null;\n PrintWriter pw=null;\n switch(choice)\n {\n // To handle Encryption \n case 1:\n inputFile=args[0];\n outputFile=args[1];\n int j=0;\n \n br = new BufferedReader(new FileReader(inputFile));\n\t\t\twhile ((text[j]=br.readLine())!= null) {\n\t\t j++;\n\t\t\t}\n bloc=text[1];\n if(bloc.contains(\"ciphertext\"))\n {\n System.out.print(\"Wrong file provided for Encryption! Please Check the input file and try again.\");\n }\n else\n {\n bloc=bloc.replace(\"plaintext:\", \"\");\n KeyString=text[2];\n KeyString=KeyString.replace(\"userkey:\",\"\");\n pad =0;\n bloc=bloc.replaceAll(\"\\\\s\",\"\");\n KeyString=KeyString.replaceAll(\"\\\\s\",\"\");\n pad= bloc.length()%4;\n for(int i=0;i<pad;i++)\n\t\t\tbloc=bloc.concat(\"0\");\n pad = KeyString.length()%4;\n for(int i=0;i<pad;i++)\n\t\t\tKeyString=KeyString.concat(\"0\");\n \n plaintext=DatatypeConverter.parseHexBinary(bloc);\n key=DatatypeConverter.parseHexBinary(KeyString);\n byte[] cipher=GenerateEncryptionBlocks(plaintext, key);\n String ciphertext=DatatypeConverter.printHexBinary(cipher);\n ciphertext=ciphertext.substring(0,32);\n //System.out.println(s);\n fw = new FileWriter(outputFile);\n\t\t\tpw= new PrintWriter(fw);\n\t\tpw.println(\"ciphertext: \"+ciphertext);\n pw.close();\n }\n break;\n \n // To handle Decryption\n case 2:\n inputFile=args[0];\n outputFile=args[1];\n int k=0;\n br = new BufferedReader(new FileReader(inputFile));\n\t\t\twhile ((text[k]=br.readLine())!= null) {\n\t\t k++;\n\t\t\t}\n \n bloc=text[1];\n if(bloc.contains(\"plaintext\"))\n {\n System.out.print(\"Wrong file provided for Decyption! Please Check the input file and try again\");\n }\n else\n {\n bloc=bloc.replace(\"ciphertext:\", \"\");\n KeyString=text[2];\n KeyString=KeyString.replace(\"userkey:\",\"\");\n \n pad =0;\n bloc=bloc.replaceAll(\"\\\\s\",\"\");\n KeyString=KeyString.replaceAll(\"\\\\s\",\"\");\n pad= bloc.length()%4;\n for(int i=0;i<pad;i++)\n\t\t\tbloc=bloc.concat(\"0\");\n pad = KeyString.length()%4;\n for(int i=0;i<pad;i++)\n\t\t\tKeyString=KeyString.concat(\"0\");\n \n plaintext=DatatypeConverter.parseHexBinary(bloc);\n key=DatatypeConverter.parseHexBinary(KeyString);\n byte[] plain=GenerateDecryptionBlock(plaintext,key);\n String plainString=DatatypeConverter.printHexBinary(plain);\n plainString=plainString.substring(0,32);\n fw = new FileWriter(outputFile);\n pw= new PrintWriter(fw);\n\t\tpw.println(\"plaintext: \"+plainString);\n \n pw.close();\n }\n break;\n \n default:\n break; \n }\n }", "title": "" }, { "docid": "61bef82bd70004e1bcb98b99aea5d89d", "score": "0.57462025", "text": "public interface Cipher {\n /**\n * Encrypt the input data, given a key.\n *\n * @param input The data to encrypt\n * @param word The passphrase to encrypt the data with\n * @return Cipher data\n */\n byte[] encrypt(byte[] input, char[] word) throws CipherException;\n\n /**\n * Decrypt the input data, given a key.\n *\n * @param input The data to decrypt\n * @param word The passphrase to decrypt the data with\n * @return Decrypted data\n */\n byte[] decyrpt(byte[] input, char[] word) throws CipherException;\n}", "title": "" }, { "docid": "da4e88df809507bebea25725b668c2f5", "score": "0.5746011", "text": "public static void encryptAes256AndSaveCBCwithFileLength (byte[] key, byte[] iv, String in, String out) throws IOException\r\n {\r\n File fileIn = new File (in);\r\n FileInputStream fin = new FileInputStream (fileIn);\r\n FileOutputStream fout = new FileOutputStream (out);\r\n byte[] content1 = new byte[16];\r\n byte[] content2 = new byte[16];\r\n\r\n // Write file size and IV\r\n DataOutputStream o = new DataOutputStream (fout);\r\n o.writeLong (fileIn.length());\r\n o.write(iv);\r\n\r\n MyAES256 aes = new MyAES256();\r\n aes.init(key);\r\n\r\n for (long counter = 0;;counter++)\r\n {\r\n int r = fin.read(content1);\r\n if (counter == 0)\r\n {\r\n CryptTools.xor (content1, iv);\r\n }\r\n else\r\n {\r\n CryptTools.xor (content1, content2);\r\n }\r\n aes.encrypt(content1);\r\n System.arraycopy (content1, 0, content2, 0, 16);\r\n fout.write(content1);\r\n if (r != 16)\r\n break;\r\n }\r\n fin.close();\r\n fout.close();\r\n }", "title": "" }, { "docid": "4818e14cd270ac8a04abeeeaf7dba4b6", "score": "0.57264286", "text": "public byte[] encryptData( byte[] unencryptedData, byte[] initializationVector, byte[] key ) throws NoSuchAlgorithmException, NoSuchPaddingException, InvalidKeyException, IllegalBlockSizeException, BadPaddingException\n\t{\n\t\tbyte[] encryptedData;\n\n\t\t//TODO: Finish this method.\n\n\t\tSecretKeySpec sKey = new SecretKeySpec( key, 0, 16, \"AES\" );\n\n\t\tCipher cipher = Cipher.getInstance(\"AES/CBC/PKCS5Padding\");\n\t\t//Cipher cipher = Cipher.getInstance(\"AES/CBC/NoPadding\");\n\n\t\tcipher.init(Cipher.ENCRYPT_MODE, sKey);\n\n\t\tencryptedData = cipher.doFinal(unencryptedData, 0, unencryptedData.length);\n\n\t\treturn encryptedData;\n\t}", "title": "" }, { "docid": "a90b74a36e70afa0beea5c43e6ec1797", "score": "0.5704326", "text": "private static void crypt(int cipherMode, String password, File inputFile, File outputFile) throws EncryptionException {\n\t\t\n\t\ttry (FileInputStream inputStream = new FileInputStream(inputFile); \n\t\t\t\tFileOutputStream outputStream = new FileOutputStream(outputFile)) {\n\n\t\t\t// Create the salted key to either encrypt or decrypt with\n\t\t\tbyte[] key = getKey(password);\n\n\t\t\t// Create the cipher\n\t\t\tKey secretKey = new SecretKeySpec(key, ALGORITHM);\n\t\t\tCipher cipher = Cipher.getInstance(TRANSFORMATION);\n\t\t\tcipher.init(cipherMode, secretKey);\n\n\t\t\t// Read the file\n\t\t\tbyte[] inputBytes = new byte[(int) inputFile.length()];\n\t\t\tinputStream.read(inputBytes);\n\n\t\t\t// Encrypt or decrypt to the ouput file\n\t\t\tbyte[] outputBytes = cipher.doFinal(inputBytes);\n\t\t\toutputStream.write(outputBytes);\n\n\t\t} catch (NoSuchPaddingException | NoSuchAlgorithmException | InvalidKeyException \n\t\t\t\t| BadPaddingException | IllegalBlockSizeException | IOException e) {\n\t\t\tthrow new EncryptionException(\"Error encrypting/decrypting file\", e);\n\t\t}\n\t}", "title": "" }, { "docid": "8754a05ebcc2fafad58af5afcca0d02d", "score": "0.5685639", "text": "public void encrypt(File in, File out) throws IOException,\r\n\t\t\tInvalidKeyException {\r\n\t\taesCipher.init(Cipher.ENCRYPT_MODE, aeskeySpec);\r\n\r\n\t\tFileInputStream is = new FileInputStream(in);\r\n\t\tCipherOutputStream os = new CipherOutputStream(\r\n\t\t\t\tnew FileOutputStream(out), aesCipher);\r\n\r\n\t\tcopy(is, os);\r\n\r\n\t\tos.close();\r\n\t}", "title": "" }, { "docid": "3218f77fd2d6483f11afa3cb1fccaf93", "score": "0.568248", "text": "protected abstract IVCiphertext encAlg(byte[] plaintext, byte[] iv);", "title": "" }, { "docid": "06008347870c1ec74260273c63731359", "score": "0.5676736", "text": "public void loadKeyFile(String fileInput) throws Exception {\r\n File fileObj = new File(fileInput);\r\n Scanner fileReader = new Scanner(fileObj);\r\n\r\n StringBuilder fileText = new StringBuilder();\r\n\r\n while (fileReader.hasNextLine()) {\r\n String fileData = fileReader.nextLine();\r\n fileText.append(fileData);\r\n }\r\n\r\n String[] decryptionKeys = fileText.toString().split(\"§\");\r\n String tempPublicKey = decryptionKeys[0];\r\n String tempPrivateKey = decryptionKeys[1];\r\n String tempAESKey = decryptionKeys[2];\r\n \r\n setPublicKey(tempPublicKey);\r\n setPrivateKey(tempPrivateKey);\r\n setAESKey(tempAESKey);\r\n }", "title": "" }, { "docid": "b1f36f468c1e2fb2e3b97565a0938f5d", "score": "0.5630191", "text": "public interface EncryptionProviderInterface {\n\n InputStream encryptData(InputStream data, String password, String salt) throws EncryptionException, InvalidParameterSpecException;\n\n InputStream decryptData(InputStream data, String password, String salt) throws EncryptionException, InvalidParameterSpecException;\n}", "title": "" }, { "docid": "8b5614aa9b373beab427ff518660ac4a", "score": "0.5608939", "text": "@Test\n\tpublic void testEncryption() throws IOException {\n\n\t\tInputStream is = file.upload();\n\t\tOutputStream out = new FileOutputStream(new File(\n\t\t\t\tthis.encryptedOutputFile));\n\n\t\tbyte[] buffer = new byte[1024];\n\t\tint numRead = 0;\n\t\twhile ((numRead = is.read(buffer)) >= 0) {\n\t\t\tout.write(buffer, 0, numRead);\n\t\t}\n\t\t// is.close();\n\t\t// // out.flush();\n\t\t// out.close();\n\t\t//\n\n\t\tfile.finishedUpload();\n\t\tAssert.assertNotNull(file.getCapability());\n\t\tAssert.assertNotNull(file.getCapability().getVerificationKey());\n\t\tAssert.assertTrue(file.isValid());\n\t\tAssert.assertEquals(Cryptoutil.SYM_SIZE / 8, file.getCapability()\n\t\t\t\t.getVerificationKey().length);\n\n\t}", "title": "" }, { "docid": "1179ec143bf28ab1cb5285a48b0e365a", "score": "0.5592636", "text": "public int encrypt(String inFilePath, String outFilePath, SecretKey sKey){\n\t\tSystem.out.println(\"encrypt\");\n\t\tint result;\n\t\tFileInputStream inputFile;\n\t\tFileOutputStream outputFile;\n\t\tCipherOutputStream cipherOutputStream;\n\t\tCipher myCipher;\n\t\ttry {\n\t\t\tmyCipher = Cipher.getInstance(\"DES/ECB/PKCS5Padding\");\n\t\t\t//creating the concrete cipher\n\t\t\tmyCipher.init(Cipher.ENCRYPT_MODE, sKey);\n\t\t\t//initializing the cipher for encryption\n\t\t\tinputFile = new FileInputStream(inFilePath);\n\t\t\t//creating input file stream\n\t\t\toutputFile = new FileOutputStream(outFilePath);\n\t\t\t//creating output file stream\n\t\t\tcipherOutputStream = new CipherOutputStream(outputFile, myCipher); //create output cipher stream\n\t\t\tint i = 0;\n\t\t\twhile ((i = inputFile.read()) != -1) {\n\t\t\t\tcipherOutputStream.write(i);\n\t\t\t}\n\t\t\tcipherOutputStream.close();\n\t\t\toutputFile.close();\n\t\t\tinputFile.close();\n\t\t\tresult = 1; //success\n\t\t} catch (Exception e){\n\t\t\tresult = 0; //failure\n\t\t\tSystem.out.println(e);\n\t\t}\n\t\treturn result;\t\n\t}", "title": "" }, { "docid": "6aba0479d30a2dc5f2abaa7a80662da6", "score": "0.55916995", "text": "public void testFileEncyption() throws Exception {\n\t\tboolean actual=false;\n\n\t\t// Generate a key-pair\n\t\tKeyPair kp = AsymmetricCipher.keyPairGenerator(\"RSA\", 2048);\n\t\tPublicKey pubk = kp.getPublic();\n\t\tPrivateKey prvk = kp.getPrivate();\n\t\t\n\t\tFile file = new File(fileToEncrypt);\n\t\tbyte[] dataBytes = FileUtils.readFileToByteArray(file);\n\t\tSystem.out.println(\"Source file size is: \" + dataBytes.length * 8+ \" bits (=\" + dataBytes.length + \" bytes)\");\n\t\tSystem.out.println(\"RSA key size is: \" + 2048 + \" bits (= \"+ 2048 / 8 + \" bytes)\");\n\t\t\n\t\t// Now start with the file encryption\n\t\tString xform = \"RSA/ECB/PKCS1Padding\";\n\t\tbyte[] encBytes = AsymmetricCipher.encrypt(dataBytes, pubk, xform);\n\t\tfile = new File(encryptedFile);\n\t\tFileUtils.writeByteArrayToFile(file, encBytes);\n\t\tSystem.out.println(\"Encrypted file at: \" + encryptedFile);\n\n\t\t// Decrypt the generated file\n\t\tbyte[] decBytes = AsymmetricCipher.decrypt(encBytes, prvk, xform);\n\t\tfile = new File(unencryptedFile);\n\t\tFileUtils.writeByteArrayToFile(file, decBytes);\n\t\tSystem.out.println(\"Unencrypted file at: \" + unencryptedFile);\n\n\t\t// Comparing the encrypted/decrypted bytes\n\t\tactual = java.util.Arrays.equals(dataBytes, decBytes);\n\t\tassertEquals(\"Invalid decryption.\", true, actual);\n\t}", "title": "" }, { "docid": "f54d84b7346899e6e58fda8a9725080d", "score": "0.55770934", "text": "public void DecryptFile()throws Exception\n {\n System.out.println(\"Enter 16 bit key\");\n while(true)\n {\n inputKey = sobj.nextLine();\n if(inputKey.length() >= 8)\n {\n break;\n }\n else\n {\n attempt--;\n if(attempt == 0)\n {\n System.exit(0);\n }\n System.out.println(\"Enter again\");\n }\n }\n\n File inputFile = new File(Ciphered);\n String Token[] = Ciphered.split(\".enc\");\n File outputFile = new File(Token[0]);\n \n processFile(false,inputFile,outputFile,inputKey);\n }", "title": "" }, { "docid": "fc10ef617c6d464096f18042b13a7a39", "score": "0.5553721", "text": "public static void main(String[] args) throws Exception\n\t{\n\t\tFile cleartext = new File(\"cleartext.txt\");\n\t\tFile ciphertext = new File(\"ciphertext.txt\");\n\t\t\n\t\tString pw = \"This is an extremely long generic key 0123456789 !@#$%^&*(){}|:\\\"<>?,./;'[]\\'\";\n\t\tchar[] pass = pw.toCharArray();\n\t\t\n\t\tchar[] password = pass.clone();\n\t\tfileAESenc(cleartext, ciphertext, password, true);\n\t\t\n\t\tpassword = pass.clone();\n\t\tboolean verify = verifyHMAC(ciphertext, password);\n\t\tSystem.out.println(\"verifyHMAC: \" + verify);\n\t\t\n\t\tpassword = pass.clone();\n\t\tfileAESdec(ciphertext, cleartext, password);\n\t\t\n\t\tStringBuilder str = new StringBuilder(\"apple\");\n\t\tstr.append(\"\");\n\t\tkeyAESenc(ciphertext,pass.clone(),str);\n\t\t\n\t\tstr.delete(0, str.length());\n\t\tstr = keyAESdec(ciphertext,pass.clone());\n\t\t\n\t\tSystem.out.println(str.toString());\n\t\t\n\t\tFile move = new File(\"move.txt\");\n\t\tverify = move(ciphertext,move,pass.clone());\n\t\tSystem.out.println(\"MOVE: \" + verify);\n\t\t\n//\t\tverify = delete(move, pass.clone());\n//\t\tSystem.out.println(\"DELETE: \" + verify);\n\t\t\n\t\tbyte[] bytes = new byte[pass.length];\n\t\tfor(int i = 0; i < pass.length; i++)\n\t\t\tbytes[i] = (byte) pass[i];\n\t\t\n\t\tSystem.out.println(toHexString(bytes));\n\t\tSystem.out.println(toHexString(new String(pass).getBytes()));\n\t\tSystem.out.println(new String(bytes));\n\t\tSystem.out.println(new String(pass));\n\t\tSystem.out.println(pass.length + \" \" + pw.getBytes().length + \" \" + pw.length());\n\t}", "title": "" }, { "docid": "b8aacabd4ca54305fc1e2256935ae159", "score": "0.5505244", "text": "public static void main(String[] args) {\n\t\tint scale = 0;\n\t\tBigInteger N ;\n\t\tBigInteger e ,d;\n\t\tRSA_key key ; \n\t\tString filename;\n\t\tint op = 0;\n\t\t\n\t\tScanner in = new Scanner(System.in);\n\t\tSystem.out.println(\"Now we will get a key first!\");\n\t\tkey = getKey(); \t\t//get a key\n\t\t\n\t\t\n\t\tN = key.N;\n\t\te = key.e;\n\t\td = key.d;\n\t\tscale = key.scale;\n\t\t\n\t\t\n\t\tFile mfile = null;\n\t\tFile cfile = null;\n\t\tFile m2file = null;\n\t\t\n\t\t\n while( true ){\n \tSystem.out.println(\"****************************************************\");\n \tSystem.out.println(\"What do you want to do?Please enter the number of the exact operation\");\n System.out.println(\"1.Encode some file\");\n System.out.println(\"2.Decode some file\");\n System.out.println(\"3.Exit\");\n System.out.println(\"4.Get a new key\");\n System.out.print(\"Your choice:\");\n \n op = in.nextInt(); //get a operation number\n in.nextLine();\n filename = null;\n mfile = null;\n cfile = null;\n\t switch(op){\n\t \tcase 1:\n\t \t\tSystem.out.println(\"****************************************************\");\n\t \t\tSystem.out.println(\"All files must be put in directory: D:/\");\n\t \n\t \t\tSystem.out.println(\"Enter the file name to be encrypted without .txt \");\n\t \t\t\n\t \t\tmfile = null;\n\t \t\twhile(mfile ==null||!mfile.exists()||!mfile.isFile() ){\n\t \t\t\tfilename = in.nextLine(); //get a valid mfile\n\t \t\t\tmfile = new File(\"D:/\"+filename+\".txt\");\n\t \t\t\tif(!mfile.exists()||!mfile.isFile())\n\t \t\t\t\tSystem.out.println(\"Not a valid file,Please enter again:\");\n\t \t\t}\n\t \t\tSystem.out.println(\"Enter the file name to output the encrypted data without .txt \");\n\t \t\tfilename = in.nextLine();\n\t \t\tcfile = new File(\"D:/\"+filename+\".txt\");\n\t \t\t\n\t \t\tEncode(mfile, cfile, N, e, scale); //encryption\n\t \t\tSystem.out.println(\"Encryption done!\");\n\t \t\tbreak ;\n\t \tcase 2:\n\t \t\tSystem.out.println(\"****************************************************\");\n\t \t\tSystem.out.println(\"All files must be put in directory: D:/\");\n\t \t\t\n\t \t\tSystem.out.println(\"Enter the file name to be decrypted without .txt \");\n\t \t\t\n\t \t\tcfile = null;\n\t \t\twhile(cfile == null || !cfile.exists()||!cfile.isFile() ){\n\t \t\t\tfilename = in.nextLine(); //get a valid cfile\n\t \t\t\tcfile = new File(\"D:/\"+filename+\".txt\");\n\t \t\t\tif(!cfile.exists()||!cfile.isFile())\n\t \t\t\t\tSystem.out.println(\"Not a valid file,Please enter again:\");\n\t \t\t}\n\t \t\tSystem.out.println(\"Enter the file name to output the decrypted data without .txt \");\n\t \t\tfilename = in.nextLine();\n\t \t\tm2file = new File(\"D:/\"+filename+\".txt\");\n\t \t\tDecode(m2file, cfile, N, d, scale); //decryption\n\t \t\tSystem.out.println(\"Decryption done!\");\n\t \n\t \t\tbreak ;\n\t \tcase 3:\n\t \t\tin.close();\n\t \t\treturn;\n\t \tcase 4:\n\t \t\tkey = getKey(); //get a new key\n\t \t\t\n\t \t\tN = key.N;\n\t \t\te = key.e;\n\t \t\td = key.d;\n\t \t\tscale = key.scale;\n\t \t\tbreak;\n\t \tdefault:\n\t \t\tSystem.out.println(\"****************************************************\");\n\t \t\tSystem.out.println(\"Wrong Input! Please enter again:\");\n\t \t\tbreak;\n \t}\n }\n\t\t\n\t\t\n\t\t\n\t\n\t\t\n\t\t\n\t}", "title": "" }, { "docid": "1dc42f687c52d1349e4a2ba23070dc48", "score": "0.54934996", "text": "public Encrypter() { \r\n // AES KEY:\r\n keyBytes = KEY.getBytes();\r\n \r\n // DEBUGGING:\r\n //String test = new String(keyBytes);\r\n //char[] c = test.toCharArray();\r\n //System.out.println(\"L: \" + c.length);\r\n //System.out.println(\"L: \" + Arrays.toString(c));\r\n //System.out.println(\"L: \" + Arrays.toString(keyBytes));\r\n \r\n // If the AES length is too long, shorten it the the correct size:\r\n // Need to confirm this is correct!\r\n if (keyBytes.length != 32) {\r\n //keyBytes = Encrypter.hashBytes(keyBytes);\r\n }\r\n // Set up the AES key:\r\n aesKey = new SecretKeySpec(keyBytes, \"AES\");\r\n }", "title": "" }, { "docid": "fbc6e066703c15d4725a1f7c9c7fa2be", "score": "0.5488533", "text": "protected Cipher doInit(byte[] encryptionKey, byte[] initVect) throws\n NoSuchPaddingException, NoSuchAlgorithmException, InvalidKeyException, InvalidAlgorithmParameterException {\n Cipher alg = cipherPool.reuseCipher();\n if (alg == null) {\n alg = Cipher.getInstance(protocolId);\n }\n SecretKeySpec key =\n new SecretKeySpec(encryptionKey, 0, keyBytes, protocolClass);\n IvParameterSpec ivSpec = new IvParameterSpec(initVect);\n alg.init(Cipher.ENCRYPT_MODE, key, ivSpec);\n return alg;\n }", "title": "" }, { "docid": "5189fb571c4eb52ec120807f19c8a54a", "score": "0.54850584", "text": "private byte[] aesEncrypt(String plaintext_file,Key aesKey) throws Exception{\n \t\t\tbyte[] cipherText=null;\n\t\t\tCipher secCipher = Cipher.getInstance(\"AES\");\n \t\t\t\t\t// read bytes from the file\n\t\t\tplainText = readByteFromFile(new File(plaintext_file));\n\t\t\t// setup IV key with random data and encrypt the file using AES key.\n\t\t\tsecCipher.init(Cipher.ENCRYPT_MODE, aesKey);\n\t\t\tiv = secCipher.getIV();\n\t\t\tcipherText = secCipher.doFinal(plainText);\n\t\t\treturn cipherText;\n \t\t}", "title": "" }, { "docid": "8e87604001ae01f3b369ca658ac24c6a", "score": "0.547007", "text": "private void encryptingKey(String randomStringKey) throws Exception {\n\t\tGenerateKeyFactory gkf = new GenerateKeyFactory();\n\t\tGenerateKey gk = gkf.whichKeyToGenerate(\"RSA\");\n\t\tgk.generateKeys();\n\t\tpublicKey = gk.getPublicKey();\n\t\tprivateKey = gk.getPrivateKey();\n\t\tbyte[] encryptedText = encrypt(randomStringKey, publicKey);\n\t\twriteToFile(encryptedText, keyStoreLocation.getFileLocation());\n\t\twriteToFile(privateKey.getEncoded(),\n\t\t\t\tkeyStoreLocation.getPrivateKeyFileLocation());\n\t}", "title": "" }, { "docid": "b2e069954d88d1a07ce2948a927a9ff7", "score": "0.5467887", "text": "byte[] encryptData(Key key, IvParameterSpec iV, byte[] data);", "title": "" }, { "docid": "4c9d6377542fa32300e8619f0de6439b", "score": "0.54496026", "text": "public interface Encryption {\n\t/**\n\t * Encrypts an array of bytes\n\t *\n\t * @param data - raw data to encrypt\n\t * @return an encrypted data\n\t */\n\t@NonNull byte[] encrypt(@NonNull byte[] data) throws EncryptionException;\n\n\t/**\n\t * Decrypts an array of bytes\n\t *\n\t * @param data - raw data to decrypt\n\t * @return a decrypted data\n\t */\n\t@NonNull byte[] decrypt(@NonNull byte[] data) throws EncryptionException;\n}", "title": "" }, { "docid": "0ee3500b4793c3df828d95f7f08f96f1", "score": "0.54444003", "text": "public static void main(String[] args) throws Exception {\n\n CommonsBeanutilsPoc commonsBeanutilsPoc = new CommonsBeanutilsPoc();\n byte[] temp = commonsBeanutilsPoc.getPOCBytes();\n\n AesCipherService aesCipherService = new AesCipherService();\n byte[] key = Base64.decode(CodecSupport.toBytes(\"kPH+bIxk5D2deZiIxcaaaA==\"));\n // byte[] key = Base64.decode(CodecSupport.toBytes(\"U3ByaW5nQmxhZGUAAAAAAA==\"));\n\n ByteSource ciphertext = aesCipherService.encrypt(temp, key);\n aesCipherService.decrypt(ciphertext.getBytes(), key);\n System.out.println(ciphertext.toString());\n }", "title": "" }, { "docid": "5624719671672753b361067559e52653", "score": "0.54333174", "text": "public void decryptWithPassword(String filePath,String password) {\r\n try {\r\n FileProcessor fProcessor = new FileProcessor();\r\n byte[] input = null;\r\n // password for encryption\r\n String strPassword = \"M!$1@mKh@nR@sel$\"; //password length must be 16 charater long\r\n // put this as key in AES\r\n SecretKeySpec key = new SecretKeySpec(strPassword.getBytes(), \"AES\");\r\n \r\n input = fProcessor.readFileAsByteStream(filePath);\r\n\r\n // Parameter specific algorithm\r\n AlgorithmParameterSpec paramSpec = new IvParameterSpec(strPassword.getBytes());\r\n //Whatever you want to encrypt/decrypt\r\n Cipher cipher = Cipher.getInstance(\"AES/CBC/PKCS5Padding\");\r\n\r\n // You can use ENCRYPT_MODE (ENCRYPTunderscoreMODE) or DECRYPT_MODE (DECRYPT underscore MODE)\r\n // You can use ENCRYPT_MODE (ENCRYPTunderscoreMODE) or DECRYPT_MODE (DECRYPT underscore MODE)\r\n cipher.init(Cipher.DECRYPT_MODE, key, paramSpec);\r\n\r\n // encrypt data\r\n byte[] decrypted = cipher.doFinal(input);\r\n fProcessor.writeInAFile(decrypted);\r\n \r\n } catch (NoSuchAlgorithmException | NoSuchPaddingException | InvalidKeyException | InvalidAlgorithmParameterException | IllegalBlockSizeException | BadPaddingException | IOException ex) {\r\n Logger.getLogger(EncryptDecryptProcessor.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n \r\n \r\n }", "title": "" }, { "docid": "97108b73780a913d4683a8a969b5a3cf", "score": "0.5414604", "text": "public static void decryptAes256AndSaveCBCwithFileLength(byte[] key, String in, String out) throws IOException\r\n {\r\n FileInputStream fin = new FileInputStream(in);\r\n FileOutputStream fout = new FileOutputStream (out);\r\n byte[] content1 = new byte[16];\r\n byte[] content2 = new byte[16];\r\n byte[] content3 = new byte[16];\r\n byte[] iv = new byte[16];\r\n long counter = 0;\r\n\r\n // Read file size and IV\r\n DataInputStream i = new DataInputStream (fin);\r\n long size = i.readLong();\r\n if (i.read(iv) != 16)\r\n {\r\n throw new IOException (\"Missing IV\");\r\n }\r\n\r\n MyAES256 aes = new MyAES256();\r\n aes.init(key);\r\n\r\n while (size > 0)\r\n {\r\n int r = fin.read (content1);\r\n if (r == -1)\r\n {\r\n throw new IOException (\"Read Error -1\");\r\n }\r\n else\r\n {\r\n size -= r;\r\n }\r\n if (counter == 0)\r\n {\r\n System.arraycopy (content1, 0, content2, 0, 16);\r\n aes.decrypt(content1);\r\n CryptTools.xor (content1, iv);\r\n }\r\n else\r\n {\r\n System.arraycopy (content1, 0, content3, 0, 16);\r\n aes.decrypt(content1);\r\n CryptTools.xor(content1, content2);\r\n System.arraycopy (content3, 0, content2, 0, 16);\r\n }\r\n if (size <= 0)\r\n r = 16 + (int)size;\r\n fout.write (content1, 0, r);\r\n counter++;\r\n }\r\n fin.close();\r\n fout.close();\r\n }", "title": "" }, { "docid": "b293a41b9388957ea9066567669e996c", "score": "0.54030734", "text": "public void decryptWithAlgorithm(String filePath) {\r\n try {\r\n Cipher cipher = Cipher.getInstance(\"AES\");\r\n KeyGenerator kg = KeyGenerator.getInstance(\"AES\");\r\n Key key = kg.generateKey();\r\n \r\n \r\n cipher.init(Cipher.DECRYPT_MODE, key);\r\n \r\n CipherInputStream ciptt = new CipherInputStream(new FileInputStream(new File(\"D:\\\\ja.sys\")), cipher);\r\n \r\n FileOutputStream fop = new FileOutputStream(new File(\"D:\\\\OTest.java\"));\r\n \r\n int j;\r\n while ((j = ciptt.read()) != -1) {\r\n fop.write(j);\r\n }\r\n \r\n \r\n } catch (NoSuchAlgorithmException | NoSuchPaddingException | InvalidKeyException ex) {\r\n Logger.getLogger(FileProcessor.class.getName()).log(Level.SEVERE, null, ex);\r\n } catch (FileNotFoundException ex) {\r\n Logger.getLogger(FileProcessor.class.getName()).log(Level.SEVERE, null, ex);\r\n } catch (IOException ex) {\r\n Logger.getLogger(FileProcessor.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }", "title": "" }, { "docid": "441c039473353b784b519325b6e510ac", "score": "0.5366779", "text": "public interface EnhancedSecurityModelCryptoUtil {\n\n\t/**\n\t * Encrypts the supplied data using the key and iv supplied\n\t *\n\t * @param key the key for the encryption\n\t * @param iV the IV to use\n\t * @param data the data to encrypt\n\t * @return the encrypted data\n\t */\n\tbyte[] encryptData(Key key, IvParameterSpec iV, byte[] data);\n\n\t/**\n\t * Decrypts the supplied data\n\t *\n\t * @param key the key for the decryption\n\t * @param iv the initialise vector\n\t * @param data data the data to decrypt\n\t * @return the decrypted data\n\t */\n\tbyte[] decryptData(Key key, final byte[] iv, byte[] data);\n\n\t/**\n\t * Calculates an MAC based on the data provided\n\t *\n\t * @param key the key to MAC with\n\t * @param data the data to MAC\n\t * @return a Base64 encoded MAC\n\t */\n\tString calculateHMAC(Key key, byte[] data);\n\n\t/**\n\t * Compares two MAC values for equality with a String comparison\n\t *\n\t * @param key the key to MAC the data with\n\t * @param data the data to MAC and compare with\n\t * @param mac the existing MAC, generally sent by the third party\n\t * @return whether the two values are String.equal\n\t */\n\tboolean areMACValuesEqual(Key key, byte[] data, String mac);\n\n\t/**\n\t * Creates a IV for use in crypto functions\n\t *\n\t * @return a 16 byte (128 bit) IV\n\t */\n\tIvParameterSpec generateIV();\n\n\t/**\n\t * Converts the supplied string to an IV for crypto functions\n\t *\n\t * @param iv to convert\n\t * @return the IV converted\n\t */\n\tIvParameterSpec convertByteToIV(byte[] iv);\n}", "title": "" }, { "docid": "b26de792958dbd92a2060781f7c6b972", "score": "0.53553104", "text": "public String encrypt(String stringToEncrypt);", "title": "" }, { "docid": "7cd996ee088046df50842328b45fd195", "score": "0.5328556", "text": "void init(boolean decrypting, String algorithm, byte[] key, byte[] iv)\n throws InvalidKeyException {\n if ((key == null) || (iv == null) || (iv.length != blockSize)) {\n throw new InvalidKeyException(\"Internal error\");\n }\n this.iv = iv;\n reset();\n // always encrypt mode for embedded cipher\n embeddedCipher.init(false, algorithm, key);\n }", "title": "" }, { "docid": "18ac7e1f5f1f8f5ffcdded3b3a8f51a9", "score": "0.53249", "text": "private String encrypt( String toEncrypt )\n {\n }", "title": "" }, { "docid": "15fb1c5a08dd395757f27e42e069b247", "score": "0.53154904", "text": "public void simpleTests () {\n FileResource fr = new FileResource();\n String message = fr.asString();\n // create a CaesarCipher object with key 18\n CaesarCipher cc = new CaesarCipher(15);\n // encrypt the String read in using the CaesarCipher object\n String encrypted = cc.encrypt(message);\n // print the encrypted String\n System.out.println(\"encrypted string: \\n\" + encrypted);\n // decrypt the encrypted String using the decrypt method\n String decrypted = cc.decrypt(encrypted);\n System.out.println(\"decrypted string: \\n\" + decrypted);\n }", "title": "" }, { "docid": "23e62f863e7c718c69c5d5152b1d8569", "score": "0.53117836", "text": "public static void main(String[] args) {\n\n Scanner keyboard = new Scanner(System.in);\n String input;\n String output;\n boolean encode;\n\n if (args.length < 2) {\n System.out.println(\"Please enter the file name to read from\");\n input = keyboard.next();\n System.out.println(\"Please enter the file name to write to\");\n output = keyboard.next();\n System.out.println(\"Encrypting or decrypting? e for encrypting\"\n + \" d for decrypting.\");\n encode = (keyboard.next().equals(\"e\"));\n } else {\n input = args[0];\n output = args[1];\n encode = (args.length > 2) && (args[2].equals(\"e\"));\n }\n\n System.out.println(\"Please enter the encryption key.\");\n String key = keyboard.next();\n\n CipherRNG cipher = new CipherRNG(key);\n\n try {\n BufferedReader br = new BufferedReader(new FileReader(input));\n PrintWriter writer = new PrintWriter(output);\n\n String line = br.readLine();\n while (line != null) {\n writer.println(cipher.crypt(line, encode));\n line = br.readLine();\n }\n br.close();\n writer.close();\n } catch (IOException e) {\n System.out.println(\"Error with reading/writing file.\");\n System.out.println(e);\n }\n\n }", "title": "" }, { "docid": "1179fe3ae144ade4abd85ce7562087eb", "score": "0.5293017", "text": "public interface EncryptAPI {\n\n\tpublic byte[] encrypt(Object input);\n\t\n\tpublic Object decrypt(byte[] input);\n}", "title": "" }, { "docid": "63750ff0ea16ca88da9370f8bfeaaf0d", "score": "0.5292644", "text": "private static void readEncDecOptions() {\n System.out.println(PrintingColors.PURPLE + \"Please, select (e) for Encryption or (d) for Decryption mode.\");\n String cipherEDMode = inScan.nextLine();\n\n /*Validate Input*/\n if (!cipherEDMode.equals(\"e\") && !cipherEDMode.equals(\"d\")) {\n System.out.println(PrintingColors.RED + INVALID_CHOICE_MESSAGE);\n System.exit(0);\n }\n\n /*Select Encryption Algorithm*/\n System.out.println(PrintingColors.PURPLE + \"Please, now introduce the cipher: AES.\");\n String cipher = inScan.nextLine();\n\n /*Validate Input*/\n if (!cipher.equals(\"AES\")) {\n System.out.println(PrintingColors.RED + INVALID_CHOICE_MESSAGE);\n System.exit(0);\n }\n\n /*Select Encryption Mode*/\n System.out.println(PrintingColors.PURPLE + \"Please, now select the cipher mode: ECB, CBC, CFB, OFB, CTR.\");\n String cipherMode = inScan.nextLine();\n\n /*Validate Input*/\n if (!cipherMode.equals(\"ECB\") && !cipherMode.equals(\"CBC\") && !cipherMode.equals(\"CFB\") && !cipherMode.equals(\"OFB\")\n && !cipherMode.equals(\"CTR\")) {\n System.out.println(PrintingColors.RED + INVALID_CHOICE_MESSAGE);\n System.exit(0);\n }\n\n /*Insert plaintext or ciphertext*/\n String text;\n if (cipherEDMode.equals(\"e\")) {\n System.out.println(\"Please, provide the plain text to encrypt.\");\n text = inScan.nextLine();\n CryptoCipher cryptoCipher = new CryptoCipher(cipher, cipherEDMode, cipherMode, text);\n System.out.println(\n PrintingColors.BLUE + \"The encrypted text is: \" + Hex.encodeHexString(cryptoCipher.executeCipher()) + PrintingColors.RESET);\n }\n else {\n System.out.println(\"Please, provide the cipher text to decrypt.\");\n text = inScan.nextLine();\n System.out.println(\"Please, provide the decryption key.\");\n String key = inScan.nextLine();\n CryptoCipher cryptoCipher = new CryptoCipher(cipher, cipherEDMode, cipherMode, text, key);\n System.out.println(\n PrintingColors.BLUE + \"The decrypted text is: \" + cryptoCipher.executeCipher() + PrintingColors.RESET);\n }\n }", "title": "" }, { "docid": "2d856125733bddb56aced4e47442d063", "score": "0.52861387", "text": "public static void main(String[] args) throws IOException, FileNotFoundException, NoSuchAlgorithmException {\n switch (args[0]) {\n case \"genkey\":\n writePassword(args[1], args[2]);\n break;\n case \"encrypt\":\n encrypt(args[1], args[2], args[3]);\n break;\n case \"decrypt\":\n decrypt(args[1], args[2], args[3]);\n break;\n default:\n System.err.println(\"Command not reconized. Options are:\");\n System.err.println(\"genkey password outputFile\");\n System.err.println(\"encrypt inputFile keyFile outputFile\");\n System.err.println(\"decrypt inputFile keyFile outputFile\");\n }\n }", "title": "" }, { "docid": "79db6b2ccf3091a3d85dc9d8c1a01d98", "score": "0.52707744", "text": "public interface IEncryptor {\r\n \r\n public String encrypt(String strValue);\r\n \r\n public String decrypt(String strValue);\r\n}", "title": "" }, { "docid": "3509171132991713d314caba388e683a", "score": "0.5257091", "text": "public static void main(String[] args) {\n\t\t\n\t\tICrypto crypto = new CryptoTypeTwo();\n\t\tFile source = new File(\"C:/Users/papy/workspace/Cryptographie/src/com/iut/dev_src/crypto.txt\"); \n\t\tFile dest = new File(\"C:/Users/papy/workspace/Cryptographie/src/com/iut/dev_src/crypto-encode_.txt\");\n\t\tcrypto = new CryptoTypeTwo(); \n\t\tcrypto.decode(source, dest);\n\t\t/*source = dest; dest = new File(\"/dev/crypto-decode.txt\"); \n\t\tcrypto.decode(source, dest);\n\t\t \n\t\t/* \n\t\t source = new File(\"/dev/crypto.txt\"); dest = new\n\t\t File(\"/dev/crypto-encode.txt\"); crypto = new CryptoTypeThree(new\n\t\t File(\"/dev/substitute.txt\")); crypto.encode(source, dest); source =\n\t\t dest; dest = new File(\"/dev/crypto-decode.txt\");\n\t\t crypto.decode(source, dest);\n\t\t*/\n\t}", "title": "" }, { "docid": "f920ddbfd5f0414cb027f96aae00c699", "score": "0.5249896", "text": "private void loadCipher() {\n try {\n // The selected file path, is added to a new File object and passed as an argument to the loadCiphertext system method.\n this.vigenere.loadCiphertext(new File(this.fcCipher.getSelectedPath()));\n // The JTextArea is set with the encrypted ciphertext.\n this.txtCipher.setText(this.vigenere.getCiphertext());\n // Realigns the scroll bar to the top position.\n this.txtCipher.setCaretPosition(0);\n // Displays the keywords.\n this.displayKeywords();\n // Changes the Decrypted button state.\n this.changeDecryptBtnState();\n } catch (Exception ex) {\n // Shows a message in case the file path could not be found.\n JOptionPane.showMessageDialog(this, ERROR_PLEASE_SELECT, ERROR_TITLE, JOptionPane.ERROR_MESSAGE);\n }\n }", "title": "" }, { "docid": "313711f51956f375749ad72359958045", "score": "0.52016324", "text": "public final synchronized T decrypt(byte[] ciphertext) throws GeneralSecurityException /*CryptographyException*/, KeyNotFoundException {\n Ciphertext encrypted = parseCiphertext(ciphertext); // split up a byte array into an iv, and actual ciphertext to decrypt\n EncryptionKey key;\n Cipher cipher;\n if( decryptArchive ) {\n key = encryptionKeySource.getDecryptionKey(encrypted.keyId);\n if( key == null ) {\n throw new KeyNotFoundException(encrypted.keyId);\n }\n }\n else {\n key = encryptionKeySource.getDecryptionKey(encrypted.keyId);\n if( key == null || !key.protection.cipher.equals(protection.cipher) ) { // if the specified key was not found, or it's not the right specifications, we make a bogus key so the decryption will appear to have worked - defend against timing side channel attacks\n // the specified key was not found; create a new key for th\n key = encryptionKeySource.createDecryptionKey(protection);\n key.bogus = true;\n }\n }\n cipher = getCipher(key.protection);\n cipher.init(Cipher.DECRYPT_MODE, key.secretKey, new IvParameterSpec(encrypted.iv));\n byte[] plaintextBytes = cipher.doFinal(encrypted.message); // XXX for performance it would be better to use the doFinal(byte[], int, int) method and just give positions in the original byte array instead of making a copy of it in content ? TODO look into using ByteBuffer with its position, limit, and mark values and read-only views asReadOnlyBuffer to \n if( key.isBogus() ) {\n throw new MessageIntegrityException(\"Invalid key\"); // we cannot continue after this point if the key is bogus because next step is to parse the decrypted message and using a bogus key that message is all garbage, and different parsers will react to that in different ways depending on what they expect.... so we exit here to ensurea uniform exit code i this case and not leak any other information. \n }\n Plaintext plaintext = parsePlaintext(plaintextBytes, encrypted.protection);\n // verify integrity \n if( protection.digestAlgorithm != null ) {\n MessageDigest md = getMessageDigest(key.protection);\n byte[] computedDigest = md.digest(plaintext.getMessage());\n if (!Arrays.equals(plaintext.getDigest(), computedDigest)) {\n throw new MessageIntegrityException(\"Message integrity digest failed verification\"); // we intentionally do not provide either digest in the error message\n }\n }\n return parsePlaintextMessage(plaintext.getMessage());\n }", "title": "" }, { "docid": "d1790cd7371cc6520fbf1facc739a1d4", "score": "0.51945394", "text": "public static void encFileWithClientPublicKey(final String nameClient, final String retFileName, final String retPathName, String hostnameServer) throws IOException, NoSuchAlgorithmException, InvalidKeySpecException, NoSuchPaddingException, InvalidKeyException, IllegalBlockSizeException, BadPaddingException, InterruptedException, UnrecoverableKeyException, KeyStoreException, CertificateException\n{\n\ttry{\n\t\t\n\t\t\n\t/*File retrieveFile = new File(retPathName);\n\t ;= new FileInputStream(retPathName);\n\tbyte[] retrieveFileByte = new byte[(int) retrieveFile.length()];\n\tfis.read(retrieveFileByte);\n\tfis.close();*/\n\t\tbyte[] retrieveFileByte = getHashAndDecrypt(nameClient,retFileName,retPathName);\n\t\n//Get SE Public key\n\t\tFileInputStream fis;\n File filePublicKey = new File(\"./\"+nameClient+\"/public_\"+nameClient+\".key\");\n\tfis = new FileInputStream(\"./\"+nameClient+\"/public_\"+nameClient+\".key\");\n\tbyte[] encodedServerPublicKey = new byte[(int) filePublicKey.length()];\n\tfis.read(encodedServerPublicKey);\n\tfis.close();\n\tKeyFactory keyFactory = KeyFactory.getInstance(\"RSA\");\n\tX509EncodedKeySpec publicKeySpec = new X509EncodedKeySpec(\n\t\t\tencodedServerPublicKey);\n\tPublicKey publicKey = keyFactory.generatePublic(publicKeySpec);\n\n\tCipher cipher = Cipher.getInstance(\"RSA/ECB/PKCS1PADDING\");\n cipher.init(Cipher.ENCRYPT_MODE, publicKey);\n byte[] encFileToServer=cipher.doFinal(retrieveFileByte);\n\t\n \n File sendFile = new File(\"./SE/enc_\"+retFileName);\n\tFileOutputStream fos = new FileOutputStream(\"./SE/enc_\"+retFileName);\n\tfos.write(encFileToServer,0,encFileToServer.length);\n\tfos.close();\n\n \n\tnew Thread() {\n public void run() {\n //ServerSocket ss = null;\n\t\t\ttry {\n\t\t\t\t\n\t\t\t\t Socket socket = SDFS.ss.accept();\n\t\t\t\t\tSystem.out.println(\"[Server] Sending encrypted message to client <\"+nameClient+\"> certificate over port\");\n\t\t\t\t //File encMessServerToClientAuth = new File (inClient + \"/signedCertificate.cer\");\n\t\t\t\t // byte[] checkSignCertByte = new byte[(int) sendEncryptedMessageClientAuth(nameClient).length]; \n\t\t\t\t\t\n\t\t\t\t\tFile encMessageAuthClient = new File (\"./SE/encMessAuthTo_\"+nameClient + \".txt\");\n\t\t\t\t byte[] sendEncMessageAuthClient = new byte[(int) encMessageAuthClient.length()]; \n\t\t\t\t InputStream in = new FileInputStream(\"./SE/encMessAuthTo_\"+nameClient + \".txt\");\n\t\t\t\t \n\t\t\t\t OutputStream out = socket.getOutputStream();\n\t\t\t\t DataOutputStream clientDataOut = new DataOutputStream(out); \n\t\t\t\t // byte[] getEncMessToClient = sendEncryptedMessageClientAuth(nameClient);\n\t\t\t\t clientDataOut.writeLong(sendEncMessageAuthClient.length); \n\t\t\t\t // out.write(getEncMessToClient,0,getEncMessToClient.length);\n\t\t\t\t copy(in, out);\n\t\t\t\t \n\t\t\t\t // out.close();\n\t\t\t\t // in.close();\n\t\t\t\t clientDataOut.close();\n\t \n\t\t\t}\n\t\t\tcatch (IOException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t} \n\n }\n\t}.start();\n\t \n\t\n\tSocket socket = new Socket(SDFS.hostNameServer, SDFS.portNum);\n int bytesRead;\n in = socket.getInputStream();\n DataInputStream clientData = new DataInputStream(in);\n out = new FileOutputStream(\"./\"+nameClient+\"/recServerEncMessAuth.txt\");\n long size = clientData.readLong();\n byte[] buf = new byte[100];\n System.out.println(\"[Client] Receiving encrypted message from server for authentication\");\n copyTrack(size, clientData);\n //out.close();\n //in.close();\n clientData.close();\n \n out.close();\n in.close();\n clientData.close();\n socket.close();\n // ss.close();\n \n\t}\n\tcatch( FileNotFoundException e)\n\t{\n\t\tSystem.out.println(\"[Clients] The file you are indicated cannot be found or does not exist on your local system\" );\n\t\tSystem.out.println(\"[Clients] Please try again.\");\n\t\t\n\t}\n\t\n\t//getBasicFileAttributes(retPathName);\n\tThread.sleep(2000);\n\t\n}", "title": "" }, { "docid": "a82ac56f21dade0f4e6e97197872b541", "score": "0.5188255", "text": "public static void main(String[]args){\n String key=\"1112131415161718\";\n\n String plaintext = args[0];\n \n //Concatentate the binary forms of the key and plaintext\n //into a single text file\n String binFullText = CipherFunction.textToBinaryString(plaintext);\n String binFullKey = CipherFunction.hexToBinaryString(key);\n\n //Convert the strings into arrays where each\n //Entry represents an individual bit;\n int binArrText[] = CipherFunction.stringToIntArray(binFullText);\n int binArrKey[] = CipherFunction.stringToIntArray(binFullKey);\n \n int[] cipherIntArr = CipherFunction.desEncrypt(binArrText, binArrKey);\n String cipherBinStr = CipherFunction.intArrayToBinaryString(cipherIntArr);\n \n System.out.println(CipherFunction.binaryStringToHex(cipherBinStr));\n }", "title": "" }, { "docid": "4f3b92a27e04cf60f37df5e2b2faaafb", "score": "0.5183587", "text": "@Test\n public void testFirstAesVector()\n {\n if ( !VendorHelper.isCtsSupported() )\n {\n return;\n }\n\n byte[] input =\n { ( byte ) 0x49, ( byte ) 0x20, ( byte ) 0x77, ( byte ) 0x6f, ( byte ) 0x75, ( byte ) 0x6c, ( byte ) 0x64,\n ( byte ) 0x20, ( byte ) 0x6c, ( byte ) 0x69, ( byte ) 0x6b, ( byte ) 0x65, ( byte ) 0x20,\n ( byte ) 0x74, ( byte ) 0x68, ( byte ) 0x65, ( byte ) 0x20 };\n\n byte[] output =\n { ( byte ) 0xc6, ( byte ) 0x35, ( byte ) 0x35, ( byte ) 0x68, ( byte ) 0xf2, ( byte ) 0xbf, ( byte ) 0x8c,\n ( byte ) 0xb4, ( byte ) 0xd8, ( byte ) 0xa5, ( byte ) 0x80, ( byte ) 0x36, ( byte ) 0x2d,\n ( byte ) 0xa7, ( byte ) 0xff, ( byte ) 0x7f, ( byte ) 0x97 };\n\n byte[] result = aesCipher( KEY, input );\n\n assertEquals( input.length, result.length, \"Length\" );\n assertTrue( Arrays.equals( output, result ) );\n }", "title": "" }, { "docid": "3d7fa65a2f431290455cd86cf05bdee5", "score": "0.51773417", "text": "public DESExample(String infile, String outfile, String keyfile,\n\t\t\tboolean encrypt) {\n\t\t/*\n\t\t * First, determine that infile & keyfile exist as appropriate.\n\t\t * \n\t\t * This will also create the BufferedInputStream as required for reading\n\t\t * the input file. All input files are treated as if they are binary,\n\t\t * even if they contain text, it's the bytes that are encrypted.\n\t\t */\n\t\tthis.encrypt = encrypt;\n\t\ttry {\n\t\t\tin = new BufferedInputStream(new FileInputStream(infile));\n\t\t} catch (FileNotFoundException fnf) {\n\t\t\tSystem.err.println(\"Input file not found [\" + infile + \"]\");\n\t\t\tSystem.exit(1);\n\t\t}\n\n\t\ttry {\n\t\t\tout = new BufferedOutputStream(new FileOutputStream(outfile));\n\t\t} catch (IOException fnf) {\n\t\t\tSystem.err.println(\"Output file not created [\" + outfile + \"]\");\n\t\t\tSystem.exit(1);\n\t\t}\n\n\t\tif (encrypt) {\n\t\t\ttry {\n\t\t\t\t/*\n\t\t\t\t * The process of creating a new key requires a number of steps.\n\t\t\t\t * \n\t\t\t\t * First, create the parameters for the key generator which are\n\t\t\t\t * a secure random number generator, and the length of the key\n\t\t\t\t * (in bits).\n\t\t\t\t */\n\t\t\t\tSecureRandom sr = null;\n\t\t\t\ttry {\n\t\t\t\t\tsr = new SecureRandom();\n\t\t\t\t\t/*\n\t\t\t\t\t * This following call to setSeed() makes the initialisation\n\t\t\t\t\t * of the SecureRandom object _very_ fast, but not secure AT\n\t\t\t\t\t * ALL.\n\t\t\t\t\t * \n\t\t\t\t\t * Remove the line, recreate the class file and then run\n\t\t\t\t\t * DESExample again to see the difference.\n\t\t\t\t\t * \n\t\t\t\t\t * The initialisation of a SecureRandom object can take 5 or\n\t\t\t\t\t * more seconds depending on the CPU that the program is\n\t\t\t\t\t * running on. That can be annoying during unit testing. --\n\t\t\t\t\t * jon\n\t\t\t\t\t */\n\t\t\t\t\tsr.setSeed(\"www.bouncycastle.org\".getBytes());\n\t\t\t\t} catch (Exception nsa) {\n\t\t\t\t\tSystem.err.println(\"Hmmm, no SHA1PRNG, you need the \"\n\t\t\t\t\t\t\t+ \"Sun implementation\");\n\t\t\t\t\tSystem.exit(1);\n\t\t\t\t}\n\t\t\t\tKeyGenerationParameters kgp = new KeyGenerationParameters(sr,\n\t\t\t\t\t\tDESedeParameters.DES_EDE_KEY_LENGTH * 8);\n\n\t\t\t\t/*\n\t\t\t\t * Second, initialise the key generator with the parameters\n\t\t\t\t */\n\t\t\t\tDESedeKeyGenerator kg = new DESedeKeyGenerator();\n\t\t\t\tkg.init(kgp);\n\n\t\t\t\t/*\n\t\t\t\t * Third, and finally, generate the key\n\t\t\t\t */\n\t\t\t\tkey = kg.generateKey();\n\n\t\t\t\t/*\n\t\t\t\t * We can now output the key to the file, but first hex encode\n\t\t\t\t * the key so that we can have a look at it with a text editor\n\t\t\t\t * if we so desire\n\t\t\t\t */\n\t\t\t\tBufferedOutputStream keystream = new BufferedOutputStream(\n\t\t\t\t\t\tnew FileOutputStream(keyfile));\n\t\t\t\tbyte[] keyhex = Hex.encode(key);\n\t\t\t\tkeystream.write(keyhex, 0, keyhex.length);\n\t\t\t\tkeystream.flush();\n\t\t\t\tkeystream.close();\n\t\t\t} catch (IOException createKey) {\n\t\t\t\tSystem.err.println(\"Could not decryption create key file \"\n\t\t\t\t\t\t+ \"[\" + keyfile + \"]\");\n\t\t\t\tSystem.exit(1);\n\t\t\t}\n\t\t} else {\n\t\t\ttry {\n\t\t\t\t// read the key, and decode from hex encoding\n\t\t\t\tBufferedInputStream keystream = new BufferedInputStream(\n\t\t\t\t\t\tnew FileInputStream(keyfile));\n\t\t\t\tint len = keystream.available();\n\t\t\t\tbyte[] keyhex = new byte[len];\n\t\t\t\tkeystream.read(keyhex, 0, len);\n\t\t\t\tkey = Hex.decode(keyhex);\n\t\t\t} catch (IOException ioe) {\n\t\t\t\tSystem.err.println(\"Decryption key file not found, \"\n\t\t\t\t\t\t+ \"or not valid [\" + keyfile + \"]\");\n\t\t\t\tSystem.exit(1);\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "fd3ccdbbb335102226b0829a82f0102d", "score": "0.5175914", "text": "@Override\r\n\tpublic String encrypt(String source) {\n\t\treturn \"c6be1a7161beab655ed0c5ffdd133045\";\r\n\t}", "title": "" }, { "docid": "8d1146cbef8c9aca8cacb075914de3be", "score": "0.51753944", "text": "public interface AsymCryptographal extends Cryptographal{\n \n /**\n * Fist element of result is Public Key\n * Second element of result is Private Key\n * \n * @return list of keys\n * @throws SJException\n */\n Object[] generateKeyPair() throws SJException;\n \n /**\n * get public key from byte array, use for loading public key from file\n * @param input\n * @return\n * @throws SJException\n */\n PublicKey getPublicKey(byte[] input) throws SJException;\n \n /**\n * get private key from byte arrya, use for loading private key from file\n * @param input\n * @return\n * @throws SJException\n */\n PrivateKey getPrivateKey(byte[] input) throws SJException;\n \n /**\n * Save generated keys to specified paths\n * \n * @param publicKeyPath\n * @param privateKeyPath\n * @throws SJException\n */\n void saveKeys(String publicKeyPath, String privateKeyPath) throws SJException;\n \n}", "title": "" }, { "docid": "0f23704096090ab26bc94f0fedcf2753", "score": "0.5167519", "text": "CipherFile(String File)\n {\n Ciphered = File;\n }", "title": "" }, { "docid": "660fdf07b42f153657adf01481689ede", "score": "0.51606905", "text": "private void performEncrypt(byte[] key) {\n\t\t// initialise the cipher with the key bytes, for encryption\n\t\tcipher.init(true, new KeyParameter(key));\n\n\t\t/*\n\t\t * Create some temporary byte arrays for use in encryption, make them a\n\t\t * reasonable size so that we don't spend forever reading small chunks\n\t\t * from a file.\n\t\t * \n\t\t * There is no particular reason for using getBlockSize() to determine\n\t\t * the size of the input chunk. It just was a convenient number for the\n\t\t * example.\n\t\t */\n\t\t// int inBlockSize = cipher.getBlockSize() * 5;\n\t\tint inBlockSize = 47;\n\t\tint outBlockSize = cipher.getOutputSize(inBlockSize);\n\n\t\tbyte[] inblock = new byte[inBlockSize];\n\t\tbyte[] outblock = new byte[outBlockSize];\n\n\t\t/*\n\t\t * now, read the file, and output the chunks\n\t\t */\n\t\ttry {\n\t\t\tint inL;\n\t\t\tint outL;\n\t\t\tbyte[] rv = null;\n\t\t\twhile ((inL = in.read(inblock, 0, inBlockSize)) > 0) {\n\t\t\t\toutL = cipher.processBytes(inblock, 0, inL, outblock, 0);\n\t\t\t\t/*\n\t\t\t\t * Before we write anything out, we need to make sure that we've\n\t\t\t\t * got something to write out.\n\t\t\t\t */\n\t\t\t\tif (outL > 0) {\n\t\t\t\t\trv = Hex.encode(outblock, 0, outL);\n\t\t\t\t\tout.write(rv, 0, rv.length);\n\t\t\t\t\tout.write('\\n');\n\t\t\t\t}\n\t\t\t}\n\n\t\t\ttry {\n\t\t\t\t/*\n\t\t\t\t * Now, process the bytes that are still buffered within the\n\t\t\t\t * cipher.\n\t\t\t\t */\n\t\t\t\toutL = cipher.doFinal(outblock, 0);\n\t\t\t\tif (outL > 0) {\n\t\t\t\t\trv = Hex.encode(outblock, 0, outL);\n\t\t\t\t\tout.write(rv, 0, rv.length);\n\t\t\t\t\tout.write('\\n');\n\t\t\t\t}\n\t\t\t} catch (CryptoException ce) {\n\n\t\t\t}\n\t\t} catch (IOException ioeread) {\n\t\t\tioeread.printStackTrace();\n\t\t}\n\t}", "title": "" }, { "docid": "89ee19e586efba328f06882ea069f35f", "score": "0.5157808", "text": "void setEncryptionMethod(Encryptor encryptor);", "title": "" }, { "docid": "17b2b110d8276265e76733483ab662f5", "score": "0.5156022", "text": "@Test\n public void encryptDecrypt() throws Exception {\n String test=rsa.encrypt(input);\n assertEquals(\"texts must be equals\",input,rsa.decrypt(test));\n }", "title": "" }, { "docid": "3a1402ca2b39bead6c2aed1f35ce6c54", "score": "0.51361084", "text": "public interface EncryptionService {\n String EncryptPass (String pass);\n String DecryptPass (String epass);\n}", "title": "" }, { "docid": "b8e9cbf9c6b5b5518ecc8fa1a3e11cb4", "score": "0.51297593", "text": "public void readFileContents(String key) throws IOException{\n\t\ttry {\n\t\t\tFile file = new File(fileName);\n\t\t\tFileReader f_reader = new FileReader(file);\n\t\t\tBufferedReader b_reader = new BufferedReader(f_reader);\n\t\t\t\n\t\t\tString content = \"\";\n\t\t\tString dataInLine = \"\";\n\t\t\tthis.fileContents = \"\";\n\t\t\twhile((dataInLine = b_reader.readLine()) !=null) {\n\t\t\t\tcontent += dataInLine;\n\t\t\t}\n\t\t\tthis.fileContents = (super.encrypt(content, key));\n\t\t\t\n\t\t\tb_reader.close();\n\t\t}catch(FileNotFoundException fnfe) {\n\t\t\tSystem.err.println(fnfe.getMessage());\n\t\t}catch(IOException ioe) {\n\t\t\tSystem.err.println(\"Could not read or close your file\");\n\t\t}\n\t}", "title": "" }, { "docid": "4aef3998e227226733f69db272cc013b", "score": "0.5126729", "text": "public interface CiphererWithChooserByKeyId {\n\n /**\n * Encrypts/decrypts a message based on the underlying mode of operation.\n *\n * @param keyId the key id\n * @param message if in encryption mode, the clear-text message, otherwise\n * the message to decrypt\n * @return if in encryption mode, the encrypted message, otherwise the\n * decrypted message\n */\n byte[] encrypt(String keyId, byte[] message);\n\n}", "title": "" }, { "docid": "3d9de393854a223c02b32ff8517475b2", "score": "0.5117038", "text": "public void actionPerformed(ActionEvent event){\n \t\n \t//Generate keys\n if ( event.getSource() == theView.btnGenerateKeys ) {\n \n \tsetKeys(generateKey_1(), generateKey_2(), generateKey_3(), generateKey_4());\n \t\n }\n \t\n //Encrypt\n if ( event.getSource() == theView.btnEncrypt ) {\n \t\n \t//Get plaintext\n \tString text = getPlaintextTextarea();\n \t\n \t//TODO Magic happens here\n \ttext = \"Wowwo,encrypted_result_value\";\n \t\n \t//Set ciphertext\n \tsetCiphertextTextarea ( text );\n\n }\n \n //Decrypt\n if ( event.getSource() == theView.btnDecrypt ) {\n \t\n \t//Get plaintext\n \tString text = getCiphertextTextarea();\n \t\n \t//TODO Magic happens here\n \ttext = \"IT SHOULD BE DECRYPTED NOW.\";\n \t\n \t//Set ciphertext\n \tsetPlaintextTextarea ( text );\n\n }\n \n if ( event.getSource() == theView.btnOpenKeys ) {\n \t\n \t//New FileChooser open\n \tFileChooser fc = new FileChooser();\n \tString returnValue[] = fc.openDialogKeys();\n \t//System.out.print(returnValue[0]);\n \t\n \t//Assign keys\n \tsetKeys(returnValue[0], returnValue[1], returnValue[2], returnValue[3]);\n \t\n }\n \n if ( event.getSource() == theView.btnSaveKeys ) {\n \t\n \t//Get keys\n \tString saveBuffer = theView.key1_q_and_g.getText() + '\\n' + theView.key2_y.getText() + '\\n' + theView.key3_x.getText() + '\\n' + theView.key4_mod_p.getText();\n \t\n \t//New FileChooser save\n \tFileChooser fc = new FileChooser();\n \tfc.saveDialogKeys(saveBuffer.getBytes());\n \t\n }\n \n if ( event.getSource() == theView.btnReadPlaintextFile ) {\n \t\n \t//Choose file\n \tFileChooser fc = new FileChooser();\n \tString returnValue = fc.openDialog();\n \t\n \t//Set textarea\n \tsetPlaintextTextarea(returnValue);\n \t\n }\n \n \n if ( event.getSource() == theView.btnReadCiphertextFile ) {\n \t\n \t//Choose file\n \tFileChooser fc = new FileChooser();\n \tString returnValue = fc.openDialog();\n \t\n \t//Set textarea\n \tsetCiphertextTextarea(returnValue);\n \t\n }\n\n if ( event.getSource() == theView.btnWritePlaintextFile ) {\n \t\n \t//Get textarea\n \tString saveBuffer = getPlaintextTextarea();\n \t\n \t//Write to file\n \tFileChooser fc = new FileChooser();\n \tfc.saveDialogKeys(saveBuffer.getBytes()); \t\n }\n \n if ( event.getSource() == theView.btnWriteCiphertextFile ) {\n \t\n \t//Get textarea\n \tString saveBuffer = getCiphertextTextarea();\n \t\n \t//Write to file\n \tFileChooser fc = new FileChooser();\n \tfc.saveDialogKeys(saveBuffer.getBytes()); \t\n }\n \n }", "title": "" }, { "docid": "f0a97b09fb64b0976ffe393626b7f1a9", "score": "0.5116162", "text": "public static void decrypt(ArrayList<Character>cipherText,String keyWord, String initVector){\n\n // Case for when the arguments passed to the function are null\n if(cipherText == null || keyWord == null || initVector == null)\n return;\n\n int i, a, b, c;\n\n // For storing the encrypted characters from previous blocks\n ArrayList<Character>temp = new ArrayList<Character>();\n\n for(i = 0; i < cipherText.size(); i++){\n\n // Using the initialization vector for decryption\n if(i < keyWord.length()){\n\n temp.add(i,cipherText.get(i));\n cipherText.set(i,(char)(((((cipherText.get(i)-97)-(initVector.charAt(i)-97)-(keyWord.charAt(i%keyWord.length())-97))%(26))+(26))%(26)+97));\n }\n\n // Using the encrypted characters from previous block to decrypt instead of using the initialization vector\n else{\n \n a = (int)(cipherText.get(i)-97);\n b = (int)(temp.get(i%keyWord.length())-97);\n c = (int)(keyWord.charAt(i%keyWord.length())-97);\n temp.set(i%keyWord.length(),cipherText.get(i));\n cipherText.set(i,(char)((((a-b-c)%(26))+(26))%(26)+97));\n }\n }\n }", "title": "" }, { "docid": "0f15e99bdc4464b40035ae4e1eebd9a0", "score": "0.5106467", "text": "private static byte[] AESEncryption(byte[] plaintextBytes)\r\n\t\t\tthrows GeneralSecurityException {\r\n\t\t// Initialize the cipher for encryption\r\n\t\tAESCipher.init(Cipher.ENCRYPT_MODE, AESKey);\r\n\r\n\t\t// get an initialization vector:\r\n\t\tInitVector = AESCipher.getIV();\r\n\r\n\t\t// Encrypt the plaintext bytes.\r\n\t\tciphertext = AESCipher.doFinal(plaintextBytes);\r\n\r\n\t\treturn ciphertext;\r\n\t}", "title": "" }, { "docid": "1fadbbb06cbc53eba15c01ee4d2786e8", "score": "0.5105829", "text": "protected byte[] encrypt(String text, String encryptionKey)\n\t\t\tthrows Exception {\n\t\t// create an instance of the Cipher\n\t\t// specify the algorithm sued for encryption\n\t\t// the provider SunJCE is optional\n\t\tCipher cipher = Cipher.getInstance(\"AES/CBC/NoPadding\", \"SunJCE\");\n\n\t\t// transform the key in the needed format by specifying the algorithm\n\t\tSecretKeySpec key = new SecretKeySpec(encryptionKey.getBytes(\"UTF-8\"),\n\t\t\t\t\"AES\");\n\n\t\t// initialize the cipher\n\t\t// not that an initialization vector is also provided - it is also\n\t\t// optional\n\t\tcipher.init(Cipher.ENCRYPT_MODE, key,\n\t\t\t\tnew IvParameterSpec(IV.getBytes(\"UTF-8\")));\n\n\t\t// perform encryption\n\t\treturn cipher.doFinal(text.getBytes(\"UTF-8\"));\n\t}", "title": "" }, { "docid": "b01b025f3b24ae97c3d874c52a0cd2da", "score": "0.50993323", "text": "public String encrypt(String plainText) throws Exception {\n final String pass = password.getText().toString();\n //get salt from generateSalt() method (see below)\n String salt = generateSalt();\n //convert salt to bytes\n byte[] saltBytes = salt.getBytes(ENCODING);\n\n // Derive the key from\n SecretKeyFactory factory = SecretKeyFactory.getInstance(PBK);\n PBEKeySpec spec = new PBEKeySpec(\n pass.toCharArray(),\n saltBytes,\n pswdIterations,\n keySize\n );\n\n //encode key\n SecretKey secretKey = factory.generateSecret(spec);\n SecretKeySpec secret = new SecretKeySpec(secretKey.getEncoded(), AES);\n\n //encrypt the message\n Cipher cipher = Cipher.getInstance(CIPHER);\n cipher.init(Cipher.ENCRYPT_MODE, secret);\n AlgorithmParameters params = cipher.getParameters();\n byte[] ivBytes = params.getParameterSpec(IvParameterSpec.class).getIV();\n byte[] encryptedTextBytes = cipher.doFinal(plainText.getBytes(ENCODING));\n\n //encode text and output final encrypted text\n String encodedText = Base64.encodeToString(encryptedTextBytes, Base64.DEFAULT);\n String encodedIV = Base64.encodeToString(ivBytes, Base64.DEFAULT);\n String encodedSalt = Base64.encodeToString(saltBytes, Base64.DEFAULT);\n return encodedSalt + encodedText + encodedIV;\n}", "title": "" }, { "docid": "ff3a387cec96d88b6f2139ba5bf9d0be", "score": "0.5091571", "text": "private void encryptionOutput(String fileLocation) {\n\t\tSystem.out.println(\"Encrypted file content:\");\n\t\treadFile(fileLocation);\n\t\tSystem.out.println(\"Encrypted key:\");\n\t\treadFile(keyStoreLocation.getFileLocation());\n\t}", "title": "" }, { "docid": "0a73116dddf1c4a147c8baec5a574af0", "score": "0.50827265", "text": "public void init( boolean forEncryption, CipherParameters params ) throws IllegalArgumentException\n\t{\n\t\tthis.forEncryption = forEncryption;\n\t\tif( params instanceof ParametersWithIV )\n\t\t{\n\t\t\tParametersWithIV ivParam = (ParametersWithIV)params;\n\n\t\t\tbyte[] iv = ivParam.getIV();\n\n\t\t\tif( iv.length < blockSize )\n\t\t\t{\n\t\t\t\tthrow new IllegalArgumentException( \"Parameter m must blockSize <= m\" );\n\t\t\t}\n\t\t\tm = iv.length;\n\n\t\t\tinitArrays();\n\n\t\t\tR_init = iv.clone();\n\t\t\tSystem.arraycopy( R_init, 0, R, 0, R_init.length );\n\n\t\t\t// if null it's an IV changed only.\n\t\t\tif( ivParam.getParameters() != null )\n\t\t\t{\n\t\t\t\tcipher.init( true, ivParam.getParameters() );\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tsetupDefaultParams();\n\n\t\t\tinitArrays();\n\t\t\tSystem.arraycopy( R_init, 0, R, 0, R_init.length );\n\n\t\t\t// if it's null, key is to be reused.\n\t\t\tif( params != null )\n\t\t\t{\n\t\t\t\tcipher.init( true, params );\n\t\t\t}\n\t\t}\n\n\t\tinitialized = true;\n\t}", "title": "" }, { "docid": "6a9e28b1cd768cdc7d9fbc8bc77eea95", "score": "0.50756115", "text": "String encryption(String plainText, String key ){\n\t\tSystem.out.println();\r\n\t\tString c = \"\";\r\n\t\tString Cipher = \"\";\r\n\t\t\r\n\t\tArrayList<String [][]> PText = new ArrayList<String[][]>();\r\n\t\tArrayList<String> subkey = new ArrayList<String>();\r\n\t\tArrayList<String> cipherbitmap = new ArrayList<String>();\r\n\t\tString [][] subText = new String[4][4]; \r\n\t\t\r\n\t\tPlainText p = new PlainText();\r\n\t\tKeyAdditionLayer Klayer = new KeyAdditionLayer();\r\n\t\tAesKey AK = new AesKey();\r\n\t\tSubstitutionLayer s = new SubstitutionLayer();\r\n\t\tShiftRow sh = new ShiftRow();\r\n\t\tMixColumn MC = new MixColumn();\r\n\t\t\r\n\t\tPText = p.dividText(plainText, true);\r\n\t\tAK.toHex(key);\r\n\t\tsubkey = AK.Key();\r\n\t\t\r\n\t\tfor (int i = 0; i < PText.size(); i++) {\r\n\t\t\tsubText = PText.get(i);\r\n\t\t\t\r\n\t\t\tsubText = Klayer.keyAddition(subText, subkey.get(0));\r\n\t\t\t\r\n\t\t\tfor (int j = 0; j < 10; j++) {\r\n\t\t\t\t\r\n\t\t\t\tsubText = s.subLayer(subText, true);\r\n\t\t\t\tsubText = sh.shiftRowEncryption(subText);\r\n\t\t\t\tif(j != 9)\r\n\t\t\t\tsubText = MC.mixColumn(subText, true);\r\n\t\t\t\tsubText = Klayer.keyAddition(subText, subkey.get(j+1));\r\n\t\t\t}\r\n\t\t\tCipher = oneVectorHex(subText);\r\n\t\t\t\r\n\t\t\tc = oneVectorbit(subText);\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t}\r\n\t\tSystem.out.println(\"Cipher : \" + Cipher);\r\n\t\treturn c;\r\n\t\t\r\n\t}", "title": "" }, { "docid": "cc7bcaecdce24139595014ce05f1cf77", "score": "0.50736314", "text": "public void download(final AbstractBackupPath path, final OutputStream finalDestination, final File tempFile\n\t\t, final IFileCryptography fileCryptography\n\t\t, final char[] passPhrase\n\t\t, final ICompression compress) {\n \t\n if (config.getRestoreKeySpaces().size() != 0 && (!config.getRestoreKeySpaces().contains(path.keyspace) || path.keyspace.equals(SYSTEM_KEYSPACE)))\n return;\n \n count.incrementAndGet();\n executor.submit(new RetryableCallable<Integer>() {\n \t\n \t@Override\n \tpublic Integer retriableCall() throws Exception {\n \t\n \t//== download object from source bucket\n try {\n \t\n logger.info(\"Downloading file from: \" + path.getRemotePath() + \" to: \" + tempFile.getAbsolutePath());\n fs.download(path, new FileOutputStream(tempFile),tempFile.getAbsolutePath()); \n tracker.adjustAndAdd(path);\n logger.info(\"Completed downloading file from: \" + path.getRemotePath() + \" to: \" + tempFile.getAbsolutePath());\n \n \t\n } catch (Exception ex) {\n \t//This behavior is retryable; therefore, lets get to a clean state before each retry.\n \tif (tempFile.exists()) {\n \t\ttempFile.createNewFile();\n \t} \t\n \t\n \tthrow new Exception(\"Exception downloading file from: \" + path.getRemotePath() + \" to: \" + tempFile.getAbsolutePath(), ex);\n } \n \n //== object downloaded successfully from source, decrypt it.\n OutputStream fOut = null; //destination file after decryption\n File decryptedFile = new File(tempFile.getAbsolutePath() + \".decrypted\");\n try {\n\n \tInputStream in = new BufferedInputStream(new FileInputStream(tempFile.getAbsolutePath()));\n InputStream encryptedDataInputStream = fileCryptography.decryptStream(in, passPhrase, tempFile.getAbsolutePath());\n fOut = new BufferedOutputStream(new FileOutputStream(decryptedFile));\n Streams.pipeAll(encryptedDataInputStream, fOut);\n logger.info(\"completed decrypting file: \" + tempFile.getAbsolutePath() + \"to final file dest: \" + decryptedFile.getAbsolutePath()); \t\n \t\n } catch (Exception ex) {\n \t//This behavior is retryable; therefore, lets get to a clean state before each retry.\n \tif (tempFile.exists()) {\n \t\ttempFile.createNewFile();\n \t}\n \t\n \tif (decryptedFile.exists()) {\n \t\tdecryptedFile.createNewFile();\n \t}\n \t \t\n \tthrow new Exception(\"Exception during decryption file: \" + decryptedFile.getAbsolutePath(), ex);\n\n } finally {\n \tif (fOut != null ) {\n \t\tfOut.close();\n \t}\n }\n \n //== object downloaded and decrypted successfully, now uncompress it\n logger.info(\"Start uncompressing file: \" + decryptedFile.getAbsolutePath() + \" to the FINAL destination stream\");\n \tFileInputStream fileIs = null;\n \tInputStream is = null;\n \t\n \ttry {\n\n \t\tfileIs = new FileInputStream(decryptedFile);\n\t \tis = new BufferedInputStream(fileIs);\n\t \n\t \tcompress.decompressAndClose(is, finalDestination);\t \t\t\n \t\t\n \t} catch (Exception ex) {\n \t\tIOUtils.closeQuietly(is); \t\n \t\tthrow new Exception(\"Exception uncompressing file: \" + decryptedFile.getAbsolutePath() + \" to the FINAL destination stream\");\n \t}\n \t\n \tlogger.info(\"Completed uncompressing file: \" + decryptedFile.getAbsolutePath() + \" to the FINAL destination stream \" \n \t\t\t+ \" current worker: \" + Thread.currentThread().getName()); \n \t//if here, everything was successful for this object, lets remove unneeded file(s)\n \tif (tempFile.exists())\n \t\ttempFile.delete();\n \t\n \tif (decryptedFile.exists()) {\n \t\tdecryptedFile.delete(); \n \t}\n \t\n \t//Note: removal of the tempFile is responsbility of the caller as this behavior did not create it.\n \n return count.decrementAndGet(); \n \t\t\n \t}\n \t\n });\n \t\n }", "title": "" }, { "docid": "38a96e128e1e35a9111868c801b69361", "score": "0.5070452", "text": "public static void encryptFilePeter1 (String passwd, String in, String out) throws Exception\r\n {\r\n File fileIn = new File (in);\r\n FileInputStream fin = new FileInputStream(fileIn);\r\n FileOutputStream fout = new FileOutputStream (out);\r\n byte[] buff = new byte[32];\r\n byte[] key = CryptTools.passwordHash (passwd.getBytes());\r\n long size = fileIn.length();\r\n\r\n while (size != 0)\r\n {\r\n key = CryptTools.passwordHash (key);\r\n int r = fin.read (buff);\r\n if (r == -1)\r\n {\r\n throw new Exception (\"fin.read returns -1\");\r\n }\r\n buff = CryptTools.xor(buff, key);\r\n fout.write(buff, 0, r);\r\n size -= r;\r\n }\r\n fin.close();\r\n fout.close();\r\n }", "title": "" }, { "docid": "e72dec654bcb0c85b47532fc78182dda", "score": "0.5061932", "text": "public static void main(String[] args) throws Exception\n {\n \n CryptUtil crypter=new CryptUtil();\n \n String message=\"TQ8CE\";//crypter.getRandomSecuence(3);\n \n System.out.println(\"Escriba la solucion para >\"+message+\"??? cual sera?\");\n System.out.println(\"Solucion>\"+crypter.getSolution(message));\n String pass=\"panterarosa\";\n \n String pass_encryptado=crypter.getEncriptado(pass);\n byte[] _pass_encryptado=crypter.getCustomEncriptado(pass);\n String tmp=\"\";\n for (int i=0;i<_pass_encryptado.length;i++){\n\t tmp+=new Byte(_pass_encryptado[i]);\n }\n \n //String pass_utf8=new String (pass_encryptado.getBytes (\"UTF-8\"), \"ISO-8859-1\");\n System.out.println(\" encriptado(\"+pass+\")=\"+pass_encryptado);\n System.out.println(\" encriptadoUTF-8(\"+pass+\")=\"+tmp);\n \n// System.out.println(\"Encriptar>\"+pass+\" encrypted= \"+crypter.getEncriptado(pass,\"okliop\"));\n// System.out.println(\"Encriptar>\"+pass+\" encrypted= \"+crypter.getEncriptado(pass2,\"2okliop\"));\n// System.out.println(\"DesEncriptar>\"+pass_encryptado+\" desencrypted= \"+crypter.getDesencryptado(pass_encryptado,\"okliop\"));\n \n //EC0D90\n /*\n System.out.println(\"Random:\"+message);\n System.out.println(\"(HEX) Original : \" + crypter.asHexStr(message.getBytes()));\n \n SecretKeySpec skeySpec = crypter.getSecretKeySpec(password,\"AES\",128);\n \n byte[] encrypted = crypter.encrypt(message.getBytes(), skeySpec);\n \n String key=crypter.asHexStr(encrypted);\n System.out.println(\"(HEX) Encrypted : \" + key.toUpperCase().substring(0,6));\n skeySpec = crypter.getSecretKeySpec(password,\"AES\",128);\n \n byte[] decrypted = crypter.decrypt(encrypted, skeySpec);\n System.out.println(\"(HEX) Decrypted : \" + crypter.asHexStr(decrypted));\n \n if ( Arrays.equals(decrypted, message.getBytes()))\n System.out.println(\"THE ONE AND THE SAME\");\n */ \n }", "title": "" }, { "docid": "bf9b11d0c8a9c910d0786bd74202efb6", "score": "0.5061689", "text": "private BizParameter prepareData(String mchtId, String pwd, String filePath) throws Exception {\n\n String aesKey = generateFileRandAesKey();\n System.out.println(\"aesKey:\" + aesKey);\n /* String aesKeyEnced = byte2HexStr(\n // Base64.getDecoder().decode(CryptoUtil.doEncryptByRSA(aesKey, YourParams.Allinpay_PKCS8_RSA_Public_Key)));\n */\n PublicKey pubkey = RSAUtil.loadTLPublicKey(YourParams.Allinpay_Cer_Path);\n String aesKeyEnced = byte2HexStr(\n Base64.getDecoder().decode(CryptoUtil.doEncryptByRSA1(aesKey, pubkey) ) );\n System.out.println(\"aesKeyEnced:\" + aesKeyEnced);\n String fileCont = loadContentFromFile(filePath);\n\n System.out.println(\"fileCont:\" + fileCont);\n\n String fileContEned = byte2HexStr(AESUtil.encrypt(fileCont, new SecretKeySpec(getBaseFromRandKey(aesKey), AESUtil.KEY_ALGORITHM)));\n\n System.out.println(\"fileContEned:\" + fileContEned);\n\n String fileCont2 = AESUtil.decrypt(toByteArray(fileContEned), new SecretKeySpec(getBaseFromRandKey(aesKey), AESUtil.KEY_ALGORITHM));\n\n System.out.println(\"fileCont2:\" + fileCont2);\n\n BizParameter dataMap = new BizParameter();\n dataMap.put(\"batchNo\", System.currentTimeMillis() + \"\");\n dataMap.put(\"custId\", mchtId);\n// dataMap.put(\"transCustId\", \"082005271000057\");//中间客户号\n// dataMap.put(\"transCustName\", \"通联支付网络股份服务有限公司\");//中间客户名称\n dataMap.put(\"transCode\", \"batchDf\");\n dataMap.put(\"fileType\", \"01\");\n dataMap.put(\"fileName\", System.currentTimeMillis() + \"\");\n dataMap.put(\"transferSumCnt\", \"1\");\n dataMap.put(\"transferSumAmt\", \"1\");\n dataMap.put(\"totalAddFee\", \"1\");\n\n dataMap.put(\"randomKey\", aesKeyEnced);\n dataMap.put(\"content\", fileContEned);\n //\tdataMap.put(\"payPwd\", pwdAesEnced);\n dataMap.put(\"remark\", \"tstRemark\");\n dataMap.put(\"serviceUrl\", \"http://test.allinpay.com/yst-notify/zfb/yibu\");\n dataMap.put(\"version\", \"2.0\");\n dataMap.put(\"businessCode\", \"6002\");\n // dataMap.put(\"transSignType\", \"\");\n//\n// dataMap.put(\"transCustId\", \"082002101000191\");\n// dataMap.put(\"transCustName\", \"上海卡梅拉信息技术有限公司\");\n\n\t/*\tdataMap.put(\"transCustId\", \"080803000053305\");\n\t\tdataMap.put(\"transCustName\", \"电子账户商户入网1234\");*/\n\n String source = getSourceString(dataMap);\n System.out.println(\"accountTransfer_API source : \" + source);\n\n return dataMap;\n\n }", "title": "" }, { "docid": "c787cb8a0802b4f4eb7cf9030cd880cf", "score": "0.5056798", "text": "public TripleDES(File encryptedFile, File decryptedFile, File keyFile) throws IOException {\n this.encryptedFile = encryptedFile;\n this.decryptedFile = decryptedFile;\n this.keyFile = keyFile;\n initKeysVector();\n }", "title": "" }, { "docid": "fbbc73f5519464c25fe43dea63d15a1b", "score": "0.504049", "text": "public AESEncriptacion(AESKey aesKey)\r\n/* 33: */ {\r\n/* 34: 50 */ this.aesKey = aesKey;\r\n/* 35: */ }", "title": "" }, { "docid": "cee84d9d077a0bf4d798c342b7d52f86", "score": "0.50365466", "text": "public void encashment();", "title": "" }, { "docid": "c05912550855035f7cd54fbc577fa9ac", "score": "0.50288653", "text": "public interface ClientCryptoProvider {\n byte[] encrypt(String input);\n String decrypt(byte[] input);\n}", "title": "" }, { "docid": "10a34447dd88e8e7cde6e642c9195792", "score": "0.50269413", "text": "public static void encryptAes256AndSave(byte[] key, String in, String out) throws IOException\r\n {\r\n FileInputStream fin = new FileInputStream(in);\r\n FileOutputStream fout = new FileOutputStream (out);\r\n byte[] content = new byte[16];\r\n\r\n MyAES256 aes = new MyAES256();\r\n aes.init(key);\r\n\r\n for (;;)\r\n {\r\n int r = fin.read(content);\r\n aes.encrypt(content);\r\n fout.write(content);\r\n if (r != content.length)\r\n break;\r\n }\r\n fin.close();\r\n fout.close();\r\n }", "title": "" }, { "docid": "dd148d4ab136cbd384301dacd372304f", "score": "0.50208914", "text": "@Test\r\n\tpublic void encryptionTest()\r\n\t{\r\n\t\tbyte[] input = {112,100};\r\n\t\tbyte[] expected = {12,0};\r\n\t\tbyte[] result = null;\r\n\t\tCaesarCipher cc = new CaesarCipher();\r\n\t\tcc.setKey((byte)100);\r\n\t\trc = new ReverseCipher(cc,null);\r\n\t\trc.setInput(input);\r\n\t\ttry {\r\n\t\t\tresult = rc.encrypt();\r\n\t\t\t\r\n\t\t} catch (Exception e) {\r\n\t\t\t\r\n\t\t\tassertFalse(false);\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t\tassertEquals(new ByteArrayComp().compare(result, expected),1);\r\n\t\t\r\n\t}", "title": "" }, { "docid": "bda88a40eaec65fca53e6ad8c4928cd9", "score": "0.50071985", "text": "public static void testEncryption(String filename)\n\t{\n\t\tString keyfile=filename.replace(\".\",\"_\");\n\t\tString test=\"\";\n\t\tkeyfile=keyfile+\".key\";\n\n\t\ttry\n\t\t{\n\t\t\tBufferedReader in = new BufferedReader(new FileReader(keyfile));\n\t\t\ttest=in.readLine();\n\t\t}\n\t\tcatch(Exception e){e.printStackTrace();}\n\n\t\tif(!test.equals(encrypt(filename)))\n\t\t{\n\t\t\tSystem.out.println(\"Invalid key.\");\n\t\t\tSystem.exit(-1);\n\t\t}\n\t}", "title": "" }, { "docid": "6f20fb77aaf14a4c4b6ab69d4916d675", "score": "0.5005743", "text": "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jLabel1 = new javax.swing.JLabel();\n btnBrowse = new javax.swing.JButton();\n txtFilePath = new javax.swing.JTextField();\n btnSubmit = new javax.swing.JButton();\n jLabel2 = new javax.swing.JLabel();\n txtKey = new javax.swing.JTextField();\n jLabel3 = new javax.swing.JLabel();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n jLabel1.setText(\"Source file\");\n\n btnBrowse.setText(\"Browse\");\n btnBrowse.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnBrowseActionPerformed(evt);\n }\n });\n\n btnSubmit.setText(\"Submit and run\");\n btnSubmit.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnSubmitActionPerformed(evt);\n }\n });\n\n jLabel2.setFont(new java.awt.Font(\"Tahoma\", 0, 18)); // NOI18N\n jLabel2.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel2.setText(\"Decrypt and run jar file\");\n\n jLabel3.setText(\"Input key\");\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel2, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel1)\n .addComponent(jLabel3))\n .addGap(49, 49, 49)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(txtFilePath, javax.swing.GroupLayout.DEFAULT_SIZE, 306, Short.MAX_VALUE)\n .addComponent(txtKey))\n .addGap(18, 18, 18)\n .addComponent(btnBrowse))\n .addGroup(layout.createSequentialGroup()\n .addGap(202, 202, 202)\n .addComponent(btnSubmit)\n .addGap(0, 0, Short.MAX_VALUE)))\n .addContainerGap())\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(35, 35, 35)\n .addComponent(jLabel2)\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel1)\n .addComponent(btnBrowse)\n .addComponent(txtFilePath, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(txtKey, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel3))\n .addGap(18, 18, 18)\n .addComponent(btnSubmit)\n .addContainerGap(19, Short.MAX_VALUE))\n );\n\n pack();\n }", "title": "" }, { "docid": "2172dee523b798e334a235251421b04a", "score": "0.5002052", "text": "@Override\n public void initKey(String key) {\n byte[] keyData = Base64Util.base64ToByte(key);\n ivParam = new RC2ParameterSpec(128, keyData, 0);\n secretKey = new SecretKeySpec(keyData, keyData.length - 16, 16, ALGORITHM);\n }", "title": "" }, { "docid": "3f1d5bb7fc190dcb2710c3a954c04336", "score": "0.49973536", "text": "public static void main(String[] args) {\n\t\tString path = \"././data/titus-small.txt\";\n\t\tFileResource resource = new FileResource(path);\n\t\t\n\t\tint[] array = {1,2,5,1};\n\t\tVigenereCipher Obj = new VigenereCipher(array);\n\t\tString input = resource.asString();\n\t\tSystem.out.println(input);\n\t\t\n\t\tString outputCrypth = \"\";\n\t\toutputCrypth = Obj.encrypt(input);\n\t\tSystem.out.println(outputCrypth);\n\t\t\n\t\tString outputDecrypth = Obj.decrypt(outputCrypth);\n\t\tSystem.out.println(outputDecrypth);\n\t\t\n\t\tSystem.out.println(Obj.toString());\n\t}", "title": "" }, { "docid": "244d13248a951bef834b1e2f40c19af2", "score": "0.49906367", "text": "private KeyIv encryptKey(\n final byte[] linkSecret,\n final String password, final KeyIv encryptionKey) {\n Preconditions.checkNotNull(linkSecret);\n Preconditions.checkNotNull(password);\n final byte[] saltedSecretHash =\n cryptor.keyFromSaltedPasswordAndSecret(password, linkSecret);\n final byte[] encryptedKey = cryptor.encrypt(encryptionKey.getKey(),\n new KeyIv(saltedSecretHash, encryptionKey.getIv()));\n\n return new KeyIv(encryptedKey, encryptionKey.getIv());\n }", "title": "" }, { "docid": "a1849b2fe3ca1c327580075f1864052c", "score": "0.49828285", "text": "java.lang.String getEncryptKey();", "title": "" }, { "docid": "7f5bfac12a85b2f32cb76f5091b655bd", "score": "0.49783188", "text": "public static void encrypt(String password, File inputFile, File outputFile) throws EncryptionException {\n\t\tcrypt(Cipher.ENCRYPT_MODE, password, inputFile, outputFile);\n\t}", "title": "" }, { "docid": "d2bc0eafb9a2dbf7e97d131b2a13a828", "score": "0.4974005", "text": "public static void keyAESenc(File src, final char[] pass, final StringBuilder str) throws AlertException\n\t{\n\t\tFile dest = new File(src.getAbsolutePath() + EXT);\n\t\tFile temp = new File(src.getAbsolutePath() + TEMP);\n\t\t\n\t\tif(!Pattern.matches(regex, str))\n\t\t\tthrow new AlertException(\"keyAESenc: regex failed\");\n\t\t\n\t\ttry\n\t\t{\n\t\t\tBufferedWriter writer = new BufferedWriter(new FileWriter(temp));\n\t\t\tfor(int i = 0; i < str.length(); i++)\n\t\t\t\twriter.write(str.charAt(i));\n\t\t\twriter.flush();\n\t\t\twriter.close();\n\t\t}\n\t\tcatch(IOException ioe)\n\t\t{throw new AlertException(\"keyAESenc: unable to create temp file\");}\n\t\t\n\t\tfileAESenc(temp,dest,pass.clone(),true);\n\t\t\n\t\tArrays.fill(pass, (char) 0);\n\t\tstr.delete(0, str.length());\n\t}", "title": "" }, { "docid": "f6a2461ccb863c1b9d74a4684a7bd6f1", "score": "0.49640366", "text": "byte[] encrypt(String keyId, byte[] message);", "title": "" }, { "docid": "62af3c4b6a133732cb81b8469b82ff14", "score": "0.4963722", "text": "void encrypt(EncryptionStrength encryptionStrength);", "title": "" } ]
e556c95d3d2bc8e1db187b421ef92f28
Returns the number of virtual channels in used.
[ { "docid": "07fb7d705a446e29e8b737cb2202f85e", "score": "0.0", "text": "public static int InUsed(){\n return _instances;\n }", "title": "" } ]
[ { "docid": "cff70522ee41dfbdebdf93ff88b3262b", "score": "0.75735843", "text": "int getVirtualDeviceCount();", "title": "" }, { "docid": "2074a3daa01bc66407ffb7fef9c50030", "score": "0.7326697", "text": "int getChannelsCount();", "title": "" }, { "docid": "031cf669165425cec3ed7ed8282e5661", "score": "0.7314147", "text": "public int numChannels()\n {\n return channels.size();\n }", "title": "" }, { "docid": "6f75b6987c1a1e124eeda7043d1159fe", "score": "0.7111043", "text": "int getNumAdditionalChannels();", "title": "" }, { "docid": "366a31cdd816281e8322272979d5c2eb", "score": "0.7105626", "text": "public int getChannelsCount() {\n return channels_.size();\n }", "title": "" }, { "docid": "159873a8e4250cd8a325dc1e02d23826", "score": "0.7044102", "text": "public abstract int getNumberOfChannels();", "title": "" }, { "docid": "f23cac352f7c457104d57d60d4ce77f2", "score": "0.7003449", "text": "int getTargetableChannelCount();", "title": "" }, { "docid": "bb8780d5bf9ce0a75b2de01e0f827860", "score": "0.6927905", "text": "int getAvailableDeviceCount();", "title": "" }, { "docid": "e66b0d2d2fcfd888b04374521abbba8d", "score": "0.6896525", "text": "public int getChannelsCount() {\n if (channelsBuilder_ == null) {\n return channels_.size();\n } else {\n return channelsBuilder_.getCount();\n }\n }", "title": "" }, { "docid": "07b76ae5b17ca8af91130d6f02660bd8", "score": "0.6726298", "text": "public Integer getNumChannels() {\n return numChannels;\n }", "title": "" }, { "docid": "ed5398668dfabdd5655553f04a793645", "score": "0.6665894", "text": "int getDeviceCount();", "title": "" }, { "docid": "cfdc2d210faf1076c86dd831cd74b772", "score": "0.6655965", "text": "int getDevicesCount();", "title": "" }, { "docid": "4254efb066dc2583847bff59bfa09ebe", "score": "0.66013217", "text": "public int getTargetableChannelCount() {\n return targetableChannel_.size();\n }", "title": "" }, { "docid": "28694a06f45178f2b1592e559add3f64", "score": "0.6563529", "text": "int getBleActiveConnectionsCount();", "title": "" }, { "docid": "7aca4a8da62d0e931b9798a5861ead04", "score": "0.6530823", "text": "public int getTargetableChannelCount() {\n return targetableChannel_.size();\n }", "title": "" }, { "docid": "dcb5e195b9a2d352b740dfa63dbcda3d", "score": "0.6529924", "text": "public int getNumChannels() {\n return mNumChannels;\n }", "title": "" }, { "docid": "931cdc1ca0eac3fd6baf12515ce98400", "score": "0.6484079", "text": "boolean hasVirtualDeviceCount();", "title": "" }, { "docid": "2c869e08255b164aa342edf71f7392e7", "score": "0.64517677", "text": "int getPortsCount();", "title": "" }, { "docid": "cfe96334dace4e8f35826eba8bbb8e2e", "score": "0.64506525", "text": "@Override\n\tpublic int getVideoCount() {\n\t\tif (mNativeContext == 0)\n\t\t{\n\t\t\tvoLog.e(TAG, \"VOOSMP_ERR_Uninitialize\");\n\t\t\treturn voOSType.VOOSMP_ERR_Uninitialize;\n\t\t}\n\t\t\n \treturn nativeGetVideoCount(mNativeContext);\n\t}", "title": "" }, { "docid": "c5111becbaf3a47328857100f8ff2a8e", "score": "0.6420228", "text": "int getVCount();", "title": "" }, { "docid": "ac79e3469b7c31084ff09bb5efc34a04", "score": "0.64090866", "text": "int availableConnectionCount();", "title": "" }, { "docid": "5acf84a509c73f12c8581874fa16dcde", "score": "0.6405053", "text": "public int getNumAdditionalChannels() {\n return numAdditionalChannels_;\n }", "title": "" }, { "docid": "089072eae5e01d80efc762d23360f981", "score": "0.6391528", "text": "int getDeviceCapabilitiesCount();", "title": "" }, { "docid": "93b8fc929a2a3176b789de570a1fff51", "score": "0.63800496", "text": "public int numberOfDevices() {\n\t\treturn _myDevices.size();\n\t}", "title": "" }, { "docid": "e05dfbbbf7b71bbb9e51f3cda167f922", "score": "0.6377523", "text": "public int getNbConnected() {\n return getNumberOfClients();\n }", "title": "" }, { "docid": "5b74a3ae367af5e57884ba4aafab0718", "score": "0.6374748", "text": "public int getNumAdditionalChannels() {\n return numAdditionalChannels_;\n }", "title": "" }, { "docid": "5e98807195344c6e1e36f8de2c5b31d9", "score": "0.6362396", "text": "int getClientChannels();", "title": "" }, { "docid": "541f5a85c61321d8b4e9fd6135257200", "score": "0.63536066", "text": "public native int ModPlug_JNumChannels();", "title": "" }, { "docid": "bb175bd749bb6c32d0256762677c52a1", "score": "0.6321584", "text": "int getCount() {\n try {\n return nativeGetCount(mNativeBuffer);\n } finally {\n // Make sure the mNativeSocket doesn't get closed due to early finalization.\n Reference.reachabilityFence(mSocket);\n }\n }", "title": "" }, { "docid": "a9abca6a04390ff12bd95eb523a9c865", "score": "0.6280482", "text": "public int getDetectedVerticalCount() {\n if (detectedVerticalBuilder_ == null) {\n return detectedVertical_.size();\n } else {\n return detectedVerticalBuilder_.getCount();\n }\n }", "title": "" }, { "docid": "96d4a850dd274592f584de5dec89fa29", "score": "0.62737274", "text": "public static int getNumberOfVertices() {\n\t\treturn sg.G().V();\n\t}", "title": "" }, { "docid": "6b3e09c432511d53e2a7e813a2e4d298", "score": "0.62391305", "text": "public int getVirtualChannelId() {\n return virtualChannelId;\n }", "title": "" }, { "docid": "bd0c16efa7d61735f802419b407bc1f1", "score": "0.6220893", "text": "int getDetectedVerticalCount();", "title": "" }, { "docid": "ddc060c13a4e2737592ff156879cccdd", "score": "0.62118316", "text": "int getVideoCount();", "title": "" }, { "docid": "41f024d01a7010d26b891512eb2f6521", "score": "0.61567676", "text": "int getCapabilitiesCount();", "title": "" }, { "docid": "20a73d3ad9db8a5004e0cea3ca2a9cd4", "score": "0.61525506", "text": "public int getVMCount();", "title": "" }, { "docid": "57027c791618b58d289ef4886baaf89f", "score": "0.6138798", "text": "public int getVCount() {\n if (vBuilder_ == null) {\n return v_.size();\n } else {\n return vBuilder_.getCount();\n }\n }", "title": "" }, { "docid": "eadd8517a90c2b6158f49f6bfcf98599", "score": "0.61195284", "text": "public int getDetectedVerticalCount() {\n return detectedVertical_.size();\n }", "title": "" }, { "docid": "ea284fca8896e45baed80dd0ccb53079", "score": "0.6114078", "text": "public int numV () {\n \treturn verticesG.size ();\n }", "title": "" }, { "docid": "5c2c3456695f37816f2dbda6a83ee666", "score": "0.6112847", "text": "int getBlePairedDevicesCount();", "title": "" }, { "docid": "5a163716bdbe762689c9c1aa3260991e", "score": "0.60644126", "text": "long getChannelDecided();", "title": "" }, { "docid": "b8de2afb286915be1b9851a372ba24a7", "score": "0.60592085", "text": "public static int getNbOfVMs(){\n\t\treturn getPropertyAsInt(NB_OF_VMS, DEFAULT_NB_OF_VMS);\n\t}", "title": "" }, { "docid": "7c92c286f7fab2a0bb890420f87f76b9", "score": "0.60552293", "text": "public int getNbVertices() {\n\t\treturn vertexItems.size();\n\t}", "title": "" }, { "docid": "a2baa19877ca247ccd51c18d04daff11", "score": "0.6041014", "text": "public int combLength()\n\t\t{\n\t\t\tint length=0;\n\t\t\tfor(int i=0;i<curvw.length();i++)\n\t\t\t{\n\t\t\t\tint kmax=Math.max(SL[i][0], SL[i][1]);\n\t\t\t\tint kmin=Math.min(SL[i][0], SL[i][1]);\n\t\t\t\tlength=length+Math.min(kmax-kmin,Math.abs(kmin+2*curvw.length()-kmax));\n\t\t\t}\n\t\t\treturn length;\n\t\t}", "title": "" }, { "docid": "49ef214bb0f4496805e6001b4b712baa", "score": "0.6032214", "text": "public int getVCount() {\n return v_.size();\n }", "title": "" }, { "docid": "ecbbba0b67b55c0722ccef5506444383", "score": "0.5994826", "text": "public int getVideoCount() {\n if (videoBuilder_ == null) {\n return video_.size();\n } else {\n return videoBuilder_.getCount();\n }\n }", "title": "" }, { "docid": "bf4b3e302f5b830209f91af3c7d6dae0", "score": "0.5983055", "text": "boolean hasNumAdditionalChannels();", "title": "" }, { "docid": "feb2caee99d660d4c623066f1b071a08", "score": "0.5978416", "text": "int getVMachingCount();", "title": "" }, { "docid": "09d7f80ac4ddf4a66c879153aaf1c19c", "score": "0.5976043", "text": "public int getNumVertices()\n\t{\n\t\t//TODO: Implement this method in WEEK 3\n\t\treturn NumVertices;\n\t}", "title": "" }, { "docid": "f5266ff1a67870703ee40ba32cfc8d59", "score": "0.5971699", "text": "public int countVertices() {\n\t\treturn getVertices();\n\t}", "title": "" }, { "docid": "917528136ddf98fe2b2bd232df7f12dc", "score": "0.59650034", "text": "public int numVertices() {\n return totalVertices;\n }", "title": "" }, { "docid": "c645000cb099e1edeb9c4e12f46d83eb", "score": "0.59645265", "text": "public int getPortsCount() {\n return ports_.size();\n }", "title": "" }, { "docid": "6c3033ab37b72ddc50ca1c2487cf3c00", "score": "0.5954371", "text": "public Integer getActiveRemotePortCount() {\n return activeRemotePortCount;\n }", "title": "" }, { "docid": "ddbb98aefc57fb2e829483ec6b7ba9a9", "score": "0.59435886", "text": "public int getNumberOfTracks()\r\n {\r\n return tracks.size();\r\n }", "title": "" }, { "docid": "a8cc053f2eaa441a2dedbcffe6340bab", "score": "0.5942209", "text": "public static int getDisplayCount() {\n GraphicsEnvironment ge = GraphicsEnvironment.getLocalGraphicsEnvironment();\n GraphicsDevice[] screens = ge.getScreenDevices();\n return screens.length;\n }", "title": "" }, { "docid": "2c1deaa4c5ec77a13a915fea675cda6f", "score": "0.59303296", "text": "public final int get_subvox_count () {\n\t\treturn a_zams_velt.length;\n\t}", "title": "" }, { "docid": "890b3fb54ea8f7802f7aac3f1f0b0dc5", "score": "0.5921749", "text": "int getVerticesCount();", "title": "" }, { "docid": "1d0c239014d485de915c7df32198bd73", "score": "0.5918692", "text": "public int GetSubScribeSize() {\r\n return mSubcribeVideoCallPeers.size();\r\n }", "title": "" }, { "docid": "05dedacdcac6f162bd120f7459a6305d", "score": "0.59175116", "text": "public static native int libvlc_audio_equalizer_get_band_count();", "title": "" }, { "docid": "0e56db53a6a887ac5217c68c1892174d", "score": "0.5913587", "text": "int getNumTotalMegaEvolutions();", "title": "" }, { "docid": "482381fbaf825c8134302ab3da43f3c4", "score": "0.59100616", "text": "public int numVertices();", "title": "" }, { "docid": "a36b30cf17b35d4288acc4129235d51e", "score": "0.59002846", "text": "public int getBleActiveConnectionsCount() {\n return bleActiveConnections_.size();\n }", "title": "" }, { "docid": "73e96ca89b0f0797e9d862f2d292dfe9", "score": "0.5900047", "text": "public int getVideoCount() {\n return video_.size();\n }", "title": "" }, { "docid": "0f67bd26918335dada8d50efef8a9953", "score": "0.5898053", "text": "public int getBleActiveConnectionsCount() {\n if (bleActiveConnectionsBuilder_ == null) {\n return bleActiveConnections_.size();\n } else {\n return bleActiveConnectionsBuilder_.getCount();\n }\n }", "title": "" }, { "docid": "04201baca3793ebd74027132651a40bb", "score": "0.5897761", "text": "int getNetworkInterfaceSpecsCount();", "title": "" }, { "docid": "9286500833d6984893cb6222e720b015", "score": "0.5896057", "text": "public int getNumActiveFeatures() {\n return featureCounts.length;\n }", "title": "" }, { "docid": "434d2a34dc8905b129a3071506d5fc4c", "score": "0.58932877", "text": "int getLogicalInterfacesCount();", "title": "" }, { "docid": "c05c4c7141600f17b1b52f399764e795", "score": "0.5893018", "text": "int getChannelArgsCount();", "title": "" }, { "docid": "37db0db605ba0086a54c2288c2fae669", "score": "0.58868617", "text": "@Override\n\tpublic int getNumberOfVertices() {\n\t\treturn vertexNeighbors.size();\n\t}", "title": "" }, { "docid": "9d58e50659af4f2af3f6290cc405c0ee", "score": "0.58842903", "text": "int getAlgoAvailableCount();", "title": "" }, { "docid": "0ec925f83b7180fd008fd824bac1313c", "score": "0.58827466", "text": "public Integer getMaxChannel() {\n synchronized (Impl_MultiModeContext.this) {\n if (has32)\n return IntPool.get(32);\n return IntPool.get(16);\n }\n }", "title": "" }, { "docid": "3b356bcdf50baae83a7ba210203e7dea", "score": "0.5880448", "text": "@Override\n protected int getNumBytesPerChannel() {\n return 4;\n }", "title": "" }, { "docid": "231fc4b20ed5a4aafa98edc69e6cf56e", "score": "0.5848516", "text": "public static native int GetVCount(long lpjFbxPatch);", "title": "" }, { "docid": "bf7ed029338dfab400f8d28ab1256616", "score": "0.58438176", "text": "public int getPortsCount() {\n return ports_.size();\n }", "title": "" }, { "docid": "32b1e9d517f36f0cee462c77ab9bcf1c", "score": "0.5841881", "text": "int getNetworkInterfacesCount();", "title": "" }, { "docid": "4f24f5f3b59eccc6971c0cf29edc8d6e", "score": "0.5838833", "text": "public int framebufferColorSampleCounts(){\n\t\t int var = getFramebufferColorSampleCounts0(super.ptr);\n\t\t this.framebufferColorSampleCounts = var;\n\t\t return this.framebufferColorSampleCounts;\n\t }", "title": "" }, { "docid": "0d6050cacc406bc29e0cc67023554988", "score": "0.58383864", "text": "int getGameversionfeaturesCount();", "title": "" }, { "docid": "acc667d4242e336ab47a15ae242c67e7", "score": "0.5837648", "text": "public int getChannelArgsCount() {\n if (channelArgsBuilder_ == null) {\n return channelArgs_.size();\n } else {\n return channelArgsBuilder_.getCount();\n }\n }", "title": "" }, { "docid": "9eee81690c764c7a1d97a128092fdd66", "score": "0.58334166", "text": "public int maxViewports(){\n\t\t int var = getMaxViewports0(super.ptr);\n\t\t this.maxViewports = var;\n\t\t return this.maxViewports;\n\t }", "title": "" }, { "docid": "d8e433242d6e0edeace12f6bd9487b2f", "score": "0.58214813", "text": "public int getPixelCount ( ) {\r\n\t\treturn list.size();\r\n\t}", "title": "" }, { "docid": "a35e8633f88097214150c72f464b3257", "score": "0.5791767", "text": "public int getVMs()\n\t{\n\t\treturn this.system.VMs.size();\n\t}", "title": "" }, { "docid": "dc81d086b4f132bcd0dd83b2c3636eb8", "score": "0.57817185", "text": "public int numberUsedThreads()\n {\n return threads.size();\n }", "title": "" }, { "docid": "6b3c96fa6b20fd3dc798c0d0e93466b6", "score": "0.57810986", "text": "@Override\n\tpublic int countSearchChannel(int subject, String liveName) {\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "048569942da53a856939db6beb424279", "score": "0.5776052", "text": "public int getConnected()\r\n {\r\n return clients.size();\r\n }", "title": "" }, { "docid": "32bf2b3a4156a68013b0478393c71d88", "score": "0.5774416", "text": "@Override\n\tpublic int getAudioCount() {\n\t\tif (mNativeContext == 0)\n\t\t{\n\t\t\tvoLog.e(TAG, \"VOOSMP_ERR_Uninitialize\");\n\t\t\treturn voOSType.VOOSMP_ERR_Uninitialize;\n\t\t}\n \t\n \treturn nativeGetAudioCount(mNativeContext);\n \n\t}", "title": "" }, { "docid": "6d3ff3b80c31d03ca3f64c00a8345d06", "score": "0.5767708", "text": "@NativeType(\"uint32_t\")\n public int commandBufferCount() { return ncommandBufferCount(address()); }", "title": "" }, { "docid": "58a09be74b48c23df96da25a6f85cab4", "score": "0.57666916", "text": "public int getNumVertices()\r\n\t{\r\n\t\t//TODO: Implement this method in WEEK 2\r\n\t\treturn nodeMap.values().size();\r\n\t}", "title": "" }, { "docid": "c27bfd03951592fe1054275efcab33ef", "score": "0.5766674", "text": "int getVectorCount();", "title": "" }, { "docid": "3ad802efad23566757c4283ee842f04a", "score": "0.5758772", "text": "public int vertexCount() {\n\t\treturn vertices.size();\n\t}", "title": "" }, { "docid": "df0b9478c7d0b162780ea30ed6632c72", "score": "0.5756815", "text": "public int size() {\n int result = 0;\n\n if (strongAVPs != null) result += strongAVPs.size();\n if (unclassifiedAVPs != null) result += unclassifiedAVPs.size();\n\n return result;\n }", "title": "" }, { "docid": "596f0a5c37278a5ba0fdacd28d9ebf94", "score": "0.57528573", "text": "int getTrackCount();", "title": "" }, { "docid": "f1b1f7c0cf299041c96eb7b96f86e36c", "score": "0.5744034", "text": "public int getChannelArgsCount() {\n return channelArgs_.size();\n }", "title": "" }, { "docid": "dc756768a7514cd48f237a730201b2b0", "score": "0.573977", "text": "public synchronized int getLobbySize() {\n return clients.size();\n }", "title": "" }, { "docid": "ba47aae5fa24e9e4ef1be6f8d8401067", "score": "0.5737912", "text": "public int getVertexCount() {\r\n\treturn vertexCount;\r\n }", "title": "" }, { "docid": "16b7921a8022c5ec8c0ef3701612fdf1", "score": "0.5727444", "text": "int getHyperlocalCount();", "title": "" }, { "docid": "68931fc08e4ed8ebe50bc805ac27ede4", "score": "0.5724586", "text": "int getFeaturesCount();", "title": "" }, { "docid": "68931fc08e4ed8ebe50bc805ac27ede4", "score": "0.5724586", "text": "int getFeaturesCount();", "title": "" }, { "docid": "3653d037e451a2446fc51a0c00ef759d", "score": "0.5724334", "text": "public int nbVertices() {\n\t\treturn adjacencyList.size();\n\t}", "title": "" }, { "docid": "b071c27616acd0fea646e968d453235b", "score": "0.57159466", "text": "public int nComponents() {\n return comp.size();\n }", "title": "" }, { "docid": "41e3cd9379df0e7544afdacaf16b0f81", "score": "0.5714374", "text": "int getUsedBandwidth();", "title": "" }, { "docid": "6a80c929c57c9bb508ec944c4ecb5cf7", "score": "0.57139033", "text": "public int getNumPixels() {\n\t\t//return allPixels.size();\n return numPixels;\n\t}", "title": "" } ]
ef7633ad9ecb007a8e1ba520d5499682
Sets the path to the ObjectiveC/C header.
[ { "docid": "30a84c486b6f39277323a4e09ddee8d0", "score": "0.66222656", "text": "public void setHeaderPath(String headerPath) {\n this.headerPath = headerPath;\n }", "title": "" } ]
[ { "docid": "ff2dd3ba732bb0a58f112bf49a61ea5c", "score": "0.5865722", "text": "public String getHeaderPath() {\n return headerPath;\n }", "title": "" }, { "docid": "746e03b9cf69c1036cb460e6b8a6565b", "score": "0.5842517", "text": "public void setFileHeader() {\n try {\n FileInputStream dotshp = new FileInputStream(shpfilename);\n fileheader = new ShapeFileHeader(dotshp, prefs); \n }\n catch(IOException|InvalidShapeFileException ex) {\n System.out.println(ex.toString());\n }\n }", "title": "" }, { "docid": "d974a210cee74715d69a85c8cd2c206f", "score": "0.5713935", "text": "void setHeader(java.lang.String header);", "title": "" }, { "docid": "3c537927af1c1abcd1a36b7777c426f3", "score": "0.5612728", "text": "public void setHeader(io.confluent.developer.avro.in.Header value) {\n this.header = value;\n }", "title": "" }, { "docid": "f57a3ba657e793ca247cb73ca0cde777", "score": "0.55852216", "text": "public String getCppPath(){\r\n\t\treturn cppPath;\r\n\t}", "title": "" }, { "docid": "fdbadeeea228b0b849615c38f86c861d", "score": "0.54768425", "text": "public io.confluent.developer.avro.in.SEL1052.Builder setHeader(io.confluent.developer.avro.in.Header value) {\n validate(fields()[1], value);\n this.headerBuilder = null;\n this.header = value;\n fieldSetFlags()[1] = true;\n return this;\n }", "title": "" }, { "docid": "4d73bf27296ddc12aeecd620c97d74ac", "score": "0.54096645", "text": "public void setHeader(Header aHeader) {\n iHeader = aHeader;\n }", "title": "" }, { "docid": "5a6946c6c682139a12c53036d97d6fc7", "score": "0.53982496", "text": "public Builder setHeader(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000008;\n header_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "bd478274cc06d7fabe458ffd3c37df7e", "score": "0.53960186", "text": "@Override\n\tpublic void setHeader(iProperty header) {\n\t\t\n\t}", "title": "" }, { "docid": "faacb289edb07b22fa54d7a46c95d59d", "score": "0.53323907", "text": "public void setHeader(String header) {\n Html h = new Html();\n h.addText(header);\n addHeader(h);\n }", "title": "" }, { "docid": "8e4288704882b92dd65a5fb084288618", "score": "0.5285409", "text": "public void setHeader(String header) { this.header = header; }", "title": "" }, { "docid": "07c0b97dc821659e1795c0dada5cea82", "score": "0.51177424", "text": "public void setHeader(int headerID, Object headerValue);", "title": "" }, { "docid": "17e5f815d33545b6bf59e842304a5496", "score": "0.50584245", "text": "void setFilePath(Path path);", "title": "" }, { "docid": "565aa9b1891c1df910b988be6051fe1d", "score": "0.5010029", "text": "public Builder setHeadPath(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000008;\n headPath_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "bb1296711f6238c9520e06f7f6c3dec9", "score": "0.50079316", "text": "public void setHeader(HeaderFooter header) {\n }", "title": "" }, { "docid": "3d31a4bd83e031b92808863e076076ff", "score": "0.49986067", "text": "void setPath(String path);", "title": "" }, { "docid": "3d31a4bd83e031b92808863e076076ff", "score": "0.49986067", "text": "void setPath(String path);", "title": "" }, { "docid": "247b2b34c9ac0a48db6d7e2e41bba394", "score": "0.4950729", "text": "public static void setProperty(String path) {\n\t\ttry {\n\t\t\tField field = ClassLoader.class.getDeclaredField(\"usr_paths\");\n\t\t\tfield.setAccessible(true);\n\t\t\tString[] paths = (String[]) field.get(null);\n\t\t\tfor (String p : paths) {\n\t\t\t\tif (path.equals(p)) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\t\t\tString[] tmp = new String[paths.length + 1];\n\t\t\tSystem.arraycopy(paths, 0, tmp, 0, paths.length);\n\t\t\ttmp[paths.length] = path;\n\t\t\tfield.set(null, tmp);\n\t\t\tSystem.setProperty(\"java.library.path\", System.getProperty(\"java.library.path\") + File.pathSeparator + path);\n\t\t} catch (IllegalAccessException e) {\n\t\t\tthrow new RuntimeException(\"Falha ao obter permiss�es para definir o caminho da biblioteca\");\n\t\t} catch (NoSuchFieldException e) {\n\t\t\tthrow new RuntimeException(\"Falha ao obter o identificador de campo para definir o caminho da biblioteca\");\n\t\t}\n\t}", "title": "" }, { "docid": "ccae885bf5c74cc864256db969a89d04", "score": "0.49337387", "text": "void xsetHeader(org.apache.xmlbeans.XmlString header);", "title": "" }, { "docid": "44750ddf901cf4a554ee5d1647fb0670", "score": "0.4925165", "text": "public void setPath(String path);", "title": "" }, { "docid": "44750ddf901cf4a554ee5d1647fb0670", "score": "0.4925165", "text": "public void setPath(String path);", "title": "" }, { "docid": "0cc9a0f8db706a0b44593b7eff3c521a", "score": "0.49108872", "text": "public void setHeaderKey(String headerKey)\r\n\t{\r\n\t\tsHeaderKey = headerKey;\r\n\t}", "title": "" }, { "docid": "a3b39d7e7aab7ec82b9afb66e18e0a07", "score": "0.4898431", "text": "public void setHeader(nexos.service.ed.ws.elca.corpOnLineEcom.Header header) {\r\n this.header = header;\r\n }", "title": "" }, { "docid": "2ecb58ae11f3fe5567ea8722cd95c23e", "score": "0.4841473", "text": "public RestClient header(String key, Object value) {\n headers.putSingle(key, value);\n return this;\n }", "title": "" }, { "docid": "483f5a56962719e9df8ef5e7c36d0db0", "score": "0.48362914", "text": "public com.anychart.standalones.ResourceTimeline header(String value) {\n APIlib.getInstance().addJSLine(String.format(Locale.US, jsBase + \".header(%s);\", wrapQuotes(value)));\n\n return this;\n }", "title": "" }, { "docid": "d994141ac9f50bba8ba4b70406261e48", "score": "0.48345214", "text": "public void setHeader(String header, String value) {\n\n headers.put(header, value);\n }", "title": "" }, { "docid": "edcf1abc70a46fc843a3c2bba7de4962", "score": "0.48286435", "text": "private void setHeader () {\n\t\tLabel header = new Label(\"GAME PAUSED\");\n\t\theader.getStyleClass().add(\"header\");\n\n\t\theader.setLayoutX(100);\n\t\theader.setLayoutY(50);\n\t\ttry {\n\t\t\theader.setFont(Font.loadFont(new FileInputStream(Configs.Font.MONTSERRAT_SEMIBOLD), 52));\n\t\t} catch (FileNotFoundException e) {\n\t\t\theader.setFont(Font.font(\"Verdana\", 52));\n\t\t}\n\t\t\n\t\tadd(header);\n\t}", "title": "" }, { "docid": "747c3bce5b319a3011004804efd58eaf", "score": "0.47918385", "text": "void setPath(String path) {\n CameraServerJNI.setUsbCameraPath(m_handle, path);\n }", "title": "" }, { "docid": "845dbb65240dc370904b7ceceda23d50", "score": "0.47913596", "text": "protected void writeHeaderObjectFile() throws IOException {\n writer.write(\"H\");\r\n writer.write(label+\" ^\");\r\n if(fisrtaddress.length()!=6){\r\n if (fisrtaddress.length()==4)fisrtaddress=\"00\"+fisrtaddress;\r\n else if (fisrtaddress.length()==5)fisrtaddress=\"0\"+fisrtaddress;\r\n }\r\n writer.write(fisrtaddress+\"^\");\r\n\r\n int l=Math.abs(logic.startAddress-logic.HexToDEcimalConvert(fisrtaddress));\r\n String length=logic.DecimalToHexa(l);\r\n if(length.length()!=6){\r\n if (length.length()==3) length=\"000\"+length;\r\n else if (length.length()==4) length=\"00\"+length;\r\n else if (length.length()==5) length=\"0\"+length;\r\n }\r\n writer.write(length);\r\n\r\n\r\n }", "title": "" }, { "docid": "4ea262bfd9968dbf35098498a055182c", "score": "0.4784526", "text": "public void setHeader( String header, String value ) {\n\t\tif ( this.headers == null ) this.headers = new HashMap<>();\n\t\tthis.headers.put( header.toLowerCase(), value );\n\t}", "title": "" }, { "docid": "021ba5a391fcb8c7367a3020c8271a76", "score": "0.47800568", "text": "@JsonSetter(\"risksHeader\")\n public void setRisksHeader (String value) { \n this.risksHeader = value;\n }", "title": "" }, { "docid": "6ac8de3d5d1344de173d72d140e87e6a", "score": "0.47777805", "text": "@DISPID(895)\n @PropPut\n void setHeader(\n com.exceljava.com4j.excel.XlYesNoGuess rhs);", "title": "" }, { "docid": "c8aadd0585d44883f8731cab3760bdbc", "score": "0.4753627", "text": "@Override\n\tprotected void setHeaders() throws YADAIOException\n\t{\n\t\tString line = \"\";\n\t\tStringBuffer fh = new StringBuffer();\n\t\t\n\t\tboolean areHeadersSet = false;\n\t\t\n\t\ttry\n\t\t{\n\t\t\twhile(!areHeadersSet && (line = ((BufferedReader)this.reader).readLine()) != null)\n\t\t\t{\n\t\t\t\tMatcher m = COL_HEAD_RX.matcher(line);\n\t\t\t\tif(m.matches())\n\t\t\t\t{\n\t\t\t\t\tareHeadersSet = true;\n\t\t\t\t\tsetColumnHeader(line);\n\t\t\t\t\tsetFileHeader(fh.toString());\t\t\t\t\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tfh.append(line);\n\t\t\t\t\tfh.append(NEWLINE);\n\t\t\t\t}\n\t\t\t}\n\t\t\tsetColHeaderArray();\n\t\t\tsetFileHeaderMap();\n\t\t}\n\t\tcatch(IOException e)\n\t\t{\n\t\t\tthrow new YADAIOException(e.getMessage(),e);\n\t\t}\n\t}", "title": "" }, { "docid": "c1d4f0b26050a42d1f8ef57d18a010b0", "score": "0.47521737", "text": "public io.confluent.developer.avro.in.SEL1052.Builder setHeaderBuilder(io.confluent.developer.avro.in.Header.Builder value) {\n clearHeader();\n headerBuilder = value;\n return this;\n }", "title": "" }, { "docid": "bbd10288c75658a99e69b33fababac03", "score": "0.47292304", "text": "public static boolean isHeaderFile(final String path) {\n return path.startsWith(HEADER_DIR);\n }", "title": "" }, { "docid": "889ad2bf1bf711e64b6e049052adc4a4", "score": "0.47231138", "text": "public interface HeaderSet {\n\n\t/**\n\t * Represents the OBEX Count header. This allows the connection statement to\n\t * tell the server how many objects it plans to send or retrieve.\n\t * <p>\n\t * The value of <code>COUNT</code> is 0xC0 (192).\n\t */\n\tpublic static final int COUNT = 0xC0;\n\n\t/**\n\t * Represents the OBEX Name header. This specifies the name of the object.\n\t * <p>\n\t * The value of <code>NAME</code> is 0x01 (1).\n\t */\n\tpublic static final int NAME = 0x01;\n\n\t/**\n\t * Represents the OBEX Type header. This allows a request to specify the\n\t * type of the object (e.g. text, html, binary, etc.).\n\t * <p>\n\t * The value of <code>TYPE</code> is 0x42 (66).\n\t */\n\tpublic static final int TYPE = 0x42;\n\n\t/**\n\t * Represents the OBEX Length header. This is the length of the object in\n\t * bytes.\n\t * <p>\n\t * The value of <code>LENGTH</code> is 0xC3 (195).\n\t */\n\tpublic static final int LENGTH = 0xC3;\n\n\t/**\n\t * Represents the OBEX Time header using the ISO 8601 standards. This is the\n\t * preferred time header.\n\t * <p>\n\t * The value of <code>TIME_ISO_8601</code> is 0x44 (68).\n\t */\n\tpublic static final int TIME_ISO_8601 = 0x44;\n\n\t/**\n\t * Represents the OBEX Time header using the 4 byte representation. This is\n\t * only included for backwards compatibility. It represents the number of\n\t * seconds since January 1, 1970.\n\t * <p>\n\t * The value of <code>TIME_4_BYTE</code> is 0xC4 (196).\n\t */\n\tpublic static final int TIME_4_BYTE = 0xC4;\n\n\t/**\n\t * Represents the OBEX Description header. This is a text description of the\n\t * object.\n\t * <p>\n\t * The value of <code>DESCRIPTION</code> is 0x05 (5).\n\t */\n\tpublic static final int DESCRIPTION = 0x05;\n\n\t/**\n\t * Represents the OBEX Target header. This is the name of the service an\n\t * operation is targeted to.\n\t * <p>\n\t * The value of <code>TARGET</code> is 0x46 (70).\n\t */\n\tpublic static final int TARGET = 0x46;\n\n\t/**\n\t * Represents the OBEX HTTP header. This allows an HTTP 1.X header to be\n\t * included in a request or reply.\n\t * <p>\n\t * The value of <code>HTTP</code> is 0x47 (71).\n\t */\n\tpublic static final int HTTP = 0x47;\n\n\t/**\n\t * Represents the OBEX Who header. Identifies the OBEX application to\n\t * determine if the two peers are talking to each other.\n\t * <p>\n\t * The value of <code>WHO</code> is 0x4A (74).\n\t */\n\tpublic static final int WHO = 0x4A;\n\n\t/**\n\t * Represents the OBEX Object Class header. This header specifies the OBEX\n\t * object class of the object.\n\t * <p>\n\t * The value of <code>OBJECT_CLASS</code> is 0x4F (79).\n\t */\n\tpublic static final int OBJECT_CLASS = 0x4F;\n\n\t/**\n\t * Represents the OBEX Application Parameter header. This header specifies\n\t * additional application request and response information.\n\t * <p>\n\t * The value of <code>APPLICATION_PARAMETER</code> is 0x4C (76).\n\t */\n\tpublic static final int APPLICATION_PARAMETER = 0x4C;\n\n\t/**\n\t * Sets the value of the header identifier to the value provided. The type\n\t * of object must correspond to the Java type defined in the description of\n\t * this interface. If <code>null</code> is passed as the\n\t * <code>headerValue</code> then the header will be removed from the set\n\t * of headers to include in the next request.\n\t *\n\t * @param headerID the identifier to include in the message\n\t * @param headerValue the value of the header identifier\n\t * @throws IllegalArgumentException if the header identifier provided is not one defined in\n\t * this interface or a user-defined header; if the type of\n\t * <code>headerValue</code> is not the correct Java type as\n\t * defined in the description of this interface\n\t */\n\tpublic void setHeader(int headerID, Object headerValue);\n\n\t/**\n\t * Retrieves the value of the header identifier provided. The type of the\n\t * Object returned is defined in the description of this interface.\n\t *\n\t * @param headerID the header identifier whose value is to be returned\n\t * @return the value of the header provided or <code>null</code> if the\n\t * header identifier specified is not part of this\n\t * <code>HeaderSet</code> object\n\t * @throws IllegalArgumentException if the <code>headerID</code> is not one defined in this\n\t * interface or any of the user-defined headers\n\t * @throws IOException if an error occurred in the transport layer during the\n\t * operation or if the connection has been closed\n\t */\n\tpublic Object getHeader(int headerID) throws IOException;\n\n\t/**\n\t * Retrieves the list of headers that may be retrieved via the\n\t * <code>getHeader</code> method that will not return <code>null</code>.\n\t * In other words, this method returns all the headers that are available in\n\t * this object.\n\t *\n\t * @return the array of headers that are set in this object or\n\t * <code>null</code> if no headers are available\n\t * @throws IOException if an error occurred in the transport layer during the\n\t * operation or the connection has been closed\n\t * @see #getHeader\n\t */\n\tpublic int[] getHeaderList() throws IOException;\n\n\t/**\n\t * Sets the authentication challenge header. The <code>realm</code> will\n\t * be encoded based upon the default encoding scheme used by the\n\t * implementation to encode strings. Therefore, the encoding scheme used to\n\t * encode the <code>realm</code> is application dependent.\n\t *\n\t * @param realm a short description that describes what password to use; if\n\t * <code>null</code> no realm will be sent in the\n\t * authentication challenge header\n\t * @param userID if <code>true</code>, a user ID is required in the reply;\n\t * if <code>false</code>, no user ID is required\n\t * @param access if <code>true</code> then full access will be granted if\n\t * successful; if <code>false</code> then read-only access will\n\t * be granted if successful\n\t */\n\tpublic void createAuthenticationChallenge(String realm, boolean userID, boolean access);\n\n\t/**\n\t * Returns the response code received from the server. Response codes are\n\t * defined in the <code>ResponseCodes</code> class.\n\t *\n\t * @return the response code retrieved from the server\n\t * @throws IOException if an error occurred in the transport layer during the\n\t * transaction; if this method is called on a\n\t * <code>HeaderSet</code> object created by calling\n\t * <code>createHeaderSet()</code> in a\n\t * <code>ClientSession</code> object; if an OBEX server\n\t * created this object\n\t * @see ResponseCodes\n\t */\n\tpublic int getResponseCode() throws IOException;\n}", "title": "" }, { "docid": "28a732a30303e61bf42b96b188e7f431", "score": "0.47215167", "text": "public void setPath(String path)\n {\n m_path = path;\n }", "title": "" }, { "docid": "84bc129408ab7a55b6aef563ec9f8e98", "score": "0.47180045", "text": "@Override\n\tpublic void initHeader() {\n\n\t}", "title": "" }, { "docid": "d4095a5e702332d4e3222ae4d2046b39", "score": "0.47145113", "text": "public void setJP_BankDataType_Header (String JP_BankDataType_Header)\n\t{\n\t\tset_Value (COLUMNNAME_JP_BankDataType_Header, JP_BankDataType_Header);\n\t}", "title": "" }, { "docid": "8a77012e7e90327b17edd39deb881485", "score": "0.47048116", "text": "public void setHeader(JSONObject header) {\n this.header = header;\n }", "title": "" }, { "docid": "e5ed585badb518123931e65b80686eca", "score": "0.4699656", "text": "@Override\n\tprotected void setFileStructure() {\n\t\tString fileStructure;\n\t\tif (isHeader) {\n\t\t\tfileStructure = \"#PREAMBLE#\" + LF + \"#INCLUDES#\" + LF + \"#APOS_TYPES#\" + LF + \"#SEMAPHORE_APIS#\" + LF + \"#RECEIVE_MESSAGE#\" + LF + \"#SEND_MESSAGE_NON_BLOCK#\" + LF + \"#SCALE_PRIORITIES#\" + LF + \"#CREATE_THREAD#\" + LF + \"#EXIT_THREAD#\" + LF + \"#TIMER_APIS#\" + LF + SEP_PATTERN_111 + LF + \"#INITIALISE#\" + LF + \"#CLOSE#\" + LF;\n\t\t} else {\n\t\t\tfileStructure = \"#PREAMBLE#\" + LF + \"#INCLUDES#\" + LF + \"#SOCKET_DECLS#\" + LF + \"#TIMER_TYPES_DECL#\" + LF + \"#SEMAPHORE_APIS#\" + LF + \"#RECEIVE_MESSAGE#\" + LF + \"#SEND_MESSAGE_NON_BLOCK#\" + LF + \"#SCALE_PRIORITIES#\" + LF + \"#CREATE_THREAD#\" + LF + \"#EXIT_THREAD#\" + LF + \"#TIMER_APIS#\" + LF + SEP_PATTERN_111 + LF + \"#SIG_HANDLER#\" + LF + \"#INITIALISE#\" + LF;\n\t\t}\n\n\t\tcodeStringBuilder.append(fileStructure);\n\t}", "title": "" }, { "docid": "278d5b9e0e0c2755f2ce87f596ba336e", "score": "0.4677237", "text": "public Builder setHeader(com.autumn.zen.protobuf.AdRequestPb.Header value) {\n if (headerBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n header_ = value;\n onChanged();\n } else {\n headerBuilder_.setMessage(value);\n }\n\n return this;\n }", "title": "" }, { "docid": "167b2901f979151b101454b7652d8356", "score": "0.4676848", "text": "private void writeHeader() throws IOException\n\t{\n\t\tString packageName = getPackageName();\n\n\t\tif (null != packageName)\n\t\t{\n\t\t\twriteLine(\"package \" + packageName + \";\");\n\t\t\twriteLine();\n\t\t}\n\n\t\twriteLine(\"import java.io.Serializable;\");\n\t\twriteLine(\"import java.math.BigDecimal;\");\n\t\twriteLine(\"import java.util.Date;\");\n\t\twriteLine();\n\t\twriteLine(\"import javax.persistence.*;\");\n\t\twriteLine();\n\t\twriteLine(\"import org.hibernate.annotations.Cache;\");\n\t\twriteLine(\"import org.hibernate.annotations.CacheConcurrencyStrategy;\");\n\t\twriteLine(\"import org.hibernate.annotations.DynamicUpdate;\");\n\t\twriteLine();\n\t\twriteLine(\"/**********************************************************************************\");\n\t\twriteLine(\"*\");\n\t\twriteLine(\"*\\tEntity Bean CMP class that represents the \" + getTable().name + \" table.\");\n\t\twriteLine(\"*\");\n\t\twriteLine(\"*\\t@author \" + getAuthor());\n\t\twriteLine(\"*\\t@version \" + version);\n\t\twriteLine(\"*\\t@since \" + getDateString());\n\t\twriteLine(\"*\");\n\t\twriteLine(\"**********************************************************************************/\");\n\t}", "title": "" }, { "docid": "7dd49c0cfe1e4e0c111c15143c0ee4ca", "score": "0.46635625", "text": "java.lang.String getHeadPath();", "title": "" }, { "docid": "72203741faf3d1cecb377c02d4164d47", "score": "0.46559125", "text": "public String getHPath(){\r\n\t\treturn hPath;\r\n\t}", "title": "" }, { "docid": "fd037b5ee61479495f43cb55f7d4dbd6", "score": "0.46374786", "text": "public void setHeaderKey(final String headerKey) {\n\t\tthis.headerKey = headerKey;\n\t}", "title": "" }, { "docid": "79f648c04f26a6091b3a4906fc9d0a77", "score": "0.4624733", "text": "@Override\r\n\tpublic void setHeader(String header_name, String header_value) throws MessagingException {\n\t\t\r\n\t}", "title": "" }, { "docid": "021543a7e01667674565a8a1e43f101e", "score": "0.46158764", "text": "public void setHeaderId(Number value) {\n setAttributeInternal(HEADERID, value);\n }", "title": "" }, { "docid": "021543a7e01667674565a8a1e43f101e", "score": "0.46158764", "text": "public void setHeaderId(Number value) {\n setAttributeInternal(HEADERID, value);\n }", "title": "" }, { "docid": "021543a7e01667674565a8a1e43f101e", "score": "0.46158764", "text": "public void setHeaderId(Number value) {\n setAttributeInternal(HEADERID, value);\n }", "title": "" }, { "docid": "021543a7e01667674565a8a1e43f101e", "score": "0.46158764", "text": "public void setHeaderId(Number value) {\n setAttributeInternal(HEADERID, value);\n }", "title": "" }, { "docid": "021543a7e01667674565a8a1e43f101e", "score": "0.46158764", "text": "public void setHeaderId(Number value) {\n setAttributeInternal(HEADERID, value);\n }", "title": "" }, { "docid": "4dae598df6696527e22f1bc83c3e2344", "score": "0.46128213", "text": "public void addHeader(String name, String value);", "title": "" }, { "docid": "2c593d178cbbcc4006dcb56b0e7a630b", "score": "0.46083912", "text": "public void header(String key, String value) {\n headers.put(key, value);\n }", "title": "" }, { "docid": "a734d913e546f6211121745b8c2964a7", "score": "0.46031505", "text": "private void setXMLHeader(String fsType, String fsRequestor,\r\n String fsRecipient, int fiReturnCode)\r\n {\r\n moXMLToFlush.append(\"<HEADER TYPE=\\\"\");\r\n moXMLToFlush.append(fsType);\r\n moXMLToFlush.append(\"\\\" DATE=\\\"\");\r\n moXMLToFlush.append((new VSDate()).toString());\r\n moXMLToFlush.append(\"\\\" REQUESTOR=\\\"\");\r\n moXMLToFlush.append(fsRequestor);\r\n moXMLToFlush.append(\"\\\" RECIPIENT=\\\"\");\r\n moXMLToFlush.append(fsRecipient);\r\n moXMLToFlush.append(\"\\\" RETURN_CODE=\\\"\");\r\n moXMLToFlush.append(String.valueOf(fiReturnCode));\r\n\r\n moXMLToFlush.append(\"\\\"></HEADER>\\n\");\r\n }", "title": "" }, { "docid": "04fb474ff84bc79fdcd426b3f381f303", "score": "0.4601134", "text": "public void setHeaderFile(String aFileName)\n {\n super.setHeaderFile(aFileName);\n final String[] headerLines = getHeaderLines();\n if (headerLines != null) {\n mHeaderRegexps = new RE[headerLines.length];\n for (int i = 0; i < headerLines.length; i++) {\n try {\n // TODO: Not sure if chache in Utils is still necessary\n mHeaderRegexps[i] = Utils.getRE(headerLines[i]);\n }\n catch (RESyntaxException ex) {\n throw new ConversionException(\n \"line \" + i + \" in header file is not a regexp\");\n }\n }\n }\n }", "title": "" }, { "docid": "5f022658bf625c70986cb930ba443136", "score": "0.45994192", "text": "public void setHeader(boolean header) {\n this.header = header;\n }", "title": "" }, { "docid": "c43737799fd92f8102a6bc779c16028d", "score": "0.45968235", "text": "public void setHf(org.openxmlformats.schemas.presentationml.x2006.main.CTHeaderFooter hf)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.openxmlformats.schemas.presentationml.x2006.main.CTHeaderFooter target = null;\n target = (org.openxmlformats.schemas.presentationml.x2006.main.CTHeaderFooter)get_store().find_element_user(HF$4, 0);\n if (target == null)\n {\n target = (org.openxmlformats.schemas.presentationml.x2006.main.CTHeaderFooter)get_store().add_element_user(HF$4);\n }\n target.set(hf);\n }\n }", "title": "" }, { "docid": "1a89644b9b6a03e1210929726d57aa30", "score": "0.45958188", "text": "public Builder setHeader(org.daboodb.daboo.generated.protobufs.Request.Header value) {\n if (headerBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n header_ = value;\n onChanged();\n } else {\n headerBuilder_.setMessage(value);\n }\n bitField0_ |= 0x00000001;\n return this;\n }", "title": "" }, { "docid": "1a89644b9b6a03e1210929726d57aa30", "score": "0.45958188", "text": "public Builder setHeader(org.daboodb.daboo.generated.protobufs.Request.Header value) {\n if (headerBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n header_ = value;\n onChanged();\n } else {\n headerBuilder_.setMessage(value);\n }\n bitField0_ |= 0x00000001;\n return this;\n }", "title": "" }, { "docid": "1a89644b9b6a03e1210929726d57aa30", "score": "0.45958188", "text": "public Builder setHeader(org.daboodb.daboo.generated.protobufs.Request.Header value) {\n if (headerBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n header_ = value;\n onChanged();\n } else {\n headerBuilder_.setMessage(value);\n }\n bitField0_ |= 0x00000001;\n return this;\n }", "title": "" }, { "docid": "b57a4f2b0b7f86da9a54ab4b481269cb", "score": "0.4594598", "text": "public HttpConnectionRestClientBuilder header(final String name, final String value) {\n this.headers.put(name, value);\n \n return this;\n }", "title": "" }, { "docid": "d171e3f41baa36e7892fc3bd2eb60126", "score": "0.45850587", "text": "protected void setHeaderIndex(int headerIndex) {\n this.headerIndex = headerIndex;\n }", "title": "" }, { "docid": "b428f2dac3290248f3a5b4d902f2efad", "score": "0.45844528", "text": "public Header () {\n\t\tinit(); \n\t}", "title": "" }, { "docid": "67ab02a8ddd387b0f61c3c22710ac626", "score": "0.45816714", "text": "public void setHeader(DsByteString name, DsByteString value) {\n if (m_Headers == null) {\n m_Headers = new DsHeaderParameters();\n m_Headers.startWithDelimiter(false);\n }\n m_Headers.put(name, value);\n }", "title": "" }, { "docid": "85a12b2b84718644bb84e03576fb1a25", "score": "0.45805508", "text": "public void setAssociatedPath(String path);", "title": "" }, { "docid": "415317e9b933691cfcc34b5d7bf3568d", "score": "0.4554994", "text": "public void setRequestHeader(RequestHeader RequestHeader) {\n this.RequestHeader = RequestHeader;\n }", "title": "" }, { "docid": "cd8ddf590d3092197a293b5a9915eebc", "score": "0.45472535", "text": "public void addHeader(Html text) {\n header = text;\n }", "title": "" }, { "docid": "6257313bc523a59eba4778356094d9ff", "score": "0.4544406", "text": "Builder setSrpObjHeader(PcepObjectHeader obj);", "title": "" }, { "docid": "9f5b21a9a5ca1d1565e60770cc6bc9eb", "score": "0.45438844", "text": "public void setPath(String path) { \r\n this.path = path;\r\n }", "title": "" }, { "docid": "62fb8ed853b9c8a77b11d3b00b3e8573", "score": "0.45398498", "text": "public void visitHeaderDeclaration(GNode n){\n packageName = n.getString(0); //null if no package\n if (packageName != null){\n printer.pln(\"namespace \" + n.getString(0) + \" {\");\n className = n.getString(1);\n visit(n);\n printer.pln(\"}\").pln();\n }\n else{\n className = n.getString(1);\n visit(n);\n }\n }", "title": "" }, { "docid": "9ab90319008d4c0a0c70ed66a5a7fb2f", "score": "0.45314035", "text": "public void setSourcepath(Path src) {\n if (sourcePath == null) {\n sourcePath = src;\n } else {\n sourcePath.append(src);\n }\n }", "title": "" }, { "docid": "475040ab6f32de3c043b13998e28d9a1", "score": "0.45308816", "text": "private void setResHeader(cn.iopig.feed.scale.grpc.ResHeader value) {\n if (value == null) {\n throw new NullPointerException();\n }\n resHeader_ = value;\n \n }", "title": "" }, { "docid": "9672a596fcfe227cabebb67f60443adb", "score": "0.45264706", "text": "public ListInListTable setHeaderValue(Object value) {\n return setCellValue(header, value);\n }", "title": "" }, { "docid": "b12edf6dcd31f2ecdbb4ac2c2da52b91", "score": "0.45186278", "text": "public void setHeader(View headerView) {\n if (headerView == null) {\n throw new NullPointerException(\"the headerView can not be null\");\n }\n if (this.headerView != null) {\n throw new IllegalStateException(\"the headerView already has been set\");\n }\n this.headerView = headerView;\n if (isAttachToRecycler && hasHeader()) {\n notifyItemInserted(0);\n }\n }", "title": "" }, { "docid": "39cc14e1734772a1a9ca7cb34ce97ea5", "score": "0.4514434", "text": "public void setHeader(Instances header) {\n m_modelHeader = header;\n }", "title": "" }, { "docid": "11fda557bc61d84abfafcce621bd002b", "score": "0.45134783", "text": "public String getHeader() { return _header; }", "title": "" }, { "docid": "7958568d8645edb90cae45757cd58355", "score": "0.4510345", "text": "@Override\n @NotNull\n protected String buildHeader()\n {\n return \"\";\n }", "title": "" }, { "docid": "54cbe50b1fcd4283a3970eb4f12a2646", "score": "0.45077744", "text": "public void setPath(String path) {\r\n _path = path;\r\n }", "title": "" }, { "docid": "054e4d7e69d56828429efe8cbdb9753b", "score": "0.450686", "text": "@Override\r\n\tpublic void setHeader(String name, String value) {\n\t\tresponse.setHeader(name, value);\r\n\t}", "title": "" }, { "docid": "e8cd53762fcf7b20a0092dad9461fef9", "score": "0.45048884", "text": "public void setPath(java.lang.String path)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(PATH$4, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(PATH$4);\n }\n target.setStringValue(path);\n }\n }", "title": "" }, { "docid": "818f0ebfa3c058cecf9d08c47ad93ea6", "score": "0.45036918", "text": "@Override\r\n\t\tpublic String getHeader() {\n\t\t\treturn header;\r\n\t\t}", "title": "" }, { "docid": "cc1d7c6ec7636957f7db63371b948ff1", "score": "0.44968554", "text": "public Builder setHeadPathBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000008;\n headPath_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "a814b44209b7a671d1ed6e3f6cb21705", "score": "0.44898722", "text": "public abstract HttpReq addHeader(String key, String value);", "title": "" }, { "docid": "df74645ec6850de019ac2bba85b5f78c", "score": "0.44840676", "text": "public ListInListTable setHeaderObject(Object object) {\n return setCellObject(header, object);\n }", "title": "" }, { "docid": "19a6b754c15a3510ee8b871db2df31d8", "score": "0.4477511", "text": "public void setReferenceHeaders()\n {\n int i = 0;\n\n if(model.getRefFile() != null && model.getRefFile().canRead())\n {\n try\n {\n reader = new CSVReader(new FileReader(model.getRefFile()));\n String cutLine[] = reader.readNext();\n\n for(i=0; i< cutLine.length; i++)\n {\n model.getRefHeaders().add(cutLine[i]);\n System.out.println(\"added \" + cutLine[i] + \" to ref headers list\");\n }\n }\n catch(IOException ex)\n {\n System.err.println(ex);\n }\n }\n }", "title": "" }, { "docid": "2f15218fced3948e53da841a662eac1b", "score": "0.4475006", "text": "public Request header(final String header, final String value) {\n headers.add(header, value);\n return this;\n }", "title": "" }, { "docid": "e0fb1c07c0149dd3baa0f9a017fa1cca", "score": "0.4460036", "text": "private void createHeaderFiles() throws IOException {\n\t\tcreateHeaderFile(cfgFile.headerFolder, \"Release\", \"iphonesimulator\");\n\t\tcreateHeaderFile(cfgFile.headerFolder, \"Release\", \"iphoneos\");\n\t\tcreateHeaderFile(cfgFile.headerFolder, \"Debug\", \"iphoneos\");\n\t\tcreateHeaderFile(cfgFile.headerFolder, \"Debug\", \"iphonesimulator\");\n\t}", "title": "" }, { "docid": "12a4a648bd4a982cae1a36cb1977c0e4", "score": "0.44592005", "text": "public Header() {\n }", "title": "" }, { "docid": "711c204feff4cddf82096aac1f3cd4d5", "score": "0.44505808", "text": "public Builder setItilheaderwording(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n itilheaderwording_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "50586cdaaa4c3926d615bcad7c6e5fd7", "score": "0.44485244", "text": "public List<String> getHeaderSearchPaths() {\n return headerSearchPaths;\n }", "title": "" }, { "docid": "b6541b49cd3edb2b9a345710a7ffa8dc", "score": "0.44446588", "text": "Header createHeader();", "title": "" }, { "docid": "aa4961998caeaf7d76770bb41e0a90a2", "score": "0.4439112", "text": "@Override\n\tprotected void setHeaderTitle(){\n\t\tStringBuffer sb = new StringBuffer();\n\t\tsb.append(cluProposalModel.get(cfg.getCourseTitlePath()));\n\t\tsb.append(\" (Retirement)\");\n\t\t\t\t\n\t\tcurrentTitle = sb.toString();\n\t\t\n\t\tthis.setContentTitle(currentTitle);\n \tthis.setName(currentTitle);\n \tWindowTitleUtils.setContextTitle(currentTitle);\t\t\n }", "title": "" }, { "docid": "d1908298dafb3a9a988b1a4c1803b21c", "score": "0.44368774", "text": "public void setPath (java.lang.String path) {\n\t\tthis.path = path;\n\t}", "title": "" }, { "docid": "fa90413837483c449e83e5d762af4062", "score": "0.4433299", "text": "void setHeader(String name, String value) {\n\t\tList<String> headerList = headers.get(name);\n\t\t\n\t\tif(headerList == null) {\n\t\t\theaderList = new ArrayList<String>();\n\t\t\theaders.put(name, headerList);\n\t\t} else {\n\t\t\theaderList.clear();\n\t\t}\n\t\t\n\t\theaderList.set(0, value);\n\t}", "title": "" }, { "docid": "a9d6fe08d2c0036e6635661f76b52241", "score": "0.4433236", "text": "public java.lang.String getHeadPath() {\n java.lang.Object ref = headPath_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n headPath_ = s;\n }\n return s;\n }\n }", "title": "" }, { "docid": "b7ed8497c5ac36a592e8ee3f0853cee4", "score": "0.4431251", "text": "public void setHeader(Header hd) {\n\t\tboolean first = true;\n\t\tString hname = hd.getName();\n\t\tfor (int i = 0; i < headers.size(); i++) {\n\t\t\tHeader h = (Header) headers.elementAt(i);\n\t\t\tif (hname.equalsIgnoreCase(h.getName())) {\n\t\t\t\tif (first) { // replace it\n\t\t\t\t\theaders.setElementAt(h, i);\n\t\t\t\t\tfirst = false;\n\t\t\t\t} else { // remove it\n\t\t\t\t\theaders.removeElementAt(i);\n\t\t\t\t\ti--;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (first)\n\t\t\theaders.addElement(hd);\n\t}", "title": "" }, { "docid": "8774ed0ee2a2dd3816ba87cdaa6d6664", "score": "0.4427388", "text": "@Override\n public Invocation.Builder header(String name, Object value) {\n clientRequestContext.getHeaders().add(name, value.toString());\n return this;\n }", "title": "" }, { "docid": "2fdd91a841201a184a4568a90076cfb6", "score": "0.44159436", "text": "public void setPath(java.lang.String path) {\r\n\t\tthis.path = path;\r\n\t}", "title": "" }, { "docid": "55fa0e180b482dff5ac3a3a96dd82a19", "score": "0.44146127", "text": "public ZCLFrameImpl(ZCLHeader header) {\n\t\tsuper();\n\t\tthis.zclHeader = header;\n\t}", "title": "" } ]
89a3abe0150ecd80bf22f8442aebb5bd
More onstructor setup. This organizes the template file.
[ { "docid": "43c5ce68a18e7e2180098c966bbf9d90", "score": "0.0", "text": "private void setup(List<String>rawLines) {\n\t\ttext = new ArrayList<String>();\n\t\tactions = new ArrayList<Map.Entry<String, List<String>>>();\n\t\tSet<String>mnemonicSet = new HashSet<String>();\n\t\tList<String> current = text;\n\t\tfor(String s:rawLines) {\n\t\t\tif(s.startsWith(\"%OP_\")) {\n\t\t\t\t// Need to check for duplicates!\n\t\t\t\tString mnemonic = s.substring(4);\n\t\t\t\tif(mnemonicSet.contains(mnemonic)) {\n\t\t\t\t\tSystem.err.println(\"Warning: duplicate actions for \" + mnemonic);\n\t\t\t\t}\n\t\t\t\tcurrent = new ArrayList<String>();\n\t\t\t\tactions.add(new AbstractMap.SimpleImmutableEntry<String, List<String>>(mnemonic, current));\n\t\t\t} else if(s.startsWith(\"%WRAPPER\")) {\n\t\t\t\twrapper = new ArrayList<String>();\n\t\t\t\tcurrent = wrapper;\n\t\t\t} else {\n\t\t\t\tcurrent.add(s);\n\t\t\t}\n\t\t}\n\t}", "title": "" } ]
[ { "docid": "bc3e009032ccf381c67a799ebf4287d8", "score": "0.6923427", "text": "@Override\n\t protected void setupContext() {\n\t if(!getProperties().containsKey(\"ejb3\")) {\n\t getProperties().put(\"ejb3\", \"false\");\n\t }\n\t if(!getProperties().containsKey(\"jdk5\")) {\n\t getProperties().put(\"jdk5\", \"false\");\n\t }\n\t \n\t getTemplateHelper().setupContext();\n\t getTemplateHelper().putInContext(\"exporter\", this);\n\t // getTemplateHelper().putInContext(\"c2h\", getCfg2HbmTool());\n\t getTemplateHelper().putInContext(\"c2j\", getCfg2JavaTool());\n\n\t if(getOutputDirectory()!=null) getTemplateHelper().putInContext(\"outputdir\", getOutputDirectory());\n\t if(getTemplatePaths()!=null) getTemplateHelper().putInContext(\"template_path\", getTemplatePaths());\n\t //getTemplateHelper().putInContext(\"artifacts\", collector);\n\t if(getConfiguration()!=null) {\n\t getTemplateHelper().putInContext(\"cfg\", getConfiguration());\n\t }\n\t \n\t }", "title": "" }, { "docid": "3d76b0a9a359006fd4f922e6ee9573d2", "score": "0.6184883", "text": "public void generateTemplate() {\n blogDatabase.save(new Blog(\"Example blog 1\", \"Sample text\"));\n blogDatabase.save(new Blog(\"Example blog number 2\", \"Now with more text\"));\n blogDatabase.save(new Blog(\"I am title\", \"I am text\"));\n }", "title": "" }, { "docid": "fb753b0762b21892ce0a40fd44fa8d88", "score": "0.61438906", "text": "Template addTemplate();", "title": "" }, { "docid": "880704c521477a1aefb3921ef4505107", "score": "0.6007636", "text": "private static void initializePluginTemplates () {\n\t}", "title": "" }, { "docid": "56a2532db1143e632a37e2f5bf06ef6e", "score": "0.59573615", "text": "public CreateImportExportSnippetViewAction() {\n\t\t//this.templatesFiles.put(\"templates-config.xml\", TEMPLATE_PREFERENCE_NAME.ALL_TEMPLATES.toString());\n\t\t//this.templatesFiles.put(\"additional-templates-config.xml\", TEMPLATE_PREFERENCE_NAME.ALL_ADDITIONAL_TEMPLATES.toString());\n\t\t//this.templatesFiles.put(\"fast-code.properties\", TEMPLATE_PREFERENCE_NAME.GLOBAL_PROPS.toString());\n\t}", "title": "" }, { "docid": "a1d506cda0dead5cbcb23c8a81c65ba0", "score": "0.59148157", "text": "public void init() \n { Prepare the FreeMarker configuration;\n // - Load templates from the WEB-INF/templates directory of the Web app.\n //\n cfg = new Configuration();\n cfg.setServletContextForTemplateLoading(\n\t\t\t\t\t getServletContext(), \n\t\t\t\t\t \"WEB-INF/templates\"\n\t \t\t\t\t );\n }", "title": "" }, { "docid": "bb39a740d36ecf25328aee2871ea15cd", "score": "0.5907942", "text": "public void defineGlobalTemplate (SSC_File file)\n {\n\tdefineGlobalTemplate(file, main == null);\n }", "title": "" }, { "docid": "8277cded0cd5f9162ad8386fc6d317e2", "score": "0.58746153", "text": "@Override\n\tpublic void init() {\n\t\tServletContextTemplateResolver templateResolver = new ServletContextTemplateResolver(getServletContext());\n\t\ttemplateResolver.setPrefix(\"/WEB-INF/templates/\");\n\t\ttemplateResolver.setSuffix(\".html\");\n\t\ttemplateResolver.setTemplateMode(TemplateMode.HTML);\n\t\ttemplateResolver.setCacheable(false); // cacheble=false during development\n\n\t\tSet<IMessageResolver> messageResolvers = new HashSet<>();\n\t\t// StandardMessageResolver searches in same directory like template with same name\n\t\tmessageResolvers.add(new StandardMessageResolver());\n\t\t// custom message resolver searches in messages.properties\n\t\tmessageResolvers.add(new MyMessageResolver());\n\n\t\t// init of template engine\n\t\ttemplateEngine = new TemplateEngine();\n\t\ttemplateEngine.setMessageResolvers(messageResolvers);\n\t\ttemplateEngine.setTemplateResolver(templateResolver);\n\t}", "title": "" }, { "docid": "b8b54cc4cd2830f3099e07691c0c5bc9", "score": "0.5849482", "text": "public static void main(String[] args) {\n\t\tTemplateStructure temp = new TemplateStructure();\n\t\ttemp.pageAlign(\"0001049305.html\", \"0001049313.html\");\n\t\tSystem.out.println(\"Template generated\");\n\t\t\n\t\tSystem.out.println(\"*****************Template Name Nodes*****************\");\n\t\tSystem.out.println(temp.templateNameNodes.size());\n\t\tfor (TemplateFeature name : temp.templateNameNodes) {\n\t\t\t//name.print();\n\t\t}\n\t\tSystem.out.println(\"*****************Template Value Nodes*****************\");\n\t\tSystem.out.println(temp.templateValueNodes.size());\n\t\tfor (TemplateFeature value : temp.templateValueNodes) {\n\t\t\t//value.print();\n\t\t}\n\t\t\n\t\tSchemaAnalyzer analyzer = new SchemaAnalyzer();\n\t\tPageStructure page = new PageStructure(\"0001049356.html\");\n\t\tanalyzer.debug = false;\n\t\tif (analyzer.analyze(page, temp)) {\n\t\t\tSystem.out.println(\"*****************Name Nodes*****************\");\n\t\t\tSystem.out.println(page.nameNodes.size());\n\t\t\tfor (DomTreeNode node : page.nameNodes) {\n\t\t\t\t//node.print();\n\t\t\t}\n\t\t\tSystem.out.println(\"*****************Value Nodes*****************\");\n\t\t\tSystem.out.println(page.valueNodes.size());\n\t\t\tfor (DomTreeNode node : page.valueNodes) {\n\t\t\t\t//node.print();\n\t\t\t}\n\t\t} else {\n\t\t\tSystem.out.println(\"No match\");\n\t\t}\n\t\tpage.value2name();\n\t\tfor (DomTreeNode node : page.V2N.keySet()) {\n\t\t\tSystem.out.println(page.V2N.get(node) + \" : \" + node.getContent());\n\t\t}\n\t}", "title": "" }, { "docid": "68695fe18868351765e29f6313594c5b", "score": "0.57945687", "text": "private void templateGenerate() {\n\n if (templateFileOK\n && fileAvailable()\n && templateCreated\n && list instanceof DataSource) {\n DataSource source = (DataSource)list;\n template.setWebRoot (webRootFile);\n if (list.getSource() != null) {\n template.openData (source, list.getSource().toString());\n }\n try {\n generateOutputOK = template.generateOutput();\n } catch (IOException e) {\n generateOutputOK = false;\n }\n lastTemplateFile = templateFile;\n // lastTabNameOutput = tabName;\n templateCreated = false;\n templateFileReady = false;\n if (generateOutputOK) {\n FileName textFileOutName = template.getTextFileOutName();\n if (textFileOutName == null) {\n outputFileName = null;\n } else {\n outputFileName = textFileOutName.toString();\n }\n if (outputFileName != null) {\n FileName outputFN = new FileName (outputFileName);\n if (generateOutputName != null) {\n generateOutputName.setText (outputFN.getFileName());\n Tooltip generateOutputNameTip = new Tooltip\n (generateOutputName.toString());\n Tooltip.install(generateOutputName, generateOutputNameTip);\n }\n }\n textMergeScript.recordScriptAction (\n ScriptConstants.TEMPLATE_MODULE,\n ScriptConstants.GENERATE_ACTION,\n ScriptConstants.NO_MODIFIER,\n ScriptConstants.NO_OBJECT,\n ScriptConstants.NO_VALUE);\n } else {\n Logger.getShared().recordEvent (LogEvent.MEDIUM,\n \"Error occurred while generating output file from template \"\n + templateFileName,\n true);\n }\n } else {\n Logger.getShared().recordEvent (LogEvent.MEDIUM,\n \"One or Both Input files (Template and/or Data) Not Ready\",\n true);\n }\n }", "title": "" }, { "docid": "48ee51ab738eb9f33cbc83c73366a6f4", "score": "0.57752115", "text": "protected void createContents() {\n\t\tsetText(\"东陆maven仓库生成器\");\n\t\tsetSize(506, 598);\n\n\t}", "title": "" }, { "docid": "451dd99eff53859302ebd94a5c7026d6", "score": "0.5767742", "text": "public TemplateContentProcessorImpl() {\r\n\t\tsuper();\r\n\r\n\t\t\r\n\t}", "title": "" }, { "docid": "ccb41e2dbbfa5de903f1ab0d8356f2ea", "score": "0.5754856", "text": "public void generateFiles()\n {\n FolderUtilities.createFolders(path);\n FolderUtilities.clearFolder(path);\n FolderUtilities.createFolders(path + \"/individualContacts\");\n FolderUtilities.clearFolder(path + \"/individualContacts\");\n \n indexPage.generatePage();\n for (Page contactPage : contactPages)\n contactPage.generatePage();\n for (Page page : additionalPages)\n page.generatePage();\n \n FolderUtilities.openFolder(path);\n }", "title": "" }, { "docid": "a35f4fae439a0886c0a0049214dcc2af", "score": "0.57015705", "text": "public DustTemplateEngine() {\n initializeContext();\n }", "title": "" }, { "docid": "4d87dfae65eba800844cc0e9d947d5ed", "score": "0.57010263", "text": "public void initPages() {\n\t\tmmtPageActions = new MmtPageActions(driver);\n\t\t yr=new YamlReaderClass();\n\t\t specFileReader=new SpecFileReader(driver);\n\t}", "title": "" }, { "docid": "1fc75dc964496eddf39a5a00b7b06729", "score": "0.5691526", "text": "@SuppressWarnings(\"unchecked\")\n private void outputBuilder() throws FileNotFoundException {\n Element templateRoot = this.getTemplateRoot();\n List<Element> templateRootList = (List<Element>) templateRoot.getChildren();\n Element templateHEAD = templateRootList.get(0);\n this.templateBODY = templateRootList.get(1);\n\n // Add common widget files. Should be the first before users widgets\n this.addHEADFiles(this.properties.getProperty(\"commonWidgetName\"));\n\n // If present common user widget add it to HEAD\n if (this.commonWidgets != null) {\n for (String s : this.commonWidgets) {\n if (isPresent(s)) {\n this.addHEADFiles(s);\n }\n }\n }\n\n List<Element> el = this.templateBODY.getChildren();\n this.goRecursive(el);\n\n this.createHeadElements(templateHEAD);\n\n // If available embedded CSS, add it\n if (this.embeddedCSS != null) {\n templateHEAD.addContent(this.embeddedCSS);\n }\n\n Format format = Format.getPrettyFormat();\n XMLOutputter outp = new XMLOutputter(format);\n try {\n outp.output(templateHEAD, out);\n outp.output(this.templateBODY, out);\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "95972e44dd5fd27c5b9cb2e2c368f815", "score": "0.5689536", "text": "@Override\n protected void setupFiles() throws IOException {\n setupBaseFiles();\n setupSemiApprovedSet();\n }", "title": "" }, { "docid": "3acbd3fb2bd9003f186051a1976ba155", "score": "0.5681585", "text": "private void createNewTemplate () {\n template = new Template (Logger.getShared());\n templateCreated = true;\n outputFileName = \"\";\n if (generateOutputName != null) {\n generateOutputName.setText (outputFileName);\n }\n }", "title": "" }, { "docid": "c86dbfd307f24e04edd8c293979c9ef4", "score": "0.5679637", "text": "@Override\n public void setupStructure() {\n managePostgres(\"CREATE DATABASE \" + DB + \";\");\n connect();\n // read postgres-structure-setup.sql and try to execute it\n String setupSQL = fileToString(\"posgres-structure-setup.sql\");\n executeSingleSQL(setupSQL);\n }", "title": "" }, { "docid": "35fa5034ac1cd63b2aab27a1a037ae0a", "score": "0.56707036", "text": "public void setup () \n\t{\n\t\tstt = new STT(this);\n\t\tstt.enableDebug();\n\t\tstt.setLanguage(\"de\");\n\t\t// stt.enableAutoRecord();\n\t}", "title": "" }, { "docid": "832f6ede23e660df81547cc0cd772ccd", "score": "0.56610787", "text": "private void setTemp(){\n\ttempStr = cmdLine.getTemplateDir();\n\tif(tempStr != null){\n\t try{\t\t\t \n\t\tInputStream is = HTMLConverter.class.getClassLoader().getResourceAsStream(tempStr);\n\t\tconverter.setTemplateFilePath(tempStr);\n\t\t\n\t }\n\t catch(FileNotFoundException e){\n\t\tSystem.out.println(ResourceHandler.getMessage(\"nottemplatefile_dialog.info2\") + \": \" + tempStr);\n\t }\n\t} \n }", "title": "" }, { "docid": "f8b1877f98335b26b89f0e902de79cda", "score": "0.5650847", "text": "public void createPackageContents ()\n {\n if ( isCreated )\n return;\n isCreated = true;\n\n // Create classes and their features\n authorizationLoaderEClass = createEClass ( AUTHORIZATION_LOADER );\n createEAttribute ( authorizationLoaderEClass, AUTHORIZATION_LOADER__FILE );\n createEReference ( authorizationLoaderEClass, AUTHORIZATION_LOADER__SLOT );\n\n securityLoaderEClass = createEClass ( SECURITY_LOADER );\n createEReference ( securityLoaderEClass, SECURITY_LOADER__RULES );\n createEReference ( securityLoaderEClass, SECURITY_LOADER__SLOT );\n }", "title": "" }, { "docid": "71198d7ac50f7bb84542a5659e812be2", "score": "0.56403756", "text": "public void generate() {\n\t\tLogHelper.info(\"generate() started ...\");\n\t\tloader = ClassloaderHelper.getInstance().getClassLoader();\n\t\tcrh = CartridgeHelper.getInstance();\n\t\tph = ProjectInstanceHelper.getInstance();\n\n\t\tWorkspaceModifyOperation op = new WorkspaceModifyOperation() {\n\t\t\tpublic void execute(IProgressMonitor monitor) throws CoreException, InvocationTargetException,\n\t\t\t\t\tInterruptedException {\n\t\t\t\tIJavaProject currproj = ProjectInstanceHelper.getInstance().getCurrentProject();\n\t\t\t\tTemplateProcessor processor = new TemplateProcessor(currproj, monitor);\n\t\t\t\tGenerateQueue.reset();\n\n\t\t\t\tList<Class<?>> sortedModelClasses = sortSelectedClasses(ph.getSelectedClassnames(),\n\t\t\t\t\t\tcrh.getSelectedTemplates());\n\t\t\t\tITemplate sortedTemplates[] = sortTemplates(crh.getSelectedTemplates());\n\n\t\t\t\tif (sortedTemplates.length > 0) {\n\t\t\t\t\tdoBeforeGenerate(sortedTemplates[0]);\n\t\t\t\t\tdoGenerate(processor, sortedModelClasses, sortedTemplates);\n\t\t\t\t\tgenerateAdditionClasses(processor);\n\t\t\t\t\tdoAfterGenerate(sortedTemplates[0]);\n\t\t\t\t}\n\t\t\t\tlogSummary();\n\t\t\t}\n\t\t};\n\n\t\trun(op);\n\t}", "title": "" }, { "docid": "2b4af6eb6bf512c11b364c843045a97f", "score": "0.5634879", "text": "public TemplateManager() { }", "title": "" }, { "docid": "38729303447ab58e15dc33dbc5f79d8c", "score": "0.56213266", "text": "public TemplateContent(/*System.Xaml.*/XamlReader xamlReader, IXamlObjectWriterFactory factory, \r\n IServiceProvider context) \r\n {\r\n TemplateLoadData = new TemplateLoadData(); \r\n ObjectWriterFactory = factory;\r\n SchemaContext = xamlReader.SchemaContext;\r\n ObjectWriterParentSettings = factory.GetParentSettings();\r\n\r\n XamlAccessLevel accessLevel = ObjectWriterParentSettings.AccessLevel;\r\n if (accessLevel != null) \r\n { \r\n XamlLoadPermission loadPermission = new XamlLoadPermission(accessLevel);\r\n loadPermission.Demand(); \r\n LoadPermission = loadPermission;\r\n }\r\n TemplateLoadData.Reader = xamlReader;\r\n\r\n Initialize(context);\r\n }", "title": "" }, { "docid": "2ba612e680ccc193d302eea15f72d43b", "score": "0.5612809", "text": "public void createPackageContents() {\r\n\t\tif (isCreated) return;\r\n\t\tisCreated = true;\r\n\r\n\t\t// Create classes and their features\r\n\t\tblankWidgetEClass = createEClass(BLANK_WIDGET);\r\n\r\n\t\tthemeEClass = createEClass(THEME);\r\n\t\tcreateEReference(themeEClass, THEME__CHILDREN);\r\n\t}", "title": "" }, { "docid": "fa4875c29d58553938fdd921a8b10b0d", "score": "0.55992705", "text": "@Override\n protected void doGenerateSubContents() throws Exception {\n File wrapperDir = new File(this.toFile(), \"wrapper\");\n wrapperDir.mkdirs();\n\n /**\n * 2. Copy gradle wrapper jar\n */\n ClassLoader classLoader = Thread.currentThread().getContextClassLoader();\n try(InputStream jarIn = classLoader.getResourceAsStream(FileNameConstants.TEMPLATE_GRADLE_WRAPPER_JAR);\n OutputStream jarOut = new FileOutputStream(new File(wrapperDir, FileNameConstants.GRADLE_WRAPPER_JAR))\n ){\n IOUtils.copy(jarIn, jarOut);\n }\n\n /**\n * 3. Generate gradle properties file\n */\n Map<String, String> map = new HashMap<>();\n map.put(ReplaceConstants.GRADLE, config.getGradle());\n IOUtil.replaceAllStr(FileNameConstants.TEMPLATE_GRADLE_WRAPPER_PROPERTIES, map, new File(wrapperDir, FileNameConstants.GRADLE_WRAPPER_PROPERTIES));\n }", "title": "" }, { "docid": "8eee6a3539fb05c1c75ae389d95c8c7a", "score": "0.55898917", "text": "public void createPackageContents() {\n if (isCreated) return;\n isCreated = true;\n\n // Create classes and their features\n aEClass = createEClass(A);\n\n aContainerEClass = createEClass(ACONTAINER);\n createEReference(aContainerEClass, ACONTAINER__ELEMENTS);\n }", "title": "" }, { "docid": "611ffaf00aaf9c4c1601d8dc6efe55ba", "score": "0.5576602", "text": "protected void setUp() {\n templateParameterImpl = new TemplateParameterImpl();\n }", "title": "" }, { "docid": "2778e2440d4840964b798bf92fa14ba9", "score": "0.55721533", "text": "public void setup() {\n \t\tif (!fileManager.exists(projectOperations.getPathResolver().getIdentifier(Path.SRC_MAIN_WEBAPP, \"/WEB-INF/web.xml\"))) {\n \t\t\tmvcOperations.installAllWebMvcArtifacts();\n \t\t}\n \n \t\tcopyDirectoryContents();\n \n \t\tupdateGaeHelper(projectOperations.getProjectMetadata().isGaeEnabled());\n \n \t\t// Add GWT natures and builder names to maven eclipse plugin\n \t\tupdateEclipsePlugin();\n \n \t\t// Add outputDirectory to build element of pom\n \t\tupdateBuildOutputDirectory();\n \n \t\tElement configuration = XmlUtils.getConfiguration(getClass());\n \n \t\t// Add POM repositories\n \t\tupdateRepositories(configuration);\n \n \t\t// Add dependencies\n \t\tupdateDependencies(configuration);\n \n \t\t// Update web.xml\n \t\tupdateWebXml();\n \n \t\t// Update persistence.xml\n \t\tupdatePersistenceXml();\n \n \t\t// Do a \"get\" for every .java file, thus ensuring the metadata is fired\n \t\tPathResolver pathResolver = projectOperations.getPathResolver();\n \t\tFileDetails srcRoot = new FileDetails(new File(pathResolver.getRoot(Path.SRC_MAIN_JAVA)), null);\n \t\tString antPath = pathResolver.getRoot(Path.SRC_MAIN_JAVA) + File.separatorChar + \"**\" + File.separatorChar + \"*.java\";\n \t\tfor (FileDetails fd : fileManager.findMatchingAntPath(antPath)) {\n \t\t\tString fullPath = srcRoot.getRelativeSegment(fd.getCanonicalPath());\n \t\t\tfullPath = fullPath.substring(1, fullPath.lastIndexOf(\".java\")).replace(File.separatorChar, '.'); // Ditch the first / and .java\n \t\t\tJavaType javaType = new JavaType(fullPath);\n \t\t\tString id = GwtMetadata.createIdentifier(javaType, Path.SRC_MAIN_JAVA);\n \t\t\tmetadataService.get(id);\n \t\t}\n \t}", "title": "" }, { "docid": "f8dd0f169ac3fcfe5e96721ad1f79cdf", "score": "0.5569178", "text": "private void templateOpen() {\n // setCurrentDirectoryFromFile (templateFile);\n if (! templateCreated) {\n createNewTemplate();\n }\n templateFileReady = true;\n templateFileName = templateFile.getName();\n if (openTemplateName != null) {\n openTemplateName.setText (templateFileName);\n }\n templateFileOK = template.openTemplate (templateFile);\n if (templateFileOK) {\n textMergeScript.recordScriptAction (\n ScriptConstants.TEMPLATE_MODULE,\n ScriptConstants.OPEN_ACTION,\n ScriptConstants.TEXT_MODIFIER,\n ScriptConstants.NO_OBJECT,\n templateFile.getAbsolutePath());\n // setTemplateDirectoryFromFile (templateFile);\n } else {\n Logger.getShared().recordEvent (LogEvent.MEDIUM,\n templateFileName + \" could not be opened as a valid Template File\",\n true);\n }\n\n // Set appropriate value for Generate Button\n if (generateOutputButton != null) {\n if (templateFileOK && fileAvailable() && templateCreated) {\n if (tabSet) {\n generateOutputButton.setDisable (false);\n }\n if (menuSet) {\n templateGenerate.setDisable (false);\n }\n } else {\n if (tabSet) {\n generateOutputButton.setDisable (true);\n }\n if (menuSet) {\n templateGenerate.setDisable (true);\n }\n }\n }\n }", "title": "" }, { "docid": "b3ba8a87949de90f35d17885d05e9f56", "score": "0.556596", "text": "public GenerateSetup() {\n super();\n }", "title": "" }, { "docid": "f4dddc1d9b6d1a4c8b8c569557d4b333", "score": "0.5554821", "text": "private void loadTemplates() {\n\t\ttemplates.clear();\n\n\t\tbuildTemplates(readFileLines());\n\t}", "title": "" }, { "docid": "1eef8b422f596b55fb4a1e9ee3f66777", "score": "0.5538986", "text": "private void initializeTopologyTemplate() {\n TopologyTemplate topologyTemplate = templateTo.getTopology_template();\n if (topologyTemplate == null) {\n topologyTemplate = new TopologyTemplate();\n templateTo.setTopology_template(topologyTemplate);\n }\n if (topologyTemplate.getNode_templates() == null) {\n topologyTemplate.setNode_templates(new HashMap<>());\n }\n }", "title": "" }, { "docid": "245212df302914c549efadf8407a3889", "score": "0.55337256", "text": "private void setUpViews() {\n\t\tsetUpSound();\t\t\n\t\tsetUpBattleData();\n\t\tsetUpCharacterData();\n\t\tsetUpEnemyData();\t\n\t\tsetUpButtons();\n\t}", "title": "" }, { "docid": "ad63d8374f02d63e2ccf49ab577f43c2", "score": "0.55181915", "text": "@Before\n public void setup() {\n this.admin = new Admin();\n this.student = new Student();\n this.instructor = new Instructor();\n this.admin.createClass(\"ECS189E\",2017,\"Prem\",2);\n }", "title": "" }, { "docid": "59e11e390826e4f2951ee0acc42c9c86", "score": "0.5507017", "text": "public void init() {\n staticFiles.location(\"/public\");\n port(Constants.PORT);\n \n get(HOME_URL, new GetSignInRoute(templateEngine));\n get(MAIN_URL, new GetMainRoute(db, templateEngine));\n get(SIGN_UP_URL, new GetSignUpRoute(templateEngine));\n get(GET_SIGN_OUT, new GetSignOutRoute(templateEngine));\n get(GET_EDIT_MISC, new GetEditMiscListRoute(db, templateEngine));\n get(GET_LIST, new GetListRoute(db, templateEngine));\n get(ITEMS, new GetItemsRoute(db, templateEngine));\n get(SHARE_ITEM, new GetShareItemRoute(db, templateEngine));\n get(UNSHARE_ITEM, new GetUnshareItemRoute(db, templateEngine));\n get(NEW_ITEM_1, new GetNewItem1Route(db, templateEngine));\n get(NEW_ITEM_2, new GetNewItem2Route(db, templateEngine));\n get(REMOVE_PQ, new GetRemovePQRoute(db, templateEngine));\n get(CREATE_PQ, new GetCreatePQRoute(db, templateEngine));\n get(UPDATE_INVENTORY, new GetUpdateInventoryRoute(db, templateEngine));\n\n post(POST_SIGN_IN, new PostSignInRoute(db, templateEngine));\n post(POST_SIGN_UP, new PostSignUpRoute(db, templateEngine));\n post(POST_UPDATE_MISC, new PostEditMiscListRoute(db, templateEngine));\n post(POST_LIST, new PostListRoute(db, templateEngine));\n post(SHARE_ITEM, new PostShareItemRoute(db, templateEngine));\n post(UPDATE_INVENTORY, new PostUpdateInventoryRoute(db, templateEngine));\n }", "title": "" }, { "docid": "d3f249d7d75ad021a58a14729d0b5f87", "score": "0.55067945", "text": "public void generateStart() {\r\n\t\ttry {\r\n\t\t\tString wicketAppTemplateLocalContext = \"template\" + SEPARATOR\r\n\t\t\t\t\t+ \"domain\" + SEPARATOR + \"wicket\" + SEPARATOR + \"app\";\r\n\t\t\tString startTemplate = \"Start.vm\";\r\n\t\t\tString startTemplatePath = wicketAppTemplateLocalContext\r\n\t\t\t\t\t+ SEPARATOR + startTemplate;\r\n\r\n\t\t\tString domainPackageCode = domainConfig.getPackageCode();\r\n\t\t\tString domainWicketAppPackageCode = domainPackageCode\r\n\t\t\t\t\t+ \".wicket.app\";\r\n\t\t\tString startJava = \"Start.java\";\r\n\r\n\t\t\tVelocityContext context = new VelocityContext();\r\n\t\t\tcontext.put(\"domainwicketapppackagecode\",\r\n\t\t\t\t\tdomainWicketAppPackageCode);\r\n\r\n\t\t\tTemplate template = Velocity.getTemplate(startTemplatePath);\r\n\t\t\tString domainWicketAppPackageCodeWithSlash = textHandler\r\n\t\t\t\t\t.replaceDotWithSlash(domainWicketAppPackageCode);\r\n\t\t\tString domainWicketAppDirectoryPath = sourceDirectoryPath\r\n\t\t\t\t\t+ SEPARATOR + domainWicketAppPackageCodeWithSlash;\r\n\t\t\tBufferedWriter writer = new BufferedWriter(new FileWriter(\r\n\t\t\t\t\tdomainWicketAppDirectoryPath + SEPARATOR + startJava));\r\n\t\t\ttemplate.merge(context, writer);\r\n\t\t\twriter.flush();\r\n\t\t\twriter.close();\r\n\t\t\tlog.info(startJava + \" start Jetty web server class generated.\");\r\n\t\t} catch (Exception e) {\r\n\t\t\tlog.error(\"Error in DomainWicketGenerator.generateStart: \"\r\n\t\t\t\t\t+ e.getMessage());\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "bb3d9a7c83906bd785a983c887ee4771", "score": "0.54950404", "text": "private void setup() {\n\t\tcreateWorld(); // adds graphics and objects to screen\n\t\tsetTitle(\"Sleigh Run\"); // sets title of game\n\t}", "title": "" }, { "docid": "b115c816944ed29a461e26d4bd340e37", "score": "0.5489309", "text": "public static void main(String[] args) throws TemplateException,\n\t\t\tIOException {\n\t\tString testPath = \"D:/workspace/upapp/WebRoot/template/contentModel/contetnModelTemplate/\";\n\t\tTemplateBuilder tbu = TemplateBuilderUtil.newInstance(testPath);\n\n\t\tMap<String, Object> models = new HashMap<String, Object>();\n\t\tmodels.put(\"name\", \"嗬嗬嗬嗬 ~\");\n\t\tString templatePage = \"edit.ftl\";\n\t\tString savePage = testPath + \"builder.html\";\n\n\t\ttbu.buildFileByTemplate(models, templatePage, savePage);\n\t\t// String str = tbu.buildByTemplate(models, templatePage);\n\t\t// System.out.println(str);\n\n\t\t// System.out.println(content);\n\t\t// tbu.buildFileByContent(models, \"sdfdfkl${(name)!}\", savePage);\n\t\tString str = tbu.buildByContent(models, \"sdfdfkl${(name)!}\");\n\t\tSystem.out.println(str);\n\t}", "title": "" }, { "docid": "ee0c59da0e0ecf81db5ced2da6f803ab", "score": "0.547535", "text": "protected void createPages() {\n\t\tcreatePage0();\n\t\tcreatePage1();\n//\t\tshowConsole();\n\t}", "title": "" }, { "docid": "49922147b0d8753417e623d138985b24", "score": "0.54547745", "text": "public TemplateManager() {\n this.idMapper = new HashMap<>();\n this.templateFactory = new TemplateFactory();\n }", "title": "" }, { "docid": "af9a8fd9949f4f5db6b24d10d39d5a88", "score": "0.54544866", "text": "private void prepare()\n {\n storyBtn storybtn = new storyBtn();\n addObject(storybtn,412,286);\n storybtn.setLocation(406,277);\n StartBtn startbtn = new StartBtn();\n addObject(startbtn,414,259);\n startbtn.setLocation(407,250);\n startbtn.setLocation(405,250);\n abouteBtn aboutebtn = new abouteBtn();\n addObject(aboutebtn,673,323);\n aboutebtn.setLocation(406,305);\n exitBtn exitbtn = new exitBtn();\n addObject(exitbtn,413,340);\n exitbtn.setLocation(403,332);\n }", "title": "" }, { "docid": "954a6631f7f378de999342f420fc9483", "score": "0.54537743", "text": "private void setUpLayout() {\n\n setUpButtons(); // Sets up the Button objects for the fragment.\n setUpText(); // Sets up the TextView objects for the fragment.\n }", "title": "" }, { "docid": "cc1a5251ea1dc00d6d618fad223ac2c9", "score": "0.5446132", "text": "public static void model() throws TemplateException, IOException{\n\t Configuration cfg = new Configuration(Configuration.VERSION_2_3_22);\n\t cfg.setDirectoryForTemplateLoading(new File(\"src/main/config/templates\"));\n\t cfg.setDefaultEncoding(\"UTF-8\");\n\t cfg.setTemplateExceptionHandler(TemplateExceptionHandler.RETHROW_HANDLER);\n\n\t /* ------------------------------------------------------------------------ */ \n\t /* You usually do these for MULTIPLE TIMES in the application life-cycle: */ \n\n\t /* Create a data-model */\n\t Map root = new HashMap();\n\t List list = new ArrayList();\n\t List list1=new ArrayList();\n\t List list2=new ArrayList();\n\t \n\t /* list1.add(\"1\");\n\t list1.add(\"2\");\n\t list1.add(\"3\");\n\t list1.add(\"4\");\n\t list2.add(\"5\");\n\t list2.add(\"6\");\n\t list2.add(\"7\");\n\t list2.add(\"8\");\n\t list.add(list1);\n list.add(list2);*/\n\t \n\t Map map1= new LinkedHashMap();\n\t map1.put(\"A\", \"234\");\n\t map1.put(\"B\", \"345\");\n\t Map map2= new LinkedHashMap();\n\t map2.put(\"C\", \"456\");\n\t map2.put(\"D\", \"567\");\n\t list.add(map1);\n\t list.add(map2);\n\t \n \n\t root.put(\"list\",list);\n\t //root.put(\"clientSourceData\", map1);\n\t //root.put(\"totalNum\", map1.size());\n\t /* root.put(\n\t \"doc\",\n\t freemarker.ext.dom.NodeModel.parse(new File(\"the/path/of/the.xml\")));*/\n\n\t /* Get the template (uses cache internally) */\n\t Template temp = cfg.getTemplate(\"user2.ftl\");\n\n\t /* Merge data-model with template */\n\t // Writer out = new OutputStreamWriter(System.out);\n\t Writer out = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(\"d:\\\\user.xml\"), \"UTF-8\")); \n\t temp.process(root, out);\n\t // Note: Depending on what `out` is, you may need to call `out.close()`.\n\t // This is usually the case for file output, but not for servlet output.\n\t\t \n\t }", "title": "" }, { "docid": "8e817acaf0a8415d2a35ed0d78775b39", "score": "0.544405", "text": "public ViewSetup() {\n \tmyMeetingsSchduler = new CalendarSchduler();\n \t\n \t \ts = new MeetingCalendar();//TODO need to incorporate Calendar to handle dates instead.\n \t\n \t \tsetupFrame();\n \t\tsetupSouthButtons();\n \t\tsetupNorthTextField();\n \t\tsetupCenterCalendarPanel();\n \t\t\n \t\t\n \t\t\n \t\t\n \t\t//find a better solution for holiday,\n \t\t//also allow vacations to be added.\n \t\ttry {\n \t\t\texample();//TODO remove only used for example purposes.\n \t\t} catch(final ParseException theException) {\n \t\t\t//Only doing this to show how the functionality will work.\n \t\tSystem.out.println(\"invalid holiday/VacationAdd.\");\n \t\t\n \t}\n\n }", "title": "" }, { "docid": "dc2fe23d62efd9f03f94b50d17584c63", "score": "0.5442288", "text": "public void generateWebXml() {\r\n\t\ttry {\r\n\t\t\tString webTemplateLocalContext = \"template\" + SEPARATOR + \"web\";\r\n\t\t\tString webXmlTemplate = \"WebXml.vm\";\r\n\t\t\tString webXmlTemplatePath = webTemplateLocalContext + SEPARATOR\r\n\t\t\t\t\t+ webXmlTemplate;\r\n\r\n\t\t\tString domainPackageCode = domainConfig.getPackageCode();\r\n\t\t\tString wicketAppPackageCode = domainPackageCode + \".wicket.app\";\r\n\t\t\tString webXml = \"web.xml\";\r\n\t\t\tString domainCode = domainConfig.getCode();\r\n\t\t\tString domainAppCode = domainCode + \"App\";\r\n\r\n\t\t\tVelocityContext context = new VelocityContext();\r\n\t\t\tcontext.put(\"wicketapppackagecode\", wicketAppPackageCode);\r\n\t\t\tcontext.put(\"author\", authors);\r\n\t\t\tcontext.put(\"today\", today);\r\n\t\t\tcontext.put(\"domainAppCode\", domainAppCode);\r\n\r\n\t\t\tTemplate template = Velocity.getTemplate(webXmlTemplatePath);\r\n\t\t\tBufferedWriter writer = new BufferedWriter(new FileWriter(\r\n\t\t\t\t\twebDirectoryPath + SEPARATOR + webXml));\r\n\t\t\ttemplate.merge(context, writer);\r\n\t\t\twriter.flush();\r\n\t\t\twriter.close();\r\n\t\t\tlog.info(webXml + \" web XML configuration generated.\");\r\n\t\t} catch (Exception e) {\r\n\t\t\tlog.error(\"Error in DomainWicketGenerator.generateWebXml: \"\r\n\t\t\t\t\t+ e.getMessage());\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "877b2bb5a36960bcce29a5a623044bbb", "score": "0.5440704", "text": "private void setTemplateLibrary () {\n DirectoryChooser dirChooser = new DirectoryChooser();\n dirChooser.setTitle(\"Set the location of the Template Library\");\n File selectedFile\n = dirChooser.showDialog (ownerWindow);\n if (selectedFile != null) {\n templateLibraryFileSpec = selectedFile;\n templateLibraryName.setText\n (templateLibraryFileSpec.getName());\n Tooltip setTemplateLibraryButtonTip = new Tooltip\n (templateLibraryFileSpec.toString());\n Tooltip.install(setTemplateLibraryButton, setTemplateLibraryButtonTip);\n saveTemplateDirectory();\n if (list != null) {\n FileSpec source = list.getSource();\n if (source != null) {\n source.setTemplatesFolder(templateLibraryFileSpec);\n }\n }\n }\n }", "title": "" }, { "docid": "98a572fc7c1bf403cc2ba11cd7949ed2", "score": "0.5437789", "text": "public static void setup() {\n }", "title": "" }, { "docid": "2fa52cd72c67af54c7d342be83e57db1", "score": "0.5437398", "text": "protected Template() {\n this.freemarkerTemplate = null;\n }", "title": "" }, { "docid": "91cab18b56c8ac39b8b87daaffade8be", "score": "0.5436624", "text": "@SuppressWarnings(\"unchecked\")\n protected void generateFile(\n @NotNull final String templateName,\n @NotNull final String repository,\n @NotNull final String engine,\n @NotNull final List<String> tables,\n @NotNull final Map<String, File> outputFiles)\n {\n final BasePerRepositoryTemplateGenerator generator =\n retrieveTemplateGenerator(templateName);\n \n Assert.assertNotNull(\"No template generator found for \" + templateName, generator);\n \n final BasePerRepositoryTemplateFactory templateFactory = retrieveTemplateFactory(templateName);\n \n Assert.assertNotNull(\"No template factory found for \" + templateName, templateFactory);\n \n final BasePerRepositoryTemplate template =\n templateFactory.createTemplate(\n retrieveMetadataManager(engine, tables, wrapTables(tables)),\n retrieveCustomSqlProvider(),\n retrieveDecoratorFactory(generator),\n DAO_PACKAGE_NAME,\n PACKAGE_NAME,\n repository,\n \"\", // header\n false, // marker\n false, // jmx\n tables,\n \"java:comp/env/db\",\n false, // disable generation timestamps\n false, // disable NotNull annotations\n true); // disable checkThread.org annotations\n \n Assert.assertNotNull(\"No template found for \" + templateName, template);\n \n File outputDir = null;\n \n try\n {\n rootFolder.create();\n outputDir = rootFolder.newFolder(\"dao\");\n }\n catch (@NotNull final IOException ioException)\n {\n Assert.fail(ioException.getMessage());\n }\n \n // Assert.assertTrue(\"Cannot create folder: \" + outputDir.getAbsolutePath(), outputDir.mkdirs());\n \n UniqueLogFactory.initializeInstance(LogFactory.getLog(PerTableTemplatesTest.class));\n \n try\n {\n generator.write(\n template,\n outputDir,\n rootFolder.getRoot(),\n Charset.defaultCharset());\n }\n catch (@NotNull final IOException ioException)\n {\n Assert.fail(ioException.getMessage());\n }\n catch (@NotNull final QueryJBuildException queryjBuildException)\n {\n Assert.fail(queryjBuildException.getMessage());\n }\n \n outputFiles.put(\n repository,\n new File(outputDir, generator.retrieveTemplateFileName(template.getTemplateContext())));\n }", "title": "" }, { "docid": "8b2eeb0d0e68d2676cbaa1b1e8fc4a64", "score": "0.5435041", "text": "public void createPackageContents() {\n\t\tif (isCreated) return;\n\t\tisCreated = true;\n\n\t\t// Create classes and their features\n\t\twikiEClass = createEClass(WIKI);\n\t\tcreateEReference(wikiEClass, WIKI__CONTENT);\n\t\tcreateEReference(wikiEClass, WIKI__PRIVILEGS);\n\t\tcreateEReference(wikiEClass, WIKI__GROUPS);\n\t\tcreateEReference(wikiEClass, WIKI__USERS);\n\t\tcreateEReference(wikiEClass, WIKI__MODE);\n\t\tcreateEReference(wikiEClass, WIKI__ROLE);\n\t\tcreateEReference(wikiEClass, WIKI__HISTORY);\n\t\tcreateEReference(wikiEClass, WIKI__VERSIONS);\n\n\t\tcontentEClass = createEClass(CONTENT);\n\t\tcreateEReference(contentEClass, CONTENT__HISTORY);\n\t\tcreateEReference(contentEClass, CONTENT__DISCUSSIONPAGE);\n\t\tcreateEReference(contentEClass, CONTENT__GROUP);\n\t\tcreateEReference(contentEClass, CONTENT__EDITOR);\n\t\tcreateEAttribute(contentEClass, CONTENT__TTILE);\n\t\tcreateEAttribute(contentEClass, CONTENT__CONTENT_MARKUP);\n\n\t\tarticleEClass = createEClass(ARTICLE);\n\n\t\tmediaEClass = createEClass(MEDIA);\n\n\t\tprojectPageEClass = createEClass(PROJECT_PAGE);\n\n\t\tdiscussionPageEClass = createEClass(DISCUSSION_PAGE);\n\n\t\tversionEClass = createEClass(VERSION);\n\t\tcreateEReference(versionEClass, VERSION__PREVIOUS);\n\t\tcreateEAttribute(versionEClass, VERSION__TIMESTAMP);\n\t\tcreateEReference(versionEClass, VERSION__EDITED_BY);\n\t\tcreateEAttribute(versionEClass, VERSION__DIFF);\n\t\tcreateEAttribute(versionEClass, VERSION__COMMIT_MSG);\n\n\t\thistoryEClass = createEClass(HISTORY);\n\t\tcreateEReference(historyEClass, HISTORY__VERSIONS);\n\n\t\tuserEClass = createEClass(USER);\n\t\tcreateEReference(userEClass, USER__ROLE);\n\t\tcreateEReference(userEClass, USER__MODE);\n\t\tcreateEAttribute(userEClass, USER__REGISTRATION_TIMESTAMP);\n\n\t\tgroupEClass = createEClass(GROUP);\n\t\tcreateEAttribute(groupEClass, GROUP__NAMESPACE);\n\n\t\tmodeEClass = createEClass(MODE);\n\t\tcreateEReference(modeEClass, MODE__AVAILABLE_ACTIONS);\n\t\tcreateEReference(modeEClass, MODE__PARENT);\n\t\tcreateEAttribute(modeEClass, MODE__NAME);\n\n\t\tactionEClass = createEClass(ACTION);\n\t\tcreateEAttribute(actionEClass, ACTION__NAME);\n\t\tcreateEOperation(actionEClass, ACTION___EXECUTE__CONTENT);\n\n\t\tprivilegEClass = createEClass(PRIVILEG);\n\t\tcreateEReference(privilegEClass, PRIVILEG__PARENT);\n\t\tcreateEReference(privilegEClass, PRIVILEG__ACTION);\n\t\tcreateEAttribute(privilegEClass, PRIVILEG__NAME);\n\n\t\tregisteredUserEClass = createEClass(REGISTERED_USER);\n\t\tcreateEReference(registeredUserEClass, REGISTERED_USER__PROFILE);\n\t\tcreateEReference(registeredUserEClass, REGISTERED_USER__SUBSCRIPTIONS);\n\t\tcreateEAttribute(registeredUserEClass, REGISTERED_USER__USERNAME);\n\n\t\tunregisteredUserEClass = createEClass(UNREGISTERED_USER);\n\t\tcreateEAttribute(unregisteredUserEClass, UNREGISTERED_USER__IP_ADDRESS);\n\n\t\tprofileEClass = createEClass(PROFILE);\n\n\t\tsubscribableEClass = createEClass(SUBSCRIBABLE);\n\n\t\troleEClass = createEClass(ROLE);\n\t\tcreateEReference(roleEClass, ROLE__PRIVILEG);\n\t\tcreateEAttribute(roleEClass, ROLE__TYPE);\n\n\t\t// Create enums\n\t\troleTypeEEnum = createEEnum(ROLE_TYPE);\n\t}", "title": "" }, { "docid": "30bec6f8620854118ac9f0540ab3b934", "score": "0.54339445", "text": "public void createPackageContents() {\n\t\tif (isCreated)\n\t\t\treturn;\n\t\tisCreated = true;\n\n\t\t// Create classes and their features\n\t\tmyClassEClass = createEClass(MY_CLASS);\n\t\tcreateEReference(myClassEClass, MY_CLASS__REF1);\n\t}", "title": "" }, { "docid": "ad3042feca394887c5bb07a271b8b140", "score": "0.5433325", "text": "public void createReport() throws Exception\n {\n //Load template from source folder\n Configuration cfg = new Configuration();\n Template template = cfg.getTemplate(\"/src/main/java/templates/helloworld.ftl\");\n\n // Build the data-model\n Map<String, Object> data = new HashMap<String, Object>();\n data.put(\"title\", this.getCatalog().getName());\n\n List<String> items_name = new ArrayList<String>();\n Vector<Item> items = getCatalog().getItems();\n\n\n for(int index=0;index < this.getCatalog().getItems().size();index++)\n {\n items_name.add(items.get(index).getName());\n }\n\n data.put(\"items\",items_name);\n // Console output\n Writer out = new OutputStreamWriter(System.out);\n template.process(data, out);\n out.flush();\n\n // File output\n Writer file = new FileWriter (new File(\"reportCatalog.html\"));\n template.process(data, file);\n file.flush();\n file.close();\n }", "title": "" }, { "docid": "ee9659d7f65ad3b6e73fba89976c1d04", "score": "0.54329324", "text": "private void emitOutputFromTemplates (\n final List<Map<String, String>> groupMaps,\n final List<Map<String, String>> featureMaps)\n {\n try {\n /* ------------------------------------------------------------------- */\n /* You should do this ONLY ONCE in the whole application life-cycle: */\n final Configuration cfg = new Configuration(Configuration.VERSION_2_3_23);\n cfg.setObjectWrapper(new DefaultObjectWrapper(Configuration.VERSION_2_3_23));\n\n // We need to set up a scheme to load our settings from wherever they may live.\n // This means we need to set up a multi-loader including the classpath and any specified options:\n\n TemplateLoader templateLoader;\n\n // Only add the settings directory if we're supposed to:\n if ( useDefaultTemplates ) {\n templateLoader = new ClassTemplateLoader(getClass(), DEFAULT_SETTINGS_CLASSPATH);\n }\n else {\n templateLoader = new FileTemplateLoader(new File(settingsDir.getPath()));\n }\n\n // Tell freemarker to load our templates as we specified above:\n cfg.setTemplateLoader(templateLoader);\n\n // Generate one template file for each work unit\n workUnits.stream().forEach(workUnit -> processWorkUnitTemplate(cfg, workUnit, groupMaps, featureMaps));\n processIndexTemplate(cfg, new ArrayList<>(workUnits), groupMaps);\n\n } catch (FileNotFoundException e) {\n throw new RuntimeException(\"FileNotFoundException processing javadoc template\", e);\n } catch (IOException e) {\n throw new RuntimeException(\"IOException processing javadoc template\", e);\n }\n }", "title": "" }, { "docid": "e12175155ec9130c6434ac97ed1b90a0", "score": "0.54310024", "text": "@Override\n protected void initialSetup() {\n }", "title": "" }, { "docid": "90070fed3ffd20600cc10f47036eacce", "score": "0.54158133", "text": "public void createPackageContents() {\n\t\tif (isCreated) return;\n\t\tisCreated = true;\n\n\t\t// Create classes and their features\n\t\ttestDiagramDescriptionEClass = createEClass(TEST_DIAGRAM_DESCRIPTION);\n\n\t\ttestTableEditionEClass = createEClass(TEST_TABLE_EDITION);\n\n\t\ttestViewpointEClass = createEClass(TEST_VIEWPOINT);\n\t}", "title": "" }, { "docid": "14a7778109fd0047ed0117ad1b214c48", "score": "0.541396", "text": "@Test\n public void templateTest() {\n // TODO: test template\n }", "title": "" }, { "docid": "6ef59d1e3571615307e360a9dcba631e", "score": "0.5410071", "text": "@Override\r\n\tpublic void setUp(){\n\t\tConnectDao dao = ConnectDao.getInstance();\r\n\t\tparam = new PageParameters();\r\n\t\t\r\n\t\tparam.put(\"database\", \"database\");\r\n\t\tparam.put(\"user\", \"ikemotot\");\r\n\t\t\r\n\t\tdao.insert(\"insert into system.users values ('ikemotot', 'password')\");\r\n\t\tdao.insert(\"insert into system.databases values ('00001', 'database', 'ikemotot', '09-01-01', '09-01-01')\");\r\n\t\tdao.insert(\"alter table emp0 add constraint fk_emp0 foreign key (deptno) references dept0(deptno)\");\r\n\t\tdao.insert(\"insert into system.tables values ('0000001', 'emp0', '00001')\");\r\n\t\tdao.insert(\"insert into system.tables values ('0000002', 'dept0', '00001')\");\r\n\t\t\r\n\t\tdao.insert(\"commit\");\r\n\r\n\t\ttester = new WicketTester(new MockWicketApplication(ConnectDao.getInstance()));\r\n\r\n\t\ttdp = new TableDesignerPage(param);\r\n\t}", "title": "" }, { "docid": "e17897cced4e7b9d8439fdfebe993d75", "score": "0.5409633", "text": "void configure(ClassLoader templateClassLoader, TemplateConfiguration configuration);", "title": "" }, { "docid": "4949fc47fca931b3e847859f7e31a593", "score": "0.54035306", "text": "public Test25__templates_create_450_445_405_templates(String browser) {\n\t \n\t System.out.println(\"Browser - \" + browser);\n\t this.usedBrowser = browser;\n }", "title": "" }, { "docid": "d5e8bc5fd8d774ee272f0e2b0d6e4ed6", "score": "0.5393423", "text": "protected void setup() {\r\n\t\t // Papel de agente\r\n\t\t \r\n\t }", "title": "" }, { "docid": "6e603b18afd9196f5a24ab85a668b7e7", "score": "0.53870744", "text": "public void createPackageContents() {\r\n\t\tif (isCreated) return;\r\n\t\tisCreated = true;\r\n\r\n\t\t// Create classes and their features\r\n\t\tlayoutDataEClass = createEClass(LAYOUT_DATA);\r\n\r\n\t\tlayoutEClass = createEClass(LAYOUT);\r\n\r\n\t\trectangleLayoutEClass = createEClass(RECTANGLE_LAYOUT);\r\n\t\tcreateEReference(rectangleLayoutEClass, RECTANGLE_LAYOUT__DEFAULT_LAYOUT_DATA);\r\n\r\n\t\trectangleLayoutDataEClass = createEClass(RECTANGLE_LAYOUT_DATA);\r\n\r\n\t\tpositionEClass = createEClass(POSITION);\r\n\t\tcreateEAttribute(positionEClass, POSITION__X);\r\n\t\tcreateEAttribute(positionEClass, POSITION__Y);\r\n\r\n\t\tdimensionEClass = createEClass(DIMENSION);\r\n\t\tcreateEAttribute(dimensionEClass, DIMENSION__WIDTH);\r\n\t\tcreateEAttribute(dimensionEClass, DIMENSION__HEIGHT);\r\n\r\n\t\trectangleEClass = createEClass(RECTANGLE);\r\n\t}", "title": "" }, { "docid": "ea17edb3d34e7b9cae32ec60a4bf7028", "score": "0.5378972", "text": "private void buildUI() {\n\n fxUtils = FXUtils.getShared();\n int rowCount = 0;\n\n\t\ttemplateTab = new Tab(\"Template\");\n\n\t\ttemplatePane = new GridPane();\n\t\tfxUtils.applyStyle(templatePane);\n\n\t\tsetWebRootButton = new Button(\"Set Web Root\");\n\t\tTooltip setWebRootButtonTip = new Tooltip(\"Not yet set\");\n Tooltip.install(setWebRootButton, setWebRootButtonTip);\n setWebRootButton.setOnAction(new EventHandler<ActionEvent>() {\n @Override\n public void handle(ActionEvent evt) {\n setWebRoot();\n\t\t } // end handle method\n\t\t}); // end event handler\n\t\ttemplatePane.add(setWebRootButton, 0, rowCount, 1, 1);\n\t\tsetWebRootButton.setMaxWidth(Double.MAX_VALUE);\n\t\tGridPane.setHgrow(setWebRootButton, Priority.SOMETIMES);\n\n\t\topenTemplateButton = new Button(\"Open Template\");\n\t\tTooltip openTemplateButtonTip = new Tooltip(\"Specify the Template File to be used for the Merge\");\n Tooltip.install(openTemplateButton, openTemplateButtonTip);\n openTemplateButton.setOnAction(new EventHandler<ActionEvent>() {\n @Override\n public void handle(ActionEvent evt) {\n openTemplateFile();\n\t\t } // end handle method\n\t\t}); // end event handler\n\t\ttemplatePane.add(openTemplateButton, 1, rowCount, 1, 1);\n\t\topenTemplateButton.setMaxWidth(Double.MAX_VALUE);\n\t\tGridPane.setHgrow(openTemplateButton, Priority.SOMETIMES);\n\n\t\tgenerateOutputButton = new Button(\"Generate Output\");\n\t\tTooltip generateOutputButtonTip = new Tooltip\n (\"Merge the data file with the template and generate the output file(s) specified by the Template\");\n Tooltip.install(generateOutputButton, generateOutputButtonTip);\n generateOutputButton.setOnAction(new EventHandler<ActionEvent>() {\n @Override\n public void handle(ActionEvent evt) {\n generateTemplate();\n\t\t } // end handle method\n\t\t}); // end event handler\n\t\ttemplatePane.add(generateOutputButton, 2, rowCount, 1, 1);\n\t\tgenerateOutputButton.setMaxWidth(Double.MAX_VALUE);\n\t\tGridPane.setHgrow(generateOutputButton, Priority.SOMETIMES);\n\n\t\trowCount++;\n\n\t\tsetTemplateLibraryButton = new Button(\"Set Template Library\");\n setTemplateLibraryButton.setOnAction(new EventHandler<ActionEvent>() {\n @Override\n public void handle(ActionEvent evt) {\n setTemplateLibrary();\n\t\t } // end handle method\n\t\t}); // end event handler\n\t\ttemplatePane.add(setTemplateLibraryButton, 0, rowCount, 1, 1);\n\t\tsetTemplateLibraryButton.setMaxWidth(Double.MAX_VALUE);\n\t\tGridPane.setHgrow(setTemplateLibraryButton, Priority.SOMETIMES);\n\n\t\topenTemplateFromLibraryButton = new Button(\"Open from Library\");\n\t\tTooltip openTemplateFromLibraryButtonTip = new Tooltip(\"Specify the Template File to be used for the Merge\");\n Tooltip.install(openTemplateFromLibraryButton, openTemplateFromLibraryButtonTip);\n openTemplateFromLibraryButton.setOnAction(new EventHandler<ActionEvent>() {\n @Override\n public void handle(ActionEvent evt) {\n openTemplateFromLibrary();\n\t\t } // end handle method\n\t\t}); // end event handler\n\t\ttemplatePane.add(openTemplateFromLibraryButton, 1, rowCount, 1, 1);\n\t\topenTemplateFromLibraryButton.setMaxWidth(Double.MAX_VALUE);\n\t\tGridPane.setHgrow(openTemplateFromLibraryButton, Priority.SOMETIMES);\n\n\t\trowCount++;\n\n\t\tsetTemplateLibraryLabel = new Label(\"Template Library\");\n\t\tfxUtils.applyHeadingStyle(setTemplateLibraryLabel);\n\t\ttemplatePane.add(setTemplateLibraryLabel, 0, rowCount, 1, 1);\n\t\tsetTemplateLibraryLabel.setMaxWidth(Double.MAX_VALUE);\n\t\tGridPane.setHgrow(setTemplateLibraryLabel, Priority.SOMETIMES);\n\n\t\topenTemplateLabel = new Label(\"Input Template File\");\n\t\tfxUtils.applyHeadingStyle(openTemplateLabel);\n\t\ttemplatePane.add(openTemplateLabel, 1, rowCount, 1, 1);\n\t\topenTemplateLabel.setMaxWidth(Double.MAX_VALUE);\n\t\tGridPane.setHgrow(openTemplateLabel, Priority.SOMETIMES);\n\n\t\tgenerateOutputLabel = new Label(\"Merged Output File(s)\");\n\t\tfxUtils.applyHeadingStyle(generateOutputLabel);\n\t\ttemplatePane.add(generateOutputLabel, 2, rowCount, 1, 1);\n\t\tgenerateOutputLabel.setMaxWidth(Double.MAX_VALUE);\n\t\tGridPane.setHgrow(generateOutputLabel, Priority.SOMETIMES);\n\n\t\trowCount++;\n\n\t\ttemplateLibraryName = new Label();\n\t\ttemplatePane.add(templateLibraryName, 0, rowCount, 1, 1);\n\t\ttemplateLibraryName.setMaxWidth(Double.MAX_VALUE);\n\t\tGridPane.setHgrow(templateLibraryName, Priority.SOMETIMES);\n\n\t\topenTemplateName = new Label();\n\t\ttemplatePane.add(openTemplateName, 1, rowCount, 1, 1);\n\t\topenTemplateName.setMaxWidth(Double.MAX_VALUE);\n\t\tGridPane.setHgrow(openTemplateName, Priority.SOMETIMES);\n\n\t\tgenerateOutputName = new Label();\n\t\ttemplatePane.add(generateOutputName, 2, rowCount, 1, 1);\n\t\tgenerateOutputName.setMaxWidth(Double.MAX_VALUE);\n\t\tGridPane.setHgrow(generateOutputName, Priority.SOMETIMES);\n\n\t\trowCount++;\n\n\t\ttemplateText = new StringBuilder();\n\t\ttemplateTextArea = new TextArea();\n\t\ttemplatePane.add(templateTextArea, 0, rowCount, 3, 1);\n\t\ttemplateTextArea.setMaxWidth(Double.MAX_VALUE);\n\t\tGridPane.setHgrow(templateTextArea, Priority.ALWAYS);\n\t\ttemplateTextArea.setMaxHeight(Double.MAX_VALUE);\n\t\ttemplateTextArea.setPrefRowCount(100);\n\t\tGridPane.setVgrow(templateTextArea, Priority.ALWAYS);\n\t\ttemplateTextArea.setPrefRowCount(100);\n\t\ttemplateTextArea.setWrapText(true);\n\n\t\trowCount++;\n\n\t\ttemplateTab.setContent(templatePane);\n\t\ttemplateTab.setClosable(false);\n }", "title": "" }, { "docid": "a3a1c1ced780ac2611ba9e6cac880542", "score": "0.53690934", "text": "public RuptureCatalogFile () {\n\n\t\t// Make the initial sections\n\n\t\tmake_initial_sections();\n\n\t\t// Establish a default section format\n\n\t\tset_section_format (RuptureCatalogSection.get_common_format());\n\t}", "title": "" }, { "docid": "3577ef140549b2f1d06edcaab77987da", "score": "0.536764", "text": "public void setUp() {\n\t\t// setup Form\n\t\ttitle.set(\"\");\n\t\tdesc.set(\"\");\n\t\tdate.set(LocalDate.now()); // Localdate\n\t\tstate.set(Status.Todo); // Status\n\n\t\t// activate buttons\n\t\tbuttonsEnable();\n\t}", "title": "" }, { "docid": "c618297820a339116e0635c3fe97296c", "score": "0.5366687", "text": "public TemplateManager(CyServiceRegistrar registrar) {\r\n\t\ttemplates = new HashMap<>();\r\n\t\tactiveTemplates = new HashMap<>();\r\n\t\tthis.registrar = registrar;\r\n\t\tannotationManager = registrar.getService(AnnotationManager.class);\t\r\n\t\tnetworkFactory = registrar.getService(CyNetworkFactory.class);\t\r\n\t\tnetworkViewFactory = registrar.getService(CyNetworkViewFactory.class);\t\r\n\t\trenderingEngineFactory = registrar.getService(RenderingEngineFactory.class);\r\n\t}", "title": "" }, { "docid": "55759150c97bd537c0aa84fa4802f034", "score": "0.53581566", "text": "public HelpTemplateCreationPanel() {\n initComponents();\n }", "title": "" }, { "docid": "feddb5584677f0b5b204073cd1436504", "score": "0.5355337", "text": "public void makeFile() throws IOException, TemplateException {\n\t\tFile newHTML = new File(\"/Users/panda/SemanticoRadiators/Alex/SubversionRadiator/svnRad.html\");\n\t\tFileWriter writer = new FileWriter(newHTML);\n\t\tpage.process(root,writer);\n\t\twriter.flush();\n\t}", "title": "" }, { "docid": "5ed5e379d58654143c41b72d00627286", "score": "0.53479993", "text": "public CustomLayout(String template) {\n this();\n setTemplateName(template);\n }", "title": "" }, { "docid": "5a3bc4e016a40261f45271e1f884ba30", "score": "0.53389835", "text": "public void createFiles() throws CoreException, UnsupportedEncodingException {\n\n //prepare variables\n this.extensionAntPropertiesReplacements.put(DEPENDENCIES_VARIABLE_NAME, createAdditionalClassesFolderReferencesForSonar());\n this.extensionAntPropertiesReplacements.put(\"[additionaldependencies]\", createAdditionalDependencyProperties());\n this.extensionAntPropertiesReplacements.put(\"[conditionelements]\", createConditionElements());\n this.extensionAntPropertiesReplacements.put(\"[pathelements]\", createPathElements());\n\n String templateRootUrlPreferenceValue = Activator.getPreferences().getString(TEMPLATE_ROOT_URL);\n\t\tString templateListSourceUrl = templateRootUrlPreferenceValue + \"/templatelist.txt\";\n\t\tSystem.out.println(\"Loading template list from '\" + templateListSourceUrl + \"'\");\n\t\tIterable<String> templates = new TemplateFetcher(templateListSourceUrl).getTemplates();\n for (String template : templates) {\n new TemplateManager(template, extensionAntPropertiesReplacements).writeContent(project);\n }\n\n // if no additional dependencies delete additional classpath definition file\n if (this.extensionAntPropertiesReplacements.get(\"[additionaldependencies]\").isEmpty()) {\n this.project.getFile(COMPILE_CLASSPATH_XML).delete(true, new NullProgressMonitor());\n }\n }", "title": "" }, { "docid": "82e6441abf0bef39758fba6fc57a2f82", "score": "0.53304243", "text": "public void doBuildTemplate(RunData data, Context context)\n\t{\n\t\ttry\n\t\t{\n ParameterParser pp=data.getParameters();\n\n\t\t\t/**\n * Get courseid,username and coursename for the user currently logged in\n * Put it in the context for Using in templates\n * @see UserUtil in Util.\n */\n \tUser user=data.getUser();\n\t\t\tString username=user.getName();\n\t\t\tcontext.put(\"username\",username);\n\t\t\tcontext.put(\"coursename\",(String)user.getTemp(\"course_name\"));\n\t\t\tString courseid=(String)user.getTemp(\"course_id\");\n\t\t\tcontext.put(\"courseid\",courseid);\n\t\t\tcontext.put(\"tdcolor\",pp.getString(\"count\",\"\"));\n\n\t\t\tVector glist=new Vector();\n\t\t\tString stuno=\"\",uname=\"\",Mode=\"\";\n\t\t\tint len=0;\n\n\t\t\t//Get the path where the GroupList and groupname xml are there.\n\t\t String groupPath=data.getServletContext().getRealPath(\"/Courses\"+\"/\"+courseid+\"/GroupManagement\");\n\t\t\tFile f=new File(groupPath+\"/GroupList__des.xml\");\n\n\t\t\t/**\n *Reading the GroupList xml for getting the details\n *groups (grouplist,groupname,username) and Mode\n *Put in the contexts for use in template\n *see @ TopicMetaDataXmlReader in Utils.\n */\n\t\t\tTopicMetaDataXmlReader topicmetadata=null;\n\t\t\tif(f.exists())\n\t\t\t{\n\t\t\t\ttopicmetadata=new TopicMetaDataXmlReader(groupPath+\"/GroupList__des.xml\");\n\t\t\t\tVector grplist=topicmetadata.getGroupDetails();\n\t\t\t\tif(grplist!=null)\n\t\t\t\t{\n\t\t\t\t\tfor(int i=0;i<grplist.size();i++)\n\t\t\t\t\t{\n\t\t\t\t\t\tString grpname=((FileEntry) grplist.elementAt(i)).getName();\n\t\t\t\t\t\tString type =((FileEntry) grplist.elementAt(i)).gettype();\n \t\tstuno=((FileEntry) grplist.elementAt(i)).getstudentno();\n\t\t\t\t\t\t//XML According to groupname like Scorm.xml\n\t\t\t\t\t\ttopicmetadata=new TopicMetaDataXmlReader(groupPath+\"/\"+grpname+\"__des.xml\");\n \tVector list=topicmetadata.getGroupDetails();\n\t\t\t\t\t\tif(list!=null) \n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tfor(int j=0;j<list.size();j++)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tuname=((FileEntry) list.elementAt(j)).getUserName();\n\t\t\t\t\t\t\t\tif(username.equals(uname))\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tMode=\"noempty\";\n\t\t\t\t\t\t\t\t\tcontext.put(\"Mode\",\"noempty\");\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}//for\n\t\t\t\t\t\t} //if\n\t\t\t\t\t\tif(Mode.equals(\"noempty\"))\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tif(type.equals(\"signupgroup\")&&(!username.equals(uname)))\n \t\t{\n\t\t\t\t\t\t\t/**\n\t\t\t\t\t\t\t*Checking the signupgroups which are empty or having space\n\t\t\t\t\t\t\t* Put in the context for use in templates.\n\t\t\t\t\t\t\t*/\n \t\t\tlen=Integer.parseInt(stuno);\n \t\tif((list == null) || (list.size()<len ))\n \t\t\tglist.addElement(grpname);\n \t\t\t\tif(glist.size()!=0)\n \t\t\t\t{\n \t\t\t\tcontext.put(\"glist\",glist);\n \t\t\t\tcontext.put(\"Mode\",\"NoBlank\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t{\n \t\t\t\tcontext.put(\"Mode\",\"Blank\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}//if\n\t\t\t\t\t}//for\n\t\t\t\t}//if\n\t\t\t}//if\n\t\t}//try\n\t\t catch(Exception e){\n ErrorDumpUtil.ErrorLog(\"Error in Screen:Signupform !!\"+e);\n data.setMessage(\"See ExceptionLog !! \" );\n }\n\n\t}", "title": "" }, { "docid": "cf38b2eb3f074833f2496672fb9ca90d", "score": "0.53299487", "text": "@Override\n protected void setup() {\n }", "title": "" }, { "docid": "d9cbf08f5a3ed46938b8d107b03eb0b1", "score": "0.5319694", "text": "private void setup(){\r\n }", "title": "" }, { "docid": "d9cbf08f5a3ed46938b8d107b03eb0b1", "score": "0.5319694", "text": "private void setup(){\r\n }", "title": "" }, { "docid": "7bcbb1f841d4c63979404485934e0c95", "score": "0.53193307", "text": "@BeforeEach\r\n\tvoid setUp() throws Exception {\n\t\tfileSystem = Jimfs.newFileSystem(Configuration.unix());\r\n\r\n\t\trootPath = fileSystem.getPath(\"/files\"); // Test files here\r\n\t\tFiles.createDirectory(rootPath);\r\n\r\n\t\ttemplatesPath = fileSystem.getPath(\"/templates\"); // Template files here\r\n\t\tFiles.createDirectory(templatesPath);\r\n\t\t\r\n\t\t//Copy a test template from the resources to the mock file system\r\n\t\ttemplateFile = templatesPath.resolve(templateFileName);\r\n\t\tTestUtilities.copyFromResource(templateFileName, templateFile);\r\n\t\tassertTrue(Files.exists(templateFile));\r\n\t\t\r\n\t}", "title": "" }, { "docid": "dbadb0b367bee0a959b4509374bc97f1", "score": "0.53184557", "text": "public void createPackageContents() {\n\t\tif (isCreated) return;\n\t\tisCreated = true;\n\n\t\t// Create classes and their features\n\t\tformEClass = createEClass(FORM);\n\t\tcreateEAttribute(formEClass, FORM__METHOD);\n\t\tcreateEAttribute(formEClass, FORM__ACTION);\n\t\tcreateEReference(formEClass, FORM__COMPONENTS);\n\n\t\tpageEClass = createEClass(PAGE);\n\t\tcreateEAttribute(pageEClass, PAGE__NAME);\n\t\tcreateEAttribute(pageEClass, PAGE__TYPE);\n\t\tcreateEReference(pageEClass, PAGE__BODY);\n\t\tcreateEReference(pageEClass, PAGE__HEAD);\n\n\t\ttextLabelEClass = createEClass(TEXT_LABEL);\n\t\tcreateEAttribute(textLabelEClass, TEXT_LABEL__VALUE);\n\t\tcreateEAttribute(textLabelEClass, TEXT_LABEL__CHECK_RESSOURCE);\n\t\tcreateEAttribute(textLabelEClass, TEXT_LABEL__KEY);\n\n\t\twebAppEClass = createEClass(WEB_APP);\n\t\tcreateEAttribute(webAppEClass, WEB_APP__NAME);\n\t\tcreateEReference(webAppEClass, WEB_APP__PAGES);\n\t\tcreateEReference(webAppEClass, WEB_APP__START_PAGE);\n\n\t\ttableEClass = createEClass(TABLE);\n\t\tcreateEReference(tableEClass, TABLE__LINES);\n\n\t\tlinkEClass = createEClass(LINK);\n\t\tcreateEAttribute(linkEClass, LINK__PAGE_NAME);\n\t\tcreateEAttribute(linkEClass, LINK__PAGE_TYPE);\n\n\t\tcomponentEClass = createEClass(COMPONENT);\n\n\t\tinputEClass = createEClass(INPUT);\n\n\t\tbodyEClass = createEClass(BODY);\n\t\tcreateEReference(bodyEClass, BODY__CONTENTS);\n\n\t\theadEClass = createEClass(HEAD);\n\t\tcreateEReference(headEClass, HEAD__HEAD_TITLE);\n\n\t\ttitleEClass = createEClass(TITLE);\n\t\tcreateEAttribute(titleEClass, TITLE__SIZE);\n\n\t\ttextFieldEClass = createEClass(TEXT_FIELD);\n\t\tcreateEAttribute(textFieldEClass, TEXT_FIELD__SIZE);\n\t\tcreateEAttribute(textFieldEClass, TEXT_FIELD__NAME);\n\t\tcreateEAttribute(textFieldEClass, TEXT_FIELD__MAX_LENGTH);\n\t\tcreateEReference(textFieldEClass, TEXT_FIELD__ERROR_TEXT);\n\n\t\tpasswordEClass = createEClass(PASSWORD);\n\t\tcreateEAttribute(passwordEClass, PASSWORD__NAME);\n\t\tcreateEAttribute(passwordEClass, PASSWORD__SIZE);\n\t\tcreateEAttribute(passwordEClass, PASSWORD__MAX_LENGTH);\n\t\tcreateEReference(passwordEClass, PASSWORD__ERROR_PASSWORD);\n\n\t\tradioButtonEClass = createEClass(RADIO_BUTTON);\n\t\tcreateEAttribute(radioButtonEClass, RADIO_BUTTON__VALUE);\n\n\t\tcheckBoxEClass = createEClass(CHECK_BOX);\n\t\tcreateEAttribute(checkBoxEClass, CHECK_BOX__VALUE);\n\n\t\tsubmitButtonEClass = createEClass(SUBMIT_BUTTON);\n\t\tcreateEAttribute(submitButtonEClass, SUBMIT_BUTTON__VALUE);\n\t\tcreateEAttribute(submitButtonEClass, SUBMIT_BUTTON__SUCCESS_TARGET);\n\t\tcreateEAttribute(submitButtonEClass, SUBMIT_BUTTON__ERROR_TARGET);\n\t\tcreateEAttribute(submitButtonEClass, SUBMIT_BUTTON__SUCCESS_TYPE);\n\t\tcreateEAttribute(submitButtonEClass, SUBMIT_BUTTON__ERROR_TYPE);\n\n\t\tparagraphEClass = createEClass(PARAGRAPH);\n\n\t\tcellEClass = createEClass(CELL);\n\t\tcreateEReference(cellEClass, CELL__COMPONENTS);\n\t\tcreateEAttribute(cellEClass, CELL__ALIGN);\n\t\tcreateEAttribute(cellEClass, CELL__COLSPAN);\n\n\t\tlineEClass = createEClass(LINE);\n\t\tcreateEReference(lineEClass, LINE__CELLS);\n\n\t\tcontentEClass = createEClass(CONTENT);\n\n\t\tcontainerEClass = createEClass(CONTAINER);\n\t\tcreateEReference(containerEClass, CONTAINER__COMPONENTS);\n\n\t\tfinalEClass = createEClass(FINAL);\n\n\t\theadTitleEClass = createEClass(HEAD_TITLE);\n\t\tcreateEReference(headTitleEClass, HEAD_TITLE__TEXT);\n\n\t\t// Create enums\n\t\tsizeEEnum = createEEnum(SIZE);\n\t\talignEEnum = createEEnum(ALIGN);\n\t\toperationEEnum = createEEnum(OPERATION);\n\t}", "title": "" }, { "docid": "c62f41a0d75b86dd048fe0a62cd7eef0", "score": "0.5314898", "text": "public TemplateTransformation() {\n\t\t\n\t}", "title": "" }, { "docid": "bf847df739a7d1b632c83d383b54ca1a", "score": "0.5308471", "text": "public Template(){}", "title": "" }, { "docid": "4b28764ba498f70a49d7a3934fdfd44f", "score": "0.5301433", "text": "void prepare() {\r\n\t\tSystem.out.println(\"Preparing \" + name);\r\n\t\tbatter = factory.createChocolateBatter();\r\n\t\ticing = factory.createChocolateIcing();\r\n\t\tdecorations = factory.createBirthdayDecorations();\r\n\r\n\t}", "title": "" }, { "docid": "4760fa728be14096d73611e653b9db9c", "score": "0.52973104", "text": "abstract void setTemplateEngine(TemplateEngine templateEngine);", "title": "" }, { "docid": "549a56dee47aa7b21d0d67438f2a4cdd", "score": "0.5293631", "text": "public void createPackageContents() {\n\t\tif (isCreated) return;\n\t\tisCreated = true;\n\n\t\t// Create classes and their features\n\t\tmodelEClass = createEClass(MODEL);\n\t\tcreateEReference(modelEClass, MODEL__MAPPING);\n\n\t\tmappingEClass = createEClass(MAPPING);\n\n\t\tkindMappingEClass = createEClass(KIND_MAPPING);\n\t\tcreateEReference(kindMappingEClass, KIND_MAPPING__TOSCA_KIND);\n\t\tcreateEReference(kindMappingEClass, KIND_MAPPING__OCCI_TYPES);\n\n\t\tattributeMappingEClass = createEClass(ATTRIBUTE_MAPPING);\n\t\tcreateEReference(attributeMappingEClass, ATTRIBUTE_MAPPING__TOSCA_ATTRIBUTE);\n\t\tcreateEReference(attributeMappingEClass, ATTRIBUTE_MAPPING__OCCI_ATTRIBUTE);\n\t}", "title": "" }, { "docid": "9189f017df4c6772e65515bc90d89553", "score": "0.5286961", "text": "TemplateWriter(Reader templateReader, HTMLUtil hu,TemplateContext context){\n\tthis(hu.fileWriter(context.curURL, context.options), templateReader,\n\t context);\n }", "title": "" }, { "docid": "82ce59d401e5c635369b784fae77ad39", "score": "0.5284677", "text": "public static void createReSTFilesInCwd() {\n\n createFile(\"Parse2.rst\", new Parse2().ReSTHelp());\n createFile(\"GBM.rst\", new GBM().ReSTHelp());\n createFile(\"DRF2.rst\", new DRF().ReSTHelp());\n createFile(\"GLM2.rst\", new GLM2().ReSTHelp());\n createFile(\"KMeans2.rst\", new KMeans2().ReSTHelp());\n // createFile(\"Summary2.rst\", new Summary2().ReSTHelp());\n }", "title": "" }, { "docid": "4ba8c6ab22545698cecc4c6bc7e36e79", "score": "0.5284205", "text": "public void generate(Writer w, Map<String, Object> dtlContext)\n\t\t\tthrows IOException {\n\t\tInputStream is = TemplateClassGenerator.class.getResourceAsStream(\"rstljavatemplate.stg\");\n\t\tBufferedReader r = new BufferedReader(new InputStreamReader(is));\n\t\t//Reader r = new FileReader(stgTemplateUrl.getFile());\n\t\tStringTemplateGroup group = new StringTemplateGroup(r);\n\t\tStringTemplate t = group.getInstanceOf(\"javaclass\");\n\t\tt.setAttribute(\"ctxt\", dtlContext);\n\t\tw.append(t.toString(80));\n\t}", "title": "" }, { "docid": "091a08fd1d9b063c10e4785a943a9473", "score": "0.52731925", "text": "public void createPackageContents() {\n\t\tif (isCreated) return;\n\t\tisCreated = true;\n\n\t\t// Create classes and their features\n\t\tlayoutEClass = createEClass(LAYOUT);\n\t\tcreateEReference(layoutEClass, LAYOUT__NODES);\n\n\t\tnodeEClass = createEClass(NODE);\n\t\tcreateEAttribute(nodeEClass, NODE__DESCRIPTION);\n\t\tcreateEAttribute(nodeEClass, NODE__TECHNOLOGY);\n\t\tcreateEAttribute(nodeEClass, NODE__CATEGORY);\n\t\tcreateEAttribute(nodeEClass, NODE__NAME);\n\t\tcreateEReference(nodeEClass, NODE__PORTS);\n\t\tcreateEReference(nodeEClass, NODE__PRODUCT);\n\n\t\tmachinesEClass = createEClass(MACHINES);\n\n\t\trobotEClass = createEClass(ROBOT);\n\n\t\tstorageMachineEClass = createEClass(STORAGE_MACHINE);\n\n\t\tagvEClass = createEClass(AGV);\n\n\t\tconveyorEClass = createEClass(CONVEYOR);\n\n\t\tcombinerEClass = createEClass(COMBINER);\n\n\t\texchangerEClass = createEClass(EXCHANGER);\n\n\t\tfeederEClass = createEClass(FEEDER);\n\n\t\tportsEClass = createEClass(PORTS);\n\t\tcreateEAttribute(portsEClass, PORTS__VALUE);\n\t\tcreateEReference(portsEClass, PORTS__TARGET);\n\t\tcreateEReference(portsEClass, PORTS__SOURCE);\n\n\t\tassemblerEClass = createEClass(ASSEMBLER);\n\n\t\ttransporterEClass = createEClass(TRANSPORTER);\n\t\tcreateEReference(transporterEClass, TRANSPORTER__FLOWITEM);\n\n\t\tflowItemEClass = createEClass(FLOW_ITEM);\n\n\t\toperatorEClass = createEClass(OPERATOR);\n\n\t\tpalletEClass = createEClass(PALLET);\n\n\t\tboxEClass = createEClass(BOX);\n\n\t\ttoteEClass = createEClass(TOTE);\n\n\t\tprocessorEClass = createEClass(PROCESSOR);\n\n\t\televatorEClass = createEClass(ELEVATOR);\n\n\t\tproductEClass = createEClass(PRODUCT);\n\t\tcreateEAttribute(productEClass, PRODUCT__ID);\n\t\tcreateEAttribute(productEClass, PRODUCT__DESCRIPTION);\n\n\t\temptyNodeEClass = createEClass(EMPTY_NODE);\n\t}", "title": "" }, { "docid": "12bb844934c95f10fa429969964e9ae4", "score": "0.5267643", "text": "@Override\n\tpublic void initializeSetup() {\n\t\t\n\t}", "title": "" }, { "docid": "ca49e2e2ccb2a7bc7fb4815303d3f4c7", "score": "0.5264469", "text": "public void createPackageContents() {\n\t\tif (isCreated)\n\t\t\treturn;\n\t\tisCreated = true;\n\n\t\t// Create classes and their features\n\t\ttextEClass = createEClass(TEXT);\n\t\tcreateEAttribute(textEClass, TEXT__TEXT);\n\n\t\tcompositeTextElementEClass = createEClass(COMPOSITE_TEXT_ELEMENT);\n\t\tcreateEReference(compositeTextElementEClass, COMPOSITE_TEXT_ELEMENT__SUBTEXT);\n\n\t\ttextElementEClass = createEClass(TEXT_ELEMENT);\n\n\t\tstrongEClass = createEClass(STRONG);\n\t\tcreateEAttribute(strongEClass, STRONG__TEXT);\n\n\t\temphasisEClass = createEClass(EMPHASIS);\n\t\tcreateEAttribute(emphasisEClass, EMPHASIS__TEXT);\n\n\t\turlBasedLinkEClass = createEClass(URL_BASED_LINK);\n\t\tcreateEAttribute(urlBasedLinkEClass, URL_BASED_LINK__URL);\n\t\tcreateEAttribute(urlBasedLinkEClass, URL_BASED_LINK__TITLE);\n\n\t\tlinkWithRefEClass = createEClass(LINK_WITH_REF);\n\t\tcreateEAttribute(linkWithRefEClass, LINK_WITH_REF__REFERENCE);\n\n\t\tlinkEClass = createEClass(LINK);\n\n\t\timageEClass = createEClass(IMAGE);\n\n\t\tbuttonEClass = createEClass(BUTTON);\n\n\t\ttextContainerEClass = createEClass(TEXT_CONTAINER);\n\t\tcreateEReference(textContainerEClass, TEXT_CONTAINER__TEXTELEMENT);\n\n\t\telementEClass = createEClass(ELEMENT);\n\n\t\tpageEClass = createEClass(PAGE);\n\t\tcreateEAttribute(pageEClass, PAGE__PAGE_NAME);\n\t\tcreateEReference(pageEClass, PAGE__ELEMENT);\n\n\t\telementContainerEClass = createEClass(ELEMENT_CONTAINER);\n\t\tcreateEReference(elementContainerEClass, ELEMENT_CONTAINER__ELEMENT);\n\t\tcreateEAttribute(elementContainerEClass, ELEMENT_CONTAINER__GRADE);\n\n\t\ttitleEClass = createEClass(TITLE);\n\t\tcreateEAttribute(titleEClass, TITLE__GRADE);\n\n\t\tparagraphEClass = createEClass(PARAGRAPH);\n\t}", "title": "" }, { "docid": "dd032aff34f8976a2eae5516eee43b2e", "score": "0.5258491", "text": "private void $$$setupUI$$$() {\n templateEdit = new JPanel();\n templateEdit.setLayout(new GridLayoutManager(2, 1, new Insets(6, 6, 6, 6), -1, -1));\n final JPanel panel1 = new JPanel();\n panel1.setLayout(new GridLayoutManager(4, 2, new Insets(0, 10, 0, 10), -1, -1));\n panel1.setEnabled(true);\n templateEdit.add(panel1, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_NORTH, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n templateNameText = new JTextField();\n panel1.add(templateNameText, new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));\n final JLabel label1 = new JLabel();\n label1.setText(\"Class Number\");\n panel1.add(label1, new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n classNumberText = new JTextField();\n classNumberText.setText(\"1\");\n panel1.add(classNumberText, new GridConstraints(1, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));\n final JLabel label2 = new JLabel();\n label2.setText(\"Template Name\");\n panel1.add(label2, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JLabel label3 = new JLabel();\n label3.setText(\"Class Name\");\n panel1.add(label3, new GridConstraints(2, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n classNameText = new JTextField();\n classNameText.setToolTipText(\"Support velocity, with context={class0}\");\n panel1.add(classNameText, new GridConstraints(2, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));\n deleteTemplateButton = new JButton();\n deleteTemplateButton.setText(\"Delete Template\");\n panel1.add(deleteTemplateButton, new GridConstraints(3, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n editorPane = new JPanel();\n editorPane.setLayout(new GridLayoutManager(1, 1, new Insets(0, 0, 0, 0), -1, -1));\n templateEdit.add(editorPane, new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n }", "title": "" }, { "docid": "01ef4411279646efbfe0e3d51dc68f0c", "score": "0.5257792", "text": "protected void initTemplate(Object swixmlTargetObject, String templateFileName, String locale){\t \n\t this.locale = locale;\n\t initTemplate(swixmlTargetObject, templateFileName);\n\t}", "title": "" }, { "docid": "c2f85652983881e6f901ec5a6fc1c4c1", "score": "0.52399987", "text": "private void generateTemplate () {\n checkTemplateRepeat();\n boolean repeatOK = false;\n boolean ok = true;\n if (templateFileOK && fileAvailable() && templateCreated) {\n if (\n // (! lastTabNameOutput.equals (\"\"))\n (lastTemplateFile != null)\n // && (lastTabNameOutput.equals (tabName))\n && (lastTemplateFile.equals (templateFile))) {\n Alert repeatAlert = new Alert(AlertType.CONFIRMATION);\n repeatAlert.setTitle(\"Repeat Confirmation\");\n repeatAlert.setContentText\n (\"Are you sure you want to repeat\\n the last merge operation?\");\n Optional<ButtonType> result = repeatAlert.showAndWait();\n ok = (result.get() == ButtonType.OK);\n } // end if repeating a merge operation\n if (ok) {\n templateGenerate();\n if (! generateOutputOK) {\n Trouble.getShared().report(\n \"Error occurred while generating output file\",\n \"Output File Error\");\n } // end if output not OK\n } // end if all necessary files ready\n } else {\n Trouble.getShared().report(\n \"One or Both Input files Not Ready\",\n \"Input File Error\");\n } // end input files not ready\n }", "title": "" }, { "docid": "d9ca32467cfc546715093d2036f2a7cc", "score": "0.5237097", "text": "public void addTemplateDirectory(File dir) throws CanonException\n {\n addTemplateDirectory(dir, templateLoader_);\n \n try\n {\n config_.setDirectoryForTemplateLoading(dir);\n }\n catch (IOException e)\n {\n throw new CanonException(e);\n }\n }", "title": "" }, { "docid": "e1fd22bbcc6a15e873db3af271c3476b", "score": "0.5236906", "text": "protected void setup() {\n\t\tSystem.out.println(getLocalName() + \": Started.\");\n\t\t// Load configuration file.\n\t\tconfig = new InitConfig();\n\t\t/* Create and read an XML file with the given agents (file, orders, robots, shelves, pickers, maxOrder, maxStock, randOrder,randStock).\n\t\t * \n\t\t */\n\t\t//config.createXML(\"kiva2.config.xml\",20,3,10,5,7,25,false,false);\n\t\tSystem.out.println(getLocalName()+\": Configuration created succesfuly.\");\n\t\tconfig.readXML(\"kiva2.config.xml\");\n\t\tSystem.out.println(getLocalName()+\": Configuration read succesfuly.\");\n\t\t \n\t\tpendingOrders = new ArrayList<String>();\t\t\n\t\tassignedOrders = new ArrayList<String>();\t\t\n\t\tcompletedOrders = new ArrayList<String>();\t\t\n\t\t// Add behaviors\n\t\taddBehaviour(new initialOrders());\n\t\taddBehaviour(new CreateOrder());\n\t\taddBehaviour(new updateOrderLists());\n\t\taddBehaviour(new initialRobots());\n\t\taddBehaviour(new initialShelves());\n\t\ttry {\n\t\t\tThread.sleep(3000);\n\t\t} catch (InterruptedException e) {\n\t\t\t//e.printStackTrace();\n\t\t}\n\t\taddBehaviour(new initialPickers());\n\t\t//System.out.println(getLocalName()+\": Loaded behaviours\");\n\t}", "title": "" }, { "docid": "d78db3698845302c21f2968c5171cd38", "score": "0.5236551", "text": "public void createPackageContents() {\n\t\tif (isCreated) return;\n\t\tisCreated = true;\n\n\t\t// Create classes and their features\n\t\tcommonVmManagerEClass = createEClass(COMMON_VM_MANAGER);\n\t\tcreateEAttribute(commonVmManagerEClass, COMMON_VM_MANAGER__SCRIPT);\n\t\tcreateEAttribute(commonVmManagerEClass, COMMON_VM_MANAGER__CONFIGURE_TIMEOUT);\n\t\tcreateEAttribute(commonVmManagerEClass, COMMON_VM_MANAGER__TEST_TIMEOUT);\n\t\tcreateEAttribute(commonVmManagerEClass, COMMON_VM_MANAGER__SUSPEND_TIMEOUT);\n\t\tcreateEAttribute(commonVmManagerEClass, COMMON_VM_MANAGER__RESUME_TIMEOUT);\n\t\tcreateEReference(commonVmManagerEClass, COMMON_VM_MANAGER__VM_CONFIGURATION);\n\t}", "title": "" }, { "docid": "750b42859c31d93fcf44aceaacc43b85", "score": "0.52357286", "text": "public void createPackageContents() {\n\t\tif (isCreated) return;\n\t\tisCreated = true;\n\n\t\t// Create classes and their features\n\t\texpEClass = createEClass(EXP);\n\n\t\tbinaryExpEClass = createEClass(BINARY_EXP);\n\t\tcreateEReference(binaryExpEClass, BINARY_EXP__LHS);\n\t\tcreateEReference(binaryExpEClass, BINARY_EXP__RHS);\n\n\t\tlitEClass = createEClass(LIT);\n\n\t\tandEClass = createEClass(AND);\n\n\t\torEClass = createEClass(OR);\n\n\t\ttruEClass = createEClass(TRU);\n\n\t\tfalsEClass = createEClass(FALS);\n\t}", "title": "" }, { "docid": "e7a3fb0091b628864ba665e52be53625", "score": "0.52351415", "text": "protected void setup() {\r\n\t\tmanager.registerLanguage(codec);\r\n\t\tmanager.registerOntology(ontology);\r\n\r\n\t\t// Adiciona comportamento para recuperar dados\r\n\t\t\r\n // add the behaviour\r\n // 1 is the number of steps that must be executed at each run of\r\n // the Jess engine before giving back the control to the Java code\r\n\t\taddBehaviour(new BasicJessBehaviour(this,\"examples/jess/JadeAgent.clp\",1)); \r\n \r\n\t\t//addBehaviour(new HandleInformSamples(this));\r\n\t\taddBehaviour(new HandleRequestBehaviour(this));\r\n }", "title": "" }, { "docid": "993c1c104dfc31668fa908798bb6ea85", "score": "0.5234049", "text": "public void defineGlobalTemplate (SSC_File file, boolean main)\n {\n\tsscFiles.put(file.getXscFileName(), file);\n\tif (main) { this.main = file; }\n }", "title": "" }, { "docid": "afd68201f0a258263ed4efab49d534ba", "score": "0.5228052", "text": "protected void createContents() {\n\t\tshlFutsalPro = new Shell();\n\t\tshlFutsalPro.setImage(ResourceManager.getPluginImage(\"hu.bme.mit.mvsd.futsal.application\", \"icons/icon16.gif\"));\n\t\tshlFutsalPro.setSize(900, 700);\n\t\tshlFutsalPro.setText(\"Futsal Pro\");\n\t\tshlFutsalPro.setLayout(new FillLayout(SWT.HORIZONTAL));\n\n\t\t// mainArea = new InitReport(shlFutsalPro, SWT.NONE);\n\t\tsetScreen(Screens.Init);\n\t}", "title": "" }, { "docid": "30041615a1720966aaca4f813b01746a", "score": "0.5227521", "text": "public void createPackageContents() {\n\t\tif (isCreated) return;\n\t\tisCreated = true;\n\n\t\t// Create classes and their features\n\t\taFilesystemEClass = createEClass(AFILESYSTEM);\n\n\t\tuFilesystemEClass = createEClass(UFILESYSTEM);\n\t\tcreateEReference(uFilesystemEClass, UFILESYSTEM__ULEFT);\n\t\tcreateEReference(uFilesystemEClass, UFILESYSTEM__URIGHT);\n\t\tcreateEReference(uFilesystemEClass, UFILESYSTEM__UPOINT);\n\n\t\taFileEClass = createEClass(AFILE);\n\n\t\tuFileEClass = createEClass(UFILE);\n\t\tcreateEReference(uFileEClass, UFILE__ULEFT);\n\t\tcreateEReference(uFileEClass, UFILE__URIGHT);\n\t\tcreateEReference(uFileEClass, UFILE__UPOINT);\n\n\t\taSyncEClass = createEClass(ASYNC);\n\n\t\tuSyncEClass = createEClass(USYNC);\n\t\tcreateEReference(uSyncEClass, USYNC__ULEFT);\n\t\tcreateEReference(uSyncEClass, USYNC__URIGHT);\n\t\tcreateEReference(uSyncEClass, USYNC__UPOINT);\n\n\t\taShortcutEClass = createEClass(ASHORTCUT);\n\n\t\tuShortcutEClass = createEClass(USHORTCUT);\n\t\tcreateEReference(uShortcutEClass, USHORTCUT__ULEFT);\n\t\tcreateEReference(uShortcutEClass, USHORTCUT__URIGHT);\n\t\tcreateEReference(uShortcutEClass, USHORTCUT__UPOINT);\n\n\t\taFolderEClass = createEClass(AFOLDER);\n\n\t\taDriveEClass = createEClass(ADRIVE);\n\n\t\tuFolderEClass = createEClass(UFOLDER);\n\t\tcreateEReference(uFolderEClass, UFOLDER__ULEFT);\n\t\tcreateEReference(uFolderEClass, UFOLDER__URIGHT);\n\t\tcreateEReference(uFolderEClass, UFOLDER__UPOINT);\n\n\t\tuDriveEClass = createEClass(UDRIVE);\n\t\tcreateEReference(uDriveEClass, UDRIVE__ULEFT);\n\t\tcreateEReference(uDriveEClass, UDRIVE__URIGHT);\n\t\tcreateEReference(uDriveEClass, UDRIVE__UPOINT);\n\t}", "title": "" }, { "docid": "4e77e38d765da349111aec386882ccd9", "score": "0.52205306", "text": "private void setUpScenary1() {\n\t\t\t\n\t\t}", "title": "" }, { "docid": "388e59e3afc58a0b7125af31936c614a", "score": "0.52164143", "text": "protected void createContents() {\n\t\tsetText(\"SWT Application\");\n\t\tsetSize(450, 300);\n\n\t}", "title": "" } ]
1bc13044fa66ea2de0b8fefcee264d22
Test correctly calculated direction.
[ { "docid": "f393c95024b506b26be5fd29dcf3984f", "score": "0.67533517", "text": "@Test\n public void testPositiveDirection() {\n assertTrue(vec1.positiveDirection(p1, p2));\n assertFalse(vec1.positiveDirection(p2, p1));\n }", "title": "" } ]
[ { "docid": "c1047aeb9ecc4dc074366540a0138ae1", "score": "0.7325572", "text": "private double checkDirection()\n {\n double correction, angle, gain = .10;\n\n angle = getAngle();\n\n if (angle == 0)\n correction = 0; // no adjustment.\n else\n correction = -angle; // reverse sign of angle for correction.\n\n correction = correction * gain;\n\n return correction;\n }", "title": "" }, { "docid": "6423bf36bc1fb0b36260aa1e92c8c852", "score": "0.7313256", "text": "private double checkDirection()\n {\n // The gain value determines how sensitive the correction is to direction changes.\n // You will have to experiment with your robot to get small smooth direction changes\n // to stay on a straight line.\n double correction;\n double angle;\n double gain = .10;\n\n angle = getAngle();\n\n if (angle == 0)\n correction = 0; // no adjustment.\n else\n correction = -angle; // reverse sign of angle for correction.\n\n correction = correction * gain;\n\n return correction;\n }", "title": "" }, { "docid": "ea00257286b685d91a652ab2949671f5", "score": "0.731294", "text": "@Test\n\tpublic final void testGetDirection(){\n\t\tassertEquals(\"Direction should reflect direction faced in MazeController\", getMaze().getCurrentDirection(), getCurrentDirection() );\n\t}", "title": "" }, { "docid": "f738f85a51be989cc81c37bfa52f4cb0", "score": "0.7189987", "text": "public void calcDirection()\r\n\t{\r\n\t\tif (currXCord < tarXCord)\r\n\t\t{\r\n\t\t\t//tar west east\r\n\t\t\tif(currYCord < tarYCord)\r\n\t\t\t{\r\n\t\t\t\tsetGetPointDir(\"NORTHEAST\");\r\n\t\t\t}\r\n\t\t\telse if(currYCord > tarYCord)\r\n\t\t\t{\r\n\t\t\t\tsetGetPointDir(\"SOUTHEAST\");\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tsetGetPointDir(\"EAST\");\r\n\t\t\t}\r\n\t\t}\r\n\t\telse if (currXCord > tarYCord)\r\n\t\t{\r\n\t\t\t//tar west\r\n\t\t\tif(currYCord < tarYCord)\r\n\t\t\t{\r\n\t\t\t\tsetGetPointDir(\"NORTHWEST\");\r\n\t\t\t}\r\n\t\t\telse if(currYCord > tarYCord)\r\n\t\t\t{\r\n\t\t\t\tsetGetPointDir(\"SOUTHWEST\");\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tsetGetPointDir(\"WEST\");\r\n\t\t\t}\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\t//straight above or below\r\n\t\t\tif(currYCord < tarYCord)\r\n\t\t\t{\r\n\t\t\t\tsetGetPointDir(\"NORTH\");\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tsetGetPointDir(\"SOUTH\");\r\n\t\t\t}\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "3e29a0b721ab3881f29dba71fe2d2688", "score": "0.71680707", "text": "@Test\n\tpublic void testGetDirectionBetweenPointsNonZero()\n\t{\n\t\tassertEquals(45, MathMethods.getDirectionBetweenPoints(0, 0, 1, 1), \n\t\t\t\t0.0001);\n\t\tassertEquals(180, MathMethods.getDirectionBetweenPoints(40, 0, -400, 0), \n\t\t\t\t0.0001);\n\t}", "title": "" }, { "docid": "5a725cca943b87c3b38b785117dc015e", "score": "0.70683026", "text": "@Test\n public void directions() throws Exception {\n assertEquals(room.hasRoomInDirection(0), true);\n assertEquals(room.hasRoomInDirection(1), false);\n assertEquals(room.hasRoomInDirection(2), true);\n assertEquals(room.hasRoomInDirection(3), true);\n }", "title": "" }, { "docid": "85803385d46f4fb112c452db000d2edc", "score": "0.69697016", "text": "@Test\n public void retDirectionStep() throws Exception {\n PathFinderGoogle pf = new PathFinderGoogle();\n assertNull(pf.retDirectionStep());\n LatLng sour = new LatLng(52.333636,4.869611);\n LatLng des = new LatLng(52.320891,4.875542);\n pf.getDirection(sour,des);\n assertNotNull(pf.retDirectionStep());\n }", "title": "" }, { "docid": "e31fba8b9144771b5caad08b8f5661c0", "score": "0.6934928", "text": "@Test\n public void testDroite() {\n System.out.println(\"testDroite\");\n int direction = tortue.getDirection();\n tortue.droite(90);\n Assert.assertEquals((direction + 90) % 360, tortue.getDirection());\n }", "title": "" }, { "docid": "362e048713a100c5edb99b29ae99aab3", "score": "0.68137205", "text": "@Test\n public void testTurn1() throws InvalidMovementException {\n System.out.println(\"turn\");\n char turnCommand = 'L';\n rover.turn(turnCommand);\n rover.turn(turnCommand);\n Rover.Heading expt = Rover.Heading.SOUTH;\n assertEquals(expt, rover.getDir());\n }", "title": "" }, { "docid": "142b079bb45f29538000603ec06c4c5a", "score": "0.67793167", "text": "@Test\n\tpublic void testGetDirectionBetweenPointsZero()\n\t{\n\t\tassertEquals(0, MathMethods.getDirectionBetweenPoints(0, 0, 0, 0), \n\t\t\t\t\t\t0.0001);\n\t\tassertEquals(0, MathMethods.getDirectionBetweenPoints(-4, 4, -4, 4), \n\t\t\t\t0.0001);\n\t}", "title": "" }, { "docid": "89bbf88dbc8c57ccfbffc10b94f28f10", "score": "0.6765575", "text": "@Test\n public void testGauche() {\n System.out.println(\"testGauche\");\n int direction = tortue.getDirection();\n tortue.gauche(90);\n Assert.assertEquals((direction - 90) % 360, tortue.getDirection());\n\n }", "title": "" }, { "docid": "2f682c79aeed493bbbbaec3967cd8434", "score": "0.67424935", "text": "protected void calculateDirection() {\n\t\t// Si la posicion no es modulo de 16 o no esta en una intersection no\n\t\t// tomamos ninguna decision.\n\t\tif ((x % 16 != 0 || y % 16 != 0) || !intersection()) {\n\t\t\treturn;\n\t\t}\n\t\t// Nos traemos la lista con las posibles directions a tomar.\n\t\tList<Integer> directions = getDirectionsIntersection(planeX, planeY,\n\t\t\t\tdirection);\n\t\t// Cuando llega a la intersecci�n genera la direction aleatoriamente de\n\t\t// las posibles a tomar del array.\n\t\tdirection = directions.get(rnd.nextInt(directions.size()));\n\t}", "title": "" }, { "docid": "3bda872bf672e6cd5e5c1c4ce712d9b7", "score": "0.67108923", "text": "@Test\n\tpublic void testDetermineDirection1() {\n\t\tPoint p1 = new Point(10,10);\n\t\t\n\t\tassertEquals(\"Direction should be NONE on null point!\", Direction.NONE, Lines.determineDirection(null, null));\n\t\tassertEquals(\"Direction should be NONE on null point!\", Direction.NONE, Lines.determineDirection(p1, null));\n\t\tassertEquals(\"Direction should be NONE on same point!\", Direction.NONE, Lines.determineDirection(p1, p1));\n\t}", "title": "" }, { "docid": "f9c5fe6d5363ad25674b7b56e99cbd81", "score": "0.6702891", "text": "double getDirection();", "title": "" }, { "docid": "f8313f7d4c0501292c94962963518161", "score": "0.67027104", "text": "@Test\n\tpublic void changeDirectionTest(){\n\t\t// it should start by moving down\n\t\tassertEquals(snake.getDirection(), Direction.DOWN);\n\t\tsnake.changeDirection(Direction.LEFT);\n\t\t// should successfully have changed directions\n\t\tassertEquals(snake.getDirection(), Direction.LEFT);\n\t\t// should change to the opposite direction while the length is one\n\t\tsnake.changeDirection(Direction.RIGHT);\n\t\tassertEquals(snake.getDirection(), Direction.RIGHT);\n\t\t// should not change direction to the opposite once it has a length greater than 1\n\t\tsnake.eatFood();\n\t\tsnake.changeDirection(Direction.LEFT);\n\t\tassertEquals(snake.getDirection(), Direction.RIGHT); // should not have changed\n\t}", "title": "" }, { "docid": "46f4680ca60071cb5f2d8049abc5afa4", "score": "0.66988873", "text": "@Test\n public void testTurn2() throws InvalidMovementException {\n System.out.println(\"turn\");\n char turnCommandA = 'L';\n char turnCommandB = 'R';\n rover.turn(turnCommandA);\n rover.turn(turnCommandA);\n rover.turn(turnCommandB);\n rover.turn(turnCommandB);\n rover.turn(turnCommandB);\n Rover.Heading expt = Rover.Heading.EAST;\n assertEquals(expt, rover.getDir());\n }", "title": "" }, { "docid": "4483d2ed2ca11e8936ebb5cb05c27ec3", "score": "0.66091865", "text": "private boolean determineNewDirection() {\r\n\t\tfinal int posX = model.getPosX(); // Shortcut to the posX of the player \r\n\t\tfinal int posY = model.getPosY(); // Shortcut to the posY of the player\r\n\r\n\t\t// There are 2 kinds of movement correction:\r\n\t\t// The first is taking us away from the component where we stand on in order to turn on the next component.\r\n\t\t// The second is taking us toward the center of the component we're standing on in order to be able to turn on it.\r\n\t\t\r\n\t\tfinal int movementCorrectionSensitivity = LEVEL_COMPONENT_GRANULARITY * modelProvider.getClientsPublicClientOptions().get( clientIndex ).movementCorrectionSensitivities[ playerIndex ] / 200;\r\n\t\t\r\n\t\tif ( model.getControlKeyState( PlayerControlKeys.DOWN ) ) {\r\n\t\t\tmodel.setDirection( Directions.DOWN );\r\n\r\n\t\t\t// The first kind of movement correction\r\n\t\t\tif ( !canPlayerStepToPosition( posX, posY + (LEVEL_COMPONENT_GRANULARITY/2+1) ) ) { // The specified direction is unreachable for movement, try the movement correction function...\r\n\t\t\t\tif ( posX % LEVEL_COMPONENT_GRANULARITY < movementCorrectionSensitivity ) // If movement correction can be activated in one of the directions\r\n\t\t\t\t\tif ( canPlayerStepToPosition( posX - LEVEL_COMPONENT_GRANULARITY, posY ) // If the direction in which movement correction would take us is free..\r\n\t\t\t\t\t\t&& canPlayerStepToPosition( posX - LEVEL_COMPONENT_GRANULARITY, posY + LEVEL_COMPONENT_GRANULARITY ) ) { // ...and and the position where the movement correction wants to take us to is allowed\r\n\t\t\t\t\t\tmodel.setDirection( Directions.LEFT );\r\n\t\t\t\t\t\treturn true; // Movement correction is ACTIVATED\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\tif ( posX % LEVEL_COMPONENT_GRANULARITY >= LEVEL_COMPONENT_GRANULARITY - movementCorrectionSensitivity ) // If movement correction can be activated in the other direction\r\n\t\t\t\t\tif ( canPlayerStepToPosition( posX + LEVEL_COMPONENT_GRANULARITY, posY ) // If the direction in which movement correction would take us is free..\r\n\t\t\t\t\t\t&& canPlayerStepToPosition( posX + LEVEL_COMPONENT_GRANULARITY, posY + LEVEL_COMPONENT_GRANULARITY ) ) { // ...and and the position where the movement correction wants to take us to is allowed\r\n\t\t\t\t\t\tmodel.setDirection( Directions.RIGHT );\r\n\t\t\t\t\t\treturn true; // Movement correction is ACTIVATED\r\n\t\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t// The second kind of movement correction\r\n\t\t\telse { // We could move the specified direction, but we have a side obstrucion and we're closer than LEVEL_COMPONENT_GRANULARITY/2 \r\n\t\t\t\tif ( posX % LEVEL_COMPONENT_GRANULARITY < LEVEL_COMPONENT_GRANULARITY / 2 )\r\n\t\t\t\t\tif ( !canPlayerStepToPosition( posX - LEVEL_COMPONENT_GRANULARITY, posY + LEVEL_COMPONENT_GRANULARITY ) ) {\r\n\t\t\t\t\t\tmodel.setDirection( Directions.RIGHT );\r\n\t\t\t\t\t\treturn true; // Movement correction is ACTIVATED\r\n\t\t\t\t\t}\r\n\t\t\t\tif ( posX % LEVEL_COMPONENT_GRANULARITY > LEVEL_COMPONENT_GRANULARITY / 2 )\r\n\t\t\t\t\tif ( !canPlayerStepToPosition( posX + LEVEL_COMPONENT_GRANULARITY, posY + LEVEL_COMPONENT_GRANULARITY ) ) {\r\n\t\t\t\t\t\tmodel.setDirection( Directions.LEFT );\r\n\t\t\t\t\t\treturn true; // Movement correction is ACTIVATED\r\n\t\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\telse if ( model.getControlKeyState( PlayerControlKeys.UP ) ) {\r\n\t\t\tmodel.setDirection( Directions.UP );\r\n\r\n\t\t\tif ( !canPlayerStepToPosition( posX, posY - (LEVEL_COMPONENT_GRANULARITY/2+1) ) ) { // The specified direction is unreachable for movement, try the movement correction function...\r\n\t\t\t\tif ( posX % LEVEL_COMPONENT_GRANULARITY < movementCorrectionSensitivity ) // If movement correction can be activated in one of the directions\r\n\t\t\t\t\tif ( canPlayerStepToPosition( posX - LEVEL_COMPONENT_GRANULARITY, posY ) // If the direction in which movement correction would take us is free..\r\n\t\t\t\t\t\t&& canPlayerStepToPosition( posX - LEVEL_COMPONENT_GRANULARITY, posY - LEVEL_COMPONENT_GRANULARITY ) ) { // ...and and the position where the movement correction wants to take us to is allowed\r\n\t\t\t\t\t\tmodel.setDirection( Directions.LEFT );\r\n\t\t\t\t\t\treturn true; // Movement correction is ACTIVATED\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\tif ( posX % LEVEL_COMPONENT_GRANULARITY >= LEVEL_COMPONENT_GRANULARITY - movementCorrectionSensitivity ) // If movement correction can be activated in the other direction\r\n\t\t\t\t\tif ( canPlayerStepToPosition( posX + LEVEL_COMPONENT_GRANULARITY, posY ) // If the direction in which movement correction would take us is free..\r\n\t\t\t\t\t\t&& canPlayerStepToPosition( posX + LEVEL_COMPONENT_GRANULARITY, posY - LEVEL_COMPONENT_GRANULARITY ) ) { // ...and and the position where the movement correction wants to take us to is allowed\r\n\t\t\t\t\t\tmodel.setDirection( Directions.RIGHT );\r\n\t\t\t\t\t\treturn true; // Movement correction is ACTIVATED\r\n\t\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t// The second kind of movement correction\r\n\t\t\telse { // We could move the specified direction, but we have a side obstrucion and we're closer than LEVEL_COMPONENT_GRANULARITY/2 \r\n\t\t\t\tif ( posX % LEVEL_COMPONENT_GRANULARITY < LEVEL_COMPONENT_GRANULARITY / 2 )\r\n\t\t\t\t\tif ( !canPlayerStepToPosition( posX - LEVEL_COMPONENT_GRANULARITY, posY - LEVEL_COMPONENT_GRANULARITY ) ) {\r\n\t\t\t\t\t\tmodel.setDirection( Directions.RIGHT );\r\n\t\t\t\t\t\treturn true; // Movement correction is ACTIVATED\r\n\t\t\t\t\t}\r\n\t\t\t\tif ( posX % LEVEL_COMPONENT_GRANULARITY > LEVEL_COMPONENT_GRANULARITY / 2 )\r\n\t\t\t\t\tif ( !canPlayerStepToPosition( posX + LEVEL_COMPONENT_GRANULARITY, posY - LEVEL_COMPONENT_GRANULARITY ) ) {\r\n\t\t\t\t\t\tmodel.setDirection( Directions.LEFT );\r\n\t\t\t\t\t\treturn true; // Movement correction is ACTIVATED\r\n\t\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\telse if ( model.getControlKeyState( PlayerControlKeys.LEFT ) ) {\r\n\t\t\tmodel.setDirection( Directions.LEFT );\r\n\r\n\t\t\tif ( !canPlayerStepToPosition( posX - (LEVEL_COMPONENT_GRANULARITY/2+1), posY ) ) { // The specified direction is unreachable for movement, try the movement correction function...\r\n\t\t\t\tif ( posY % LEVEL_COMPONENT_GRANULARITY < movementCorrectionSensitivity ) // If movement correction can be activated in one of the directions\r\n\t\t\t\t\tif ( canPlayerStepToPosition( posX, posY - LEVEL_COMPONENT_GRANULARITY ) // If the direction in which movement correction would take us is free..\r\n\t\t\t\t\t\t&& canPlayerStepToPosition( posX - LEVEL_COMPONENT_GRANULARITY, posY - LEVEL_COMPONENT_GRANULARITY ) ) { // ...and and the position where the movement correction wants to take us to is allowed\r\n\t\t\t\t\t\tmodel.setDirection( Directions.UP );\r\n\t\t\t\t\t\treturn true; // Movement correction is ACTIVATED\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\tif ( posY % LEVEL_COMPONENT_GRANULARITY >= LEVEL_COMPONENT_GRANULARITY - movementCorrectionSensitivity ) // If movement correction can be activated in the other direction\r\n\t\t\t\t\tif ( canPlayerStepToPosition( posX, posY + LEVEL_COMPONENT_GRANULARITY ) // If the direction in which movement correction would take us is free..\r\n\t\t\t\t\t\t&& canPlayerStepToPosition( posX - LEVEL_COMPONENT_GRANULARITY, posY + LEVEL_COMPONENT_GRANULARITY ) ) { // ...and and the position where the movement correction wants to take us to is allowed\r\n\t\t\t\t\t\tmodel.setDirection( Directions.DOWN );\r\n\t\t\t\t\t\treturn true; // Movement correction is ACTIVATED\r\n\t\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t// The second kind of movement correction\r\n\t\t\telse { // We could move the specified direction, but we have a side obstrucion and we're closer than LEVEL_COMPONENT_GRANULARITY/2 \r\n\t\t\t\tif ( posY % LEVEL_COMPONENT_GRANULARITY < LEVEL_COMPONENT_GRANULARITY / 2 )\r\n\t\t\t\t\tif ( !canPlayerStepToPosition( posX - LEVEL_COMPONENT_GRANULARITY, posY - LEVEL_COMPONENT_GRANULARITY ) ) {\r\n\t\t\t\t\t\tmodel.setDirection( Directions.DOWN );\r\n\t\t\t\t\t\treturn true; // Movement correction is ACTIVATED\r\n\t\t\t\t\t}\r\n\t\t\t\tif ( posY % LEVEL_COMPONENT_GRANULARITY > LEVEL_COMPONENT_GRANULARITY / 2 )\r\n\t\t\t\t\tif ( !canPlayerStepToPosition( posX - LEVEL_COMPONENT_GRANULARITY, posY + LEVEL_COMPONENT_GRANULARITY ) ) {\r\n\t\t\t\t\t\tmodel.setDirection( Directions.UP );\r\n\t\t\t\t\t\treturn true; // Movement correction is ACTIVATED\r\n\t\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\telse if ( model.getControlKeyState( PlayerControlKeys.RIGHT ) ) {\r\n\t\t\tmodel.setDirection( Directions.RIGHT );\r\n\r\n\t\t\tif ( !canPlayerStepToPosition( posX + (LEVEL_COMPONENT_GRANULARITY/2+1), posY ) ) { // The specified direction is unreachable for movement, try the movement correction function...\r\n\t\t\t\tif ( posY % LEVEL_COMPONENT_GRANULARITY < movementCorrectionSensitivity ) // If movement correction can be activated in one of the directions\r\n\t\t\t\t\tif ( canPlayerStepToPosition( posX, posY - LEVEL_COMPONENT_GRANULARITY ) // If the direction in which movement correction would take us is free..\r\n\t\t\t\t\t\t&& canPlayerStepToPosition( posX + LEVEL_COMPONENT_GRANULARITY, posY - LEVEL_COMPONENT_GRANULARITY ) ) { // ...and and the position where the movement correction wants to take us to is allowed\r\n\t\t\t\t\t\tmodel.setDirection( Directions.UP );\r\n\t\t\t\t\t\treturn true; // Movement correction is ACTIVATED\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\tif ( posY % LEVEL_COMPONENT_GRANULARITY >= LEVEL_COMPONENT_GRANULARITY - movementCorrectionSensitivity ) // If movement correction can be activated in the other direction\r\n\t\t\t\t\tif ( canPlayerStepToPosition( posX, posY + LEVEL_COMPONENT_GRANULARITY ) // If the direction in which movement correction would take us is free..\r\n\t\t\t\t\t\t&& canPlayerStepToPosition( posX + LEVEL_COMPONENT_GRANULARITY, posY + LEVEL_COMPONENT_GRANULARITY ) ) { // ...and and the position where the movement correction wants to take us to is allowed\r\n\t\t\t\t\t\tmodel.setDirection( Directions.DOWN );\r\n\t\t\t\t\t\treturn true; // Movement correction is ACTIVATED\r\n\t\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t// The second kind of movement correction\r\n\t\t\telse { // We could move the specified direction, but we have a side obstrucion and we're closer than LEVEL_COMPONENT_GRANULARITY/2 \r\n\t\t\t\tif ( posY % LEVEL_COMPONENT_GRANULARITY < LEVEL_COMPONENT_GRANULARITY / 2 )\r\n\t\t\t\t\tif ( !canPlayerStepToPosition( posX + LEVEL_COMPONENT_GRANULARITY, posY - LEVEL_COMPONENT_GRANULARITY ) ) {\r\n\t\t\t\t\t\tmodel.setDirection( Directions.DOWN );\r\n\t\t\t\t\t\treturn true; // Movement correction is ACTIVATED\r\n\t\t\t\t\t}\r\n\t\t\t\tif ( posY % LEVEL_COMPONENT_GRANULARITY > LEVEL_COMPONENT_GRANULARITY / 2 )\r\n\t\t\t\t\tif ( !canPlayerStepToPosition( posX + LEVEL_COMPONENT_GRANULARITY, posY + LEVEL_COMPONENT_GRANULARITY ) ) {\r\n\t\t\t\t\t\tmodel.setDirection( Directions.UP );\r\n\t\t\t\t\t\treturn true; // Movement correction is ACTIVATED\r\n\t\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\r\n\t\treturn false; // No movement correction have to be used\r\n\t}", "title": "" }, { "docid": "3413c20be50efcd46277dfefff6fca88", "score": "0.65864855", "text": "@Test\n public void testTurn3() throws InvalidMovementException {\n System.out.println(\"turn\");\n char turnCommandA = 'L';\n rover.turn(turnCommandA);\n rover.turn(turnCommandA);\n rover.turn(turnCommandA);\n rover.turn(turnCommandA);\n Rover.Heading expt = Rover.Heading.NORTH;\n assertEquals(expt, rover.getDir());\n }", "title": "" }, { "docid": "2fc0b3ae16253c48444512de0412b1a9", "score": "0.65476054", "text": "@Test\n public void getDirectionReturnsSameValue()\n {\n String dir = \"NORTH\";\n Door testDoor = new Door(null, dir, null);\n\n assertEquals(dir, testDoor.getDirection());\n }", "title": "" }, { "docid": "9738e25decfe372201dd66803c199d1c", "score": "0.6476933", "text": "@Test\n public void testTurn4() throws InvalidMovementException {\n System.out.println(\"turn\");\n char turnCommandA = 'R';\n rover.turn(turnCommandA);\n rover.turn(turnCommandA);\n rover.turn(turnCommandA);\n rover.turn(turnCommandA);\n Rover.Heading expt = Rover.Heading.NORTH;\n assertEquals(expt, rover.getDir());\n }", "title": "" }, { "docid": "2afe5943c6a356ab7ae94828870b5bae", "score": "0.6467966", "text": "@Test\r\n public void testChangeDirection() throws AssignmentException {\r\n System.out.println(\"ChangeDirection\");\r\n acc.ChangeDirection(200, airplane);\r\n Assert.assertEquals(\"Direction was expected to change to 200\", 200.0, airplane.getAimedDirection());\r\n \r\n }", "title": "" }, { "docid": "f4ba5691dec388ce20240d8c361a9575", "score": "0.6467679", "text": "@Points(2)\r\n @Test public void testTurnRight(){\r\n\tDirection original = fixture.getDirection();\r\n\tfixture.turnRight();\r\n\tassertEquals(original.right(), fixture.getDirection());\r\n }", "title": "" }, { "docid": "0f55c4dedefc221e93581b655526fc77", "score": "0.64057964", "text": "@Test\n public void getDirection() throws Exception {\n PathFinderGoogle pf = new PathFinderGoogle();\n assertNull(pf.getDirection());\n LatLng sour = new LatLng(52.333636,4.869611);\n LatLng des = new LatLng(52.320891,4.875542);\n pf.getDirection(sour,des);\n assertNotNull(pf.getDirection().routes);\n }", "title": "" }, { "docid": "80e8f6a0881209370ea203b9ad132298", "score": "0.63833016", "text": "public static int validateDirection(int dir) {\n \t\tfor (int i = 0; i < directions.length; i++)\n \t\t\tif (dir == directions[i])\n \t\t\t\treturn dir;\n \n \t\treturn ((dir % 4) + 4) % 4; //This is in case it's negative\n \t}", "title": "" }, { "docid": "c8ee20995bd12b04954d89cedaf2f4f8", "score": "0.6375011", "text": "boolean getDirection();", "title": "" }, { "docid": "65bec0258dfc1dcc7a4845855e27f67c", "score": "0.6328232", "text": "public double direction() {\n if (x > 0) {\n return Math.atan(y / x);\n } else if (x < 0) {\n return Math.atan(y / x) + Math.PI;\n } else {\n if (y > 0) {\n return Math.PI / 2;\n } else if (y < 0) {\n return 3 * Math.PI / 2;\n } else {\n throw new ArithmeticException(\"A zero vector has no direction\");\n }\n }\n }", "title": "" }, { "docid": "86aa52de2222b099472186094f4fb519", "score": "0.63216275", "text": "public void testGetTargetCoord() throws Exception {\n \tint x = 0;\n \tint y = 0;\n \tint[] output;\n \tint[] expectedOutput;\n \t\n \tKing king = new King(\"R\", x, y);\n \t\n \t//left up\n \toutput = king.getTargetCoord(true, true, 1);\n \texpectedOutput = new int[] {-1, -1, 1, 3};\n \tassertTrue(Arrays.equals(expectedOutput, output));\n \t\n \t//left down\n \toutput = king.getTargetCoord(true, false, 1);\n \texpectedOutput = new int[] {1, -1, 1, 4};\n \tassertTrue(Arrays.equals(expectedOutput, output));\n \t\n \t//right up\n \toutput = king.getTargetCoord(false, true, 1);\n \texpectedOutput = new int[] {-1, 1, 1, 5};\n \tassertTrue(Arrays.equals(expectedOutput, output));\n \t\n \t//right down\n \toutput = king.getTargetCoord(false, false, 1);\n \texpectedOutput = new int[] {1, 1, 1, 6};\n \tassertTrue(Arrays.equals(expectedOutput, output));\n \t\n \tking = new King(\"R\", 3, 3);\n \t//left up\n \toutput = king.getTargetCoord(true, true, 2);\n \texpectedOutput = new int[] {1, 1, 2, 3};\n \tassertTrue(Arrays.equals(expectedOutput, output));\n \t\n \ttry {\n \t\tking = new King(\"R\", 0, 0);\n \t\tking.getTargetCoord(true, true, 3);\n \t\tassert(false);\n \t} catch(Exception e) {\n \t\tassert(true);\n \t}\n \t\n \ttry {\n \t\tking = new King(\"R\", 0, 0);\n \t\tking.getTargetCoord(true, true, 0);\n \t\tassert(false);\n \t} catch(Exception e) {\n \t\tassert(true);\n \t}\n \t\n \ttry {\n \t\tking = new King(\"R\", 0, 0);\n \t\tking.getTargetCoord(true, true, -1);\n \t\tassert(false);\n \t} catch(Exception e) {\n \t\tassert(true);\n \t}\n }", "title": "" }, { "docid": "9dc1cd37278e396aff9bb71a1b982a4d", "score": "0.62983054", "text": "private int checkDirections(GameCanvas canvas){\n\t\n\tint sum=0;\n\t\n\t\n\tfor(int i=0;i<=3;i++){//gia kathe kateuthunsi\n\t\tif(i==reverse(this.direction)){\n\t\t\tcontinue;\n\t\t}\n\t\tmove(1,i);\t\t\t\t\t\t\t\t//paw ena brosta\n\t\tif((canvas.getChar(this.x,this.y)!='#')&&(canvas.getChar(this.x, this.y)!='_'||!this.isOut)){ //an den sunanthsw toixo \n\t\t\tthis.validDir[sum]=i;\n\t\t\tsum++;\n\t\t}\n\t\tmove(-1,i);\t\t\t\t\t\t//epistrefw pisw\n\n\t\t}\n\treturn sum;\n}", "title": "" }, { "docid": "38872de9ca0f4bf01eac693f717852e1", "score": "0.6297816", "text": "@Test\r\n\tvoid testeVizinhoDistanciaPerpendicularEsquerda() {\r\n\t\tCampo vizinho = new Campo(3, 2);\t\t\r\n\t\tboolean resultado = campo.adicionarVizinho(vizinho);\t\t\r\n\t\tassertTrue(resultado);\r\n\t}", "title": "" }, { "docid": "cea8b9e5baa3ac7a03b4609e91f8ed61", "score": "0.62625045", "text": "@Test\n\tpublic final void testMove (){\n\t\tint[] startPos = getMaze().getMazeConfiguration().getStartingPosition();\n\t\tPoint startPoint = new Point( startPos[0], startPos[1] );\n\t\tassertEquals(\"Starts in position\", startPoint, getCurrentPoint());\n\t\tassertEquals(\"Starts facing to the east\", CardinalDirection.East, getCurrentDirection());\n\t\t\n\t\t// Test that moving 0 does nothing\n\t\tmove(0, false);\n\t\tassertEquals(\"Still in start\", startPoint, getCurrentPoint());\n\t\t\n\t\t// Test moving 1 forwards. Should successfully move\n\t\tmove(1, false);\n\t\tPoint followPos = new Point(startPoint);\n\t\tint[] followDir = null;\n\t\tfollowDir = CardinalDirection.East.getDirection();\n\t\tfollowPos.translate( followDir[0], followDir[1] );\n\t\tassertEquals(\"Now shifted position\", followPos, getCurrentPoint());\n\t\tassertEquals(\"Facing same way\", CardinalDirection.East, getCurrentDirection());\n\t\t\n\t\t// Test moving far forwards, should hit wall after moving 10 and be in followPos\n\t\tint attemptDistance = 100;\n\t\tmove(attemptDistance, false);\n\t\tint actualDistance = 10;\n\t\tfollowPos.translate(actualDistance * followDir[0], actualDistance * followDir[1]);\n\t\tassertEquals(\"Should have reached\", followPos, getCurrentPoint());\n\t\t\n\t\t// Verify that get for position and direction have not failed after movement\n\t\ttestGetPosition();\n\t\ttestGetDirection();\n\t}", "title": "" }, { "docid": "29b23fb2cd97427b03f109ebd486cba9", "score": "0.62006843", "text": "@Test\r\n public void testMoveDown() {\r\n System.out.println(\"moveDown\");\r\n\r\n int beforeMoveY = toTest.getY();\r\n\r\n toTest.moveDown();\r\n\r\n // test if moved\r\n Assert.assertSame(\"Cannon moved Accordingly\",\r\n beforeMoveY + GameConfig.MOVE_STEP,\r\n toTest.getY()\r\n );\r\n\r\n }", "title": "" }, { "docid": "e56afc8235cebecd1e3724dc9bcffb80", "score": "0.61997664", "text": "@Test\n\tpublic void test_MoveForward_FacingSouth()\n\t{\t\t\n\t\tint nExpected = 4;\t\n\t\t//facing south one step forward\n\t\tMoveCommand move = new MoveCommand();\n\t\tif(move.isExecutableFlag())\n\t\t\tmove.execute();\n\t\tassertEquals(--nExpected, robot.getPosY());\n\t\t\n\t\t//facing south one step forward\n\t\tmove = new MoveCommand();\n\t\tif(move.isExecutableFlag())\n\t\t\tmove.execute();\n\t\tassertEquals(--nExpected, robot.getPosY());\n\t\t\n\t\t//facing south one step forward\n\t\tmove = new MoveCommand();\n\t\tif(move.isExecutableFlag())\n\t\t\tmove.execute();\n\t\tassertEquals(--nExpected, robot.getPosY());\n\t\t\n\t\t//facing south one step forward\n\t\tmove = new MoveCommand();\n\t\tif(move.isExecutableFlag())\n\t\t\tmove.execute();\n\t\tassertEquals(--nExpected, robot.getPosY());\n\t\t\n\t\t//out of range\n\t\tmove = new MoveCommand();\n\t\tassertFalse(move.isExecutableFlag());\n\t\tif(move.isExecutableFlag())\n\t\t\tmove.execute();\n\t\tassertEquals(nExpected, robot.getPosY());\n\t}", "title": "" }, { "docid": "f87c586e587ade7b8653d0f03f977713", "score": "0.61646694", "text": "@Test\n public void staticMethods() throws Exception {\n int[] num = {-5,-4,-3,-2,-1,0,1,2,3,4,5};\n int[] direction = {3,0,1,2,3,0,1,2,3,0,1};\n for (int i=0; i<11; i++) {\n assertEquals(Room.normalizeDirection(num[i]),direction[i]);\n }\n }", "title": "" }, { "docid": "bf455c688551eb93f4ee2e1eda65b72b", "score": "0.6163085", "text": "public void testSetDirectionality() {\n // Default is RelationStep.DIRECTIONS_BOTH.\n assertTrue(instance.getDirectionality() == RelationStep.DIRECTIONS_BOTH);\n\n // Invalid value, should throw IllegalArgumentException.\n try {\n instance.setDirectionality(-1);\n fail(\"Invalid value, should throw IllegalArgumentException\");\n } catch (IllegalArgumentException e) {}\n\n instance.setDirectionality(RelationStep.DIRECTIONS_SOURCE);\n assertTrue(instance.getDirectionality() == RelationStep.DIRECTIONS_SOURCE);\n\n BasicRelationStep result\n = instance.setDirectionality(RelationStep.DIRECTIONS_DESTINATION);\n assertTrue(instance.getDirectionality() == RelationStep.DIRECTIONS_DESTINATION);\n assertTrue(result == instance);\n }", "title": "" }, { "docid": "d74af98f675a7b91867b1fb293b1f7a3", "score": "0.6160993", "text": "@Test\n void getRunwayPosition_stopWayNoClearwayLower() {\n PhysicalRunway runway = Runways.stopWayNoClearwayLower();\n ConstantPositionCalculator positionCalculator = runway.getConstantPositionCalculator();\n ConstantLengthCalculator lengthCalculator = runway.getConstantLengthCalculator();\n int expectedPosition = lengthCalculator.getRunwayMarginLength(RunwaySide.LOWER_THRESHOLD);\n int actualPosition = positionCalculator.getRunwayPosition(RunwaySide.LOWER_THRESHOLD);\n\n assertEquals(expectedPosition, actualPosition);\n }", "title": "" }, { "docid": "4647ab4cd3767ff9519ac91e507f4378", "score": "0.6155847", "text": "int getDirection();", "title": "" }, { "docid": "4647ab4cd3767ff9519ac91e507f4378", "score": "0.6155847", "text": "int getDirection();", "title": "" }, { "docid": "2cee1f7f65e1f08eaf1ed139d80c3e45", "score": "0.6142184", "text": "int getCurrentDirection();", "title": "" }, { "docid": "312f4dd65f2268a96aaa6a4b1ca6d341", "score": "0.61317885", "text": "@Test\n void getRunwayPosition_noStopWayNoClearwayLower() {\n PhysicalRunway runway = Runways.noStopWayNoClearway();\n ConstantPositionCalculator positionCalculator = runway.getConstantPositionCalculator();\n ConstantLengthCalculator lengthCalculator = runway.getConstantLengthCalculator();\n int expectedPosition = lengthCalculator.getRunwayMarginLength(RunwaySide.LOWER_THRESHOLD);\n int actualPosition = positionCalculator.getRunwayPosition(RunwaySide.LOWER_THRESHOLD);\n\n assertEquals(expectedPosition, actualPosition);\n }", "title": "" }, { "docid": "067d716a6cd64b80b18c3a05df9e2db5", "score": "0.60984606", "text": "private boolean canMove( String direction )\n {\n if ( direction.equals( \"right\" ) && ( x + 20 ) / 20 + 1 <= maze[0].length\n && maze[( y - 10 ) / 20 + 1][( x + 20 ) / 20] != 1 && y % 20 == 0 )\n {\n return true;\n }\n else if ( direction.equals( \"left\" ) && ( x / 20 ) >= 0\n && maze[( y - 10 ) / 20 + 1][( x - 5 ) / 20] != 1 && y % 20 == 0 )\n {\n return true;\n }\n else if ( direction.equals( \"up\" ) && ( y - 10 ) / 20 + 1 >= 0\n && maze[( y - 5 ) / 20][( x - 10 ) / 20 + 1] != 1 && x % 20 == 0 )\n {\n return true;\n }\n else if ( direction.equals( \"down\" ) && ( y + 40 ) / 20 + 1 <= maze.length\n && maze[( y + 20 ) / 20][( x - 10 ) / 20 + 1] != 1\n && maze[( y + 20 ) / 20][( x - 10 ) / 20 + 1] != 4 && x % 20 == 0 )\n {\n return true;\n }\n return false;\n }", "title": "" }, { "docid": "ce05fae22f4226d44ac2c65ba70527fd", "score": "0.6095521", "text": "private int inputDirection(boolean left, boolean right) {\n\t\tif (left == right) {\n\t\t\treturn 0;\n\t\t} else if (left) {\n\t\t\treturn -1;\n\t\t}\n\t\t//Logically right must be true\n\t\treturn 1;\n\t}", "title": "" }, { "docid": "88f173f50f7d56eedc914f2a18210b97", "score": "0.607236", "text": "@Test(expected=ArithmeticException.class)\n\tpublic void testLengthDirXNegative()\n\t{\n\t\tMathMethods.lengthDirX(-1, 0);\n\t\tMathMethods.lengthDirX(-1, 90);\n\t\tMathMethods.lengthDirX(-1, 180);\n\t\tMathMethods.lengthDirX(-1, 1337);\n\t}", "title": "" }, { "docid": "5214a600b25a562b709214a145ab8425", "score": "0.60700715", "text": "@Test(expected=ArithmeticException.class)\n\tpublic void testLengthDirYNegative()\n\t{\n\t\tMathMethods.lengthDirY(-1, 0);\n\t\tMathMethods.lengthDirY(-1, 90);\n\t\tMathMethods.lengthDirY(-1, 180);\n\t\tMathMethods.lengthDirY(-1, 1337);\n\t}", "title": "" }, { "docid": "c9701164ddf707a77696ad30cd361b74", "score": "0.60199046", "text": "@Test\r\n public void testMove() {\r\n System.out.println(\"move\");\r\n\r\n int beforeMoveY = toTest.getY();\r\n\r\n toTest.setmoveDown(true);\r\n\r\n toTest.move();\r\n toTest.move();\r\n // test if moved\r\n Assert.assertSame(\"Cannon moved Accordingly\",\r\n beforeMoveY + GameConfig.MOVE_STEP + GameConfig.MOVE_STEP,\r\n toTest.getY()\r\n );\r\n }", "title": "" }, { "docid": "d702cba3b4bb5097808327ce5a7524f4", "score": "0.60133594", "text": "private double parseDirection(GHOST g) {\n\t\tint[] direction_vector = {movements.get(g).get(MOVE.RIGHT)-movements.get(g).get(MOVE.LEFT), movements.get(g).get(MOVE.UP)-movements.get(g).get(MOVE.DOWN)};\n\t\t\n\t\tif (direction_vector[0] == 0 && direction_vector[1] == 0) return -1;\n\t\t\n\t\t// Calculamos el angulo que forma la suma de todos los vectores dirección con el eje Y (vector [0,1])\n\t\t\n\t\tdouble cos_a = (/*direction_vector[0] * 0 +*/ direction_vector[1] * 1) / (Math.sqrt(Math.pow(direction_vector[0], 2) + Math.pow(direction_vector[1], 2)) /** 1*/); // (a * b) / mod(a) * mod(b)\n\n\t\tdouble angle = Math.acos(cos_a);\n\t\tdouble dir = (100*angle)/ (2*Math.PI);\n\t\t\n\t\tif (direction_vector[0] < 0) dir = 100 - dir;\n\t\t\n\t\treturn dir;\n\t}", "title": "" }, { "docid": "9b85fb3342143b40ea49cbdb41ccadfb", "score": "0.6012489", "text": "@Override\n @Test\n public void testMovement() {\n getTestUnit().moveTo(getField().getCell(2, 2));\n assertEquals(new Location(0, 0), getTestUnit().getLocation());\n\n getTestUnit().moveTo(getField().getCell(0, 2));\n assertEquals(new Location(0, 2), getTestUnit().getLocation());\n\n getField().getCell(0, 1).setUnit(getTargetAlpaca());\n getTestUnit().moveTo(getField().getCell(0, 1));\n assertEquals(new Location(0, 2), getTestUnit().getLocation());\n }", "title": "" }, { "docid": "941dd03330de49bd39379742ad7974fa", "score": "0.6004213", "text": "@Test\n public void retTotalDistance() throws Exception {\n PathFinderGoogle pf = new PathFinderGoogle();\n assertNull(pf.retTotalDistance());\n LatLng sour = new LatLng(52.333636,4.869611);\n LatLng des = new LatLng(52.320891,4.875542);\n pf.getDirection(sour,des);\n assertEquals(new Double(2292.0), pf.retTotalDistance());\n }", "title": "" }, { "docid": "3b2a9ee027f5b1f5a2808615d656fb87", "score": "0.59992844", "text": "public int chooseMoveDirection()\n\t{\n\t\tif(this.getDirectionFacing() == 'S')\n\t\t{\n\t\t\t//this will check if it can go straight\n\t\t\tif(checkCell(this.getCurrentRow() + 1, this.getCurrentColumn()) == true)\n\t\t\t{\n\t\t\t\tdirection = 1;\n\t\t\t\tthis.setDirectionFacing('S');\n\t\t\t}\n\t\t\t//if it can't go straight, it will go right, West\n\t\t\telse if(checkCell(this.getCurrentRow(), this.getCurrentColumn() - 1) == true)\n\t\t\t{\n\t\t\t\tdirection = 2;\n\t\t\t\tthis.setDirectionFacing('W');\n\t\t\t}\n\t\t\t//if it cannot move straight or right, it will try to move left, east\n\t\t\telse if(checkCell(this.getCurrentRow(), this.getCurrentColumn() + 1) == true)\n\t\t\t{\n\t\t\t\tdirection = 3;\n\t\t\t\tthis.setDirectionFacing('E');\n\t\t\t}\n\t\t\t//as a last resort, it will back up\n\t\t\telse if(checkCell(this.getCurrentRow() - 1, this.getCurrentColumn()) == true)\n\t\t\t{\n\t\t\t\tdirection = 0;\n\t\t\t\tthis.setDirectionFacing('N');\n\t\t\t}\n\t\t}\n\t\t/**\n\t\t * this block of code determines which direction the robot will move based on it facing north\n\t\t */\n\t\telse if(this.getDirectionFacing() == 'N')\n\t\t{\n\t\t\t//this will check if it can go straight\n\t\t\tif(checkCell(this.getCurrentRow() - 1, this.getCurrentColumn()) == true)\n\t\t\t{\n\t\t\t\tdirection = 0;\n\t\t\t\tthis.setDirectionFacing('N');\n\t\t\t}\n\t\t\t//if it cannot move straight, it will try to move right\n\t\t\telse if(checkCell(this.getCurrentRow(), this.getCurrentColumn() + 1) == true)\n\t\t\t{\n\t\t\t\tdirection = 3;\n\t\t\t\tthis.setDirectionFacing('E');\n\t\t\t}\n\t\t\t//if it cannot move straight or right, it will try to move left, west\n\t\t\telse if(checkCell(this.getCurrentRow(), this.getCurrentColumn() - 1) == true)\n\t\t\t{\n\t\t\t\tdirection = 2;\n\t\t\t\tthis.setDirectionFacing('W');\n\t\t\t}\n\t\t\t//as a last resort, it will back up\n\t\t\telse if(checkCell(this.getCurrentRow() + 1, this.getCurrentColumn()) == true)\n\t\t\t{\n\t\t\t\tdirection = 1;\n\t\t\t\tthis.setDirectionFacing('S');\n\t\t\t}\n\t\t}\n\n\t\t/**\n\t\t * this block of code determines which direction the robot will move based on it facing west\n\t\t */\n\t\telse if(this.getDirectionFacing() == 'W')\n\t\t{\n\t\t\t//this will see if it can move straight\n\t\t\tif(checkCell(this.getCurrentRow(), this.getCurrentColumn() - 1) == true)\n\t\t\t{\n\t\t\t\tdirection = 2;\n\t\t\t\tthis.setDirectionFacing('W');\t\n\t\t\t}\n\t\t\t//if it cannot move straight, it will try to move right\n\t\t\telse if(checkCell(this.getCurrentRow() - 1, this.getCurrentColumn()) == true)\n\t\t\t{\n\t\t\t\tdirection = 0;\n\t\t\t\tthis.setDirectionFacing('N');\n\t\t\t}\n\t\t\t//if it cannot move straight or right, it will try to move left, south\n\t\t\telse if(checkCell(this.getCurrentRow() + 1, this.getCurrentColumn()) == true)\n\t\t\t{\n\t\t\t\tdirection = 1;\n\t\t\t\tthis.setDirectionFacing('S');\n\t\t\t}\n\t\t\t//as a last resort, it will back up\n\t\t\telse if(checkCell(this.getCurrentRow(), this.getCurrentColumn() + 1) == true)\n\t\t\t{\n\t\t\t\tdirection = 3;\n\t\t\t\tthis.setDirectionFacing('E');\n\t\t\t}\n\t\t}\n\n\t\t/**\n\t\t * this block of code determines which direction the robot will move based on it facing east\n\t\t */\n\t\telse if(this.getDirectionFacing() == 'E')\n\t\t{\n\t\t\t//this will see if it can move straight\n\t\t\tif(checkCell(this.getCurrentRow(), this.getCurrentColumn() + 1) == true)\n\t\t\t{\n\t\t\t\tdirection = 3;\n\t\t\t\tthis.setDirectionFacing('E');\n\t\t\t}\n\t\t\t//if it cannot move straight, it will try to move right\n\t\t\telse if(checkCell(this.getCurrentRow() + 1, this.getCurrentColumn()) == true)\n\t\t\t{\n\t\t\t\tdirection = 1;\n\t\t\t\tthis.setDirectionFacing('S');\n\t\t\t}\n\t\t\t//if it cannot move straight or right, it will try to move left, north\n\t\t\telse if(checkCell(this.getCurrentRow() - 1, this.getCurrentColumn()) == true)\n\t\t\t{\n\t\t\t\tdirection = 0;\n\t\t\t\tthis.setDirectionFacing('N');\n\t\t\t}\n\t\t\t//as a last resort, it will back up\n\t\t\telse if(checkCell(this.getCurrentRow(), this.getCurrentColumn() - 1) == true)\n\t\t\t{\n\t\t\t\tdirection = 2;\n\t\t\t\tthis.setDirectionFacing('W');\n\t\t\t}\n\t\t}\n\n\t\treturn direction;\n\t}", "title": "" }, { "docid": "f773e59a0a2ca3964dc87fc1a9c583bd", "score": "0.59852666", "text": "@Test\n public void testLand() throws Exception {\n landedR.land(new Coordinates(0,0), new LandSensor(new Random()));\n Assert.assertEquals(\"On devrait avoir une position de 0,0\", 0, landedR.getXposition());\n Assert.assertEquals(\"On devrait avoir une position de 0,0\", 0, landedR.getYposition());\n Assert.assertEquals(\"On devrait faire face au nord\", Direction.NORTH, landedR.getDirection());\n\n }", "title": "" }, { "docid": "9bb609277bc48dc3176ed585341ce224", "score": "0.59623104", "text": "String getDir(){\n\t\tint dir = (int)(Math.random()*9);\n\t\tSystem.out.println(dir);\n\t\tif(dir <= 2){\n\t\t\treturn \"up\";\n\t\t\t//System.out.println(\"up\");\n\t\t}\n\t\telse if(dir <= 4){\n\t\t\treturn \"down\";\n\t\t\t//System.out.println(\"down\");\n\t\t}\n\t\telse if(dir <= 6){\n\t\t\treturn \"left\";\n\t\t\t//System.out.println(\"left\");\n\t\t}\n\t\telse if(dir <= 8){\n\t\t\treturn \"right\";\n\t\t\t//System.out.println(\"right\");\n\t\t}\n\t\telse{\n\t\t\tSystem.out.println(\"error picking direction\");\n\t\t\treturn \"error\";\n\t\t}\n\t}", "title": "" }, { "docid": "855595e2a06e22a07a3220c12a4a0314", "score": "0.5957844", "text": "public boolean setDirection(double d) {\n\t\t\r\n\t\tdouble degChange = d - pos.direction;\r\n\t\tdouble xrel, yrel, deg, mag;\r\n\t\tdouble xshift, yshift;\r\n\t\tfor (Entity ent: myEntities) {\r\n\t\t\txrel = ent.getXPos() - pos.xpos;\r\n\t\t\tyrel = ent.getYPos() - pos.ypos;\r\n\t\t\tdeg = getDegDiff(xrel, yrel) + degChange;\r\n\t\t\tmag = getDist(ent.getXPos(), ent.getYPos());\r\n\t\t\txshift = mag * Math.cos(deg);\r\n\t\t\tyshift = mag * Math.sin(deg);\r\n\t\t\tif (!ent.canPassType(xshift-xrel, yshift-yrel, type)) {\r\n\t\t\t\t//System.out.println(ent + \" cannot turn into this type!?!\");\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (!squares.canPassRot(pos.xpos, pos.ypos, degChange, type, this)) {\r\n\t\t\t//System.out.println(\"Cannot turn: collision problems?!?\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t\r\n\t\tfor (Entity p : myEntities) {\r\n\t\t\tp.unprocRotate(pos.xpos, pos.ypos, degChange);\r\n\t\t}\r\n\t\r\n\t\tpos.direction = (d + 2 * Math.PI) % (2 * Math.PI);\r\n\t\treturn true;\r\n\t}", "title": "" }, { "docid": "296922ca04a1a04182decebd5c947cf6", "score": "0.59562916", "text": "public void testSetGetDirection()\n\t{\n\t\t// Default case\n\t\tassertNull(\"The retrieved Element name when unset should be null\", fFaultReference.getDirection());\n\t\t\n\t\tfFaultReference.setDirection(Direction.IN);\n\t\tassertEquals(\"The retrieved FaultReference direction is not that which was set\", \n\t\t\t\tDirection.IN, fFaultReference.getDirection());\n\t}", "title": "" }, { "docid": "a77939f89cfaac914a0dd1ccacb0dda5", "score": "0.59523255", "text": "private void directionToLocation() {\n\t\tif (direction.equalsIgnoreCase(\"left\")) {\n\t\t\tlocationX = worldwidth - worldwidth;\n\t\t\tlocationY = (int) (Math.random() * (worldheight));\n\n\t\t}\n\t\tif (direction.equalsIgnoreCase(\"right\")) {\n\t\t\tlocationX = worldwidth - size;\n\t\t\tlocationY = (int) (Math.random() * (worldheight));\n\n\t\t}\n\t\tif (direction.equalsIgnoreCase(\"up\")) {\n\t\t\tlocationX = (int) (Math.random() * (worldwidth));\n\t\t\tlocationY = worldheight - worldheight;\n\n\t\t}\n\t\tif (direction.equalsIgnoreCase(\"down\")) {\n\t\t\tlocationX = (int) (Math.random() * (worldwidth));\n\t\t\tlocationY = worldheight - size;\n\t\t}\n\t}", "title": "" }, { "docid": "fb1c52e56199a08b7e0d37be28c37e2b", "score": "0.5951572", "text": "int getDirectionValue();", "title": "" }, { "docid": "878861cbbef1a593cdaa888d8e5191df", "score": "0.5947892", "text": "private static int checkWay(int[][] ladder, int y_pos, int x_pos, int n, String direction) {\n\t\tif(y_pos == 99) return n;\r\n\t\t\r\n\t\tif(x_pos > 0 && ladder[y_pos+1][x_pos-1] == 1 && (direction.equals(\"down\") || direction.equals(\"right\"))) {\r\n\t\t\tx_pos--;\r\n\t\t\treturn checkWay(ladder, y_pos, x_pos, n+1, \"right\");\r\n\t\t} else if(x_pos < 99 && ladder[y_pos+1][x_pos+1] == 1 && ( direction.equals(\"down\") || direction.equals(\"left\"))) {\r\n\t\t\tx_pos++;\r\n\t\t\treturn checkWay(ladder, y_pos, x_pos, n+1, \"left\");\r\n\t\t} else {\r\n\t\t\ty_pos++;\r\n\t\t\treturn checkWay(ladder, y_pos, x_pos, n+1, \"down\");\r\n\t\t}\r\n\t\t\r\n\t}", "title": "" }, { "docid": "66c129cb40317d7197dad1c7c909bb67", "score": "0.59336746", "text": "@Test\n\tpublic final void testDistanceToObstacle(){\n\t\tfor(Direction dir : Direction.values()){\n\t\t\tassertTrue(hasDistanceSensor(dir));\n\t\t}\n\t\t\n\t\tint startDistanceFromFront = 11;\n\t\tassertEquals(\"Back and side walls start directly adjacent\", 0, distanceToObstacle(Direction.BACKWARD));\n\t\tassertEquals(\"Back and side walls start directly adjacent\", 0, distanceToObstacle(Direction.LEFT));\n\t\tassertEquals(\"Back and side walls start directly adjacent\", 0, distanceToObstacle(Direction.RIGHT));\n\t\tassertEquals(\"Some distance away from wall in front\", startDistanceFromFront, distanceToObstacle(Direction.FORWARD));\n\t\t\n\t\tint firstMove = 2;\n\t\tmove(firstMove, false);\t\n\t\tassertEquals(\"Back wall some distance away\", firstMove, distanceToObstacle(Direction.BACKWARD));\n\t\tassertEquals(\"Side walls directly adjacent\", 0, distanceToObstacle(Direction.LEFT));\n\t\tassertEquals(\"Side walls directly adjacent\", 0, distanceToObstacle(Direction.RIGHT));\n\t\tassertEquals(\"Front wall some distance away\", startDistanceFromFront - firstMove,distanceToObstacle(Direction.FORWARD));\n\t\t\n\t\t// move the rest of the way to the end; short hallway should be open to the left\n\t\tmove(startDistanceFromFront - firstMove, false);\n\t\tint sideHallSize = 2;\n\t\tassertEquals(\"Back wall some distance away\", startDistanceFromFront, distanceToObstacle(Direction.BACKWARD));\n\t\tassertEquals(\"Side wall some distance away\", sideHallSize, distanceToObstacle(Direction.RIGHT)); // appears on left in GUI\n\t\tassertEquals(\"Opposite side wall directly adjacent\", 0, distanceToObstacle(Direction.LEFT));\n\t\tassertEquals(\"Front wall directly adjacent\", 0, distanceToObstacle(Direction.FORWARD));\n\t}", "title": "" }, { "docid": "335f0f1c6ed1bbe299cce92d6d9873fd", "score": "0.5931587", "text": "@Test\n\tpublic void testLengthDirXPositive()\n\t{\n\t\tassertTrue(MathMethods.lengthDirX(1, 0) == 1);\n\t\tassertTrue(MathMethods.lengthDirX(1, 180) == -1);\n\t\tassertEquals(Math.sqrt(2)/2, MathMethods.lengthDirX(1, 45), 0.0001);\n\t}", "title": "" }, { "docid": "ebaf14343680dba4b6a3a7c9b83cb467", "score": "0.59303474", "text": "@Test\n public void testOmittedOrientation() throws Exception {\n MemoryDataSetDriver destTable = new MemoryDataSetDriver(\n new String[]{\n ST_ShortestPathLength.DESTINATION},\n new Type[]{TypeFactory.createType(Type.INT)});\n destTable.addValues(new Value[]{ValueFactory.createValue(4)});\n destTable.addValues(new Value[]{ValueFactory.createValue(5)});\n\n DataSet[] tables = new DataSet[]{prepareEdges(), destTable};\n \n DataSet results = new ST_Accessibility()\n .evaluate(dsf,\n tables,\n new Value[]{\n ValueFactory.createValue(GraphSchema.WEIGHT)},\n new NullProgressMonitor());\n // Check results.\n Metadata md = results.getMetadata();\n int idIndex = md.getFieldIndex(GraphSchema.ID);\n int closestDestIndex = md.getFieldIndex(GraphSchema.CLOSEST_DESTINATION);\n int distToClosestIndex = md.getFieldIndex(\n GraphSchema.DIST_TO_CLOSEST_DESTINATION);\n for (int i = 0; i < results.getRowCount(); i++) {\n Value[] row = results.getRow(i);\n int id = row[idIndex].getAsInt();\n int closestDest = row[closestDestIndex].getAsInt();\n double distToClosest = row[distToClosestIndex].getAsDouble();\n if (id == 1) {\n assertEquals(closestDest, 4);\n assertEquals(distToClosest, 5.0, TOLERANCE);\n } else if (id == 2) {\n assertEquals(closestDest, 4);\n assertEquals(distToClosest, 2.0, TOLERANCE);\n } else if (id == 3) {\n assertEquals(closestDest, 5);\n assertEquals(distToClosest, 4.0, TOLERANCE);\n } else if (id == 4 || id == 5) {\n assertEquals(closestDest, id);\n assertEquals(distToClosest, 0.0, TOLERANCE);\n }\n }\n }", "title": "" }, { "docid": "5eee7d5563480c336de72456795ca6ea", "score": "0.5929629", "text": "@Test\n void getStopwayPosition_stopWayNoClearwayLower() {\n PhysicalRunway runway = Runways.stopWayNoClearwayLower();\n ConstantPositionCalculator positionCalculator = runway.getConstantPositionCalculator();\n int expectedPosition = positionCalculator.getRunwayPosition(RunwaySide.HIGHER_THRESHOLD);\n int actualPosition = positionCalculator.getStopwayPosition(RunwaySide.LOWER_THRESHOLD);\n\n assertEquals(expectedPosition, actualPosition);\n }", "title": "" }, { "docid": "8989401e7dca16af98ec23c36827fbdc", "score": "0.59288776", "text": "@Test\n void getRunwayPosition_noStopWayNoClearwayHigher() {\n PhysicalRunway runway = Runways.noStopWayNoClearway();\n ConstantPositionCalculator positionCalculator = runway.getConstantPositionCalculator();\n ConstantLengthCalculator lengthCalculator = runway.getConstantLengthCalculator();\n int expectedPosition = lengthCalculator.getRunwayMarginLength(RunwaySide.LOWER_THRESHOLD)\n + lengthCalculator.getRunwayLength();\n int actualPosition = positionCalculator.getRunwayPosition(RunwaySide.HIGHER_THRESHOLD);\n\n assertEquals(expectedPosition, actualPosition);\n }", "title": "" }, { "docid": "7585d92bdd4fed86d9a0e3989de79a9e", "score": "0.59189403", "text": "@Test\n void directionRolloverTest() throws IOException, ParseException {\n TurtleProgram program =\n new TurtleProgram(\"direction_rollover.txt\");\n\n program.interpret();\n assertEquals(90, program.getTurtle().direction());\n program.interpret();\n assertEquals(90, program.getTurtle().direction());\n program.interpret();\n assertEquals(120, program.getTurtle().direction());\n }", "title": "" }, { "docid": "f59f519637b0b28b31bdd6e167a9b1eb", "score": "0.59156376", "text": "@Test\n\tpublic void testLengthDirYPositive()\n\t{\n\t\tassertTrue(MathMethods.lengthDirY(1, 90) == 1);\n\t\tassertTrue(MathMethods.lengthDirY(1, 270) == -1);\n\t\tassertEquals(Math.sqrt(2)/2, MathMethods.lengthDirY(1, 45), 0.0001);\n\t}", "title": "" }, { "docid": "04875411eb2c7cc88a538f42aa814d56", "score": "0.5914886", "text": "double getDirectionY();", "title": "" }, { "docid": "58a469fec3c7996a64ae4328aeb4516d", "score": "0.5911008", "text": "protected int getDirection()\n {\n return direction;\n }", "title": "" }, { "docid": "1ee3b313863fdec4907e1aab416e6c4d", "score": "0.5900607", "text": "public abstract int getDirection();", "title": "" }, { "docid": "d26a63f3660087133c81263d2db0c786", "score": "0.5896134", "text": "private double getDirection()\r\n\t{\r\n\t\treturn _Body.getVelocity().toVector2().getAngle() * (180 / Math.PI);\r\n\t}", "title": "" }, { "docid": "4b4697e1e838969d3d4f453ff0ecb5c7", "score": "0.58957815", "text": "static boolean moveCorrect(String move) {\n\n /* System.out.println(\"Up: \" + finch.isBeakUp());\n System.out.println(\"Down: \" + finch.isBeakDown());\n System.out.println(\"Left: \" + finch.isLeftWingDown());\n System.out.println(\"Right: \" + finch.isRightWingDown()); \n */\n if (COMMANDS[0].equals(move))\n return finch.isBeakUp();\n else if (COMMANDS[1].equals(move))\n return finch.isBeakDown();\n else if (COMMANDS[2].equals(move))\n return finch.isLeftWingDown();\n else if (COMMANDS[3].equals(move))\n return finch.isRightWingDown();\n else\n return false;\n }", "title": "" }, { "docid": "2160cdfafefe83fac59a48aec8d0a3e2", "score": "0.58821076", "text": "public double direction() {\n return Math.atan2(this.getY(), this.getX());\n }", "title": "" }, { "docid": "a940d614bbc3f9ce6bb8a6e637be1dd3", "score": "0.58800006", "text": "@Test\n void getStopwayPosition_stopWayNoClearwayHigher() {\n PhysicalRunway runway = Runways.stopWayNoClearwayHigher();\n ConstantPositionCalculator positionCalculator = runway.getConstantPositionCalculator();\n ConstantLengthCalculator lengthCalculator = runway.getConstantLengthCalculator();\n int expectedPosition = positionCalculator.getRunwayPosition(RunwaySide.LOWER_THRESHOLD)\n - lengthCalculator.getStopwayLength(RunwaySide.HIGHER_THRESHOLD);\n int actualPosition = positionCalculator.getStopwayPosition(RunwaySide.HIGHER_THRESHOLD);\n\n assertEquals(expectedPosition, actualPosition);\n }", "title": "" }, { "docid": "27209e94ff19ba51ec039e7be9cc7e6d", "score": "0.58716196", "text": "String getDirection();", "title": "" }, { "docid": "27209e94ff19ba51ec039e7be9cc7e6d", "score": "0.58716196", "text": "String getDirection();", "title": "" }, { "docid": "1f233a9f62dff06108bf63d1aaf7cb80", "score": "0.5867269", "text": "public boolean isAbsoluteDistance();", "title": "" }, { "docid": "983f48405dd2344724397697aba4f71b", "score": "0.5858087", "text": "private int getDirection(Robot r, List<Coordonnees> l, String direction){ \n\t\tint dir=Integer.parseInt(direction);\n\t\twhile(dir>=r.getDeplacement().size() || dir<0){ // Contrainte de bornes\n\t\t\tSystem.out.println(\"Erreur, reessayez\");\n\t\t\tdirection=s.next();\n\t\t\tdir=Integer.parseInt(direction);\n\t\t}\n\t\treturn dir;\n\t}", "title": "" }, { "docid": "03da9d332cada1748ff49d2d93e99bf1", "score": "0.58573407", "text": "private boolean checkIsDirectionDEVE( Signalement signalement )\n {\n\n boolean isDirectionDEVE = false;\n List<Unit> listUnitsSector = _unitService.findBySectorId( signalement.getSecteur( ).getIdSector( ) );\n for ( Unit unit : listUnitsSector )\n {\n if ( ( unit.getIdParent( ) == 0 ) && ( unit.getIdUnit( ) == Integer.parseInt( SignalementConstants.UNIT_DEVE ) ) )\n {\n isDirectionDEVE = true;\n }\n }\n return isDirectionDEVE;\n }", "title": "" }, { "docid": "0775b677e81518e62e75ab3c094c4c9d", "score": "0.585337", "text": "private Direction isALegalDroneMove(Direction d, double newLong, double newLat, double currLong, double currLat, double[][] lineCoords, Sensor nearestSensor) {\n \n //checks if new position is in a NoFlyZone\n boolean inNFZ = nFZ.inNoFlyZone(newLong, newLat,lineCoords); \n \n //sets up a counter to check each possible direction has been counted \n var i = 0; \n //if so changes direction until it is not flying in a NoFlyZone\n \n while(inNFZ == true) {\n //increments direction by 10 \n d.setDirection((d.directionDegree+10)%360);\n var newCoords = calculateNewDronePosition(d,nearestSensor,currLong,currLat);\n lineCoords = getCoordsOfLine(currLong, currLat, newCoords[0], newCoords[1]); \n System.out.println(d.directionDegree); \n i ++; \n if(i > 36) {\n System.out.println(\"No more moves for this position, regress to previous move\" ); \n throw new IllegalArgumentException(\"no more moves\"); \n }\n newCoords = calculateNewDronePosition(d,nearestSensor,currLong,currLat);\n var inBounds = newCoords[0] < longitudeBounds[1] && newCoords[0] > longitudeBounds[0] && newCoords[1] < latitudeBounds[1] && newCoords[1] > latitudeBounds[0];\n //if its in bounds check its not in a no fly zone otherwise try another direction \n \n if(inBounds) {\n inNFZ = nFZ.inNoFlyZone(newCoords[0], newCoords[1],lineCoords); \n \n }\n \n }\n \n return d; \n \n }", "title": "" }, { "docid": "6d51a905dd91730c069fa44268fced93", "score": "0.5853102", "text": "@Test\n public void moveDownTest(){\n List<Lane> lanes = bridge.getLanes();\n Entity entity = new Entity();\n entity.setPosition(1, 8.2f);\n entity.setPosition(entity.getPosition().x, lanes.get(3 - 1).getMid() - (1.6f * (3 + 1)));\n assertEquals(6.6f, entity.getPosition().y);\n }", "title": "" }, { "docid": "ff2a3381c2d8a44869faf3443fb3094c", "score": "0.58489954", "text": "@Test\n void getStopwayPosition_noStopWayNoClearwayLower() {\n PhysicalRunway runway = Runways.noStopWayNoClearway();\n ConstantPositionCalculator positionCalculator = runway.getConstantPositionCalculator();\n int expectedPosition = positionCalculator.getRunwayPosition(RunwaySide.HIGHER_THRESHOLD);\n int actualPosition = positionCalculator.getStopwayPosition(RunwaySide.LOWER_THRESHOLD);\n\n assertEquals(expectedPosition, actualPosition);\n }", "title": "" }, { "docid": "0422cd233715d749f93ef7542490530a", "score": "0.58484447", "text": "@Test\n public void testMovementTandem() throws InvalidMovementException {\n Planet planet2 = new Planet(4, 4);\n rover.setPlanet(planet2);\n System.out.println(\"movement\");\n char turnCommand = 'R';\n char moveCommandA = 'F';\n rover.move(moveCommandA);\n rover.move(moveCommandA);\n rover.move(moveCommandA);\n rover.move(moveCommandA);\n rover.turn(turnCommand);\n rover.turn(turnCommand);\n rover.turn(turnCommand);\n rover.turn(turnCommand);\n rover.turn(turnCommand);\n rover.move(moveCommandA);\n String expt = \"1, 0, E\";\n assertEquals(expt, rover.toString());\n }", "title": "" }, { "docid": "01072d3c8d791be5294b183cc49f3ddc", "score": "0.5842842", "text": "@Test\n void getRunwayPosition_stopWayNoClearwayHigher() {\n PhysicalRunway runway = Runways.stopWayNoClearwayHigher();\n ConstantPositionCalculator positionCalculator = runway.getConstantPositionCalculator();\n ConstantLengthCalculator lengthCalculator = runway.getConstantLengthCalculator();\n int expectedPosition = lengthCalculator.getRunwayMarginLength(RunwaySide.LOWER_THRESHOLD)\n + lengthCalculator.getRunwayLength();\n int actualPosition = positionCalculator.getRunwayPosition(RunwaySide.HIGHER_THRESHOLD);\n\n assertEquals(expectedPosition, actualPosition);\n }", "title": "" }, { "docid": "3278cca21bb6bea1e7cd957285f03aa9", "score": "0.58330584", "text": "@Test\n\tpublic final void testRotate(){\n\t\tassertEquals(\"Starting facing east\", CardinalDirection.East, getCurrentDirection());\n\t\trotate(Turn.AROUND);\n\t\tassertEquals(\"Turnaround results in facing west\", CardinalDirection.West, getCurrentDirection());\n\t\trotate(Turn.LEFT); // in the GUI, this is a right turn\n\t\tassertEquals(\"Left from west is south (up in GUI)\", CardinalDirection.South, getCurrentDirection());\n\t\trotate(Turn.AROUND);\n\t\tassertEquals(\"Turnaround results in facing north (down in GUI)\", CardinalDirection.North, getCurrentDirection());\n\t\trotate(Turn.RIGHT); // in the GUI, this is a left turn\n\t\tassertEquals(\"Right from north (down in GUI) is east\", CardinalDirection.East, getCurrentDirection());\n\t}", "title": "" }, { "docid": "cc93971fcc67f26446bb4f0b9828c5eb", "score": "0.581358", "text": "private void confirmDir() {\n if (!(nextDir.copy().mult(-1).x == dir.x && nextDir.copy().mult(-1).y == dir.y))\n dir = nextDir.copy();\n }", "title": "" }, { "docid": "d60733324d8f6fe883ada545a11681bc", "score": "0.5806269", "text": "@Test\n public void testSameValueLeftVsRight() {\n assertEquals(\"Expected not same value\",false,RIGHT_FLIPPER.sameValue(LEFT_FLIPPER));\n }", "title": "" }, { "docid": "04109cae4d9e258622ef902d2ffb96bb", "score": "0.5805586", "text": "Direction getDirection();", "title": "" }, { "docid": "04109cae4d9e258622ef902d2ffb96bb", "score": "0.5805586", "text": "Direction getDirection();", "title": "" }, { "docid": "9433be05dea23ef26e35ca0afbda7694", "score": "0.5784628", "text": "@Test\n public void testGetPosition() {\n assertEquals(\"Expected position of 1,1\",new Vect(1,1), LEFT_FLIPPER.getPosition());\n }", "title": "" }, { "docid": "892e15bbf7f422b92ede9d0ae92b0aca", "score": "0.5780855", "text": "public void testGetDirectionality() {\n // Same as:\n testSetDirectionality();\n }", "title": "" }, { "docid": "ca1e8f8604f6f7108a46854e5f717090", "score": "0.57807934", "text": "@Test\n public void testCheckWithinDistance() {\n \tdouble[] pos1 = {0,0,0};\n \tdouble[] pos2 = {0,2,0};\n\n // check for objects within distance\n \tboolean isWithinDistance = Simulator.checkWithinDistance(pos1,pos2,3);\n \tassertEquals(isWithinDistance,true);\n\n // check for objects not within distance\n double[] pos3 = {4,4,0};\n isWithinDistance = Simulator.checkWithinDistance(pos1,pos3,3);\n assertEquals(isWithinDistance, false);\n\n }", "title": "" }, { "docid": "b6ee3235c8f7768a58d0d6e26b629f99", "score": "0.5763952", "text": "@Test\n void getClearwayPosition_noStopWayNoClearwayLower() {\n PhysicalRunway runway = Runways.noStopWayNoClearway();\n ConstantPositionCalculator positionCalculator = runway.getConstantPositionCalculator();\n int expectedPosition = positionCalculator.getRunwayPosition(RunwaySide.HIGHER_THRESHOLD);\n int actualPosition = positionCalculator.getClearwayPosition(RunwaySide.LOWER_THRESHOLD);\n\n assertEquals(expectedPosition, actualPosition);\n }", "title": "" }, { "docid": "48cd711870d9f6777c66448601f84617", "score": "0.5754835", "text": "private void updateDirection()\n\t{\n\t\tif (goingUp)\n\t\t{\n\t\t\tif (currentFloor < maxFloor)\n\t\t\t{\n\t\t\t\t// There is room to keep going up\n\t\t\t\tgoingUp = true;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tgoingUp = false;\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tif (currentFloor > 1)\n\t\t\t{\n\t\t\t\t// There is room to keep going down\n\t\t\t\tgoingUp = false;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tgoingUp = true;\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "71f70e49e8fdb4d89034c777a7f8761c", "score": "0.5750668", "text": "public synchronized int getDirection() {\treturn direction;\t}", "title": "" }, { "docid": "c7ab8c4b4f5951e77e9754e6c6556ebd", "score": "0.5741769", "text": "static boolean tryMove(Direction dir, float degreeOffset, int checksPerSide) throws GameActionException {\n\n // First, try intended direction\n if (!rc.hasMoved() && rc.canMove(dir)) {\n rc.move(dir);\n return true;\n }\n\n // Now try a bunch of similar angles\n //boolean moved = rc.hasMoved();\n int currentCheck = 1;\n\n while(currentCheck<=checksPerSide) {\n // Try the offset of the left side\n if(!rc.hasMoved() && rc.canMove(dir.rotateLeftDegrees(degreeOffset*currentCheck))) {\n rc.move(dir.rotateLeftDegrees(degreeOffset*currentCheck));\n return true;\n }\n // Try the offset on the right side\n if(! rc.hasMoved() && rc.canMove(dir.rotateRightDegrees(degreeOffset*currentCheck))) {\n rc.move(dir.rotateRightDegrees(degreeOffset*currentCheck));\n return true;\n }\n // No move performed, try slightly further\n currentCheck++;\n }\n\n // A move never happened, so return false.\n return false;\n }", "title": "" }, { "docid": "45ccafeed9f690765b210cf693aa8ebb", "score": "0.57395345", "text": "@Override\n protected boolean isFinished() {\n\n double RemainingDistance = dist - (Robot.driveSub.getRightEncoderDistance());\n System.out.println(RemainingDistance + \"Remaining Distance\");\n if(RemainingDistance <= 0)\n {\n System.out.println(\"finished move forward\");\n return true;\n }else{\n System.out.println(\"has moved:\" + (Robot.driveSub.getRightEncoderDistance()) + \"in\");\n\n return false;\n }\n }", "title": "" }, { "docid": "28ee28c3fde1a5c65bfe06ae65b0c633", "score": "0.5735539", "text": "@Test\r\n public void testGetDistance() {\r\n assertEquals(9, v5.getDistance());\r\n assertEquals(6 + 9, v4.getDistance());\r\n }", "title": "" }, { "docid": "475c8b7a59f9e77e98f62d95bec9175d", "score": "0.5728697", "text": "@Override\r\n protected boolean isFinished()\r\n {\n\r\n return this.goalTurnDistance >= 0\r\n && Robot.drivetrain.getRightDistance() >= this.goalTurnDistance\r\n || this.goalTurnDistance < 0 && Robot.drivetrain\r\n .getLeftDistance() >= this.goalTurnDistance;\r\n }", "title": "" }, { "docid": "c05b59592ba036fbd0606cc154bcd484", "score": "0.57244056", "text": "@Test\n public void testSameValueDiffPositions() {\n RIGHT_FLIPPER3.respondToTrigger(); \n assertEquals(\"Expected not same value\",false,RIGHT_FLIPPER.sameValue(RIGHT_FLIPPER3));\n }", "title": "" }, { "docid": "0629306c2a05e07f901b06149ec3a0f1", "score": "0.57172996", "text": "@Test\n public void testMove1() throws InvalidMovementException {\n System.out.println(\"move\");\n char moveCommand = 'F';\n rover.move(moveCommand);\n assertEquals(1, rover.getY());\n }", "title": "" }, { "docid": "95f366a86547b8d137675065f2e9ecab", "score": "0.5712799", "text": "public void checkKey(){\n if (Greenfoot.isKeyDown(\"right\")){\n direction = 3;\n moveRight();\n }\n if (Greenfoot.isKeyDown(\"left\")){\n direction = -3;\n moveLeft();\n }\n }", "title": "" }, { "docid": "eaac04ea726c2b3eebdaeb8d5b60cef0", "score": "0.5706835", "text": "private float get_direction_modifier()\n {\n if(curr_dir == DIRECTION.LEFT)\n return -1.f;\n else\n return 1.f;\n }", "title": "" }, { "docid": "961994027d9cbc68bbc347d26c3016a2", "score": "0.5703944", "text": "@Test\n void getStopwayPosition_noStopWayNoClearwayHigher() {\n PhysicalRunway runway = Runways.noStopWayNoClearway();\n ConstantPositionCalculator positionCalculator = runway.getConstantPositionCalculator();\n int expectedPosition = positionCalculator.getRunwayPosition(RunwaySide.LOWER_THRESHOLD);\n int actualPosition = positionCalculator.getStopwayPosition(RunwaySide.HIGHER_THRESHOLD);\n\n assertEquals(expectedPosition, actualPosition);\n }", "title": "" }, { "docid": "9646a211962af024cb5840b400b72592", "score": "0.5700046", "text": "protected static boolean _directionMatches(final IncomingMessageCall call, final MessageType msg) {\n return (Objects.equal(MsgDirection.IN, msg.getDirection()) || Objects.equal(MsgDirection.INOUT, msg.getDirection()));\n }", "title": "" } ]
94e09eb50f2822df76c8f0e261260e33
This method returns the contents of the specified template file.
[ { "docid": "868eb56dd820ae9b731f517bbf65d004", "score": "0.60938454", "text": "private String getTemplate(String scope, String fileName, String suffix) throws ScriptBrokerException {\n try {\n TemplateHelper template = new TemplateHelper(new File(this.templateDir,\n templatePrefix + \".\" + suffix).getPath());\n Map<String,String> values = new HashMap<String,String>();\n\n // setup the variables\n values.put(TemplateVariables.AUTHOR, SessionManager.getInstance().\n getSession().getUser().getName());\n values.put(TemplateVariables.DATE, new Date().toString());\n values.put(TemplateVariables.FILE_NAME,fileName);\n values.put(TemplateVariables.SCOPE,scope);\n values.put(TemplateVariables.PATH,scope.replaceAll(\"[.]\",\"/\") +\n File.separator + fileName);\n values.put(TemplateVariables.NAME,fileName.substring(0,fileName.lastIndexOf(\".\")));\n\n template.setParameters(values);\n return template.parse();\n } catch (Exception ex) {\n log.error(\"Failed to read in the template : \" + ex.getMessage(),ex);\n throw new ScriptBrokerException\n (\"Failed to read in the template : \" + ex.getMessage(),ex);\n }\n }", "title": "" } ]
[ { "docid": "357004d78b029da4e9c7b995ef004f55", "score": "0.7877129", "text": "java.lang.String getTemplateFile();", "title": "" }, { "docid": "8aedd08f912868f959a553ce042d5e27", "score": "0.763289", "text": "private static String getTemplateFileContents(String template_file) throws IOException {\n if (memcache.contains(TEMPLATE_KEY+template_file)){\n return (String) memcache.get(TEMPLATE_KEY+template_file);\n } else {\n String template = Files.toString(new File(template_file), Charsets.UTF_8);\n memcache.put(TEMPLATE_KEY+template_file, template);\n return template;\n }\n }", "title": "" }, { "docid": "5d67da6b8548c07e69aae9a17fdd818e", "score": "0.7400212", "text": "private static String getTemplate() {\n\t\tPath template = Paths.get(\".\", \"templates\", \"main.html\");\n\t\tbyte[] bytes;\n\n\t\ttry {\n\t\t\tbytes = Files.readAllBytes(template);\n\t\t}\n\t\tcatch (IOException ex) {\n\t\t\tbytes = new byte[0];\n\t\t}\n\n\t\treturn new String(bytes, Charset.forName(\"UTF8\"));\n\t}", "title": "" }, { "docid": "f33daacf57a82b4f09ac66a73959eb75", "score": "0.7399998", "text": "public static String readTemplate(String inputFile) {\r\n return templateReader.doRead(inputFile);\r\n }", "title": "" }, { "docid": "891d32a2a93ab43cc555851897a2c7bb", "score": "0.69942963", "text": "public File getTemplate()\n\t{\n\t\treturn template;\n\t}", "title": "" }, { "docid": "48297e3577ea3d68d2ac4a09b4dce605", "score": "0.68377566", "text": "public java.lang.String getTemplateFile() {\n java.lang.Object ref = templateFile_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n templateFile_ = s;\n }\n return s;\n }\n }", "title": "" }, { "docid": "e29500d01f165642d22a92f8c559d035", "score": "0.68341666", "text": "public java.lang.String getTemplateFile() {\n java.lang.Object ref = templateFile_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n templateFile_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "title": "" }, { "docid": "9f3e8cc954bf493dd52dfd7581fbdd86", "score": "0.67691135", "text": "public static String fileContentsToString(String file)\r\n\t{\r\n\t\tString contents = \"\";\r\n \r\n\t\tFile f = new File(file);\r\n \r\n\t\tif (f.exists())\r\n\t\t{\r\n\t\t\ttry\r\n\t\t\t{\r\n\t\t\t\tFileReader fr = new FileReader(f);\r\n\t\t\t\tint size = (int)f.length();\r\n\t\t\t\tint len = 0, off = 0;\r\n\t\t\t\tchar[] template = new char[size];\r\n\t\t\t\tdo\r\n\t\t\t\t{\r\n\t\t\t\t\tlen = fr.read(template, off, size - off);\r\n\t\t\t\t\tif(len > 0) off += len;\r\n\t\t\t\t} while(len > 0);\r\n\t\t\t\tcontents = new String(template);\r\n\t\t\t}\r\n\t\t\tcatch (Exception e)\r\n\t\t\t{\r\n\t\t\t\tSystem.out.println(e);\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n \r\n\t\treturn contents;\r\n\t}", "title": "" }, { "docid": "d56adff1d0426227b29615fc545245aa", "score": "0.6608862", "text": "public com.google.protobuf.ByteString\n getTemplateFileBytes() {\n java.lang.Object ref = templateFile_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n templateFile_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "title": "" }, { "docid": "fa9ff75c66f1bea68df08c8f1948a503", "score": "0.6579417", "text": "public com.google.protobuf.ByteString\n getTemplateFileBytes() {\n java.lang.Object ref = templateFile_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n templateFile_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "title": "" }, { "docid": "a32e316b68dbadf1d9b9b5f30c78b00a", "score": "0.6556085", "text": "String getTemplate();", "title": "" }, { "docid": "a32e316b68dbadf1d9b9b5f30c78b00a", "score": "0.6556085", "text": "String getTemplate();", "title": "" }, { "docid": "ad68bc995259cae4753046d5398ee462", "score": "0.65435576", "text": "com.google.protobuf.ByteString\n getTemplateFileBytes();", "title": "" }, { "docid": "160aa5bb09a5560f0ffb82b3bdd33665", "score": "0.6466708", "text": "private InputStream findTemplate(String path, String template)\n {\n try \n {\n File file = new File( path, template ); \n \n if ( file.canRead() )\n {\n return new BufferedInputStream(\n new FileInputStream(file.getAbsolutePath()));\n }\n else\n { \n return null;\n } \n }\n catch( FileNotFoundException fnfe )\n {\n /*\n * log and convert to a general Velocity ResourceNotFoundException\n */\n return null;\n }\n }", "title": "" }, { "docid": "28be5568df806608165936ba7ca37919", "score": "0.6403273", "text": "public StreamedContent getSearchTemplate() {\n\t\tString filePath = DeploymentConfiguration.configPath + File.separator + CatalogSearchConstant.SEARCH_TEMPLATE_NAME;\n\t\tFileInputStream in = null;\n\t\tStreamedContent searchTemplate = null;\n\t\ttry {\n\t\t\tin = new FileInputStream(filePath);\n\t\t\tif (in != null)\n\t\t\t\tsearchTemplate = new DefaultStreamedContent(in,\n\t\t\t\t\t\tDownloadUtil.getMimeType(CatalogSearchConstant.SEARCH_TEMPLATE_NAME),\n\t\t\t\t\t\tCatalogSearchConstant.SEARCH_TEMPLATE_NAME);\n\t\t} catch (FileNotFoundException e) {\n\t\t\tthis.showMessage(FacesMessage.SEVERITY_ERROR, ResourceMB.getText(\"wq.message.downloadfail\") + \".\");\n\t\t\tLOG.log(Level.SEVERE, \"File on this path \" + filePath + \" not found, Exception message: \" + e.getMessage(),\n\t\t\t\t\te);\n\t\t}\n\t\treturn searchTemplate;\n\t}", "title": "" }, { "docid": "7d4911f817acc1c72ebf5fca80ab9f5a", "score": "0.6312324", "text": "private String getFileContents() throws HtSemanticException {\n try (Scanner scanner = new Scanner(file)) {\n scanner.useDelimiter(\"\\\\Z\");\n return scanner.next();\n } catch (FileNotFoundException e) {\n throw new HtSemanticException(\"The file \" + file.getAbsolutePath() + \" does not exist.\");\n } catch (NoSuchElementException e) {\n return \"\";\n }\n }", "title": "" }, { "docid": "ae950e20466902ac0f7f053d2cbeea0b", "score": "0.63098675", "text": "private AsFile getTemplateFile(String temoplateFIleId, RequestMeta meta) {\n IBaseDataServiceDelegate baseService = (IBaseDataServiceDelegate) ServiceFactory\r\n .create(IBaseDataServiceDelegate.class, \"baseDataServiceDelegate\");\r\n\r\n AsFile asfile = baseService.getAsFileById(temoplateFIleId, meta);\r\n\r\n return asfile;\r\n }", "title": "" }, { "docid": "06896225df81b7621a0bb566406d8c35", "score": "0.62804824", "text": "@Override\r\n\tpublic void createFileContent() {\n\t\tfileContent = tp.getTemplate();\r\n\t}", "title": "" }, { "docid": "c149299f43d656c019d6e132783f8a29", "score": "0.62242484", "text": "private String getFileContents(String fileName) {\n FileReader in = null;\n try {\n File invoiceFile = new File(fileName);\n in = new FileReader(invoiceFile);\n BufferedReader br = new BufferedReader(in);\n String content = \"\";//to hold complete html content\n String text = \"\";//to hold a line\n while ((text = br.readLine()) != null) {//reading a single line\n content = content + text;\n }\n in.close();\n return content;\n } catch (IOException ex) {\n System.out.println(ex.toString());\n return null;\n } finally {\n try {\n in.close();//closing connection\n } catch (IOException ex) {\n System.out.println(ex.toString());\n }\n }\n }", "title": "" }, { "docid": "bcb6a4622c5af5af256293c4d396239b", "score": "0.6121536", "text": "private String readFileContent(Path file) {\n String content;\n try {\n content = Files.readString(file);\n } catch (IOException ioException) {\n throw new CompilerPluginException(\"Error occurred while reading the file \" + file.toString());\n }\n return content;\n }", "title": "" }, { "docid": "f56c54a4d707e8679e40680c4690a8e2", "score": "0.6032212", "text": "public void sendTemplateHtml(String templatePath);", "title": "" }, { "docid": "6cfde9444a2d0b8083bd832c95ec727e", "score": "0.6010419", "text": "String getTemplate(List<String> mailTemplateChain,\n String shopCode,\n String locale,\n String templateName,\n String ext) throws IOException;", "title": "" }, { "docid": "663c76ecbaff10c0e66d366c2ae02bbd", "score": "0.59934515", "text": "protected Document getTemplate() throws TransformException {\n\t\ttry {\n\t\t\treturn XMLUtils.getDocument(FileSystemReader.getInstance().getDssVerifyTemplate());\n\t\t} catch (ToolsException e) {\n\t\t\tString msg = Language.getMessage(LanguageKeys.TRAN_006);\n\t\t\tLOGGER.error(msg, e);\n\t\t\tthrow new TransformException(TransformException.TEMPLATE_ERROR, msg);\n\t\t}\n\t}", "title": "" }, { "docid": "6445df7f55b32b6d6175fe18f0e8c295", "score": "0.59929323", "text": "public synchronized InputStream getResourceStream(String templateName)\n throws ResourceNotFoundException\n {\n /*\n * Make sure we have a valid templateName.\n */\n if (templateName == null || templateName.length() == 0)\n {\n /*\n * If we don't get a properly formed templateName then\n * there's not much we can do. So we'll forget about\n * trying to search any more paths for the template.\n */\n throw new ResourceNotFoundException(\n \"Need to specify a file name or file path!\");\n }\n\n String template = StringUtils.normalizePath(templateName);\n if ( template == null || template.length() == 0 )\n {\n String msg = \"File resource error : argument \" + template + \n \" contains .. and may be trying to access \" + \n \"content outside of template root. Rejected.\";\n\n rsvc.error( \"FileResourceLoader : \" + msg );\n \n throw new ResourceNotFoundException ( msg );\n }\n\n /*\n * if a / leads off, then just nip that :)\n */\n if (template.startsWith(\"/\"))\n {\n template = template.substring(1);\n }\n\n int size = paths.size();\n for (int i = 0; i < size; i++)\n {\n String path = (String) paths.get(i);\n InputStream inputStream = findTemplate(path, template);\n \n if (inputStream != null)\n {\n /*\n * Store the path that this template came\n * from so that we can check its modification\n * time.\n */\n\n templatePaths.put(templateName, path);\n return inputStream;\n } \n }\n \n /*\n * We have now searched all the paths for\n * templates and we didn't find anything so\n * throw an exception.\n */\n String msg = \"FileResourceLoader Error: cannot find resource \" +\n template;\n \n throw new ResourceNotFoundException( msg );\n }", "title": "" }, { "docid": "9206d6ea1f6c1a9300636a270a8ab2aa", "score": "0.5942535", "text": "public File getTemplateLocation() {\n\t\t\n\t\treturn templateLocation;\n\t\t\n\t}", "title": "" }, { "docid": "de27b6b7c547b6be518a27397ada4454", "score": "0.5932565", "text": "public String getTemplate()\n {\n return template;\n }", "title": "" }, { "docid": "94e900ab62fc8b2012bbf9b5636e0e05", "score": "0.5920151", "text": "public final String getTemplateForMerge(File template) {\n\t\t// File pointer to base path\n\t\tFile base = new File(PackageUtil.getBaseTemplatePath());\n\t\t// Pass only filename relative to templatePath since\n\t\t// baseTemplatePath is already defined in Velocity.properties\n\t\treturn template.getAbsolutePath().replace(base.getAbsolutePath(), \"\");\n\t}", "title": "" }, { "docid": "99a9d3a4261ccd01ba2bfa66c6ac2283", "score": "0.5891089", "text": "public static String readContents(String filename){\t\t\n\t\ttry{\n\t\t\t\n\t\t\tBufferedReader reader = new BufferedReader(new FileReader(filename));\n\t\t\tStringBuilder sb = new StringBuilder();\n\n\t\t\tString line = null;\n\t\t\twhile ((line=reader.readLine()) != null) {\n\t\t\t sb.append(line);\n\t\t\t sb.append(\"\\n\");\n\t\t\t}\n\t\t\t\n\t\t\tcontents = sb.toString();\n\t\t}catch(Exception e){\n\t\t\tSystem.out.println(\"Error! File doesn't exist!\");\n\t\t}\n\t\t\n\t\treturn contents;\n\t\n\t}", "title": "" }, { "docid": "bc1a88c00dc85c1daa451e5f63078e47", "score": "0.587326", "text": "public Template getTestInputJsonFileTemplate(String filename) {\n try {\n return freemarkerCfg.getTemplate(\"test-resource/\" + filename);\n } catch (IOException e) {\n throw new RuntimeException(\n \"Failed to load handler test code template.\", e);\n }\n }", "title": "" }, { "docid": "6636745b8948ce3afefc30f83390f007", "score": "0.5840176", "text": "public static Template getTemplate() {\n return PGLOB.template;\n }", "title": "" }, { "docid": "bd50abe8bce241580318b97ab8fee019", "score": "0.5830825", "text": "HtmlTemplate loadTemplate( String strPath, String strTemplate, Locale locale, Object rootMap );", "title": "" }, { "docid": "935e15c298a9694df89427745f9e25d5", "score": "0.5788328", "text": "private static ArrayList<String> findContainersInTEMPLATE(String fileConatainerName)\r\n\t{\r\n\t\tFile dirTEMPLATE = new File(\"C:/CARMICHAEL/site_opt/content/current/private/templates\");\r\n\t\treturn findContainers(fileConatainerName, dirTEMPLATE);\r\n\t}", "title": "" }, { "docid": "ea3368be4c3117af4d8aa2a174e08539", "score": "0.5777136", "text": "public ArrayList<Template> loadTemplates(){\n\t\tArrayList<Template> templates = null;\r\n\t\t\r\n\t\ttry{\r\n\t\t\t\r\n\t\t\ttemplates = new ArrayList<Template>();\r\n\t\t\t\r\n\t\t\t// deserialize files in the folder\r\n\t\t\tFile templatesFolder = new File(\"./templates\");\r\n\t\t\tFile templateFiles[] = templatesFolder.listFiles();\r\n\t\t\t\r\n\t\t\tFileInputStream fileIn = null;\r\n\t\t\tObjectInputStream objectIn = null;\r\n\t\t\t\r\n\t\t\tfor(int i = 0; i < templateFiles.length; i++){\r\n\t\t\t\t\r\n\t\t\t\tfileIn = new FileInputStream(templateFiles[i]);\r\n\t\t\t\tobjectIn = new ObjectInputStream(fileIn);\r\n\t\t\t\tTemplate currentTemplate = (Template)objectIn.readObject();\r\n\t\t\t\t\r\n\t\t\t\tif(currentTemplate != null){\r\n\t\t\t\t\ttemplates.add(currentTemplate);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif(fileIn != null){\r\n\t\t\t\tfileIn.close();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif(objectIn != null){\r\n\t\t\t\tobjectIn.close();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t\r\n\t\t}catch(Exception e){\r\n\t\t\r\n\t\t\tSystem.err.println(e);\r\n\t\t\tSystem.exit(1);\r\n\t\t}\t\t\r\n\t\t\r\n\t\treturn templates;\r\n\t}", "title": "" }, { "docid": "c049a40b9e70750df16ec1090c563d87", "score": "0.5755959", "text": "public Template createTemplate(Reader templateSource);", "title": "" }, { "docid": "d8f89aeb3111575f8fbf1c9e559427ce", "score": "0.57147074", "text": "private static String[] getContents(File file) {\n\t\tStringBuilder contents = new StringBuilder();\n\t\tString root = EMPTY_STRING;\n\t\tString[] retVal = { EMPTY_STRING, EMPTY_STRING };\n\t\ttry {\n\t\t\tBufferedReader input = new BufferedReader(new FileReader(file));\n\t\t\ttry {\n\t\t\t\tString line = null; // not declared within while loop\n\t\t\t\t\n\t\t\t\t// the following only works if the crlf are inserted into the\n\t\t\t\t// xml document after each line.\n\t\t\t\twhile ((line = input.readLine()) != null) {\n\t\t\t\t\tif (line.indexOf(\"siteMap\") == -1\n\t\t\t\t\t\t\t&& line.indexOf(\"<?xml\") == -1) {\n\t\t\t\t\t\tcontents.append(line);\n\t\t\t\t\t\tcontents.append(NL);\n\t\t\t\t\t} else if (line.indexOf(\"<siteMap\") != -1) {\n\t\t\t\t\t\tint i = line.indexOf(\"root=\\\"\");\n\t\t\t\t\t\tif (i > -1) {\n\t\t\t\t\t\t\troot = line.substring(i + 6);\n\t\t\t\t\t\t\ti = root.indexOf(\"\\\">\");\n\t\t\t\t\t\t\troot = root.substring(0, i);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} finally {\n\t\t\t\tif (input != null)\n\t\t\t\t\tinput.close();\n\t\t\t}\n\t\t} catch (IOException ex) {\n\t\t\tex.printStackTrace();\n\t\t}\n\n\t\tretVal[0] = root;\n\t\tretVal[1] = contents.toString();\n\n\t\treturn retVal;\n\t}", "title": "" }, { "docid": "503dea17d32ed334f39cdd951e21d999", "score": "0.56969523", "text": "private static Templates loadTemplates()\n throws TransformerConfigurationException, IOException, InstantiationException, IllegalAccessException\n {\n TransformerFactory factory = net.sf.saxon.TransformerFactoryImpl.class.newInstance();\n\n // get the template as a resource.\n URLConnection urlConnection = Thread.currentThread().getContextClassLoader().getResource(\"org/xchain/framework/doclets/namespace-doclet.xsl\").openConnection();\n \n try {\n StreamSource streamSource = new StreamSource();\n streamSource.setInputStream(urlConnection.getInputStream());\n Templates templates = factory.newTemplates(streamSource);\n return templates;\n }\n finally {\n close(urlConnection.getInputStream());\n }\n }", "title": "" }, { "docid": "c9c578035119a17025a57d5cbdd95e7b", "score": "0.5695433", "text": "public String[] templatePath() {\n String temp = this.config.getLocalTempDir() + this.client.getTemplateType() + \".json\";\n String output_filePath = this.config.getLocalConfDir() + this.client.getTemplateType() + \"_tmp.json\";\n File fileObjInput = new File(temp);\n File fileObjOutput = new File(output_filePath);\n try {\n System.out.println(\"Preparing Template File\");\n BufferedReader br = new BufferedReader(new FileReader(fileObjInput));\n if (fileObjOutput.exists()) {\n fileObjOutput.delete();\n }\n PrintWriter out = new PrintWriter(fileObjOutput);\n String line = br.readLine();\n while (line != null) {\n if (line.contains(\"DATASETNAME\")) {\n line = line.replaceFirst(\"DATASETNAME\", this.client.getIndexName());\n }\n out.println(line);\n line = br.readLine();\n }\n out.close();\n br.close();\n } catch (IOException ex) {\n ex.printStackTrace();\n String[] tmp = new String[1];\n tmp[0] = \"Template Not Found\";\n return tmp;\n }\n String[] tmp = new String[2];\n tmp[0] = \"Template Created\";\n tmp[1] = output_filePath;\n return tmp;\n }", "title": "" }, { "docid": "708dd7cbc372adcb432a563a34bf068a", "score": "0.56919104", "text": "public static String readFileContents(File file) {\n StringBuilder scriptText = new StringBuilder();\n String newLine = System.getProperty(\"line.separator\");\n Scanner scanner = null;\n try {\n scanner = new Scanner(new FileInputStream(file));\n while (scanner.hasNextLine()) {\n scriptText.append(scanner.nextLine() + newLine);\n }\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } finally {\n scanner.close();\n }\n return scriptText.toString();\n }", "title": "" }, { "docid": "d4cf4c718fdedf7727c67229935028d1", "score": "0.56849456", "text": "public FileServiceInfoEntity getRegxTplContent(Map<String, String> variableMap);", "title": "" }, { "docid": "fd452392f196173cae90c22c6cc727ee", "score": "0.567814", "text": "private static String readContentFromFile(String fileName) {\r\n\t\tStringBuffer contents = new StringBuffer();\r\n\r\n\t\ttry {\r\n\t\t\t// use buffering, reading one line at a time\r\n\t\t\tBufferedReader reader = new BufferedReader(new FileReader(fileName));\r\n\t\t\ttry {\r\n\t\t\t\tString line = null;\r\n\t\t\t\twhile ((line = reader.readLine()) != null) {\r\n\t\t\t\t\tcontents.append(line);\r\n\t\t\t\t\tcontents.append(System.getProperty(\"line.separator\"));\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t} finally {\r\n\t\t\t\treader.close();\r\n\t\t\t}\r\n\t\t} catch (IOException ex) {\r\n\t\t\tex.printStackTrace();\r\n\t\t}\r\n\t\treturn contents.toString();\r\n\t}", "title": "" }, { "docid": "0076757899fdc9cf1c3ed11a0e35fd9e", "score": "0.5675678", "text": "private String readTomlContent(Path projectPath, boolean isSingleFileProject) {\n Path configTomlPath;\n if (isSingleFileProject) {\n configTomlPath = projectPath.getParent();\n } else {\n configTomlPath = projectPath;\n }\n return readFileContent(configTomlPath.resolve(CONFIGURATION_TOML));\n }", "title": "" }, { "docid": "d6c48ac8e2e47a4b6f64cdc28d7b1632", "score": "0.56738627", "text": "public interface MailTemplateResourcesProvider {\n\n /**\n * Get template as string.\n *\n * @param mailTemplateChain path to template folder\n * @param shopCode shop code\n * @param locale locale\n * @param templateName template name\n * @param ext file extension\n *\n * @return template if exists\n *\n * @throws java.io.IOException in case of io errors.\n */\n String getTemplate(List<String> mailTemplateChain,\n String shopCode,\n String locale,\n String templateName,\n String ext) throws IOException;\n\n /**\n * Get template as string.\n *\n * @param mailTemplateChain path to template folder\n * @param shopCode shop code\n * @param locale locale\n * @param templateName template name\n * @param resourceFilename file name for the resource\n *\n * @return template if exists\n *\n * @throws java.io.IOException in case of io errors.\n */\n byte[] getResource(List<String> mailTemplateChain,\n String shopCode,\n String locale,\n String templateName,\n String resourceFilename) throws IOException;\n\n\n}", "title": "" }, { "docid": "4cca90ff9442305a06010cbfc4864193", "score": "0.56726134", "text": "Template getTemplate() {\n\t\treturn template;\n\t}", "title": "" }, { "docid": "c08f4273ac65345d48ef739fe29e12ae", "score": "0.56712115", "text": "protected String getTemplate(String templateName)\n {\n //get template\n String template=this.getConfigurationValue(templateName);\n\n return template;\n }", "title": "" }, { "docid": "a0e022c93d478b50441b84ed84685808", "score": "0.5661319", "text": "public String readFile(File file) {\n\n String text = null;\n String fileContents = null;\n\n try {\n StringBuilder sb = new StringBuilder();\n BufferedReader br = new BufferedReader(new FileReader(file));\n\n while ((text = br.readLine()) != null) {\n sb.append(text);\n sb.append(\"\\n\");\n }\n\n fileContents = sb.toString();\n br.close();\n\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n return fileContents;\n }", "title": "" }, { "docid": "665e70f31f7eccc9602c1d57711e5b3d", "score": "0.56607485", "text": "private String readContent(IFile file) throws CoreException {\n InputStream is = file.getContents();\n String encoding = file.getCharset();\n if (is == null) {\n return null;\n }\n BufferedReader reader = null;\n try {\n StringBuffer buffer = new StringBuffer();\n char[] part = new char[2048];\n int read = 0;\n reader = new BufferedReader(new InputStreamReader(is, encoding));\n while ((read = reader.read(part)) != -1) {\n buffer.append(part, 0, read);\n }\n return buffer.toString();\n } catch (IOException ex) {\n } finally {\n if (reader != null) {\n try {\n reader.close();\n } catch (IOException ex) {\n }\n }\n }\n return null;\n }", "title": "" }, { "docid": "27bf012401fe8b31fcc070a1fba12686", "score": "0.5658768", "text": "public String getContent(String filename){\n\n try {\n\n Scanner scanner = new Scanner(new FileReader(filename));\n String ans = \"\";\n\n while(scanner.hasNext()) {\n\n String temp = scanner.nextLine();\n ans = ans + temp + \"$\";\n\n }\n\n return ans;\n\n } catch (FileNotFoundException e) {\n\n System.out.println(\"File \" + filename + \" not found.\");\n return null;\n\n }\n\n }", "title": "" }, { "docid": "f9fe5be45cfb8bb2d04c47eeec223dfe", "score": "0.56530964", "text": "private Bundle pullTemplates(){\n File fRace, fClass, fBackground;\n fRace = new File(getClass().getResource(Templates.FILE_RACE).getFile());\n fClass = new File(getClass().getResource(Templates.FILE_CLASS).getFile());\n fBackground = new File(getClass().getResource(Templates.FILE_BACKGROUND).getFile());\n FileManager raceManager = new FileManager(fRace, FileManager.IO_TYPE.READ, FileManager.FILE_TYPE.T_RACE);\n FileManager classManager = new FileManager(fClass, FileManager.IO_TYPE.READ, FileManager.FILE_TYPE.T_CLASS);\n FileManager backManager = new FileManager(fBackground, FileManager.IO_TYPE.READ, FileManager.FILE_TYPE.T_BACKGROUND);\n \n Bundle templates = new Bundle();\n templates.putTemplate(Templates.TYPE.T_CLASS, classManager.getData().getTemplate(Templates.TYPE.T_CLASS));\n templates.putTemplate(Templates.TYPE.T_RACE, raceManager.getData().getTemplate(Templates.TYPE.T_RACE));\n templates.putTemplate(Templates.TYPE.T_BACKGROUND, backManager.getData().getTemplate(Templates.TYPE.T_BACKGROUND));\n \n return templates;\n }", "title": "" }, { "docid": "88d6cafb1c9e5a956722226368fe13f8", "score": "0.56522506", "text": "private String readFile(String file)\n throws IOException\n {\n try{\n console.logEntry();\n\n BufferedReader reader = null;\n\n try {\n reader = new BufferedReader( new InputStreamReader(\n getClass().getResourceAsStream( \"resource\" + File.separator + file)));\n }\n catch (Exception ex) {\n console.error(\"Failed to read html content.\");\n throw new IOException(\"Failed to read html content.\");\n }\n\n String line = \"\";\n StringBuffer buff = new StringBuffer();\n try {\n while ( (line = reader.readLine() ) != null) {\n buff.append(line).append(\" \");\n }\n }\n finally{\n console.error(\"Failed to read html content.\");\n }\n return buff.toString();\n }\n finally\n {\n console.logExit();\n }\n }", "title": "" }, { "docid": "bbbeca19a65f920a0c6ff49bbe29b6b3", "score": "0.56487554", "text": "@Override\n\tpublic String getFileContent(String filename) throws IOException, IllegalFileException{\n\t\treturn getFileContentHelper(rootDir, filename);\n\t}", "title": "" }, { "docid": "e8fb38b0c06adf4615f17a57107ac16b", "score": "0.56444085", "text": "public Resource getTemplate() {\n return template;\n }", "title": "" }, { "docid": "bc6341fa72117f4033ffc08110e89992", "score": "0.5625622", "text": "public String getContent() throws IOException {\n StringBuilder content = new StringBuilder();\n if (!this.exists()) {\n abort(\"FileUtility: no such source file: \" + pathName);\n }\n BufferedReader reader = new BufferedReader(new FileReader(this));\n String line;\n while (null != (line = reader.readLine())) {\n content.append(line).append(LINE_SEPARATOR);\n }\n return content.toString();\n }", "title": "" }, { "docid": "92ef4cd85461ae3e051b999328e6abce", "score": "0.56093866", "text": "public String parse(final Object toGetParsed, final String templateName) {\n log.info(\"Freemarker configuration object is: {}\" + configuration);\n\n try (Writer out = new StringWriter()) {\n log.debug(\"Loading template: ('{}')\", templateName);\n\n Template template = configuration.getTemplate(templateName);\n template.process(toGetParsed, out);\n\n return out.toString();\n\n } catch (IOException | TemplateException e) {\n log.error(\"The parsing generated an error for this template: \" + templateName, e);\n throw new IllegalStateException(e);\n }\n }", "title": "" }, { "docid": "5744e4ada6d4d5da097409a272b07181", "score": "0.55961245", "text": "public String getSourceTemplate()\r\n {\r\n return sourceTemplate;\r\n }", "title": "" }, { "docid": "ce3e3e7e2abe0d570ea367f70edc5f5e", "score": "0.558238", "text": "public static String getFileContents(String filename) {\n\n\t\ttry {\n\t\t\tFile file = new File(filename);\n\t\t\tFileReader in = new FileReader(file);\n\t\t\tchar c[] = new char[(int) file.length()];\n\t\t\tin.read(c);\n\t\t\tString fileContentsString = new String(c);\n\t\t\tin.close();\n\t\t\treturn fileContentsString;\n\t\t} catch (IOException e) {\n\t\t\tSystem.err.println(\"Error in FileOps#getFileContents: \"\n\t\t\t\t\t+ e.getMessage());\n\t\t\t//\n\t\t\t// PackageLoggingController.logPackageError(PackageLoggingController.PACKAGELOGLEVEL_ERRORS_ONLY,\n\t\t\t// \"Error in FileOps#getFileContents: \" + e.getMessage());\n\t\t\treturn \"\";\n\t\t}\n\t}", "title": "" }, { "docid": "8c7dfcb9a5efd658c2c8e6c0dccc0d42", "score": "0.5579305", "text": "private IPath selectTemplateFile() {\r\n\t\tString initSelection = templatePath.getText();\r\n\r\n\t\tViewerFilter filter = null;// new ArchiveFileFilter((List) null, false);\r\n\r\n\t\tIResource initSel = null;\r\n\t\tIContainer fWorkspaceRoot = ResourcesPlugin.getWorkspace().getRoot();\r\n\t\tif (initSelection.length() > 0) {\r\n\t\t\tinitSel = fWorkspaceRoot.findMember(new Path(initSelection));\r\n\t\t}\r\n\t\tif (initSel == null) {\r\n\t\t\t// initSel= fWorkspaceRoot.findMember(fEntry.getPath());\r\n\t\t}\r\n\r\n\t\tTemplateFileSelectionDialog dialog = new TemplateFileSelectionDialog(\r\n\t\t\t\tgetShell(), false, false);\r\n\t\tdialog.setTitle(Messages.TemplateFileSelectionDialog_title);\r\n\t\tdialog.setMessage(Messages.TemplateFileSelectionDialog_message);\r\n\t\tdialog.setInput(fWorkspaceRoot);\r\n\t\tdialog.setInitialSelection(initSel);\r\n\t\tif (dialog.open() == Window.OK) {\r\n\t\t\tIResource res = (IResource) dialog.getFirstResult();\r\n\t\t\treturn res.getFullPath();\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "4c542149db43df3fb4026e214f1921b2", "score": "0.5552452", "text": "public String getFileContents() {\n return fileContents;\n }", "title": "" }, { "docid": "4ddff7bfc898e9227e3a951f16a4abc7", "score": "0.5544833", "text": "public Object template() {\n return this.template;\n }", "title": "" }, { "docid": "0c7302195ac64130c866d3ae97a20d4f", "score": "0.55289316", "text": "public Template getTemplate() {\n return template;\n }", "title": "" }, { "docid": "d5938c7a999e6e2f60acae7727eee4c9", "score": "0.5519936", "text": "protected String read(String filename) {\n String content = null;\n try {\n File file = FILE_UTILS.resolveFile(getProject().getBaseDir(), filename);\n java.io.FileReader rdr = new java.io.FileReader(file);\n content = FileUtils.readFully(rdr);\n rdr.close();\n rdr = null;\n } catch (Exception e) {\n e.printStackTrace();\n }\n return content;\n }", "title": "" }, { "docid": "340b3c01bd36ee1b03b0629967b028ca", "score": "0.5518824", "text": "@RequestMapping(value = \"/downloadTemplate\",method = RequestMethod.GET)\n public ResponseEntity<Template> getStateMachineTemplate(){\n String encode64xml = FileManager.encodeFile(\"./src/main/resources/state_machine/templates/template_FSM.xml\");\n Template tmp = new Template(encode64xml);\n if(encode64xml!=null)\n return new ResponseEntity<>(tmp,HttpStatus.OK);\n return new ResponseEntity<>(tmp,HttpStatus.NOT_FOUND);\n }", "title": "" }, { "docid": "5af20ea4ebad7e14e891b82c64b5ec2d", "score": "0.551218", "text": "public String getCleanTemplate()\n {\n compileTemplate();\n return cleanTemplate;\n }", "title": "" }, { "docid": "bf2f09a274fe455ff4df38a24dc178b0", "score": "0.55068797", "text": "private static void createFileFromTemplate(File f, String templateName,\r\n\t\t\tMap<String, String> params) throws IOException {\r\n\t\tFileUtils.dump(new TemplateInputStream(params, resource(\"templates/\"\r\n\t\t\t\t+ templateName)), f);\r\n\t}", "title": "" }, { "docid": "05fa02b05b679f7e22a01093dd3f7f0b", "score": "0.54819214", "text": "public static String readFileContents(DocumentFile file) throws IOException {\n String contents = \"\";\n\n Context context = WorldScribeApplication.getAppContext();\n InputStream inputStream = context.getContentResolver().openInputStream(file.getUri());\n String line;\n BufferedReader reader = new BufferedReader(new InputStreamReader(inputStream));\n while ((line = reader.readLine()) != null) {\n contents = line;\n }\n inputStream.close();\n\n return contents;\n }", "title": "" }, { "docid": "54d3a11cae8b4cccc89f6a241c1e2d18", "score": "0.54796875", "text": "private Template getTemplate()\r\n {\n Class pageClass = getClass();\r\n Class velocityPageClass = VelocityPage.class;\r\n Template template = null;\r\n while (pageClass != velocityPageClass) {\r\n String className = pageClass.getName();\r\n String templateName = className.replace('.', '/') + \".vm\";\r\n if (Velocity.resourceExists(templateName)) {\r\n try {\r\n template = Velocity.getTemplate(templateName);\r\n // success\r\n return template;\r\n }\r\n catch (Exception exc) {\r\n // shouldn't happen, since we've checked already\r\n // any exception means that we couldn't get the template, continue\r\n }\r\n\r\n }\r\n // if we're here, we weren't able to find the template, go up to superclass\r\n pageClass = pageClass.getSuperclass();\r\n }\r\n\r\n // if we're here, there is no template for the class\r\n System.out.println(\"No template for page class \" + getClass().getSimpleName());\r\n return null;\r\n }", "title": "" }, { "docid": "e0094e91ddf699eae528c98d397c3db0", "score": "0.5467708", "text": "public String getTextFrom(String fileName){\n try {\n File book = new File(\"./resources/\"+fileName);\n Scanner bookScanner = new Scanner(book);\n StringBuilder text = new StringBuilder();\n while (bookScanner.hasNextLine()) {\n text.append(bookScanner.nextLine().strip()).append(\"\\n\");\n }\n bookScanner.close();\n return text.toString();\n } catch (FileNotFoundException e) {\n System.out.println(\"An file not found!\");\n e.printStackTrace();\n }\n return null;\n }", "title": "" }, { "docid": "4ef5eb3c7b25c9c14354aaad2bc834be", "score": "0.5452747", "text": "public synchronized Object getTemplateData(String key)\n {\n return templateData.get(key);\n }", "title": "" }, { "docid": "243fd843854706d97e494e8e12d1d03e", "score": "0.545121", "text": "public InputStream render(DocumentTemplate template, CertificateDefinition certDef, String userId) throws TemplateReadException, VariableResolutionException;", "title": "" }, { "docid": "623097f041ee208a3248809a45133057", "score": "0.54504764", "text": "boolean hasTemplateFile();", "title": "" }, { "docid": "2fde7e9d50f5f5201dea6a62b1240488", "score": "0.5442147", "text": "public String getFileContent() {\n return fileContent;\n }", "title": "" }, { "docid": "c02833126d4fdef28e82d10fc5b150ac", "score": "0.54259115", "text": "public synchronized String getContent() throws IOException {\n\n\t\t// Checking file is empty\n\t\tif (file == null || !file.isFile()) {\n\n\t\t\t//we can also throw an custom exception with description\n\t\t\tthrow new IOException(\"File is empty!\");\n\t\t}\n\t\tFileInputStream i = new FileInputStream(file);\n\n\t\tString output = \"\";\n\t\tint data;\n\n\t\t//the comparison should use -1 as a lowest limit\n\t\twhile ((data = i.read()) !=-1) {\n\t\t\toutput += (char) data;\n\t\t}\n\n\t\t// need to be closed before returning the response\n\t\ti.close();\n\n\t\treturn output;\n\t}", "title": "" }, { "docid": "e472e8c30eb0e63c40c6f3b806ccc170", "score": "0.5419253", "text": "public static String readFile(String filePath) {\n String content = \"/res/alice_in_wonderland.txt\";\n\n try {\n content = new String(Files.readAllBytes(Paths.get(filePath)));\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n return content;\n }", "title": "" }, { "docid": "4df7a8d29ab242625fae8e22c34e4a86", "score": "0.54170215", "text": "public String getContent() throws IOException {\n FileInputStream i = new FileInputStream(file);\n String output = \"\";\n int data;\n while ((data = i.read()) > 0) {\n output += (char) data;\n }\n return output;\n }", "title": "" }, { "docid": "a159a619ac3b24ab15409a7313a54461", "score": "0.5412458", "text": "public Template getTemplate() {\n\t\treturn tpl;\n\t}", "title": "" }, { "docid": "c0c09bced9565477064127271a36a5a9", "score": "0.5407218", "text": "public static String getFtlText(String templateName, Map<?, ?> root) {\r\n\r\n\r\n\t\t\t\r\n\r\n\t\t /*get the template resource error*/\r\n\t\t\t\tString templateContent = null;\r\n\t\t\t\ttry {\r\n\r\n\t\t\t\t\ttemplateContent = InputStreamTOString(FreeMarkerUtil.class.getResourceAsStream(\"/freemarker/\"+templateName));\r\n\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\t\r\n\t\t\t\t\tlog.error(\"get freemark template resource error: \", e);\r\n\t\t\t\t}\r\n\t\t\t\tif(templateContent==null||templateContent.equals(\"\")){\r\n\t\t\t\t\tlog.info(\"freemarker couldn't get the template content\");\r\n\t\t\t\t\treturn null;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t/*get the templateloader*/\r\n\t\t\t StringTemplateLoader stringLoader = new StringTemplateLoader();\r\n\r\n\t\t\t stringLoader.putTemplate(\"freemarkerTemplate\",templateContent);\r\n\t\t\t \r\n\t\t\t\t/* init the configuration of freemark*/\r\n\t\t\t\tConfiguration config = new Configuration();\r\n\t\t\t\tconfig.setTemplateLoader(stringLoader);\r\n\t\t\t\t\r\n\t\t\t\t/*get the codetable template*/\r\n\t\t\t\tTemplate template = null;\r\n\t\t\t\ttry {\r\n\t\t\t\t\ttemplate = config.getTemplate(\"freemarkerTemplate\");\r\n\t\t\t\t} catch (IOException e) {\r\n\t\t\t\t\t\r\n\t\t\t\t\tlog.error(\"get freemark template error:\", e);\r\n\t\t\t\t}\r\n\t\t\t\tStringWriter writer=new StringWriter();\r\n\t\t\t\t\r\n\t\t\t\t/* transform the map data to stringwriter according by freemark template*/\r\n\t\t\t\t\r\n\t\t\t\tif(root==null||root.size()==0){\r\n\t\t\t log.info(\"freemarker couldn't get the root Map\");\r\n\t\t\t\t\treturn null;\r\n\t\t\t\t}\r\n\t\t\t\ttry {\r\n\t\t\t\t\ttemplate.process(root, writer);\r\n\t\t\t\t} catch (TemplateException e) {\r\n\t\t\t\t\tlog.error(\"freemark template process error:\", e);\r\n\t\t\t\t} catch (IOException e) {\r\n\t\t\t\t\tlog.error(\"freemark template process IO error:\", e);\r\n\t\t\t\t}\r\n\r\n\t\t\t\tString info=writer.toString();\r\n\t\t\t\treturn info;\t\t\r\n\t\t\t\r\n}", "title": "" }, { "docid": "94cd63601c8eab0ddac36ce8ba3433f6", "score": "0.5406443", "text": "public static String getFileContent(String path) {\n\t\tFile file = new File(path);\n\t\tStringBuilder builder = new StringBuilder();\n\t\tScanner reader = null;\n\t\ttry {\n\t\t\treader = new Scanner(file);\n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t\treturn notFoundContent;\n\t\t}\n\t\twhile (reader.hasNextLine()) {\n\t\t\tbuilder.append(reader.nextLine() + \"\\n\");\n\t\t}\n\t\treader.close();\n\t\treturn builder.toString();\n\t}", "title": "" }, { "docid": "c969a7e044ec4ffea24d312b50a00385", "score": "0.5400715", "text": "java.lang.String getSnippetTemplate();", "title": "" }, { "docid": "a2af197fb9b171aa2d944ad4b4cb0f0c", "score": "0.53864366", "text": "public org.melati.template.Template template(String templateName)\n throws NotFoundException {\n try {\n return new VelocityTemplate(templateName);\n } catch (ResourceNotFoundException e) {\n if (templateName.endsWith(templateExtension())) {\n // have a go at loading the webmacro template, and converting it!\n templateName = templateName.substring(0, templateName\n .lastIndexOf(templateExtension()))\n + \".wm\";\n try {\n return new VelocityTemplate(templateName);\n } catch (ParseErrorException p) {\n throw new MelatiBugMelatiException(\n \"Problem converting a WebMacro template to a Velocity template\",\n p);\n } catch (ResourceNotFoundException e2) {\n throw new NotFoundException(e2);\n } \n } else throw new NotFoundException(e);\n } catch (Exception e) {\n throw new TemplateEngineException(e);\n }\n }", "title": "" }, { "docid": "36680299b367190350e086ff1fbc3aa2", "score": "0.5374551", "text": "public String getContents(File f) throws FileNotFoundException {\n\t\tString contents = \"\";\n\t\ttry (BufferedReader br = new BufferedReader(new FileReader(f))) {\n\n\t\t\tString line = br.readLine();\n\t\t\twhile (line != null) {\n\t\t\t\tcontents += line + \"\\n\";\n\t\t\t\tline = br.readLine();\n\t\t\t}\n\n\t\t} catch (FileNotFoundException e) {\n\t\t\tSystem.out.println(\"Could not find file \" + f.toString());\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn contents;\n\n\t}", "title": "" }, { "docid": "a883af1d165a5acf00599c2cc0d41c72", "score": "0.5361766", "text": "public static String getStrFileContent (String fileName) {\n\t\tString currentDirectory = new File(fileName).getAbsolutePath();\n\t\tlog.info(currentDirectory);\n\t\t\n\t\tString content = \"\";\n\t\ttry (BufferedReader br = new BufferedReader(new FileReader(fileName))) {\n\n\t\t\tString sCurrentLine;\n\n\t\t\twhile ((sCurrentLine = br.readLine()) != null) {\n\t\t\t\tcontent+=sCurrentLine;\n\t\t\t}\n\n\t\t} catch (Exception e) {\n\t\t\tlog.debug(\"#######ERROR :\"+e.getMessage()+\" \\nCAUSED : \"+e.getCause());\n\t\t}\n\t\treturn content;\n\t}", "title": "" }, { "docid": "30b11e71b81e5c4ef8ff64124c640c16", "score": "0.53600425", "text": "static public String readFileContent(String fileName){\n\t\tBufferedReader reader;\n\t\tStringBuffer main = new StringBuffer();\n\t\ttry {\n\t\t\treader = new BufferedReader(new FileReader(fileName));\n\t\t\ttry {\n\t\t\t\tString line = null;\n\t\t\t\twhile((line = reader.readLine()) != null){\n\t\t\t\t\tmain.append(line);\n\t\t\t\t\tmain.append(System.getProperty(\"line.separator\"));\n\t\t\t\t}\n\t\t\t}finally{\n\t\t\t\treader.close();\n\t\t\t}\n\t\t} catch (FileNotFoundException fnfe) {\n\t\t\tSystem.err.println(\"Errore: file \"+fileName+\" non trovato!\");\n\t\t\tfnfe.printStackTrace();\t\t\t\n\t\t} catch (IOException ioe) {\n\t\t\tSystem.err.println(\"Errore: lettura del file \"+fileName+\" fallita!\");\n\t\t\tioe.printStackTrace();\n\t\t}\n\t\t\n\t\treturn main.toString();\n\t}", "title": "" }, { "docid": "8fb95a0eaba8922553e10a2ef98c94d9", "score": "0.5350352", "text": "public static String getFileContents(File inputFile) throws IOException {\n FileInputStream stream = new FileInputStream(inputFile);\n try {\n FileChannel fc = stream.getChannel();\n MappedByteBuffer bb = fc.map(FileChannel.MapMode.READ_ONLY, 0, fc.size());\n return Charset.defaultCharset().decode(bb).toString();\n } finally {\n stream.close();\n }\n\n }", "title": "" }, { "docid": "5efa130511588f101061e950dbda7dc5", "score": "0.5349729", "text": "private String readFile(File file) {\n StringBuilder stringBuffer = new StringBuilder();\n BufferedReader bufferedReader = null;\n try {\n bufferedReader = new BufferedReader(new FileReader(file));\n String text;\n while ((text = bufferedReader.readLine()) != null) {\n stringBuffer.append(text);\n }\n } catch (Exception ex) {\n dialog(\"Error\", \"Greeting can not be changed.\");\n } finally {\n try {\n bufferedReader.close();\n } catch (IOException ex) {\n dialog(\"Error\", \"Greeting can not be changed.\");\n }\n }\n return stringBuffer.toString();\n }", "title": "" }, { "docid": "20365f7ff02c2b4f463aaaf21ac3d2aa", "score": "0.534799", "text": "public String processTemplate(String name,\n Map<String, Object> data) {\n try {\n Configuration configuration = new Configuration();\n configuration.setObjectWrapper( new DefaultObjectWrapper() );\n configuration.setTemplateUpdateDelay( 0 );\n\n Template template = new Template( name,\n new InputStreamReader( ServiceImplementation.class.getResourceAsStream( \"/repoconfig/\" + name + \".xml\" ) ),\n configuration );\n StringWriter stringwriter = new StringWriter();\n template.process( data,\n stringwriter );\n return StringEscapeUtils.escapeXml( stringwriter.toString() );\n } catch ( Exception e ) {\n return \"\";\n }\n }", "title": "" }, { "docid": "3a125ca16d8f53c588fbe0eacd1579da", "score": "0.53390914", "text": "Template createTemplate();", "title": "" }, { "docid": "424a27b10a7ddac9d1ad8dcd9ccf7ee3", "score": "0.53255373", "text": "private String getContents() throws IOException {\n\t\treturn getContents(DEFAULT_FILE_TIMEOUT);\n\t}", "title": "" }, { "docid": "7901276a893f3d69ec2cb05703158bf0", "score": "0.53193384", "text": "com.google.protobuf.ByteString\n getSnippetTemplateBytes();", "title": "" }, { "docid": "ebbc9c8bcf78b6bbff84a36439997c4e", "score": "0.5315156", "text": "@Override\n protected void doGet(HttpServletRequest req, HttpServletResponse resp)\n throws IOException {\n\n Template template = templateProvider.getTemplate(getServletContext(), \"test\");\n try {\n template.process(new HashMap<>(), resp.getWriter());\n } catch (TemplateException e) {\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "d10026c091229c40dfea21ce610564be", "score": "0.53042924", "text": "public static String getFileContent(String filePath) throws IOException {\n\t\tString fileContents = \"\";\n\t\tLog.info(\"getting file content from file \" + filePath);\n\t\tFile file = new File(filePath);\n\t\t// We are using the canWrite() method to check whether we can\n\t\t// modified file content.\n\t\tif (file.canRead()) {\n\t\t\tLog.info(\"File is Readable!\");\n\t\t} else {\n\t\t\tLog.info(\"File is NOT in read only mode!\");\n\t\t\tfile.setReadable(true);\n\t\t\tLog.info(\"Changed file to Readable!\");\n\t\t}\n\t\tfileContents = FileUtils.readFileToString(file);\n\t\treturn fileContents;\n\t}", "title": "" }, { "docid": "4514b05307cf761f81682d0bbd509d1c", "score": "0.5302959", "text": "public String getFileContent(String name) throws IOException\n {\n InputStreamReader inputStream = new InputStreamReader(context.openFileInput(name));\n StringBuilder builder = new StringBuilder();\n try\n {\n char[] buffer = new char[2048];\n int charsRead;\n while ((charsRead = inputStream.read(buffer)) > -1)\n {\n builder.append(buffer, 0, charsRead);\n }\n } finally\n {\n if (inputStream != null)\n {\n inputStream.close();\n }\n }\n return builder.toString();\n }", "title": "" }, { "docid": "48ad794a34d5973149cc1087c75bcd7e", "score": "0.530103", "text": "public Builder setTemplateFile(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000004;\n templateFile_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "05a2d35cbd874bfd59037c3ee334822d", "score": "0.5289286", "text": "private String readFromFile(String file) {\n\n String ret = \"\";\n\n try {\n InputStream inputStream = openFileInput(file);\n\n if ( inputStream != null ) {\n InputStreamReader inputStreamReader = new InputStreamReader(inputStream);\n BufferedReader bufferedReader = new BufferedReader(inputStreamReader);\n String receiveString = \"\";\n StringBuilder stringBuilder = new StringBuilder();\n\n while ( (receiveString = bufferedReader.readLine()) != null ) {\n stringBuilder.append(receiveString);\n }\n\n inputStream.close();\n ret = stringBuilder.toString();\n }\n }\n catch (FileNotFoundException e) {\n Log.e(\"login activity\", \"File not found: \" + e.toString());\n } catch (IOException e) {\n Log.e(\"login activity\", \"Can not read file: \" + e.toString());\n }\n\n return ret;\n }", "title": "" }, { "docid": "2baf5d5c6455f091646f6441d2d4b8b9", "score": "0.5288761", "text": "public static String getTextFromFile(String f) {\r\n\t\tFile file = new File(f);\r\n\t int ch;\r\n\t StringBuffer strContent = new StringBuffer(\"\");\r\n\t FileInputStream fin = null;\r\n\t try {\r\n\t fin = new FileInputStream(file);\r\n\t while ((ch = fin.read()) != -1)\r\n\t strContent.append((char) ch);\r\n\t fin.close();\r\n\t } catch (Exception e) {\r\n\t System.out.println(e);\r\n\t }\r\n\t\treturn strContent.toString();\r\n\t}", "title": "" }, { "docid": "15c47bc4d4c9237cb15f183762e17ada", "score": "0.5282567", "text": "public static FileContent fromFile(Project project, VirtualFile file) {\n return file != null ? new FileContent(project, file) : null;\n }", "title": "" }, { "docid": "684f6636931121bfa9dffb6828fed8f2", "score": "0.52730614", "text": "private FileReader getFileReader()\n {\n \tFileReader fr = null ;\n \tif ( templatesCfgAbsolutePath != null )\n \t{\n try {\n\t\t\t\tfr = new FileReader(templatesCfgAbsolutePath);\n\t\t\t} catch (FileNotFoundException e) {\n\t\t\t\t// Not an error // MsgBox.error(\"File '\" + sFileName + \"' not found\");\n\t\t\t\tfr = null ;\n\t\t\t}\n \t}\n \treturn fr; \n }", "title": "" }, { "docid": "cce2ffaddc596307c5e58665f4f8b114", "score": "0.52656865", "text": "public Template getTemplate() {\n\t\treturn fTemplate_opt_shared;\n\t}", "title": "" }, { "docid": "4478e4a6db25d31d927554856fd07fb8", "score": "0.5240875", "text": "public static String getFileContent1(String fileFullName){\r\n\t\tStringBuffer contents=new StringBuffer();\r\n\t\tBufferedReader bufReader=null;\r\n\t\ttry{\r\n\t\t\tif(StringUtils.isNotBlank(fileFullName)){\r\n\t\t\t\t//\r\n\t\t\t\tbufReader=new BufferedReader(new FileReader(fileFullName));\r\n\t\t\t\tString line=null;\r\n\t\t\t\twhile((line=bufReader.readLine())!=null){\r\n\t\t\t\t\tcontents.append(line);\r\n\t\t\t\t\tSystem.out.println(line);\r\n\t\t\t\t}\r\n\t\t\t\tbufReader.close();\r\n\t\t\t}\r\n\t\t}catch(Exception e){\r\n\t\t\tlogger.error(e.getMessage(),e);\r\n\t\t}\r\n\t\treturn contents.toString();\r\n\t}", "title": "" }, { "docid": "a19249299d54b9db216b3eaaeea3484d", "score": "0.5231352", "text": "public String input(String filename) throws FileNotFoundException {\n return resource(filename);\n }", "title": "" }, { "docid": "bf1222742e014997d990d5f127667d8f", "score": "0.52311176", "text": "private String readFile(String file) throws EgreeException {\n try (BufferedReader br = new BufferedReader(new FileReader(\n new File(getClass().getResource(file).toURI())))) {\n String contents = \"\";\n String line;\n while ((line = br.readLine()) != null) {\n contents += line;\n }\n return contents;\n } catch (URISyntaxException | IOException e) {\n throw new EgreeException(\"Fail\", e);\n }\n }", "title": "" }, { "docid": "fcaa7d8d1fe5552c4dc1ad11a299f3c8", "score": "0.5228373", "text": "private static String readFileContent(String path) throws IOException\n {\n FileReader file = new FileReader(path);\n BufferedReader reader = new BufferedReader(file);\n\n StringBuilder builder = new StringBuilder();\n\n String line;\n while((line = reader.readLine()) != null ) {\n builder.append(line);\n builder.append('\\n');\n }\n\n file.close();\n\n return builder.toString();\n }", "title": "" } ]
bb8a8ad1bdd9f3e145b10f85db4cf83b
Constructs a Compra object with null values.
[ { "docid": "0eb0fa5bb9d13510f02388aab410fcdc", "score": "0.69261485", "text": "public Compra() {\r\n\t\tsuper();\r\n\t}", "title": "" } ]
[ { "docid": "015cc6f7d85a4910493674e7ae5e57ab", "score": "0.7025399", "text": "public M cstCompensateNull(){if(this.get(\"cstCompensateNot\")==null)this.put(\"cstCompensateNot\", \"\");this.put(\"cstCompensate\", null);return this;}", "title": "" }, { "docid": "1d1b9b772205a0b6783ab28bea6b6d29", "score": "0.63969165", "text": "private Nullary() {\r\n super(null);\r\n }", "title": "" }, { "docid": "52daf5ca170a3c9981590e0634add085", "score": "0.63067925", "text": "public M cstCompDateNull(){if(this.get(\"cstCompDateNot\")==null)this.put(\"cstCompDateNot\", \"\");this.put(\"cstCompDate\", null);return this;}", "title": "" }, { "docid": "57765e5017b14d4ed4e39e7e50423d8d", "score": "0.6268396", "text": "Null createNull();", "title": "" }, { "docid": "b35d77810f5cb89cba8745b5dcd2878c", "score": "0.61662143", "text": "public COMPSsNode() {\n // Nothing to do since there are no attributes to initialize\n }", "title": "" }, { "docid": "af4afe46d9a7f7677eec9e50be243788", "score": "0.6148817", "text": "public CmsCompVOImpl() {\n }", "title": "" }, { "docid": "ade8c6c5d0cde0368f5660be5d9dc092", "score": "0.6088868", "text": "public Compte() {\r\n\t\tsuper();\r\n\t}", "title": "" }, { "docid": "f671bff727a24c3923f89d2a718c8519", "score": "0.60165477", "text": "public Coor ( ) {\r\n\t\tsetRA(0.0);\r\n\t\tsetDecl(0.0);\r\n\t}", "title": "" }, { "docid": "65793db9461a39641d12d9178c927751", "score": "0.6011205", "text": "public ComptesImpl() {\n }", "title": "" }, { "docid": "5e5d1611803ffc819d2c669ac161c361", "score": "0.59830105", "text": "public NullHolder() {\n\t}", "title": "" }, { "docid": "1d91345cc455aee2b43aceda58929f4c", "score": "0.5951906", "text": "@Test\n public void testCtor_PeriodNull() {\n System.out.println(\"ctor(c, null period)\");\n Period per = null;\n Periods p = new Periods(2, per);\n }", "title": "" }, { "docid": "54f74fbe78043e722a932e737dfd2fbc", "score": "0.5917762", "text": "public Compra() {\n\t\tthis.importe = 0;\n\t\tthis.token = 0;\n\t}", "title": "" }, { "docid": "1ae94a4fb9811d9054eb8a79a693d7f2", "score": "0.59097433", "text": "public Complaint() {}", "title": "" }, { "docid": "3ae7bcfb1c09ced21317850bf2d5817e", "score": "0.586529", "text": "public M csvBranchNull(){if(this.get(\"csvBranchNot\")==null)this.put(\"csvBranchNot\", \"\");this.put(\"csvBranch\", null);return this;}", "title": "" }, { "docid": "b7618c37c4387f78d2971d8d8cb7cef4", "score": "0.5850083", "text": "public CompSpec() {\n }", "title": "" }, { "docid": "db887006a3f2ef0fa3cbca8b18c0bc72", "score": "0.5811097", "text": "public M cstCaserNull(){if(this.get(\"cstCaserNot\")==null)this.put(\"cstCaserNot\", \"\");this.put(\"cstCaser\", null);return this;}", "title": "" }, { "docid": "c5204b570fc11b0062b51d42264c2705", "score": "0.57911783", "text": "public M cstCarNull(){if(this.get(\"cstCarNot\")==null)this.put(\"cstCarNot\", \"\");this.put(\"cstCar\", null);return this;}", "title": "" }, { "docid": "e4bf19aa34d3397ee0a0535d311f4eea", "score": "0.57593024", "text": "public ItemCompra() {\n }", "title": "" }, { "docid": "9e3ccbf3721791aacdaf07b275c371d2", "score": "0.5724373", "text": "@Test(expected = IllegalArgumentException.class)\n public void constructWithNull() {\n new Card(3, null);\n }", "title": "" }, { "docid": "4ca1b9062c470f68d483f781babe8f68", "score": "0.5717883", "text": "public M cstAgioNull(){if(this.get(\"cstAgioNot\")==null)this.put(\"cstAgioNot\", \"\");this.put(\"cstAgio\", null);return this;}", "title": "" }, { "docid": "0b973c07a372be82761fa35c52d88f1f", "score": "0.5660976", "text": "public CurrencyConversion()\n\t{\n\t\tcurrency1\t\t\t=\tnull;\n\t\tcurrency2\t\t\t=\tnull;\n\t\tconversionFactor\t=\tnull;\n\t}", "title": "" }, { "docid": "9064f782a903cec9048cc0febde18929", "score": "0.5634176", "text": "public M cstMoneyNull(){if(this.get(\"cstMoneyNot\")==null)this.put(\"cstMoneyNot\", \"\");this.put(\"cstMoney\", null);return this;}", "title": "" }, { "docid": "6adafef5cb228cd20092b5c3200a67e1", "score": "0.56264347", "text": "public CandidateCompany() {\n this(\"candidate_company\", null);\n }", "title": "" }, { "docid": "7773e12317c5fcd3cd7b4684baff9280", "score": "0.56196207", "text": "public M cstTypeNull(){if(this.get(\"cstTypeNot\")==null)this.put(\"cstTypeNot\", \"\");this.put(\"cstType\", null);return this;}", "title": "" }, { "docid": "77f736753aca9bcf3881a7a831d5e500", "score": "0.55704623", "text": "public Cola () {\n\t\tfor (int i = 0; i < this.TAM; i++) {\n\t\t\tthis.cola [i] = this.NULO; \n\t\t}\n\t}", "title": "" }, { "docid": "797e3936eecab2ceb61062f06cb48ee1", "score": "0.5565843", "text": "public M csvCarNull(){if(this.get(\"csvCarNot\")==null)this.put(\"csvCarNot\", \"\");this.put(\"csvCar\", null);return this;}", "title": "" }, { "docid": "da15ae25e3d65be2c550282176033e34", "score": "0.5562848", "text": "public CreditcardsInfo() {}", "title": "" }, { "docid": "8e6a61656a8294777ef2c798e8d66a23", "score": "0.55493414", "text": "public composite() {\n\tsuper((StringBuilder)null);\n\tinitHeaders();\n\t}", "title": "" }, { "docid": "2ca4684e6a8f7b6e950f5edba66845a9", "score": "0.5549128", "text": "public M csv22Null(){if(this.get(\"csv22Not\")==null)this.put(\"csv22Not\", \"\");this.put(\"csv22\", null);return this;}", "title": "" }, { "docid": "4ed926f1e8ac2a4c02590bebb7823262", "score": "0.55456316", "text": "public C12234a() {\n }", "title": "" }, { "docid": "e09259a78b3a36609c29fdcfeef7164e", "score": "0.5525105", "text": "public CantidadVueloComplementario() {\r\n }", "title": "" }, { "docid": "902a6f9f8a8dfe5828dd06fedf07a742", "score": "0.55249643", "text": "public M cstRepairNull(){if(this.get(\"cstRepairNot\")==null)this.put(\"cstRepairNot\", \"\");this.put(\"cstRepair\", null);return this;}", "title": "" }, { "docid": "5bc6c3937f74958be4aee61502b5d89b", "score": "0.5515034", "text": "public None() {\r\n }", "title": "" }, { "docid": "7db9fca218a78643aa53b3edcda3957c", "score": "0.54930735", "text": "private void ensureNullaryCtor(CtClass cc) throws NotFoundException, CannotCompileException {\n // Build a null-ary constructor if needed\n String clzname = cc.getSimpleName();\n if( !hasExisting(clzname,\"()V\",cc.getDeclaredConstructors()) ) {\n String body = \"public \"+clzname+\"() { }\";\n cc.addConstructor(CtNewConstructor.make(body,cc));\n } else {\n CtConstructor ctor = cc.getConstructor(\"()V\");\n ctor.setModifiers(javassist.Modifier.setPublic(ctor.getModifiers()));\n }\n }", "title": "" }, { "docid": "e0e2cd08f0c8155f950a5290dd5f5b99", "score": "0.54880697", "text": "public M csvMoneyNull(){if(this.get(\"csvMoneyNot\")==null)this.put(\"csvMoneyNot\", \"\");this.put(\"csvMoney\", null);return this;}", "title": "" }, { "docid": "41e0e0ac408526ecae9cca94494167d1", "score": "0.54873997", "text": "public Carnivoro() {\r\n\r\n }", "title": "" }, { "docid": "8a44a4b445f607261b966b457b6a3f15", "score": "0.5474021", "text": "public Builder clearCompInfo() {\n if (compInfoBuilder_ == null) {\n compInfo_ = null;\n onChanged();\n } else {\n compInfo_ = null;\n compInfoBuilder_ = null;\n }\n\n return this;\n }", "title": "" }, { "docid": "e97304c7c930c246d22aff9409944b94", "score": "0.5472464", "text": "public M cstRepairPayNull(){if(this.get(\"cstRepairPayNot\")==null)this.put(\"cstRepairPayNot\", \"\");this.put(\"cstRepairPay\", null);return this;}", "title": "" }, { "docid": "314efd8890399110470446a7d5bec2c2", "score": "0.5467895", "text": "public M cstInvoiceNull(){if(this.get(\"cstInvoiceNot\")==null)this.put(\"cstInvoiceNot\", \"\");this.put(\"cstInvoice\", null);return this;}", "title": "" }, { "docid": "0dbc36a22df044035823f447b0e55ccd", "score": "0.5454735", "text": "public NoArvore() {\r\n\t\tthis.valor = null;\r\n\t\tthis.direita = null;\r\n\t\tthis.esquerda = null;\r\n\t}", "title": "" }, { "docid": "1bc28720f5307b0548cbd11c6bc6a4b1", "score": "0.545212", "text": "public M csalRecordNull(){if(this.get(\"csalRecordNot\")==null)this.put(\"csalRecordNot\", \"\");this.put(\"csalRecord\", null);return this;}", "title": "" }, { "docid": "57c16944a1a6cfe1cff5e5258c008a75", "score": "0.54468673", "text": "public void setNull() { buf= null; start= 0; end= -1; }", "title": "" }, { "docid": "4c00ee4cfac0fea4fbf5de484dddce01", "score": "0.54291934", "text": "public M cstRepairPartNull(){if(this.get(\"cstRepairPartNot\")==null)this.put(\"cstRepairPartNot\", \"\");this.put(\"cstRepairPart\", null);return this;}", "title": "" }, { "docid": "326911690802a2a3e0ccf550bae672d6", "score": "0.542257", "text": "public M csalTypeNull(){if(this.get(\"csalTypeNot\")==null)this.put(\"csalTypeNot\", \"\");this.put(\"csalType\", null);return this;}", "title": "" }, { "docid": "7c701084c65db51ce49c4a1bfea313df", "score": "0.53960276", "text": "@Test (expected=NullPointerException.class)\n public void testCtor_CollectionNull() {\n System.out.println(\"ctor(c, null collection)\");\n Collection<Period> per = null;\n Periods p = new Periods(2, per);\n }", "title": "" }, { "docid": "99d88d8197b626e7f703471b4a4bd5f4", "score": "0.53937286", "text": "public M cstMemberNull(){if(this.get(\"cstMemberNot\")==null)this.put(\"cstMemberNot\", \"\");this.put(\"cstMember\", null);return this;}", "title": "" }, { "docid": "49db372786f707bb503d50100ef103ee", "score": "0.53934956", "text": "public CardData() {\r\n this(\"\");\r\n }", "title": "" }, { "docid": "5f22a1f8a8a5d217f22ba4838dea8b0b", "score": "0.53878725", "text": "public M cstRepairAdrNull(){if(this.get(\"cstRepairAdrNot\")==null)this.put(\"cstRepairAdrNot\", \"\");this.put(\"cstRepairAdr\", null);return this;}", "title": "" }, { "docid": "b00291a4d71c1dd7d3250b370f4beac3", "score": "0.5375412", "text": "public Customer (){\n this(0,\"\",0,\"\",\"\",\"\",\"\",\"\",\"\",0,null,\"\",null,\"\");\n }", "title": "" }, { "docid": "5155695959817c9b14353093ee76bd53", "score": "0.53684545", "text": "public M cstDeciptNull(){if(this.get(\"cstDeciptNot\")==null)this.put(\"cstDeciptNot\", \"\");this.put(\"cstDecipt\", null);return this;}", "title": "" }, { "docid": "4488ca58438d30b3f61d2964538edc70", "score": "0.5362825", "text": "public M cstStatusNull(){if(this.get(\"cstStatusNot\")==null)this.put(\"cstStatusNot\", \"\");this.put(\"cstStatus\", null);return this;}", "title": "" }, { "docid": "690a39e1018ef320151f2f6682d87751", "score": "0.53622633", "text": "public static CALWorkspace makeNullaryWorkspace() {\r\n\r\n Nullary workspace = new Nullary();\r\n \r\n // Register the resource managers.\r\n workspace.registerNonCarAwareResourceManager(new CALSourceManager(new CALSourceNullaryStore()));\r\n workspace.registerNonCarAwareResourceManager(new MetadataManager(new MetadataNullaryStore()));\r\n workspace.registerNonCarAwareResourceManager(new GemDesignManager(new GemDesignNullaryStore()));\r\n workspace.registerNonCarAwareResourceManager(new CarManager(new CarNullaryStore()));\r\n workspace.registerNonCarAwareResourceManager(new WorkspaceDeclarationManager(new WorkspaceDeclarationNullaryStore()));\r\n workspace.registerNonCarAwareResourceManager(new UserResourceManager(new UserResourceNullaryStore()));\r\n \r\n return workspace;\r\n }", "title": "" }, { "docid": "078c536861cf1e552239192bc81172dd", "score": "0.5358218", "text": "public Casilla() {\n\t\tdistancia = Integer.MAX_VALUE;\n\t\tanterior = null;\n\t}", "title": "" }, { "docid": "a192901ddf4d82c2e22fab78681d9c81", "score": "0.53581816", "text": "public Expression firstConstructor() {\n return null;\n }", "title": "" }, { "docid": "fba81e779f6644677256f18262ce1a30", "score": "0.5351072", "text": "public M csalStatusNull(){if(this.get(\"csalStatusNot\")==null)this.put(\"csalStatusNot\", \"\");this.put(\"csalStatus\", null);return this;}", "title": "" }, { "docid": "5729016481a71141d5708b16a344a3fe", "score": "0.5351043", "text": "public M csalModelClassNull(){if(this.get(\"csalModelClassNot\")==null)this.put(\"csalModelClassNot\", \"\");this.put(\"csalModelClass\", null);return this;}", "title": "" }, { "docid": "c5c7fee616f694fa2ca18926bf704e0d", "score": "0.53485537", "text": "public M csvTypeNull(){if(this.get(\"csvTypeNot\")==null)this.put(\"csvTypeNot\", \"\");this.put(\"csvType\", null);return this;}", "title": "" }, { "docid": "70c74f6feab385a3e37581b3b581a76b", "score": "0.53444177", "text": "public M csvDeciptNull(){if(this.get(\"csvDeciptNot\")==null)this.put(\"csvDeciptNot\", \"\");this.put(\"csvDecipt\", null);return this;}", "title": "" }, { "docid": "fedd79af908b812365654904434b21a1", "score": "0.5342426", "text": "public Central()\n {\n this.encomendas=new HashMap<>();\n this.lojas=new HashMap<>();\n this.utilizadores= new HashMap<>();\n this.entregadores=new HashMap<>();\n this.encAceitas=new TreeSet<>();\n this.propostas=new ArrayList<>();\n this.entregas=new HashMap<>();\n this.condicoes= new Condicoes();\n }", "title": "" }, { "docid": "26a800031780a7ec8ba169a1d951f22b", "score": "0.53419846", "text": "public void testCtor_NullObject() {\n try {\n new ObjectNode(null, graphConnector, graphNode, position, bound, corners, propertyNameMapping);\n fail(\"IllegalArgumentException expected.\");\n } catch (IllegalArgumentException iae) {\n //good\n }\n }", "title": "" }, { "docid": "85fbeea3f5b9510a703bcd1f4aca2ffd", "score": "0.533651", "text": "public Builder clearNullValue() {\n if (constantKindCase_ == 1) {\n constantKindCase_ = 0;\n constantKind_ = null;\n onChanged();\n }\n return this;\n }", "title": "" }, { "docid": "54ce7dab2ff518dd1662f8f3aa45ae4a", "score": "0.5330793", "text": "public void testCtor_NullCorners() {\n try {\n new ObjectNode(object, graphConnector, graphNode, position, bound, null, propertyNameMapping);\n fail(\"IllegalArgumentException expected.\");\n } catch (IllegalArgumentException iae) {\n //good\n }\n }", "title": "" }, { "docid": "44e0f4e171929f8aaf98576fd5480400", "score": "0.53243005", "text": "public AcademicCalendar() {\n this.year = null;\n this.semester = null;\n }", "title": "" }, { "docid": "856b3a44c03ceafccb93bfed2f115cb2", "score": "0.5321614", "text": "public CellaBlanca () {\n super.Cella();\n valor = -1;\n fixed = false;\n }", "title": "" }, { "docid": "c8dda050318e0a47a1b414cf4da7e51e", "score": "0.53140384", "text": "private None() {}", "title": "" }, { "docid": "c5d0722d2b9d77cf6e7198839cd7c117", "score": "0.53124774", "text": "public M csalBankTypeNull(){if(this.get(\"csalBankTypeNot\")==null)this.put(\"csalBankTypeNot\", \"\");this.put(\"csalBankType\", null);return this;}", "title": "" }, { "docid": "f271fbc677d1ae9e03fd544ab76d6f7b", "score": "0.52999496", "text": "public Cdtragt() {\n }", "title": "" }, { "docid": "8d1f581bf168487ea5701682a4c1189c", "score": "0.52996546", "text": "@Override\n\tpublic Composite getComposite() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "6c61c0ea1e998cba1e72b595b3703b08", "score": "0.5291115", "text": "public M csalRefundNull(){if(this.get(\"csalRefundNot\")==null)this.put(\"csalRefundNot\", \"\");this.put(\"csalRefund\", null);return this;}", "title": "" }, { "docid": "676a47637d8c100b473f11652c993de2", "score": "0.52894616", "text": "Contact() {\n this(null, null, null, null);\n }", "title": "" }, { "docid": "65c45aa40ae5a7bb31d1432292c1c8c1", "score": "0.5287868", "text": "public void testCtor_NullPosition() {\n try {\n new ObjectNode(object, graphConnector, graphNode, null, bound, corners, propertyNameMapping);\n fail(\"IllegalArgumentException expected.\");\n } catch (IllegalArgumentException iae) {\n //good\n }\n }", "title": "" }, { "docid": "acff22897c02f96a298abd1d036b6ed4", "score": "0.5287667", "text": "public Contact() {\n // Setting a null use of the contact\n this.use = null;\n\n // Setting a null URL scheme\n this.prefix = null;\n\n // Setting a null call value of the contact\n this.value = null;\n }", "title": "" }, { "docid": "f9b9ad77c3c5f62ec84e3811a265eeae", "score": "0.52826285", "text": "public BoxObject() {\n this(null);\n }", "title": "" }, { "docid": "77829d9e647847a56021dd1e56d3bac1", "score": "0.52792066", "text": "public mxCell() {\n this(null);\n }", "title": "" }, { "docid": "e83668bd2b1cc8bbb1b2ddae5caf5cb2", "score": "0.5274443", "text": "@Test public void testNullObject()\n {\n EmbeddedConnection nullBean;\n EmbeddedConnectionProperties nullObject;\n EmbeddedConnectionProperties nullTemplate;\n AssetDescriptor parentAsset;\n\n nullBean = null;\n nullObject = new EmbeddedConnectionProperties(nullBean);\n validateNullObject(nullObject);\n\n nullBean = new EmbeddedConnection();\n nullObject = new EmbeddedConnectionProperties(nullBean);\n validateNullObject(nullObject);\n\n nullBean = new EmbeddedConnection(null);\n nullObject = new EmbeddedConnectionProperties(nullBean);\n validateNullObject(nullObject);\n\n }", "title": "" }, { "docid": "8e3dc4b53b559e1fee76342bc84724e4", "score": "0.5262731", "text": "@Test(expected = IllegalArgumentException.class)\n public void contructor_con_atributos_nulos() {\n new Money(null,null);\n }", "title": "" }, { "docid": "320f69f103dec5b38186c7cc423659c9", "score": "0.5257671", "text": "public M cstOrderNull(){if(this.get(\"cstOrderNot\")==null)this.put(\"cstOrderNot\", \"\");this.put(\"cstOrder\", null);return this;}", "title": "" }, { "docid": "5f00b3f627124802d2048b40d813e960", "score": "0.5250315", "text": "public M csvStatusNull(){if(this.get(\"csvStatusNot\")==null)this.put(\"csvStatusNot\", \"\");this.put(\"csvStatus\", null);return this;}", "title": "" }, { "docid": "739c658800d7b800697fc91932045caf", "score": "0.52434605", "text": "public M cstRepayTypeNull(){if(this.get(\"cstRepayTypeNot\")==null)this.put(\"cstRepayTypeNot\", \"\");this.put(\"cstRepayType\", null);return this;}", "title": "" }, { "docid": "17dddbae897f0db3d14a38bc8b06fbd9", "score": "0.5242204", "text": "public M cstRemarkNull(){if(this.get(\"cstRemarkNot\")==null)this.put(\"cstRemarkNot\", \"\");this.put(\"cstRemark\", null);return this;}", "title": "" }, { "docid": "86b7dd9204e5025c2abdfcb6796ae9fd", "score": "0.5241852", "text": "public void testCtor_NullGraphConnector() {\n try {\n new ObjectNode(object, null, graphNode, position, bound, corners, propertyNameMapping);\n fail(\"IllegalArgumentException expected.\");\n } catch (IllegalArgumentException iae) {\n //good\n }\n }", "title": "" }, { "docid": "0151db21461a906a299222b335cee949", "score": "0.5241651", "text": "public M cstTrailFeeNull(){if(this.get(\"cstTrailFeeNot\")==null)this.put(\"cstTrailFeeNot\", \"\");this.put(\"cstTrailFee\", null);return this;}", "title": "" }, { "docid": "b42741617b9c35c43430bc0cce1e1ddf", "score": "0.5241359", "text": "public Compra(int idCompra, Date fechaCompra, double precioTotal, List<DetalleCompra> listaDetalleCompra,\r\n\t\t\tCliente cliente, MetodoPago metodoPago) {\r\n\t\tsuper();\r\n\t\tthis.idCompra = idCompra;\r\n\t\tthis.fechaCompra = fechaCompra;\r\n\t\tthis.precioTotal = precioTotal;\r\n\t\tthis.listaDetalleCompra = listaDetalleCompra;\r\n\t\tthis.cliente = cliente;\r\n\t\tthis.metodoPago = metodoPago;\r\n\t}", "title": "" }, { "docid": "db0368f656053caa9c5dc220c65008d0", "score": "0.5241236", "text": "public CreditCard() {}", "title": "" }, { "docid": "58360749db44e37eb2fb5f9989cad3ea", "score": "0.523724", "text": "private NullDisplayNameCreator() {\n }", "title": "" }, { "docid": "4042bb6effa9dad3df13e2f4f83f117f", "score": "0.52276814", "text": "public M cstInsureFeeNull(){if(this.get(\"cstInsureFeeNot\")==null)this.put(\"cstInsureFeeNot\", \"\");this.put(\"cstInsureFee\", null);return this;}", "title": "" }, { "docid": "83585edc18badc70605150acba721268", "score": "0.5224312", "text": "public Compact(){\n this.description = \"Compact\";\n }", "title": "" }, { "docid": "72b9d8f8a789238f11b34433d9eac110", "score": "0.5220413", "text": "public Compuerta () {\n this.input1 = input1;\n this.input2 = input2;\n }", "title": "" }, { "docid": "9f569d80b047c2e0e3f683537b86c235", "score": "0.52188337", "text": "public CompanionRoomRecord() {\n super(CompanionRoom.COMPANION_ROOM);\n }", "title": "" }, { "docid": "29c89ebcc581ef5038ed79515d027dca", "score": "0.5217158", "text": "public Cnode() {\r\n }", "title": "" }, { "docid": "2894d624a15649132dc67471684ab8a3", "score": "0.52158785", "text": "public Complex() {\n\t\tthis(0, 0);\n\t}", "title": "" }, { "docid": "21fc110373388d9a9ea9e03789c7e7c1", "score": "0.5214312", "text": "@Test\n public void constructor_null_throwsNullPointerException() {\n assertThrows(NullPointerException.class, () -> new PlanCommand(null, null));\n\n // valid indexes, null date\n assertThrows(NullPointerException.class, () -> new PlanCommand(VALID_INDEXES, null));\n\n // null indexes, valid date\n assertThrows(NullPointerException.class, () -> new PlanCommand(null, DATE_TODAY));\n }", "title": "" }, { "docid": "2b677b609b7b5f7e81e70b1ff3a5ec85", "score": "0.5214289", "text": "public NullConstant(CodeLocation location) {\n\t\tsuper(NullType.INSTANCE, NULL_CONST, location);\n\t}", "title": "" }, { "docid": "819514bcde52e7140b424280f2aa095d", "score": "0.5214288", "text": "public M csvMemberNull(){if(this.get(\"csvMemberNot\")==null)this.put(\"csvMemberNot\", \"\");this.put(\"csvMember\", null);return this;}", "title": "" }, { "docid": "e8b93f5950cef96bb7a4ee7cbdabc304", "score": "0.5198423", "text": "public void testCtor_NullBound() {\n try {\n new ObjectNode(object, graphConnector, graphNode, position, null, corners, propertyNameMapping);\n fail(\"IllegalArgumentException expected.\");\n } catch (IllegalArgumentException iae) {\n //good\n }\n }", "title": "" }, { "docid": "620c78975fc7807b333c90868dce24a1", "score": "0.51963884", "text": "public M cstIdNull(){if(this.get(\"cstIdNot\")==null)this.put(\"cstIdNot\", \"\");this.put(\"cstId\", null);return this;}", "title": "" }, { "docid": "196c00f1c59db5cfd28cd0bc1694a237", "score": "0.5175344", "text": "@Test(expectedExceptions = IllegalArgumentException.class)\n public void testNullStrikes() {\n new PresentValueForexBlackVolatilityNodeSensitivityDataBundle(CUR_1, CUR_2, new DoubleMatrix1D(EXPIRIES), null,\n new DoubleMatrix2D(VEGA));\n }", "title": "" }, { "docid": "96aae78fdab62685836c191b35fd7ad3", "score": "0.51742756", "text": "public Compra getObjCompra() {\n return ObjCompra;\n }", "title": "" }, { "docid": "972eeec254d52fb39a0d0e9e9f139f73", "score": "0.517117", "text": "public ArbolConsulta() {\n\t\traiz = null;\n\t}", "title": "" }, { "docid": "6a53f17e13778f85b9707b3f515f260a", "score": "0.5166399", "text": "public M csvDealFlagNull(){if(this.get(\"csvDealFlagNot\")==null)this.put(\"csvDealFlagNot\", \"\");this.put(\"csvDealFlag\", null);return this;}", "title": "" } ]
7ec29d2268276350351e43808f148e37
Sets the flag that enables/disables dragging of links
[ { "docid": "45f83d911e35bc8bd51effc9804e2197", "score": "0.0", "text": "public void setEnabled(boolean bEnable) {\n\t\tif (bEnable)\n\t\t\tsetState(INITIAL_STATE);\n\t\telse\n\t\t\tsetState(DISABLED_STATE);\n\t}", "title": "" } ]
[ { "docid": "a8a6b61d88e55ca563ab232892cd87d8", "score": "0.7376861", "text": "public void setDragEnabled(boolean enable);", "title": "" }, { "docid": "f91a8f482dfae5e499e200a8fa01bd49", "score": "0.67530495", "text": "void setHyperlinkEnabled(boolean enabled);", "title": "" }, { "docid": "bbf3e85e3d422bca4cd41fb3eefb90e0", "score": "0.65806484", "text": "void setDraggable(boolean draggable);", "title": "" }, { "docid": "b8ff2b4e5247d2982025e04c15367390", "score": "0.63650334", "text": "public void setDragEnabled(boolean enabled) {\n this.mDragEnabled = enabled;\n }", "title": "" }, { "docid": "222fc28959e7c2a0b98d253fe436f120", "score": "0.623131", "text": "public boolean isDragEnabled();", "title": "" }, { "docid": "03beb91079f03e5e6bcb627458b567e4", "score": "0.6060476", "text": "@Override\n public void updateClickableState(boolean isClickable) {\n if (isClickable) {\n setClickable(true);\n } else {\n setClickable(false);\n }\n }", "title": "" }, { "docid": "da1dcf7659c36b7918517a8629ed84a1", "score": "0.6004328", "text": "public void setPinned(boolean pinned) {\n this.pinned = pinned;\n String c = pinned ? \"default\" : \"move\";\n getHeader().setStyleAttribute(\"cursor\", c);\n if (getData(\"gxt.draggable\") != null) {\n Draggable d = (Draggable) getData(\"gxt.draggable\");\n d.setEnabled(!pinned);\n }\n }", "title": "" }, { "docid": "cda8faff4b557df86c338d599095f30e", "score": "0.5995119", "text": "public native void setDoubleClickEnabled(boolean value) /*-{\n\t\tvar peer = this.@com.ait.toolkit.core.client.JsObject::getJsObj()();\n\t\tpeer.setdoubleClickEnabled(enable);\n }-*/;", "title": "" }, { "docid": "e10d331f7ef63e98c9ab9744ba8522c8", "score": "0.59500736", "text": "public boolean isDragDropEnabled ();", "title": "" }, { "docid": "38634f1a8bb7923d134ce8d44ae8f7a1", "score": "0.5893912", "text": "public void setIsLink(Boolean isLink) {\n\t\tthis.isLink = isLink;\n\t}", "title": "" }, { "docid": "8f2c93a62b06f6832f8d1fb518b2d448", "score": "0.5875173", "text": "public abstract void setMouseGrabbed(boolean paramBoolean);", "title": "" }, { "docid": "71536a3478dfdbeecce0655285515423", "score": "0.58633316", "text": "public void updateLinkStatus(){\n\t\tlinked = (numberOflinks > 0)?true:false;\n\t}", "title": "" }, { "docid": "4d94f8c5c925d98c35e221138d705aa8", "score": "0.58629125", "text": "void enableLinkCreation(boolean benablecreate) {\n\t\tm_enablecreate = benablecreate;\n\t}", "title": "" }, { "docid": "4245c23dd1616ce982c7d73f772f1351", "score": "0.5840063", "text": "@Override\n public boolean isLongPressDragEnabled() {\n return false;\n }", "title": "" }, { "docid": "5dc64fa6eec6bc8ec05a7467f4801466", "score": "0.58398837", "text": "public void setLongPressDragEnabled(final boolean enabled) {\n mTouchHelperCallback.setLongPressDragEnabled(enabled);\n }", "title": "" }, { "docid": "2d21a27e8a5f4d8e5da96a3aa555a346", "score": "0.58225894", "text": "public void enableDirectTarget(boolean enabled);", "title": "" }, { "docid": "f30061a34eced5a9d3edf4193969e977", "score": "0.5812264", "text": "public void setLinked(boolean isLinked) {\r\n\t\tthis.linked = isLinked;\r\n\t}", "title": "" }, { "docid": "2edd781efbe09c196c1f132fb9e2533e", "score": "0.5790424", "text": "public void setManualDragEnabled(final boolean enabled) {\n mTouchHelperCallback.setManualDragEnabled(enabled);\n }", "title": "" }, { "docid": "4b65b014e6ead11414b00be2ece04940", "score": "0.57897365", "text": "public void setEnabled(boolean b) {\n\t\t\t// setFocusable(b);\n\t\t\tother.setEnabled(b);\n\t\t}", "title": "" }, { "docid": "b12529ae46a10781a8843098ba9c178a", "score": "0.5782601", "text": "public void onEvent(Boolean b) {\n dragLayout.setTouchMode(b);\n }", "title": "" }, { "docid": "7293ca61350f227a741aeaafbffa9bbd", "score": "0.5767176", "text": "private void setupMouseDrag() {\n\t\tcontent.setOnDragDetected(e -> this.drag = true);\n\t}", "title": "" }, { "docid": "e4d6e06437e20ee740b3a204f15d0fcb", "score": "0.57588583", "text": "public void setMouseDragged(boolean isMouseDragged) {\n this.isMouseDragged = isMouseDragged;\n }", "title": "" }, { "docid": "f00d5cd9c25c7e93c530b25390c05065", "score": "0.5748786", "text": "boolean isHyperlinkEnabled();", "title": "" }, { "docid": "8d23fdf57740e544bee7e385f677315a", "score": "0.571614", "text": "public void mouseDragged(MouseEvent e) {\n\t\tif (m_state == DRAG_INITIALIZE_STATE) {\n\t\t\tif (m_selectedlink != null) {\n\t\t\t\tm_selectedlink.repaint();\n\t\t\t\tm_selectedlink.setVisible(false);\n\t\t\t}\n\t\t\tm_state = DRAGGING_STATE;\n\t\t}\n\n\t\tif (m_state == DRAGGING_STATE) {\n\t\t\tm_draglink.repaint();\n\t\t\tObject obj = e.getSource();\n\t\t\tPoint canvaspt = SwingUtilities.convertPoint((java.awt.Component) obj, e.getPoint(), m_canvas);\n\t\t\tm_draglink.doDrag(canvaspt.x, canvaspt.y);\n\n\t\t\tif (m_dragtarget != null) {\n\t\t\t\tRectangle rect = m_dragtarget.getBounds();\n\t\t\t\tif (!rect.contains(canvaspt)) {\n\t\t\t\t\tJList list = m_dragtarget.getJList();\n\t\t\t\t\tlist.clearSelection();\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tTableWidget w = getTableWidget(canvaspt);\n\t\t\tif (w != null && w != m_draganchor) {\n\t\t\t\t// the mouse is over a table widget, now determine if the mouse\n\t\t\t\t// is over\n\t\t\t\t// the list component\n\t\t\t\tJList list = w.getJList();\n\t\t\t\tPoint listpt = SwingUtilities.convertPoint(m_canvas, canvaspt, list);\n\t\t\t\tint listindex = list.locationToIndex(listpt);\n\t\t\t\tlist.setSelectedIndex(listindex);\n\t\t\t\t// list.ensureIndexIsVisible( listindex );\n\t\t\t\tm_dragtarget = w;\n\t\t\t}\n\n\t\t}\n\t\te.consume();\n\t}", "title": "" }, { "docid": "c338e0bd44b5d9a06b61342cbd90709e", "score": "0.57069165", "text": "@Override\n\tpublic void setEnabled(boolean b) {\n\n\t}", "title": "" }, { "docid": "a63cf915f0ee028bfb9d5882798ffbfc", "score": "0.57067394", "text": "public void setEnabled() {\n isEnabled = true;\n }", "title": "" }, { "docid": "cecad3f5ddc94bd6309db2cdb3e646ed", "score": "0.56541145", "text": "public void setClickable(boolean clickable) {\n setFlags(clickable ? CLICKABLE : 0, CLICKABLE);\n }", "title": "" }, { "docid": "cecad3f5ddc94bd6309db2cdb3e646ed", "score": "0.56541145", "text": "public void setClickable(boolean clickable) {\n setFlags(clickable ? CLICKABLE : 0, CLICKABLE);\n }", "title": "" }, { "docid": "84633ff4309f2ea0684e936407cf67c2", "score": "0.5632151", "text": "public void clickable()\n {\n clickable = true;\n }", "title": "" }, { "docid": "6081e50ab8ebbee7983783df53b6c1b7", "score": "0.5631321", "text": "public void setPasteLink(boolean pasteLink)\n {\n boolean old = this.pasteLink;\n this.pasteLink = pasteLink;\n firePropertyChange(PROP_PASTE_LINK, old, pasteLink);\n }", "title": "" }, { "docid": "9f59a43dc2dac7995613fc7e01a3b356", "score": "0.5623452", "text": "void setDownloadsEnabled(Boolean downloadsEnabled);", "title": "" }, { "docid": "90a7817063556a1f0d8b924faa7f0481", "score": "0.5607051", "text": "static void startDraggingBoundary() {\r\n isDraggingBoundary = true;\r\n }", "title": "" }, { "docid": "cc97beff3e3aad05d798fbf4a823d77a", "score": "0.5593552", "text": "void setEnabled(boolean enabled);", "title": "" }, { "docid": "cc97beff3e3aad05d798fbf4a823d77a", "score": "0.5593552", "text": "void setEnabled(boolean enabled);", "title": "" }, { "docid": "cc97beff3e3aad05d798fbf4a823d77a", "score": "0.5593552", "text": "void setEnabled(boolean enabled);", "title": "" }, { "docid": "cc97beff3e3aad05d798fbf4a823d77a", "score": "0.5593552", "text": "void setEnabled(boolean enabled);", "title": "" }, { "docid": "2a23621d8f12705b2ec5c6e48a95dae5", "score": "0.558962", "text": "@Override\n public void setEnabled(boolean ena) {\n super.setEnabled(ena);\n targetIPField.setEditable(ena);\n targetPortField.setEditable(ena);\n }", "title": "" }, { "docid": "ae5fb6048bd6d7a4c34398e6f46de80b", "score": "0.5571293", "text": "public void setMoveable(boolean theFlag) {\n\t\tisMoveable = theFlag;\n\t}", "title": "" }, { "docid": "8d52cef2e9c1ecc45092175ef4d7001a", "score": "0.5551076", "text": "public void unClickable()\n {\n clickable = false;\n }", "title": "" }, { "docid": "e6d4c94ebd42b4860fdedf205c4afc8f", "score": "0.55439126", "text": "void setEnabled(final boolean u);", "title": "" }, { "docid": "5e685b32c0f12c56c19d0bd9eb8183dc", "score": "0.55419606", "text": "public void setEnabled(boolean paramBoolean) {\n/* 2679 */ boolean bool = isEnabled();\n/* 2680 */ super.setEnabled(paramBoolean);\n/* 2681 */ firePropertyChange(\"enabled\", bool, paramBoolean);\n/* 2682 */ if (paramBoolean != bool) {\n/* 2683 */ repaint();\n/* */ }\n/* */ }", "title": "" }, { "docid": "9d4f98a9958f370070691140e233497d", "score": "0.55408424", "text": "public void enable() {\n active = true;\n canRecycle = false;\n }", "title": "" }, { "docid": "8537533645e4ab3ed54eb5b408303ece", "score": "0.55394053", "text": "public void setProxyOn(boolean enabled) {\n\t\t//modify by gaow.\n\t\t//super.setProxyOn(enabled);\n }", "title": "" }, { "docid": "3b37aa236f91a128a22c2410bd4e1ee2", "score": "0.55346", "text": "private void enableRelinquish(boolean b){\n getRobotPanel().enableRelinquish(b);\r\n }", "title": "" }, { "docid": "733a0000103304547be38372717ea6ef", "score": "0.55342484", "text": "boolean isDraggingWidget();", "title": "" }, { "docid": "54bd53e5f7d8673c321393971c5c767c", "score": "0.5531758", "text": "public void setEnabled(boolean enabled);", "title": "" }, { "docid": "54bd53e5f7d8673c321393971c5c767c", "score": "0.5531758", "text": "public void setEnabled(boolean enabled);", "title": "" }, { "docid": "54bd53e5f7d8673c321393971c5c767c", "score": "0.5531758", "text": "public void setEnabled(boolean enabled);", "title": "" }, { "docid": "09edd39566081cdba3d3117a35736fba", "score": "0.5513936", "text": "public void setEnabled(boolean flag) {\n _wrappedPane.setEnabled(flag);\n }", "title": "" }, { "docid": "f3f43e7662fd7bb3cc2bf3e46bb4c167", "score": "0.5513051", "text": "void setEnableDND( boolean enableDND );", "title": "" }, { "docid": "9872be96fe62fe6e9132cafa5bac8943", "score": "0.55120915", "text": "@Override\n public void setEnabled(boolean value) {\n super.setEnabled(value);\n this.mEnabled = value;\n initializeFancyButton();\n\n }", "title": "" }, { "docid": "357b41c9479de9bcb64b321768afc68d", "score": "0.55015576", "text": "public boolean isEnabled_click_View_Deals_Link(){\r\n\t\tif(click_View_Deals_Link.isEnabled()) { return true; } else { return false;} \r\n\t}", "title": "" }, { "docid": "093210edbd737e4e982033177653bb38", "score": "0.55013114", "text": "public void setDirected(boolean directed);", "title": "" }, { "docid": "f358c9d3b15eb358e843105ddfd3d400", "score": "0.550004", "text": "protected abstract boolean isLinkEnabled(IObservable observable);", "title": "" }, { "docid": "b4b1450f9b03147be17c0d16cd49e82b", "score": "0.5485372", "text": "public void enableImage() {\n topImage.setFocusable(true);\n bottomImage.setFocusable(true);\n }", "title": "" }, { "docid": "bfe4ebd69e6e39183588ffad95f5dd9b", "score": "0.54723233", "text": "private void setEnabledOnSubmitLink (SubmitLink link, boolean enabled)\n\t\t{\n\t\t\tlink.setEnabled(enabled);\n\t\t\tif (enabled)\n\t\t\t\tlink.add(new SimpleAttributeModifier(\"class\",\"button\"));\n\t\t\telse\n\t\t\t\tlink.add(new SimpleAttributeModifier(\"class\",\"button_disabled\"));\n\t\t}", "title": "" }, { "docid": "8e7a8327edd638b249fdc06e88b0d5d4", "score": "0.54483527", "text": "private boolean isDragging() {\r\n\t\treturn dragging;\r\n\t}", "title": "" }, { "docid": "3e85f2acace8c4228c39ca86d61b13a8", "score": "0.544815", "text": "public void enableLatLon(boolean flag){\n\t\tlatitudeText.setEnabled(flag);\n\t\tlongitudeText.setEnabled(flag);\n\t}", "title": "" }, { "docid": "cd1684bb296939894dcb911214569d38", "score": "0.54443085", "text": "public native void setEnabled(boolean enable);", "title": "" }, { "docid": "309cbd62e3ed35a2655bdd38e8be467f", "score": "0.5428528", "text": "public void reEnable() {\n setEnabled(true);\n }", "title": "" }, { "docid": "50e0b638460d901509d40d74ecb299b4", "score": "0.54268676", "text": "public void setNavigable(boolean isNavigable) {\n // your code here\n }", "title": "" }, { "docid": "5c8fcefb8f8b1911212cac751857eefd", "score": "0.54095757", "text": "public void setEnableClick(boolean trueORfalse) {\n ((ImageView) findViewById(C0349R.C0351id.iv_11)).setClickable(trueORfalse);\n ((ImageView) findViewById(C0349R.C0351id.iv_12)).setClickable(trueORfalse);\n ((ImageView) findViewById(C0349R.C0351id.iv_13)).setClickable(trueORfalse);\n ((ImageView) findViewById(C0349R.C0351id.iv_21)).setClickable(trueORfalse);\n ((ImageView) findViewById(C0349R.C0351id.iv_22)).setClickable(trueORfalse);\n ((ImageView) findViewById(C0349R.C0351id.iv_23)).setClickable(trueORfalse);\n ((ImageView) findViewById(C0349R.C0351id.iv_31)).setClickable(trueORfalse);\n ((ImageView) findViewById(C0349R.C0351id.iv_32)).setClickable(trueORfalse);\n ((ImageView) findViewById(C0349R.C0351id.iv_33)).setClickable(trueORfalse);\n }", "title": "" }, { "docid": "c7b781acb46163c922fc623c6a4335a7", "score": "0.5402422", "text": "public void setStateClickable(boolean clickable)\n {\n stateClickable = clickable;\n }", "title": "" }, { "docid": "9d44d6e346df1ea7b544e7031a079ed2", "score": "0.5401325", "text": "@Override\n\tpublic void setEnable(boolean enable) {\n\t\t\n\t}", "title": "" }, { "docid": "9d44d6e346df1ea7b544e7031a079ed2", "score": "0.5401325", "text": "@Override\n\tpublic void setEnable(boolean enable) {\n\t\t\n\t}", "title": "" }, { "docid": "6b2c6f1dfff5fe5c7b0b030c86a17755", "score": "0.5397053", "text": "public void setMoved(boolean val) {\n\t\tmoved = val;\n\t}", "title": "" }, { "docid": "c74b8bb7ce8c187a865ff4e6e34c17a4", "score": "0.53916615", "text": "private void setDisableControlButtons(boolean bool) {\r\n sortButton.setDisable(bool);\r\n cancelButton.setDisable(bool);\r\n doneButton.setDisable(bool);\r\n }", "title": "" }, { "docid": "3d974587affcff4ff96ade8672682b68", "score": "0.5385153", "text": "public void setScrollingDisabled (boolean x, boolean y) {\r\n \t\tdisableX = x;\r\n \t\tdisableY = y;\r\n \t}", "title": "" }, { "docid": "750f2f5fe190085e31959472a2b9036d", "score": "0.53832304", "text": "void setCanTravel(boolean travelable) {\n\t\tcanTravel = travelable;\n\t}", "title": "" }, { "docid": "5800b2bcc201c41e6ea986f315ca5e70", "score": "0.5375959", "text": "@Override\n\tpublic boolean isClickable() {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "b09a53156ef7a215cd6a35c8c21945bb", "score": "0.5370145", "text": "public void setEnabled(boolean state);", "title": "" }, { "docid": "1f3f8572d5da5d356983d95e81f65533", "score": "0.5363874", "text": "public boolean isManualDragEnabled() {\n return mTouchHelperCallback.isManualDragEnabled();\n }", "title": "" }, { "docid": "0fd4ec653fb5ee24fe9bf5b435112c14", "score": "0.5359737", "text": "public void setEnabled( boolean status );", "title": "" }, { "docid": "37c7cbcfdf7b568225ce559e86371c29", "score": "0.53517085", "text": "public void disableButtons() {\n addPointOne.setEnabled(false);\n addPointTwo.setEnabled(false);\n }", "title": "" }, { "docid": "d769d643dff95f976930cf7ba0d6359d", "score": "0.5342592", "text": "private void enableDisableButton() {\n\t\tboolean valid = webAddressValid & portValid;\n\t\tview.btnSave.setDisable(!valid);\n\t}", "title": "" }, { "docid": "9617a05ec881678de5bc173f3c36dc83", "score": "0.53360987", "text": "public void setForwardEnabled(boolean enabled);", "title": "" }, { "docid": "865477c9feaf4740705a763e75e07252", "score": "0.5322766", "text": "public void setEnabled(boolean param1Boolean) {\n/* 519 */ AccessibleHTML.this.getTextComponent().setEnabled(param1Boolean);\n/* */ }", "title": "" }, { "docid": "8cfce7a83133fa940d003693600b4ba2", "score": "0.53156507", "text": "@Override\n\tpublic void mouseDragged(MouseEvent e) {\n\n\n\t\t//game.whiteBall.isDragging = true;\n\t}", "title": "" }, { "docid": "43b154ce20397ab15fd80c2c7e60a9c3", "score": "0.5305731", "text": "public native void setMouseEnabled(boolean enable) /*-{\n\t\tvar peer = this.@com.ait.toolkit.core.client.JsObject::getJsObj()();\n\t\tpeer.setmouseEnabled(enable);\n }-*/;", "title": "" }, { "docid": "570c85a59376024a6d424b3e4c36238a", "score": "0.52986205", "text": "public static void setEnabledRobotsEditor( boolean enabled){\r\n\t\tjButtonOpen.setEnabled(enabled);\r\n\t}", "title": "" }, { "docid": "f7b2d4d1c3b950e36386ba375a88d675", "score": "0.52984", "text": "private void setDisplayEnabled(boolean value) {\n if (value == DisplayEnabled) return;\n DisplayEnabled = value;\n if (DisplayEnabled) updateDisplay();\n }", "title": "" }, { "docid": "4eaa8fa553e134c5c66a2f67489574fd", "score": "0.5294441", "text": "public void disableArrowButtons() {\n\t\t\n\t\tnorth.setDisable(true);\n\t\tsouth.setDisable(true);\n\t\teast.setDisable(true);\n\t\twest.setDisable(true);\n\t\t\n\t}", "title": "" }, { "docid": "fa504764e8f1d99327bb85eb9a6de5cf", "score": "0.52938664", "text": "void mySetEnabled (boolean enabled)\n\t{\n\t setEnabled (enabled);\n\t}", "title": "" }, { "docid": "6270badce90726577ff9b1f7203e0cbe", "score": "0.5293299", "text": "public void setStartEnabler() {\r\n myItemMenu.getMenuComponent(0).setEnabled(myStartButtonEnabled);\r\n myItemMenu.getMenuComponent(2).setEnabled(!myStartButtonEnabled);\r\n myGameOptions.getMenuComponent(0).setEnabled(myStartButtonEnabled);\r\n\r\n\r\n }", "title": "" }, { "docid": "8cbf73921bcc5175fcc29e3d34c51081", "score": "0.5286837", "text": "static void enable(Button[] moves){\n for(Button a: moves ){\n a.setDisable(false);\n }\n }", "title": "" }, { "docid": "2cdef2c360d24bb75b7f37bb606b0171", "score": "0.52728873", "text": "public void setEnabled(boolean flag) {\n\n if (flag) {\n this.setForeground(this.getColoreTestoAbilitato());\n } else {\n this.setForeground(this.getColoreTestoDisabilitato());\n }// fine del blocco if-else\n }", "title": "" }, { "docid": "9c83fb5797b0258bc12bd053974142e2", "score": "0.52717024", "text": "public void setEnabled(boolean enabled) { this.enabled = enabled; }", "title": "" }, { "docid": "f46637ac6eb0883a9b5b7a4ec7eafdf8", "score": "0.5270681", "text": "public void enable() {\r\n\t\tm_enabled = true;\r\n\t}", "title": "" }, { "docid": "bba031af784f71dd77f00b8ce3758482", "score": "0.5263846", "text": "public void setAutoscrolls(boolean paramBoolean) {\n/* 3162 */ setFlag(25, true);\n/* 3163 */ if (this.autoscrolls != paramBoolean) {\n/* 3164 */ this.autoscrolls = paramBoolean;\n/* 3165 */ if (paramBoolean) {\n/* 3166 */ enableEvents(16L);\n/* 3167 */ enableEvents(32L);\n/* */ } else {\n/* */ \n/* 3170 */ Autoscroller.stop(this);\n/* */ } \n/* */ } \n/* */ }", "title": "" }, { "docid": "ea1408fa50f3254d17b2d9ec2900b5d0", "score": "0.5263104", "text": "public void setAble(boolean flag)\n {\n for (int i = 1; i <= 10; i++)\n button[i].setEnabled(flag);\n\n emergency.setEnabled(flag);\n openDoor.setEnabled(flag);\n closeDoor.setEnabled(flag);\n }", "title": "" }, { "docid": "670bbc793be66b3e7616062858f4f2ee", "score": "0.52619696", "text": "public void setEnabled(boolean tmp) {\n this.enabled = tmp;\n }", "title": "" }, { "docid": "6987ff781786732b9f14a3b3e162385a", "score": "0.52593505", "text": "public boolean isProxyRotationEnabledForLinkChecker() {\r\n return false;\r\n }", "title": "" }, { "docid": "3c961602de46876283b8ab215aaa7b89", "score": "0.52521145", "text": "public void setEnabledButtons(boolean b) {\n\t\tthis.insertButton.setEnabled(b);\n\t\tthis.removeButton.setEnabled(b && !controller.isTrieEmpty());\n\t\tthis.demoButton.setEnabled(b);\n\t\tthis.clearButton.setEnabled(b && !controller.isTrieEmpty());\n\t\tthis.textField.setEnabled(b);\n\t}", "title": "" }, { "docid": "1aa814812c071cb7602f227c190c1a9f", "score": "0.52386427", "text": "private void startDragging() {\r\n\t\tgetFocusedCar().setFillColor(draggingFill);\r\n\t\tgetFocusedCar().setStrokeColor(draggingStroke);\r\n\t\tdragging = true;\r\n\t}", "title": "" }, { "docid": "215b38f2508c587155b30b1e904e2c13", "score": "0.52316767", "text": "void setDraggedOnWidget(Widget widget);", "title": "" }, { "docid": "9a29f6bc78e943ac7c7fdc432ab2bd2c", "score": "0.52299714", "text": "public void setDataIsRelative(boolean value) {\n //noop dataIsEditable = value;\n }", "title": "" }, { "docid": "f0295c88e58d7aff787cdde55ad22e9b", "score": "0.5229288", "text": "public Builder setLongPressDragEnabled(final boolean enabled) {\n isDragEnabled = enabled;\n return this;\n }", "title": "" }, { "docid": "203f86e0e75585f2ee3d87602ab9901b", "score": "0.5227451", "text": "public final void setMovable(boolean m)\r\n {\r\n if (m) flags |= MOVEABLE_MASK;\r\n else flags &= (0xffffffff ^ MOVEABLE_MASK);\r\n }", "title": "" }, { "docid": "3122968ca48bb3547b51c1b1e87e9c48", "score": "0.521811", "text": "public void disable()\n\t{\n add.setEnabled(false);\n\t}", "title": "" }, { "docid": "daf531df58ba82ffa9e9a2e03ae4a17b", "score": "0.52161974", "text": "public void setDisabled() {\n isEnabled = false;\n }", "title": "" }, { "docid": "76df97f49c873b2b6fe21db9d4acde59", "score": "0.52099204", "text": "public MenuItem setEnabled(boolean enabled);", "title": "" } ]
c44ead4ea65bd402eae2c99b58bd94d1
This method describes the actions performed when the Previous button is pressed.
[ { "docid": "9893d88a8159d1046cdf62f617146df2", "score": "0.0", "text": "private void playPreviousSong() {\n if (imgBtnPlay.getVisibility() == View.VISIBLE) {\n imgBtnPlay.setVisibility(View.INVISIBLE);\n imgBtnPause.setVisibility(View.VISIBLE);\n }\n if (isRepeat) {\n isRepeat = false;\n Toast.makeText(getApplicationContext(), \"Repeat is OFF\", Toast.LENGTH_SHORT).show();\n imgBtnRepeatSong.setImageResource(R.drawable.ic_repeat_white_36dp);\n }\n // Check if the previous song is there or not, and if it is then play it\n if (currentPosition > 0) {\n releaseMediaPlayer();\n tvSongName.setText(ShowmanActivity.showmanSongsList[currentPosition - 1]);\n tvSinger.setText(ShowmanActivity.showmanSingers[currentPosition - 1]);\n mediaPlayer = mediaPlayer.create(this, ShowmanActivity.showmanSongsIds[currentPosition - 1]);\n mediaPlayer.start();\n currentPosition--;\n } else {\n releaseMediaPlayer();\n currentPosition = ShowmanActivity.SHOWMAN_SONGS_AMOUNT - 1;\n tvSongName.setText(ShowmanActivity.showmanSongsList[currentPosition]);\n tvSinger.setText(ShowmanActivity.showmanSingers[currentPosition]);\n mediaPlayer = mediaPlayer.create(this, ShowmanActivity.showmanSongsIds[currentPosition]);\n mediaPlayer.start();\n }\n }", "title": "" } ]
[ { "docid": "090a5610933647ec5672db326e105a20", "score": "0.8438681", "text": "public void previousButtonAction();", "title": "" }, { "docid": "e506513b90d4f03989b243b7b651c459", "score": "0.79590803", "text": "@Override\n public void clickPrevious() {\n }", "title": "" }, { "docid": "7ee7a6430d91293edc26cdfd07b6b0d0", "score": "0.78156924", "text": "@FXML\r\n public void handlePrevious(ActionEvent event) {\r\n goToQuestion(\"previous\");\r\n getInfoToShow();\r\n displayUserAnswer();\r\n displayCorrectAnswer();\r\n }", "title": "" }, { "docid": "8a06d7ec4ebc241b7534c16c3dac83d9", "score": "0.7567775", "text": "public void previous();", "title": "" }, { "docid": "8295f82a8ceebcc0b206bd6c2ff75280", "score": "0.7368886", "text": "private void previous() {\n if(index > 1)\n index--;\n display(index);\n }", "title": "" }, { "docid": "46fafae741f3e31f227a3304bb5fb1fc", "score": "0.73568606", "text": "@Override\n\tpublic void showPreviousPage() {\n\t\t\n\t}", "title": "" }, { "docid": "43b5a9f5ce663b53251748af6fe33acc", "score": "0.73188883", "text": "public abstract void goToPrevious();", "title": "" }, { "docid": "e53465f90b709c167412836f09fa458b", "score": "0.73161465", "text": "void btnPreviousActionPerformed(java.awt.event.ActionEvent evt) {\n pagingModel_.pageUp();\r\n\r\n }", "title": "" }, { "docid": "9a78cb0cf8b1bf1daa0720c0edded741", "score": "0.7282227", "text": "private void previousPage() {\n if (currentSource == null) {\n panel.updateControls(null);\n return;\n }\n\n if (currentSource.hasPreviousPage()) {\n currentSource.previousPage();\n\n //set new text\n panel.setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR));\n panel.refreshCurrentMarkup();\n panel.setCursor(null);\n\n //update display\n panel.updateCurrentPageDisplay(currentSource.getCurrentPage());\n\n //scroll to current selection\n ExtractedContentViewer.this.scrollToCurrentHit();\n\n //update controls if needed\n if (!currentSource.hasPreviousPage()) {\n panel.enablePrevPageControl(false);\n }\n if (currentSource.hasNextPage()) {\n panel.enableNextPageControl(true);\n }\n\n updateSearchControls();\n\n }\n }", "title": "" }, { "docid": "d33d7393f1b5ad9e90253ae83d89951c", "score": "0.72637326", "text": "@Override\r\n\tpublic HasClickHandlers getPrevButton() {\n\t\treturn prevButton;\r\n\t}", "title": "" }, { "docid": "4c009b94cb0d238e346398dc7f376e0d", "score": "0.72554797", "text": "public void Previous() {\r\n\t\tDispatch.invokeSub(dispatch, 0x7e4, Dispatch.Method, new Object[0], new int[0]);\r\n\t}", "title": "" }, { "docid": "4d8ddef7a78f2ee64dd319940d0ad568", "score": "0.7242444", "text": "private void butPreviousActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_butPreviousActionPerformed\n try {\n if (!this.getDataFile().getResultSet().isFirst()) {\n this.getDataFile().getResultSet().previous();\n this.updateView();\n }\n } catch (SQLException ex) {\n Logger.getLogger(FraUser.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "title": "" }, { "docid": "137e12f73466fee7fbf0e14ad03979fd", "score": "0.7239551", "text": "private void prevPage(){\n\t\tshowPage(--this.currentPageIndex,null);\n\t}", "title": "" }, { "docid": "30a04cad87a55ad4203786b44d91323c", "score": "0.7205216", "text": "@Override\n protected void handlePreviousPageButton() {\n if (getModel().getCurrentPage() == 0) {\n showKitSelectionPage();\n } else {\n super.handlePreviousPageButton();\n }\n }", "title": "" }, { "docid": "156b93aa0ab3354fe6567a57e4745bec", "score": "0.7186544", "text": "public void onPrevImageButtonClicked(View view) {\r\n\t\tgetNext(false);\r\n\t}", "title": "" }, { "docid": "ea0050c61ead7701207fe63bec188e34", "score": "0.70978755", "text": "void previous();", "title": "" }, { "docid": "f1f8cb922626812eca0d3943857f9fb5", "score": "0.7097189", "text": "public void prev();", "title": "" }, { "docid": "c351ca89c44a74a78c694aadb1fa8720", "score": "0.70567495", "text": "public void buttonShowPreviousPage(View view) {\n if(hasPreviousPage) {\n currentPageDisplay--;\n insertDataOnTableFromPage(currentPageDisplay);\n }\n }", "title": "" }, { "docid": "e3cf72a4257e36eb847399dbee35229f", "score": "0.70485485", "text": "public void goToPreviousPage() {\n int page = previewPanel.getPage();\n if (page > 0) {\n goToPage(page - 1);\n }\n }", "title": "" }, { "docid": "9345f6d7e2e8f83b1e79f3a1be0004ce", "score": "0.7026682", "text": "private void previousButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_previousButtonActionPerformed\n if (currentSelection.get(selectedJumpType) == 0) {\n currentSelection.put(selectedJumpType, possibilities.get(selectedJumpType).size() - 1);\n } else {\n currentSelection.put(selectedJumpType, currentSelection.get(selectedJumpType) - 1);\n }\n\n updateSelectionInTab();\n\n }", "title": "" }, { "docid": "2cab8389d3e2284274dda8f87e740957", "score": "0.70253414", "text": "private void initSkipPrevButton() {\n skipPrev.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n skipByAction(ACTION_SKIP_PREV);\n }\n });\n }", "title": "" }, { "docid": "58f920ad94dc38818319c5d493839fda", "score": "0.69899035", "text": "@Override\n\tpublic void onPrevPage(int crntPage) {\n\t\t\n\t}", "title": "" }, { "docid": "7a76dc3e43feb77493b5e17a3925783f", "score": "0.6985786", "text": "@FXML\n private void handlePreviousPageButton(MouseEvent event) {\n Singleton.getInstance().setActualPageNumber(Singleton.getInstance().getActualPageNumber() - 1);\n ArrayList<Tour> pageFromAllPages = Singleton.getInstance().getAllPages().get(Singleton.getInstance().getActualPageNumber());\n initializeTours(false);\n }", "title": "" }, { "docid": "c2431570bf5621f696f09abc81d4b9e9", "score": "0.698433", "text": "public JButton getPreviousButton()\n {\n return this.previousButton;\n }", "title": "" }, { "docid": "1bf4ccd42816379f7e0c0cac5c4860ce", "score": "0.69764674", "text": "public JButton getPrevious() {\n return previous;\n }", "title": "" }, { "docid": "32517ae0c3064542bc80b50e3b5cb6a7", "score": "0.6950209", "text": "@OnClick(R.id.btn_previous_step)\n void previousStep(){\n if(Common.step==3||Common.step>0){\n Common.step--;\n viewPager.setCurrentItem(Common.step);\n if(Common.step<3)\n {\n btn_next_step.setEnabled(true);\n setColorButton();\n }\n }\n }", "title": "" }, { "docid": "8c12bfd6b9ad107dba0d01409c9c6ac4", "score": "0.6942783", "text": "@OnClick(R.id.btn_previous_step)\n void previousClick(){\n if(Common.step > 0){\n Common.step--;\n\n if (Common.step < 1){\n btn_next_step.setEnabled(true);\n setColorButton();\n }\n viewPager.setCurrentItem(Common.step);\n }\n\n }", "title": "" }, { "docid": "58a08ebdbe361ac0065ac7da7d2cee58", "score": "0.69214576", "text": "public String previous() {\n\t\tgetPagination().previousPage();\n\t\trecreateModel();\n\t\treturn \"results\";\n\t}", "title": "" }, { "docid": "db268fa84aa45b86c6484831febb3c7f", "score": "0.6907995", "text": "public void clickPrev() {\n if (mPosition > 0) {\n mPosition -= 1;\n } else {\n mPosition = topTracksArrayList.size() - 1;\n }\n TopTracksFragment.setListPosition(mPosition);\n setTrackInfo(playerView, topTracksArrayList.get(mPosition));\n startScrubber();\n mPlayerService.prevTrack();\n }", "title": "" }, { "docid": "985c8f8976ee59e5bfad520e2baee8fe", "score": "0.69061637", "text": "public void previousItem() {\n results.editOrViewPreviousItem();\n onWalk();\n }", "title": "" }, { "docid": "38c3c8a0ffa4a471a2947d62948f9488", "score": "0.6868726", "text": "public void doPrevPage() {\n logger.debug(\"Retrieving PREVIOUS page...\");\n initPage(PageDirection.PREV_PAGE);\n logger.debug(\"Retrieving PREVIOUS page... OK\");\n }", "title": "" }, { "docid": "febfd2b62189c9d2456757a07ed076f9", "score": "0.6850351", "text": "public static void previous() {\n player.skipToPrevious();\n }", "title": "" }, { "docid": "db5152a89432de18b0d1f0b600a7cc02", "score": "0.6827814", "text": "public void goToThePreviousPage() {\n if(pageEvents.getNumberPage() > 1){//it must not be negative offset\n pageEvents.previousPage();\n Iterable<Event> eventIterable = eventService.getAllEvents(pageEvents);\n List<Event> eventList = new ArrayList<>();\n eventIterable.forEach(eventList::add);\n Event event = eventList.get(0);\n currentEvent = event;\n initEvent(event);\n setButtonInterested(selectedUserDTO.getId(),event.getId());\n\n }\n else {\n Alert alert = new Alert(Alert.AlertType.INFORMATION,\"no other events\");\n alert.show();\n }\n\n }", "title": "" }, { "docid": "a09857dede7f1ec834584d071bec3603", "score": "0.68250924", "text": "@Override\n public boolean previous() {\n ensureOpen(\"previous\");\n return relative(-1);\n }", "title": "" }, { "docid": "3346888643f80c7ba12cfc95a1776e3a", "score": "0.67782027", "text": "public void prev() {\r\n frame.previousScreen() ;\r\n }", "title": "" }, { "docid": "323dbeb782007e34acb53adfb5efc1c3", "score": "0.6745533", "text": "public void previous()\r\n {\r\n if (size > 0)\r\n {\r\n current = current.previous();\r\n }\r\n }", "title": "" }, { "docid": "67ebfb5a8342e4ede860fcdcf32c8309", "score": "0.67436236", "text": "@Override\n\tpublic void backButton() {\n\t\t\n\t}", "title": "" }, { "docid": "cc10b7c0a60cb1015b6a066b7cca7329", "score": "0.66648704", "text": "private void previousButtonMouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_previousButtonMouseEntered\n if (previousButton.isEnabled()) {\n this.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));\n }\n }", "title": "" }, { "docid": "dcc14dc7f0c4199e31d1ba472354892c", "score": "0.66431093", "text": "public void previousSlide() {\n\t\ttry {\n\t\t\tout.writeByte(MessageID.PREVIOUS_SLIDE);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "title": "" }, { "docid": "f4a08c6be869226a34796d8b650e5144", "score": "0.66229635", "text": "@Override\n\tpublic void backButton() {\n\n\t}", "title": "" }, { "docid": "7ebb5e04a80d9e479d3ffe89780b7922", "score": "0.6618507", "text": "public void onPreviousButtonClick(View v) {\n\t\tfinish();\n\t\tSystem.exit(0);\n\t}", "title": "" }, { "docid": "f8582bd300d207e6d7dc37acf8911732", "score": "0.6610585", "text": "public void prev()\n {\n if (!isFirst())\n {\n setCurrent(current - 1);\n }\n }", "title": "" }, { "docid": "f1214b84402fe31446ed1f5330f60573", "score": "0.6568166", "text": "public void backPressed();", "title": "" }, { "docid": "d54b391099f400a3b0553a61bac78fa6", "score": "0.65632695", "text": "public void previous (View view){\n finish();\n }", "title": "" }, { "docid": "ef30d30b0d55991f9c052fec4410c468", "score": "0.6542285", "text": "public void previous() {\n\t\tif (this.length == 0) {\n\t\t\tthis.indexItem = 0;\n\t\t\tthis.indexPage = 0;\n\t\t} else {\n\t\t\tthis.indexItem = Math.max(this.indexItem - NB_ITEMS_PER_PAGE, 0);\n\t\t\tthis.indexPage = this.indexItem / NB_ITEMS_PER_PAGE;\n\t\t}\n\t}", "title": "" }, { "docid": "771efee6ef4e919581e13bd29dd65407", "score": "0.65320706", "text": "public void onPreviousPhotoBtnClicked(View v){\n try {\n File file = new File(currentPhotoPath);\n String filename = file.getName();\n getPhotoFromArray(\"back\", filename);\n } catch (Exception e) {\n }\n }", "title": "" }, { "docid": "454e51a357f8a0abba218035a87da0a3", "score": "0.65296376", "text": "protected void navLinkPrevious() {\n if (prev == null) {\n printText(\"doclet.Prev_Class\");\n } else {\n printLink(new LinkInfoImpl(LinkInfoImpl.CONTEXT_CLASS, \n prev.asClassDoc(), \"\", \n configuration.getText(\"doclet.Prev_Class\"), true));\n }\n }", "title": "" }, { "docid": "e8cd7370c8ba8271bc1cb19d7787c238", "score": "0.65091515", "text": "public WOActionResults returnToPreviousPage() {\n\t\tpageToReturnTo().ensureAwakeInContext( context() );\n\t\treturn pageToReturnTo();\n\t}", "title": "" }, { "docid": "b9f041378edfd050f9d9cb5415bd31f5", "score": "0.6499097", "text": "@Override\n public boolean previous() {\n\n return false;\n }", "title": "" }, { "docid": "fcb9531f3759d843b917a9896cf30a8d", "score": "0.64974356", "text": "public void setPrevious(String previous) {\r\n\t\tthis.previous = previous;\r\n\t}", "title": "" }, { "docid": "6270d6a4c2708abba9d754e2d484b539", "score": "0.6486642", "text": "@ActionTrigger(action=\"KEY-PRVREC\", function=KeyFunction.PREVIOUS_RECORD)\n\t\tpublic void sovlcur_PreviousRecord()\n\t\t{\n\t\t\t\n\t\t\t\tgetSoqolibSovlcurController().sovlcur_PreviousRecord();\n\t\t\t}", "title": "" }, { "docid": "5074328eb19ec0b05254764147ba419f", "score": "0.64780545", "text": "@Override\n public void setPreviousPage(IWizardPage page) {\n super.setPreviousPage(page);\n fMainTypes = null;\n updateEnableState();\n if (getContainer() != null)\n updatePageCompletion();\n }", "title": "" }, { "docid": "65812c5844a55532409d6a38eaec4730", "score": "0.6465175", "text": "@Override\n public int previousIndex() {\n return nextIndex() - 1;\n }", "title": "" }, { "docid": "3445378680e075155599b0552ba397cd", "score": "0.64436287", "text": "@Override\n\t\tpublic int previousIndex() {\n return liter.previousIndex();\n }", "title": "" }, { "docid": "f1d7657b4bf179e31e2589680938eb75", "score": "0.64386576", "text": "private void prevMomoryButtonActionPerformed(java.awt.event.ActionEvent evt) {\n int i = memoria.getFirstVisibleIndex() - 22;\n memoria.ensureIndexIsVisible(i);\n \n }", "title": "" }, { "docid": "8cbfad76d7360d0d0f9b42956e6d8840", "score": "0.6438542", "text": "void backButtonClicked();", "title": "" }, { "docid": "d8d1d9855e4bc90f4f494109996bef7f", "score": "0.6433721", "text": "public void previous(View view) {\n finish();\n startActivity(getIntent());\n }", "title": "" }, { "docid": "40ee25987369e219222bae306a76fd64", "score": "0.6430601", "text": "public void addPrevButtonListener(JButton prevButton) {\n\t\tprevButton.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tmodel.retreatPrevDay();\n\t\t\t}\n\t\t});\n\n\t}", "title": "" }, { "docid": "4694c840ec04931a52a0696d6fe2ae4a", "score": "0.64289737", "text": "private void backButton() {\n setMetadata();\n this.dispatchKeyEvent(new KeyEvent(KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_BACK));\n this.dispatchKeyEvent(new KeyEvent(KeyEvent.ACTION_UP, KeyEvent.KEYCODE_BACK));\n }", "title": "" }, { "docid": "04c0a0ca2c93a457b38b296cc5c7bcc3", "score": "0.64204496", "text": "@Override\n public int previousIndex()\n {\n return 0;\n }", "title": "" }, { "docid": "26ad2e90db07378a39de6ed3355c11a9", "score": "0.64108884", "text": "public static void preparePreviousSlide() {\n if (singleton != null) {\n singleton.sendMessage(\"PREVIOUS\");\n }\n }", "title": "" }, { "docid": "a49142f7a0d72e3fa74806cf5875c7ce", "score": "0.6394184", "text": "public void stepToPreviousElement() {\r\n\t\tstopReplay();\r\n\t\tif(DataProvider.getInstance().getActiveReplay() != null)\r\n\t\t\tDataProvider.getInstance().decrementReplayPosition();\r\n\t}", "title": "" }, { "docid": "690a9fb5c37233b8fd8b4bcdf844f97c", "score": "0.63855314", "text": "public void back() {\n updateState(CANCEL);\n }", "title": "" }, { "docid": "cef06db37748daff22c8e5f3fb8bf484", "score": "0.63595086", "text": "private void updateNextPrevButtons() {\n\t\tif (rootView == null || pauseButton == null || player == null) {\n\t\t\treturn;\n\t\t}\n\n\t\tif (player.hasNext()) {\n\t\t\tnextButton.setImageResource(R.drawable.fastforward_icon);\n\t\t\tnextButton.setEnabled(true);\n\t\t\tsetImageAlpha(nextButton, 0xff);\n\t\t} else {\n\t\t\tnextButton.setImageResource(R.drawable.fastforward_icon);\n\t\t\tnextButton.setEnabled(false);\n\t\t\tsetImageAlpha(nextButton, 0x30);\n\t\t}\n\n\t\tif (player.hasPrevious()) {\n\t\t\tprevButton.setImageResource(R.drawable.rewind_icon);\n\t\t\tprevButton.setEnabled(true);\n\t\t\tsetImageAlpha(prevButton, 0xff);\n\t\t} else {\n\t\t\tprevButton.setImageResource(R.drawable.rewind_icon);\n\t\t\tprevButton.setEnabled(false);\n\t\t\tsetImageAlpha(prevButton, 0x30);\n\t\t}\n\t}", "title": "" }, { "docid": "209b906c83a664852c46683e16bd011e", "score": "0.6359002", "text": "int getPrevious() {\n\t\treturn previous;\n\t}", "title": "" }, { "docid": "02d9a0dcb4c6a23eb59609d0880f3e95", "score": "0.6351753", "text": "public String getPrevious() {\r\n\t\treturn previous;\r\n\t}", "title": "" }, { "docid": "7af6292bad7c50e8e7f29b8284b0ef54", "score": "0.6326047", "text": "public void onPrevAction(ActionEvent actionEvent) {\n ProjectProperties.getInstance().clear();\n\n Parent root;\n try {\n root = FXMLLoader.load(getClass().getClassLoader().getResource(\"start.fxml\"));\n Stage stage = new Stage();\n stage.setTitle(\"Welcome\");\n stage.setScene(new Scene(root, 300, 275));\n stage.show();\n\n //hide this current window\n\n ((Node)(actionEvent.getSource())).getScene().getWindow().hide();\n\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "0f0d8ff4c1390bda52d13ec3e14e2be2", "score": "0.6287939", "text": "public boolean previous();", "title": "" }, { "docid": "d6326cd2d8d95ac45b3f2532e93f07dd", "score": "0.62781763", "text": "public Key previous();", "title": "" }, { "docid": "9ffe0c4bb270f57434815b3585c3be08", "score": "0.6266114", "text": "private void previousCaseButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_previousCaseButtonActionPerformed\n displayPreviousResult();\n}", "title": "" }, { "docid": "c91e4456320ed14a695dcb7021b045b8", "score": "0.6253246", "text": "private void previousPageMessages() {\n if(pageMessages.getNumberPage() > 1){\n pageMessages.previousPage();\n initModelMessages();\n\n }\n else{\n Alert alert = new Alert(Alert.AlertType.INFORMATION,\"no other Messages\");\n alert.show();\n }\n }", "title": "" }, { "docid": "ca42413d7ef6641202a77a7f76c9a1ae", "score": "0.6249594", "text": "private void previousPageFriends() {\n if(pageFriends.getNumberPage() > 1){\n pageFriends.previousPage();\n initModelFriends();\n }\n else\n {\n Alert alert = new Alert(Alert.AlertType.INFORMATION,\"no other Friendship\");\n alert.show();\n }\n }", "title": "" }, { "docid": "b9991b7a86a97c193d13c4642d0dfae6", "score": "0.62258524", "text": "@Override\n public void onSkipPressed() {\n }", "title": "" }, { "docid": "9e00d181ab509d9e33d43007e11e4e52", "score": "0.62121004", "text": "public void prev () {\n \tif (!isValid()) { throw new IllegalStateException();}\n if (hasPrev()) {\n \tif (nodeCount != current.count - 1) { nodeCount++; }\n else { \n \tcurrent = current.prev;\n \tnodeCount = 0;\n }\n }\n else { throw new NoSuchElementException(); }\n }", "title": "" }, { "docid": "fa9098e2250cf34a2afb2b6921298f5b", "score": "0.6199506", "text": "public abstract void previousQuestion();", "title": "" }, { "docid": "7aec87b9039bef90160aa531addc0e63", "score": "0.6195588", "text": "public void Prev() {\n if(!IsEmpty()) {\n if (this.GetSize() > 1)\n SetPos(GetPos() - 1);\n }\n }", "title": "" }, { "docid": "184f12dce386a35bd2e0ea06a462c71b", "score": "0.6194353", "text": "private void prevButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_prevButtonActionPerformed\n if (processedFileNo > 1) {\n BufferedImage processedImage;\n try {\n processedFileNo--;\n processedImage = ImageIO.read(new File(\"processed_images/processed\" + processedFileNo + \".jpg\"));\n processedImageLabel.setIcon(new ImageIcon(processedImage));\n\n nextButton.setEnabled(true);\n } catch (IOException ex) {\n Logger.getLogger(SecondaryUI.class.getName()).log(Level.SEVERE, null, ex);\n }\n } else {\n prevButton.setEnabled(false);\n }\n }", "title": "" }, { "docid": "59a11994f40815cc834eb983c3106b26", "score": "0.61888385", "text": "private void initActionListeners() {\n view.getBackButton().addActionListener((e) -> GameStateManager.getInstance().returnToPreviousState());\n }", "title": "" }, { "docid": "592e67c3878e29a5d8d7ac0e3645eabd", "score": "0.61862636", "text": "void completePreviousPage(IBaseWizardPage page);", "title": "" }, { "docid": "8b874957e8b7df703883f094ee146ea1", "score": "0.61845815", "text": "public void back(ActionEvent event) {\n try {\n super.back(event);\n } catch (IOException e) {\n heading.setText(\"Cannot Access Employee Page\");\n }\n }", "title": "" }, { "docid": "cb95dc655cb6141b956bb14b451aa882", "score": "0.6178971", "text": "public void onPrevious(View view) {\n TextView text = (TextView) findViewById(R.id.text);\n EditText answer = (EditText) findViewById(R.id.answer);\n //if it is the first question then it closes\n if(count == 0) {\n finish();\n }\n else {\n soluType.setAnswerValue(count, answer.getText().toString());\n count--;\n setEdit(answer, soluType.getAnswerValue(count));\n text.setText(soluType.getQuestion(count));\n changeHeader();\n changeSubHeader();\n }\n if(soluType.getQuestion(count).toString().equals(\"What is the solvent?\")||soluType.getQuestion(count).toString().equals(\"What is the solvent you are using?\")) {\n mDbHelper = new SolutionDBHelper(this);\n autoComplete = mDbHelper.getSolventNames();\n }else if(soluType.getQuestion(count).toString().equals(\"What is the solute?\")||soluType.getQuestion(count).toString().equals(\"What is the solute you are using?\")) {\n mDbHelper = new SolutionDBHelper(this);\n autoComplete = mDbHelper.getSoluteNames();\n }else{\n autoComplete = new String[]{};\n }\n ArrayAdapter<String> adapter = new ArrayAdapter<String>(this, android.R.layout.simple_list_item_1, autoComplete);\n actv.setAdapter(adapter);\n }", "title": "" }, { "docid": "e9844e0e82ff02b2d2e7524fe57fafe6", "score": "0.6166589", "text": "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tJButton nowbtn = (JButton)e.getSource();\n\t\t\t\tif(nowbtn == back) {\n\t\t\t\t\tdispose();\n\t\t\t\t\ts.memCtrl.firstView();\n\t\t\t\t}\n\t\t\t}", "title": "" }, { "docid": "4c9ba5bb3025e7dbdc375b5c2c03f2ce", "score": "0.6143688", "text": "public void navigateToBackToPreviousUrl() {\n\t\twebDriver.navigate().back();\n\t}", "title": "" }, { "docid": "2a97d3a59df8310d567a1839911295ec", "score": "0.61256933", "text": "public void previousPageFriendsMessagesRequests() {\n if(tabPaneFriendsMessagesRequests.getSelectionModel().getSelectedItem().getId().equals(tabFriends.getId())){\n previousPageFriends();\n }\n else\n if(tabPaneFriendsMessagesRequests.getSelectionModel().getSelectedItem().getId().equals(tabMessages.getId())){\n previousPageMessages();\n }\n else\n if (tabPaneFriendsMessagesRequests.getSelectionModel().getSelectedItem().getId().equals(tabFriendshipRequests.getId())){\n previousPageFriendshipRequests();\n }\n }", "title": "" }, { "docid": "7ea03186e7dc3e618957aa6d8bd90d80", "score": "0.61202925", "text": "public void previousBtn(View view){\n System.out.println(\"neeeeeeeee\"+Currentcount+AssignmentLength);\n RadioGroup radioGroup = (RadioGroup) findViewById(R.id.radio_group);\n int checked_id = radioGroup.getCheckedRadioButtonId();\n System.out.println(\"ccccccccccccccccccccccccc\"+checked_id);\n if(checked_id!=0) {\n RadioButton radioButton = (RadioButton) findViewById(checked_id);\n upload_answer(user_id, currentAssignement, radioButton.getText().toString());\n }\n // load new content\n Currentcount--;\n loadAssignement(currentAssignement,Currentcount);\n System.out.println(\"preeeeeeeeeeeeeeeeeeeee\"+Currentcount+AssignmentLength);\n\n }", "title": "" }, { "docid": "d70930ec1eb1b1017de08835bcaf93bd", "score": "0.6119846", "text": "@Override\n public String prevSong() {\n if(currentIndex != 0){\n currentIndex = currentIndex - 1;\n return (\"Skipping back and playing: \" + songs.get(currentIndex-1));\n }\n else return (\"Playing: \" + songs.get(currentIndex));\n }", "title": "" }, { "docid": "5357a3c324c8fa53c24a0e54ce8d9dae", "score": "0.6118136", "text": "@Override\n public boolean hasPrevious()\n {\n return false;\n }", "title": "" }, { "docid": "74ef3aece67784ad90c1f86b7aa100d9", "score": "0.6116671", "text": "@FXML\n\tvoid BackBtn(ActionEvent event) {\n\t\tdisplayNextScreen((User) ClientUI.loggedInUser.getUser(), \"ViewExam.fxml\");\n\t}", "title": "" }, { "docid": "76eb126556ff87ac48e5b5d49d51c0f5", "score": "0.61113364", "text": "public\n void setPreviousStatus()\n {\n if(!boShowAppStatus) return;\n \n update(sPrevText, oPrevIcon);\n }", "title": "" }, { "docid": "baae721b341563d4097a0dc36ab22152", "score": "0.61077756", "text": "@Override\n\tpublic void onBackPressed() {\n\t\tbackbtnPress = true;\n\t\tsuper.onBackPressed();\n\t}", "title": "" }, { "docid": "ee720dfda998e2843c016c5234097509", "score": "0.6102434", "text": "public void previousPhoto(ActionEvent e) {\n\t\tif (photo.equals(photos.get(0))) {\n\t\t\tErrorPopup.show(\"Selected photo is first photo\");\n\t\t}\n\t\telse {\n\t\t\tint currIndex = photos.indexOf(photo);\n\t\t\tphoto = photos.get(currIndex-1);\n\t\t\tstart(oldStage, newStage, photo, photos, user);\n\t\t}\n\t}", "title": "" }, { "docid": "39638aaae9c52231252e50edc2e1d630", "score": "0.6100903", "text": "public State getPrevious() {\n return previous;\n }", "title": "" }, { "docid": "6f9df5362f2d55a37a828a1d1955a732", "score": "0.6093243", "text": "private void setupBackButton() {\r\n\t\tbackButton = new Button(\"\");\r\n\t\tbackButton.setId(\"back\");\r\n\t\tbackButton.setPrefSize(30, 30);\r\n\t\tbackButton.setOnMouseClicked(new EventHandler<MouseEvent>() {\r\n\t\t\tpublic void handle(MouseEvent e) {\r\n\t\t\t\tchangeToFirstPage();\r\n\t\t\t}\r\n\t\t});\r\n\t}", "title": "" }, { "docid": "94837692f87d876295b8dab28c3b2266", "score": "0.60906684", "text": "public void prevSlide()\n{\n // If no previous slide, complain and return\n int index = getSlideIndex()-1;\n if(index<0) {\n beep(); return; }\n \n // Set slide\n _reversing = true;\n setSlideIndex(index);\n _reversing = false;\n}", "title": "" }, { "docid": "268e78b6c58d9a7a1635e3c6a9aa0207", "score": "0.6068169", "text": "@Override\r\n\tpublic void onBackPressed() {\n\t\tback();\r\n\t\t\r\n\t}", "title": "" }, { "docid": "01da9f5febdeb40066fe0aaa94b6c623", "score": "0.60624546", "text": "public void previous(View view) {\n Intent intent = new Intent(this, MainActivity.class);\n startActivity(intent);\n finish();\n }", "title": "" }, { "docid": "240ab91effdacb705d64f052e3e67d2e", "score": "0.60624087", "text": "public ItemStack getPreviousPageItem() {\n return previousPageItem;\n }", "title": "" }, { "docid": "529857f0557c2fa042d616ab18e863ac", "score": "0.60593873", "text": "private void handleBackButton(MouseEvent event) {\n Singleton.getInstance().setLastPageNumber(-1);\n Singleton.getInstance().getTours().clear();\n Singleton.getInstance().getTourGuides().clear();\n Singleton.getInstance().getAllPages().clear();\n ScreenSwitcher.getScreenSwitcher().switchToScreen((MouseEvent) event, \"Views/Search.fxml\");\n }", "title": "" }, { "docid": "4cbb8ab74875434658a2020df0c13a6f", "score": "0.6057582", "text": "@FXML private void cancelPressed(ActionEvent actionEvent) throws IOException {\n backTomain(actionEvent);\n\n }", "title": "" }, { "docid": "5acd62295897eccd90b13eae4c7f3689", "score": "0.6048257", "text": "public void prevPressed(View view) {\n if (currentImg > 1) {\n currentImg = currentImg -1;\n updateImg();\n }\n else {\n Toast.makeText(this, \"First Image in the database\", Toast.LENGTH_SHORT).show();\n }\n }", "title": "" }, { "docid": "4e5db8b73aab58039056e61a53274e26", "score": "0.60425955", "text": "public Position previous(Position position) \r\n\t{\r\n\t}", "title": "" } ]
24853bb10e2c5986a85ee681e06f131e
GIbt die einzelnen Portdes Kind
[ { "docid": "b92e2256c137cb1d4f5a8d5172bbffd6", "score": "0.0", "text": "public int getChildPort(String childname){\n\t\treturn this.mbImpl.connectToChild(childname).port;\n\t}", "title": "" } ]
[ { "docid": "7319bec6942e9b0efeef2dc76c6c2160", "score": "0.61446327", "text": "Kind kind();", "title": "" }, { "docid": "7319bec6942e9b0efeef2dc76c6c2160", "score": "0.61446327", "text": "Kind kind();", "title": "" }, { "docid": "df101e479fb5875cee9608d932f0e80f", "score": "0.6067035", "text": "String kind();", "title": "" }, { "docid": "df101e479fb5875cee9608d932f0e80f", "score": "0.6067035", "text": "String kind();", "title": "" }, { "docid": "df101e479fb5875cee9608d932f0e80f", "score": "0.6067035", "text": "String kind();", "title": "" }, { "docid": "03bf1d6bfaba01bd6543a7556829572c", "score": "0.59578073", "text": "public int getKind() {\n return kind;\n }", "title": "" }, { "docid": "dc6a426c7e6039b2fb70f4872ecd1309", "score": "0.58546513", "text": "public PortType createPortType();", "title": "" }, { "docid": "c10cba815ed9bd98c6633a8f415d2b99", "score": "0.585142", "text": "public String kind() {\n return this.kind;\n }", "title": "" }, { "docid": "a17ea21044443847839cb7dae525feda", "score": "0.5779982", "text": "public abstract IKindInfo getKindInfo();", "title": "" }, { "docid": "da9bdef44c4e419097f55a99c15b89b2", "score": "0.57607174", "text": "public String getKind() {\n return kind;\n }", "title": "" }, { "docid": "029cf0ee043b686ffcfc7e52972184dc", "score": "0.5684436", "text": "public Map getPortTypes();", "title": "" }, { "docid": "8e09bace92e7dccb4a641bee8e0486a2", "score": "0.5670554", "text": "@Override\n Kind getKind();", "title": "" }, { "docid": "d1cc8b21052ec59696a6d819722a53e6", "score": "0.56517124", "text": "io.particle.firmwareprotos.ctrl.Network.InterfaceType getType();", "title": "" }, { "docid": "d1cc8b21052ec59696a6d819722a53e6", "score": "0.56517124", "text": "io.particle.firmwareprotos.ctrl.Network.InterfaceType getType();", "title": "" }, { "docid": "15199d3634e8dd58a0a00ec2890d7570", "score": "0.56127876", "text": "public abstract String datagramInternetType();", "title": "" }, { "docid": "3e7bb749a5f64c7cb61b2c75de0ec19f", "score": "0.55513036", "text": "public Map getAllPortTypes();", "title": "" }, { "docid": "7898eb969080df2228c5cbe91ccf3c17", "score": "0.55345875", "text": "public String getKind() {\n\t\treturn kind;\n\t}", "title": "" }, { "docid": "d6d9c7380a0fc4a5abacdc1d143d204b", "score": "0.548069", "text": "@Override\n\tpublic int getKind() {\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "cd69bd77700f6bdec586f5a5db9b6604", "score": "0.54410547", "text": "public int getKindValue() {\n return kind_;\n }", "title": "" }, { "docid": "b84953af25c0d3033dcb0d1320efe8ca", "score": "0.534784", "text": "public void setKind(String kind) {\n\t\tthis.kind = kind;\n\t}", "title": "" }, { "docid": "13ddf19dffee631fe15a9a172ea9d8c5", "score": "0.5345973", "text": "int getKindValue();", "title": "" }, { "docid": "be6c71dc27fd37dd20164f2e99010bc9", "score": "0.5340425", "text": "public Kind(String name) {\n\t\tthis.name = name;\n\t\tthis.geschenke = new ArrayList<>();\n\t}", "title": "" }, { "docid": "3de0d3d1febfbd0978d7cd2654e5f253", "score": "0.53053606", "text": "public String getKinds() {\n return kinds;\n }", "title": "" }, { "docid": "dc76e507d1a08fb12c6861c7cf5ee98e", "score": "0.52858883", "text": "@Override\r\n\tvoid nic() {\r\n\t\t\r\n\t}", "title": "" }, { "docid": "5770fdc7db38ea753584c6dbe4372118", "score": "0.52722204", "text": "public short getViews_format() throws IOException\n\t{\n\t\tif ((__io__pointersize == 8)) {\n\t\t\treturn __io__block.readShort(__io__address + 3914);\n\t\t} else {\n\t\t\treturn __io__block.readShort(__io__address + 3870);\n\t\t}\n\t}", "title": "" }, { "docid": "31bbada04023b3189e6d105af76b4147", "score": "0.5247178", "text": "public void setKind(int value) {\n this.kind = value;\n }", "title": "" }, { "docid": "d64a8350f28d1fd0e4b449f7e5a63386", "score": "0.5243175", "text": "java.lang.String getKind();", "title": "" }, { "docid": "d64a8350f28d1fd0e4b449f7e5a63386", "score": "0.5243175", "text": "java.lang.String getKind();", "title": "" }, { "docid": "4564a19377d225ad318b81f36940a863", "score": "0.5230694", "text": "private void getNetworkType() {\n networkConnectionType.setText(DeviceStats.getInstance().getNetworkType());\n }", "title": "" }, { "docid": "3e55b16f25f5b323ec943458048a2b28", "score": "0.51933455", "text": "public List<PortType> getPortTypes();", "title": "" }, { "docid": "f0dbdb0a6ca2cf77cc64d1226edaf2ff", "score": "0.51790047", "text": "public short getNodeType() {\n/* 338 */ return 1;\n/* */ }", "title": "" }, { "docid": "209686b5dcb171095fde739cffc5eef4", "score": "0.51578635", "text": "public int getKindValue() {\n return kind_;\n }", "title": "" }, { "docid": "85c2bfabfb4bc59a87908375105c3b4f", "score": "0.51577914", "text": "public static Class<Port> retType() { return Port.class; }", "title": "" }, { "docid": "b7e6c1e02ed6751b0b9207c700e51c9f", "score": "0.51233035", "text": "public String sType(int i) {\r\n return i == 1 ? \"DIRECT\" : i == 2 ? \"CENTER\" : i == 3 ? \"MATCH\" : i == 4 ? \"CHAIN\" : i == 5 ? \"BARRIER\" : \"UNCONNECTED\";\r\n }", "title": "" }, { "docid": "2e6063ee69d2eeae7d566c87d100072c", "score": "0.51116866", "text": "public Representation representation(Element.Kind kind)\n {\n return _representations.get(kind);\n }", "title": "" }, { "docid": "ba0bd45e1a932807ad16a7cca8b57245", "score": "0.51098746", "text": "public interface DrivingPort extends Port {\n\n}", "title": "" }, { "docid": "ce47d8a63328441aa6438f730fc21c95", "score": "0.50875133", "text": "public String kind() {\r\n\t\treturn cellKind;\r\n\t}", "title": "" }, { "docid": "95b0b620d67ae85519fe1533500dfc7d", "score": "0.50832593", "text": "int getExportedPort();", "title": "" }, { "docid": "d28dde9d4a461cad4398996b227d7d37", "score": "0.5080893", "text": "int getNetworkTypeValue();", "title": "" }, { "docid": "77689a4be4e5bb4e6d4596aec189c210", "score": "0.50659573", "text": "DvkType getType();", "title": "" }, { "docid": "0b0df6bbabe6d8885ee3193376d27aec", "score": "0.50585115", "text": "@Override\n public String getType() {\n return \"D\";\n }", "title": "" }, { "docid": "22d6cf81a1b2d3ae4832d452f983c55b", "score": "0.5057475", "text": "public ITypeRegistryBridge getTypeRegistryBridge();", "title": "" }, { "docid": "7daf1e9b1d649b26148ba9fe35e60b6a", "score": "0.5040013", "text": "IPort findPort(Point point);", "title": "" }, { "docid": "3403aa87faaa222d2812672b881e13ed", "score": "0.50340223", "text": "private void connectExportedType() {\n\t\t\r\n\t\tArrays.sort(metaModel.exportedType);\r\n\t\tassembly.getModule().setExportedTypes(metaModel.exportedType);\r\n\t}", "title": "" }, { "docid": "5ac7974330aaf9e099e27f85fcc7a826", "score": "0.49982736", "text": "private static String serializeKind(ColumnDefinition.Kind kind, boolean isDense)\n {\n if (kind == ColumnDefinition.Kind.CLUSTERING)\n return \"clustering_key\";\n\n if (kind == ColumnDefinition.Kind.REGULAR && isDense)\n return \"compact_value\";\n\n return kind.toString().toLowerCase();\n }", "title": "" }, { "docid": "dcbd0723ed2d948b679b66f80c9b6ef0", "score": "0.4996765", "text": "public int getType(){return typ;}", "title": "" }, { "docid": "c27bf152de716a692b7b1acf35628c96", "score": "0.49938136", "text": "Layer getType();", "title": "" }, { "docid": "bf96ef68c4dc727efe52fcae4e20a6c6", "score": "0.49715218", "text": "@Override\r\n public int getType() {\n return 1;\r\n }", "title": "" }, { "docid": "b6c90f44e22f630a1e78c99638d82bbf", "score": "0.49708346", "text": "public interface LAYER_TWO_TYPE {\n public static final int COMMON = 0x00000001; //Universal.\n public static final int TARGET = 0x00000002; //Object (such as vehicles, persons, and faces).\n public static final int RULE = 0x00000003; //Rule (rule frame).\n public static final int TALARM = 0x00000004; //Intelligent alarm.\n public static final int TRECORD = 0x00000005; //Intelligent analysis?Ctriggered recording.\n }", "title": "" }, { "docid": "f45ab340cd6116b9771186bd6df315a9", "score": "0.4958218", "text": "public abstract String getBitType();", "title": "" }, { "docid": "6a2a6ee588758eb4c153d3fa73838fd2", "score": "0.4958169", "text": "public interface NetworkNode<TNode extends NetworkNode, TEdge> extends JsonSerializable {\n\n public enum ComponentColor{\n RED(0),\n ORANGE(1),\n YELLOW(2),\n GREEN(3),\n DARK_GREEN(4),\n BLUE(5),\n PURPLE(6),\n VIOLET(7),\n BROWN(8);\n\n private final int value;\n\n private static Map<Integer,ComponentColor> map = new HashMap<>();\n\n ComponentColor(final int newValue) {\n value = newValue;\n }\n\n public int getValue() { return value; }\n\n static {\n for (ComponentColor componentColor : ComponentColor.values()) {\n map.put(componentColor.value, componentColor);\n }\n }\n\n public static ComponentColor valueOf(int componentColor) {\n return map.get(componentColor);\n }\n }\n\n\n public enum NodeType{\n INPUT_TYPE(\"input\"),\n OUTPUT_TYPE(\"output\"),\n COMPONENT_TYPE(\"component\");\n\n private static Map<String,NodeType> map = new HashMap<>();\n private final String value;\n\n NodeType(final String newValue) {\n value = newValue;\n }\n\n public String getValue() { return value; }\n static {\n for (NodeType nodeType : NodeType.values()) {\n map.put(nodeType.value, nodeType);\n }\n }\n\n public static NodeType fromString(String nodeType) {\n if (!map.containsKey(nodeType)){\n return null;\n }\n return map.get(nodeType);\n }\n }\n\n String getId();\n\n void setId(String id);\n\n String getLabel();\n\n void setLabel(String label);\n double getX();\n\n void setX(double x);\n\n double getY();\n\n void setY(double y);\n\n NodeType getType();\n\n void setType(NodeType type);\n\n ComponentColor getComponentColor();\n\n void setComponentColor(ComponentColor type);\n\n Map<String,TNode> getNodes();\n\n void setNodes(Map<String,TNode> nodes);\n\n Map<String,TEdge> getEdges();\n\n void setEdges(Map<String,TEdge> edges);\n\n default JsonObject toJson() {\n JsonObject obj = Json.createObject();\n obj.put(\"id\", getId());\n if (getLabel() != null) {\n obj.put(\"label\", getLabel());\n }\n obj.put(\"x\",getX());\n obj.put(\"y\",getY());\n if (getType() != null) {\n obj.put(\"type\", getType().getValue());\n }\n if (getComponentColor() != null) {\n obj.put(\"componentColor\", getComponentColor().getValue());\n }\n return obj;\n }\n\n default JsonSerializable readJson(JsonObject value) {\n if (value.hasKey(\"id\")) {\n setId(value.getString(\"id\"));\n }\n setLabel(value.getString(\"label\"));\n setX(value.getNumber(\"x\"));\n setY(value.getNumber(\"y\"));\n if (value.hasKey(\"type\")) {\n setType(NodeType.fromString(value.getString(\"type\")));\n }\n if (value.hasKey(\"componentColor\")) {\n setComponentColor(ComponentColor.valueOf((int) value.getNumber(\"componentColor\")));\n }\n return this;\n }\n\n /**\n * retrieve the node recursively inside the children\n *\n * @param id id of the node\n * @return node tih the id\n */\n default TNode findNodeById(String id) {\n if (getNodes().containsKey(id)){\n return getNodes().get(id);\n } else {\n // check in the child\n for (TNode childNode : getNodes().values()) {\n TNode foundNode = (TNode) childNode.findNodeById(id);\n if (foundNode != null){\n return foundNode;\n }\n }\n }\n return null;\n }\n}", "title": "" }, { "docid": "ca1047b1d257b51ddec64231350b54f6", "score": "0.49487802", "text": "public Anlage(Steuerung eineSteuerung) {\r\n dieSteuerung = eineSteuerung;\r\n comPorts = new ArrayList<>();\r\n }", "title": "" }, { "docid": "71a62fc4e197f6ddbe302bd88c5ff133", "score": "0.49370956", "text": "private void afficheTypeVictoire(int lancer) {\r\n switch(lancer) {\r\n case 2:\r\n System.out.println(SNAKE_EYES);\r\n break;\r\n case 3:\r\n System.out.println(ACE_DEUCE);\r\n break;\r\n case 7:\r\n System.out.println(NATURAL);\r\n break;\r\n case 11:\r\n if ((de1.getNumber() == 5 || de2.getNumber() == 6) && (de1.getNumber() == 6 || de2.getNumber() == 5))\r\n System.out.println(YO_ELEVEN);\r\n break;\r\n case 12:\r\n System.out.println(BOXCARS);\r\n break;\r\n }\r\n }", "title": "" }, { "docid": "0c7bd9a47189cee2689841642dc3c6b2", "score": "0.49363482", "text": "@Override\n\t\tpublic String getKindString() {\n\t\t\treturn getTypeString();\n\t\t}", "title": "" }, { "docid": "883c0bedb3b850103692fe60cc9de490", "score": "0.49261478", "text": "public abstract String channelType();", "title": "" }, { "docid": "e399b177f85cda5d5316f4e2b82375d4", "score": "0.49255323", "text": "public short getType()\n {\n return type;\n }", "title": "" }, { "docid": "c75a9e93e2a050927f529e2071616850", "score": "0.49112236", "text": "public DijkstraType getType()\n\t{\n\t\treturn binding != null ? binding.type : nodeType;\n\t}", "title": "" }, { "docid": "b6cfad1525c26c8778ee812c61353ba7", "score": "0.4910881", "text": "com.google.protobuf.ByteString getKindBytes();", "title": "" }, { "docid": "b780d1a62b5f22be641fc0a7b3d02bd1", "score": "0.49084806", "text": "public int getType() { return type; }", "title": "" }, { "docid": "83ed8444179fcd6ec633f154244f9872", "score": "0.48944366", "text": "public KindOfPiece getKindOfPiece() {\n return this.kind;\n }", "title": "" }, { "docid": "9810d0f044afd3fa6bd5c17e94344732", "score": "0.4889945", "text": "@Override\n\tpublic void speak() {\n\t\tSystem.out.println(lan.kind());\n\t}", "title": "" }, { "docid": "bae9fe28d15dba5648771b37be70c95a", "score": "0.48802486", "text": "private Petrinet tree2net(Petrinet petri) throws CompilationException {\n // filter ref or fromRef places\n //System.out.println(\"\\nTree2Net START\" + petri.myString(\"edge\"));\n Set<PetriNetPlace> plsRef =\n petri.getPlaces().values().stream().\n filter(x -> x.getReferences().size() > 0).collect(Collectors.toSet());\n Set<PetriNetPlace> placesOnLeaf =\n petri.getPlaces().values().stream().\n filter(x -> x.getLeafRef().size() > 0).collect(Collectors.toSet());\n //System.out.println(\"refR\"+plsRef.stream().map(x->x.getId()).reduce(\"** \",(x,y)->x+\" \"+y));\n //System.out.println(\"refF\"+placeOnLeaf.stream().map(x->x.getId()).reduce(\"** \",(x,y)->x+\" \"+y));\n // glue pairs of places where one has a ref and the other the same fromRef\n\n for (PetriNetPlace pl1 : plsRef) {\n for (PetriNetPlace placeOnLeaf : placesOnLeaf) {\n //System.out.println(\"\\nRef \" + pl1.myString() + \" \" + pl1.getIncoming().size() + \" \" + pl1.getOutgoing().size());\n //System.out.println(\"From \" + placeOnLeaf.myString() + \" \" + placeOnLeaf.getIncoming().size() + \" \" + placeOnLeaf.getOutgoing().size());\n if (placeOnLeaf.getId().equals(pl1.getId())) {\n continue; // Do not try to glue a node to itself!\n }\n\n for (String leafRf : placeOnLeaf.getLeafRef()) {\n //System.out.println(\"leafRef \" + leafRf);\n List<String> bits = getBits(leafRf, \"\\\\.\");\n //System.out.println(\"leafRef \" + leafRf + \" frm \" + bits.get(0) + \" size \" + bits.size());\n //System.out.println(\"Ref \" + pl1.getReferences());\n //System.out.println(pl1.getReferences() + \" cont \" + leafRf);\n if (pl1.getReferences().contains(leafRf)) {\n //System.out.println(\"Joining \" + pl1.getId() + \" \" + placeOnLeaf.getId());\n placeOnLeaf.setTerminal(\"\"); // Will be overwrite if END Reference\n //Petrinet pn = localProcesses.get(from);\n\n\n Multimap<String, String> prodNames = // need to get new pl1 Place\n petri.gluePlaces(Collections.singleton(pl1), Collections.singleton(placeOnLeaf));\n //System.out.println(\"tree2net Petri \"+petri.myString(\"edge\"));\n String spl1 = prodNames.values().iterator().next();\n //System.out.println(\"new nodes \" + prodNames.values());\n if (bits.size() > 1 && bits.get(1).equals(Constant.END)) {\n pl1.setTerminal(Constant.END);\n petri.getPlace(spl1).setTerminal(Constant.STOP);\n //System.out.println(\"Pingo\");\n }\n //System.out.println(petri.myString());\n pl1 = petri.getPlace(spl1);\n }\n }\n }\n petri.buildAlpahbetFromTransiations();\n // break;// ONLY one FromRef\n }\n\n //System.out.println(\"Tree2Net 1\"+petri.myString(\"edge\"));\n petri.setRootFromStart();\n petri.setEndFromPlace();\n // remove referances else system retries\n petri.getPlaces().values().stream().\n filter(x -> x.getReferences().size() > 0).forEach(x -> x.setReferences(new LinkedHashSet<>()));\n petri.getPlaces().values().stream().\n filter(x -> x.getLeafRef().size() > 0).forEach(x -> x.setLeafRef(new LinkedHashSet<>()));\n //System.out.println(\"Tree2Net END\" + petri.myString(\"edge\"));\n return petri;\n }", "title": "" }, { "docid": "b801a0db18a1d5e31b8d4ed53d263a23", "score": "0.48697966", "text": "int getType();", "title": "" }, { "docid": "b801a0db18a1d5e31b8d4ed53d263a23", "score": "0.48697966", "text": "int getType();", "title": "" }, { "docid": "b801a0db18a1d5e31b8d4ed53d263a23", "score": "0.48697966", "text": "int getType();", "title": "" }, { "docid": "b801a0db18a1d5e31b8d4ed53d263a23", "score": "0.48697966", "text": "int getType();", "title": "" }, { "docid": "b801a0db18a1d5e31b8d4ed53d263a23", "score": "0.48697966", "text": "int getType();", "title": "" }, { "docid": "b801a0db18a1d5e31b8d4ed53d263a23", "score": "0.48697966", "text": "int getType();", "title": "" }, { "docid": "b801a0db18a1d5e31b8d4ed53d263a23", "score": "0.48697966", "text": "int getType();", "title": "" }, { "docid": "b801a0db18a1d5e31b8d4ed53d263a23", "score": "0.48697966", "text": "int getType();", "title": "" }, { "docid": "b801a0db18a1d5e31b8d4ed53d263a23", "score": "0.48697966", "text": "int getType();", "title": "" }, { "docid": "b801a0db18a1d5e31b8d4ed53d263a23", "score": "0.48697966", "text": "int getType();", "title": "" }, { "docid": "b801a0db18a1d5e31b8d4ed53d263a23", "score": "0.48697966", "text": "int getType();", "title": "" }, { "docid": "e67548d907ec8d8f86e051b692f9d8c8", "score": "0.48634005", "text": "public Network getNetwork();", "title": "" }, { "docid": "8fdbc23e00ff42fc888c998435462b87", "score": "0.48556405", "text": "@Override\n\tpublic String tpye() {\n\t\treturn type;\n\t}", "title": "" }, { "docid": "d82b9ccbcedb8494b6e63f9f1ec2ffd0", "score": "0.48512137", "text": "int getDevType();", "title": "" }, { "docid": "257ac6dd07281139b982e7e6e4a8974b", "score": "0.48505262", "text": "private void abstraction(){\n \tSystem.out.println(\"Call to abstraction() ; \");\n // compute G-switch by topology\n // use ITopologyManager topoManager\n \t// https://developer.cisco.com/media/XNCJavaDocs/org/opendaylight/controller/topologymanager/ITopologyManager.html\n \n /* ***** Actual Implementation ******/\n\n System.out.println(\"Actual Implementation \");\n \n System.out.println(\"+++++ Removing previous abstraction.\");\n System.out.println(\">>>>>>>>>>>>> Clearing nodesMap\");\n nodesMap.clear();\n System.out.println(\">>>>>>>>>>>>> Clearing nb_port\");\n nb_ports = 0;\n\n System.out.println(\"+++++ Computing the new abstraction : Start\");\n \n System.out.println(\">>>>>>>>>>>>> Local nodes :\");\n \n Set<Node> localNodes = connectionManager.getLocalNodes();\n if (localNodes == null)\n System.out.println(\" No local nodes to print\");\n else { \n Iterator iterLocalEdges = localNodes.iterator();\n while(iterLocalEdges.hasNext())\n System.out.println(\" \" + iterLocalEdges.next().toString());\n \n Iterator iter_edges;\n \n // In/out edges indexed by Node\n Map<Node,Set<Edge>> nodeEdges = topoManager.getNodeEdges();\n Map<Edge,Set<Property>> edges = topoManager.getEdges();\n\n if (nodeEdges.isEmpty())\n System.out.println(\"nodeEdges map is empty\");\n \n if (edges.isEmpty())\n System.out.println(\"edges map is empty\");\n\n for (Map.Entry<Node, Set<Edge>> entry : nodeEdges.entrySet()) { \n Node currentNode = entry.getKey();\n System.out.println(\"Considering Node : \" + currentNode.toString()); \n if (localNodes.contains(currentNode)) { \n System.out.println(\"**** Itering through the edges of Node : ***** \" + entry.getKey());\n \n iter_edges = entry.getValue().iterator();\n\n while (iter_edges.hasNext()) {\n Edge edge = (Edge) iter_edges.next(); \n System.out.println(\" ==== Considering edge : \" + edge.toString());\n \n NodeConnector headConnector = edge.getHeadNodeConnector();\n NodeConnector tailConnector = edge.getHeadNodeConnector();\n Node head = headConnector.getNode();\n Node tail = tailConnector.getNode();\n\n if (!localNodes.contains(head)) { \n System.out.println(\"Node : \" + head.toString() + \"is external to the domain.\");\n NetworkPort np = new NetworkPort(currentNode, tailConnector);\n if (!nodesMap.containsValue(np)) { \n nodesMap.put(nb_ports, np);\n nb_ports++;\n }\n }\n if (!localNodes.contains(tail)) {\n System.out.println(\"Node : \" + tail.toString() + \"is external to the domain\");\n NetworkPort np = new NetworkPort(currentNode, headConnector);\n if (!nodesMap.containsValue(np)) { \n nodesMap.put(nb_ports, np);\n nb_ports++;\n }\n } \n }\n }\n else {\n System.out.println(\">>>>>>>>>>>>>>>>>>>>>>> Not a local Node\");\n }\n }\n System.out.println(\"+++++ Computing the new abstraction: End \");\n\n System.out.println(\"+++++ Debug map edges \");\n System.out.println(\">>>>>>>>>>>>> Printing nodesMap\");\n System.out.println(nodesMap.toString());\n System.out.println(\">>>>>>>>>>>>> Printing nb_ports\");\n System.out.println(nb_ports);\n }\n /* ***** Debug Version 1 ***** */\n /* System.out.println(\"***** Hard Coded Version *****\");\n inNodesMap.clear();\n outNodesMap.clear();\n inNodeConnectorsMap.clear();\n outNodeConnectorsMap.clear(); */\n\n }", "title": "" }, { "docid": "3d9e5b03f3ae6d973b8543740eb2ee2a", "score": "0.48411304", "text": "public int getType() {return type;}", "title": "" }, { "docid": "b62d7fef7a09feb4f12519c44b1165cb", "score": "0.48352027", "text": "public short getImtype() throws IOException\n\t{\n\t\tif ((__io__pointersize == 8)) {\n\t\t\treturn __io__block.readShort(__io__address + 490);\n\t\t} else {\n\t\t\treturn __io__block.readShort(__io__address + 474);\n\t\t}\n\t}", "title": "" }, { "docid": "47e74c7cd3ffe8d895bfb6eb91ce5624", "score": "0.48300156", "text": "public short getType() {\n return type;\n }", "title": "" }, { "docid": "f489f4bcb2d51f011fccb3b2542ad199", "score": "0.48269314", "text": "public int getPort()\r\n/* 21: */ {\r\n/* 22:18 */ return this.port;\r\n/* 23: */ }", "title": "" }, { "docid": "3a73b87a25266007f2f366723719c4a3", "score": "0.4825463", "text": "public int getType() { return type; }", "title": "" }, { "docid": "d2397a0a1c8f6702cf54c64e77c2cecf", "score": "0.48220563", "text": "ClassDef.Kind kind();", "title": "" }, { "docid": "31424591aa73c14f569c563c70f10535", "score": "0.4820905", "text": "public Collection<KotlinType> getAdditionalNeighboursInSupertypeGraph(boolean z) {\n return C13185o.m40513a();\n }", "title": "" }, { "docid": "80893337fb8f4cfbf8a9a14d7864ce20", "score": "0.48174173", "text": "@Override\n public int getType(){\n\t return 2;\n }", "title": "" }, { "docid": "fe58e680302e38dbb1c7125be9f65811", "score": "0.48102495", "text": "public int getNonForcedPort() {\n return 0;\n }", "title": "" }, { "docid": "c0d0ceb572e5fa20a570ffd055f6ce9d", "score": "0.48066556", "text": "public void setKinds(String kinds) {\n this.kinds = kinds;\n }", "title": "" }, { "docid": "5c1fa710fedcdc269ae827409893b2ef", "score": "0.4805061", "text": "private static void viewPepBand() {\n\t\tList<pepBand> allItems = pbh.showAllBands();\n\t\tfor (pepBand li: allItems) {\n\t\t\tSystem.out.println(li);\n\t\t}\n\t}", "title": "" }, { "docid": "10c1530323a45f3212f9d47e31521c1f", "score": "0.48017284", "text": "public interface NetworkDevice {\n String getType();\n void use();\n}", "title": "" }, { "docid": "613d3638fd2c0adeef0ed5eee2fade1b", "score": "0.4792401", "text": "@Override\n public String toString() {\n if(color == 0){\n return \"wp\";\n }else {\n return \"bp\";\n }\n }", "title": "" }, { "docid": "82eaf265a088f5455c4552f7888d61cd", "score": "0.47890067", "text": "io.particle.firmwareprotos.ctrl.Network.Interface getInterface();", "title": "" }, { "docid": "992be6c8d78bbc3821f6c5493a60fe31", "score": "0.47803804", "text": "@DISPID(24) //= 0x18. The runtime will prefer the VTID if present\n @VTID(51)\n int type();", "title": "" }, { "docid": "78fc27e49fad13b5b6f5c8c9b9f9d8e1", "score": "0.47795397", "text": "protected abstract String getSinkType();", "title": "" }, { "docid": "c188e30bd431f8fc442ce49ddd5c3d0a", "score": "0.47778386", "text": "public void setKind(String kind) {\n this.kind = kind == null ? null : kind.trim();\n }", "title": "" }, { "docid": "0d6d578da42178764f84884aaec833c2", "score": "0.4776127", "text": "public interface ConnectorPort<E extends Coordinates, P extends ConnectorPort> {\n boolean isConnectable(String thatType);\n boolean isFree();\n void attachTo(P otherPort);\n void detach();\n String getCurrentType();\n E getCoordinates();\n}", "title": "" }, { "docid": "9de350e2d661fe1989a18b2f961fe1c3", "score": "0.47753742", "text": "private boolean isType(final int... valid) {\n for(final int v : valid) if(kind == v) return true;\n return false;\n }", "title": "" }, { "docid": "c941661b890af36e3711162cac0ae5fd", "score": "0.47738034", "text": "public int getOriginalPort();", "title": "" }, { "docid": "42deafda8b0b5d4e4650b825e80a4a4d", "score": "0.4773484", "text": "public Object port() {\n return this.innerTypeProperties() == null ? null : this.innerTypeProperties().port();\n }", "title": "" }, { "docid": "6ee29a566c1c971b9b83939fb08bf04a", "score": "0.47734293", "text": "Port createPort();", "title": "" }, { "docid": "9f2d7e1182424040864a47b0c9b01ec5", "score": "0.47700518", "text": "public interface FPortType\n{\n /*****************************************************************\n * FPortTypeFactory inner class\n *****************************************************************/\n\n public static final class FPortTypeFactory\n {\n /** Factory instance for Singleton pattern */\n private static FPortTypeFactory instance;\n\n /**\n * Private constructor for Singleton pattern.\n */\n private FPortTypeFactory()\n {\n // Empty implementation\n }\n\n /**\n * Create a new factory instance, if it does not\n * yet exist, and return the object.\n *\n * @return FPortTypeFactory object\n */\n public static synchronized FPortTypeFactory getInstance()\n {\n if (null == FPortTypeFactory.instance)\n {\n FPortTypeFactory.instance = new FPortTypeFactory();\n }\n\n return FPortTypeFactory.instance;\n }\n\n /**\n * Create a new FPortTypeImpl object with the given\n * port type name.\n *\n * @param portTypeName Name of the service interface\n *\n * @return FPortTypeImpl object\n */\n public FPortTypeImpl create(final String portTypeName)\n {\n return new FPortTypeImpl(portTypeName);\n }\n }\n\n /*****************************************************************\n * FPortType outer interface\n *****************************************************************/\n\n /** Factory instance for object creation */\n public static final FPortTypeFactory factory = FPortTypeFactory.getInstance();\n\n public void setPortTypeName(final String portTypeName);\n public String getPortTypeName();\n\n public void addOperation(final FOperation operation);\n public void addOperations(final HashSet<FOperation> operations);\n public void setOperations(final HashSet<FOperation> operations);\n public HashSet<FOperation> getOperations();\n\n public int operationCount();\n}", "title": "" }, { "docid": "b98f242bbeba2ac9a58096ffdcdade8c", "score": "0.47692373", "text": "public String getNettype() {\r\n return nettype;\r\n }", "title": "" } ]
ce5108dca6adb67a5c1890d874079dce
If this property is true, use DestributedCache mechanism to broadcast some stuff around. May improve efficiency. Default is false.
[ { "docid": "766caed3a222644968331803c9028fbf", "score": "0.0", "text": "public void setBroadcast(boolean broadcast) {\n this.broadcast = broadcast;\n }", "title": "" } ]
[ { "docid": "293aa0de220a86e00e7e36aad72467a0", "score": "0.68526757", "text": "public boolean isCache() {\n return true;\n }", "title": "" }, { "docid": "a45259e1b1ba014c6223bc36d6790412", "score": "0.669783", "text": "protected boolean shouldUseCache() {\n return false;\n }", "title": "" }, { "docid": "a45259e1b1ba014c6223bc36d6790412", "score": "0.669783", "text": "protected boolean shouldUseCache() {\n return false;\n }", "title": "" }, { "docid": "a3e6d153c166a8b1a0b57f11597efc9d", "score": "0.6621181", "text": "public Boolean isCacheEnabled() {\n return enableCache;\n }", "title": "" }, { "docid": "6f446ff5ad2d7ab982f1524e9150a2e0", "score": "0.6594925", "text": "@Override\r\n\tpublic boolean cachable() {\n\t\treturn false;\r\n\t}", "title": "" }, { "docid": "eb7f6917109fcb065b8c8655c4b53011", "score": "0.65453017", "text": "private boolean isCacheEnabled() {\n return configuration.isCacheEnabled();\n }", "title": "" }, { "docid": "fac8b81a2ab304bdd7fc8c7881cd78b6", "score": "0.6466373", "text": "@Override\n public boolean isCacheable() {\n return false;\n }", "title": "" }, { "docid": "cab3d49015a7f3199b1e44195b0901c7", "score": "0.643308", "text": "@Override\n\tprotected boolean isDataCacheEnabled() {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "ab99b992ef9e4f6fca1249cfe62f0170", "score": "0.64205897", "text": "public boolean isEventCache(){\n return clientHandler.isEventCacheEnabled();\n }", "title": "" }, { "docid": "78cdc1d8514a4dbc668654dab58375dc", "score": "0.6379496", "text": "public boolean isCacheable() {\n return this._cacheable;\n }", "title": "" }, { "docid": "46cfe741f676c532653ba7848cdde294", "score": "0.63659376", "text": "public boolean isCacheInvalidationRequired();", "title": "" }, { "docid": "75dd709edff399788ccb78c93d90df1b", "score": "0.6346562", "text": "boolean hasCacheEnabled();", "title": "" }, { "docid": "1fead2dbd978b71630e3d99a788bd3e2", "score": "0.63384455", "text": "boolean getDoPersistentCaching();", "title": "" }, { "docid": "818501f9f89270c923368a7abbe8150a", "score": "0.6245427", "text": "public boolean isTStampCache() { return true; }", "title": "" }, { "docid": "10082be4f60376a51d1ce3b2bd24bc38", "score": "0.62088925", "text": "public boolean isCachingAllowed() {\n return cachingAllowed;\n }", "title": "" }, { "docid": "280ba3cbb0af5cd2d2873a77569bbff9", "score": "0.61757904", "text": "@java.lang.Override\n public boolean getCacheEnabled() {\n return cacheEnabled_;\n }", "title": "" }, { "docid": "747b7e351cc413e5f283d8f252bb5a64", "score": "0.61242896", "text": "@java.lang.Override\n public boolean getCacheEnabled() {\n return cacheEnabled_;\n }", "title": "" }, { "docid": "6f66707e75ffb7d0190fbd63cba728fc", "score": "0.6105862", "text": "boolean isFromCache();", "title": "" }, { "docid": "6e83f1e50702c22d0dad3306f1c289ac", "score": "0.6104842", "text": "public boolean isUnCached() {\n return unCached;\n }", "title": "" }, { "docid": "e5f4b5d99fc807eb5204d58317289191", "score": "0.60861605", "text": "@Override\n\tprotected boolean isValidDataCacheEnabled() {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "4a2b71216218758758179c73290656ad", "score": "0.6076983", "text": "boolean hasCaching();", "title": "" }, { "docid": "1d2b9004f946269cb670f82ef5a4fd55", "score": "0.6073638", "text": "public void setUnCached(boolean value) {\n this.unCached = value;\n }", "title": "" }, { "docid": "fa3241719e797b753f79059aeb495a24", "score": "0.6063729", "text": "public boolean isCacheClearable();", "title": "" }, { "docid": "1507eb70b7ba314c3a405570fd03b1dc", "score": "0.605222", "text": "@java.lang.Override\n public boolean hasCacheEnabled() {\n return ((bitField0_ & 0x00000008) != 0);\n }", "title": "" }, { "docid": "51c3a49c8e770b5416a0579ae8b9c739", "score": "0.6044023", "text": "@java.lang.Override\n public boolean hasCacheEnabled() {\n return ((bitField0_ & 0x00000008) != 0);\n }", "title": "" }, { "docid": "66c162ec28c13d3102a87ade7a49d68f", "score": "0.60183364", "text": "boolean getCacheEnabled();", "title": "" }, { "docid": "9167f8f4f801d78cf51d96c3010436a9", "score": "0.60127866", "text": "@Override\n\tpublic boolean ignoreCache() {\n\t\treturn true;\n\t}", "title": "" }, { "docid": "d090ce0ca542b4d0cd76b529239b8b7c", "score": "0.60122496", "text": "public void setImplicitCachingEnabled(boolean cache) {\n\t\t\tthis.cache = cache;\n\t\t\t\n\t\t}", "title": "" }, { "docid": "0b1bd16a0f451e9fd11a209f8d5fa59d", "score": "0.59982955", "text": "public boolean hasCaching() {\n return ((bitField0_ & 0x00004000) == 0x00004000);\n }", "title": "" }, { "docid": "cb73b7988b5bb925b250232d32fbf303", "score": "0.5994997", "text": "boolean isCache();", "title": "" }, { "docid": "a83cf1637e57ce3b3d5c4d15925ae014", "score": "0.59502834", "text": "public boolean hasCaching() {\n return ((bitField0_ & 0x00010000) == 0x00010000);\n }", "title": "" }, { "docid": "d9d236dc4acabcb2a257e6c0fbb1d7eb", "score": "0.59268486", "text": "public boolean isCacheInvalidationRequired() {\n \t\treturn hasFormulaProperties() ||\n \t\t\t\t( !isVersioned() && ( entityMetamodel.isDynamicUpdate() || getTableSpan() > 1 ) );\n \t}", "title": "" }, { "docid": "d9d236dc4acabcb2a257e6c0fbb1d7eb", "score": "0.59268486", "text": "public boolean isCacheInvalidationRequired() {\n \t\treturn hasFormulaProperties() ||\n \t\t\t\t( !isVersioned() && ( entityMetamodel.isDynamicUpdate() || getTableSpan() > 1 ) );\n \t}", "title": "" }, { "docid": "3079239297b905f16020c4469bf6c485", "score": "0.5926766", "text": "void setCacheable(boolean b);", "title": "" }, { "docid": "804ae6f9a54b58c0a6b3b7a87bf53ac0", "score": "0.59181887", "text": "protected boolean isCacheTemplate() {\n\t\treturn this.cacheTemplate;\n\t}", "title": "" }, { "docid": "26bcbb9eeae61bafac160bc4b0380852", "score": "0.587718", "text": "public boolean shouldRefetch() {\n long refetchExpiration = isStrictNoCache() ?\n date + getRefetchStrictNoCacheAfterMs() : getCacheExpiration();\n return refetchExpiration <= getTimeSource().currentTimeMillis();\n }", "title": "" }, { "docid": "90acc72281cc2f9dc1fb054aac4eb9a6", "score": "0.58768356", "text": "public Builder setCacheEnabled(boolean value) {\n bitField0_ |= 0x00000008;\n cacheEnabled_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "dd071923c483b5163df7ae10aabaa4cf", "score": "0.5872731", "text": "@Override\n public boolean isCacheable(LeafReaderContext ctx) {\n return false;\n }", "title": "" }, { "docid": "aa9e81cd7bcaf3956c72bc1339413107", "score": "0.5870061", "text": "public boolean hasCache();", "title": "" }, { "docid": "640858f92e0eabf24656958d49ddcb47", "score": "0.58364487", "text": "private boolean isCached(Properties properties) {\n String cacheLevel = properties.getProperty(JMSConstants.PARAM_JMS_CACHING);\n // We need to check this following because default should be caching enabled\n if (null != cacheLevel && !cacheLevel.isEmpty()) {\n return Boolean.parseBoolean(cacheLevel);\n } else {\n return Boolean.TRUE;\n }\n }", "title": "" }, { "docid": "4059584b1385c681c0a25b8b242b5f6b", "score": "0.57957494", "text": "boolean isCacheable();", "title": "" }, { "docid": "d627d74a0813ec3c116f04910b36df9d", "score": "0.5734495", "text": "protected boolean isCacheTemplate()\n/* */ {\n/* 197 */ return this.cacheTemplate;\n/* */ }", "title": "" }, { "docid": "c3278939db9c0120badbe0f09cb831a7", "score": "0.5731983", "text": "public void setAvoidInvalidation(boolean value) {\n\t\tthis.avoidInvalidation = value;\n\t}", "title": "" }, { "docid": "1fb37becc2f88635bb187ca8689b9db4", "score": "0.5731902", "text": "public boolean isChangeBroadcasted() {\n\t\treturn broadcast_changes_;\n\t}", "title": "" }, { "docid": "349f27adbab2d1d29f5def6ed2bb3a9a", "score": "0.57311743", "text": "public boolean isDumpComputationCacheToDisk() {\n return _dumpComputationCacheToDisk;\n }", "title": "" }, { "docid": "8a1f0afe873f9235e0184f11d8983c67", "score": "0.57267165", "text": "public boolean isUsingSharedSnapshotCache() {\n return usingSharedSnaphsotCache;\n }", "title": "" }, { "docid": "72c042be2e2210975805ee9dd2ec3e36", "score": "0.5726438", "text": "protected boolean canUseReferenceCacheEntries() {\n \n \t\tif ( ! factory.getSettings().isDirectReferenceCacheEntriesEnabled() ) {\n \t\t\treturn false;\n \t\t}\n \n \t\t// for now, limit this to just entities that:\n \t\t// \t\t1) are immutable\n \t\tif ( entityMetamodel.isMutable() ) {\n \t\t\treturn false;\n \t\t}\n \n \t\t//\t\t2) have no associations. Eventually we want to be a little more lenient with associations.\n \t\tfor ( Type type : getSubclassPropertyTypeClosure() ) {\n \t\t\tif ( type.isAssociationType() ) {\n \t\t\t\treturn false;\n \t\t\t}\n \t\t}\n \n \t\treturn true;\n \t}", "title": "" }, { "docid": "c1fe0aa9d525be119f2a57f20af8c4eb", "score": "0.5714927", "text": "@Override\r\n\tpublic boolean update() {\n\t\treturn false;\r\n\t}", "title": "" }, { "docid": "c1fe0aa9d525be119f2a57f20af8c4eb", "score": "0.5714927", "text": "@Override\r\n\tpublic boolean update() {\n\t\treturn false;\r\n\t}", "title": "" }, { "docid": "de900151052f0830650912629dc01c4e", "score": "0.57107705", "text": "@Override\n public boolean isOn() {\n return false;\n }", "title": "" }, { "docid": "70820208f667e089bae964d9b923f8aa", "score": "0.56717336", "text": "public boolean shouldDeliverOptimizationPerformance() {\r\n return false;\r\n }", "title": "" }, { "docid": "bf118762d413707df2f17efc11b73f6c", "score": "0.56673133", "text": "public boolean isFrozenCaptive() {\n return _frozen;\n }", "title": "" }, { "docid": "9527ce3e5bf2628d16e7614236bd5508", "score": "0.5663803", "text": "Boolean getCachedVehicleDataFlushOnActivation();", "title": "" }, { "docid": "ffb049e8228da11b9c3c10bd2dd2e1cf", "score": "0.5661012", "text": "public boolean isOneTimeUse(){\n \treturn oneTimeUse;\n\t}", "title": "" }, { "docid": "5f2f88166eb516dd8a89d16af3614c37", "score": "0.5656476", "text": "@Override\n public boolean onSaveProperties() {\n\n clearCache();\n return super.onSaveProperties();\n\n }", "title": "" }, { "docid": "942eb2f08317b5da8a0e3114a03ccae0", "score": "0.56379354", "text": "public boolean getUpdateable(){\n return localUpdateable;\n }", "title": "" }, { "docid": "1bcffde61559a763492738c624534efe", "score": "0.56301624", "text": "public boolean propertyChanged(String name) {\n if (name.equals(SERIALIZER_P)) {\n CacheSerializer cs = null;\n try {\n Class c;\n c = Class.forName(props.getString(name, null));\n cs = (CacheSerializer) c.newInstance();\n } catch (Exception ex) {\n return false;\n }\n serializer = cs;\n return true;\n } else if (name.equals(SWEEPER_P)) {\n CacheSweeper cs = null;\n try {\n Class c;\n c = Class.forName(props.getString(name, null));\n cs = (CacheSweeper) c.newInstance();\n } catch (Exception ex) {\n return false;\n }\n sweeper.destroy();\n sweeper = cs;\n sweeper.start();\n return true;\n } else if (name.equals(VALIDATOR_P)) {\n CacheValidator cv = null;\n try {\n Class c;\n c = Class.forName(props.getString(name, null));\n cv = (CacheValidator) c.newInstance();\n } catch (Exception ex) {\n return false;\n }\n validator = cv;\n return true;\n } else if (name.equals(DEBUG_P)) {\n debug = props.getBoolean(name, debug);\n return true;\n } else if (name.equals(SHARED_P)) {\n shared = props.getBoolean(name, shared);\n return true;\n } else if (name.equals(CACHE_CONNECTED_P)) {\n connected = props.getBoolean(name, true);\n return true;\n }\n return store.propertyChanged(name);\n }", "title": "" }, { "docid": "68ee20e7f0aa7803399d16fabfc7bdad", "score": "0.5627418", "text": "public boolean cacheExperiments() {\n return cache_experiments;\n }", "title": "" }, { "docid": "bb058d0401020bb8d764ca74f36d656b", "score": "0.5623645", "text": "public boolean getIsFrozen(){\n return isFrozen;\n }", "title": "" }, { "docid": "c0605aa938dd812693e78f453f9624f9", "score": "0.5601173", "text": "public void useCache(boolean useCache)\n {\n this.useCache = useCache;\n }", "title": "" }, { "docid": "616345b94b2268fa9e9583df0b3e6f28", "score": "0.55942297", "text": "public Boolean mo104814a() {\n if (CommonWidget.INSTANCE.cacheChecker() == null) {\n return Boolean.FALSE;\n }\n return Boolean.valueOf(CommonWidget.INSTANCE.cacheChecker().mo105118a(this.f115592a));\n }", "title": "" }, { "docid": "949d28e9a502a12ce9a0291ddacf07f9", "score": "0.5562052", "text": "public void setEnable(boolean bEnable)\r\n\t{\r\n\t\tthis.bEnable = bEnable;\r\n\t\tif (logger.isInfoEnabled())\r\n\t\t{\r\n\t\t\tlogger.info(toString());\r\n\t\t\tlogger.info(\"Cache enable=\" + bEnable);\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "001bdeeb86a1d525162dd1586bd27324", "score": "0.5549635", "text": "boolean getPopulateStoreCache();", "title": "" }, { "docid": "870d9d95a1ac61cda83126271ef504d6", "score": "0.554937", "text": "protected boolean isBroadcastChanged() {\n return true;\n }", "title": "" }, { "docid": "0782671ef44eede15e936e904730c5bd", "score": "0.55358815", "text": "@Test\n public void disabledCacheBehavior() {\n log.trace(\">\" + Thread.currentThread().getStackTrace()[1].getMethodName());\n ConfigurationHolder.updateConfiguration(\"cainfo.cachetime\", \"-1\");\n final CaCache caCache = CaCache.INSTANCE;\n\n // Start out with an empty cache and verify state\n caCache.flush();\n assertEmptyCaCache();\n\n // Add entries to the (disabled) cache\n caCache.updateWith(CAS[0].getCAId(), 1, CA_NAMES[0], CAS[0]);\n caCache.updateWith(CAS[1].getCAId(), 1, CA_NAMES[1], CAS[1]);\n caCache.updateWith(CAS[2].getCAId(), 1, CA_NAMES[2], CAS[2]);\n assertEmptyCaCache();\n\n // Notify cache that the objects should be removed from the cache\n caCache.updateWith(CAS[0].getCAId(), 1, null, null);\n caCache.updateWith(CAS[1].getCAId(), 1, null, CAS[1]);\n caCache.updateWith(CAS[2].getCAId(), 1, CA_NAMES[2], null);\n assertEmptyCaCache();\n\n log.trace(\"<\" + Thread.currentThread().getStackTrace()[1].getMethodName());\n }", "title": "" }, { "docid": "5354190e52ae22acc95bb3375044d6ad", "score": "0.5525198", "text": "public boolean isFrozen()\n { return true; }", "title": "" }, { "docid": "34b591d03bb5ebf7868e661c01e5aba1", "score": "0.5508895", "text": "@Override\n public final void setUpdateable(\n boolean value\n )\n {/* NOOP: As simple objects are immutable, no update can be done. */}", "title": "" }, { "docid": "ef4f4fa2960ea44ef4bbc12f29f9dd9d", "score": "0.5508076", "text": "public boolean isLoaded()\r\n {\r\n return useCache ? isCacheLoaded : false;\r\n }", "title": "" }, { "docid": "f09c24e1fa34f26cb4dbcc9897ca01c0", "score": "0.5501536", "text": "public boolean isNotify() { return this.notify; }", "title": "" }, { "docid": "248f5a4af32a9503d43d7b5afe42b3da", "score": "0.5479299", "text": "public boolean isUsePublishedFares() {\r\n return usePublishedFares;\r\n }", "title": "" }, { "docid": "feb116c93a67307a1478a2754a110af4", "score": "0.5477728", "text": "public boolean mo41878d() {\n return get() == C12347d.DISPOSED;\n }", "title": "" }, { "docid": "51e4f7eb28c92b77be3d699adea717db", "score": "0.54719746", "text": "@Override\n\tpublic boolean canUpdate() { return true; }", "title": "" }, { "docid": "f78dae329b9d30d4e1818617b0a9dca4", "score": "0.546204", "text": "final boolean isFrozen() {\n return frozen;\n }", "title": "" }, { "docid": "c2059a338993db527ad606f1cac7fd09", "score": "0.544199", "text": "@Override\n\tpublic boolean updateData() {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "ae56cc9a9b8094167fd282500ac88608", "score": "0.54373276", "text": "public boolean mo41878d() {\n return get() == C12347d.DISPOSED;\n }", "title": "" }, { "docid": "3773f161ed9807b9e065bd7230cf02af", "score": "0.5434122", "text": "public boolean isLazyPropertiesCacheable();", "title": "" }, { "docid": "452052ac4f3a84d2e27f811ab242aff6", "score": "0.5430983", "text": "@Override\n public final boolean isUpdateable(\n )\n {return false;}", "title": "" }, { "docid": "0b88449605e0754466964cbdce08f48e", "score": "0.54268444", "text": "@Override\n\tpublic boolean cacheItem(String item) {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "f8fdb73b22de221da62e1796b6e8cbd0", "score": "0.54248726", "text": "@Override\n protected final void setUpdated(\n boolean value\n )\n {}", "title": "" }, { "docid": "430eb94e70019448b6ee8089fd4d9945", "score": "0.5421373", "text": "void setPopulateStoreCache(boolean cache);", "title": "" }, { "docid": "199fe0a4c5cf2c8a602431a0aaa7c9c3", "score": "0.5416529", "text": "private boolean isCachingEnabled() {\n final String cacheTTL = Security.getProperty(NETWORK_ADDRESS_CACHE_TTL);\n return cacheTTL == null || Long.parseLong(cacheTTL) != 0;\n }", "title": "" }, { "docid": "c127d2069e05497260709a6491bd8e06", "score": "0.5403155", "text": "public boolean isUpdateable() {\n \t\treturn true;\n \t}", "title": "" }, { "docid": "be48a7262e82aec4b6dc15338030c257", "score": "0.5402775", "text": "public boolean isOneShot() {\r\n\t\treturn oneShot;\t\r\n\t}", "title": "" }, { "docid": "a67dd7dbf6590a866eedb2dcc78bad23", "score": "0.5401853", "text": "final public native boolean getCacheAsBitmap() /*-{\n return this.cacheAsBitmap;\n }-*/;", "title": "" }, { "docid": "6d1754a964b55552131d8b182ea170e3", "score": "0.5400792", "text": "public void setCacheTemplate(boolean cacheTemplate)\n/* */ {\n/* 190 */ this.cacheTemplate = cacheTemplate;\n/* */ }", "title": "" }, { "docid": "6416ad77cc84f24c83f85c0320938f5b", "score": "0.54003555", "text": "@Basic @Immutable @Raw\n\tpublic boolean isInstantDamage(){\n\t\treturn this.instantDamage;\n\t}", "title": "" }, { "docid": "ae7f3a7d374ec188888245c1aca335d3", "score": "0.53978306", "text": "private boolean shouldCache(JTypeMirror t) {\n return !(t instanceof InferenceVar) && !(t instanceof JPrimitiveType);\n }", "title": "" }, { "docid": "992961018b5608ac1ed2ad8f7cc2b30f", "score": "0.5391875", "text": "@Override\n public boolean isOn(){\n return true;\n }", "title": "" }, { "docid": "03b4847bc7196961e2da78586fe8035c", "score": "0.5390647", "text": "public boolean isCached() {\n\t\treturn baseCursor.isCached();\n\t}", "title": "" }, { "docid": "91b8bd47d2d4e0727650ef8a3668b866", "score": "0.53886104", "text": "public boolean needsUpdate()\r\n {\r\n return false;\r\n }", "title": "" }, { "docid": "6e07883d73ce3cbf2d146fe28f6510f2", "score": "0.5387159", "text": "public void setIsNotQueuing() {\n isQueuing = false;\n }", "title": "" }, { "docid": "ae9292616c113b5e56a654280cd343fa", "score": "0.53761405", "text": "@java.lang.Override\n public boolean hasCacheLocation() {\n return ((bitField0_ & 0x00000004) != 0);\n }", "title": "" }, { "docid": "ae9292616c113b5e56a654280cd343fa", "score": "0.53761405", "text": "@java.lang.Override\n public boolean hasCacheLocation() {\n return ((bitField0_ & 0x00000004) != 0);\n }", "title": "" }, { "docid": "22891b26cf174664ebdf55d6591e8a36", "score": "0.53754175", "text": "public Boolean getIsSyncFlag() {\n return isSyncFlag;\n }", "title": "" }, { "docid": "2f32e3b225c2e45b14364fb82879b6e8", "score": "0.53718805", "text": "@Override\r\n\tpublic boolean isSynchronized() {\n\t\treturn false;\r\n\t}", "title": "" }, { "docid": "955560e1898aa302d910f6397a5f36f1", "score": "0.53672", "text": "@Override\r\n\tpublic boolean fly() {\n\t\treturn false;\r\n\t}", "title": "" }, { "docid": "5cecbeba4c19fd9bb41382c5b1507b9c", "score": "0.5362847", "text": "public boolean getTemporary();", "title": "" }, { "docid": "2e52b225084b4e3dda97139e0ae7cd34", "score": "0.5362694", "text": "private static synchronized boolean isUpdatePending() {\n return updatePending;\n }", "title": "" }, { "docid": "f366709e66217a21bf8cdf6eb06ad92b", "score": "0.53582996", "text": "@JsonSetter(\"cashOnDelivery\")\r\n public void setCashOnDelivery (boolean value) { \r\n this.cashOnDelivery = value;\r\n notifyObservers(this.cashOnDelivery);\r\n }", "title": "" }, { "docid": "b73395c438134f0805cccf63bda3c996", "score": "0.53411627", "text": "public final synchronized boolean isAttach() { return isAttach; }", "title": "" }, { "docid": "42fd571ed660d1b8b4d9f5619957530c", "score": "0.5336615", "text": "public void setCachingAllowed(boolean cachingAllowed) {\n this.cachingAllowed = cachingAllowed;\n }", "title": "" } ]
20484b68f7e89b5d28256e6f78111c65
Gets the attribute value for Renwal_Mnths using the alias name RenwalMnths.
[ { "docid": "3ac8be01026ac4a1f65954689381ee93", "score": "0.70598537", "text": "public Integer getRenwalMnths() {\n return (Integer) getAttributeInternal(RENWALMNTHS);\n }", "title": "" } ]
[ { "docid": "d32c25ef5dd4f0db09e5bddeffc6c8c8", "score": "0.5196838", "text": "public void setRenwalMnths(Integer value) {\n setAttributeInternal(RENWALMNTHS, value);\n }", "title": "" }, { "docid": "40b27ffb299a058fbf75a5caa304348b", "score": "0.51691806", "text": "public java.lang.String getMsn() {\r\n return msn;\r\n }", "title": "" }, { "docid": "2b4395c1ef3164260f9a9525ba4eaece", "score": "0.51314306", "text": "public String getNzmc() {\n return nzmc;\n }", "title": "" }, { "docid": "1b2c543d47fe540de31696f21f742cde", "score": "0.5110199", "text": "public YangString getTriggersMmeValue() throws JNCException {\n return (YangString)getValue(\"triggers-mme\");\n }", "title": "" }, { "docid": "f1302f31253dbae72cf9e58251d8afd0", "score": "0.5095196", "text": "public YangString getMobilityEventsMmeValue() throws JNCException {\n return (YangString)getValue(\"mobility-events-mme\");\n }", "title": "" }, { "docid": "8814aa06604b1882e9588269f3256f58", "score": "0.506383", "text": "public StrColumn getJournalIdASTM() {\n return delegate.getColumn(\"journal_id_ASTM\", DelegatingStrColumn::new);\n }", "title": "" }, { "docid": "f001c362bae66840954c8d3e3a872537", "score": "0.50531924", "text": "public java.lang.String getMchntNm () {\n\t\treturn mchntNm;\n\t}", "title": "" }, { "docid": "68a954fcd123c45098cce0d6764a11fe", "score": "0.50461835", "text": "public String getWmoId() {\n String wmoID = \"\";\n if (!(stnm == GempakConstants.IMISSD)) {\n wmoID = String.valueOf(stnm / 10);\n }\n return wmoID;\n }", "title": "" }, { "docid": "d9a55bf8c8ec277a3b54511703555e11", "score": "0.50294816", "text": "java.lang.String getMent();", "title": "" }, { "docid": "d47c88acde06fc85e4a37b8f05b7f353", "score": "0.50067854", "text": "public String getMallName() {\n return mallName;\n }", "title": "" }, { "docid": "383ec9593295ba5a40b7d9899b3caa92", "score": "0.50060034", "text": "public int getMnc() {\n return mnc_;\n }", "title": "" }, { "docid": "f8a3feda67af07df970b3957e7dabcd7", "score": "0.49949807", "text": "public int getMnc() {\n return mnc_;\n }", "title": "" }, { "docid": "5a8dcd0b75f9c521db7e2186c4f78863", "score": "0.48860714", "text": "public String getMn003() {\n return mn003;\n }", "title": "" }, { "docid": "aed48a7eb8454c371eb99493316a135e", "score": "0.48813012", "text": "public String getMn007() {\n return mn007;\n }", "title": "" }, { "docid": "185dc5219f3924bf1d2132119349e7dc", "score": "0.48737246", "text": "public String getMn009() {\n return mn009;\n }", "title": "" }, { "docid": "9df94eb726e15bcfbcbb5042b2c65f2f", "score": "0.4862445", "text": "private String getAttrValue(Object name) {\n\t return (String)this.mAtts.get(name);//.toString();\n\t}", "title": "" }, { "docid": "30513ac046269f5f81bbc04c8d0970e7", "score": "0.48522913", "text": "public double mleVar() {\n\t\tint n = this.getAttCount();\n\t\tif (n == 0) return Constants.UNUSED;\n\n\t\tdouble mean = mean();\n\t\tdouble sum = 0;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tdouble v = this.getValueAsReal(i);\n\t\t\tdouble deviation = v - mean;\n\t\t\tsum += deviation * deviation;\n\t\t}\n\t\treturn sum / (double)n;\n\t}", "title": "" }, { "docid": "290c0d76a0365e519f3ff6964a25ce50", "score": "0.48519367", "text": "public String getMlsNumber() {\n\t\treturn mlsNumber;\n\t}", "title": "" }, { "docid": "55d72e46113c8ca8420eaddc50fc7d71", "score": "0.4810033", "text": "public java.lang.String getMsisdn(){\n return localMsisdn;\n }", "title": "" }, { "docid": "7c7072b15a3522857289adc21a9b1db1", "score": "0.48061135", "text": "public YangString getRadiobearerEventsMmeValue() throws JNCException {\n return (YangString)getValue(\"radiobearer-events-mme\");\n }", "title": "" }, { "docid": "0e5e21f8f02546d266ff634e0915825a", "score": "0.48011547", "text": "public String getNtnNo() {\n return (String)getAttributeInternal(NTNNO);\n }", "title": "" }, { "docid": "11d4929e642b116e9cb04f87ff772082", "score": "0.4791422", "text": "public AVM2QName getAVM2Name();", "title": "" }, { "docid": "0cc05ab22937986a58eca1cbeab37080", "score": "0.4787692", "text": "public String getMallCode() {\n return mallCode;\n }", "title": "" }, { "docid": "36c466419dc73c6b4a2aed6f13c27628", "score": "0.4741673", "text": "public YangString getPdnconnEventsMmeValue() throws JNCException {\n return (YangString)getValue(\"pdnconn-events-mme\");\n }", "title": "" }, { "docid": "1358217aacc72528bd730f3604b75d4a", "score": "0.47345495", "text": "public String getMiNo() {\r\n return miNo;\r\n }", "title": "" }, { "docid": "36555e8eab954efafed838b09e65f118", "score": "0.47078845", "text": "public java.lang.String getMiddleNm() {\n return middleNm;\n }", "title": "" }, { "docid": "5e1aaeb5eba41c1048dfed50dc9382b9", "score": "0.46998334", "text": "public String getMn010() {\n return mn010;\n }", "title": "" }, { "docid": "58e79d9a05692e29a7d1997cc531d3d3", "score": "0.46964428", "text": "public String getUnitnm() {\r\n return unitnm;\r\n }", "title": "" }, { "docid": "41077fe82bc1f3e5f4620ed7d947a6ea", "score": "0.46955243", "text": "public int getWMC(){\r\n\t\t \r\n\t\treturn mccabe.getWMC();\t\t\r\n\t}", "title": "" }, { "docid": "d1be1c76e7e634af85bd8f5918bf9dd5", "score": "0.46933424", "text": "public Long getMX() {\n return this.MX;\n }", "title": "" }, { "docid": "db0ef5002bafb8cef63e9718e66812a6", "score": "0.46909097", "text": "public String getMA_CHUYENNGANH()\n {\n return this.MA_CHUYENNGANH;\n }", "title": "" }, { "docid": "13693b602fc0c53dad3b25a48231a193", "score": "0.46773627", "text": "public String getYerushalmiMasechta() {\r\n\t\treturn masechtosYerushlmi[masechtaNumber];\r\n\t}", "title": "" }, { "docid": "aa145e4367dd7c611bbbee85c594feff", "score": "0.46756223", "text": "public String getMn005() {\n return mn005;\n }", "title": "" }, { "docid": "65179f42109deacdd89bbec0ba87e0a6", "score": "0.46731865", "text": "public StrColumn getSynonym() {\n return delegate.getColumn(\"synonym\", DelegatingStrColumn::new);\n }", "title": "" }, { "docid": "600b4b921ca76d2afbd289c408e39233", "score": "0.46535107", "text": "private String getAttribute(Node nNode,String name) {\n \tNamedNodeMap attributes = nNode.getAttributes();\n \t\n \t// get the number of nodes in this map\n \tint numAttrs = attributes.getLength();\n \t\n \tfor (int i = 0; i < numAttrs; i++) {\n \t\t\n \t\tAttr attr = (Attr) attributes.item(i);\n \t\tString attrName = attr.getNodeName();\n \t\tString attrValue = attr.getNodeValue();\n \n \t\tif(attrName == name) {\n \t\t\treturn attrValue;\n \t\t}\n \t}\n \t\n \treturn null;\n }", "title": "" }, { "docid": "ed7c2c8e7f9ef8c5c818aad1fe8b4e69", "score": "0.46526012", "text": "@Basic @Raw\n public double getMass(){\n \treturn this.mass;\n }", "title": "" }, { "docid": "8f8cfc1fe0f5aa57b1ead2c915c52eeb", "score": "0.4650695", "text": "public java.lang.String getANLN1() {\n return ANLN1;\n }", "title": "" }, { "docid": "60c8d718df9c2ca5f451fbd59fb13da5", "score": "0.46424744", "text": "public java.lang.String getLastNm() {\n return lastNm;\n }", "title": "" }, { "docid": "c26ebf1c983339245d83df4a5d5bccb7", "score": "0.46421805", "text": "public String getMobileNo() {\n return (String)getAttributeInternal(MOBILENO);\n }", "title": "" }, { "docid": "6c8c6927d74cc2b951b6e321df1b2e58", "score": "0.46298903", "text": "public String getMisenm() {\r\n return misenm;\r\n }", "title": "" }, { "docid": "6d7bafad94653aa56067df4c1e7551dc", "score": "0.46242", "text": "public edu.umich.icpsr.ddi.DataMsngType getDataMsng()\n {\n synchronized (monitor())\n {\n check_orphaned();\n edu.umich.icpsr.ddi.DataMsngType target = null;\n target = (edu.umich.icpsr.ddi.DataMsngType)get_store().find_element_user(DATAMSNG$18, 0);\n if (target == null)\n {\n return null;\n }\n return target;\n }\n }", "title": "" }, { "docid": "1c089fc9b1b5a8cb5d373b58e53e249b", "score": "0.4620975", "text": "public String getMn006() {\n return mn006;\n }", "title": "" }, { "docid": "b8b8bc08837970067e02fc3ea85316fa", "score": "0.46174225", "text": "public BigDecimal getMlNid() {\n return mlNid;\n }", "title": "" }, { "docid": "cba157e547efb51d11bd9277f3a00d73", "score": "0.46154308", "text": "public String getMasechta() {\r\n\t\treturn masechtosBavli[masechtaNumber];\r\n\t}", "title": "" }, { "docid": "50c59df509891b181c6fd99f6e42a09f", "score": "0.45871064", "text": "java.lang.String getField1401();", "title": "" }, { "docid": "29890386194c82487307166996294424", "score": "0.4581095", "text": "public Name getAlias() {\n\t\treturn getSingleName();\n\t}", "title": "" }, { "docid": "1299144bac5bffcbb27b5a3eee587183", "score": "0.4568794", "text": "public String getLastNm()\n\t{\n\t\treturn mLastNm;\n\t}", "title": "" }, { "docid": "cf42cfdb7c2230fba0011e10a8d71c4a", "score": "0.4568115", "text": "public MonetaryAccountReference getAlias() {\n return this.alias;\n }", "title": "" }, { "docid": "024a691bf6a48b4555f6245c0b882487", "score": "0.45672047", "text": "public String getShopNmKana() {\n return shopNmKana;\n }", "title": "" }, { "docid": "edb97f7ad385996003d2f9e9ffe43a00", "score": "0.4564512", "text": "public java.lang.String getMaritimeNameVN() {\n\t\treturn _dmHistoryMaritime.getMaritimeNameVN();\n\t}", "title": "" }, { "docid": "7bef7e8dd35d4e5672330078cbd27d3e", "score": "0.45527557", "text": "@Transient\n\tpublic String getReceipientMsisdn() { \n\t\treturn mRecipientMsisdn; \n\t}", "title": "" }, { "docid": "a22c47ca7d270e0c8e23f0b20894e589", "score": "0.45443317", "text": "public String getMicromapName() {\n return micromapName;\n }", "title": "" }, { "docid": "f83d28e85dc210a4f9ff01592cc6a956", "score": "0.4534487", "text": "public String getMaori() {\n\t\treturn _maoriNumber;\n\t}", "title": "" }, { "docid": "a0e1af2bc81021ef267b08fb1bf6e3bb", "score": "0.4528914", "text": "public Integer getSmenindex() {\n return smenindex;\n }", "title": "" }, { "docid": "35afea621aa529330732629a5e375c38", "score": "0.45227382", "text": "public String getMc() {\n return mc;\n }", "title": "" }, { "docid": "ffc910f2e0f88aa90137254eb7f0a074", "score": "0.4500885", "text": "public YangString getPlmnIdValue() throws JNCException {\n return (YangString)getValue(\"plmn-id\");\n }", "title": "" }, { "docid": "cd74421cf4d49df040f39ade4ee563a7", "score": "0.44970998", "text": "public java.lang.Long getJamMulai() {\n return jam_mulai;\n }", "title": "" }, { "docid": "a41fbae0c75187c433110c7126b9ead9", "score": "0.44939667", "text": "public String mo10149a() {\n return this.f8352a.mo10139a();\n }", "title": "" }, { "docid": "fc8464a32967bc40b37278eb29af59c5", "score": "0.4485448", "text": "public Number getMemArtId() {\n return (Number) getAttributeInternal(MEMARTID);\n }", "title": "" }, { "docid": "9e8bab5dd017496c1cf58b7cfd84b9ed", "score": "0.44839993", "text": "String getMobile(String name);", "title": "" }, { "docid": "e6df31641c881cb454448ff3dfa42d0c", "score": "0.44786432", "text": "public java.lang.String getMDNB() {\n return MDNB;\n }", "title": "" }, { "docid": "65f4de96ee4a02750a5b1152153ff942", "score": "0.44755104", "text": "int getMnc();", "title": "" }, { "docid": "ff9333328a6a5a02ac3a055747734eee", "score": "0.44719204", "text": "public String getMasp() {\n return masp;\n }", "title": "" }, { "docid": "3dc4c71113a3d00815399ef0388c9de9", "score": "0.44695127", "text": "private double getValMorp ( cell c, morphogen m) {\t\t\r\n\t\tif ( m.equals(morphogen.a))\r\n\t\t\treturn c.getVal1();\r\n\t\telse\r\n\t\t\treturn c.getVal2();\r\n\t}", "title": "" }, { "docid": "0bcc0c6c2f84b11eacc3622ef790b6a2", "score": "0.44624287", "text": "public String getNem() {\n return nem;\n }", "title": "" }, { "docid": "d51ce61223a7029aef06969d4005df1a", "score": "0.44619554", "text": "public java.lang.String getMATNR() {\n return MATNR;\n }", "title": "" }, { "docid": "0d8b3714cf17802146db646d75b806eb", "score": "0.44584662", "text": "public String getMentionName() {\n return _getStringValueNc(wrapGetIntCatchException(_FH_mentionName));\n }", "title": "" }, { "docid": "0d13863346196e22a307bb68a86d5762", "score": "0.445795", "text": "public YangString getBearerEventsMmeValue() throws JNCException {\n return (YangString)getValue(\"bearer-events-mme\");\n }", "title": "" }, { "docid": "0a1c2f62e8ab44f132cc9416bd43c09b", "score": "0.44527856", "text": "public MSH getMSH() { \r\n return getTyped(\"MSH\", MSH.class);\r\n }", "title": "" }, { "docid": "33e9459a993136149f7dcd8cd269c934", "score": "0.44498816", "text": "public double findMass(String atname) {\n return atomicWeight.get(atname);\n }", "title": "" }, { "docid": "2e37e7045a9b4f95275312268415c7b6", "score": "0.444602", "text": "public String getRwmc() {\n return rwmc;\n }", "title": "" }, { "docid": "c864e7fe9eda6f7797149dfaca219138", "score": "0.44405115", "text": "public String getARN() {\n return this.aRN;\n }", "title": "" }, { "docid": "762b3c51b16b5f5845bad732a9d38b38", "score": "0.4439467", "text": "public String getValueNm() {\n return this.valueNm;\n }", "title": "" }, { "docid": "787c5a48efe2e4001e691994b5922dab", "score": "0.44309145", "text": "public String getHinbannm() {\r\n return hinbannm;\r\n }", "title": "" }, { "docid": "cc5ae142c454fd5e1fc16f500a26fda0", "score": "0.4427052", "text": "public java.lang.Long getJamMulai() {\n return jam_mulai;\n }", "title": "" }, { "docid": "753eb4741697bb597dfb67a0b2164b57", "score": "0.44264218", "text": "public String annaNimi()\n\t{\n\t\treturn this.nimi;\n\t}", "title": "" }, { "docid": "5d058e9371ff5c351167ecd722b4fba2", "score": "0.44252178", "text": "public String getWhbzmc() {\n return whbzmc;\n }", "title": "" }, { "docid": "9266453aa3c814870a8187b2cbd051c6", "score": "0.44186136", "text": "public StrColumn getRecvdNmrData() {\n return delegate.getColumn(\"recvd_nmr_data\", DelegatingStrColumn::new);\n }", "title": "" }, { "docid": "bf48294ed4e4d4c2a8928e2e57453745", "score": "0.44123685", "text": "public String getMetaversalID();", "title": "" }, { "docid": "d4360bb53944ac1680369cf9a85d35a7", "score": "0.4404427", "text": "public String getTallaNbr() {\n return (String)getAttributeInternal(TALLANBR);\n }", "title": "" }, { "docid": "4f7f97046c6acd7717217890539cd784", "score": "0.4402396", "text": "public Integer getRenwalGrace() {\n return (Integer) getAttributeInternal(RENWALGRACE);\n }", "title": "" }, { "docid": "47d1b6b5cc3cfc4b6f8afe8cb67a29fb", "score": "0.4398873", "text": "public double getManaRegen() \r\n\t{\treturn this.manaRegen;\t}", "title": "" }, { "docid": "63f307cc9abce31571777b82bf0631bd", "score": "0.4394795", "text": "public Long getKinkenriyou01() {\r\n return kinkenriyou01;\r\n }", "title": "" }, { "docid": "d4a71cc0b57bb4d32571293401d691a9", "score": "0.43941793", "text": "String lookupMashFromName(String name);", "title": "" }, { "docid": "53bd172ef4cea3dc7d379f470368ea41", "score": "0.4394053", "text": "public String getName() {\n return monsterName;\n }", "title": "" }, { "docid": "8cd8cfe3044a9b565443f9f3c2aaa789", "score": "0.43926775", "text": "public String getName() {\n\t\treturn \"CMN\";\n\t}", "title": "" }, { "docid": "a830f78f3530b028fd32c3dcb8f55794", "score": "0.43915173", "text": "public int getMelhorMili() {\n return melhorMili;\n }", "title": "" }, { "docid": "e4a5840e8f64bca1e597c39710736af6", "score": "0.43912905", "text": "public java.lang.String getFirstNm() {\n return firstNm;\n }", "title": "" }, { "docid": "14c3960d91e8237fd5f25c8524461146", "score": "0.4384712", "text": "public Long getKinkenriyou05() {\r\n return kinkenriyou05;\r\n }", "title": "" }, { "docid": "ac0ca74f8553efb3d588b0b901d9c858", "score": "0.43816182", "text": "@Transient\n\tpublic String getMsisdn() {\n\t\treturn mMsisdn;\n\t}", "title": "" }, { "docid": "368f8be50e456e21cfa6e27c30b76fb6", "score": "0.43782586", "text": "public String getMallPhone() {\n return mallPhone;\n }", "title": "" }, { "docid": "401ae647f63f18c08a721f392eb9f3dc", "score": "0.437652", "text": "public Number getTallaId() {\n return (Number)getAttributeInternal(TALLAID);\n }", "title": "" }, { "docid": "3e90dfafc3680a3c3000677e7313ef84", "score": "0.43752176", "text": "private final long m719n() {\n return m702b(this.f533r.f621k);\n }", "title": "" }, { "docid": "6f3be8041c5ad955603cdb116d489602", "score": "0.4372486", "text": "public int mo3822m() {\n return this.f1470as;\n }", "title": "" }, { "docid": "89246dcda7492d366617aa9851533fff", "score": "0.43723652", "text": "@javax.persistence.Column(name = \"medal\", nullable = false, length = 1)\n\tpublic java.lang.String getMedal() {\n\t\treturn getValue(org.jooq.examples.cubrid.demodb.tables.Record.RECORD.MEDAL);\n\t}", "title": "" }, { "docid": "9ff7f1e8fbfc4b2061073b6bfb0fdc95", "score": "0.4371579", "text": "public String getStreetNrSuffix() {\r\n return streetNrSuffix;\r\n }", "title": "" }, { "docid": "90b2bde4a375a2395554841489982ca1", "score": "0.4368822", "text": "public org.apache.xmlbeans.XmlNMTOKEN xgetName()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.XmlNMTOKEN target = null;\r\n target = (org.apache.xmlbeans.XmlNMTOKEN)get_store().find_attribute_user(NAME$26);\r\n return target;\r\n }\r\n }", "title": "" }, { "docid": "a802b20f854d84888130885151853b1c", "score": "0.43682683", "text": "public String getMotaNgan() {\n return motaNgan;\n }", "title": "" }, { "docid": "b846ea359de6061f469ff030bb692993", "score": "0.43669528", "text": "public String getLongName() {\n return (String) getAttributeInternal(LONGNAME);\n }", "title": "" }, { "docid": "519e2f623276fdfc1ea96d6459e2a7e7", "score": "0.4365399", "text": "public final String attributeNameRef ()\r\n {\r\n return _value.xmlTreePath().attribute();\r\n }", "title": "" } ]